Admin
Endpoints requiring administrative privileges
Bulk assign roles
Workspaces API
Assign multiple users a role in a workspace in a single request. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.
Parameters
{
"role_assignments": [
{
"role": "owner",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}
Returns
200
Successful Response
Endpoint
Request
curl -X POST 'https://{service_host}/workspace/admin/orgs/{org_id}/action/bulk_assign_roles' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
No response body.
Update ML enablements
Workspaces API
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.
Parameters
{
"ml_enablements": [
{
"ml_enabled": true,
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}
Returns
200
Successful Response
Endpoint
Request
curl -X POST 'https://{service_host}/workspace/admin/orgs/{org_id}/action/update_ml_enablement' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"ml_enablements": [
{
"ml_enabled": true,
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}
Get organization settings
Workspaces API
Returns org settings, provided your user has access to the org.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/workspace/admin/orgs/{org_id}/settings' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"settings": {
"ml_enabled": false
},
"updated_at": "2024-07-29T15:51:28.071Z",
"updated_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
List user workspaces
Workspaces API
Returns a list of all workspaces that a specified user has a role i. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace..
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/workspace/admin/orgs/{org_id}/users/{user_id}/workspaces' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"links": {
"count": 0,
"first": "https://example.com",
"last": "https://example.com",
"next": "https://example.com",
"previous": "https://example.com",
"total": 0
},
"results": [
{
"bounding_box": {
"coordinates": [
[
[
0,
0
]
]
],
"type": "Polygon"
},
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"default_coordinate_system": "string",
"description": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"labels": [
"string"
],
"ml_enabled": false,
"name": "string",
"self_link": "https://example.com",
"updated_at": "2024-07-29T15:51:28.071Z",
"updated_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"user_role": "owner"
}
]
}
List workspaces
Workspaces API
Get a list of all workspaces. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/workspace/admin/orgs/{org_id}/workspaces' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"links": {
"count": 0,
"first": "https://example.com",
"last": "https://example.com",
"next": "https://example.com",
"previous": "https://example.com",
"total": 0
},
"results": [
{
"bounding_box": {
"coordinates": [
[
[
0,
0
]
]
],
"type": "Polygon"
},
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"current_user_role": "owner",
"default_coordinate_system": "string",
"description": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"labels": [
"string"
],
"ml_enabled": false,
"name": "string",
"self_link": "https://example.com",
"updated_at": "2024-07-29T15:51:28.071Z",
"updated_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
}
]
}
Get workspace
Workspaces API
Get a workspace by its ID. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/workspace/admin/orgs/{org_id}/workspaces/{workspace_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"bounding_box": {
"coordinates": [
[
[
0,
0
]
]
],
"type": "Polygon"
},
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"current_user_role": "owner",
"default_coordinate_system": "string",
"description": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"labels": [
"string"
],
"ml_enabled": false,
"name": "string",
"self_link": "https://example.com",
"updated_at": "2024-07-29T15:51:28.071Z",
"updated_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
}
Get thumbnail
Workspaces API
Returns the thumbnail image for a specified workspace. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/workspace/admin/orgs/{org_id}/workspaces/{workspace_id}/thumbnail' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
"string"
List users
Workspaces API
List all users and their roles within a workspace. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.
Parameters
Returns
200
Successful Response
Endpoint
Request
curl -X GET 'https://{service_host}/workspace/admin/orgs/{org_id}/workspaces/{workspace_id}/users' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"links": {
"additionalProp1": "https://example.com",
"additionalProp2": "https://example.com",
"additionalProp3": "https://example.com"
},
"results": [
{
"email": "string",
"full_name": "string",
"role": "owner",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}
Assign user role
Workspaces API
Assigns a user a role in a workspace. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.
Parameters
{
"role": "owner",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Returns
201
Successful Response
Endpoint
Request
curl -X POST 'https://{service_host}/workspace/admin/orgs/{org_id}/workspaces/{workspace_id}/users' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
{
"role": "owner",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Remove user from workspace
Workspaces API
Removes a user's role from a workspace. Admin endpoints allow organization admin users to access any workspace, regardless of their role or lack thereof within the workspace.
Parameters
Returns
204
Successful Response
Endpoint
Request
curl -X DELETE 'https://{service_host}/workspace/admin/orgs/{org_id}/workspaces/{workspace_id}/users/{user_id}' \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
Response
No response body.