SequenceList class
Bases: Resource
Creation and get_all
get: tags: - api summary: Get all sequences. description: | Return an array of all sequences.
!!! 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/sequences
```
responses: 200: content: application/json: schema: allOf: - type: object properties: results: type: array items: $ref: '#/components/schemas/SequenceSchema' post: tags: - api summary: Create a sequence. description: | Create a sequence from scenario_id, sequence_name and task_ids. If the scenario_id does not exist or sequence_name is not provided, 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 --data '{"scenario_id": "SCENARIO_scenario_id", "sequence_name": "sequence", "tasks": []}' \
http://localhost:5000/api/v1/sequences
```
parameters: - in: query name: scenario_id schema: type: string description: The Scenario the Sequence belongs to. name: sequence_name schema: type: string description: The name of the Sequence. name: tasks schema: type: list[string] description: A list of task id of the Sequence.
responses: 201: content: application/json: schema: type: object properties: message: type: string description: Status message. sequence: SequenceSchema