You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openapi-administration.json 63KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "provisioning_api-administration",
  5. "version": "0.0.1",
  6. "description": "This application enables a set of APIs that external systems can use to manage accounts, groups and apps.",
  7. "license": {
  8. "name": "agpl"
  9. }
  10. },
  11. "components": {
  12. "securitySchemes": {
  13. "basic_auth": {
  14. "type": "http",
  15. "scheme": "basic"
  16. },
  17. "bearer_auth": {
  18. "type": "http",
  19. "scheme": "bearer"
  20. }
  21. },
  22. "schemas": {
  23. "AppInfo": {
  24. "type": "object",
  25. "required": [
  26. "active",
  27. "activity",
  28. "author",
  29. "background-jobs",
  30. "bugs",
  31. "category",
  32. "collaboration",
  33. "commands",
  34. "default_enable",
  35. "dependencies",
  36. "description",
  37. "discussion",
  38. "documentation",
  39. "groups",
  40. "id",
  41. "info",
  42. "internal",
  43. "level",
  44. "licence",
  45. "name",
  46. "namespace",
  47. "navigations",
  48. "preview",
  49. "previewAsIcon",
  50. "public",
  51. "remote",
  52. "removable",
  53. "repair-steps",
  54. "repository",
  55. "sabre",
  56. "screenshot",
  57. "settings",
  58. "summary",
  59. "trash",
  60. "two-factor-providers",
  61. "types",
  62. "version",
  63. "versions",
  64. "website"
  65. ],
  66. "properties": {
  67. "active": {
  68. "type": "boolean",
  69. "nullable": true
  70. },
  71. "activity": {
  72. "type": "object",
  73. "nullable": true
  74. },
  75. "author": {
  76. "type": "object",
  77. "nullable": true
  78. },
  79. "background-jobs": {
  80. "type": "object",
  81. "nullable": true
  82. },
  83. "bugs": {
  84. "type": "object",
  85. "nullable": true
  86. },
  87. "category": {
  88. "type": "object",
  89. "nullable": true
  90. },
  91. "collaboration": {
  92. "type": "object",
  93. "nullable": true
  94. },
  95. "commands": {
  96. "type": "object",
  97. "nullable": true
  98. },
  99. "default_enable": {
  100. "type": "object",
  101. "nullable": true
  102. },
  103. "dependencies": {
  104. "type": "object",
  105. "nullable": true
  106. },
  107. "description": {
  108. "type": "string"
  109. },
  110. "discussion": {
  111. "type": "object",
  112. "nullable": true
  113. },
  114. "documentation": {
  115. "type": "object",
  116. "nullable": true
  117. },
  118. "groups": {
  119. "type": "object",
  120. "nullable": true
  121. },
  122. "id": {
  123. "type": "string"
  124. },
  125. "info": {
  126. "type": "object",
  127. "nullable": true
  128. },
  129. "internal": {
  130. "type": "boolean",
  131. "nullable": true
  132. },
  133. "level": {
  134. "type": "integer",
  135. "format": "int64",
  136. "nullable": true
  137. },
  138. "licence": {
  139. "type": "object",
  140. "nullable": true
  141. },
  142. "name": {
  143. "type": "string"
  144. },
  145. "namespace": {
  146. "type": "object",
  147. "nullable": true
  148. },
  149. "navigations": {
  150. "type": "object",
  151. "nullable": true
  152. },
  153. "preview": {
  154. "type": "object",
  155. "nullable": true
  156. },
  157. "previewAsIcon": {
  158. "type": "boolean",
  159. "nullable": true
  160. },
  161. "public": {
  162. "type": "object",
  163. "nullable": true
  164. },
  165. "remote": {
  166. "type": "object",
  167. "nullable": true
  168. },
  169. "removable": {
  170. "type": "boolean",
  171. "nullable": true
  172. },
  173. "repair-steps": {
  174. "type": "object",
  175. "nullable": true
  176. },
  177. "repository": {
  178. "type": "object",
  179. "nullable": true
  180. },
  181. "sabre": {
  182. "type": "object",
  183. "nullable": true
  184. },
  185. "screenshot": {
  186. "type": "object",
  187. "nullable": true
  188. },
  189. "settings": {
  190. "type": "object",
  191. "nullable": true
  192. },
  193. "summary": {
  194. "type": "string"
  195. },
  196. "trash": {
  197. "type": "object",
  198. "nullable": true
  199. },
  200. "two-factor-providers": {
  201. "type": "object",
  202. "nullable": true
  203. },
  204. "types": {
  205. "type": "object",
  206. "nullable": true
  207. },
  208. "version": {
  209. "type": "string"
  210. },
  211. "versions": {
  212. "type": "object",
  213. "nullable": true
  214. },
  215. "website": {
  216. "type": "object",
  217. "nullable": true
  218. }
  219. }
  220. },
  221. "Capabilities": {
  222. "type": "object",
  223. "required": [
  224. "provisioning_api"
  225. ],
  226. "properties": {
  227. "provisioning_api": {
  228. "type": "object",
  229. "required": [
  230. "version",
  231. "AccountPropertyScopesVersion",
  232. "AccountPropertyScopesFederatedEnabled",
  233. "AccountPropertyScopesPublishedEnabled"
  234. ],
  235. "properties": {
  236. "version": {
  237. "type": "string"
  238. },
  239. "AccountPropertyScopesVersion": {
  240. "type": "integer",
  241. "format": "int64"
  242. },
  243. "AccountPropertyScopesFederatedEnabled": {
  244. "type": "boolean"
  245. },
  246. "AccountPropertyScopesPublishedEnabled": {
  247. "type": "boolean"
  248. }
  249. }
  250. }
  251. }
  252. },
  253. "OCSMeta": {
  254. "type": "object",
  255. "required": [
  256. "status",
  257. "statuscode"
  258. ],
  259. "properties": {
  260. "status": {
  261. "type": "string"
  262. },
  263. "statuscode": {
  264. "type": "integer"
  265. },
  266. "message": {
  267. "type": "string"
  268. },
  269. "totalitems": {
  270. "type": "string"
  271. },
  272. "itemsperpage": {
  273. "type": "string"
  274. }
  275. }
  276. }
  277. }
  278. },
  279. "paths": {
  280. "/ocs/v2.php/cloud/apps": {
  281. "get": {
  282. "operationId": "apps-get-apps",
  283. "summary": "Get a list of installed apps",
  284. "description": "This endpoint requires admin access",
  285. "tags": [
  286. "apps"
  287. ],
  288. "security": [
  289. {
  290. "bearer_auth": []
  291. },
  292. {
  293. "basic_auth": []
  294. }
  295. ],
  296. "parameters": [
  297. {
  298. "name": "filter",
  299. "in": "query",
  300. "description": "Filter for enabled or disabled apps",
  301. "schema": {
  302. "type": "string",
  303. "nullable": true
  304. }
  305. },
  306. {
  307. "name": "OCS-APIRequest",
  308. "in": "header",
  309. "description": "Required to be true for the API request to pass",
  310. "required": true,
  311. "schema": {
  312. "type": "boolean",
  313. "default": true
  314. }
  315. }
  316. ],
  317. "responses": {
  318. "200": {
  319. "description": "Installed apps returned",
  320. "content": {
  321. "application/json": {
  322. "schema": {
  323. "type": "object",
  324. "required": [
  325. "ocs"
  326. ],
  327. "properties": {
  328. "ocs": {
  329. "type": "object",
  330. "required": [
  331. "meta",
  332. "data"
  333. ],
  334. "properties": {
  335. "meta": {
  336. "$ref": "#/components/schemas/OCSMeta"
  337. },
  338. "data": {
  339. "type": "object",
  340. "required": [
  341. "apps"
  342. ],
  343. "properties": {
  344. "apps": {
  345. "type": "array",
  346. "items": {
  347. "type": "string"
  348. }
  349. }
  350. }
  351. }
  352. }
  353. }
  354. }
  355. }
  356. }
  357. }
  358. }
  359. }
  360. }
  361. },
  362. "/ocs/v2.php/cloud/apps/{app}": {
  363. "get": {
  364. "operationId": "apps-get-app-info",
  365. "summary": "Get the app info for an app",
  366. "description": "This endpoint requires admin access",
  367. "tags": [
  368. "apps"
  369. ],
  370. "security": [
  371. {
  372. "bearer_auth": []
  373. },
  374. {
  375. "basic_auth": []
  376. }
  377. ],
  378. "parameters": [
  379. {
  380. "name": "app",
  381. "in": "path",
  382. "description": "ID of the app",
  383. "required": true,
  384. "schema": {
  385. "type": "string"
  386. }
  387. },
  388. {
  389. "name": "OCS-APIRequest",
  390. "in": "header",
  391. "description": "Required to be true for the API request to pass",
  392. "required": true,
  393. "schema": {
  394. "type": "boolean",
  395. "default": true
  396. }
  397. }
  398. ],
  399. "responses": {
  400. "200": {
  401. "description": "App info returned",
  402. "content": {
  403. "application/json": {
  404. "schema": {
  405. "type": "object",
  406. "required": [
  407. "ocs"
  408. ],
  409. "properties": {
  410. "ocs": {
  411. "type": "object",
  412. "required": [
  413. "meta",
  414. "data"
  415. ],
  416. "properties": {
  417. "meta": {
  418. "$ref": "#/components/schemas/OCSMeta"
  419. },
  420. "data": {
  421. "$ref": "#/components/schemas/AppInfo"
  422. }
  423. }
  424. }
  425. }
  426. }
  427. }
  428. }
  429. }
  430. }
  431. },
  432. "post": {
  433. "operationId": "apps-enable",
  434. "summary": "Enable an app",
  435. "description": "This endpoint requires admin access",
  436. "tags": [
  437. "apps"
  438. ],
  439. "security": [
  440. {
  441. "bearer_auth": []
  442. },
  443. {
  444. "basic_auth": []
  445. }
  446. ],
  447. "parameters": [
  448. {
  449. "name": "app",
  450. "in": "path",
  451. "description": "ID of the app",
  452. "required": true,
  453. "schema": {
  454. "type": "string"
  455. }
  456. },
  457. {
  458. "name": "OCS-APIRequest",
  459. "in": "header",
  460. "description": "Required to be true for the API request to pass",
  461. "required": true,
  462. "schema": {
  463. "type": "boolean",
  464. "default": true
  465. }
  466. }
  467. ],
  468. "responses": {
  469. "200": {
  470. "description": "App enabled successfully",
  471. "content": {
  472. "application/json": {
  473. "schema": {
  474. "type": "object",
  475. "required": [
  476. "ocs"
  477. ],
  478. "properties": {
  479. "ocs": {
  480. "type": "object",
  481. "required": [
  482. "meta",
  483. "data"
  484. ],
  485. "properties": {
  486. "meta": {
  487. "$ref": "#/components/schemas/OCSMeta"
  488. },
  489. "data": {}
  490. }
  491. }
  492. }
  493. }
  494. }
  495. }
  496. }
  497. }
  498. },
  499. "delete": {
  500. "operationId": "apps-disable",
  501. "summary": "Disable an app",
  502. "description": "This endpoint requires admin access",
  503. "tags": [
  504. "apps"
  505. ],
  506. "security": [
  507. {
  508. "bearer_auth": []
  509. },
  510. {
  511. "basic_auth": []
  512. }
  513. ],
  514. "parameters": [
  515. {
  516. "name": "app",
  517. "in": "path",
  518. "description": "ID of the app",
  519. "required": true,
  520. "schema": {
  521. "type": "string"
  522. }
  523. },
  524. {
  525. "name": "OCS-APIRequest",
  526. "in": "header",
  527. "description": "Required to be true for the API request to pass",
  528. "required": true,
  529. "schema": {
  530. "type": "boolean",
  531. "default": true
  532. }
  533. }
  534. ],
  535. "responses": {
  536. "200": {
  537. "description": "App disabled successfully",
  538. "content": {
  539. "application/json": {
  540. "schema": {
  541. "type": "object",
  542. "required": [
  543. "ocs"
  544. ],
  545. "properties": {
  546. "ocs": {
  547. "type": "object",
  548. "required": [
  549. "meta",
  550. "data"
  551. ],
  552. "properties": {
  553. "meta": {
  554. "$ref": "#/components/schemas/OCSMeta"
  555. },
  556. "data": {}
  557. }
  558. }
  559. }
  560. }
  561. }
  562. }
  563. }
  564. }
  565. }
  566. },
  567. "/ocs/v2.php/cloud/groups/{groupId}/subadmins": {
  568. "get": {
  569. "operationId": "groups-get-sub-admins-of-group",
  570. "summary": "Get the list of user IDs that are a subadmin of the group",
  571. "description": "This endpoint requires admin access",
  572. "tags": [
  573. "groups"
  574. ],
  575. "security": [
  576. {
  577. "bearer_auth": []
  578. },
  579. {
  580. "basic_auth": []
  581. }
  582. ],
  583. "parameters": [
  584. {
  585. "name": "groupId",
  586. "in": "path",
  587. "description": "ID of the group",
  588. "required": true,
  589. "schema": {
  590. "type": "string",
  591. "pattern": "^.+$"
  592. }
  593. },
  594. {
  595. "name": "OCS-APIRequest",
  596. "in": "header",
  597. "description": "Required to be true for the API request to pass",
  598. "required": true,
  599. "schema": {
  600. "type": "boolean",
  601. "default": true
  602. }
  603. }
  604. ],
  605. "responses": {
  606. "200": {
  607. "description": "Sub admins returned",
  608. "content": {
  609. "application/json": {
  610. "schema": {
  611. "type": "object",
  612. "required": [
  613. "ocs"
  614. ],
  615. "properties": {
  616. "ocs": {
  617. "type": "object",
  618. "required": [
  619. "meta",
  620. "data"
  621. ],
  622. "properties": {
  623. "meta": {
  624. "$ref": "#/components/schemas/OCSMeta"
  625. },
  626. "data": {
  627. "type": "array",
  628. "items": {
  629. "type": "string"
  630. }
  631. }
  632. }
  633. }
  634. }
  635. }
  636. }
  637. }
  638. }
  639. }
  640. }
  641. },
  642. "/ocs/v2.php/cloud/groups": {
  643. "post": {
  644. "operationId": "groups-add-group",
  645. "summary": "Create a new group",
  646. "description": "This endpoint requires admin access",
  647. "tags": [
  648. "groups"
  649. ],
  650. "security": [
  651. {
  652. "bearer_auth": []
  653. },
  654. {
  655. "basic_auth": []
  656. }
  657. ],
  658. "parameters": [
  659. {
  660. "name": "groupid",
  661. "in": "query",
  662. "description": "ID of the group",
  663. "required": true,
  664. "schema": {
  665. "type": "string"
  666. }
  667. },
  668. {
  669. "name": "displayname",
  670. "in": "query",
  671. "description": "Display name of the group",
  672. "schema": {
  673. "type": "string",
  674. "default": ""
  675. }
  676. },
  677. {
  678. "name": "OCS-APIRequest",
  679. "in": "header",
  680. "description": "Required to be true for the API request to pass",
  681. "required": true,
  682. "schema": {
  683. "type": "boolean",
  684. "default": true
  685. }
  686. }
  687. ],
  688. "responses": {
  689. "200": {
  690. "description": "Group created successfully",
  691. "content": {
  692. "application/json": {
  693. "schema": {
  694. "type": "object",
  695. "required": [
  696. "ocs"
  697. ],
  698. "properties": {
  699. "ocs": {
  700. "type": "object",
  701. "required": [
  702. "meta",
  703. "data"
  704. ],
  705. "properties": {
  706. "meta": {
  707. "$ref": "#/components/schemas/OCSMeta"
  708. },
  709. "data": {}
  710. }
  711. }
  712. }
  713. }
  714. }
  715. }
  716. }
  717. }
  718. }
  719. },
  720. "/ocs/v2.php/cloud/groups/{groupId}": {
  721. "put": {
  722. "operationId": "groups-update-group",
  723. "summary": "Update a group",
  724. "description": "This endpoint requires admin access",
  725. "tags": [
  726. "groups"
  727. ],
  728. "security": [
  729. {
  730. "bearer_auth": []
  731. },
  732. {
  733. "basic_auth": []
  734. }
  735. ],
  736. "parameters": [
  737. {
  738. "name": "key",
  739. "in": "query",
  740. "description": "Key to update, only 'displayname'",
  741. "required": true,
  742. "schema": {
  743. "type": "string"
  744. }
  745. },
  746. {
  747. "name": "value",
  748. "in": "query",
  749. "description": "New value for the key",
  750. "required": true,
  751. "schema": {
  752. "type": "string"
  753. }
  754. },
  755. {
  756. "name": "groupId",
  757. "in": "path",
  758. "description": "ID of the group",
  759. "required": true,
  760. "schema": {
  761. "type": "string",
  762. "pattern": "^.+$"
  763. }
  764. },
  765. {
  766. "name": "OCS-APIRequest",
  767. "in": "header",
  768. "description": "Required to be true for the API request to pass",
  769. "required": true,
  770. "schema": {
  771. "type": "boolean",
  772. "default": true
  773. }
  774. }
  775. ],
  776. "responses": {
  777. "200": {
  778. "description": "Group updated successfully",
  779. "content": {
  780. "application/json": {
  781. "schema": {
  782. "type": "object",
  783. "required": [
  784. "ocs"
  785. ],
  786. "properties": {
  787. "ocs": {
  788. "type": "object",
  789. "required": [
  790. "meta",
  791. "data"
  792. ],
  793. "properties": {
  794. "meta": {
  795. "$ref": "#/components/schemas/OCSMeta"
  796. },
  797. "data": {}
  798. }
  799. }
  800. }
  801. }
  802. }
  803. }
  804. }
  805. }
  806. },
  807. "delete": {
  808. "operationId": "groups-delete-group",
  809. "summary": "Delete a group",
  810. "description": "This endpoint requires admin access",
  811. "tags": [
  812. "groups"
  813. ],
  814. "security": [
  815. {
  816. "bearer_auth": []
  817. },
  818. {
  819. "basic_auth": []
  820. }
  821. ],
  822. "parameters": [
  823. {
  824. "name": "groupId",
  825. "in": "path",
  826. "description": "ID of the group",
  827. "required": true,
  828. "schema": {
  829. "type": "string",
  830. "pattern": "^.+$"
  831. }
  832. },
  833. {
  834. "name": "OCS-APIRequest",
  835. "in": "header",
  836. "description": "Required to be true for the API request to pass",
  837. "required": true,
  838. "schema": {
  839. "type": "boolean",
  840. "default": true
  841. }
  842. }
  843. ],
  844. "responses": {
  845. "200": {
  846. "description": "Group deleted successfully",
  847. "content": {
  848. "application/json": {
  849. "schema": {
  850. "type": "object",
  851. "required": [
  852. "ocs"
  853. ],
  854. "properties": {
  855. "ocs": {
  856. "type": "object",
  857. "required": [
  858. "meta",
  859. "data"
  860. ],
  861. "properties": {
  862. "meta": {
  863. "$ref": "#/components/schemas/OCSMeta"
  864. },
  865. "data": {}
  866. }
  867. }
  868. }
  869. }
  870. }
  871. }
  872. }
  873. }
  874. }
  875. },
  876. "/ocs/v2.php/cloud/users/{userId}/subadmins": {
  877. "get": {
  878. "operationId": "users-get-user-sub-admin-groups",
  879. "summary": "Get the groups a user is a subadmin of",
  880. "description": "This endpoint requires admin access",
  881. "tags": [
  882. "users"
  883. ],
  884. "security": [
  885. {
  886. "bearer_auth": []
  887. },
  888. {
  889. "basic_auth": []
  890. }
  891. ],
  892. "parameters": [
  893. {
  894. "name": "userId",
  895. "in": "path",
  896. "description": "ID if the user",
  897. "required": true,
  898. "schema": {
  899. "type": "string"
  900. }
  901. },
  902. {
  903. "name": "OCS-APIRequest",
  904. "in": "header",
  905. "description": "Required to be true for the API request to pass",
  906. "required": true,
  907. "schema": {
  908. "type": "boolean",
  909. "default": true
  910. }
  911. }
  912. ],
  913. "responses": {
  914. "200": {
  915. "description": "User subadmin groups returned",
  916. "content": {
  917. "application/json": {
  918. "schema": {
  919. "type": "object",
  920. "required": [
  921. "ocs"
  922. ],
  923. "properties": {
  924. "ocs": {
  925. "type": "object",
  926. "required": [
  927. "meta",
  928. "data"
  929. ],
  930. "properties": {
  931. "meta": {
  932. "$ref": "#/components/schemas/OCSMeta"
  933. },
  934. "data": {
  935. "type": "array",
  936. "items": {
  937. "type": "string"
  938. }
  939. }
  940. }
  941. }
  942. }
  943. }
  944. }
  945. }
  946. }
  947. }
  948. },
  949. "post": {
  950. "operationId": "users-add-sub-admin",
  951. "summary": "Make a user a subadmin of a group",
  952. "description": "This endpoint requires admin access",
  953. "tags": [
  954. "users"
  955. ],
  956. "security": [
  957. {
  958. "bearer_auth": []
  959. },
  960. {
  961. "basic_auth": []
  962. }
  963. ],
  964. "parameters": [
  965. {
  966. "name": "groupid",
  967. "in": "query",
  968. "description": "ID of the group",
  969. "required": true,
  970. "schema": {
  971. "type": "string"
  972. }
  973. },
  974. {
  975. "name": "userId",
  976. "in": "path",
  977. "description": "ID of the user",
  978. "required": true,
  979. "schema": {
  980. "type": "string"
  981. }
  982. },
  983. {
  984. "name": "OCS-APIRequest",
  985. "in": "header",
  986. "description": "Required to be true for the API request to pass",
  987. "required": true,
  988. "schema": {
  989. "type": "boolean",
  990. "default": true
  991. }
  992. }
  993. ],
  994. "responses": {
  995. "200": {
  996. "description": "User added as group subadmin successfully",
  997. "content": {
  998. "application/json": {
  999. "schema": {
  1000. "type": "object",
  1001. "required": [
  1002. "ocs"
  1003. ],
  1004. "properties": {
  1005. "ocs": {
  1006. "type": "object",
  1007. "required": [
  1008. "meta",
  1009. "data"
  1010. ],
  1011. "properties": {
  1012. "meta": {
  1013. "$ref": "#/components/schemas/OCSMeta"
  1014. },
  1015. "data": {}
  1016. }
  1017. }
  1018. }
  1019. }
  1020. }
  1021. }
  1022. }
  1023. }
  1024. },
  1025. "delete": {
  1026. "operationId": "users-remove-sub-admin",
  1027. "summary": "Remove a user from the subadmins of a group",
  1028. "description": "This endpoint requires admin access",
  1029. "tags": [
  1030. "users"
  1031. ],
  1032. "security": [
  1033. {
  1034. "bearer_auth": []
  1035. },
  1036. {
  1037. "basic_auth": []
  1038. }
  1039. ],
  1040. "parameters": [
  1041. {
  1042. "name": "groupid",
  1043. "in": "query",
  1044. "description": "ID of the group",
  1045. "required": true,
  1046. "schema": {
  1047. "type": "string"
  1048. }
  1049. },
  1050. {
  1051. "name": "userId",
  1052. "in": "path",
  1053. "description": "ID of the user",
  1054. "required": true,
  1055. "schema": {
  1056. "type": "string"
  1057. }
  1058. },
  1059. {
  1060. "name": "OCS-APIRequest",
  1061. "in": "header",
  1062. "description": "Required to be true for the API request to pass",
  1063. "required": true,
  1064. "schema": {
  1065. "type": "boolean",
  1066. "default": true
  1067. }
  1068. }
  1069. ],
  1070. "responses": {
  1071. "200": {
  1072. "description": "User removed as group subadmin successfully",
  1073. "content": {
  1074. "application/json": {
  1075. "schema": {
  1076. "type": "object",
  1077. "required": [
  1078. "ocs"
  1079. ],
  1080. "properties": {
  1081. "ocs": {
  1082. "type": "object",
  1083. "required": [
  1084. "meta",
  1085. "data"
  1086. ],
  1087. "properties": {
  1088. "meta": {
  1089. "$ref": "#/components/schemas/OCSMeta"
  1090. },
  1091. "data": {}
  1092. }
  1093. }
  1094. }
  1095. }
  1096. }
  1097. }
  1098. }
  1099. }
  1100. }
  1101. },
  1102. "/ocs/v2.php/apps/provisioning_api/api/v1/config/apps": {
  1103. "get": {
  1104. "operationId": "app_config-get-apps",
  1105. "summary": "Get a list of apps",
  1106. "description": "This endpoint requires admin access",
  1107. "tags": [
  1108. "app_config"
  1109. ],
  1110. "security": [
  1111. {
  1112. "bearer_auth": []
  1113. },
  1114. {
  1115. "basic_auth": []
  1116. }
  1117. ],
  1118. "parameters": [
  1119. {
  1120. "name": "OCS-APIRequest",
  1121. "in": "header",
  1122. "description": "Required to be true for the API request to pass",
  1123. "required": true,
  1124. "schema": {
  1125. "type": "boolean",
  1126. "default": true
  1127. }
  1128. }
  1129. ],
  1130. "responses": {
  1131. "200": {
  1132. "description": "Apps returned",
  1133. "content": {
  1134. "application/json": {
  1135. "schema": {
  1136. "type": "object",
  1137. "required": [
  1138. "ocs"
  1139. ],
  1140. "properties": {
  1141. "ocs": {
  1142. "type": "object",
  1143. "required": [
  1144. "meta",
  1145. "data"
  1146. ],
  1147. "properties": {
  1148. "meta": {
  1149. "$ref": "#/components/schemas/OCSMeta"
  1150. },
  1151. "data": {
  1152. "type": "object",
  1153. "required": [
  1154. "data"
  1155. ],
  1156. "properties": {
  1157. "data": {
  1158. "type": "array",
  1159. "items": {
  1160. "type": "string"
  1161. }
  1162. }
  1163. }
  1164. }
  1165. }
  1166. }
  1167. }
  1168. }
  1169. }
  1170. }
  1171. }
  1172. }
  1173. }
  1174. },
  1175. "/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}": {
  1176. "get": {
  1177. "operationId": "app_config-get-keys",
  1178. "summary": "Get the config keys of an app",
  1179. "description": "This endpoint requires admin access",
  1180. "tags": [
  1181. "app_config"
  1182. ],
  1183. "security": [
  1184. {
  1185. "bearer_auth": []
  1186. },
  1187. {
  1188. "basic_auth": []
  1189. }
  1190. ],
  1191. "parameters": [
  1192. {
  1193. "name": "app",
  1194. "in": "path",
  1195. "description": "ID of the app",
  1196. "required": true,
  1197. "schema": {
  1198. "type": "string"
  1199. }
  1200. },
  1201. {
  1202. "name": "OCS-APIRequest",
  1203. "in": "header",
  1204. "description": "Required to be true for the API request to pass",
  1205. "required": true,
  1206. "schema": {
  1207. "type": "boolean",
  1208. "default": true
  1209. }
  1210. }
  1211. ],
  1212. "responses": {
  1213. "200": {
  1214. "description": "Keys returned",
  1215. "content": {
  1216. "application/json": {
  1217. "schema": {
  1218. "type": "object",
  1219. "required": [
  1220. "ocs"
  1221. ],
  1222. "properties": {
  1223. "ocs": {
  1224. "type": "object",
  1225. "required": [
  1226. "meta",
  1227. "data"
  1228. ],
  1229. "properties": {
  1230. "meta": {
  1231. "$ref": "#/components/schemas/OCSMeta"
  1232. },
  1233. "data": {
  1234. "type": "object",
  1235. "required": [
  1236. "data"
  1237. ],
  1238. "properties": {
  1239. "data": {
  1240. "type": "array",
  1241. "items": {
  1242. "type": "string"
  1243. }
  1244. }
  1245. }
  1246. }
  1247. }
  1248. }
  1249. }
  1250. }
  1251. }
  1252. }
  1253. },
  1254. "403": {
  1255. "description": "App is not allowed",
  1256. "content": {
  1257. "application/json": {
  1258. "schema": {
  1259. "type": "object",
  1260. "required": [
  1261. "ocs"
  1262. ],
  1263. "properties": {
  1264. "ocs": {
  1265. "type": "object",
  1266. "required": [
  1267. "meta",
  1268. "data"
  1269. ],
  1270. "properties": {
  1271. "meta": {
  1272. "$ref": "#/components/schemas/OCSMeta"
  1273. },
  1274. "data": {
  1275. "type": "object",
  1276. "required": [
  1277. "data"
  1278. ],
  1279. "properties": {
  1280. "data": {
  1281. "type": "object",
  1282. "required": [
  1283. "message"
  1284. ],
  1285. "properties": {
  1286. "message": {
  1287. "type": "string"
  1288. }
  1289. }
  1290. }
  1291. }
  1292. }
  1293. }
  1294. }
  1295. }
  1296. }
  1297. }
  1298. }
  1299. }
  1300. }
  1301. }
  1302. },
  1303. "/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}": {
  1304. "get": {
  1305. "operationId": "app_config-get-value",
  1306. "summary": "Get a the config value of an app",
  1307. "description": "This endpoint requires admin access",
  1308. "tags": [
  1309. "app_config"
  1310. ],
  1311. "security": [
  1312. {
  1313. "bearer_auth": []
  1314. },
  1315. {
  1316. "basic_auth": []
  1317. }
  1318. ],
  1319. "parameters": [
  1320. {
  1321. "name": "defaultValue",
  1322. "in": "query",
  1323. "description": "Default returned value if the value is empty",
  1324. "schema": {
  1325. "type": "string",
  1326. "default": ""
  1327. }
  1328. },
  1329. {
  1330. "name": "app",
  1331. "in": "path",
  1332. "description": "ID of the app",
  1333. "required": true,
  1334. "schema": {
  1335. "type": "string"
  1336. }
  1337. },
  1338. {
  1339. "name": "key",
  1340. "in": "path",
  1341. "description": "Key",
  1342. "required": true,
  1343. "schema": {
  1344. "type": "string"
  1345. }
  1346. },
  1347. {
  1348. "name": "OCS-APIRequest",
  1349. "in": "header",
  1350. "description": "Required to be true for the API request to pass",
  1351. "required": true,
  1352. "schema": {
  1353. "type": "boolean",
  1354. "default": true
  1355. }
  1356. }
  1357. ],
  1358. "responses": {
  1359. "200": {
  1360. "description": "Value returned",
  1361. "content": {
  1362. "application/json": {
  1363. "schema": {
  1364. "type": "object",
  1365. "required": [
  1366. "ocs"
  1367. ],
  1368. "properties": {
  1369. "ocs": {
  1370. "type": "object",
  1371. "required": [
  1372. "meta",
  1373. "data"
  1374. ],
  1375. "properties": {
  1376. "meta": {
  1377. "$ref": "#/components/schemas/OCSMeta"
  1378. },
  1379. "data": {
  1380. "type": "object",
  1381. "required": [
  1382. "data"
  1383. ],
  1384. "properties": {
  1385. "data": {
  1386. "type": "string"
  1387. }
  1388. }
  1389. }
  1390. }
  1391. }
  1392. }
  1393. }
  1394. }
  1395. }
  1396. },
  1397. "403": {
  1398. "description": "App is not allowed",
  1399. "content": {
  1400. "application/json": {
  1401. "schema": {
  1402. "type": "object",
  1403. "required": [
  1404. "ocs"
  1405. ],
  1406. "properties": {
  1407. "ocs": {
  1408. "type": "object",
  1409. "required": [
  1410. "meta",
  1411. "data"
  1412. ],
  1413. "properties": {
  1414. "meta": {
  1415. "$ref": "#/components/schemas/OCSMeta"
  1416. },
  1417. "data": {
  1418. "type": "object",
  1419. "required": [
  1420. "data"
  1421. ],
  1422. "properties": {
  1423. "data": {
  1424. "type": "object",
  1425. "required": [
  1426. "message"
  1427. ],
  1428. "properties": {
  1429. "message": {
  1430. "type": "string"
  1431. }
  1432. }
  1433. }
  1434. }
  1435. }
  1436. }
  1437. }
  1438. }
  1439. }
  1440. }
  1441. }
  1442. }
  1443. }
  1444. },
  1445. "delete": {
  1446. "operationId": "app_config-delete-key",
  1447. "summary": "Delete a config key of an app",
  1448. "description": "This endpoint requires admin access",
  1449. "tags": [
  1450. "app_config"
  1451. ],
  1452. "security": [
  1453. {
  1454. "bearer_auth": []
  1455. },
  1456. {
  1457. "basic_auth": []
  1458. }
  1459. ],
  1460. "parameters": [
  1461. {
  1462. "name": "app",
  1463. "in": "path",
  1464. "description": "ID of the app",
  1465. "required": true,
  1466. "schema": {
  1467. "type": "string"
  1468. }
  1469. },
  1470. {
  1471. "name": "key",
  1472. "in": "path",
  1473. "description": "Key to delete",
  1474. "required": true,
  1475. "schema": {
  1476. "type": "string"
  1477. }
  1478. },
  1479. {
  1480. "name": "OCS-APIRequest",
  1481. "in": "header",
  1482. "description": "Required to be true for the API request to pass",
  1483. "required": true,
  1484. "schema": {
  1485. "type": "boolean",
  1486. "default": true
  1487. }
  1488. }
  1489. ],
  1490. "responses": {
  1491. "200": {
  1492. "description": "Key deleted successfully",
  1493. "content": {
  1494. "application/json": {
  1495. "schema": {
  1496. "type": "object",
  1497. "required": [
  1498. "ocs"
  1499. ],
  1500. "properties": {
  1501. "ocs": {
  1502. "type": "object",
  1503. "required": [
  1504. "meta",
  1505. "data"
  1506. ],
  1507. "properties": {
  1508. "meta": {
  1509. "$ref": "#/components/schemas/OCSMeta"
  1510. },
  1511. "data": {}
  1512. }
  1513. }
  1514. }
  1515. }
  1516. }
  1517. }
  1518. },
  1519. "403": {
  1520. "description": "App or key is not allowed",
  1521. "content": {
  1522. "application/json": {
  1523. "schema": {
  1524. "type": "object",
  1525. "required": [
  1526. "ocs"
  1527. ],
  1528. "properties": {
  1529. "ocs": {
  1530. "type": "object",
  1531. "required": [
  1532. "meta",
  1533. "data"
  1534. ],
  1535. "properties": {
  1536. "meta": {
  1537. "$ref": "#/components/schemas/OCSMeta"
  1538. },
  1539. "data": {
  1540. "type": "object",
  1541. "required": [
  1542. "data"
  1543. ],
  1544. "properties": {
  1545. "data": {
  1546. "type": "object",
  1547. "required": [
  1548. "message"
  1549. ],
  1550. "properties": {
  1551. "message": {
  1552. "type": "string"
  1553. }
  1554. }
  1555. }
  1556. }
  1557. }
  1558. }
  1559. }
  1560. }
  1561. }
  1562. }
  1563. }
  1564. }
  1565. }
  1566. }
  1567. }
  1568. },
  1569. "tags": []
  1570. }