Get a task item by ID
GET/task/:id
Retrieve a specific task item by its ID.
Request
Path Parameters
id uint64required
Responses
- 200
- 404
- 500
The task item.
- application/json
- Schema
- Example (from schema)
Schema
id uint64
Unique identifier of the task item.
created date-time
Creation timestamp of the task item.
body byte
Base64-encoded representation of the body of the task item.
{
"id": 1,
"created": "2024-07-29T15:51:28.071Z",
"body": "U29tZSBleGFtcGxlIGJ5dGVzIGRhdGE="
}
Task item not found.
- 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 retrieving 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...