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>"
}
'{
"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>"
}
}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>"
}
'{
"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>"
}
}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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}^[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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}^[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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}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, 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.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}Was this page helpful?