Browse the API reference

Add Graph Member

post/v1/graphs/{graph_id}/members

Part of Graph Members.

Grant a member of the graph's organization access at a chosen role. Requires graph admin.

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

Request body

Required, application/json.

FieldTypeDescription
user_idrequiredstring

User to grant access to (must belong to the graph's organization)

roleoptionalGraphRole

Graph role: viewer (read-only), member (read/write), admin (full control)

One of: viewer, member, admin

Default: member

Example request

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

Responses

201 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