---
title: "Edit Flow with JSON File API"
method: POST
path: "/v3/metainfo/flow/edit"
tags: ["WhatsApp Flows"]
---

# Edit Flow with JSON File API

`POST /v3/metainfo/flow/edit`

## Request

- Base URL: `https://cpaaswa.netcorecloud.net/api`
- URL: `https://cpaaswa.netcorecloud.net/api/v3/metainfo/flow/edit`
- Auth: HTTP bearer

Updates an existing WhatsApp flow by uploading a new flow definition as a JSON file via multipart/form-data.

## Query parameters

- `flowid` string, required

## Headers

- `Content-Type` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: JSON file containing the updated flow definition. Must be valid Meta Flow JSON.

## Response `200`

Successfully edited flow with JSON file

- EditFlowSuccessResponse
  - `status` string, required
  - `message` string, required
  - `data` object, required
    - `success` boolean, required

## Other responses

- `400`: Bad Request - Missing or Invalid Data
- `500`: Internal Server Error
- `4XX`: Meta Flow Update Error

---

[API](https://skmtc.dev/netcorecloud/apis/whatsapp-api.md) - [All operations](https://skmtc.dev/netcorecloud/apis/whatsapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/netcorecloud/apis/whatsapp-api/revisions/82cdf689fb7a?raw)
