# moveFolder

Put a folder under another folder of the same surface (`parentId`), or at the top level (`parentId: null`). Refused when it would cross between personal and shared, nest a folder inside itself, or go too deep.

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

## Variables

- `folderId`: `ID!` (required)
- `parentId`: `ID`

## Response (data, an example)

```json
{
  "folderMutation": {
    "moveFolder": {
      "id": "<ID>",
      "name": "…",
      "parentId": "<ID>",
      "ownerUserId": "<ID>"
    }
  }
}
```

## 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": "moveFolder",
    "variables": {
      "folderId": "<folderId>"
    }
  }'
```
