put https://partner.gupshup.io/partner/app//callback/mode
Use this API to update the type of events you receive on your callback URL for your Gupshup app
Parameters
Parameters | Value | Description |
---|---|---|
Authorization | {{PARTNER_APP_TOKEN}} | Access Token for the application |
appId | {{APP_ID}} | Unique Identifier for Gupshup App |
modes | {{MODES}} | Update inbound events that you want to receive on your App's callback URL. You may provide all the values for which you want to receive events. If no values are provided, all events will be deselected. Possible values - DLR events: DELIVERED, READ, SENT, DELETED, and OTHERS. System events: TEMPLATE and ACCOUNT. |
Sample Request
curl --location --request PUT 'https://partner.gupshup.io/partner/app/{{APP_ID}}/callback/mode' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'modes={{MODES}}'
Sample Response
{
Status: 204 Accepted
}