API ReferenceEndpoints

WorkspaceSettings

Workspace settings management API

MethodPathDescription
GET/api/v1/workspaces/{slug}/settingsGet workspace settings
PATCH/api/v1/workspaces/{slug}/settingsUpdate workspace settings

Get workspace settings

GET /api/v1/workspaces/{slug}/settings

Retrieve settings for a workspace. Requires admin permission.

Path Parameters

NameRequiredDescription
slugYesWorkspace slug

Responses

StatusDescription
200Settings retrieved successfully
403Admin permission required
404Workspace not found

Response Shape

FieldTypeDescription
workspaceIdstring (uuid)Workspace ID
startupMatrixMatrixResponse[]Resolved matrix details for matrices to pre-assemble at runtime startup
orphanedMatrixUrisstring[]Matrix URIs that could not be resolved (deleted matrices)
updatedAtstring (date-time)When the settings were last updated

Example Response

{
  "success": true,
  "data": {
    "workspaceId": "550e8400-e29b-41d4-a716-446655440000",
    "startupMatrix": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "uri": "string",
        "name": "string",
        "description": "string",
        "repositoryUrl": "string",
        "imports": [],
        "importedBy": [],
        "packageInfo": {
          "id": null,
          "name": null,
          "currentVersion": null
        },
        "createdAt": "2025-03-28T14:22:03Z",
        "updatedAt": "2025-03-28T14:22:03Z",
        "prefixDeclarations": []
      }
    ],
    "orphanedMatrixUris": [
      "string"
    ],
    "updatedAt": "2025-03-28T14:22:03Z"
  }
}

Example

curl -X GET "https://poliglot.io/api/v1/workspaces/<slug>/settings" \
  -H "Authorization: Bearer <your-token>"

Update workspace settings

PATCH /api/v1/workspaces/{slug}/settings

Update settings for a workspace using PATCH semantics. Only provided fields are updated. Requires admin permission.

Path Parameters

NameRequiredDescription
slugYesWorkspace slug

Request Body

Content-Type: application/json

FieldTypeDescription
startupMatrixstring[]List of matrix URIs to pre-assemble at runtime startup

Responses

StatusDescription
200Settings updated successfully
400Invalid request
403Admin permission required
404Workspace not found

Response Shape

FieldTypeDescription
workspaceIdstring (uuid)Workspace ID
startupMatrixMatrixResponse[]Resolved matrix details for matrices to pre-assemble at runtime startup
orphanedMatrixUrisstring[]Matrix URIs that could not be resolved (deleted matrices)
updatedAtstring (date-time)When the settings were last updated

Example Response

{
  "success": true,
  "data": {
    "workspaceId": "550e8400-e29b-41d4-a716-446655440000",
    "startupMatrix": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "uri": "string",
        "name": "string",
        "description": "string",
        "repositoryUrl": "string",
        "imports": [],
        "importedBy": [],
        "packageInfo": {
          "id": null,
          "name": null,
          "currentVersion": null
        },
        "createdAt": "2025-03-28T14:22:03Z",
        "updatedAt": "2025-03-28T14:22:03Z",
        "prefixDeclarations": []
      }
    ],
    "orphanedMatrixUris": [
      "string"
    ],
    "updatedAt": "2025-03-28T14:22:03Z"
  }
}

Example

curl -X PATCH "https://poliglot.io/api/v1/workspaces/<slug>/settings" \
  -H "Authorization: Bearer <your-token>"
  -H "Content-Type: application/json" \
  -d '{}'

On this page