cURL
curl --request PUT \ --url https://api.closebot.com/agency/source/{sourceId} \ --header 'Content-Type: application/json' \ --header 'X-CB-KEY: <api-key>' \ --data ' { "name": "<string>", "autoShutoff": true, "gracefulGoodbye": true, "isAvailabilityContactTimezone": true, "respondWindows": [ { "dayOfWeekUtc": "<string>", "startTimeUtc": "<string>", "duration": "<string>" } ], "doNotRespondWindows": [ { "start": "2023-11-07T05:31:56Z", "end": "2023-11-07T05:31:56Z" } ], "summarizeAttachments": true, "respondToReactions": true, "markConversationsAsUnread": true, "wallet": { "reBilling": true, "autoRefill": true, "topUpAmount": 123, "refillThreshold": 123, "responseUnitCostOverride": "<string>", "storageUnitCostOverride": "<string>", "userUnitCostOverride": "<string>", "stripeCustomerId": "<string>" }, "accountsWithAccess": [ "<string>" ], "webhookCallback": "<string>" } '
{ "agencyId": "<string>", "sourceId": "<string>", "name": "<string>", "category": "<string>", "key": "<string>", "accessToken": "<string>", "address": "<string>", "connected": true, "autoShutoff": true, "gracefulGoodbye": true, "bots": [ { "id": "<string>", "botName": "<string>", "tags": [ { "name": "<string>", "approveDeny": true, "id": "<string>" } ], "channels": [ "<string>" ], "personaNameOverride": "<string>", "enabled": true } ], "accountsWithAccess": [ "<string>" ], "isAvailabilityContactTimezone": true, "respondWindows": [ { "dayOfWeekUtc": "<string>", "startTimeUtc": "<string>", "duration": "<string>" } ], "doNotRespondWindows": [ { "start": "2023-11-07T05:31:56Z", "end": "2023-11-07T05:31:56Z" } ], "summarizeAttachments": true, "respondToReactions": true, "markConversationAsUnread": true, "webhookCallback": "<string>", "wallet": { "reBilling": true, "autoRefill": true, "topUpAmount": 123, "refillThreshold": 123, "stripeCustomerId": "<string>", "currency": "<string>", "responseUnitCostOverride": "<string>", "storageUnitCostOverride": "<string>", "userUnitCostOverride": "<string>" } }
Updates fields in a source.
Only non-null fields are updated. Any missing or null field is ignored.
CloseBot API Key Authorization
The source ID.
The fields to update.
Show child attributes
Success