curl --request PUT \
--url https://api.botpress.cloud/v1/admin/workspaces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-workspace-id: <api-key>' \
--data '{
"name": "<string>",
"spendingLimit": 502.5,
"about": "<string>",
"profilePicture": "<string>",
"contactEmail": "<string>",
"website": "<string>",
"socialAccounts": [
"<string>"
],
"isPublic": true,
"handle": "<string>"
}'
{
"id": "<string>",
"name": "<string>",
"ownerId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"botCount": 123,
"billingVersion": "v1",
"plan": "community",
"blocked": true,
"spendingLimit": 123,
"about": "",
"profilePicture": "",
"contactEmail": "",
"website": "",
"socialAccounts": [],
"isPublic": true,
"handle": ""
}
Update workspace
curl --request PUT \
--url https://api.botpress.cloud/v1/admin/workspaces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-workspace-id: <api-key>' \
--data '{
"name": "<string>",
"spendingLimit": 502.5,
"about": "<string>",
"profilePicture": "<string>",
"contactEmail": "<string>",
"website": "<string>",
"socialAccounts": [
"<string>"
],
"isPublic": true,
"handle": "<string>"
}'
{
"id": "<string>",
"name": "<string>",
"ownerId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"botCount": 123,
"billingVersion": "v1",
"plan": "community",
"blocked": true,
"spendingLimit": 123,
"about": "",
"profilePicture": "",
"contactEmail": "",
"website": "",
"socialAccounts": [],
"isPublic": true,
"handle": ""
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Your workspace ID.
Workspace ID
Workspace metadata
The body is of type object
.
Success
The response is of type object
.
Was this page helpful?