# assignContact

Assign a teammate to contacts (get userId from listTeammates). role defaults to POINT_PERSON; pass PARTICIPANT for a secondary assignment. The removal twin is unassignContact. Async bulk job: returns a bulkTaskId to poll with getBulkTask.

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

## Variables

- `contactIds`: `[String!]!` (required)
- `userId`: `ID!` (required)
- `role`: `ContactToUserMappingStatus` (default `POINT_PERSON`, one of `REVOKED`, `POINT_PERSON`, `PARTICIPANT`)

## Response (data, an example)

```json
{
  "contactMutation": {
    "bulkAssignUsersOnContacts": {
      "mode": "SYNC",
      "bulkTaskId": "…"
    }
  }
}
```

## 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": "assignContact",
    "variables": {
      "contactIds": [
        "<String>"
      ],
      "userId": "<userId>"
    }
  }'
```
