post https://partner.gupshup.io/partner/app//mmlite/msg/enable
Use this API to enable MM-lite messaging for a live app that has already been onboarded for mm-lite.
Request Parameters
Key | Description | Value | Data type | Required/Optional | Constraints |
---|---|---|---|---|---|
Authorization | Access Token for the application | {{PARTNER_APP_TOKEN}} | String | Required | S/hould be a valid Partner App Access Token. |
appId | App ID to fetch the access token | {{APP_ID}} | String | Required |
|
Sample Request
curl --location --request POST 'https://partner.gupshup.io/partner/app/:appId/mmlite/msg/enable' \
--header 'Accept: application/json' \
--header 'Authorization: <PARTNER_APP_TOKEN>'
Sample Response
{
"status": "success"
}
Status Codes
Status Code | Response | Comments |
---|---|---|
Success | ||
200 | { "status": "success"} | |
Error | ||
400 | { "status": "error","message": "MM lite is not enabled for this app"} | |
401 | { "status":"error","message":"Unauthorised access to the resource. Please review request parameters and headers and retry"} |