Create a new job
POST/job
Submit a new job to the queue for processing.
Request
- application/json
Body
required
The job to create.
operation
object
required
The operation to perform, as a JSON object.
The operation to perform, as a JSON object.
The target hostname for routing (_any, _all, or specific hostname).
Responses
- 201
- 400
- 401
- 403
- 500
The job was created successfully.
- application/json
- Schema
- Example (from schema)
Schema
Unique identifier for the created job.
Initial status of the job.
The KV revision number.
Creation timestamp.
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "unprocessed",
"revision": 1,
"timestamp": "2025-06-14T10:00:00Z"
}
Invalid request payload.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Unauthorized - API key required
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden - Insufficient permissions
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Error creating job.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}