Skip to content

Rename a service user or change its role

PATCH
/service-users/{service_user_id}
curl --request PATCH \
--url https://api.global.stillbox.example/v1/service-users/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "role": "member" }'
service_user_id
required
string
Media typeapplication/json
object
name
string
<= 100 characters
role
string
Allowed values: member auditor

The service user

Media typeapplication/json
object
id
required
string
name
required
string
role
required
string
Allowed values: member auditor
created_by
string
created_at
required
string format: date-time

Example

{
"role": "member"
}

The request is invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

Only an owner can do this (owner_only), or the invitation is for another address (not_invited)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}