Skip to main content
PATCH
/
v2
/
workspaces
/
{workspaceId}
Update 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

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

Workspace id

Body

application/json
name
string
Pattern: ^[0-9A-Za-zÀ-ÖØ-öø-ÿ ,.'- ]{1,60}$
description
Example:
{ "fr": "Bonjour", "en": "Hello" }
photo
string
config
object
blocks
object
slug
string
id
string
labels
string[]
Pattern: ^[0-9A-Za-z._:-]{2,60}$
customDomains
string[]
registerWorkspace
boolean

If true, make this workspace metadata available to all workspaces with this variable : {{global.workspacesRegistry[WORKSPACE_SLUG]}}

repositories
object

Remote versioning repositories

platformRepositories
object

Platform remote versioning repositories

secrets
object
events
object
writeLock
object

Lock preventing writes during versioning operations or unresolved merge conflicts

Response

Success Response

name
string
required
Pattern: ^[0-9A-Za-zÀ-ÖØ-öø-ÿ ,.'- ]{1,60}$
description
Example:
{ "fr": "Bonjour", "en": "Hello" }
photo
string
config
object
blocks
object
slug
string
id
string
labels
string[]
Pattern: ^[0-9A-Za-z._:-]{2,60}$
customDomains
string[]
registerWorkspace
boolean

If true, make this workspace metadata available to all workspaces with this variable : {{global.workspacesRegistry[WORKSPACE_SLUG]}}

repositories
object

Remote versioning repositories

platformRepositories
object

Platform remote versioning repositories

secrets
object
events
object
writeLock
object

Lock preventing writes during versioning operations or unresolved merge conflicts