2025-01-10 05:57:08 -05:00
{
"openapi" : "3.0.3" ,
"info" : {
"title" : "core-administration" ,
"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"
2025-01-10 05:57:08 -05: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"
}
}
2026-01-09 12:06:06 -05:00
} ,
"can-create-app-token" : {
"type" : "boolean"
2025-01-10 05:57:08 -05: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"
}
}
}
}
}
}
} ,
"paths" : {
"/ocs/v2.php/twofactor/state" : {
"get" : {
"operationId" : "two_factor_api-state" ,
"summary" : "Get two factor authentication provider states" ,
"description" : "This endpoint requires admin access" ,
"tags" : [
"two_factor_api"
] ,
"security" : [
{
"bearer_auth" : [ ]
} ,
{
"basic_auth" : [ ]
}
] ,
"parameters" : [
{
"name" : "user" ,
"in" : "query" ,
"description" : "system user id" ,
"required" : true ,
"schema" : {
"type" : "string"
}
} ,
{
"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" : "provider states" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"ocs"
] ,
"properties" : {
"ocs" : {
"type" : "object" ,
"required" : [
"meta" ,
"data"
] ,
"properties" : {
"meta" : {
"$ref" : "#/components/schemas/OCSMeta"
} ,
"data" : {
"type" : "object" ,
"additionalProperties" : {
"type" : "boolean"
}
}
}
}
}
}
}
}
} ,
"404" : {
"description" : "user not found" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"ocs"
] ,
"properties" : {
"ocs" : {
"type" : "object" ,
"required" : [
"meta" ,
"data"
] ,
"properties" : {
"meta" : {
"$ref" : "#/components/schemas/OCSMeta"
} ,
"data" : {
"nullable" : true
}
}
}
}
}
}
}
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" : { }
}
}
}
}
}
}
2025-01-10 05:57:08 -05:00
}
}
}
} ,
"/ocs/v2.php/twofactor/enable" : {
"post" : {
"operationId" : "two_factor_api-enable" ,
"summary" : "Enable two factor authentication providers for specific user" ,
"description" : "This endpoint requires admin access" ,
"tags" : [
"two_factor_api"
] ,
"security" : [
{
"bearer_auth" : [ ]
} ,
{
"basic_auth" : [ ]
}
] ,
"requestBody" : {
"required" : true ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"user"
] ,
"properties" : {
"user" : {
"type" : "string" ,
"description" : "system user identifier"
} ,
"providers" : {
"type" : "array" ,
"default" : [ ] ,
"description" : "collection of TFA provider ids" ,
"items" : {
"type" : "string"
}
}
}
}
}
}
} ,
"parameters" : [
{
"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" : "provider states" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"ocs"
] ,
"properties" : {
"ocs" : {
"type" : "object" ,
"required" : [
"meta" ,
"data"
] ,
"properties" : {
"meta" : {
"$ref" : "#/components/schemas/OCSMeta"
} ,
"data" : {
"type" : "object" ,
"additionalProperties" : {
"type" : "boolean"
}
}
}
}
}
}
}
}
} ,
"404" : {
"description" : "user not found" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"ocs"
] ,
"properties" : {
"ocs" : {
"type" : "object" ,
"required" : [
"meta" ,
"data"
] ,
"properties" : {
"meta" : {
"$ref" : "#/components/schemas/OCSMeta"
} ,
"data" : {
"nullable" : true
}
}
}
}
}
}
}
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" : { }
}
}
}
}
}
}
2025-01-10 05:57:08 -05:00
}
}
}
} ,
"/ocs/v2.php/twofactor/disable" : {
"post" : {
"operationId" : "two_factor_api-disable" ,
"summary" : "Disable two factor authentication providers for specific user" ,
"description" : "This endpoint requires admin access" ,
"tags" : [
"two_factor_api"
] ,
"security" : [
{
"bearer_auth" : [ ]
} ,
{
"basic_auth" : [ ]
}
] ,
"requestBody" : {
"required" : true ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"user"
] ,
"properties" : {
"user" : {
"type" : "string" ,
"description" : "system user identifier"
} ,
"providers" : {
"type" : "array" ,
"default" : [ ] ,
"description" : "collection of TFA provider ids" ,
"items" : {
"type" : "string"
}
}
}
}
}
}
} ,
"parameters" : [
{
"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" : "provider states" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"ocs"
] ,
"properties" : {
"ocs" : {
"type" : "object" ,
"required" : [
"meta" ,
"data"
] ,
"properties" : {
"meta" : {
"$ref" : "#/components/schemas/OCSMeta"
} ,
"data" : {
"type" : "object" ,
"additionalProperties" : {
"type" : "boolean"
}
}
}
}
}
}
}
}
} ,
"404" : {
"description" : "user not found" ,
"content" : {
"application/json" : {
"schema" : {
"type" : "object" ,
"required" : [
"ocs"
] ,
"properties" : {
"ocs" : {
"type" : "object" ,
"required" : [
"meta" ,
"data"
] ,
"properties" : {
"meta" : {
"$ref" : "#/components/schemas/OCSMeta"
} ,
"data" : {
"nullable" : true
}
}
}
}
}
}
}
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" : { }
}
}
}
}
}
}
2025-01-10 05:57:08 -05: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}!"
} ,
2025-01-10 05:57:08 -05: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/"
2025-12-18 05:12:23 -05:00
} ,
{
"name" : "open_metrics" ,
"description" : "OpenMetrics controller Gather and display metrics"
2025-01-10 05:57:08 -05:00
}
]
}