Skip to main content
PUT
/
flows
/
{org}
/
template_file
Create or update flow with template
curl --request PUT \
  --url https://app.kosli.com/api/v2/flows/{org}/template_file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'data_json={
  "name": "<string>",
  "description": "<string>",
  "visibility": "public"
}' \
  --form 'template_file=<string>'
{
  "message": "<string>",
  "errors": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required

Body

multipart/form-data
data_json
CreateFlow · object
required

Flow metadata in JSON format

template_file
string | null

The flow template file (max size: 10MB)

Response

Successful flow update

Last modified on April 7, 2026