# setAgentFilesFolder

Choose where the files you make in this person's chats are saved for them: a folder they can edit (`folderId`), or null for the root of My files, the default. Every later file goes there; files already saved stay where they are.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "setAgentFilesFolder", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `folderId`: `ID`

## Response (data, an example)

```json
{
  "spacesMutation": {
    "setAgentFilesFolder": {
      "id": "<ID>",
      "spaceId": "<ID>",
      "name": "…",
      "path": [
        {
          "id": "<ID>",
          "name": "…"
        }
      ]
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "setAgentFilesFolder",
    "variables": {}
  }'
```
