Rotate a channel's credential without deleting it
PUT/api/channels/:channel/credentials
Doc 65 S10. Replaces the one credential this channel's source can rotate
in place, keeping the channel's id, conversations and settings:
Telegram — a new bot token for the SAME bot (validated with getMe; a
token for another bot is refused, and the webhook is re-registered);
SMS — the sms_from sender; Netgsm / GSM gateway — the sip_password
(the signalling gateway is told to re-read its accounts). Any other
source answers 422. Same permission as editing the channel.
Request
Responses
- 200
- 401
- 403
- 404
- 422
The channel, with its new credential applied.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
Resource not found (or not visible to the current tenant).
The request failed validation.