Skip to content

`PATCH /v1/orgs/{org}/members/{user_id}`.

PATCH
/v1/orgs/{org}/members/{user_id}
curl --request PATCH \
--url https://api.updawg.net/v1/orgs/example/members/example \
--header 'Content-Type: application/json' \
--data '{ "role": "viewer" }'
org
required
string

Organization slug.

user_id
required
string

The usr_… id.

Media typeapplication/json
object
role
required
string
Allowed values: viewer operator admin owner

Applied: the member, at their role now.

Media typeapplication/json
object
email
required
string
joined_at
required
string format: date-time
name
string | null
role
required
string
Allowed values: viewer operator admin owner
user_id
required
string

Example

{
"role": "viewer"
}

A body with no role, or one that is not a role (DAWG-246).

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No session.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Not permitted for this role.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No such member here.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Refused because it would leave the organization with no owner.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

The organization’s data is in another region (wrong-region, DAWG-159). detail names that region’s API; send the request there.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}