Flows
Update Flow

Update Flow JSON

Used to upload a flow JSON file with the flow content. Refer to flow JSON documentation here https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson

The file must be attached as from data. The response will include any validation errors in the JSON file

post/{Version}/{Flow-ID}/assets

Request

  • Base URL
    https://graph.facebook.com
  • URL
    https://graph.facebook.com/{Version}/{Flow-ID}/assets
  • Auth
    HTTP bearer

Request body multipart/form-data

asset_typestring
filestring binary
namestring

Example request

{
  "asset_type": "FLOW_JSON",
  "name": "flow.json"
}

Response

Upload Flow JSON Asset

successboolean

Example response

{
  "success": true,
  "validation_errors": [
    {
      "column_end": 30,
      "column_start": 17,
      "error": "INVALID_PROPERTY",
      "error_type": "JSON_SCHEMA_ERROR",
      "line_end": 46,
      "line_start": 46,
      "message": "The property \"initial-text\" cannot be specified at \"$root/screens/0/layout/children/2/children/0\"."
    }
  ]
}

Changes

No recorded changes to this operation across all 5 revisions of this API.