Browse the api reference

Set Selected Graph

put/v1/user/selected-graph

Part of User.

Remembers the graph as the caller's current one: GET /v1/graphs then reports it as selectedGraphId, and the apps open on it. One graph per user, replacing the previous selection. Only a graph the caller belongs to can be selected; shared repositories cannot be.

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.

Request body

Required, application/json.

FieldTypeDescription
graph_idrequiredstring

The graph the apps open on the caller's next load

Constraints: at least 1 character

Example request

curl
curl -X PUT "https://api.robosystems.ai/v1/user/selected-graph" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "graph_id": "kg1a2b3c4d5"
}'

Responses

200 Successful Response

FieldTypeDescription
successoptionalboolean

Indicates the operation completed successfully

Default: true

messagerequiredstring

Human-readable success message

dataoptionalobject

Optional additional data related to the operation

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