Skip to main content
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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspaceId
string
required
workspaceVersion
string

An optional workspace version. If empty, will publish latest workspace version

slug
string

App slug : Required on first publish

description
Example:
{ "fr": "Bonjour", "en": "Hello" }
name
string

An optional version name

Response

Success Response

workspaceId
string
required
slug
string
required
versions
name
string
description
Example:
{ "fr": "Bonjour", "en": "Hello" }
documentation
object
config
object
photo
string
labels
string[]
Pattern: ^[0-9A-Za-z._:-]{2,60}$
updatedAt
string
createdAt
string
updatedBy
string
createdBy
string