# pinMemoryNote

Memory: pin (`pinned` true) or unpin a note. A pinned note rides in every agent memory block for its shelf; dreaming never changes a pin.

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

## Variables

- `noteId`: `ID!` (required)
- `pinned`: `Boolean!` (required)

## Response (data, an example)

```json
{
  "spacesMutation": {
    "memoryPinNote": {
      "id": "<ID>",
      "pinned": true
    }
  }
}
```

## 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": "pinMemoryNote",
    "variables": {
      "noteId": "<noteId>",
      "pinned": true
    }
  }'
```
