PUT
/
transform
/
v1
/
workflows
/
{id}
curl --request PUT \
  --url https://api.invopop.com/transform/v1/workflows/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "country": "ES",
  "description": "<string>",
  "draft": true,
  "name": "<string>",
  "rescue": [
    {
      "action": "email.send",
      "config": {},
      "id": "186522a6-e697-4e34-8498-eee961bcb845",
      "name": "<string>",
      "next": [
        {
          "code": "<string>",
          "status": "OK",
          "step_id": "186522a6-e697-4e34-8498-eee961bcb845",
          "steps": [
            {}
          ],
          "stop": true
        }
      ],
      "notes": "<string>",
      "summary": "<string>"
    }
  ],
  "schema": "bill/invoice",
  "steps": [
    {
      "action": "email.send",
      "config": {},
      "id": "186522a6-e697-4e34-8498-eee961bcb845",
      "name": "<string>",
      "next": [
        {
          "code": "<string>",
          "status": "OK",
          "step_id": "186522a6-e697-4e34-8498-eee961bcb845",
          "steps": [
            {}
          ],
          "stop": true
        }
      ],
      "notes": "<string>",
      "summary": "<string>"
    }
  ]
}'
{
  "country": "<string>",
  "created_at": "<string>",
  "description": "<string>",
  "disabled": true,
  "draft": true,
  "hash": "<string>",
  "id": "186522a6-e697-4e34-8498-eee961bcb845",
  "name": "<string>",
  "rescue": [
    {
      "action": "email.send",
      "config": {},
      "id": "186522a6-e697-4e34-8498-eee961bcb845",
      "name": "<string>",
      "next": [
        {
          "code": "<string>",
          "status": "OK",
          "step_id": "186522a6-e697-4e34-8498-eee961bcb845",
          "steps": [
            {}
          ],
          "stop": true
        }
      ],
      "notes": "<string>",
      "summary": "<string>"
    }
  ],
  "schema": "<string>",
  "steps": [
    {
      "action": "email.send",
      "config": {},
      "id": "186522a6-e697-4e34-8498-eee961bcb845",
      "name": "<string>",
      "next": [
        {
          "code": "<string>",
          "status": "OK",
          "step_id": "186522a6-e697-4e34-8498-eee961bcb845",
          "steps": [
            {}
          ],
          "stop": true
        }
      ],
      "notes": "<string>",
      "summary": "<string>"
    }
  ],
  "updated_at": "<string>",
  "version": "<string>",
  "versions": [
    {
      "created_at": "<string>",
      "hash": "<string>",
      "name": "<string>",
      "src": "<string>",
      "src_id": "<string>",
      "version": "<string>"
    }
  ]
}

Path Parameters

id
string
required

UUID (any version) of the workflow to create.

Example:

"186522a6-e697-4e34-8498-eee961bcb845"

Body

application/json

Response

200 - application/json
OK

The response is of type object.