openapi.json 133 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "provisioning_api",
  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. "Capabilities": {
  24. "type": "object",
  25. "required": [
  26. "provisioning_api"
  27. ],
  28. "properties": {
  29. "provisioning_api": {
  30. "type": "object",
  31. "required": [
  32. "version",
  33. "AccountPropertyScopesVersion",
  34. "AccountPropertyScopesFederatedEnabled",
  35. "AccountPropertyScopesPublishedEnabled"
  36. ],
  37. "properties": {
  38. "version": {
  39. "type": "string"
  40. },
  41. "AccountPropertyScopesVersion": {
  42. "type": "integer",
  43. "format": "int64"
  44. },
  45. "AccountPropertyScopesFederatedEnabled": {
  46. "type": "boolean"
  47. },
  48. "AccountPropertyScopesPublishedEnabled": {
  49. "type": "boolean"
  50. }
  51. }
  52. }
  53. }
  54. },
  55. "GroupDetails": {
  56. "type": "object",
  57. "required": [
  58. "id",
  59. "displayname",
  60. "usercount",
  61. "disabled",
  62. "canAdd",
  63. "canRemove"
  64. ],
  65. "properties": {
  66. "id": {
  67. "type": "string"
  68. },
  69. "displayname": {
  70. "type": "string"
  71. },
  72. "usercount": {
  73. "oneOf": [
  74. {
  75. "type": "boolean"
  76. },
  77. {
  78. "type": "integer",
  79. "format": "int64"
  80. }
  81. ]
  82. },
  83. "disabled": {
  84. "oneOf": [
  85. {
  86. "type": "boolean"
  87. },
  88. {
  89. "type": "integer",
  90. "format": "int64"
  91. }
  92. ]
  93. },
  94. "canAdd": {
  95. "type": "boolean"
  96. },
  97. "canRemove": {
  98. "type": "boolean"
  99. }
  100. }
  101. },
  102. "OCSMeta": {
  103. "type": "object",
  104. "required": [
  105. "status",
  106. "statuscode"
  107. ],
  108. "properties": {
  109. "status": {
  110. "type": "string"
  111. },
  112. "statuscode": {
  113. "type": "integer"
  114. },
  115. "message": {
  116. "type": "string"
  117. },
  118. "totalitems": {
  119. "type": "string"
  120. },
  121. "itemsperpage": {
  122. "type": "string"
  123. }
  124. }
  125. },
  126. "UserDetails": {
  127. "type": "object",
  128. "required": [
  129. "additional_mail",
  130. "address",
  131. "backend",
  132. "backendCapabilities",
  133. "biography",
  134. "display-name",
  135. "displayname",
  136. "email",
  137. "fediverse",
  138. "groups",
  139. "headline",
  140. "id",
  141. "language",
  142. "lastLogin",
  143. "locale",
  144. "manager",
  145. "notify_email",
  146. "organisation",
  147. "phone",
  148. "profile_enabled",
  149. "pronouns",
  150. "quota",
  151. "role",
  152. "subadmin",
  153. "twitter",
  154. "website"
  155. ],
  156. "properties": {
  157. "additional_mail": {
  158. "type": "array",
  159. "items": {
  160. "type": "string"
  161. }
  162. },
  163. "additional_mailScope": {
  164. "type": "array",
  165. "items": {
  166. "$ref": "#/components/schemas/UserDetailsScope"
  167. }
  168. },
  169. "address": {
  170. "type": "string"
  171. },
  172. "addressScope": {
  173. "$ref": "#/components/schemas/UserDetailsScope"
  174. },
  175. "avatarScope": {
  176. "$ref": "#/components/schemas/UserDetailsScope"
  177. },
  178. "backend": {
  179. "type": "string"
  180. },
  181. "backendCapabilities": {
  182. "type": "object",
  183. "required": [
  184. "setDisplayName",
  185. "setPassword"
  186. ],
  187. "properties": {
  188. "setDisplayName": {
  189. "type": "boolean"
  190. },
  191. "setPassword": {
  192. "type": "boolean"
  193. }
  194. }
  195. },
  196. "biography": {
  197. "type": "string"
  198. },
  199. "biographyScope": {
  200. "$ref": "#/components/schemas/UserDetailsScope"
  201. },
  202. "display-name": {
  203. "type": "string"
  204. },
  205. "displayname": {
  206. "type": "string"
  207. },
  208. "displaynameScope": {
  209. "$ref": "#/components/schemas/UserDetailsScope"
  210. },
  211. "email": {
  212. "type": "string",
  213. "nullable": true
  214. },
  215. "emailScope": {
  216. "$ref": "#/components/schemas/UserDetailsScope"
  217. },
  218. "enabled": {
  219. "type": "boolean"
  220. },
  221. "fediverse": {
  222. "type": "string"
  223. },
  224. "fediverseScope": {
  225. "$ref": "#/components/schemas/UserDetailsScope"
  226. },
  227. "groups": {
  228. "type": "array",
  229. "items": {
  230. "type": "string"
  231. }
  232. },
  233. "headline": {
  234. "type": "string"
  235. },
  236. "headlineScope": {
  237. "$ref": "#/components/schemas/UserDetailsScope"
  238. },
  239. "id": {
  240. "type": "string"
  241. },
  242. "language": {
  243. "type": "string"
  244. },
  245. "lastLogin": {
  246. "type": "integer",
  247. "format": "int64"
  248. },
  249. "locale": {
  250. "type": "string"
  251. },
  252. "manager": {
  253. "type": "string"
  254. },
  255. "notify_email": {
  256. "type": "string",
  257. "nullable": true
  258. },
  259. "organisation": {
  260. "type": "string"
  261. },
  262. "organisationScope": {
  263. "$ref": "#/components/schemas/UserDetailsScope"
  264. },
  265. "phone": {
  266. "type": "string"
  267. },
  268. "phoneScope": {
  269. "$ref": "#/components/schemas/UserDetailsScope"
  270. },
  271. "profile_enabled": {
  272. "type": "string"
  273. },
  274. "profile_enabledScope": {
  275. "$ref": "#/components/schemas/UserDetailsScope"
  276. },
  277. "pronouns": {
  278. "type": "string"
  279. },
  280. "pronounsScope": {
  281. "$ref": "#/components/schemas/UserDetailsScope"
  282. },
  283. "quota": {
  284. "$ref": "#/components/schemas/UserDetailsQuota"
  285. },
  286. "role": {
  287. "type": "string"
  288. },
  289. "roleScope": {
  290. "$ref": "#/components/schemas/UserDetailsScope"
  291. },
  292. "storageLocation": {
  293. "type": "string"
  294. },
  295. "subadmin": {
  296. "type": "array",
  297. "items": {
  298. "type": "string"
  299. }
  300. },
  301. "twitter": {
  302. "type": "string"
  303. },
  304. "twitterScope": {
  305. "$ref": "#/components/schemas/UserDetailsScope"
  306. },
  307. "website": {
  308. "type": "string"
  309. },
  310. "websiteScope": {
  311. "$ref": "#/components/schemas/UserDetailsScope"
  312. }
  313. }
  314. },
  315. "UserDetailsQuota": {
  316. "type": "object",
  317. "properties": {
  318. "free": {
  319. "anyOf": [
  320. {
  321. "type": "number",
  322. "format": "double"
  323. },
  324. {
  325. "type": "integer",
  326. "format": "int64"
  327. }
  328. ]
  329. },
  330. "quota": {
  331. "anyOf": [
  332. {
  333. "type": "number",
  334. "format": "double"
  335. },
  336. {
  337. "type": "integer",
  338. "format": "int64"
  339. },
  340. {
  341. "type": "string"
  342. }
  343. ]
  344. },
  345. "relative": {
  346. "anyOf": [
  347. {
  348. "type": "number",
  349. "format": "double"
  350. },
  351. {
  352. "type": "integer",
  353. "format": "int64"
  354. }
  355. ]
  356. },
  357. "total": {
  358. "anyOf": [
  359. {
  360. "type": "number",
  361. "format": "double"
  362. },
  363. {
  364. "type": "integer",
  365. "format": "int64"
  366. }
  367. ]
  368. },
  369. "used": {
  370. "anyOf": [
  371. {
  372. "type": "number",
  373. "format": "double"
  374. },
  375. {
  376. "type": "integer",
  377. "format": "int64"
  378. }
  379. ]
  380. }
  381. }
  382. },
  383. "UserDetailsScope": {
  384. "type": "string",
  385. "enum": [
  386. "v2-private",
  387. "v2-local",
  388. "v2-federated",
  389. "v2-published",
  390. "private",
  391. "contacts",
  392. "public"
  393. ]
  394. }
  395. }
  396. },
  397. "paths": {
  398. "/ocs/v2.php/cloud/groups": {
  399. "get": {
  400. "operationId": "groups-get-groups",
  401. "summary": "Get a list of groups",
  402. "tags": [
  403. "groups"
  404. ],
  405. "security": [
  406. {
  407. "bearer_auth": []
  408. },
  409. {
  410. "basic_auth": []
  411. }
  412. ],
  413. "parameters": [
  414. {
  415. "name": "search",
  416. "in": "query",
  417. "description": "Text to search for",
  418. "schema": {
  419. "type": "string",
  420. "default": ""
  421. }
  422. },
  423. {
  424. "name": "limit",
  425. "in": "query",
  426. "description": "Limit the amount of groups returned",
  427. "schema": {
  428. "type": "integer",
  429. "format": "int64",
  430. "nullable": true
  431. }
  432. },
  433. {
  434. "name": "offset",
  435. "in": "query",
  436. "description": "Offset for searching for groups",
  437. "schema": {
  438. "type": "integer",
  439. "format": "int64",
  440. "default": 0
  441. }
  442. },
  443. {
  444. "name": "OCS-APIRequest",
  445. "in": "header",
  446. "description": "Required to be true for the API request to pass",
  447. "required": true,
  448. "schema": {
  449. "type": "boolean",
  450. "default": true
  451. }
  452. }
  453. ],
  454. "responses": {
  455. "200": {
  456. "description": "Groups returned",
  457. "content": {
  458. "application/json": {
  459. "schema": {
  460. "type": "object",
  461. "required": [
  462. "ocs"
  463. ],
  464. "properties": {
  465. "ocs": {
  466. "type": "object",
  467. "required": [
  468. "meta",
  469. "data"
  470. ],
  471. "properties": {
  472. "meta": {
  473. "$ref": "#/components/schemas/OCSMeta"
  474. },
  475. "data": {
  476. "type": "object",
  477. "required": [
  478. "groups"
  479. ],
  480. "properties": {
  481. "groups": {
  482. "type": "array",
  483. "items": {
  484. "type": "string"
  485. }
  486. }
  487. }
  488. }
  489. }
  490. }
  491. }
  492. }
  493. }
  494. }
  495. }
  496. }
  497. }
  498. },
  499. "/ocs/v2.php/cloud/groups/details": {
  500. "get": {
  501. "operationId": "groups-get-groups-details",
  502. "summary": "Get a list of groups details",
  503. "tags": [
  504. "groups"
  505. ],
  506. "security": [
  507. {
  508. "bearer_auth": []
  509. },
  510. {
  511. "basic_auth": []
  512. }
  513. ],
  514. "parameters": [
  515. {
  516. "name": "search",
  517. "in": "query",
  518. "description": "Text to search for",
  519. "schema": {
  520. "type": "string",
  521. "default": ""
  522. }
  523. },
  524. {
  525. "name": "limit",
  526. "in": "query",
  527. "description": "Limit the amount of groups returned",
  528. "schema": {
  529. "type": "integer",
  530. "format": "int64",
  531. "nullable": true
  532. }
  533. },
  534. {
  535. "name": "offset",
  536. "in": "query",
  537. "description": "Offset for searching for groups",
  538. "schema": {
  539. "type": "integer",
  540. "format": "int64",
  541. "default": 0
  542. }
  543. },
  544. {
  545. "name": "OCS-APIRequest",
  546. "in": "header",
  547. "description": "Required to be true for the API request to pass",
  548. "required": true,
  549. "schema": {
  550. "type": "boolean",
  551. "default": true
  552. }
  553. }
  554. ],
  555. "responses": {
  556. "200": {
  557. "description": "Groups details returned",
  558. "content": {
  559. "application/json": {
  560. "schema": {
  561. "type": "object",
  562. "required": [
  563. "ocs"
  564. ],
  565. "properties": {
  566. "ocs": {
  567. "type": "object",
  568. "required": [
  569. "meta",
  570. "data"
  571. ],
  572. "properties": {
  573. "meta": {
  574. "$ref": "#/components/schemas/OCSMeta"
  575. },
  576. "data": {
  577. "type": "object",
  578. "required": [
  579. "groups"
  580. ],
  581. "properties": {
  582. "groups": {
  583. "type": "array",
  584. "items": {
  585. "$ref": "#/components/schemas/GroupDetails"
  586. }
  587. }
  588. }
  589. }
  590. }
  591. }
  592. }
  593. }
  594. }
  595. }
  596. }
  597. }
  598. }
  599. },
  600. "/ocs/v2.php/cloud/groups/{groupId}/users": {
  601. "get": {
  602. "operationId": "groups-get-group-users",
  603. "summary": "Get a list of users in the specified group",
  604. "tags": [
  605. "groups"
  606. ],
  607. "security": [
  608. {
  609. "bearer_auth": []
  610. },
  611. {
  612. "basic_auth": []
  613. }
  614. ],
  615. "parameters": [
  616. {
  617. "name": "groupId",
  618. "in": "path",
  619. "description": "ID of the group",
  620. "required": true,
  621. "schema": {
  622. "type": "string",
  623. "pattern": "^.+$"
  624. }
  625. },
  626. {
  627. "name": "OCS-APIRequest",
  628. "in": "header",
  629. "description": "Required to be true for the API request to pass",
  630. "required": true,
  631. "schema": {
  632. "type": "boolean",
  633. "default": true
  634. }
  635. }
  636. ],
  637. "responses": {
  638. "200": {
  639. "description": "User IDs returned",
  640. "content": {
  641. "application/json": {
  642. "schema": {
  643. "type": "object",
  644. "required": [
  645. "ocs"
  646. ],
  647. "properties": {
  648. "ocs": {
  649. "type": "object",
  650. "required": [
  651. "meta",
  652. "data"
  653. ],
  654. "properties": {
  655. "meta": {
  656. "$ref": "#/components/schemas/OCSMeta"
  657. },
  658. "data": {
  659. "type": "object",
  660. "required": [
  661. "users"
  662. ],
  663. "properties": {
  664. "users": {
  665. "type": "array",
  666. "items": {
  667. "type": "string"
  668. }
  669. }
  670. }
  671. }
  672. }
  673. }
  674. }
  675. }
  676. }
  677. }
  678. },
  679. "404": {
  680. "description": "Group not found",
  681. "content": {
  682. "application/json": {
  683. "schema": {
  684. "type": "object",
  685. "required": [
  686. "ocs"
  687. ],
  688. "properties": {
  689. "ocs": {
  690. "type": "object",
  691. "required": [
  692. "meta",
  693. "data"
  694. ],
  695. "properties": {
  696. "meta": {
  697. "$ref": "#/components/schemas/OCSMeta"
  698. },
  699. "data": {}
  700. }
  701. }
  702. }
  703. }
  704. }
  705. }
  706. },
  707. "403": {
  708. "description": "Missing permissions to get users in the group",
  709. "content": {
  710. "application/json": {
  711. "schema": {
  712. "type": "object",
  713. "required": [
  714. "ocs"
  715. ],
  716. "properties": {
  717. "ocs": {
  718. "type": "object",
  719. "required": [
  720. "meta",
  721. "data"
  722. ],
  723. "properties": {
  724. "meta": {
  725. "$ref": "#/components/schemas/OCSMeta"
  726. },
  727. "data": {}
  728. }
  729. }
  730. }
  731. }
  732. }
  733. }
  734. }
  735. }
  736. }
  737. },
  738. "/ocs/v2.php/cloud/groups/{groupId}/users/details": {
  739. "get": {
  740. "operationId": "groups-get-group-users-details",
  741. "summary": "Get a list of users details in the specified group",
  742. "tags": [
  743. "groups"
  744. ],
  745. "security": [
  746. {
  747. "bearer_auth": []
  748. },
  749. {
  750. "basic_auth": []
  751. }
  752. ],
  753. "parameters": [
  754. {
  755. "name": "groupId",
  756. "in": "path",
  757. "description": "ID of the group",
  758. "required": true,
  759. "schema": {
  760. "type": "string",
  761. "pattern": "^.+$"
  762. }
  763. },
  764. {
  765. "name": "search",
  766. "in": "query",
  767. "description": "Text to search for",
  768. "schema": {
  769. "type": "string",
  770. "default": ""
  771. }
  772. },
  773. {
  774. "name": "limit",
  775. "in": "query",
  776. "description": "Limit the amount of groups returned",
  777. "schema": {
  778. "type": "integer",
  779. "format": "int64",
  780. "nullable": true
  781. }
  782. },
  783. {
  784. "name": "offset",
  785. "in": "query",
  786. "description": "Offset for searching for groups",
  787. "schema": {
  788. "type": "integer",
  789. "format": "int64",
  790. "default": 0
  791. }
  792. },
  793. {
  794. "name": "OCS-APIRequest",
  795. "in": "header",
  796. "description": "Required to be true for the API request to pass",
  797. "required": true,
  798. "schema": {
  799. "type": "boolean",
  800. "default": true
  801. }
  802. }
  803. ],
  804. "responses": {
  805. "200": {
  806. "description": "Group users details returned",
  807. "content": {
  808. "application/json": {
  809. "schema": {
  810. "type": "object",
  811. "required": [
  812. "ocs"
  813. ],
  814. "properties": {
  815. "ocs": {
  816. "type": "object",
  817. "required": [
  818. "meta",
  819. "data"
  820. ],
  821. "properties": {
  822. "meta": {
  823. "$ref": "#/components/schemas/OCSMeta"
  824. },
  825. "data": {
  826. "type": "object",
  827. "required": [
  828. "users"
  829. ],
  830. "properties": {
  831. "users": {
  832. "type": "object",
  833. "additionalProperties": {
  834. "anyOf": [
  835. {
  836. "$ref": "#/components/schemas/UserDetails"
  837. },
  838. {
  839. "type": "object",
  840. "required": [
  841. "id"
  842. ],
  843. "properties": {
  844. "id": {
  845. "type": "string"
  846. }
  847. }
  848. }
  849. ]
  850. }
  851. }
  852. }
  853. }
  854. }
  855. }
  856. }
  857. }
  858. }
  859. }
  860. }
  861. }
  862. }
  863. },
  864. "/ocs/v2.php/cloud/groups/{groupId}": {
  865. "get": {
  866. "operationId": "groups-get-group",
  867. "summary": "Get a list of users in the specified group",
  868. "deprecated": true,
  869. "tags": [
  870. "groups"
  871. ],
  872. "security": [
  873. {
  874. "bearer_auth": []
  875. },
  876. {
  877. "basic_auth": []
  878. }
  879. ],
  880. "parameters": [
  881. {
  882. "name": "groupId",
  883. "in": "path",
  884. "description": "ID of the group",
  885. "required": true,
  886. "schema": {
  887. "type": "string",
  888. "pattern": "^.+$"
  889. }
  890. },
  891. {
  892. "name": "OCS-APIRequest",
  893. "in": "header",
  894. "description": "Required to be true for the API request to pass",
  895. "required": true,
  896. "schema": {
  897. "type": "boolean",
  898. "default": true
  899. }
  900. }
  901. ],
  902. "responses": {
  903. "200": {
  904. "description": "Group users returned",
  905. "content": {
  906. "application/json": {
  907. "schema": {
  908. "type": "object",
  909. "required": [
  910. "ocs"
  911. ],
  912. "properties": {
  913. "ocs": {
  914. "type": "object",
  915. "required": [
  916. "meta",
  917. "data"
  918. ],
  919. "properties": {
  920. "meta": {
  921. "$ref": "#/components/schemas/OCSMeta"
  922. },
  923. "data": {
  924. "type": "object",
  925. "required": [
  926. "users"
  927. ],
  928. "properties": {
  929. "users": {
  930. "type": "array",
  931. "items": {
  932. "type": "string"
  933. }
  934. }
  935. }
  936. }
  937. }
  938. }
  939. }
  940. }
  941. }
  942. }
  943. }
  944. }
  945. }
  946. },
  947. "/ocs/v2.php/cloud/users": {
  948. "get": {
  949. "operationId": "users-get-users",
  950. "summary": "Get a list of users",
  951. "tags": [
  952. "users"
  953. ],
  954. "security": [
  955. {
  956. "bearer_auth": []
  957. },
  958. {
  959. "basic_auth": []
  960. }
  961. ],
  962. "parameters": [
  963. {
  964. "name": "search",
  965. "in": "query",
  966. "description": "Text to search for",
  967. "schema": {
  968. "type": "string",
  969. "default": ""
  970. }
  971. },
  972. {
  973. "name": "limit",
  974. "in": "query",
  975. "description": "Limit the amount of groups returned",
  976. "schema": {
  977. "type": "integer",
  978. "format": "int64",
  979. "nullable": true
  980. }
  981. },
  982. {
  983. "name": "offset",
  984. "in": "query",
  985. "description": "Offset for searching for groups",
  986. "schema": {
  987. "type": "integer",
  988. "format": "int64",
  989. "default": 0
  990. }
  991. },
  992. {
  993. "name": "OCS-APIRequest",
  994. "in": "header",
  995. "description": "Required to be true for the API request to pass",
  996. "required": true,
  997. "schema": {
  998. "type": "boolean",
  999. "default": true
  1000. }
  1001. }
  1002. ],
  1003. "responses": {
  1004. "200": {
  1005. "description": "Users returned",
  1006. "content": {
  1007. "application/json": {
  1008. "schema": {
  1009. "type": "object",
  1010. "required": [
  1011. "ocs"
  1012. ],
  1013. "properties": {
  1014. "ocs": {
  1015. "type": "object",
  1016. "required": [
  1017. "meta",
  1018. "data"
  1019. ],
  1020. "properties": {
  1021. "meta": {
  1022. "$ref": "#/components/schemas/OCSMeta"
  1023. },
  1024. "data": {
  1025. "type": "object",
  1026. "required": [
  1027. "users"
  1028. ],
  1029. "properties": {
  1030. "users": {
  1031. "type": "array",
  1032. "items": {
  1033. "type": "string"
  1034. }
  1035. }
  1036. }
  1037. }
  1038. }
  1039. }
  1040. }
  1041. }
  1042. }
  1043. }
  1044. }
  1045. }
  1046. },
  1047. "post": {
  1048. "operationId": "users-add-user",
  1049. "summary": "Create a new user",
  1050. "description": "This endpoint requires password confirmation",
  1051. "tags": [
  1052. "users"
  1053. ],
  1054. "security": [
  1055. {
  1056. "bearer_auth": []
  1057. },
  1058. {
  1059. "basic_auth": []
  1060. }
  1061. ],
  1062. "requestBody": {
  1063. "required": true,
  1064. "content": {
  1065. "application/json": {
  1066. "schema": {
  1067. "type": "object",
  1068. "required": [
  1069. "userid"
  1070. ],
  1071. "properties": {
  1072. "userid": {
  1073. "type": "string",
  1074. "description": "ID of the user"
  1075. },
  1076. "password": {
  1077. "type": "string",
  1078. "default": "",
  1079. "description": "Password of the user"
  1080. },
  1081. "displayName": {
  1082. "type": "string",
  1083. "default": "",
  1084. "description": "Display name of the user"
  1085. },
  1086. "email": {
  1087. "type": "string",
  1088. "default": "",
  1089. "description": "Email of the user"
  1090. },
  1091. "groups": {
  1092. "type": "array",
  1093. "default": [],
  1094. "description": "Groups of the user",
  1095. "items": {
  1096. "type": "string"
  1097. }
  1098. },
  1099. "subadmin": {
  1100. "type": "array",
  1101. "default": [],
  1102. "description": "Groups where the user is subadmin",
  1103. "items": {
  1104. "type": "string"
  1105. }
  1106. },
  1107. "quota": {
  1108. "type": "string",
  1109. "default": "",
  1110. "description": "Quota of the user"
  1111. },
  1112. "language": {
  1113. "type": "string",
  1114. "default": "",
  1115. "description": "Language of the user"
  1116. },
  1117. "manager": {
  1118. "type": "string",
  1119. "nullable": true,
  1120. "description": "Manager of the user"
  1121. }
  1122. }
  1123. }
  1124. }
  1125. }
  1126. },
  1127. "parameters": [
  1128. {
  1129. "name": "OCS-APIRequest",
  1130. "in": "header",
  1131. "description": "Required to be true for the API request to pass",
  1132. "required": true,
  1133. "schema": {
  1134. "type": "boolean",
  1135. "default": true
  1136. }
  1137. }
  1138. ],
  1139. "responses": {
  1140. "200": {
  1141. "description": "User added successfully",
  1142. "content": {
  1143. "application/json": {
  1144. "schema": {
  1145. "type": "object",
  1146. "required": [
  1147. "ocs"
  1148. ],
  1149. "properties": {
  1150. "ocs": {
  1151. "type": "object",
  1152. "required": [
  1153. "meta",
  1154. "data"
  1155. ],
  1156. "properties": {
  1157. "meta": {
  1158. "$ref": "#/components/schemas/OCSMeta"
  1159. },
  1160. "data": {
  1161. "type": "object",
  1162. "required": [
  1163. "id"
  1164. ],
  1165. "properties": {
  1166. "id": {
  1167. "type": "string"
  1168. }
  1169. }
  1170. }
  1171. }
  1172. }
  1173. }
  1174. }
  1175. }
  1176. }
  1177. },
  1178. "403": {
  1179. "description": "Missing permissions to make user subadmin",
  1180. "content": {
  1181. "application/json": {
  1182. "schema": {
  1183. "type": "object",
  1184. "required": [
  1185. "ocs"
  1186. ],
  1187. "properties": {
  1188. "ocs": {
  1189. "type": "object",
  1190. "required": [
  1191. "meta",
  1192. "data"
  1193. ],
  1194. "properties": {
  1195. "meta": {
  1196. "$ref": "#/components/schemas/OCSMeta"
  1197. },
  1198. "data": {}
  1199. }
  1200. }
  1201. }
  1202. }
  1203. }
  1204. }
  1205. }
  1206. }
  1207. }
  1208. },
  1209. "/ocs/v2.php/cloud/users/details": {
  1210. "get": {
  1211. "operationId": "users-get-users-details",
  1212. "summary": "Get a list of users and their details",
  1213. "tags": [
  1214. "users"
  1215. ],
  1216. "security": [
  1217. {
  1218. "bearer_auth": []
  1219. },
  1220. {
  1221. "basic_auth": []
  1222. }
  1223. ],
  1224. "parameters": [
  1225. {
  1226. "name": "search",
  1227. "in": "query",
  1228. "description": "Text to search for",
  1229. "schema": {
  1230. "type": "string",
  1231. "default": ""
  1232. }
  1233. },
  1234. {
  1235. "name": "limit",
  1236. "in": "query",
  1237. "description": "Limit the amount of groups returned",
  1238. "schema": {
  1239. "type": "integer",
  1240. "format": "int64",
  1241. "nullable": true
  1242. }
  1243. },
  1244. {
  1245. "name": "offset",
  1246. "in": "query",
  1247. "description": "Offset for searching for groups",
  1248. "schema": {
  1249. "type": "integer",
  1250. "format": "int64",
  1251. "default": 0
  1252. }
  1253. },
  1254. {
  1255. "name": "OCS-APIRequest",
  1256. "in": "header",
  1257. "description": "Required to be true for the API request to pass",
  1258. "required": true,
  1259. "schema": {
  1260. "type": "boolean",
  1261. "default": true
  1262. }
  1263. }
  1264. ],
  1265. "responses": {
  1266. "200": {
  1267. "description": "Users details returned",
  1268. "content": {
  1269. "application/json": {
  1270. "schema": {
  1271. "type": "object",
  1272. "required": [
  1273. "ocs"
  1274. ],
  1275. "properties": {
  1276. "ocs": {
  1277. "type": "object",
  1278. "required": [
  1279. "meta",
  1280. "data"
  1281. ],
  1282. "properties": {
  1283. "meta": {
  1284. "$ref": "#/components/schemas/OCSMeta"
  1285. },
  1286. "data": {
  1287. "type": "object",
  1288. "required": [
  1289. "users"
  1290. ],
  1291. "properties": {
  1292. "users": {
  1293. "type": "object",
  1294. "additionalProperties": {
  1295. "anyOf": [
  1296. {
  1297. "$ref": "#/components/schemas/UserDetails"
  1298. },
  1299. {
  1300. "type": "object",
  1301. "required": [
  1302. "id"
  1303. ],
  1304. "properties": {
  1305. "id": {
  1306. "type": "string"
  1307. }
  1308. }
  1309. }
  1310. ]
  1311. }
  1312. }
  1313. }
  1314. }
  1315. }
  1316. }
  1317. }
  1318. }
  1319. }
  1320. }
  1321. }
  1322. }
  1323. }
  1324. },
  1325. "/ocs/v2.php/cloud/users/disabled": {
  1326. "get": {
  1327. "operationId": "users-get-disabled-users-details",
  1328. "summary": "Get the list of disabled users and their details",
  1329. "tags": [
  1330. "users"
  1331. ],
  1332. "security": [
  1333. {
  1334. "bearer_auth": []
  1335. },
  1336. {
  1337. "basic_auth": []
  1338. }
  1339. ],
  1340. "parameters": [
  1341. {
  1342. "name": "search",
  1343. "in": "query",
  1344. "description": "Text to search for",
  1345. "schema": {
  1346. "type": "string",
  1347. "default": ""
  1348. }
  1349. },
  1350. {
  1351. "name": "limit",
  1352. "in": "query",
  1353. "description": "Limit the amount of users returned",
  1354. "schema": {
  1355. "type": "integer",
  1356. "format": "int64",
  1357. "nullable": true
  1358. }
  1359. },
  1360. {
  1361. "name": "offset",
  1362. "in": "query",
  1363. "description": "Offset",
  1364. "schema": {
  1365. "type": "integer",
  1366. "format": "int64",
  1367. "default": 0
  1368. }
  1369. },
  1370. {
  1371. "name": "OCS-APIRequest",
  1372. "in": "header",
  1373. "description": "Required to be true for the API request to pass",
  1374. "required": true,
  1375. "schema": {
  1376. "type": "boolean",
  1377. "default": true
  1378. }
  1379. }
  1380. ],
  1381. "responses": {
  1382. "200": {
  1383. "description": "Disabled users details returned",
  1384. "content": {
  1385. "application/json": {
  1386. "schema": {
  1387. "type": "object",
  1388. "required": [
  1389. "ocs"
  1390. ],
  1391. "properties": {
  1392. "ocs": {
  1393. "type": "object",
  1394. "required": [
  1395. "meta",
  1396. "data"
  1397. ],
  1398. "properties": {
  1399. "meta": {
  1400. "$ref": "#/components/schemas/OCSMeta"
  1401. },
  1402. "data": {
  1403. "type": "object",
  1404. "required": [
  1405. "users"
  1406. ],
  1407. "properties": {
  1408. "users": {
  1409. "type": "object",
  1410. "additionalProperties": {
  1411. "anyOf": [
  1412. {
  1413. "$ref": "#/components/schemas/UserDetails"
  1414. },
  1415. {
  1416. "type": "object",
  1417. "required": [
  1418. "id"
  1419. ],
  1420. "properties": {
  1421. "id": {
  1422. "type": "string"
  1423. }
  1424. }
  1425. }
  1426. ]
  1427. }
  1428. }
  1429. }
  1430. }
  1431. }
  1432. }
  1433. }
  1434. }
  1435. }
  1436. }
  1437. }
  1438. }
  1439. }
  1440. },
  1441. "/ocs/v2.php/cloud/users/search/by-phone": {
  1442. "post": {
  1443. "operationId": "users-search-by-phone-numbers",
  1444. "summary": "Search users by their phone numbers",
  1445. "tags": [
  1446. "users"
  1447. ],
  1448. "security": [
  1449. {
  1450. "bearer_auth": []
  1451. },
  1452. {
  1453. "basic_auth": []
  1454. }
  1455. ],
  1456. "requestBody": {
  1457. "required": true,
  1458. "content": {
  1459. "application/json": {
  1460. "schema": {
  1461. "type": "object",
  1462. "required": [
  1463. "location",
  1464. "search"
  1465. ],
  1466. "properties": {
  1467. "location": {
  1468. "type": "string",
  1469. "description": "Location of the phone number (for country code)"
  1470. },
  1471. "search": {
  1472. "type": "object",
  1473. "description": "Phone numbers to search for",
  1474. "additionalProperties": {
  1475. "type": "array",
  1476. "items": {
  1477. "type": "string"
  1478. }
  1479. }
  1480. }
  1481. }
  1482. }
  1483. }
  1484. }
  1485. },
  1486. "parameters": [
  1487. {
  1488. "name": "OCS-APIRequest",
  1489. "in": "header",
  1490. "description": "Required to be true for the API request to pass",
  1491. "required": true,
  1492. "schema": {
  1493. "type": "boolean",
  1494. "default": true
  1495. }
  1496. }
  1497. ],
  1498. "responses": {
  1499. "200": {
  1500. "description": "Users returned",
  1501. "content": {
  1502. "application/json": {
  1503. "schema": {
  1504. "type": "object",
  1505. "required": [
  1506. "ocs"
  1507. ],
  1508. "properties": {
  1509. "ocs": {
  1510. "type": "object",
  1511. "required": [
  1512. "meta",
  1513. "data"
  1514. ],
  1515. "properties": {
  1516. "meta": {
  1517. "$ref": "#/components/schemas/OCSMeta"
  1518. },
  1519. "data": {
  1520. "type": "object",
  1521. "additionalProperties": {
  1522. "type": "string"
  1523. }
  1524. }
  1525. }
  1526. }
  1527. }
  1528. }
  1529. }
  1530. }
  1531. },
  1532. "400": {
  1533. "description": "Invalid location",
  1534. "content": {
  1535. "application/json": {
  1536. "schema": {
  1537. "type": "object",
  1538. "required": [
  1539. "ocs"
  1540. ],
  1541. "properties": {
  1542. "ocs": {
  1543. "type": "object",
  1544. "required": [
  1545. "meta",
  1546. "data"
  1547. ],
  1548. "properties": {
  1549. "meta": {
  1550. "$ref": "#/components/schemas/OCSMeta"
  1551. },
  1552. "data": {}
  1553. }
  1554. }
  1555. }
  1556. }
  1557. }
  1558. }
  1559. }
  1560. }
  1561. }
  1562. },
  1563. "/ocs/v2.php/cloud/users/{userId}": {
  1564. "get": {
  1565. "operationId": "users-get-user",
  1566. "summary": "Get the details of a user",
  1567. "tags": [
  1568. "users"
  1569. ],
  1570. "security": [
  1571. {
  1572. "bearer_auth": []
  1573. },
  1574. {
  1575. "basic_auth": []
  1576. }
  1577. ],
  1578. "parameters": [
  1579. {
  1580. "name": "userId",
  1581. "in": "path",
  1582. "description": "ID of the user",
  1583. "required": true,
  1584. "schema": {
  1585. "type": "string"
  1586. }
  1587. },
  1588. {
  1589. "name": "OCS-APIRequest",
  1590. "in": "header",
  1591. "description": "Required to be true for the API request to pass",
  1592. "required": true,
  1593. "schema": {
  1594. "type": "boolean",
  1595. "default": true
  1596. }
  1597. }
  1598. ],
  1599. "responses": {
  1600. "200": {
  1601. "description": "User returned",
  1602. "content": {
  1603. "application/json": {
  1604. "schema": {
  1605. "type": "object",
  1606. "required": [
  1607. "ocs"
  1608. ],
  1609. "properties": {
  1610. "ocs": {
  1611. "type": "object",
  1612. "required": [
  1613. "meta",
  1614. "data"
  1615. ],
  1616. "properties": {
  1617. "meta": {
  1618. "$ref": "#/components/schemas/OCSMeta"
  1619. },
  1620. "data": {
  1621. "$ref": "#/components/schemas/UserDetails"
  1622. }
  1623. }
  1624. }
  1625. }
  1626. }
  1627. }
  1628. }
  1629. }
  1630. }
  1631. },
  1632. "put": {
  1633. "operationId": "users-edit-user",
  1634. "summary": "Update a value of the user's details",
  1635. "description": "This endpoint requires password confirmation",
  1636. "tags": [
  1637. "users"
  1638. ],
  1639. "security": [
  1640. {
  1641. "bearer_auth": []
  1642. },
  1643. {
  1644. "basic_auth": []
  1645. }
  1646. ],
  1647. "requestBody": {
  1648. "required": true,
  1649. "content": {
  1650. "application/json": {
  1651. "schema": {
  1652. "type": "object",
  1653. "required": [
  1654. "key",
  1655. "value"
  1656. ],
  1657. "properties": {
  1658. "key": {
  1659. "type": "string",
  1660. "description": "Key that will be updated"
  1661. },
  1662. "value": {
  1663. "type": "string",
  1664. "description": "New value for the key"
  1665. }
  1666. }
  1667. }
  1668. }
  1669. }
  1670. },
  1671. "parameters": [
  1672. {
  1673. "name": "userId",
  1674. "in": "path",
  1675. "description": "ID of the user",
  1676. "required": true,
  1677. "schema": {
  1678. "type": "string"
  1679. }
  1680. },
  1681. {
  1682. "name": "OCS-APIRequest",
  1683. "in": "header",
  1684. "description": "Required to be true for the API request to pass",
  1685. "required": true,
  1686. "schema": {
  1687. "type": "boolean",
  1688. "default": true
  1689. }
  1690. }
  1691. ],
  1692. "responses": {
  1693. "200": {
  1694. "description": "User value edited successfully",
  1695. "content": {
  1696. "application/json": {
  1697. "schema": {
  1698. "type": "object",
  1699. "required": [
  1700. "ocs"
  1701. ],
  1702. "properties": {
  1703. "ocs": {
  1704. "type": "object",
  1705. "required": [
  1706. "meta",
  1707. "data"
  1708. ],
  1709. "properties": {
  1710. "meta": {
  1711. "$ref": "#/components/schemas/OCSMeta"
  1712. },
  1713. "data": {}
  1714. }
  1715. }
  1716. }
  1717. }
  1718. }
  1719. }
  1720. }
  1721. }
  1722. },
  1723. "delete": {
  1724. "operationId": "users-delete-user",
  1725. "summary": "Delete a user",
  1726. "description": "This endpoint requires password confirmation",
  1727. "tags": [
  1728. "users"
  1729. ],
  1730. "security": [
  1731. {
  1732. "bearer_auth": []
  1733. },
  1734. {
  1735. "basic_auth": []
  1736. }
  1737. ],
  1738. "parameters": [
  1739. {
  1740. "name": "userId",
  1741. "in": "path",
  1742. "description": "ID of the user",
  1743. "required": true,
  1744. "schema": {
  1745. "type": "string"
  1746. }
  1747. },
  1748. {
  1749. "name": "OCS-APIRequest",
  1750. "in": "header",
  1751. "description": "Required to be true for the API request to pass",
  1752. "required": true,
  1753. "schema": {
  1754. "type": "boolean",
  1755. "default": true
  1756. }
  1757. }
  1758. ],
  1759. "responses": {
  1760. "200": {
  1761. "description": "User deleted successfully",
  1762. "content": {
  1763. "application/json": {
  1764. "schema": {
  1765. "type": "object",
  1766. "required": [
  1767. "ocs"
  1768. ],
  1769. "properties": {
  1770. "ocs": {
  1771. "type": "object",
  1772. "required": [
  1773. "meta",
  1774. "data"
  1775. ],
  1776. "properties": {
  1777. "meta": {
  1778. "$ref": "#/components/schemas/OCSMeta"
  1779. },
  1780. "data": {}
  1781. }
  1782. }
  1783. }
  1784. }
  1785. }
  1786. }
  1787. }
  1788. }
  1789. }
  1790. },
  1791. "/ocs/v2.php/cloud/user": {
  1792. "get": {
  1793. "operationId": "users-get-current-user",
  1794. "summary": "Get the details of the current user",
  1795. "tags": [
  1796. "users"
  1797. ],
  1798. "security": [
  1799. {
  1800. "bearer_auth": []
  1801. },
  1802. {
  1803. "basic_auth": []
  1804. }
  1805. ],
  1806. "parameters": [
  1807. {
  1808. "name": "OCS-APIRequest",
  1809. "in": "header",
  1810. "description": "Required to be true for the API request to pass",
  1811. "required": true,
  1812. "schema": {
  1813. "type": "boolean",
  1814. "default": true
  1815. }
  1816. }
  1817. ],
  1818. "responses": {
  1819. "200": {
  1820. "description": "Current user returned",
  1821. "content": {
  1822. "application/json": {
  1823. "schema": {
  1824. "type": "object",
  1825. "required": [
  1826. "ocs"
  1827. ],
  1828. "properties": {
  1829. "ocs": {
  1830. "type": "object",
  1831. "required": [
  1832. "meta",
  1833. "data"
  1834. ],
  1835. "properties": {
  1836. "meta": {
  1837. "$ref": "#/components/schemas/OCSMeta"
  1838. },
  1839. "data": {
  1840. "$ref": "#/components/schemas/UserDetails"
  1841. }
  1842. }
  1843. }
  1844. }
  1845. }
  1846. }
  1847. }
  1848. }
  1849. }
  1850. }
  1851. },
  1852. "/ocs/v2.php/cloud/user/fields": {
  1853. "get": {
  1854. "operationId": "users-get-editable-fields",
  1855. "summary": "Get a list of fields that are editable for the current user",
  1856. "tags": [
  1857. "users"
  1858. ],
  1859. "security": [
  1860. {
  1861. "bearer_auth": []
  1862. },
  1863. {
  1864. "basic_auth": []
  1865. }
  1866. ],
  1867. "parameters": [
  1868. {
  1869. "name": "OCS-APIRequest",
  1870. "in": "header",
  1871. "description": "Required to be true for the API request to pass",
  1872. "required": true,
  1873. "schema": {
  1874. "type": "boolean",
  1875. "default": true
  1876. }
  1877. }
  1878. ],
  1879. "responses": {
  1880. "200": {
  1881. "description": "Editable fields returned",
  1882. "content": {
  1883. "application/json": {
  1884. "schema": {
  1885. "type": "object",
  1886. "required": [
  1887. "ocs"
  1888. ],
  1889. "properties": {
  1890. "ocs": {
  1891. "type": "object",
  1892. "required": [
  1893. "meta",
  1894. "data"
  1895. ],
  1896. "properties": {
  1897. "meta": {
  1898. "$ref": "#/components/schemas/OCSMeta"
  1899. },
  1900. "data": {
  1901. "type": "array",
  1902. "items": {
  1903. "type": "string"
  1904. }
  1905. }
  1906. }
  1907. }
  1908. }
  1909. }
  1910. }
  1911. }
  1912. }
  1913. }
  1914. }
  1915. },
  1916. "/ocs/v2.php/cloud/user/fields/{userId}": {
  1917. "get": {
  1918. "operationId": "users-get-editable-fields-for-user",
  1919. "summary": "Get a list of fields that are editable for a user",
  1920. "tags": [
  1921. "users"
  1922. ],
  1923. "security": [
  1924. {
  1925. "bearer_auth": []
  1926. },
  1927. {
  1928. "basic_auth": []
  1929. }
  1930. ],
  1931. "parameters": [
  1932. {
  1933. "name": "userId",
  1934. "in": "path",
  1935. "description": "ID of the user",
  1936. "required": true,
  1937. "schema": {
  1938. "type": "string"
  1939. }
  1940. },
  1941. {
  1942. "name": "OCS-APIRequest",
  1943. "in": "header",
  1944. "description": "Required to be true for the API request to pass",
  1945. "required": true,
  1946. "schema": {
  1947. "type": "boolean",
  1948. "default": true
  1949. }
  1950. }
  1951. ],
  1952. "responses": {
  1953. "200": {
  1954. "description": "Editable fields for user returned",
  1955. "content": {
  1956. "application/json": {
  1957. "schema": {
  1958. "type": "object",
  1959. "required": [
  1960. "ocs"
  1961. ],
  1962. "properties": {
  1963. "ocs": {
  1964. "type": "object",
  1965. "required": [
  1966. "meta",
  1967. "data"
  1968. ],
  1969. "properties": {
  1970. "meta": {
  1971. "$ref": "#/components/schemas/OCSMeta"
  1972. },
  1973. "data": {
  1974. "type": "array",
  1975. "items": {
  1976. "type": "string"
  1977. }
  1978. }
  1979. }
  1980. }
  1981. }
  1982. }
  1983. }
  1984. }
  1985. }
  1986. }
  1987. }
  1988. },
  1989. "/ocs/v2.php/cloud/users/{userId}/{collectionName}": {
  1990. "put": {
  1991. "operationId": "users-edit-user-multi-value",
  1992. "summary": "Update multiple values of the user's details",
  1993. "description": "This endpoint requires password confirmation",
  1994. "tags": [
  1995. "users"
  1996. ],
  1997. "security": [
  1998. {
  1999. "bearer_auth": []
  2000. },
  2001. {
  2002. "basic_auth": []
  2003. }
  2004. ],
  2005. "requestBody": {
  2006. "required": true,
  2007. "content": {
  2008. "application/json": {
  2009. "schema": {
  2010. "type": "object",
  2011. "required": [
  2012. "key",
  2013. "value"
  2014. ],
  2015. "properties": {
  2016. "key": {
  2017. "type": "string",
  2018. "description": "Key that will be updated"
  2019. },
  2020. "value": {
  2021. "type": "string",
  2022. "description": "New value for the key"
  2023. }
  2024. }
  2025. }
  2026. }
  2027. }
  2028. },
  2029. "parameters": [
  2030. {
  2031. "name": "userId",
  2032. "in": "path",
  2033. "description": "ID of the user",
  2034. "required": true,
  2035. "schema": {
  2036. "type": "string"
  2037. }
  2038. },
  2039. {
  2040. "name": "collectionName",
  2041. "in": "path",
  2042. "description": "Collection to update",
  2043. "required": true,
  2044. "schema": {
  2045. "type": "string",
  2046. "pattern": "^(?!enable$|disable$)[a-zA-Z0-9_]*$"
  2047. }
  2048. },
  2049. {
  2050. "name": "OCS-APIRequest",
  2051. "in": "header",
  2052. "description": "Required to be true for the API request to pass",
  2053. "required": true,
  2054. "schema": {
  2055. "type": "boolean",
  2056. "default": true
  2057. }
  2058. }
  2059. ],
  2060. "responses": {
  2061. "200": {
  2062. "description": "User values edited successfully",
  2063. "content": {
  2064. "application/json": {
  2065. "schema": {
  2066. "type": "object",
  2067. "required": [
  2068. "ocs"
  2069. ],
  2070. "properties": {
  2071. "ocs": {
  2072. "type": "object",
  2073. "required": [
  2074. "meta",
  2075. "data"
  2076. ],
  2077. "properties": {
  2078. "meta": {
  2079. "$ref": "#/components/schemas/OCSMeta"
  2080. },
  2081. "data": {}
  2082. }
  2083. }
  2084. }
  2085. }
  2086. }
  2087. }
  2088. }
  2089. }
  2090. }
  2091. },
  2092. "/ocs/v2.php/cloud/users/{userId}/wipe": {
  2093. "post": {
  2094. "operationId": "users-wipe-user-devices",
  2095. "summary": "Wipe all devices of a user",
  2096. "description": "This endpoint requires password confirmation",
  2097. "tags": [
  2098. "users"
  2099. ],
  2100. "security": [
  2101. {
  2102. "bearer_auth": []
  2103. },
  2104. {
  2105. "basic_auth": []
  2106. }
  2107. ],
  2108. "parameters": [
  2109. {
  2110. "name": "userId",
  2111. "in": "path",
  2112. "description": "ID of the user",
  2113. "required": true,
  2114. "schema": {
  2115. "type": "string"
  2116. }
  2117. },
  2118. {
  2119. "name": "OCS-APIRequest",
  2120. "in": "header",
  2121. "description": "Required to be true for the API request to pass",
  2122. "required": true,
  2123. "schema": {
  2124. "type": "boolean",
  2125. "default": true
  2126. }
  2127. }
  2128. ],
  2129. "responses": {
  2130. "200": {
  2131. "description": "Wiped all user devices successfully",
  2132. "content": {
  2133. "application/json": {
  2134. "schema": {
  2135. "type": "object",
  2136. "required": [
  2137. "ocs"
  2138. ],
  2139. "properties": {
  2140. "ocs": {
  2141. "type": "object",
  2142. "required": [
  2143. "meta",
  2144. "data"
  2145. ],
  2146. "properties": {
  2147. "meta": {
  2148. "$ref": "#/components/schemas/OCSMeta"
  2149. },
  2150. "data": {}
  2151. }
  2152. }
  2153. }
  2154. }
  2155. }
  2156. }
  2157. }
  2158. }
  2159. }
  2160. },
  2161. "/ocs/v2.php/cloud/users/{userId}/enable": {
  2162. "put": {
  2163. "operationId": "users-enable-user",
  2164. "summary": "Enable a user",
  2165. "description": "This endpoint requires password confirmation",
  2166. "tags": [
  2167. "users"
  2168. ],
  2169. "security": [
  2170. {
  2171. "bearer_auth": []
  2172. },
  2173. {
  2174. "basic_auth": []
  2175. }
  2176. ],
  2177. "parameters": [
  2178. {
  2179. "name": "userId",
  2180. "in": "path",
  2181. "description": "ID of the user",
  2182. "required": true,
  2183. "schema": {
  2184. "type": "string"
  2185. }
  2186. },
  2187. {
  2188. "name": "OCS-APIRequest",
  2189. "in": "header",
  2190. "description": "Required to be true for the API request to pass",
  2191. "required": true,
  2192. "schema": {
  2193. "type": "boolean",
  2194. "default": true
  2195. }
  2196. }
  2197. ],
  2198. "responses": {
  2199. "200": {
  2200. "description": "User enabled successfully",
  2201. "content": {
  2202. "application/json": {
  2203. "schema": {
  2204. "type": "object",
  2205. "required": [
  2206. "ocs"
  2207. ],
  2208. "properties": {
  2209. "ocs": {
  2210. "type": "object",
  2211. "required": [
  2212. "meta",
  2213. "data"
  2214. ],
  2215. "properties": {
  2216. "meta": {
  2217. "$ref": "#/components/schemas/OCSMeta"
  2218. },
  2219. "data": {}
  2220. }
  2221. }
  2222. }
  2223. }
  2224. }
  2225. }
  2226. }
  2227. }
  2228. }
  2229. },
  2230. "/ocs/v2.php/cloud/users/{userId}/disable": {
  2231. "put": {
  2232. "operationId": "users-disable-user",
  2233. "summary": "Disable a user",
  2234. "description": "This endpoint requires password confirmation",
  2235. "tags": [
  2236. "users"
  2237. ],
  2238. "security": [
  2239. {
  2240. "bearer_auth": []
  2241. },
  2242. {
  2243. "basic_auth": []
  2244. }
  2245. ],
  2246. "parameters": [
  2247. {
  2248. "name": "userId",
  2249. "in": "path",
  2250. "description": "ID of the user",
  2251. "required": true,
  2252. "schema": {
  2253. "type": "string"
  2254. }
  2255. },
  2256. {
  2257. "name": "OCS-APIRequest",
  2258. "in": "header",
  2259. "description": "Required to be true for the API request to pass",
  2260. "required": true,
  2261. "schema": {
  2262. "type": "boolean",
  2263. "default": true
  2264. }
  2265. }
  2266. ],
  2267. "responses": {
  2268. "200": {
  2269. "description": "User disabled successfully",
  2270. "content": {
  2271. "application/json": {
  2272. "schema": {
  2273. "type": "object",
  2274. "required": [
  2275. "ocs"
  2276. ],
  2277. "properties": {
  2278. "ocs": {
  2279. "type": "object",
  2280. "required": [
  2281. "meta",
  2282. "data"
  2283. ],
  2284. "properties": {
  2285. "meta": {
  2286. "$ref": "#/components/schemas/OCSMeta"
  2287. },
  2288. "data": {}
  2289. }
  2290. }
  2291. }
  2292. }
  2293. }
  2294. }
  2295. }
  2296. }
  2297. }
  2298. },
  2299. "/ocs/v2.php/cloud/users/{userId}/groups": {
  2300. "get": {
  2301. "operationId": "users-get-users-groups",
  2302. "summary": "Get a list of groups the user belongs to",
  2303. "tags": [
  2304. "users"
  2305. ],
  2306. "security": [
  2307. {
  2308. "bearer_auth": []
  2309. },
  2310. {
  2311. "basic_auth": []
  2312. }
  2313. ],
  2314. "parameters": [
  2315. {
  2316. "name": "userId",
  2317. "in": "path",
  2318. "description": "ID of the user",
  2319. "required": true,
  2320. "schema": {
  2321. "type": "string"
  2322. }
  2323. },
  2324. {
  2325. "name": "OCS-APIRequest",
  2326. "in": "header",
  2327. "description": "Required to be true for the API request to pass",
  2328. "required": true,
  2329. "schema": {
  2330. "type": "boolean",
  2331. "default": true
  2332. }
  2333. }
  2334. ],
  2335. "responses": {
  2336. "200": {
  2337. "description": "Users groups returned",
  2338. "content": {
  2339. "application/json": {
  2340. "schema": {
  2341. "type": "object",
  2342. "required": [
  2343. "ocs"
  2344. ],
  2345. "properties": {
  2346. "ocs": {
  2347. "type": "object",
  2348. "required": [
  2349. "meta",
  2350. "data"
  2351. ],
  2352. "properties": {
  2353. "meta": {
  2354. "$ref": "#/components/schemas/OCSMeta"
  2355. },
  2356. "data": {
  2357. "type": "object",
  2358. "required": [
  2359. "groups"
  2360. ],
  2361. "properties": {
  2362. "groups": {
  2363. "type": "array",
  2364. "items": {
  2365. "type": "string"
  2366. }
  2367. }
  2368. }
  2369. }
  2370. }
  2371. }
  2372. }
  2373. }
  2374. }
  2375. }
  2376. }
  2377. }
  2378. },
  2379. "post": {
  2380. "operationId": "users-add-to-group",
  2381. "summary": "Add a user to a group",
  2382. "description": "This endpoint requires password confirmation",
  2383. "tags": [
  2384. "users"
  2385. ],
  2386. "security": [
  2387. {
  2388. "bearer_auth": []
  2389. },
  2390. {
  2391. "basic_auth": []
  2392. }
  2393. ],
  2394. "requestBody": {
  2395. "required": false,
  2396. "content": {
  2397. "application/json": {
  2398. "schema": {
  2399. "type": "object",
  2400. "properties": {
  2401. "groupid": {
  2402. "type": "string",
  2403. "default": "",
  2404. "description": "ID of the group"
  2405. }
  2406. }
  2407. }
  2408. }
  2409. }
  2410. },
  2411. "parameters": [
  2412. {
  2413. "name": "userId",
  2414. "in": "path",
  2415. "description": "ID of the user",
  2416. "required": true,
  2417. "schema": {
  2418. "type": "string"
  2419. }
  2420. },
  2421. {
  2422. "name": "OCS-APIRequest",
  2423. "in": "header",
  2424. "description": "Required to be true for the API request to pass",
  2425. "required": true,
  2426. "schema": {
  2427. "type": "boolean",
  2428. "default": true
  2429. }
  2430. }
  2431. ],
  2432. "responses": {
  2433. "200": {
  2434. "description": "User added to group successfully",
  2435. "content": {
  2436. "application/json": {
  2437. "schema": {
  2438. "type": "object",
  2439. "required": [
  2440. "ocs"
  2441. ],
  2442. "properties": {
  2443. "ocs": {
  2444. "type": "object",
  2445. "required": [
  2446. "meta",
  2447. "data"
  2448. ],
  2449. "properties": {
  2450. "meta": {
  2451. "$ref": "#/components/schemas/OCSMeta"
  2452. },
  2453. "data": {}
  2454. }
  2455. }
  2456. }
  2457. }
  2458. }
  2459. }
  2460. }
  2461. }
  2462. },
  2463. "delete": {
  2464. "operationId": "users-remove-from-group",
  2465. "summary": "Remove a user from a group",
  2466. "description": "This endpoint requires password confirmation",
  2467. "tags": [
  2468. "users"
  2469. ],
  2470. "security": [
  2471. {
  2472. "bearer_auth": []
  2473. },
  2474. {
  2475. "basic_auth": []
  2476. }
  2477. ],
  2478. "parameters": [
  2479. {
  2480. "name": "userId",
  2481. "in": "path",
  2482. "description": "ID of the user",
  2483. "required": true,
  2484. "schema": {
  2485. "type": "string"
  2486. }
  2487. },
  2488. {
  2489. "name": "groupid",
  2490. "in": "query",
  2491. "description": "ID of the group",
  2492. "required": true,
  2493. "schema": {
  2494. "type": "string"
  2495. }
  2496. },
  2497. {
  2498. "name": "OCS-APIRequest",
  2499. "in": "header",
  2500. "description": "Required to be true for the API request to pass",
  2501. "required": true,
  2502. "schema": {
  2503. "type": "boolean",
  2504. "default": true
  2505. }
  2506. }
  2507. ],
  2508. "responses": {
  2509. "200": {
  2510. "description": "User removed from group successfully",
  2511. "content": {
  2512. "application/json": {
  2513. "schema": {
  2514. "type": "object",
  2515. "required": [
  2516. "ocs"
  2517. ],
  2518. "properties": {
  2519. "ocs": {
  2520. "type": "object",
  2521. "required": [
  2522. "meta",
  2523. "data"
  2524. ],
  2525. "properties": {
  2526. "meta": {
  2527. "$ref": "#/components/schemas/OCSMeta"
  2528. },
  2529. "data": {}
  2530. }
  2531. }
  2532. }
  2533. }
  2534. }
  2535. }
  2536. }
  2537. }
  2538. }
  2539. },
  2540. "/ocs/v2.php/cloud/users/{userId}/welcome": {
  2541. "post": {
  2542. "operationId": "users-resend-welcome-message",
  2543. "summary": "Resend the welcome message",
  2544. "description": "This endpoint requires password confirmation",
  2545. "tags": [
  2546. "users"
  2547. ],
  2548. "security": [
  2549. {
  2550. "bearer_auth": []
  2551. },
  2552. {
  2553. "basic_auth": []
  2554. }
  2555. ],
  2556. "parameters": [
  2557. {
  2558. "name": "userId",
  2559. "in": "path",
  2560. "description": "ID if the user",
  2561. "required": true,
  2562. "schema": {
  2563. "type": "string"
  2564. }
  2565. },
  2566. {
  2567. "name": "OCS-APIRequest",
  2568. "in": "header",
  2569. "description": "Required to be true for the API request to pass",
  2570. "required": true,
  2571. "schema": {
  2572. "type": "boolean",
  2573. "default": true
  2574. }
  2575. }
  2576. ],
  2577. "responses": {
  2578. "200": {
  2579. "description": "Resent welcome message successfully",
  2580. "content": {
  2581. "application/json": {
  2582. "schema": {
  2583. "type": "object",
  2584. "required": [
  2585. "ocs"
  2586. ],
  2587. "properties": {
  2588. "ocs": {
  2589. "type": "object",
  2590. "required": [
  2591. "meta",
  2592. "data"
  2593. ],
  2594. "properties": {
  2595. "meta": {
  2596. "$ref": "#/components/schemas/OCSMeta"
  2597. },
  2598. "data": {}
  2599. }
  2600. }
  2601. }
  2602. }
  2603. }
  2604. }
  2605. }
  2606. }
  2607. }
  2608. },
  2609. "/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}": {
  2610. "post": {
  2611. "operationId": "app_config-set-value",
  2612. "summary": "Update the config value of an app",
  2613. "description": "This endpoint requires password confirmation",
  2614. "tags": [
  2615. "app_config"
  2616. ],
  2617. "security": [
  2618. {
  2619. "bearer_auth": []
  2620. },
  2621. {
  2622. "basic_auth": []
  2623. }
  2624. ],
  2625. "requestBody": {
  2626. "required": true,
  2627. "content": {
  2628. "application/json": {
  2629. "schema": {
  2630. "type": "object",
  2631. "required": [
  2632. "value"
  2633. ],
  2634. "properties": {
  2635. "value": {
  2636. "type": "string",
  2637. "description": "New value for the key"
  2638. }
  2639. }
  2640. }
  2641. }
  2642. }
  2643. },
  2644. "parameters": [
  2645. {
  2646. "name": "app",
  2647. "in": "path",
  2648. "description": "ID of the app",
  2649. "required": true,
  2650. "schema": {
  2651. "type": "string"
  2652. }
  2653. },
  2654. {
  2655. "name": "key",
  2656. "in": "path",
  2657. "description": "Key to update",
  2658. "required": true,
  2659. "schema": {
  2660. "type": "string"
  2661. }
  2662. },
  2663. {
  2664. "name": "OCS-APIRequest",
  2665. "in": "header",
  2666. "description": "Required to be true for the API request to pass",
  2667. "required": true,
  2668. "schema": {
  2669. "type": "boolean",
  2670. "default": true
  2671. }
  2672. }
  2673. ],
  2674. "responses": {
  2675. "200": {
  2676. "description": "Value updated successfully",
  2677. "content": {
  2678. "application/json": {
  2679. "schema": {
  2680. "type": "object",
  2681. "required": [
  2682. "ocs"
  2683. ],
  2684. "properties": {
  2685. "ocs": {
  2686. "type": "object",
  2687. "required": [
  2688. "meta",
  2689. "data"
  2690. ],
  2691. "properties": {
  2692. "meta": {
  2693. "$ref": "#/components/schemas/OCSMeta"
  2694. },
  2695. "data": {}
  2696. }
  2697. }
  2698. }
  2699. }
  2700. }
  2701. }
  2702. },
  2703. "403": {
  2704. "description": "App or key is not allowed",
  2705. "content": {
  2706. "application/json": {
  2707. "schema": {
  2708. "type": "object",
  2709. "required": [
  2710. "ocs"
  2711. ],
  2712. "properties": {
  2713. "ocs": {
  2714. "type": "object",
  2715. "required": [
  2716. "meta",
  2717. "data"
  2718. ],
  2719. "properties": {
  2720. "meta": {
  2721. "$ref": "#/components/schemas/OCSMeta"
  2722. },
  2723. "data": {
  2724. "type": "object",
  2725. "required": [
  2726. "data"
  2727. ],
  2728. "properties": {
  2729. "data": {
  2730. "type": "object",
  2731. "required": [
  2732. "message"
  2733. ],
  2734. "properties": {
  2735. "message": {
  2736. "type": "string"
  2737. }
  2738. }
  2739. }
  2740. }
  2741. }
  2742. }
  2743. }
  2744. }
  2745. }
  2746. }
  2747. }
  2748. }
  2749. }
  2750. }
  2751. },
  2752. "/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}": {
  2753. "post": {
  2754. "operationId": "preferences-set-preference",
  2755. "summary": "Update a preference value of an app",
  2756. "tags": [
  2757. "preferences"
  2758. ],
  2759. "security": [
  2760. {
  2761. "bearer_auth": []
  2762. },
  2763. {
  2764. "basic_auth": []
  2765. }
  2766. ],
  2767. "requestBody": {
  2768. "required": true,
  2769. "content": {
  2770. "application/json": {
  2771. "schema": {
  2772. "type": "object",
  2773. "required": [
  2774. "configValue"
  2775. ],
  2776. "properties": {
  2777. "configValue": {
  2778. "type": "string",
  2779. "description": "New value"
  2780. }
  2781. }
  2782. }
  2783. }
  2784. }
  2785. },
  2786. "parameters": [
  2787. {
  2788. "name": "appId",
  2789. "in": "path",
  2790. "description": "ID of the app",
  2791. "required": true,
  2792. "schema": {
  2793. "type": "string"
  2794. }
  2795. },
  2796. {
  2797. "name": "configKey",
  2798. "in": "path",
  2799. "description": "Key of the preference",
  2800. "required": true,
  2801. "schema": {
  2802. "type": "string"
  2803. }
  2804. },
  2805. {
  2806. "name": "OCS-APIRequest",
  2807. "in": "header",
  2808. "description": "Required to be true for the API request to pass",
  2809. "required": true,
  2810. "schema": {
  2811. "type": "boolean",
  2812. "default": true
  2813. }
  2814. }
  2815. ],
  2816. "responses": {
  2817. "200": {
  2818. "description": "Preference updated successfully",
  2819. "content": {
  2820. "application/json": {
  2821. "schema": {
  2822. "type": "object",
  2823. "required": [
  2824. "ocs"
  2825. ],
  2826. "properties": {
  2827. "ocs": {
  2828. "type": "object",
  2829. "required": [
  2830. "meta",
  2831. "data"
  2832. ],
  2833. "properties": {
  2834. "meta": {
  2835. "$ref": "#/components/schemas/OCSMeta"
  2836. },
  2837. "data": {}
  2838. }
  2839. }
  2840. }
  2841. }
  2842. }
  2843. }
  2844. },
  2845. "400": {
  2846. "description": "Preference invalid",
  2847. "content": {
  2848. "application/json": {
  2849. "schema": {
  2850. "type": "object",
  2851. "required": [
  2852. "ocs"
  2853. ],
  2854. "properties": {
  2855. "ocs": {
  2856. "type": "object",
  2857. "required": [
  2858. "meta",
  2859. "data"
  2860. ],
  2861. "properties": {
  2862. "meta": {
  2863. "$ref": "#/components/schemas/OCSMeta"
  2864. },
  2865. "data": {}
  2866. }
  2867. }
  2868. }
  2869. }
  2870. }
  2871. }
  2872. }
  2873. }
  2874. },
  2875. "delete": {
  2876. "operationId": "preferences-delete-preference",
  2877. "summary": "Delete a preference for an app",
  2878. "tags": [
  2879. "preferences"
  2880. ],
  2881. "security": [
  2882. {
  2883. "bearer_auth": []
  2884. },
  2885. {
  2886. "basic_auth": []
  2887. }
  2888. ],
  2889. "parameters": [
  2890. {
  2891. "name": "appId",
  2892. "in": "path",
  2893. "description": "ID of the app",
  2894. "required": true,
  2895. "schema": {
  2896. "type": "string"
  2897. }
  2898. },
  2899. {
  2900. "name": "configKey",
  2901. "in": "path",
  2902. "description": "Key to delete",
  2903. "required": true,
  2904. "schema": {
  2905. "type": "string"
  2906. }
  2907. },
  2908. {
  2909. "name": "OCS-APIRequest",
  2910. "in": "header",
  2911. "description": "Required to be true for the API request to pass",
  2912. "required": true,
  2913. "schema": {
  2914. "type": "boolean",
  2915. "default": true
  2916. }
  2917. }
  2918. ],
  2919. "responses": {
  2920. "200": {
  2921. "description": "Preference deleted successfully",
  2922. "content": {
  2923. "application/json": {
  2924. "schema": {
  2925. "type": "object",
  2926. "required": [
  2927. "ocs"
  2928. ],
  2929. "properties": {
  2930. "ocs": {
  2931. "type": "object",
  2932. "required": [
  2933. "meta",
  2934. "data"
  2935. ],
  2936. "properties": {
  2937. "meta": {
  2938. "$ref": "#/components/schemas/OCSMeta"
  2939. },
  2940. "data": {}
  2941. }
  2942. }
  2943. }
  2944. }
  2945. }
  2946. }
  2947. },
  2948. "400": {
  2949. "description": "Preference invalid",
  2950. "content": {
  2951. "application/json": {
  2952. "schema": {
  2953. "type": "object",
  2954. "required": [
  2955. "ocs"
  2956. ],
  2957. "properties": {
  2958. "ocs": {
  2959. "type": "object",
  2960. "required": [
  2961. "meta",
  2962. "data"
  2963. ],
  2964. "properties": {
  2965. "meta": {
  2966. "$ref": "#/components/schemas/OCSMeta"
  2967. },
  2968. "data": {}
  2969. }
  2970. }
  2971. }
  2972. }
  2973. }
  2974. }
  2975. }
  2976. }
  2977. }
  2978. },
  2979. "/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}": {
  2980. "post": {
  2981. "operationId": "preferences-set-multiple-preferences",
  2982. "summary": "Update multiple preference values of an app",
  2983. "tags": [
  2984. "preferences"
  2985. ],
  2986. "security": [
  2987. {
  2988. "bearer_auth": []
  2989. },
  2990. {
  2991. "basic_auth": []
  2992. }
  2993. ],
  2994. "requestBody": {
  2995. "required": true,
  2996. "content": {
  2997. "application/json": {
  2998. "schema": {
  2999. "type": "object",
  3000. "required": [
  3001. "configs"
  3002. ],
  3003. "properties": {
  3004. "configs": {
  3005. "type": "object",
  3006. "description": "Key-value pairs of the preferences",
  3007. "additionalProperties": {
  3008. "type": "string"
  3009. }
  3010. }
  3011. }
  3012. }
  3013. }
  3014. }
  3015. },
  3016. "parameters": [
  3017. {
  3018. "name": "appId",
  3019. "in": "path",
  3020. "description": "ID of the app",
  3021. "required": true,
  3022. "schema": {
  3023. "type": "string"
  3024. }
  3025. },
  3026. {
  3027. "name": "OCS-APIRequest",
  3028. "in": "header",
  3029. "description": "Required to be true for the API request to pass",
  3030. "required": true,
  3031. "schema": {
  3032. "type": "boolean",
  3033. "default": true
  3034. }
  3035. }
  3036. ],
  3037. "responses": {
  3038. "200": {
  3039. "description": "Preferences updated successfully",
  3040. "content": {
  3041. "application/json": {
  3042. "schema": {
  3043. "type": "object",
  3044. "required": [
  3045. "ocs"
  3046. ],
  3047. "properties": {
  3048. "ocs": {
  3049. "type": "object",
  3050. "required": [
  3051. "meta",
  3052. "data"
  3053. ],
  3054. "properties": {
  3055. "meta": {
  3056. "$ref": "#/components/schemas/OCSMeta"
  3057. },
  3058. "data": {}
  3059. }
  3060. }
  3061. }
  3062. }
  3063. }
  3064. }
  3065. },
  3066. "400": {
  3067. "description": "Preference invalid",
  3068. "content": {
  3069. "application/json": {
  3070. "schema": {
  3071. "type": "object",
  3072. "required": [
  3073. "ocs"
  3074. ],
  3075. "properties": {
  3076. "ocs": {
  3077. "type": "object",
  3078. "required": [
  3079. "meta",
  3080. "data"
  3081. ],
  3082. "properties": {
  3083. "meta": {
  3084. "$ref": "#/components/schemas/OCSMeta"
  3085. },
  3086. "data": {}
  3087. }
  3088. }
  3089. }
  3090. }
  3091. }
  3092. }
  3093. }
  3094. }
  3095. },
  3096. "delete": {
  3097. "operationId": "preferences-delete-multiple-preference",
  3098. "summary": "Delete multiple preferences for an app",
  3099. "tags": [
  3100. "preferences"
  3101. ],
  3102. "security": [
  3103. {
  3104. "bearer_auth": []
  3105. },
  3106. {
  3107. "basic_auth": []
  3108. }
  3109. ],
  3110. "parameters": [
  3111. {
  3112. "name": "appId",
  3113. "in": "path",
  3114. "description": "ID of the app",
  3115. "required": true,
  3116. "schema": {
  3117. "type": "string"
  3118. }
  3119. },
  3120. {
  3121. "name": "configKeys[]",
  3122. "in": "query",
  3123. "description": "Keys to delete",
  3124. "required": true,
  3125. "schema": {
  3126. "type": "array",
  3127. "items": {
  3128. "type": "string"
  3129. }
  3130. }
  3131. },
  3132. {
  3133. "name": "OCS-APIRequest",
  3134. "in": "header",
  3135. "description": "Required to be true for the API request to pass",
  3136. "required": true,
  3137. "schema": {
  3138. "type": "boolean",
  3139. "default": true
  3140. }
  3141. }
  3142. ],
  3143. "responses": {
  3144. "200": {
  3145. "description": "Preferences deleted successfully",
  3146. "content": {
  3147. "application/json": {
  3148. "schema": {
  3149. "type": "object",
  3150. "required": [
  3151. "ocs"
  3152. ],
  3153. "properties": {
  3154. "ocs": {
  3155. "type": "object",
  3156. "required": [
  3157. "meta",
  3158. "data"
  3159. ],
  3160. "properties": {
  3161. "meta": {
  3162. "$ref": "#/components/schemas/OCSMeta"
  3163. },
  3164. "data": {}
  3165. }
  3166. }
  3167. }
  3168. }
  3169. }
  3170. }
  3171. },
  3172. "400": {
  3173. "description": "Preference invalid",
  3174. "content": {
  3175. "application/json": {
  3176. "schema": {
  3177. "type": "object",
  3178. "required": [
  3179. "ocs"
  3180. ],
  3181. "properties": {
  3182. "ocs": {
  3183. "type": "object",
  3184. "required": [
  3185. "meta",
  3186. "data"
  3187. ],
  3188. "properties": {
  3189. "meta": {
  3190. "$ref": "#/components/schemas/OCSMeta"
  3191. },
  3192. "data": {}
  3193. }
  3194. }
  3195. }
  3196. }
  3197. }
  3198. }
  3199. }
  3200. }
  3201. }
  3202. }
  3203. },
  3204. "tags": []
  3205. }