|
|
|
@ -14827,6 +14827,223 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/ocs/v2.php/taskprocessing/tasks_provider/next_batch": { |
|
|
|
"get": { |
|
|
|
"operationId": "core-task_processing_api-get-next-scheduled-task-batch", |
|
|
|
"summary": "Returns the next n scheduled tasks for the specified set of taskTypes and providers The returned tasks are capped at ~50MiB", |
|
|
|
"description": "This endpoint requires admin access", |
|
|
|
"tags": [ |
|
|
|
"core/task_processing_api" |
|
|
|
], |
|
|
|
"security": [ |
|
|
|
{ |
|
|
|
"bearer_auth": [] |
|
|
|
}, |
|
|
|
{ |
|
|
|
"basic_auth": [] |
|
|
|
} |
|
|
|
], |
|
|
|
"parameters": [ |
|
|
|
{ |
|
|
|
"name": "providerIds[]", |
|
|
|
"in": "query", |
|
|
|
"description": "The ids of the providers", |
|
|
|
"required": true, |
|
|
|
"schema": { |
|
|
|
"type": "array", |
|
|
|
"items": { |
|
|
|
"type": "string" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "taskTypeIds[]", |
|
|
|
"in": "query", |
|
|
|
"description": "The ids of the task types", |
|
|
|
"required": true, |
|
|
|
"schema": { |
|
|
|
"type": "array", |
|
|
|
"items": { |
|
|
|
"type": "string" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "numberOfTasks", |
|
|
|
"in": "query", |
|
|
|
"description": "The number of tasks to return", |
|
|
|
"schema": { |
|
|
|
"type": "integer", |
|
|
|
"format": "int64", |
|
|
|
"default": 1 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "OCS-APIRequest", |
|
|
|
"in": "header", |
|
|
|
"description": "Required to be true for the API request to pass", |
|
|
|
"required": true, |
|
|
|
"schema": { |
|
|
|
"type": "boolean", |
|
|
|
"default": true |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "Tasks returned", |
|
|
|
"content": { |
|
|
|
"application/json": { |
|
|
|
"schema": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"ocs" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"ocs": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"meta", |
|
|
|
"data" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"meta": { |
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
}, |
|
|
|
"data": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"tasks", |
|
|
|
"has_more" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"tasks": { |
|
|
|
"type": "array", |
|
|
|
"items": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"task", |
|
|
|
"provider" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"task": { |
|
|
|
"$ref": "#/components/schemas/CoreTaskProcessingTask" |
|
|
|
}, |
|
|
|
"provider": { |
|
|
|
"type": "string" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"has_more": { |
|
|
|
"type": "boolean" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"500": { |
|
|
|
"description": "", |
|
|
|
"content": { |
|
|
|
"application/json": { |
|
|
|
"schema": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"ocs" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"ocs": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"meta", |
|
|
|
"data" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"meta": { |
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
}, |
|
|
|
"data": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"message" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"message": { |
|
|
|
"type": "string" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"401": { |
|
|
|
"description": "Current user is not logged in", |
|
|
|
"content": { |
|
|
|
"application/json": { |
|
|
|
"schema": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"ocs" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"ocs": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"meta", |
|
|
|
"data" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"meta": { |
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
}, |
|
|
|
"data": {} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"403": { |
|
|
|
"description": "Logged in account must be an admin", |
|
|
|
"content": { |
|
|
|
"application/json": { |
|
|
|
"schema": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"ocs" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"ocs": { |
|
|
|
"type": "object", |
|
|
|
"required": [ |
|
|
|
"meta", |
|
|
|
"data" |
|
|
|
], |
|
|
|
"properties": { |
|
|
|
"meta": { |
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
}, |
|
|
|
"data": {} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"/ocs/v2.php/twofactor/state": { |
|
|
|
"get": { |
|
|
|
"operationId": "core-two_factor_api-state", |
|
|
|
|