Create a new workflow with the given UUID.
curl --request PUT \
--url https://api.invopop.com/transform/v1/workflows/{id} \
--header 'Authorization: Bearer <token>' \
--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>"
}
]
}
Use the Bearer
scheme with a valid JWT token to authenticate requests. Example: Authorization: Bearer <token>
UUID (any version) of the workflow to create.
"186522a6-e697-4e34-8498-eee961bcb845"
OK
The response is of type object
.
Was this page helpful?
curl --request PUT \
--url https://api.invopop.com/transform/v1/workflows/{id} \
--header 'Authorization: Bearer <token>' \
--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>"
}
]
}