Publish App
curl --request POST \
--url https://api.studio.prisme.ai/v2/apps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '<string>'})
};
fetch('https://api.studio.prisme.ai/v2/apps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/apps"
payload = { "workspaceId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspaceId": "<string>",
"slug": "<string>",
"versions": [
"<string>"
],
"name": "<string>",
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"documentation": {
"workspaceSlug": "<string>",
"slug": "<string>"
},
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"photo": "<string>",
"labels": [
"<string>"
],
"updatedAt": "<string>",
"createdAt": "<string>",
"updatedBy": "<string>",
"createdBy": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Prisme.ai Workspaces
Publish App
Publish a workspace as a new app version
POST
/
v2
/
apps
Publish App
curl --request POST \
--url https://api.studio.prisme.ai/v2/apps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '<string>'})
};
fetch('https://api.studio.prisme.ai/v2/apps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/apps"
payload = { "workspaceId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspaceId": "<string>",
"slug": "<string>",
"versions": [
"<string>"
],
"name": "<string>",
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"documentation": {
"workspaceSlug": "<string>",
"slug": "<string>"
},
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"photo": "<string>",
"labels": [
"<string>"
],
"updatedAt": "<string>",
"createdAt": "<string>",
"updatedBy": "<string>",
"createdBy": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
An optional workspace version. If empty, will publish latest workspace version
App slug : Required on first publish
An optional version name
Response
Success Response
Hide child attributes
Hide child attributes
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" }
}
Pattern:
^[0-9A-Za-z._:-]{2,60}$Was this page helpful?
⌘I