| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

| Field                    | Type                    | Required | Description                                         |
|--------------------------|-------------------------|----------|-----------------------------------------------------|
| `companyUuid`           | string                  | required | Company UUID                                       |
| `uuid`                   | string                  | required | Task flow UUID                                     |
| `status`                 | string                  | required | Status of the task flow (draft, published, archived)|
| `title`                  | string                  | required | Title of the task flow                             |
| `internalName`          | string                  |          | Internal name of the task flow                     |
| `description`           | string                  |          | Description of the task flow                       |
| `taskUuids`             | array of uuids          |          | Array of task UUIDs                                |
| `isTaskFlowSequential`  | boolean                 |          | Whether the task flow is sequential (true/false)  |
| `segmentUuids`          | array of uuids          |          | Array of segment UUIDs                              |
| `autoAssignToNewWorkers`| boolean                 |          | Auto-assignment for new workers (true/false)      |
| `taskFlowType`          | string                  |          | Task flow type (preboarding, onboarding, test)    |
| `messages`              | object                  |          | Object containing messages                          |
| `deadline`              | object                  |          | Object containing deadline information              |
| `reminder`              | object                  |          | Object containing reminder information              |
| `redirectUrl`           | uri                     |          | URL to redirect after action                        |

# Responses

# `201`      One or many taskFlow documents created. Wrapped in a JsonAPI root response.

# `500`      default error response

---

```bash
curl --request POST \
     --url https://services.fountain.com/api/servicetodo/taskFlows \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{"status":"draft"}'
```

---

application/json

`201`  `500`
