# setContactPropertyRole

The CONTACT_PROPERTY role ("Tenant") on a getContact properties row (its `id`, not the property's). roleId null clears it. An Only-one role moves off its previous holder.

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

## Variables

- `contactId`: `ID!` (required)
- `contactPropertyId`: `ID!` (required)
- `roleId`: `ID`

## Response (data, an example)

```json
{
  "contactMutation": {
    "setContactPropertyRole": {
      "id": "<ID>",
      "properties": [
        {
          "id": "<ID>",
          "propertyString": "…",
          "type": "OWNS",
          "role": {
            "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": "setContactPropertyRole",
    "variables": {
      "contactId": "<contactId>",
      "contactPropertyId": "<contactPropertyId>"
    }
  }'
```
