Set operator status
chaport_set_operator_statusSet an operator's status (for example online, away or offline as shown in Chaport), valid for ttl_seconds or until a given time (give exactly one of the two). The status stays in effect until it expires or someone changes it. Changes who gets new chats. POST /operators/{operatorId}/status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Status name, for example "online". The same values chaport_list_operators shows in lastStatus. | |
| operator_id | Yes | Operator id (from chaport_list_operators). | |
| ttl_seconds | No | Keep the status for this many seconds. Give this or valid_until. | |
| valid_until | No | Keep the status until this ISO 8601 date-time. Give this or ttl_seconds. |