# archiveContacts

Archive (soft-delete) contacts by id. Async bulk job: returns a bulkTaskId to poll with getBulkTask. Archived contacts drop out of the CRM but are recoverable: unarchiveContacts restores them (bulk), updateContact(isArchived: false) one. Nothing is destroyed: notes, activities, tags and deals survive and come back with the contact.

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

## Variables

- `contactIds`: `[String!]!` (required)

## Response (data, an example)

```json
{
  "contactMutation": {
    "archiveContacts": {
      "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": "archiveContacts",
    "variables": {
      "contactIds": [
        "<String>"
      ]
    }
  }'
```
