Browse the API reference

Update Member Role

put/v1/orgs/{org_id}/members/{user_id}

Part of Org Members.

Requires admin or owner role. Owner promotion/demotion requires a dedicated ownership transfer workflow.

Authentication

Authenticate in any one of these ways — not all of them:

  • API key in the X-API-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
org_idrequiredstringOrg Id
user_idrequiredstringUser Id

Request body

Required, application/json.

FieldTypeDescription
rolerequiredOrgRole

One of: owner, admin, member

Example request

curl
curl -X PUT "https://api.robosystems.ai/v1/orgs/{org_id}/members/{user_id}" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "role": "string"
}'

Responses

200 Successful Response

FieldTypeDescription
user_idrequiredstring
namerequiredstring
emailrequiredstring
rolerequiredOrgRole

One of: owner, admin, member

joined_atrequiredstring (date-time)
is_activerequiredboolean
StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
422Validation Error
429Rate limit exceeded
500Internal server error