Skip to content

Update member role

PATCH
/api/v1/team/members/{id}
curl --request PATCH \
--url https://api.deploybase.eu/api/v1/api/v1/team/members/example \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "role": "admin" }'

Changes a team member’s role. Only the team owner can change roles.

id
required
string format: uuid

Membership ID

New role

Media type application/json
object
role
required
string
Allowed values: admin member viewer

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
display_name
string
email
string
id
string
is_current_user
boolean
joined_at
string
role
string
Example generated
{
"data": {
"display_name": "example",
"email": "example",
"id": "example",
"is_current_user": true,
"joined_at": "example",
"role": "example"
},
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Bad Request

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Unauthorized

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Forbidden

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Not Found

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Conflict

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}