# acceptPartnershipInvite

Accept a pending partnership invitation from another organization (partnerOrgId from listPendingPartnershipInvites). permittedUserIds optionally limits which of your users are visible to the partner (empty = all). Only applies to invitations the partner initiated. Moves the partnership to ACTIVE.

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

## Variables

- `partnerOrgId`: `ID!` (required)
- `permittedUserIds`: `[ID!]`

## Response (data, an example)

```json
{
  "orgPartnershipMutation": {
    "acceptInvitation": {
      "id": "<ID>",
      "status": "PENDING",
      "direction": "SEND_ONLY",
      "partnerOrg": {
        "id": "<ID>",
        "name": "…"
      },
      "permittedUserIds": [
        "<ID>"
      ],
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  }
}
```

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