Update Workspace Config
curl --request PATCH \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schema": {},
"block": "<string>",
"value": "<unknown>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({schema: {}, block: '<string>', value: '<unknown>'})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/config', 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}/config"
payload = {
"schema": {},
"block": "<string>",
"value": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"schema": {},
"block": "<string>",
"value": "<unknown>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Prisme.ai Workspaces
Update Workspace Config
Update a workspace’s config field. Top-level keys (schema, block, value) are merged shallowly with the current config; only the keys present in the payload are replaced.
PATCH
/
v2
/
workspaces
/
{workspaceId}
/
config
Update Workspace Config
curl --request PATCH \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schema": {},
"block": "<string>",
"value": "<unknown>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({schema: {}, block: '<string>', value: '<unknown>'})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/config', 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}/config"
payload = {
"schema": {},
"block": "<string>",
"value": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"schema": {},
"block": "<string>",
"value": "<unknown>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workspace id
Body
application/json
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Available options:
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.
Example:
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
Response
Success Response
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Available options:
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.
Example:
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
Was this page helpful?
⌘I