# setOrganizationTextReplyLinePolicy

Which line a contact's text composer opens on: USER_PRIMARY_LINE (the sender's own line) or LAST_THREAD_LINE (the line the contact last talked to, which widens who may text from a line). Organization admins only.

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

## Variables

- `policy`: `TextReplyLinePolicy!` (required, one of `USER_PRIMARY_LINE`, `LAST_THREAD_LINE`). Which line a CONTACT-SIDE text composer defaults to. See `Organization.textReplyLinePolicy`. USER_PRIMARY_LINE: The composer opens on the sender's own primary sendable line, whatever number the contact has been talking to. The behavior every organization had before this setting existed. LAST_THREAD_LINE: The composer opens on the line the contact's most recent organization-wide conversation lives on, so the contact keeps seeing one number. Falls back to the sender's primary line when the contact has no prior conversation, or when the winning line cannot currently send. This value also GRANTS P…[truncated: +196 chars]

## Response (data, an example)

```json
{
  "organizationMutation": {
    "updateOrganizationTextReplyLinePolicy": {
      "id": "<ID>",
      "textReplyLinePolicy": "USER_PRIMARY_LINE"
    }
  }
}
```

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