Add an task item
POST/task
Add a new task item.
Request
- application/json
Body
required
The task item to add.
body byterequired
Base64-encoded representation of the body of the task item.
Responses
- 201
- 400
- 500
The task item was added successfully.
- application/json
- Schema
- Example (from schema)
Schema
id uint64
Unique identifier of the task item.
{
"id": 1
}
Invalid request payload.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
A description of the error that occurred.
details string
Additional details about the error, specifying which component failed.
code integerrequired
The error code.
{
"error": "Failed to retrieve system status.",
"details": "Failed to get hostname due to network timeout.",
"code": 500
}
Error adding task item.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
A description of the error that occurred.
details string
Additional details about the error, specifying which component failed.
code integerrequired
The error code.
{
"error": "Failed to retrieve system status.",
"details": "Failed to get hostname due to network timeout.",
"code": 500
}
Loading...