Skip to main content
PUT
/
workspaces
/
{workspace}
/
roles
/
{role}
Update Role
curl --request PUT \
  --url https://lancepilot.com/api/v3/workspaces/{workspace}/roles/{role} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "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
role
integer
required

Body

application/json
name
string
required

Unique name for the role.

Maximum length: 255

Response

status
integer
required
Example:

200

message
string
required
Example:

"Resource updated successfully."

data
object
required

Updated resource data.