2024-05-17 05:54:31 -04:00
{
"openapi" : "3.0.3" ,
"info" : {
2024-07-02 03:12:48 -04:00
"title" : "core-ex_app" ,
2024-05-17 05:54:31 -04:00
"version" : "0.0.1" ,
"description" : "Core functionality of Nextcloud" ,
"license" : {
"name" : "agpl"
}
} ,
"components" : {
"securitySchemes" : {
"basic_auth" : {
"type" : "http" ,
"scheme" : "basic"
} ,
"bearer_auth" : {
"type" : "http" ,
"scheme" : "bearer"
}
} ,
"schemas" : {
"Capabilities" : {
"type" : "object" ,
"required" : [
"core"
] ,
"properties" : {
"core" : {
"type" : "object" ,
"required" : [
"pollinterval" ,
"webdav-root" ,
"reference-api" ,
"reference-regex" ,
2025-08-18 06:46:00 -04:00
"mod-rewrite-working"
2024-05-17 05:54:31 -04:00
] ,
"properties" : {
"pollinterval" : {
"type" : "integer" ,
"format" : "int64"
} ,
"webdav-root" : {
"type" : "string"
} ,
"reference-api" : {
"type" : "boolean"
} ,
"reference-regex" : {
"type" : "string"
} ,
"mod-rewrite-working" : {
"type" : "boolean"
2025-08-16 17:43:14 -04:00
} ,
"user" : {
"type" : "object" ,
"required" : [
"language" ,
"locale" ,
"timezone"
] ,
"properties" : {
"language" : {
"type" : "string"
} ,
"locale" : {
"type" : "string"
} ,
"timezone" : {
"type" : "string"
}
}
2024-05-17 05:54:31 -04:00
}
}
}
}
} ,
"OCSMeta" : {
"type" : "object" ,
"required" : [
"status" ,
"statuscode"
] ,
"properties" : {
"status" : {
"type" : "string"
} ,
"statuscode" : {
"type" : "integer"
} ,
"message" : {
"type" : "string"
} ,
"totalitems" : {
"type" : "string"
} ,
"itemsperpage" : {
"type" : "string"
}
}
} ,
"PublicCapabilities" : {
"type" : "object" ,
"required" : [
"bruteforce"
] ,
"properties" : {
"bruteforce" : {
"type" : "object" ,
"required" : [
"delay" ,
"allow-listed"
] ,
"properties" : {
"delay" : {
"type" : "integer" ,
"format" : "int64"
} ,
"allow-listed" : {
"type" : "boolean"
}
}
}
}
} ,
"TaskProcessingIO" : {
"type" : "object" ,
"additionalProperties" : {
"anyOf" : [
{
"type" : "number"
} ,
{
"type" : "array" ,
"items" : {
"type" : "number"
}
} ,
{
"type" : "string"
} ,
{
"type" : "array" ,
"items" : {
"type" : "string"
}
}
]
}
} ,
"TaskProcessingTask" : {
"type" : "object" ,
"required" : [
"id" ,
"lastUpdated" ,
"type" ,
"status" ,
"userId" ,
"appId" ,
"input" ,
"output" ,
"customId" ,
"completionExpectedAt" ,
2024-09-24 09:53:13 -04:00
"progress" ,
"scheduledAt" ,
"startedAt" ,
2025-08-06 06:35:50 -04:00
"endedAt" ,
2025-11-26 09:48:30 -05:00
"allowCleanup" ,
"includeWatermark"
2024-05-17 05:54:31 -04:00
] ,
"properties" : {
"id" : {
"type" : "integer" ,
"format" : "int64"
} ,
"lastUpdated" : {
"type" : "integer" ,
"format" : "int64"
} ,
"type" : {
"type" : "string"
} ,
"status" : {
"type" : "string" ,
"enum" : [
"STATUS_CANCELLED" ,
"STATUS_FAILED" ,
"STATUS_SUCCESSFUL" ,
"STATUS_RUNNING" ,
"STATUS_SCHEDULED" ,
"STATUS_UNKNOWN"
]
} ,
"userId" : {
"type" : "string" ,
"nullable" : true
} ,
"appId" : {
"type" : "string"
} ,
"input" : {
"$ref" : "#/components/schemas/TaskProcessingIO"
} ,
"output" : {
2025-07-25 21:26:52 -04:00
"nullable" : true ,
"allOf" : [
{
"$ref" : "#/components/schemas/TaskProcessingIO"
}
]
2024-05-17 05:54:31 -04:00
} ,
"customId" : {
"type" : "string" ,
"nullable" : true
} ,
"completionExpectedAt" : {
"type" : "integer" ,
"format" : "int64" ,
"nullable" : true
} ,
"progress" : {
"type" : "number" ,
"format" : "double" ,
"nullable" : true
2024-09-24 09:53:13 -04:00
} ,
"scheduledAt" : {
"type" : "integer" ,
"format" : "int64" ,
"nullable" : true
} ,
"startedAt" : {
"type" : "integer" ,
"format" : "int64" ,
"nullable" : true
} ,
"endedAt" : {
"type" : "integer" ,
"format" : "int64" ,
"nullable" : true
2025-08-06 06:35:50 -04:00
} ,
2025-08-07 04:57:39 -04:00
"allowCleanup" : {
2025-08-06 06:35:50 -04:00
"type" : "boolean"
2025-11-26 09:48:30 -05:00
} ,
"includeWatermark" : {
"type" : "boolean"
2024-05-17 05:54:31 -04:00
}
}
}
}
} ,
"paths" : {
"/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/file/{fileId}" : {
"get" : {
"operationId" : "task_processing_api-get-file-contents-ex-app" ,
"summary" : "Returns the contents of a file referenced in a task(ExApp route version)" ,
"description" : "This endpoint requires admin access" ,
"tags" : [
"task_processing_api"
] ,
"security" : [
{
"bearer_auth" : [ ]
} ,
{
"basic_auth" : [ ]
}
] ,
"parameters" : [
{
"name" : "taskId" ,
"in" : "path" ,
"description" : "The id of the task" ,
"required" : true ,
"schema" : {
"type" : "integer" ,
"format" : "int64"
}
} ,
{
"name" : "fileId" ,
"in" : "path" ,
"description" : "The file id of the file to retrieve" ,
"required" : true ,
"schema" : {
"type" : "integer" ,
"format" : "int64"
}
} ,
{
"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" : "File content returned" ,
"content" : {
"*/*" : {
"schema" : {
"type" : "string" ,
"format" : "binary"
}
}
}
} ,
"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"
}
}
}
}
}
}
}
}
}
} ,
"404" : {
"description" : "Task or file not found" ,
"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"
}
}
}
}
}
}
}
}
}
2025-08-26 04:21:10 -04:00
} ,
"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" : { }
}
}
}
}
}
}
2024-05-17 05:54:31 -04:00
}
}
}
} ,
2024-07-18 02:51:43 -04:00
"/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/file" : {
"post" : {
"operationId" : "task_processing_api-set-file-contents-ex-app" ,
"summary" : "Upload a file so it can be referenced in a task result (ExApp route version)" ,
"description" : "Use field 'file' for the file upload\nThis endpoint requires admin access" ,
"tags" : [
"task_processing_api"
] ,
"security" : [
{
"bearer_auth" : [ ]
} ,
{
"basic_auth" : [ ]
}
] ,
"parameters" : [
{
"name" : "taskId" ,
"in" : "path" ,
"description" : "The id of the task" ,
"required" : true ,
"schema" : {
"type" : "integer" ,
"format" : "int64"
}
} ,
{
"name" : "OCS-APIRequest" ,
"in" : "header" ,
"description" : "Required to be true for the API request to pass" ,
"required" : true ,
"schema" : {
"type" : "boolean" ,
"default" : true
}
}
] ,
"responses" : {
"201" : {
"description" : "File created" ,
"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" : [
"fileId"
] ,
"properties" : {
"fileId" : {
"type" : "integer" ,
"format" : "int64"
}
}
}
}
}
}
}
}
}
} ,
"400" : {
"description" : "File upload failed or no file was uploaded" ,
"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"
}
}
}
}
}
}
}
}
}
} ,
"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"
}
}
}
}
}
}
}
}
}
} ,
"404" : {
"description" : "Task not found" ,
"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"
}
}
}
}
}
}
}
}
}
2025-08-26 04:21:10 -04:00
} ,
"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" : { }
}
}
}
}
}
}
2024-07-18 02:51:43 -04:00
}
}
}
} ,
2024-05-17 05:54:31 -04:00
"/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/progress" : {
"post" : {
"operationId" : "task_processing_api-set-progress" ,
"summary" : "Sets the task progress" ,
"description" : "This endpoint requires admin access" ,
"tags" : [
"task_processing_api"
] ,
"security" : [
{
"bearer_auth" : [ ]
} ,
{
"basic_auth" : [ ]
}
] ,
2024-07-02 03:08:04 -04:00
"requestBody" : {
"required" : true ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"progress"
] ,
"properties" : {
"progress" : {
"type" : "number" ,
"format" : "double" ,
"description" : "The progress"
}
}
}
2024-05-17 05:54:31 -04:00
}
2024-07-02 03:08:04 -04:00
}
} ,
"parameters" : [
2024-05-17 05:54:31 -04:00
{
"name" : "taskId" ,
"in" : "path" ,
"description" : "The id of the task" ,
"required" : true ,
"schema" : {
"type" : "integer" ,
"format" : "int64"
}
} ,
{
"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" : "Progress updated successfully" ,
"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" : [
"task"
] ,
"properties" : {
"task" : {
"$ref" : "#/components/schemas/TaskProcessingTask"
}
}
}
}
}
}
}
}
}
} ,
"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"
}
}
}
}
}
}
}
}
}
} ,
"404" : {
"description" : "Task not found" ,
"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"
}
}
}
}
}
}
}
}
}
2025-08-26 04:21:10 -04:00
} ,
"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" : { }
}
}
}
}
}
}
2024-05-17 05:54:31 -04:00
}
}
}
} ,
"/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/result" : {
"post" : {
"operationId" : "task_processing_api-set-result" ,
"summary" : "Sets the task result" ,
"description" : "This endpoint requires admin access" ,
"tags" : [
"task_processing_api"
] ,
"security" : [
{
"bearer_auth" : [ ]
} ,
{
"basic_auth" : [ ]
}
] ,
2024-07-02 03:08:04 -04:00
"requestBody" : {
"required" : false ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"properties" : {
"output" : {
"type" : "object" ,
"nullable" : true ,
2025-06-01 07:39:11 -04:00
"default" : null ,
2024-07-18 02:51:43 -04:00
"description" : "The resulting task output, files are represented by their IDs" ,
2024-07-02 03:08:04 -04:00
"additionalProperties" : {
"type" : "object"
}
} ,
"errorMessage" : {
"type" : "string" ,
"nullable" : true ,
2025-06-01 07:39:11 -04:00
"default" : null ,
2024-07-02 03:08:04 -04:00
"description" : "An error message if the task failed"
2025-10-13 07:19:47 -04:00
} ,
"userFacingErrorMessage" : {
"type" : "string" ,
"nullable" : true ,
"default" : null ,
"description" : "An error message that will be shown to the user"
2024-07-02 03:08:04 -04:00
}
}
}
2024-05-17 05:54:31 -04:00
}
2024-07-02 03:08:04 -04:00
}
} ,
"parameters" : [
2024-05-17 05:54:31 -04:00
{
"name" : "taskId" ,
"in" : "path" ,
"description" : "The id of the task" ,
"required" : true ,
"schema" : {
"type" : "integer" ,
"format" : "int64"
}
} ,
{
"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" : "Result updated successfully" ,
"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" : [
"task"
] ,
"properties" : {
"task" : {
"$ref" : "#/components/schemas/TaskProcessingTask"
}
}
}
}
}
}
}
}
}
} ,
"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"
}
}
}
}
}
}
}
}
}
} ,
"404" : {
"description" : "Task not found" ,
"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"
}
}
}
}
}
}
}
}
}
2025-08-26 04:21:10 -04:00
} ,
"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" : { }
}
}
}
}
}
}
2024-05-17 05:54:31 -04:00
}
}
}
} ,
"/ocs/v2.php/taskprocessing/tasks_provider/next" : {
"get" : {
"operationId" : "task_processing_api-get-next-scheduled-task" ,
"summary" : "Returns the next scheduled task for the taskTypeId" ,
"description" : "This endpoint requires admin access" ,
"tags" : [
"task_processing_api"
] ,
"security" : [
{
"bearer_auth" : [ ]
} ,
{
"basic_auth" : [ ]
}
] ,
2024-08-19 05:08:28 -04:00
"parameters" : [
{
"name" : "providerIds[]" ,
"in" : "query" ,
"description" : "The ids of the providers" ,
"required" : true ,
"schema" : {
"type" : "array" ,
"items" : {
"type" : "string"
2024-05-17 05:54:31 -04:00
}
}
2024-08-19 05:08:28 -04:00
} ,
{
"name" : "taskTypeIds[]" ,
"in" : "query" ,
"description" : "The ids of the task types" ,
"required" : true ,
"schema" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
}
} ,
2024-05-17 05:54:31 -04:00
{
"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" : "Task 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" : [
"task" ,
"provider"
] ,
"properties" : {
"task" : {
"$ref" : "#/components/schemas/TaskProcessingTask"
} ,
"provider" : {
"type" : "object" ,
"required" : [
"name"
] ,
"properties" : {
"name" : {
"type" : "string"
}
}
}
}
}
}
}
}
}
}
}
} ,
"204" : {
"description" : "No task found"
} ,
"500" : {
"description" : "" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
2025-10-14 09:51:31 -04:00
"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/taskprocessing/tasks_provider/next_batch" : {
"get" : {
"operationId" : "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" : [
"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/TaskProcessingTask"
} ,
"provider" : {
"type" : "string"
}
}
}
} ,
"has_more" : {
"type" : "boolean"
}
}
}
}
}
}
}
}
}
} ,
"500" : {
"description" : "" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
2024-05-17 05:54:31 -04:00
"required" : [
"ocs"
] ,
"properties" : {
"ocs" : {
"type" : "object" ,
"required" : [
"meta" ,
"data"
] ,
"properties" : {
"meta" : {
"$ref" : "#/components/schemas/OCSMeta"
} ,
"data" : {
"type" : "object" ,
"required" : [
"message"
] ,
"properties" : {
"message" : {
"type" : "string"
}
}
}
}
}
}
}
}
}
2025-08-26 04:21:10 -04:00
} ,
"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" : { }
}
}
}
}
}
}
2024-05-17 05:54:31 -04:00
}
}
}
}
} ,
"tags" : [
2025-09-30 08:36:32 -04:00
{
"name" : "ocs" ,
"description" : "If you are here because you can't extend the OCSController class, you got the wrong one. Please use {@see \\OCP\\AppFramework\\OCSController}!"
} ,
2024-05-17 05:54:31 -04:00
{
"name" : "avatar" ,
"description" : "Class AvatarController"
} ,
{
"name" : "guest_avatar" ,
"description" : "This controller handles guest avatar requests."
} ,
{
"name" : "ocm" ,
"description" : "Controller about the endpoint /ocm-provider/"
}
]
2024-07-02 03:08:04 -04:00
}