# updateContactRelationship

Set the relation label and note on a related person (getContactConnections linkedRelationships id). Both are written, so an omitted one is cleared: send the current note to keep it.

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

## Variables

- `relationshipId`: `ID!` (required)
- `relation`: `String`
- `note`: `String`

## Response (data, an example)

```json
{
  "contactMutation": {
    "updateContactRelationship": {
      "id": "<ID>",
      "relation": "…",
      "note": "…"
    }
  }
}
```

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