curl --request PATCH \
--url https://api.sfcompute.com/preview/v2/workspaces/{workspace} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": "<string>",
"resource_path": "<string>",
"owner": "<string>",
"name": "<string>",
"object": "workspace",
"created_at": 1738972800
}⚠️ This endpoint is in preview.
Rename a workspace.
curl --request PATCH \
--url https://api.sfcompute.com/preview/v2/workspaces/{workspace} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": "<string>",
"resource_path": "<string>",
"owner": "<string>",
"name": "<string>",
"object": "workspace",
"created_at": 1738972800
}Documentation Index
Fetch the complete documentation index at: https://docs.sfcompute.com/llms.txt
Use this file to discover all available pages before exploring further.
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Workspace name or ID A resource path like 'sfc:workspace:acme:my-workspace' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
(wksp_[0-9a-zA-Z_-]{1,21})|(sfc:workspace:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,1})"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
Workspace updated.
wksp_[0-9a-zA-Z_-]{1,21}"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path for a workspace resource. Format: sfc:workspace::.
sfc:workspace:([a-zA-Z0-9._-]+:){1}[a-zA-Z0-9._-]+"sfc:workspace:<account_id>:<name>"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
"workspace"Unix timestamp.
1738972800