Properties
| Name | Type | Description |
|---|---|---|
| taskId | string | Unique task identifier |
| type | string | Task type |
| status | string | Task status |
| submitDate | string | When the task was submitted |
| startedDate | string | When the task started executing |
| completedDate | string | When the task completed |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/apache-james/refs/heads/main/json-schema/webadmin-rest-api-task-schema.json",
"title": "Task",
"description": "An asynchronous task",
"type": "object",
"properties": {
"taskId": {
"type": "string",
"format": "uuid",
"description": "Unique task identifier",
"example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"type": {
"type": "string",
"description": "Task type",
"example": "reindexing"
},
"status": {
"type": "string",
"description": "Task status",
"enum": [
"waiting",
"inProgress",
"completed",
"failed",
"cancelled"
],
"example": "completed"
},
"submitDate": {
"type": "string",
"format": "date-time",
"description": "When the task was submitted",
"example": "2025-03-15T14:30:00Z"
},
"startedDate": {
"type": "string",
"format": "date-time",
"description": "When the task started executing",
"example": "2025-03-15T14:30:01Z"
},
"completedDate": {
"type": "string",
"format": "date-time",
"description": "When the task completed",
"example": "2025-03-15T14:30:05Z"
}
}
}