Skip to main content
PUT
/
flow
/
definition
/
{id}
Update flow definition
curl --request PUT \
  --url https://api.indieflow.app/v1/flow/definition/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "webhook": {
    "url": "<string>"
  },
  "steps": {}
}
'
{
  "status": "success",
  "exit_code": "success",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "webhook": {
      "url": "<string>",
      "signature_key": "<string>"
    },
    "steps": {},
    "created_at": 123,
    "updated_at": 123,
    "status": "active",
    "current_version": "<string>"
  }
}

Authorizations

X-Api-Key
string
header
required

The api key given to you when you register, no needed when using through RapidAPI

Path Parameters

id
string
required

The flow definition id or name

Body

application/json

Information about the flow to be updated

Contains the flow definition

name
string

The flow name, it must follow the following regexp: ^[a-zA-Z_$][a-zA-Z_$0-9]*$

description
string

A brief description of what this flow is about

webhook
object

Contains information about the target endpoint that will be acting as a webhook

steps
object

Key-Value pair object that contains the steps that will consist on this workflow, the object Key must follow the following regexp: ^[a-zA-Z_$][a-zA-Z_$0-9]*$

NOTE: If you want to define a step with no additional configuration you can just define the step name with a null value. Example:

"steps": {
"step_with_no_attributes": null
}

Response

The flow detail

A simple response representation Successful response after creating or retrieving a flow definition

status
enum<string>

The response status returned from the server, it can be:

  • success: The request worked as expected
  • error: The request returned an error
Available options:
success,
error
exit_code
enum<string>

The response exit code returned from the server, it can be:

  • success: The request worked as expected
  • validation_error: The request contains an user input related error
  • unauthorized: Invalid credentials
  • generic_error: The request contains a generic error
  • service_down: The backend server is down
  • flow_disabled: The requested flow is currently marked as disabled
  • service_plan_max_registered_flows_reached: The maximum number of registered flows has been reached, this error also applies when trying to submit a flow after downgrading a plan
  • service_plan_max_steps_per_flow_reached: The maximum number of steps per flow has been exceeded, this error also applies when trying to submit a flow after downgrading a plan
Available options:
success,
validation_error,
unauthorized,
generic_error,
service_unavailable,
resource_not_found,
step_already_executed,
flow_disabled,
service_plan_max_registered_flows_reached,
service_plan_max_steps_per_flow_reached
data
object

Schema that represents any serializable data Contains the flow definition