Publish Workspace Version
curl --request POST \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": {
"fr": "Bonjour",
"en": "Hello"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({description: {fr: 'Bonjour', en: 'Hello'}})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions', 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}/versions"
payload = { "description": {
"fr": "Bonjour",
"en": "Hello"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"processing": true,
"message": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Prisme.ai Workspaces
Publish Workspace Version
Publish a new workspace version
POST
/
v2
/
workspaces
/
{workspaceId}
/
versions
Publish Workspace Version
curl --request POST \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": {
"fr": "Bonjour",
"en": "Hello"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({description: {fr: 'Bonjour', en: 'Hello'}})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions', 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}/versions"
payload = { "description": {
"fr": "Bonjour",
"en": "Hello"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"processing": true,
"message": "<string>"
}{
"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
Query Parameters
Timeout (seconds)
Body
application/json
Version name. If left empty, will be auto generated
Was this page helpful?