Add Graph Member
post
/v1/graphs/{graph_id}/membersPart 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-Keyheader. - Bearer token in the
Authorizationheader.
Path parameters
| Name | Type | Description |
|---|---|---|
graph_idrequired | string | Graph identifier |
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
user_idrequired | string | User to grant access to (must belong to the graph's organization) |
roleoptional | GraphRole | Graph role: viewer (read-only), member (read/write), admin (full control) One of: Default: |
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
| Field | Type | Description |
|---|---|---|
user_idrequired | string | |
namerequired | string | |
emailrequired | string | |
rolerequired | GraphRole | Ordered per-graph roles: viewer < member < admin. One of: |
sourcerequired | string | 'explicit' for a direct grant; 'org_role' for implicit admin held by org owners/admins One of: |
granted_atoptional | string (date-time) | When the explicit grant was created (null for implicit access) |
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |