PUT
Update Phone Number Rotation
Меняет только настройки смены номера. Поле is_active, входящие звонки и кампании без смены номера остаются без изменений. Отправьте хотя бы одно из полей:
  • rotation_status — paused или active;
  • daily_cap_override — собственный лимит номера в сутки или null, чтобы его убрать. Лимит только понижает лимит кампании и не может быть выше максимума платформы.
Паузу, которую поставил оператор связи (rotation_status_reason: "carrier"), снять нельзя: ответ 409 с кодом rotation_carrier_paused. Пауза, поставленная платформой по качеству (auto_health), снимается обычным запросом. Повторная пауза уже приостановленного номера причину не меняет. Ответ содержит поля rotation_status, rotation_status_reason, rotation_status_changed_at, cooldown_until, daily_cap_override, rotation_last_selected_at и rotation_attempts_today. Те же поля есть в списке номеров. Частота запросов ограничена на организацию; при превышении ответ 429 с заголовком Retry-After.

Headers

authorization
string | null
X-API-Key
string | null

Path Parameters

config_id
integer
required
phone_number_id
integer
required

Body

application/json

Partial update: only fields that are present change.

rotation_status
enum<string> | null
Available options:
active,
paused
daily_cap_override
integer | null

Lowers the campaign limit for this number; null clears it.

Required range: x >= 1

Response

Successful Response

id
integer
required
telephony_configuration_id
integer
required
address
string
required
address_normalized
string
required
address_type
string
required
is_active
boolean
required
is_default_caller_id
boolean
required
extra_metadata
Extra Metadata · object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
country_code
string | null
label
string | null
inbound_workflow_id
integer | null
inbound_workflow_name
string | null
rotation_status
string
default:active
rotation_status_reason
string | null
rotation_status_changed_at
string<date-time> | null
cooldown_until
string<date-time> | null
daily_cap_override
integer | null
rotation_last_selected_at
string<date-time> | null
rotation_attempts_today
integer | null
daily_cap_ceiling
integer | null
effective_daily_cap_override
integer | null
provider_sync
ProviderSyncStatus · object | null

Result of pushing a phone-number change to the upstream provider.

Returned alongside create/update responses when the route attempted to sync inbound webhook configuration. ok=False is a warning, not a fatal error — the DB write succeeded.