TaskList class

Bases: Resource

Creation and get_all


get: tags: - api summary: Get all tasks. description: | Return an array of all tasks.

!!! Note
  When the authorization feature is activated (available in the **Enterprise** edition only), this endpoint
  requires `TAIPY_READER` role.

Code example:

```shell
  curl -X GET http://localhost:5000/api/v1/tasks
```

responses: 200: content: application/json: schema: allOf: - type: object properties: results: type: array items: $ref: '#/components/schemas/TaskSchema' post: tags: - api summary: Create a task. description: | Create a new task from its config_id. If the config does not exist, a 404 error is returned.

!!! Note
  When the authorization feature is activated (available in the **Enterprise** edition only), this endpoint
  requires `TAIPY_EDITOR` role.

Code example:

```shell
  curl -X POST http://localhost:5000/api/v1/tasks?config_id=my_task_config
```

parameters: - in: query name: config_id schema: type: string description: The identifier of the task configuration. responses: 201: content: application/json: schema: type: object properties: message: type: string description: Status message. task: TaskSchema