Create a workflow

POST /api/v1/workflow

Headers

application/json

Body Required

  • name string Required

    The name of the workflow, must be unique.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      UUID of the account

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was updated.

    • name string

      Name of the workflow

    • type string

      The type of workflow.

    • The number of tasks on the workflow.

POST /api/v1/workflow
curl \
 -X POST https://api.plannrcrm.com/api/v1/workflow \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -d '{"name":"Pension Review"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "name": "Pension Review"
}
Response examples (200)
{
  "name": "Pension Transfer",
  "type": "simple",
  "uuid": "ac8e062a-a073-4bcf-9236-2096607103de",
  "created_at": "2024-11-20T13:24:01+00:00",
  "updated_at": "2024-11-20T13:24:01+00:00",
  "tasks_count": 5
}