Skip to content

Change a member’s role

PUT
/v1/admin/members/{id}/role
curl --request PUT \
--url https://api.sealcord.com/v1/admin/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/role \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "role": "admin" }'

Change a member’s role (not your own, not an owner’s, never above your own).

id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Media typeapplication/json
object
role
required
string
Allowed values: admin support read-only

Missing or invalid API key.

Needs scope members:write.