Browse the API reference

Update Graph Member Role

put/v1/graphs/{graph_id}/members/{user_id}

Part of Graph Members.

Change an explicit member's graph role. Requires graph admin. Implicit org owner/admin access is managed through org roles.

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
user_idrequiredstringUser Id
graph_idrequiredstringGraph identifier

Request body

Required, application/json.

FieldTypeDescription
rolerequiredGraphRole

Ordered per-graph roles: viewer < member < admin.

One of: viewer, member, admin

Example request

curl
curl -X PUT "https://api.robosystems.ai/v1/graphs/{graph_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
rolerequiredGraphRole

Ordered per-graph roles: viewer < member < admin.

One of: viewer, member, admin

sourcerequiredstring

'explicit' for a direct grant; 'org_role' for implicit admin held by org owners/admins

One of: explicit, org_role

granted_atoptionalstring (date-time)

When the explicit grant was created (null for implicit access)

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
422Validation Error
429Rate limit exceeded
500Internal server error