curl --request PATCH \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"slug": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
config: {schema: {}, block: '<string>', value: '<unknown>'},
slug: '<string>'
})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}"
payload = {
"name": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"slug": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"name": "<string>",
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"photo": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"blocks": {},
"slug": "<string>",
"id": "<string>",
"labels": [
"<string>"
],
"customDomains": [
"<string>"
],
"registerWorkspace": true,
"repositories": {},
"platformRepositories": {},
"secrets": {
"schema": {}
},
"events": {
"mapping": {},
"types": {}
},
"writeLock": {
"lockedAt": "<string>",
"lockedBy": "<string>",
"reason": "<string>"
},
"generation": 123
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Update Workspace
Update a workspace
curl --request PATCH \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"slug": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
config: {schema: {}, block: '<string>', value: '<unknown>'},
slug: '<string>'
})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}"
payload = {
"name": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"slug": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"name": "<string>",
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"photo": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"blocks": {},
"slug": "<string>",
"id": "<string>",
"labels": [
"<string>"
],
"customDomains": [
"<string>"
],
"registerWorkspace": true,
"repositories": {},
"platformRepositories": {},
"secrets": {
"schema": {}
},
"events": {
"mapping": {},
"types": {}
},
"writeLock": {
"lockedAt": "<string>",
"lockedBy": "<string>",
"reason": "<string>"
},
"generation": 123
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workspace id
Body
^[0-9A-Za-zÀ-ÖØ-öø-ÿ ,.'- ]{1,60}$Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
Hide child attributes
Hide child attributes
Block
Hide child attributes
Hide child attributes
A block can be a javascript bundled file. Host it on the internet and put its url here.
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
A block can extends another one by giving its name here
default config applied to the Block. Usefull for extended Blocks.
Css applied to Block
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
^[0-9A-Za-z._:-]{2,60}$If true, make this workspace metadata available to all workspaces with this variable : {{global.workspacesRegistry[WORKSPACE_SLUG]}}
Remote versioning repositories
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
- Option 1
- Option 2
- Option 3
Hide child attributes
Hide child attributes
Sub-directory path within the repository where the workspace is stored
git, archive, filesystem read-write, read-only Only for platform repositories fetched from the Platform workspaces ; indicates which groups can be pulled/pushed
Platform remote versioning repositories
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
- Option 1
- Option 2
- Option 3
Hide child attributes
Hide child attributes
Sub-directory path within the repository where the workspace is stored
git, archive, filesystem read-write, read-only Only for platform repositories fetched from the Platform workspaces ; indicates which groups can be pulled/pushed
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
Hide child attributes
Hide child attributes
Custom mapping which will be directly sent to underlying database (Elasticsearch/Opensearch)
Custom configuration per event type
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
Monotonic counter incremented on every workspace modification. Used by the runtime to detect a stale runtime.yml (e.g. after a crash during import) and trigger a rebuild.
Response
Success Response
^[0-9A-Za-zÀ-ÖØ-öø-ÿ ,.'- ]{1,60}$Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
Hide child attributes
Hide child attributes
Block
Hide child attributes
Hide child attributes
A block can be a javascript bundled file. Host it on the internet and put its url here.
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
A block can extends another one by giving its name here
default config applied to the Block. Usefull for extended Blocks.
Css applied to Block
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
^[0-9A-Za-z._:-]{2,60}$If true, make this workspace metadata available to all workspaces with this variable : {{global.workspacesRegistry[WORKSPACE_SLUG]}}
Remote versioning repositories
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
- Option 1
- Option 2
- Option 3
Hide child attributes
Hide child attributes
Sub-directory path within the repository where the workspace is stored
git, archive, filesystem read-write, read-only Only for platform repositories fetched from the Platform workspaces ; indicates which groups can be pulled/pushed
Platform remote versioning repositories
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
- Option 1
- Option 2
- Option 3
Hide child attributes
Hide child attributes
Sub-directory path within the repository where the workspace is stored
git, archive, filesystem read-write, read-only Only for platform repositories fetched from the Platform workspaces ; indicates which groups can be pulled/pushed
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
Hide child attributes
Hide child attributes
Custom mapping which will be directly sent to underlying database (Elasticsearch/Opensearch)
Custom configuration per event type
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
Monotonic counter incremented on every workspace modification. Used by the runtime to detect a stale runtime.yml (e.g. after a crash during import) and trigger a rebuild.
Was this page helpful?