ReferenceAPI

Rename a workspace

Rename the workspace, keeping its id.

PATCH https://api.nevia.cloud/v1/workspaces/{ws}
curl -X PATCH "https://api.nevia.cloud/v1/workspaces/01d4cnjjq40hnnh0nwmkg35nv2h" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "acme-staging"
  }'
{
  "workspace": {
    "id": "01d4cnjjq40hnnh0nwmkg35nv2h",
    "name": "api-staging",
    "state": "active",
    "created_at": "2026-09-10T12:34:56Z",
    "updated_at": "2026-09-10T12:34:56Z",
    "deleted_at": null
  },
  "operations": [
    "01d4cnjm89yk0r3xtv80dy0x7by"
  ]
}

Authorization

bearerAuth
Authorization Bearer <token>

Send the token in the Authorization: Bearer <token> header. See Authenticate.

In: header

Path Parameters

ws* string

Workspace id: 27 lowercase letters and digits.

Match ^[A-Za-z0-9_-]{1,64}$

Header Parameters

Idempotency-Key? string

Optional retry key, kept 24 hours

Length 1 <= length <= 255

Request Body

application/json

New name for the workspace.

Behavior

The rename completes before the response returns.

Response

application/json

The renamed workspace.