Skip to main content

Workspaces API

Version: 1.0

Update ML enablements

POST
/workspace/admin/orgs/{org_id}/action/update_ml_enablement

Update ML (machine learning) enablement status for a group of given workspaces. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.

Request

Request headers
authorizationstring
Required
Path parameters
org_iduuid
Required
Body parameters
Required
ml_enabledboolean
workspace_iduuid
{
"ml_enablements": [
{
"ml_enabled": true,
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}

Responses

200

Successful Response

ml_enabledboolean
workspace_iduuid
{
"ml_enablements": [
{
"ml_enabled": true,
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}

401

No permission -- see authorization schemes

detailstring | null
invalid-paramsErrorInvalidParam[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

403

Request forbidden -- authorization will not help

detailstring | null
invalid-paramsErrorInvalidParam[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

404

Resource not found or user lacks access

detailstring | null
invalid-paramsErrorInvalidParam[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

405

Specified method is invalid for this resource

detailstring | null
invalid-paramsErrorInvalidParam[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

422

Unprocessable Content

detailstring | null
invalid-paramsErrorInvalidParam[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

What is the reason for your feedback?