Set workspace slug
Change a workspace's URL slug (its stable identity). Validated for format (lowercase letters, numbers, hyphens) and uniqueness. WARNING: every agent handle ('workspace-slug/agent-slug'), share link, and bookmarked URL changes to the new slug, anything addressing the old slug stops resolving. Use rename_workspace to change only the display name (slug stays put).
Authorization
bearerAuth A personal access token from Settings > API tokens.
In: header
Header Parameters
A key you choose, such as a UUID, that makes this POST safe to retry. Within 24 hours the same key and request answers with the first successful answer and runs nothing, the same key with a different request answers 422 idempotency_key_reused, and a key whose request is still running answers 409 idempotency_key_in_use. A failed request keeps nothing, so the same key runs it again.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/operations/set_workspace_slug" \ -H "Content-Type: application/json" \ -d '{ "workspace": "string", "slug": "string" }'{}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}Set data residency POST
Set the workspace's data residency, which decides whether a call may ever fall back to a service outside Australia. 'au': when the AI model or the voice fails, the call has no overseas backup, post-call analysis and grading stay in Australia, and agents cannot pick an overseas grading model. 'global': the platform may fall back to the model's overseas provider and to an overseas backup voice, and agents may grade on an overseas model. An agent switched to an overseas model or voice by name uses it under either setting. Applies to every agent in the workspace. A workspace connected to its own cloud account stays 'au'. Requires workspace-admin.
Add variable to Shared settings POST
Move one of this agent's plain variables into a workspace Shared setting (config set) so every agent that attaches the set reads the same value. The value is written into the set, the set is attached to this agent if it is not already, and the agent's own copy is removed from the draft, so the set's value is the one in use from then on; edit it in Shared settings and every attached agent picks it up on its next call. Only a plain variable with a value can move: secrets and default-only variables stay on the agent. Needs a draft version. Get set ids from list_config_sets, or name a new set.