Skip to main content
PATCH
/
workspaces
/
{workspace}
Update Workspace
curl --request PATCH \
  --url https://lancepilot.com/api/v3/workspaces/{workspace} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "INTERNAL",
  "status": true
}'
{
  "status": 200,
  "message": "Resource updated successfully.",
  "data": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workspace
string<uuid>
required

ID of the workspace to update.

Body

application/json

Workspace update parameters.

name
string
required

New workspace name.

type
enum<string>
required

Must be a valid workspace type.

Available options:
INTERNAL,
PARTNER
status
boolean
required

New status (true for active, false for inactive).

Response

status
integer
required
Example:

200

message
string
required
Example:

"Resource updated successfully."

data
object
required

Updated resource data.