Skip to main content

Unpublish a version

POST 

/v1/flows/:flow_id/versions/:version_id/unpublish

Takes the published version off WhatsApp: 202, and the version is deprecated once the background job has run; the flow's status becomes inactive and current_version null. One-way: to go live again, post the Flow JSON as a new version and publish that. 409 not_published unless the version is currently published. Idempotency-Key is accepted. Requires the flows:write scope.

Request​

Responses​

Replay of an earlier completed request with the same Idempotency-Key: the original 202 response, with Idempotent-Replayed: true. Nothing was unpublished a second time.

Response Headers
    Idempotent-Replayed

    Always true on a replay.