put https://partner.gupshup.io/partner/app//flows//assets
Use this API to update the flow JSON
Request Parameters
Key | Description | Values | Data Types | 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 of the app | {{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 |
file | File path | {{FILE_PATH}} | file | Required |
Sample Request
curl --location --request PUT 'https://partner.gupshup.io/partner/app/{{APP_ID}}/flows/{{FLOW_ID}}/assets' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/json' \
--form 'file={{FILE_PATH}}'
Sample Response
{
"status": "success",
"success": true,
"validation_errors": []
}
Status Codes
Status Code | Response | Comments |
---|---|---|
Success | ||
200 | { "status": "success", "success": true, "validation_errors": [] } | |
Error | ||
400 | { "status":"error", "message":"Blocked by Integrity" } |