put https://partner.gupshup.io/partner/app//flows/
Use this API to update existing flow.
Request Parameters
Key | Description | Value | Data type | Required/Optional | Constraints |
---|---|---|---|---|---|
Authorization | Access Token for the application | {{PARTNER_APP_TOKEN}} | String | Required | Should be a valid Partner App Access Token |
appId | App ID to fetch the access token | {{APP_ID}} | String | Required | The Id should be a valid app Id of Gupshup |
flowId | Flow Id | {{FLOW_ID}} | String | Required | Flow Id generated by Meta |
Sample Request
curl --location --globoff --request PUT 'https://partner.gupshup.io/partner/app/{{APP_ID}}/flows/{{FLOW_ID}}' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{
"name": "{{FLOW_ID}}",
"categories": ["{{CATEGORIES}}"]
}'
Sample Response
{
"status": "success",
"success": true
}
Status Codes
Status Code | Response | Comments |
---|---|---|
Success | ||
200 | { "status": "success", "success": true } | Successfully update a flow |
Error | ||
400 | { "status": "error", "message": "Flow can only be modified in Draft status" } | For updating flows that are not in draft state |