# setOrganizationCallLinePolicy

Which line a manual dial to a contact defaults to: ASK_BEFORE_DIALING (ask when the contact last called on another line), USER_PRIMARY_LINE (the caller's own line) or LAST_CALL_LINE (the contact's last line, which widens who may dial from a line). Organization admins only.

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

## Variables

- `policy`: `CallLinePolicy!` (required, one of `ASK_BEFORE_DIALING`, `USER_PRIMARY_LINE`, `LAST_CALL_LINE`). Which line a MANUAL DIAL goes out on. See `Organization.callLinePolicy`. ASK_BEFORE_DIALING: Ask before the dial when the contact's last call was on a different org line; a surface with its own From picker shows an inline switch instead. The behaviour every organization has before choosing. USER_PRIMARY_LINE: The caller's own primary line, silently. LAST_CALL_LINE: The line the contact's most recent call went through: a call completed in either direction, or an inbound call the contact placed even if nobody answered, because that is still a number they know. This value also GRANTS PERMISSION:…[truncated: +194 chars]

## Response (data, an example)

```json
{
  "organizationMutation": {
    "updateOrganizationCallLinePolicy": {
      "id": "<ID>",
      "callLinePolicy": "ASK_BEFORE_DIALING"
    }
  }
}
```

## 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": "setOrganizationCallLinePolicy",
    "variables": {
      "policy": "ASK_BEFORE_DIALING"
    }
  }'
```
