Update the Flow JSON of a draft

Replace the Flow JSON of a draft Flow. Only DRAFT Flows can be edited; a published Flow is immutable on Meta. The response carries Meta's validation errors for the new JSON (a draft with errors is saved, but cannot be published until they are fixed). Requires an API key with the whatsapp-flows:write scope and an account plan that includes WhatsApp Flows (PRO/MAX); otherwise the API answers 403 with code FEATURE_NOT_IN_PLAN.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Meta id of the WhatsApp Flow (numeric string)

Body Params
uuid
required

UUID of the WhatsApp Official channel account the Flow belongs to

flow_json
required

The new Flow JSON (object or JSON string, at most 5 MB).

Headers
string
required

API Token

Responses

details.code says which kind of refusal it was: FLOW_VALIDATION_FAILED (local or Meta validation; see details.validation_errors), INVITE_INVALID (see details.invite_errors), NOT_DRAFT (only drafts can be edited or published) or META_REJECTED (Meta's own answer, in details.reason).

401

Authentication error - invalid or missing api-token

whatsapp-flows:write scope, or (write routes) the account plan does not include WhatsApp Flows (FEATURE_NOT_IN_PLAN)

POST /v2/whatsapp-flows/sync)

409

The channel has no valid WhatsApp Official authentication (details.code = CHANNEL_NOT_CONFIGURED). Reconnect it in the platform; retrying will not help.

500

Unexpected error on Clint's side (details.code = INTERNAL_ERROR).

details.code = UPSTREAM_ERROR). Safe to retry.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json