# shareContactsWithPartner

shareContactWithPartner for many contacts (contactIds), as a bulk task (bulkTaskId, getBulkTask). partnerOrganizationId from listPartnerships; assignments name the PARTNER org users who get it (userId, role POINT_PERSON | PARTICIPANT). include* choose what is copied (core, notes, calls, texts default true; tasks false).

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

## Variables

- `contactIds`: `[String!]!` (required)
- `partnerOrganizationId`: `ID!` (required)
- `assignments`: `[BulkShareContactUserAssignmentInput!]!` (required)
  - `userId`: `ID!` (required)
  - `role`: `ShareContactAssignmentRole!` (required, one of `POINT_PERSON`, `PARTICIPANT`)
  - `createTask`: `BulkShareContactCreateTaskInput`
    - `title`: `String!` (required)
    - `taskType`: `String`
    - `timezone`: `Timezone!` (required, one of `IDLW`, `SST`, `HST`, `AKST`, `PST`, `MST`, `AZ`, `CST`, `EST`, `AST`, `BRT`, `FNT`, `AZOT`, `UTC`, `CET`, `EET`, `MSK`, `GST`, `PKT`, `BST`, `ICT`, `JST`, `AEST`, `NCT`, `NZST`). AZ: Arizona: MST all year, no DST.
    - `description`: `String`
    - `endDate`: `DateTime!` (required)
    - `participants`: `[String!]`
    - `autoCompleteOnNoteAdded`: `Boolean`
    - `autoCompleteOnReassignment`: `Boolean`
    - `createCalendarEvent`: `Boolean`
- `includeContactCore`: `Boolean`
- `includeTasks`: `Boolean`
- `includeNotes`: `Boolean`
- `includeCalls`: `Boolean`
- `includeTexts`: `Boolean`

## Response (data, an example)

```json
{
  "contactMutation": {
    "bulkShareContacts": {
      "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": "shareContactsWithPartner",
    "variables": {
      "contactIds": [
        "<String>"
      ],
      "partnerOrganizationId": "<partnerOrganizationId>",
      "assignments": [
        {
          "userId": "<userId>",
          "role": "POINT_PERSON"
        }
      ]
    }
  }'
```
