---
title: "Set Selected Graph"
method: PUT
path: "/v1/user/selected-graph"
tags: ["User"]
---

# Set Selected Graph

`PUT /v1/user/selected-graph`

## Request

- Base URL: `https://api.robosystems.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.robosystems.ai/v1/user/selected-graph`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

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.

## Request body

- SetSelectedGraphRequest: Request model for setting the user's selected graph.
  - `graph_id` string, required: The graph the apps open on the caller's next load

## Response `200`

Successful Response

- SuccessResponse: Standard success response for operations without specific return data.
  - `success` boolean: Indicates the operation completed successfully
  - `message` string, required: Human-readable success message
  - `data` object, nullable: Optional additional data related to the operation

## Other responses

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

---

[API](https://skmtc.dev/robosystems/apis/robosystems-api.md) · [All operations](https://skmtc.dev/robosystems/apis/robosystems-api/llms.txt) · [OpenAPI document](https://skmtc.dev/robosystems/apis/robosystems-api/revisions/e661e2d5ca6a?raw)
