Upload Flow JSON Asset

POST {{base-url}}/{{flow-id}}/assets

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

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"name", "value"=>"flow.json", "datatype"=>"string"}, {"name"=>"asset_type", "value"=>"FLOW_JSON", "datatype"=>"string"}]

HEADERS

| Key | Datatype | Required | Description |

RESPONSES

status: OK

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