openapi-full.json 162 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "provisioning_api-full",
  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. "quota",
  150. "role",
  151. "subadmin",
  152. "twitter",
  153. "website"
  154. ],
  155. "properties": {
  156. "additional_mail": {
  157. "type": "array",
  158. "items": {
  159. "type": "string"
  160. }
  161. },
  162. "additional_mailScope": {
  163. "type": "array",
  164. "items": {
  165. "$ref": "#/components/schemas/UserDetailsScope"
  166. }
  167. },
  168. "address": {
  169. "type": "string"
  170. },
  171. "addressScope": {
  172. "$ref": "#/components/schemas/UserDetailsScope"
  173. },
  174. "avatarScope": {
  175. "$ref": "#/components/schemas/UserDetailsScope"
  176. },
  177. "backend": {
  178. "type": "string"
  179. },
  180. "backendCapabilities": {
  181. "type": "object",
  182. "required": [
  183. "setDisplayName",
  184. "setPassword"
  185. ],
  186. "properties": {
  187. "setDisplayName": {
  188. "type": "boolean"
  189. },
  190. "setPassword": {
  191. "type": "boolean"
  192. }
  193. }
  194. },
  195. "biography": {
  196. "type": "string"
  197. },
  198. "biographyScope": {
  199. "$ref": "#/components/schemas/UserDetailsScope"
  200. },
  201. "display-name": {
  202. "type": "string"
  203. },
  204. "displayname": {
  205. "type": "string"
  206. },
  207. "displaynameScope": {
  208. "$ref": "#/components/schemas/UserDetailsScope"
  209. },
  210. "email": {
  211. "type": "string",
  212. "nullable": true
  213. },
  214. "emailScope": {
  215. "$ref": "#/components/schemas/UserDetailsScope"
  216. },
  217. "enabled": {
  218. "type": "boolean"
  219. },
  220. "fediverse": {
  221. "type": "string"
  222. },
  223. "fediverseScope": {
  224. "$ref": "#/components/schemas/UserDetailsScope"
  225. },
  226. "groups": {
  227. "type": "array",
  228. "items": {
  229. "type": "string"
  230. }
  231. },
  232. "headline": {
  233. "type": "string"
  234. },
  235. "headlineScope": {
  236. "$ref": "#/components/schemas/UserDetailsScope"
  237. },
  238. "id": {
  239. "type": "string"
  240. },
  241. "language": {
  242. "type": "string"
  243. },
  244. "lastLogin": {
  245. "type": "integer",
  246. "format": "int64"
  247. },
  248. "locale": {
  249. "type": "string"
  250. },
  251. "manager": {
  252. "type": "string"
  253. },
  254. "notify_email": {
  255. "type": "string",
  256. "nullable": true
  257. },
  258. "organisation": {
  259. "type": "string"
  260. },
  261. "organisationScope": {
  262. "$ref": "#/components/schemas/UserDetailsScope"
  263. },
  264. "phone": {
  265. "type": "string"
  266. },
  267. "phoneScope": {
  268. "$ref": "#/components/schemas/UserDetailsScope"
  269. },
  270. "profile_enabled": {
  271. "type": "string"
  272. },
  273. "profile_enabledScope": {
  274. "$ref": "#/components/schemas/UserDetailsScope"
  275. },
  276. "quota": {
  277. "$ref": "#/components/schemas/UserDetailsQuota"
  278. },
  279. "role": {
  280. "type": "string"
  281. },
  282. "roleScope": {
  283. "$ref": "#/components/schemas/UserDetailsScope"
  284. },
  285. "storageLocation": {
  286. "type": "string"
  287. },
  288. "subadmin": {
  289. "type": "array",
  290. "items": {
  291. "type": "string"
  292. }
  293. },
  294. "twitter": {
  295. "type": "string"
  296. },
  297. "twitterScope": {
  298. "$ref": "#/components/schemas/UserDetailsScope"
  299. },
  300. "website": {
  301. "type": "string"
  302. },
  303. "websiteScope": {
  304. "$ref": "#/components/schemas/UserDetailsScope"
  305. }
  306. }
  307. },
  308. "UserDetailsQuota": {
  309. "type": "object",
  310. "properties": {
  311. "free": {
  312. "anyOf": [
  313. {
  314. "type": "number",
  315. "format": "double"
  316. },
  317. {
  318. "type": "integer",
  319. "format": "int64"
  320. }
  321. ]
  322. },
  323. "quota": {
  324. "anyOf": [
  325. {
  326. "type": "number",
  327. "format": "double"
  328. },
  329. {
  330. "type": "integer",
  331. "format": "int64"
  332. },
  333. {
  334. "type": "string"
  335. }
  336. ]
  337. },
  338. "relative": {
  339. "anyOf": [
  340. {
  341. "type": "number",
  342. "format": "double"
  343. },
  344. {
  345. "type": "integer",
  346. "format": "int64"
  347. }
  348. ]
  349. },
  350. "total": {
  351. "anyOf": [
  352. {
  353. "type": "number",
  354. "format": "double"
  355. },
  356. {
  357. "type": "integer",
  358. "format": "int64"
  359. }
  360. ]
  361. },
  362. "used": {
  363. "anyOf": [
  364. {
  365. "type": "number",
  366. "format": "double"
  367. },
  368. {
  369. "type": "integer",
  370. "format": "int64"
  371. }
  372. ]
  373. }
  374. }
  375. },
  376. "UserDetailsScope": {
  377. "type": "string",
  378. "enum": [
  379. "v2-private",
  380. "v2-local",
  381. "v2-federated",
  382. "v2-published",
  383. "private",
  384. "contacts",
  385. "public"
  386. ]
  387. }
  388. }
  389. },
  390. "paths": {
  391. "/ocs/v2.php/cloud/apps": {
  392. "get": {
  393. "operationId": "apps-get-apps",
  394. "summary": "Get a list of installed apps",
  395. "description": "This endpoint requires admin access",
  396. "tags": [
  397. "apps"
  398. ],
  399. "security": [
  400. {
  401. "bearer_auth": []
  402. },
  403. {
  404. "basic_auth": []
  405. }
  406. ],
  407. "parameters": [
  408. {
  409. "name": "filter",
  410. "in": "query",
  411. "description": "Filter for enabled or disabled apps",
  412. "schema": {
  413. "type": "string",
  414. "nullable": true
  415. }
  416. },
  417. {
  418. "name": "OCS-APIRequest",
  419. "in": "header",
  420. "description": "Required to be true for the API request to pass",
  421. "required": true,
  422. "schema": {
  423. "type": "boolean",
  424. "default": true
  425. }
  426. }
  427. ],
  428. "responses": {
  429. "200": {
  430. "description": "Installed apps returned",
  431. "content": {
  432. "application/json": {
  433. "schema": {
  434. "type": "object",
  435. "required": [
  436. "ocs"
  437. ],
  438. "properties": {
  439. "ocs": {
  440. "type": "object",
  441. "required": [
  442. "meta",
  443. "data"
  444. ],
  445. "properties": {
  446. "meta": {
  447. "$ref": "#/components/schemas/OCSMeta"
  448. },
  449. "data": {
  450. "type": "object",
  451. "required": [
  452. "apps"
  453. ],
  454. "properties": {
  455. "apps": {
  456. "type": "array",
  457. "items": {
  458. "type": "string"
  459. }
  460. }
  461. }
  462. }
  463. }
  464. }
  465. }
  466. }
  467. }
  468. }
  469. }
  470. }
  471. }
  472. },
  473. "/ocs/v2.php/cloud/apps/{app}": {
  474. "get": {
  475. "operationId": "apps-get-app-info",
  476. "summary": "Get the app info for an app",
  477. "description": "This endpoint requires admin access",
  478. "tags": [
  479. "apps"
  480. ],
  481. "security": [
  482. {
  483. "bearer_auth": []
  484. },
  485. {
  486. "basic_auth": []
  487. }
  488. ],
  489. "parameters": [
  490. {
  491. "name": "app",
  492. "in": "path",
  493. "description": "ID of the app",
  494. "required": true,
  495. "schema": {
  496. "type": "string"
  497. }
  498. },
  499. {
  500. "name": "OCS-APIRequest",
  501. "in": "header",
  502. "description": "Required to be true for the API request to pass",
  503. "required": true,
  504. "schema": {
  505. "type": "boolean",
  506. "default": true
  507. }
  508. }
  509. ],
  510. "responses": {
  511. "200": {
  512. "description": "App info returned",
  513. "content": {
  514. "application/json": {
  515. "schema": {
  516. "type": "object",
  517. "required": [
  518. "ocs"
  519. ],
  520. "properties": {
  521. "ocs": {
  522. "type": "object",
  523. "required": [
  524. "meta",
  525. "data"
  526. ],
  527. "properties": {
  528. "meta": {
  529. "$ref": "#/components/schemas/OCSMeta"
  530. },
  531. "data": {
  532. "type": "object",
  533. "additionalProperties": {
  534. "type": "object",
  535. "nullable": true
  536. }
  537. }
  538. }
  539. }
  540. }
  541. }
  542. }
  543. }
  544. }
  545. }
  546. },
  547. "post": {
  548. "operationId": "apps-enable",
  549. "summary": "Enable an app",
  550. "description": "This endpoint requires admin access\nThis endpoint requires password confirmation",
  551. "tags": [
  552. "apps"
  553. ],
  554. "security": [
  555. {
  556. "bearer_auth": []
  557. },
  558. {
  559. "basic_auth": []
  560. }
  561. ],
  562. "parameters": [
  563. {
  564. "name": "app",
  565. "in": "path",
  566. "description": "ID of the app",
  567. "required": true,
  568. "schema": {
  569. "type": "string"
  570. }
  571. },
  572. {
  573. "name": "OCS-APIRequest",
  574. "in": "header",
  575. "description": "Required to be true for the API request to pass",
  576. "required": true,
  577. "schema": {
  578. "type": "boolean",
  579. "default": true
  580. }
  581. }
  582. ],
  583. "responses": {
  584. "200": {
  585. "description": "App enabled successfully",
  586. "content": {
  587. "application/json": {
  588. "schema": {
  589. "type": "object",
  590. "required": [
  591. "ocs"
  592. ],
  593. "properties": {
  594. "ocs": {
  595. "type": "object",
  596. "required": [
  597. "meta",
  598. "data"
  599. ],
  600. "properties": {
  601. "meta": {
  602. "$ref": "#/components/schemas/OCSMeta"
  603. },
  604. "data": {}
  605. }
  606. }
  607. }
  608. }
  609. }
  610. }
  611. }
  612. }
  613. },
  614. "delete": {
  615. "operationId": "apps-disable",
  616. "summary": "Disable an app",
  617. "description": "This endpoint requires admin access\nThis endpoint requires password confirmation",
  618. "tags": [
  619. "apps"
  620. ],
  621. "security": [
  622. {
  623. "bearer_auth": []
  624. },
  625. {
  626. "basic_auth": []
  627. }
  628. ],
  629. "parameters": [
  630. {
  631. "name": "app",
  632. "in": "path",
  633. "description": "ID of the app",
  634. "required": true,
  635. "schema": {
  636. "type": "string"
  637. }
  638. },
  639. {
  640. "name": "OCS-APIRequest",
  641. "in": "header",
  642. "description": "Required to be true for the API request to pass",
  643. "required": true,
  644. "schema": {
  645. "type": "boolean",
  646. "default": true
  647. }
  648. }
  649. ],
  650. "responses": {
  651. "200": {
  652. "description": "App disabled successfully",
  653. "content": {
  654. "application/json": {
  655. "schema": {
  656. "type": "object",
  657. "required": [
  658. "ocs"
  659. ],
  660. "properties": {
  661. "ocs": {
  662. "type": "object",
  663. "required": [
  664. "meta",
  665. "data"
  666. ],
  667. "properties": {
  668. "meta": {
  669. "$ref": "#/components/schemas/OCSMeta"
  670. },
  671. "data": {}
  672. }
  673. }
  674. }
  675. }
  676. }
  677. }
  678. }
  679. }
  680. }
  681. },
  682. "/ocs/v2.php/cloud/groups/{groupId}/subadmins": {
  683. "get": {
  684. "operationId": "groups-get-sub-admins-of-group",
  685. "summary": "Get the list of user IDs that are a subadmin of the group",
  686. "description": "This endpoint requires admin access",
  687. "tags": [
  688. "groups"
  689. ],
  690. "security": [
  691. {
  692. "bearer_auth": []
  693. },
  694. {
  695. "basic_auth": []
  696. }
  697. ],
  698. "parameters": [
  699. {
  700. "name": "groupId",
  701. "in": "path",
  702. "description": "ID of the group",
  703. "required": true,
  704. "schema": {
  705. "type": "string",
  706. "pattern": "^.+$"
  707. }
  708. },
  709. {
  710. "name": "OCS-APIRequest",
  711. "in": "header",
  712. "description": "Required to be true for the API request to pass",
  713. "required": true,
  714. "schema": {
  715. "type": "boolean",
  716. "default": true
  717. }
  718. }
  719. ],
  720. "responses": {
  721. "200": {
  722. "description": "Sub admins returned",
  723. "content": {
  724. "application/json": {
  725. "schema": {
  726. "type": "object",
  727. "required": [
  728. "ocs"
  729. ],
  730. "properties": {
  731. "ocs": {
  732. "type": "object",
  733. "required": [
  734. "meta",
  735. "data"
  736. ],
  737. "properties": {
  738. "meta": {
  739. "$ref": "#/components/schemas/OCSMeta"
  740. },
  741. "data": {
  742. "type": "array",
  743. "items": {
  744. "type": "string"
  745. }
  746. }
  747. }
  748. }
  749. }
  750. }
  751. }
  752. }
  753. }
  754. }
  755. }
  756. },
  757. "/ocs/v2.php/cloud/groups": {
  758. "get": {
  759. "operationId": "groups-get-groups",
  760. "summary": "Get a list of groups",
  761. "tags": [
  762. "groups"
  763. ],
  764. "security": [
  765. {
  766. "bearer_auth": []
  767. },
  768. {
  769. "basic_auth": []
  770. }
  771. ],
  772. "parameters": [
  773. {
  774. "name": "search",
  775. "in": "query",
  776. "description": "Text to search for",
  777. "schema": {
  778. "type": "string",
  779. "default": ""
  780. }
  781. },
  782. {
  783. "name": "limit",
  784. "in": "query",
  785. "description": "Limit the amount of groups returned",
  786. "schema": {
  787. "type": "integer",
  788. "format": "int64",
  789. "nullable": true
  790. }
  791. },
  792. {
  793. "name": "offset",
  794. "in": "query",
  795. "description": "Offset for searching for groups",
  796. "schema": {
  797. "type": "integer",
  798. "format": "int64",
  799. "default": 0
  800. }
  801. },
  802. {
  803. "name": "OCS-APIRequest",
  804. "in": "header",
  805. "description": "Required to be true for the API request to pass",
  806. "required": true,
  807. "schema": {
  808. "type": "boolean",
  809. "default": true
  810. }
  811. }
  812. ],
  813. "responses": {
  814. "200": {
  815. "description": "Groups returned",
  816. "content": {
  817. "application/json": {
  818. "schema": {
  819. "type": "object",
  820. "required": [
  821. "ocs"
  822. ],
  823. "properties": {
  824. "ocs": {
  825. "type": "object",
  826. "required": [
  827. "meta",
  828. "data"
  829. ],
  830. "properties": {
  831. "meta": {
  832. "$ref": "#/components/schemas/OCSMeta"
  833. },
  834. "data": {
  835. "type": "object",
  836. "required": [
  837. "groups"
  838. ],
  839. "properties": {
  840. "groups": {
  841. "type": "array",
  842. "items": {
  843. "type": "string"
  844. }
  845. }
  846. }
  847. }
  848. }
  849. }
  850. }
  851. }
  852. }
  853. }
  854. }
  855. }
  856. }
  857. },
  858. "/ocs/v2.php/cloud/groups/{groupId}": {
  859. "get": {
  860. "operationId": "groups-get-group",
  861. "summary": "Get a list of users in the specified group",
  862. "deprecated": true,
  863. "tags": [
  864. "groups"
  865. ],
  866. "security": [
  867. {
  868. "bearer_auth": []
  869. },
  870. {
  871. "basic_auth": []
  872. }
  873. ],
  874. "parameters": [
  875. {
  876. "name": "groupId",
  877. "in": "path",
  878. "description": "ID of the group",
  879. "required": true,
  880. "schema": {
  881. "type": "string",
  882. "pattern": "^.+$"
  883. }
  884. },
  885. {
  886. "name": "OCS-APIRequest",
  887. "in": "header",
  888. "description": "Required to be true for the API request to pass",
  889. "required": true,
  890. "schema": {
  891. "type": "boolean",
  892. "default": true
  893. }
  894. }
  895. ],
  896. "responses": {
  897. "200": {
  898. "description": "Group users returned",
  899. "content": {
  900. "application/json": {
  901. "schema": {
  902. "type": "object",
  903. "required": [
  904. "ocs"
  905. ],
  906. "properties": {
  907. "ocs": {
  908. "type": "object",
  909. "required": [
  910. "meta",
  911. "data"
  912. ],
  913. "properties": {
  914. "meta": {
  915. "$ref": "#/components/schemas/OCSMeta"
  916. },
  917. "data": {
  918. "type": "object",
  919. "required": [
  920. "users"
  921. ],
  922. "properties": {
  923. "users": {
  924. "type": "array",
  925. "items": {
  926. "type": "string"
  927. }
  928. }
  929. }
  930. }
  931. }
  932. }
  933. }
  934. }
  935. }
  936. }
  937. }
  938. }
  939. }
  940. },
  941. "/ocs/v2.php/cloud/users/{userId}/subadmins": {
  942. "get": {
  943. "operationId": "users-get-user-sub-admin-groups",
  944. "summary": "Get the groups a user is a subadmin of",
  945. "description": "This endpoint requires admin access",
  946. "tags": [
  947. "users"
  948. ],
  949. "security": [
  950. {
  951. "bearer_auth": []
  952. },
  953. {
  954. "basic_auth": []
  955. }
  956. ],
  957. "parameters": [
  958. {
  959. "name": "userId",
  960. "in": "path",
  961. "description": "ID if the user",
  962. "required": true,
  963. "schema": {
  964. "type": "string"
  965. }
  966. },
  967. {
  968. "name": "OCS-APIRequest",
  969. "in": "header",
  970. "description": "Required to be true for the API request to pass",
  971. "required": true,
  972. "schema": {
  973. "type": "boolean",
  974. "default": true
  975. }
  976. }
  977. ],
  978. "responses": {
  979. "200": {
  980. "description": "User subadmin groups returned",
  981. "content": {
  982. "application/json": {
  983. "schema": {
  984. "type": "object",
  985. "required": [
  986. "ocs"
  987. ],
  988. "properties": {
  989. "ocs": {
  990. "type": "object",
  991. "required": [
  992. "meta",
  993. "data"
  994. ],
  995. "properties": {
  996. "meta": {
  997. "$ref": "#/components/schemas/OCSMeta"
  998. },
  999. "data": {
  1000. "type": "array",
  1001. "items": {
  1002. "type": "string"
  1003. }
  1004. }
  1005. }
  1006. }
  1007. }
  1008. }
  1009. }
  1010. }
  1011. }
  1012. }
  1013. },
  1014. "post": {
  1015. "operationId": "users-add-sub-admin",
  1016. "summary": "Make a user a subadmin of a group",
  1017. "description": "This endpoint requires admin access\nThis endpoint requires password confirmation",
  1018. "tags": [
  1019. "users"
  1020. ],
  1021. "security": [
  1022. {
  1023. "bearer_auth": []
  1024. },
  1025. {
  1026. "basic_auth": []
  1027. }
  1028. ],
  1029. "parameters": [
  1030. {
  1031. "name": "groupid",
  1032. "in": "query",
  1033. "description": "ID of the group",
  1034. "required": true,
  1035. "schema": {
  1036. "type": "string"
  1037. }
  1038. },
  1039. {
  1040. "name": "userId",
  1041. "in": "path",
  1042. "description": "ID of the user",
  1043. "required": true,
  1044. "schema": {
  1045. "type": "string"
  1046. }
  1047. },
  1048. {
  1049. "name": "OCS-APIRequest",
  1050. "in": "header",
  1051. "description": "Required to be true for the API request to pass",
  1052. "required": true,
  1053. "schema": {
  1054. "type": "boolean",
  1055. "default": true
  1056. }
  1057. }
  1058. ],
  1059. "responses": {
  1060. "200": {
  1061. "description": "User added as group subadmin successfully",
  1062. "content": {
  1063. "application/json": {
  1064. "schema": {
  1065. "type": "object",
  1066. "required": [
  1067. "ocs"
  1068. ],
  1069. "properties": {
  1070. "ocs": {
  1071. "type": "object",
  1072. "required": [
  1073. "meta",
  1074. "data"
  1075. ],
  1076. "properties": {
  1077. "meta": {
  1078. "$ref": "#/components/schemas/OCSMeta"
  1079. },
  1080. "data": {}
  1081. }
  1082. }
  1083. }
  1084. }
  1085. }
  1086. }
  1087. }
  1088. }
  1089. },
  1090. "delete": {
  1091. "operationId": "users-remove-sub-admin",
  1092. "summary": "Remove a user from the subadmins of a group",
  1093. "description": "This endpoint requires admin access\nThis endpoint requires password confirmation",
  1094. "tags": [
  1095. "users"
  1096. ],
  1097. "security": [
  1098. {
  1099. "bearer_auth": []
  1100. },
  1101. {
  1102. "basic_auth": []
  1103. }
  1104. ],
  1105. "parameters": [
  1106. {
  1107. "name": "groupid",
  1108. "in": "query",
  1109. "description": "ID of the group",
  1110. "required": true,
  1111. "schema": {
  1112. "type": "string"
  1113. }
  1114. },
  1115. {
  1116. "name": "userId",
  1117. "in": "path",
  1118. "description": "ID of the user",
  1119. "required": true,
  1120. "schema": {
  1121. "type": "string"
  1122. }
  1123. },
  1124. {
  1125. "name": "OCS-APIRequest",
  1126. "in": "header",
  1127. "description": "Required to be true for the API request to pass",
  1128. "required": true,
  1129. "schema": {
  1130. "type": "boolean",
  1131. "default": true
  1132. }
  1133. }
  1134. ],
  1135. "responses": {
  1136. "200": {
  1137. "description": "User removed as group subadmin successfully",
  1138. "content": {
  1139. "application/json": {
  1140. "schema": {
  1141. "type": "object",
  1142. "required": [
  1143. "ocs"
  1144. ],
  1145. "properties": {
  1146. "ocs": {
  1147. "type": "object",
  1148. "required": [
  1149. "meta",
  1150. "data"
  1151. ],
  1152. "properties": {
  1153. "meta": {
  1154. "$ref": "#/components/schemas/OCSMeta"
  1155. },
  1156. "data": {}
  1157. }
  1158. }
  1159. }
  1160. }
  1161. }
  1162. }
  1163. }
  1164. }
  1165. }
  1166. },
  1167. "/ocs/v2.php/apps/provisioning_api/api/v1/config/apps": {
  1168. "get": {
  1169. "operationId": "app_config-get-apps",
  1170. "summary": "Get a list of apps",
  1171. "description": "This endpoint requires admin access",
  1172. "tags": [
  1173. "app_config"
  1174. ],
  1175. "security": [
  1176. {
  1177. "bearer_auth": []
  1178. },
  1179. {
  1180. "basic_auth": []
  1181. }
  1182. ],
  1183. "parameters": [
  1184. {
  1185. "name": "OCS-APIRequest",
  1186. "in": "header",
  1187. "description": "Required to be true for the API request to pass",
  1188. "required": true,
  1189. "schema": {
  1190. "type": "boolean",
  1191. "default": true
  1192. }
  1193. }
  1194. ],
  1195. "responses": {
  1196. "200": {
  1197. "description": "Apps returned",
  1198. "content": {
  1199. "application/json": {
  1200. "schema": {
  1201. "type": "object",
  1202. "required": [
  1203. "ocs"
  1204. ],
  1205. "properties": {
  1206. "ocs": {
  1207. "type": "object",
  1208. "required": [
  1209. "meta",
  1210. "data"
  1211. ],
  1212. "properties": {
  1213. "meta": {
  1214. "$ref": "#/components/schemas/OCSMeta"
  1215. },
  1216. "data": {
  1217. "type": "object",
  1218. "required": [
  1219. "data"
  1220. ],
  1221. "properties": {
  1222. "data": {
  1223. "type": "array",
  1224. "items": {
  1225. "type": "string"
  1226. }
  1227. }
  1228. }
  1229. }
  1230. }
  1231. }
  1232. }
  1233. }
  1234. }
  1235. }
  1236. }
  1237. }
  1238. }
  1239. },
  1240. "/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}": {
  1241. "get": {
  1242. "operationId": "app_config-get-keys",
  1243. "summary": "Get the config keys of an app",
  1244. "description": "This endpoint requires admin access",
  1245. "tags": [
  1246. "app_config"
  1247. ],
  1248. "security": [
  1249. {
  1250. "bearer_auth": []
  1251. },
  1252. {
  1253. "basic_auth": []
  1254. }
  1255. ],
  1256. "parameters": [
  1257. {
  1258. "name": "app",
  1259. "in": "path",
  1260. "description": "ID of the app",
  1261. "required": true,
  1262. "schema": {
  1263. "type": "string"
  1264. }
  1265. },
  1266. {
  1267. "name": "OCS-APIRequest",
  1268. "in": "header",
  1269. "description": "Required to be true for the API request to pass",
  1270. "required": true,
  1271. "schema": {
  1272. "type": "boolean",
  1273. "default": true
  1274. }
  1275. }
  1276. ],
  1277. "responses": {
  1278. "200": {
  1279. "description": "Keys returned",
  1280. "content": {
  1281. "application/json": {
  1282. "schema": {
  1283. "type": "object",
  1284. "required": [
  1285. "ocs"
  1286. ],
  1287. "properties": {
  1288. "ocs": {
  1289. "type": "object",
  1290. "required": [
  1291. "meta",
  1292. "data"
  1293. ],
  1294. "properties": {
  1295. "meta": {
  1296. "$ref": "#/components/schemas/OCSMeta"
  1297. },
  1298. "data": {
  1299. "type": "object",
  1300. "required": [
  1301. "data"
  1302. ],
  1303. "properties": {
  1304. "data": {
  1305. "type": "array",
  1306. "items": {
  1307. "type": "string"
  1308. }
  1309. }
  1310. }
  1311. }
  1312. }
  1313. }
  1314. }
  1315. }
  1316. }
  1317. }
  1318. },
  1319. "403": {
  1320. "description": "App is not allowed",
  1321. "content": {
  1322. "application/json": {
  1323. "schema": {
  1324. "type": "object",
  1325. "required": [
  1326. "ocs"
  1327. ],
  1328. "properties": {
  1329. "ocs": {
  1330. "type": "object",
  1331. "required": [
  1332. "meta",
  1333. "data"
  1334. ],
  1335. "properties": {
  1336. "meta": {
  1337. "$ref": "#/components/schemas/OCSMeta"
  1338. },
  1339. "data": {
  1340. "type": "object",
  1341. "required": [
  1342. "data"
  1343. ],
  1344. "properties": {
  1345. "data": {
  1346. "type": "object",
  1347. "required": [
  1348. "message"
  1349. ],
  1350. "properties": {
  1351. "message": {
  1352. "type": "string"
  1353. }
  1354. }
  1355. }
  1356. }
  1357. }
  1358. }
  1359. }
  1360. }
  1361. }
  1362. }
  1363. }
  1364. }
  1365. }
  1366. }
  1367. },
  1368. "/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}": {
  1369. "post": {
  1370. "operationId": "app_config-set-value",
  1371. "summary": "Update the config value of an app",
  1372. "description": "This endpoint requires password confirmation",
  1373. "tags": [
  1374. "app_config"
  1375. ],
  1376. "security": [
  1377. {
  1378. "bearer_auth": []
  1379. },
  1380. {
  1381. "basic_auth": []
  1382. }
  1383. ],
  1384. "parameters": [
  1385. {
  1386. "name": "value",
  1387. "in": "query",
  1388. "description": "New value for the key",
  1389. "required": true,
  1390. "schema": {
  1391. "type": "string"
  1392. }
  1393. },
  1394. {
  1395. "name": "app",
  1396. "in": "path",
  1397. "description": "ID of the app",
  1398. "required": true,
  1399. "schema": {
  1400. "type": "string"
  1401. }
  1402. },
  1403. {
  1404. "name": "key",
  1405. "in": "path",
  1406. "description": "Key to update",
  1407. "required": true,
  1408. "schema": {
  1409. "type": "string"
  1410. }
  1411. },
  1412. {
  1413. "name": "OCS-APIRequest",
  1414. "in": "header",
  1415. "description": "Required to be true for the API request to pass",
  1416. "required": true,
  1417. "schema": {
  1418. "type": "boolean",
  1419. "default": true
  1420. }
  1421. }
  1422. ],
  1423. "responses": {
  1424. "200": {
  1425. "description": "Value updated successfully",
  1426. "content": {
  1427. "application/json": {
  1428. "schema": {
  1429. "type": "object",
  1430. "required": [
  1431. "ocs"
  1432. ],
  1433. "properties": {
  1434. "ocs": {
  1435. "type": "object",
  1436. "required": [
  1437. "meta",
  1438. "data"
  1439. ],
  1440. "properties": {
  1441. "meta": {
  1442. "$ref": "#/components/schemas/OCSMeta"
  1443. },
  1444. "data": {}
  1445. }
  1446. }
  1447. }
  1448. }
  1449. }
  1450. }
  1451. },
  1452. "403": {
  1453. "description": "App or key is not allowed",
  1454. "content": {
  1455. "application/json": {
  1456. "schema": {
  1457. "type": "object",
  1458. "required": [
  1459. "ocs"
  1460. ],
  1461. "properties": {
  1462. "ocs": {
  1463. "type": "object",
  1464. "required": [
  1465. "meta",
  1466. "data"
  1467. ],
  1468. "properties": {
  1469. "meta": {
  1470. "$ref": "#/components/schemas/OCSMeta"
  1471. },
  1472. "data": {
  1473. "type": "object",
  1474. "required": [
  1475. "data"
  1476. ],
  1477. "properties": {
  1478. "data": {
  1479. "type": "object",
  1480. "required": [
  1481. "message"
  1482. ],
  1483. "properties": {
  1484. "message": {
  1485. "type": "string"
  1486. }
  1487. }
  1488. }
  1489. }
  1490. }
  1491. }
  1492. }
  1493. }
  1494. }
  1495. }
  1496. }
  1497. }
  1498. }
  1499. }
  1500. },
  1501. "/ocs/v2.php/cloud/groups/details": {
  1502. "get": {
  1503. "operationId": "groups-get-groups-details",
  1504. "summary": "Get a list of groups details",
  1505. "tags": [
  1506. "groups"
  1507. ],
  1508. "security": [
  1509. {
  1510. "bearer_auth": []
  1511. },
  1512. {
  1513. "basic_auth": []
  1514. }
  1515. ],
  1516. "parameters": [
  1517. {
  1518. "name": "search",
  1519. "in": "query",
  1520. "description": "Text to search for",
  1521. "schema": {
  1522. "type": "string",
  1523. "default": ""
  1524. }
  1525. },
  1526. {
  1527. "name": "limit",
  1528. "in": "query",
  1529. "description": "Limit the amount of groups returned",
  1530. "schema": {
  1531. "type": "integer",
  1532. "format": "int64",
  1533. "nullable": true
  1534. }
  1535. },
  1536. {
  1537. "name": "offset",
  1538. "in": "query",
  1539. "description": "Offset for searching for groups",
  1540. "schema": {
  1541. "type": "integer",
  1542. "format": "int64",
  1543. "default": 0
  1544. }
  1545. },
  1546. {
  1547. "name": "OCS-APIRequest",
  1548. "in": "header",
  1549. "description": "Required to be true for the API request to pass",
  1550. "required": true,
  1551. "schema": {
  1552. "type": "boolean",
  1553. "default": true
  1554. }
  1555. }
  1556. ],
  1557. "responses": {
  1558. "200": {
  1559. "description": "Groups details returned",
  1560. "content": {
  1561. "application/json": {
  1562. "schema": {
  1563. "type": "object",
  1564. "required": [
  1565. "ocs"
  1566. ],
  1567. "properties": {
  1568. "ocs": {
  1569. "type": "object",
  1570. "required": [
  1571. "meta",
  1572. "data"
  1573. ],
  1574. "properties": {
  1575. "meta": {
  1576. "$ref": "#/components/schemas/OCSMeta"
  1577. },
  1578. "data": {
  1579. "type": "object",
  1580. "required": [
  1581. "groups"
  1582. ],
  1583. "properties": {
  1584. "groups": {
  1585. "type": "array",
  1586. "items": {
  1587. "$ref": "#/components/schemas/GroupDetails"
  1588. }
  1589. }
  1590. }
  1591. }
  1592. }
  1593. }
  1594. }
  1595. }
  1596. }
  1597. }
  1598. }
  1599. }
  1600. }
  1601. },
  1602. "/ocs/v2.php/cloud/groups/{groupId}/users": {
  1603. "get": {
  1604. "operationId": "groups-get-group-users",
  1605. "summary": "Get a list of users in the specified group",
  1606. "tags": [
  1607. "groups"
  1608. ],
  1609. "security": [
  1610. {
  1611. "bearer_auth": []
  1612. },
  1613. {
  1614. "basic_auth": []
  1615. }
  1616. ],
  1617. "parameters": [
  1618. {
  1619. "name": "groupId",
  1620. "in": "path",
  1621. "description": "ID of the group",
  1622. "required": true,
  1623. "schema": {
  1624. "type": "string",
  1625. "pattern": "^.+$"
  1626. }
  1627. },
  1628. {
  1629. "name": "OCS-APIRequest",
  1630. "in": "header",
  1631. "description": "Required to be true for the API request to pass",
  1632. "required": true,
  1633. "schema": {
  1634. "type": "boolean",
  1635. "default": true
  1636. }
  1637. }
  1638. ],
  1639. "responses": {
  1640. "200": {
  1641. "description": "User IDs returned",
  1642. "content": {
  1643. "application/json": {
  1644. "schema": {
  1645. "type": "object",
  1646. "required": [
  1647. "ocs"
  1648. ],
  1649. "properties": {
  1650. "ocs": {
  1651. "type": "object",
  1652. "required": [
  1653. "meta",
  1654. "data"
  1655. ],
  1656. "properties": {
  1657. "meta": {
  1658. "$ref": "#/components/schemas/OCSMeta"
  1659. },
  1660. "data": {
  1661. "type": "object",
  1662. "required": [
  1663. "users"
  1664. ],
  1665. "properties": {
  1666. "users": {
  1667. "type": "array",
  1668. "items": {
  1669. "type": "string"
  1670. }
  1671. }
  1672. }
  1673. }
  1674. }
  1675. }
  1676. }
  1677. }
  1678. }
  1679. }
  1680. },
  1681. "404": {
  1682. "description": "Group not found",
  1683. "content": {
  1684. "application/json": {
  1685. "schema": {
  1686. "type": "object",
  1687. "required": [
  1688. "ocs"
  1689. ],
  1690. "properties": {
  1691. "ocs": {
  1692. "type": "object",
  1693. "required": [
  1694. "meta",
  1695. "data"
  1696. ],
  1697. "properties": {
  1698. "meta": {
  1699. "$ref": "#/components/schemas/OCSMeta"
  1700. },
  1701. "data": {}
  1702. }
  1703. }
  1704. }
  1705. }
  1706. }
  1707. }
  1708. },
  1709. "403": {
  1710. "description": "Missing permissions to get users in the group",
  1711. "content": {
  1712. "application/json": {
  1713. "schema": {
  1714. "type": "object",
  1715. "required": [
  1716. "ocs"
  1717. ],
  1718. "properties": {
  1719. "ocs": {
  1720. "type": "object",
  1721. "required": [
  1722. "meta",
  1723. "data"
  1724. ],
  1725. "properties": {
  1726. "meta": {
  1727. "$ref": "#/components/schemas/OCSMeta"
  1728. },
  1729. "data": {}
  1730. }
  1731. }
  1732. }
  1733. }
  1734. }
  1735. }
  1736. }
  1737. }
  1738. }
  1739. },
  1740. "/ocs/v2.php/cloud/groups/{groupId}/users/details": {
  1741. "get": {
  1742. "operationId": "groups-get-group-users-details",
  1743. "summary": "Get a list of users details in the specified group",
  1744. "tags": [
  1745. "groups"
  1746. ],
  1747. "security": [
  1748. {
  1749. "bearer_auth": []
  1750. },
  1751. {
  1752. "basic_auth": []
  1753. }
  1754. ],
  1755. "parameters": [
  1756. {
  1757. "name": "search",
  1758. "in": "query",
  1759. "description": "Text to search for",
  1760. "schema": {
  1761. "type": "string",
  1762. "default": ""
  1763. }
  1764. },
  1765. {
  1766. "name": "limit",
  1767. "in": "query",
  1768. "description": "Limit the amount of groups returned",
  1769. "schema": {
  1770. "type": "integer",
  1771. "format": "int64",
  1772. "nullable": true
  1773. }
  1774. },
  1775. {
  1776. "name": "offset",
  1777. "in": "query",
  1778. "description": "Offset for searching for groups",
  1779. "schema": {
  1780. "type": "integer",
  1781. "format": "int64",
  1782. "default": 0
  1783. }
  1784. },
  1785. {
  1786. "name": "groupId",
  1787. "in": "path",
  1788. "description": "ID of the group",
  1789. "required": true,
  1790. "schema": {
  1791. "type": "string",
  1792. "pattern": "^.+$"
  1793. }
  1794. },
  1795. {
  1796. "name": "OCS-APIRequest",
  1797. "in": "header",
  1798. "description": "Required to be true for the API request to pass",
  1799. "required": true,
  1800. "schema": {
  1801. "type": "boolean",
  1802. "default": true
  1803. }
  1804. }
  1805. ],
  1806. "responses": {
  1807. "200": {
  1808. "description": "Group users details returned",
  1809. "content": {
  1810. "application/json": {
  1811. "schema": {
  1812. "type": "object",
  1813. "required": [
  1814. "ocs"
  1815. ],
  1816. "properties": {
  1817. "ocs": {
  1818. "type": "object",
  1819. "required": [
  1820. "meta",
  1821. "data"
  1822. ],
  1823. "properties": {
  1824. "meta": {
  1825. "$ref": "#/components/schemas/OCSMeta"
  1826. },
  1827. "data": {
  1828. "type": "object",
  1829. "required": [
  1830. "users"
  1831. ],
  1832. "properties": {
  1833. "users": {
  1834. "type": "object",
  1835. "additionalProperties": {
  1836. "anyOf": [
  1837. {
  1838. "$ref": "#/components/schemas/UserDetails"
  1839. },
  1840. {
  1841. "type": "object",
  1842. "required": [
  1843. "id"
  1844. ],
  1845. "properties": {
  1846. "id": {
  1847. "type": "string"
  1848. }
  1849. }
  1850. }
  1851. ]
  1852. }
  1853. }
  1854. }
  1855. }
  1856. }
  1857. }
  1858. }
  1859. }
  1860. }
  1861. }
  1862. }
  1863. }
  1864. }
  1865. },
  1866. "/ocs/v2.php/cloud/users": {
  1867. "get": {
  1868. "operationId": "users-get-users",
  1869. "summary": "Get a list of users",
  1870. "tags": [
  1871. "users"
  1872. ],
  1873. "security": [
  1874. {
  1875. "bearer_auth": []
  1876. },
  1877. {
  1878. "basic_auth": []
  1879. }
  1880. ],
  1881. "parameters": [
  1882. {
  1883. "name": "search",
  1884. "in": "query",
  1885. "description": "Text to search for",
  1886. "schema": {
  1887. "type": "string",
  1888. "default": ""
  1889. }
  1890. },
  1891. {
  1892. "name": "limit",
  1893. "in": "query",
  1894. "description": "Limit the amount of groups returned",
  1895. "schema": {
  1896. "type": "integer",
  1897. "format": "int64",
  1898. "nullable": true
  1899. }
  1900. },
  1901. {
  1902. "name": "offset",
  1903. "in": "query",
  1904. "description": "Offset for searching for groups",
  1905. "schema": {
  1906. "type": "integer",
  1907. "format": "int64",
  1908. "default": 0
  1909. }
  1910. },
  1911. {
  1912. "name": "OCS-APIRequest",
  1913. "in": "header",
  1914. "description": "Required to be true for the API request to pass",
  1915. "required": true,
  1916. "schema": {
  1917. "type": "boolean",
  1918. "default": true
  1919. }
  1920. }
  1921. ],
  1922. "responses": {
  1923. "200": {
  1924. "description": "Users returned",
  1925. "content": {
  1926. "application/json": {
  1927. "schema": {
  1928. "type": "object",
  1929. "required": [
  1930. "ocs"
  1931. ],
  1932. "properties": {
  1933. "ocs": {
  1934. "type": "object",
  1935. "required": [
  1936. "meta",
  1937. "data"
  1938. ],
  1939. "properties": {
  1940. "meta": {
  1941. "$ref": "#/components/schemas/OCSMeta"
  1942. },
  1943. "data": {
  1944. "type": "object",
  1945. "required": [
  1946. "users"
  1947. ],
  1948. "properties": {
  1949. "users": {
  1950. "type": "array",
  1951. "items": {
  1952. "type": "string"
  1953. }
  1954. }
  1955. }
  1956. }
  1957. }
  1958. }
  1959. }
  1960. }
  1961. }
  1962. }
  1963. }
  1964. }
  1965. },
  1966. "post": {
  1967. "operationId": "users-add-user",
  1968. "summary": "Create a new user",
  1969. "description": "This endpoint requires password confirmation",
  1970. "tags": [
  1971. "users"
  1972. ],
  1973. "security": [
  1974. {
  1975. "bearer_auth": []
  1976. },
  1977. {
  1978. "basic_auth": []
  1979. }
  1980. ],
  1981. "parameters": [
  1982. {
  1983. "name": "userid",
  1984. "in": "query",
  1985. "description": "ID of the user",
  1986. "required": true,
  1987. "schema": {
  1988. "type": "string"
  1989. }
  1990. },
  1991. {
  1992. "name": "password",
  1993. "in": "query",
  1994. "description": "Password of the user",
  1995. "schema": {
  1996. "type": "string",
  1997. "default": ""
  1998. }
  1999. },
  2000. {
  2001. "name": "displayName",
  2002. "in": "query",
  2003. "description": "Display name of the user",
  2004. "schema": {
  2005. "type": "string",
  2006. "default": ""
  2007. }
  2008. },
  2009. {
  2010. "name": "email",
  2011. "in": "query",
  2012. "description": "Email of the user",
  2013. "schema": {
  2014. "type": "string",
  2015. "default": ""
  2016. }
  2017. },
  2018. {
  2019. "name": "groups[]",
  2020. "in": "query",
  2021. "description": "Groups of the user",
  2022. "schema": {
  2023. "type": "array",
  2024. "default": [],
  2025. "items": {
  2026. "type": "string"
  2027. }
  2028. }
  2029. },
  2030. {
  2031. "name": "subadmin[]",
  2032. "in": "query",
  2033. "description": "Groups where the user is subadmin",
  2034. "schema": {
  2035. "type": "array",
  2036. "default": [],
  2037. "items": {
  2038. "type": "string"
  2039. }
  2040. }
  2041. },
  2042. {
  2043. "name": "quota",
  2044. "in": "query",
  2045. "description": "Quota of the user",
  2046. "schema": {
  2047. "type": "string",
  2048. "default": ""
  2049. }
  2050. },
  2051. {
  2052. "name": "language",
  2053. "in": "query",
  2054. "description": "Language of the user",
  2055. "schema": {
  2056. "type": "string",
  2057. "default": ""
  2058. }
  2059. },
  2060. {
  2061. "name": "manager",
  2062. "in": "query",
  2063. "description": "Manager of the user",
  2064. "schema": {
  2065. "type": "string",
  2066. "nullable": true
  2067. }
  2068. },
  2069. {
  2070. "name": "OCS-APIRequest",
  2071. "in": "header",
  2072. "description": "Required to be true for the API request to pass",
  2073. "required": true,
  2074. "schema": {
  2075. "type": "boolean",
  2076. "default": true
  2077. }
  2078. }
  2079. ],
  2080. "responses": {
  2081. "200": {
  2082. "description": "User added successfully",
  2083. "content": {
  2084. "application/json": {
  2085. "schema": {
  2086. "type": "object",
  2087. "required": [
  2088. "ocs"
  2089. ],
  2090. "properties": {
  2091. "ocs": {
  2092. "type": "object",
  2093. "required": [
  2094. "meta",
  2095. "data"
  2096. ],
  2097. "properties": {
  2098. "meta": {
  2099. "$ref": "#/components/schemas/OCSMeta"
  2100. },
  2101. "data": {
  2102. "type": "object",
  2103. "required": [
  2104. "id"
  2105. ],
  2106. "properties": {
  2107. "id": {
  2108. "type": "string"
  2109. }
  2110. }
  2111. }
  2112. }
  2113. }
  2114. }
  2115. }
  2116. }
  2117. }
  2118. },
  2119. "403": {
  2120. "description": "Missing permissions to make user subadmin",
  2121. "content": {
  2122. "application/json": {
  2123. "schema": {
  2124. "type": "object",
  2125. "required": [
  2126. "ocs"
  2127. ],
  2128. "properties": {
  2129. "ocs": {
  2130. "type": "object",
  2131. "required": [
  2132. "meta",
  2133. "data"
  2134. ],
  2135. "properties": {
  2136. "meta": {
  2137. "$ref": "#/components/schemas/OCSMeta"
  2138. },
  2139. "data": {}
  2140. }
  2141. }
  2142. }
  2143. }
  2144. }
  2145. }
  2146. }
  2147. }
  2148. }
  2149. },
  2150. "/ocs/v2.php/cloud/users/details": {
  2151. "get": {
  2152. "operationId": "users-get-users-details",
  2153. "summary": "Get a list of users and their details",
  2154. "tags": [
  2155. "users"
  2156. ],
  2157. "security": [
  2158. {
  2159. "bearer_auth": []
  2160. },
  2161. {
  2162. "basic_auth": []
  2163. }
  2164. ],
  2165. "parameters": [
  2166. {
  2167. "name": "search",
  2168. "in": "query",
  2169. "description": "Text to search for",
  2170. "schema": {
  2171. "type": "string",
  2172. "default": ""
  2173. }
  2174. },
  2175. {
  2176. "name": "limit",
  2177. "in": "query",
  2178. "description": "Limit the amount of groups returned",
  2179. "schema": {
  2180. "type": "integer",
  2181. "format": "int64",
  2182. "nullable": true
  2183. }
  2184. },
  2185. {
  2186. "name": "offset",
  2187. "in": "query",
  2188. "description": "Offset for searching for groups",
  2189. "schema": {
  2190. "type": "integer",
  2191. "format": "int64",
  2192. "default": 0
  2193. }
  2194. },
  2195. {
  2196. "name": "OCS-APIRequest",
  2197. "in": "header",
  2198. "description": "Required to be true for the API request to pass",
  2199. "required": true,
  2200. "schema": {
  2201. "type": "boolean",
  2202. "default": true
  2203. }
  2204. }
  2205. ],
  2206. "responses": {
  2207. "200": {
  2208. "description": "Users details returned",
  2209. "content": {
  2210. "application/json": {
  2211. "schema": {
  2212. "type": "object",
  2213. "required": [
  2214. "ocs"
  2215. ],
  2216. "properties": {
  2217. "ocs": {
  2218. "type": "object",
  2219. "required": [
  2220. "meta",
  2221. "data"
  2222. ],
  2223. "properties": {
  2224. "meta": {
  2225. "$ref": "#/components/schemas/OCSMeta"
  2226. },
  2227. "data": {
  2228. "type": "object",
  2229. "required": [
  2230. "users"
  2231. ],
  2232. "properties": {
  2233. "users": {
  2234. "type": "object",
  2235. "additionalProperties": {
  2236. "anyOf": [
  2237. {
  2238. "$ref": "#/components/schemas/UserDetails"
  2239. },
  2240. {
  2241. "type": "object",
  2242. "required": [
  2243. "id"
  2244. ],
  2245. "properties": {
  2246. "id": {
  2247. "type": "string"
  2248. }
  2249. }
  2250. }
  2251. ]
  2252. }
  2253. }
  2254. }
  2255. }
  2256. }
  2257. }
  2258. }
  2259. }
  2260. }
  2261. }
  2262. }
  2263. }
  2264. }
  2265. },
  2266. "/ocs/v2.php/cloud/users/disabled": {
  2267. "get": {
  2268. "operationId": "users-get-disabled-users-details",
  2269. "summary": "Get the list of disabled users and their details",
  2270. "tags": [
  2271. "users"
  2272. ],
  2273. "security": [
  2274. {
  2275. "bearer_auth": []
  2276. },
  2277. {
  2278. "basic_auth": []
  2279. }
  2280. ],
  2281. "parameters": [
  2282. {
  2283. "name": "limit",
  2284. "in": "query",
  2285. "description": "Limit the amount of users returned",
  2286. "schema": {
  2287. "type": "integer",
  2288. "format": "int64",
  2289. "nullable": true
  2290. }
  2291. },
  2292. {
  2293. "name": "offset",
  2294. "in": "query",
  2295. "description": "Offset",
  2296. "schema": {
  2297. "type": "integer",
  2298. "format": "int64",
  2299. "default": 0
  2300. }
  2301. },
  2302. {
  2303. "name": "OCS-APIRequest",
  2304. "in": "header",
  2305. "description": "Required to be true for the API request to pass",
  2306. "required": true,
  2307. "schema": {
  2308. "type": "boolean",
  2309. "default": true
  2310. }
  2311. }
  2312. ],
  2313. "responses": {
  2314. "200": {
  2315. "description": "Disabled users details returned",
  2316. "content": {
  2317. "application/json": {
  2318. "schema": {
  2319. "type": "object",
  2320. "required": [
  2321. "ocs"
  2322. ],
  2323. "properties": {
  2324. "ocs": {
  2325. "type": "object",
  2326. "required": [
  2327. "meta",
  2328. "data"
  2329. ],
  2330. "properties": {
  2331. "meta": {
  2332. "$ref": "#/components/schemas/OCSMeta"
  2333. },
  2334. "data": {
  2335. "type": "object",
  2336. "required": [
  2337. "users"
  2338. ],
  2339. "properties": {
  2340. "users": {
  2341. "type": "object",
  2342. "additionalProperties": {
  2343. "anyOf": [
  2344. {
  2345. "$ref": "#/components/schemas/UserDetails"
  2346. },
  2347. {
  2348. "type": "object",
  2349. "required": [
  2350. "id"
  2351. ],
  2352. "properties": {
  2353. "id": {
  2354. "type": "string"
  2355. }
  2356. }
  2357. }
  2358. ]
  2359. }
  2360. }
  2361. }
  2362. }
  2363. }
  2364. }
  2365. }
  2366. }
  2367. }
  2368. }
  2369. }
  2370. }
  2371. }
  2372. },
  2373. "/ocs/v2.php/cloud/users/search/by-phone": {
  2374. "post": {
  2375. "operationId": "users-search-by-phone-numbers",
  2376. "summary": "Search users by their phone numbers",
  2377. "tags": [
  2378. "users"
  2379. ],
  2380. "security": [
  2381. {
  2382. "bearer_auth": []
  2383. },
  2384. {
  2385. "basic_auth": []
  2386. }
  2387. ],
  2388. "parameters": [
  2389. {
  2390. "name": "location",
  2391. "in": "query",
  2392. "description": "Location of the phone number (for country code)",
  2393. "required": true,
  2394. "schema": {
  2395. "type": "string"
  2396. }
  2397. },
  2398. {
  2399. "name": "search",
  2400. "in": "query",
  2401. "description": "Phone numbers to search for",
  2402. "required": true,
  2403. "schema": {
  2404. "type": "string"
  2405. }
  2406. },
  2407. {
  2408. "name": "OCS-APIRequest",
  2409. "in": "header",
  2410. "description": "Required to be true for the API request to pass",
  2411. "required": true,
  2412. "schema": {
  2413. "type": "boolean",
  2414. "default": true
  2415. }
  2416. }
  2417. ],
  2418. "responses": {
  2419. "200": {
  2420. "description": "Users returned",
  2421. "content": {
  2422. "application/json": {
  2423. "schema": {
  2424. "type": "object",
  2425. "required": [
  2426. "ocs"
  2427. ],
  2428. "properties": {
  2429. "ocs": {
  2430. "type": "object",
  2431. "required": [
  2432. "meta",
  2433. "data"
  2434. ],
  2435. "properties": {
  2436. "meta": {
  2437. "$ref": "#/components/schemas/OCSMeta"
  2438. },
  2439. "data": {
  2440. "type": "object",
  2441. "additionalProperties": {
  2442. "type": "string"
  2443. }
  2444. }
  2445. }
  2446. }
  2447. }
  2448. }
  2449. }
  2450. }
  2451. },
  2452. "400": {
  2453. "description": "Invalid location",
  2454. "content": {
  2455. "application/json": {
  2456. "schema": {
  2457. "type": "object",
  2458. "required": [
  2459. "ocs"
  2460. ],
  2461. "properties": {
  2462. "ocs": {
  2463. "type": "object",
  2464. "required": [
  2465. "meta",
  2466. "data"
  2467. ],
  2468. "properties": {
  2469. "meta": {
  2470. "$ref": "#/components/schemas/OCSMeta"
  2471. },
  2472. "data": {}
  2473. }
  2474. }
  2475. }
  2476. }
  2477. }
  2478. }
  2479. }
  2480. }
  2481. }
  2482. },
  2483. "/ocs/v2.php/cloud/users/{userId}": {
  2484. "get": {
  2485. "operationId": "users-get-user",
  2486. "summary": "Get the details of a user",
  2487. "tags": [
  2488. "users"
  2489. ],
  2490. "security": [
  2491. {
  2492. "bearer_auth": []
  2493. },
  2494. {
  2495. "basic_auth": []
  2496. }
  2497. ],
  2498. "parameters": [
  2499. {
  2500. "name": "userId",
  2501. "in": "path",
  2502. "description": "ID of the user",
  2503. "required": true,
  2504. "schema": {
  2505. "type": "string"
  2506. }
  2507. },
  2508. {
  2509. "name": "OCS-APIRequest",
  2510. "in": "header",
  2511. "description": "Required to be true for the API request to pass",
  2512. "required": true,
  2513. "schema": {
  2514. "type": "boolean",
  2515. "default": true
  2516. }
  2517. }
  2518. ],
  2519. "responses": {
  2520. "200": {
  2521. "description": "User returned",
  2522. "content": {
  2523. "application/json": {
  2524. "schema": {
  2525. "type": "object",
  2526. "required": [
  2527. "ocs"
  2528. ],
  2529. "properties": {
  2530. "ocs": {
  2531. "type": "object",
  2532. "required": [
  2533. "meta",
  2534. "data"
  2535. ],
  2536. "properties": {
  2537. "meta": {
  2538. "$ref": "#/components/schemas/OCSMeta"
  2539. },
  2540. "data": {
  2541. "$ref": "#/components/schemas/UserDetails"
  2542. }
  2543. }
  2544. }
  2545. }
  2546. }
  2547. }
  2548. }
  2549. }
  2550. }
  2551. },
  2552. "put": {
  2553. "operationId": "users-edit-user",
  2554. "summary": "Update a value of the user's details",
  2555. "description": "This endpoint requires password confirmation",
  2556. "tags": [
  2557. "users"
  2558. ],
  2559. "security": [
  2560. {
  2561. "bearer_auth": []
  2562. },
  2563. {
  2564. "basic_auth": []
  2565. }
  2566. ],
  2567. "parameters": [
  2568. {
  2569. "name": "key",
  2570. "in": "query",
  2571. "description": "Key that will be updated",
  2572. "required": true,
  2573. "schema": {
  2574. "type": "string"
  2575. }
  2576. },
  2577. {
  2578. "name": "value",
  2579. "in": "query",
  2580. "description": "New value for the key",
  2581. "required": true,
  2582. "schema": {
  2583. "type": "string"
  2584. }
  2585. },
  2586. {
  2587. "name": "userId",
  2588. "in": "path",
  2589. "description": "ID of the user",
  2590. "required": true,
  2591. "schema": {
  2592. "type": "string"
  2593. }
  2594. },
  2595. {
  2596. "name": "OCS-APIRequest",
  2597. "in": "header",
  2598. "description": "Required to be true for the API request to pass",
  2599. "required": true,
  2600. "schema": {
  2601. "type": "boolean",
  2602. "default": true
  2603. }
  2604. }
  2605. ],
  2606. "responses": {
  2607. "200": {
  2608. "description": "User value edited successfully",
  2609. "content": {
  2610. "application/json": {
  2611. "schema": {
  2612. "type": "object",
  2613. "required": [
  2614. "ocs"
  2615. ],
  2616. "properties": {
  2617. "ocs": {
  2618. "type": "object",
  2619. "required": [
  2620. "meta",
  2621. "data"
  2622. ],
  2623. "properties": {
  2624. "meta": {
  2625. "$ref": "#/components/schemas/OCSMeta"
  2626. },
  2627. "data": {}
  2628. }
  2629. }
  2630. }
  2631. }
  2632. }
  2633. }
  2634. }
  2635. }
  2636. },
  2637. "delete": {
  2638. "operationId": "users-delete-user",
  2639. "summary": "Delete a user",
  2640. "description": "This endpoint requires password confirmation",
  2641. "tags": [
  2642. "users"
  2643. ],
  2644. "security": [
  2645. {
  2646. "bearer_auth": []
  2647. },
  2648. {
  2649. "basic_auth": []
  2650. }
  2651. ],
  2652. "parameters": [
  2653. {
  2654. "name": "userId",
  2655. "in": "path",
  2656. "description": "ID of the user",
  2657. "required": true,
  2658. "schema": {
  2659. "type": "string"
  2660. }
  2661. },
  2662. {
  2663. "name": "OCS-APIRequest",
  2664. "in": "header",
  2665. "description": "Required to be true for the API request to pass",
  2666. "required": true,
  2667. "schema": {
  2668. "type": "boolean",
  2669. "default": true
  2670. }
  2671. }
  2672. ],
  2673. "responses": {
  2674. "200": {
  2675. "description": "User deleted successfully",
  2676. "content": {
  2677. "application/json": {
  2678. "schema": {
  2679. "type": "object",
  2680. "required": [
  2681. "ocs"
  2682. ],
  2683. "properties": {
  2684. "ocs": {
  2685. "type": "object",
  2686. "required": [
  2687. "meta",
  2688. "data"
  2689. ],
  2690. "properties": {
  2691. "meta": {
  2692. "$ref": "#/components/schemas/OCSMeta"
  2693. },
  2694. "data": {}
  2695. }
  2696. }
  2697. }
  2698. }
  2699. }
  2700. }
  2701. }
  2702. }
  2703. }
  2704. },
  2705. "/ocs/v2.php/cloud/user": {
  2706. "get": {
  2707. "operationId": "users-get-current-user",
  2708. "summary": "Get the details of the current user",
  2709. "tags": [
  2710. "users"
  2711. ],
  2712. "security": [
  2713. {
  2714. "bearer_auth": []
  2715. },
  2716. {
  2717. "basic_auth": []
  2718. }
  2719. ],
  2720. "parameters": [
  2721. {
  2722. "name": "OCS-APIRequest",
  2723. "in": "header",
  2724. "description": "Required to be true for the API request to pass",
  2725. "required": true,
  2726. "schema": {
  2727. "type": "boolean",
  2728. "default": true
  2729. }
  2730. }
  2731. ],
  2732. "responses": {
  2733. "200": {
  2734. "description": "Current user returned",
  2735. "content": {
  2736. "application/json": {
  2737. "schema": {
  2738. "type": "object",
  2739. "required": [
  2740. "ocs"
  2741. ],
  2742. "properties": {
  2743. "ocs": {
  2744. "type": "object",
  2745. "required": [
  2746. "meta",
  2747. "data"
  2748. ],
  2749. "properties": {
  2750. "meta": {
  2751. "$ref": "#/components/schemas/OCSMeta"
  2752. },
  2753. "data": {
  2754. "$ref": "#/components/schemas/UserDetails"
  2755. }
  2756. }
  2757. }
  2758. }
  2759. }
  2760. }
  2761. }
  2762. }
  2763. }
  2764. }
  2765. },
  2766. "/ocs/v2.php/cloud/user/fields": {
  2767. "get": {
  2768. "operationId": "users-get-editable-fields",
  2769. "summary": "Get a list of fields that are editable for the current user",
  2770. "tags": [
  2771. "users"
  2772. ],
  2773. "security": [
  2774. {
  2775. "bearer_auth": []
  2776. },
  2777. {
  2778. "basic_auth": []
  2779. }
  2780. ],
  2781. "parameters": [
  2782. {
  2783. "name": "OCS-APIRequest",
  2784. "in": "header",
  2785. "description": "Required to be true for the API request to pass",
  2786. "required": true,
  2787. "schema": {
  2788. "type": "boolean",
  2789. "default": true
  2790. }
  2791. }
  2792. ],
  2793. "responses": {
  2794. "200": {
  2795. "description": "Editable fields returned",
  2796. "content": {
  2797. "application/json": {
  2798. "schema": {
  2799. "type": "object",
  2800. "required": [
  2801. "ocs"
  2802. ],
  2803. "properties": {
  2804. "ocs": {
  2805. "type": "object",
  2806. "required": [
  2807. "meta",
  2808. "data"
  2809. ],
  2810. "properties": {
  2811. "meta": {
  2812. "$ref": "#/components/schemas/OCSMeta"
  2813. },
  2814. "data": {
  2815. "type": "array",
  2816. "items": {
  2817. "type": "string"
  2818. }
  2819. }
  2820. }
  2821. }
  2822. }
  2823. }
  2824. }
  2825. }
  2826. }
  2827. }
  2828. }
  2829. },
  2830. "/ocs/v2.php/cloud/user/fields/{userId}": {
  2831. "get": {
  2832. "operationId": "users-get-editable-fields-for-user",
  2833. "summary": "Get a list of fields that are editable for a user",
  2834. "tags": [
  2835. "users"
  2836. ],
  2837. "security": [
  2838. {
  2839. "bearer_auth": []
  2840. },
  2841. {
  2842. "basic_auth": []
  2843. }
  2844. ],
  2845. "parameters": [
  2846. {
  2847. "name": "userId",
  2848. "in": "path",
  2849. "description": "ID of the user",
  2850. "required": true,
  2851. "schema": {
  2852. "type": "string"
  2853. }
  2854. },
  2855. {
  2856. "name": "OCS-APIRequest",
  2857. "in": "header",
  2858. "description": "Required to be true for the API request to pass",
  2859. "required": true,
  2860. "schema": {
  2861. "type": "boolean",
  2862. "default": true
  2863. }
  2864. }
  2865. ],
  2866. "responses": {
  2867. "200": {
  2868. "description": "Editable fields for user returned",
  2869. "content": {
  2870. "application/json": {
  2871. "schema": {
  2872. "type": "object",
  2873. "required": [
  2874. "ocs"
  2875. ],
  2876. "properties": {
  2877. "ocs": {
  2878. "type": "object",
  2879. "required": [
  2880. "meta",
  2881. "data"
  2882. ],
  2883. "properties": {
  2884. "meta": {
  2885. "$ref": "#/components/schemas/OCSMeta"
  2886. },
  2887. "data": {
  2888. "type": "array",
  2889. "items": {
  2890. "type": "string"
  2891. }
  2892. }
  2893. }
  2894. }
  2895. }
  2896. }
  2897. }
  2898. }
  2899. }
  2900. }
  2901. }
  2902. },
  2903. "/ocs/v2.php/cloud/users/{userId}/{collectionName}": {
  2904. "put": {
  2905. "operationId": "users-edit-user-multi-value",
  2906. "summary": "Update multiple values of the user's details",
  2907. "description": "This endpoint requires password confirmation",
  2908. "tags": [
  2909. "users"
  2910. ],
  2911. "security": [
  2912. {
  2913. "bearer_auth": []
  2914. },
  2915. {
  2916. "basic_auth": []
  2917. }
  2918. ],
  2919. "parameters": [
  2920. {
  2921. "name": "key",
  2922. "in": "query",
  2923. "description": "Key that will be updated",
  2924. "required": true,
  2925. "schema": {
  2926. "type": "string"
  2927. }
  2928. },
  2929. {
  2930. "name": "value",
  2931. "in": "query",
  2932. "description": "New value for the key",
  2933. "required": true,
  2934. "schema": {
  2935. "type": "string"
  2936. }
  2937. },
  2938. {
  2939. "name": "userId",
  2940. "in": "path",
  2941. "description": "ID of the user",
  2942. "required": true,
  2943. "schema": {
  2944. "type": "string"
  2945. }
  2946. },
  2947. {
  2948. "name": "collectionName",
  2949. "in": "path",
  2950. "description": "Collection to update",
  2951. "required": true,
  2952. "schema": {
  2953. "type": "string",
  2954. "pattern": "^(?!enable$|disable$)[a-zA-Z0-9_]*$"
  2955. }
  2956. },
  2957. {
  2958. "name": "OCS-APIRequest",
  2959. "in": "header",
  2960. "description": "Required to be true for the API request to pass",
  2961. "required": true,
  2962. "schema": {
  2963. "type": "boolean",
  2964. "default": true
  2965. }
  2966. }
  2967. ],
  2968. "responses": {
  2969. "200": {
  2970. "description": "User values edited successfully",
  2971. "content": {
  2972. "application/json": {
  2973. "schema": {
  2974. "type": "object",
  2975. "required": [
  2976. "ocs"
  2977. ],
  2978. "properties": {
  2979. "ocs": {
  2980. "type": "object",
  2981. "required": [
  2982. "meta",
  2983. "data"
  2984. ],
  2985. "properties": {
  2986. "meta": {
  2987. "$ref": "#/components/schemas/OCSMeta"
  2988. },
  2989. "data": {}
  2990. }
  2991. }
  2992. }
  2993. }
  2994. }
  2995. }
  2996. }
  2997. }
  2998. }
  2999. },
  3000. "/ocs/v2.php/cloud/users/{userId}/wipe": {
  3001. "post": {
  3002. "operationId": "users-wipe-user-devices",
  3003. "summary": "Wipe all devices of a user",
  3004. "description": "This endpoint requires password confirmation",
  3005. "tags": [
  3006. "users"
  3007. ],
  3008. "security": [
  3009. {
  3010. "bearer_auth": []
  3011. },
  3012. {
  3013. "basic_auth": []
  3014. }
  3015. ],
  3016. "parameters": [
  3017. {
  3018. "name": "userId",
  3019. "in": "path",
  3020. "description": "ID of the user",
  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": "Wiped all user devices 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. }
  3067. }
  3068. },
  3069. "/ocs/v2.php/cloud/users/{userId}/enable": {
  3070. "put": {
  3071. "operationId": "users-enable-user",
  3072. "summary": "Enable a user",
  3073. "description": "This endpoint requires password confirmation",
  3074. "tags": [
  3075. "users"
  3076. ],
  3077. "security": [
  3078. {
  3079. "bearer_auth": []
  3080. },
  3081. {
  3082. "basic_auth": []
  3083. }
  3084. ],
  3085. "parameters": [
  3086. {
  3087. "name": "userId",
  3088. "in": "path",
  3089. "description": "ID of the user",
  3090. "required": true,
  3091. "schema": {
  3092. "type": "string"
  3093. }
  3094. },
  3095. {
  3096. "name": "OCS-APIRequest",
  3097. "in": "header",
  3098. "description": "Required to be true for the API request to pass",
  3099. "required": true,
  3100. "schema": {
  3101. "type": "boolean",
  3102. "default": true
  3103. }
  3104. }
  3105. ],
  3106. "responses": {
  3107. "200": {
  3108. "description": "User enabled successfully",
  3109. "content": {
  3110. "application/json": {
  3111. "schema": {
  3112. "type": "object",
  3113. "required": [
  3114. "ocs"
  3115. ],
  3116. "properties": {
  3117. "ocs": {
  3118. "type": "object",
  3119. "required": [
  3120. "meta",
  3121. "data"
  3122. ],
  3123. "properties": {
  3124. "meta": {
  3125. "$ref": "#/components/schemas/OCSMeta"
  3126. },
  3127. "data": {}
  3128. }
  3129. }
  3130. }
  3131. }
  3132. }
  3133. }
  3134. }
  3135. }
  3136. }
  3137. },
  3138. "/ocs/v2.php/cloud/users/{userId}/disable": {
  3139. "put": {
  3140. "operationId": "users-disable-user",
  3141. "summary": "Disable a user",
  3142. "description": "This endpoint requires password confirmation",
  3143. "tags": [
  3144. "users"
  3145. ],
  3146. "security": [
  3147. {
  3148. "bearer_auth": []
  3149. },
  3150. {
  3151. "basic_auth": []
  3152. }
  3153. ],
  3154. "parameters": [
  3155. {
  3156. "name": "userId",
  3157. "in": "path",
  3158. "description": "ID of the user",
  3159. "required": true,
  3160. "schema": {
  3161. "type": "string"
  3162. }
  3163. },
  3164. {
  3165. "name": "OCS-APIRequest",
  3166. "in": "header",
  3167. "description": "Required to be true for the API request to pass",
  3168. "required": true,
  3169. "schema": {
  3170. "type": "boolean",
  3171. "default": true
  3172. }
  3173. }
  3174. ],
  3175. "responses": {
  3176. "200": {
  3177. "description": "User disabled successfully",
  3178. "content": {
  3179. "application/json": {
  3180. "schema": {
  3181. "type": "object",
  3182. "required": [
  3183. "ocs"
  3184. ],
  3185. "properties": {
  3186. "ocs": {
  3187. "type": "object",
  3188. "required": [
  3189. "meta",
  3190. "data"
  3191. ],
  3192. "properties": {
  3193. "meta": {
  3194. "$ref": "#/components/schemas/OCSMeta"
  3195. },
  3196. "data": {}
  3197. }
  3198. }
  3199. }
  3200. }
  3201. }
  3202. }
  3203. }
  3204. }
  3205. }
  3206. },
  3207. "/ocs/v2.php/cloud/users/{userId}/groups": {
  3208. "get": {
  3209. "operationId": "users-get-users-groups",
  3210. "summary": "Get a list of groups the user belongs to",
  3211. "tags": [
  3212. "users"
  3213. ],
  3214. "security": [
  3215. {
  3216. "bearer_auth": []
  3217. },
  3218. {
  3219. "basic_auth": []
  3220. }
  3221. ],
  3222. "parameters": [
  3223. {
  3224. "name": "userId",
  3225. "in": "path",
  3226. "description": "ID of the user",
  3227. "required": true,
  3228. "schema": {
  3229. "type": "string"
  3230. }
  3231. },
  3232. {
  3233. "name": "OCS-APIRequest",
  3234. "in": "header",
  3235. "description": "Required to be true for the API request to pass",
  3236. "required": true,
  3237. "schema": {
  3238. "type": "boolean",
  3239. "default": true
  3240. }
  3241. }
  3242. ],
  3243. "responses": {
  3244. "200": {
  3245. "description": "Users groups returned",
  3246. "content": {
  3247. "application/json": {
  3248. "schema": {
  3249. "type": "object",
  3250. "required": [
  3251. "ocs"
  3252. ],
  3253. "properties": {
  3254. "ocs": {
  3255. "type": "object",
  3256. "required": [
  3257. "meta",
  3258. "data"
  3259. ],
  3260. "properties": {
  3261. "meta": {
  3262. "$ref": "#/components/schemas/OCSMeta"
  3263. },
  3264. "data": {
  3265. "type": "object",
  3266. "required": [
  3267. "groups"
  3268. ],
  3269. "properties": {
  3270. "groups": {
  3271. "type": "array",
  3272. "items": {
  3273. "type": "string"
  3274. }
  3275. }
  3276. }
  3277. }
  3278. }
  3279. }
  3280. }
  3281. }
  3282. }
  3283. }
  3284. }
  3285. }
  3286. },
  3287. "post": {
  3288. "operationId": "users-add-to-group",
  3289. "summary": "Add a user to a group",
  3290. "description": "This endpoint requires password confirmation",
  3291. "tags": [
  3292. "users"
  3293. ],
  3294. "security": [
  3295. {
  3296. "bearer_auth": []
  3297. },
  3298. {
  3299. "basic_auth": []
  3300. }
  3301. ],
  3302. "parameters": [
  3303. {
  3304. "name": "groupid",
  3305. "in": "query",
  3306. "description": "ID of the group",
  3307. "schema": {
  3308. "type": "string",
  3309. "default": ""
  3310. }
  3311. },
  3312. {
  3313. "name": "userId",
  3314. "in": "path",
  3315. "description": "ID of the user",
  3316. "required": true,
  3317. "schema": {
  3318. "type": "string"
  3319. }
  3320. },
  3321. {
  3322. "name": "OCS-APIRequest",
  3323. "in": "header",
  3324. "description": "Required to be true for the API request to pass",
  3325. "required": true,
  3326. "schema": {
  3327. "type": "boolean",
  3328. "default": true
  3329. }
  3330. }
  3331. ],
  3332. "responses": {
  3333. "200": {
  3334. "description": "User added to group successfully",
  3335. "content": {
  3336. "application/json": {
  3337. "schema": {
  3338. "type": "object",
  3339. "required": [
  3340. "ocs"
  3341. ],
  3342. "properties": {
  3343. "ocs": {
  3344. "type": "object",
  3345. "required": [
  3346. "meta",
  3347. "data"
  3348. ],
  3349. "properties": {
  3350. "meta": {
  3351. "$ref": "#/components/schemas/OCSMeta"
  3352. },
  3353. "data": {}
  3354. }
  3355. }
  3356. }
  3357. }
  3358. }
  3359. }
  3360. }
  3361. }
  3362. },
  3363. "delete": {
  3364. "operationId": "users-remove-from-group",
  3365. "summary": "Remove a user from a group",
  3366. "description": "This endpoint requires password confirmation",
  3367. "tags": [
  3368. "users"
  3369. ],
  3370. "security": [
  3371. {
  3372. "bearer_auth": []
  3373. },
  3374. {
  3375. "basic_auth": []
  3376. }
  3377. ],
  3378. "parameters": [
  3379. {
  3380. "name": "groupid",
  3381. "in": "query",
  3382. "description": "ID of the group",
  3383. "required": true,
  3384. "schema": {
  3385. "type": "string"
  3386. }
  3387. },
  3388. {
  3389. "name": "userId",
  3390. "in": "path",
  3391. "description": "ID of the user",
  3392. "required": true,
  3393. "schema": {
  3394. "type": "string"
  3395. }
  3396. },
  3397. {
  3398. "name": "OCS-APIRequest",
  3399. "in": "header",
  3400. "description": "Required to be true for the API request to pass",
  3401. "required": true,
  3402. "schema": {
  3403. "type": "boolean",
  3404. "default": true
  3405. }
  3406. }
  3407. ],
  3408. "responses": {
  3409. "200": {
  3410. "description": "User removed from group successfully",
  3411. "content": {
  3412. "application/json": {
  3413. "schema": {
  3414. "type": "object",
  3415. "required": [
  3416. "ocs"
  3417. ],
  3418. "properties": {
  3419. "ocs": {
  3420. "type": "object",
  3421. "required": [
  3422. "meta",
  3423. "data"
  3424. ],
  3425. "properties": {
  3426. "meta": {
  3427. "$ref": "#/components/schemas/OCSMeta"
  3428. },
  3429. "data": {}
  3430. }
  3431. }
  3432. }
  3433. }
  3434. }
  3435. }
  3436. }
  3437. }
  3438. }
  3439. },
  3440. "/ocs/v2.php/cloud/users/{userId}/welcome": {
  3441. "post": {
  3442. "operationId": "users-resend-welcome-message",
  3443. "summary": "Resend the welcome message",
  3444. "description": "This endpoint requires password confirmation",
  3445. "tags": [
  3446. "users"
  3447. ],
  3448. "security": [
  3449. {
  3450. "bearer_auth": []
  3451. },
  3452. {
  3453. "basic_auth": []
  3454. }
  3455. ],
  3456. "parameters": [
  3457. {
  3458. "name": "userId",
  3459. "in": "path",
  3460. "description": "ID if the user",
  3461. "required": true,
  3462. "schema": {
  3463. "type": "string"
  3464. }
  3465. },
  3466. {
  3467. "name": "OCS-APIRequest",
  3468. "in": "header",
  3469. "description": "Required to be true for the API request to pass",
  3470. "required": true,
  3471. "schema": {
  3472. "type": "boolean",
  3473. "default": true
  3474. }
  3475. }
  3476. ],
  3477. "responses": {
  3478. "200": {
  3479. "description": "Resent welcome message successfully",
  3480. "content": {
  3481. "application/json": {
  3482. "schema": {
  3483. "type": "object",
  3484. "required": [
  3485. "ocs"
  3486. ],
  3487. "properties": {
  3488. "ocs": {
  3489. "type": "object",
  3490. "required": [
  3491. "meta",
  3492. "data"
  3493. ],
  3494. "properties": {
  3495. "meta": {
  3496. "$ref": "#/components/schemas/OCSMeta"
  3497. },
  3498. "data": {}
  3499. }
  3500. }
  3501. }
  3502. }
  3503. }
  3504. }
  3505. }
  3506. }
  3507. }
  3508. },
  3509. "/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}": {
  3510. "post": {
  3511. "operationId": "preferences-set-preference",
  3512. "summary": "Update a preference value of an app",
  3513. "tags": [
  3514. "preferences"
  3515. ],
  3516. "security": [
  3517. {
  3518. "bearer_auth": []
  3519. },
  3520. {
  3521. "basic_auth": []
  3522. }
  3523. ],
  3524. "parameters": [
  3525. {
  3526. "name": "configValue",
  3527. "in": "query",
  3528. "description": "New value",
  3529. "required": true,
  3530. "schema": {
  3531. "type": "string"
  3532. }
  3533. },
  3534. {
  3535. "name": "appId",
  3536. "in": "path",
  3537. "description": "ID of the app",
  3538. "required": true,
  3539. "schema": {
  3540. "type": "string"
  3541. }
  3542. },
  3543. {
  3544. "name": "configKey",
  3545. "in": "path",
  3546. "description": "Key of the preference",
  3547. "required": true,
  3548. "schema": {
  3549. "type": "string"
  3550. }
  3551. },
  3552. {
  3553. "name": "OCS-APIRequest",
  3554. "in": "header",
  3555. "description": "Required to be true for the API request to pass",
  3556. "required": true,
  3557. "schema": {
  3558. "type": "boolean",
  3559. "default": true
  3560. }
  3561. }
  3562. ],
  3563. "responses": {
  3564. "200": {
  3565. "description": "Preference updated successfully",
  3566. "content": {
  3567. "application/json": {
  3568. "schema": {
  3569. "type": "object",
  3570. "required": [
  3571. "ocs"
  3572. ],
  3573. "properties": {
  3574. "ocs": {
  3575. "type": "object",
  3576. "required": [
  3577. "meta",
  3578. "data"
  3579. ],
  3580. "properties": {
  3581. "meta": {
  3582. "$ref": "#/components/schemas/OCSMeta"
  3583. },
  3584. "data": {}
  3585. }
  3586. }
  3587. }
  3588. }
  3589. }
  3590. }
  3591. },
  3592. "400": {
  3593. "description": "Preference invalid",
  3594. "content": {
  3595. "application/json": {
  3596. "schema": {
  3597. "type": "object",
  3598. "required": [
  3599. "ocs"
  3600. ],
  3601. "properties": {
  3602. "ocs": {
  3603. "type": "object",
  3604. "required": [
  3605. "meta",
  3606. "data"
  3607. ],
  3608. "properties": {
  3609. "meta": {
  3610. "$ref": "#/components/schemas/OCSMeta"
  3611. },
  3612. "data": {}
  3613. }
  3614. }
  3615. }
  3616. }
  3617. }
  3618. }
  3619. }
  3620. }
  3621. },
  3622. "delete": {
  3623. "operationId": "preferences-delete-preference",
  3624. "summary": "Delete a preference for an app",
  3625. "tags": [
  3626. "preferences"
  3627. ],
  3628. "security": [
  3629. {
  3630. "bearer_auth": []
  3631. },
  3632. {
  3633. "basic_auth": []
  3634. }
  3635. ],
  3636. "parameters": [
  3637. {
  3638. "name": "appId",
  3639. "in": "path",
  3640. "description": "ID of the app",
  3641. "required": true,
  3642. "schema": {
  3643. "type": "string"
  3644. }
  3645. },
  3646. {
  3647. "name": "configKey",
  3648. "in": "path",
  3649. "description": "Key to delete",
  3650. "required": true,
  3651. "schema": {
  3652. "type": "string"
  3653. }
  3654. },
  3655. {
  3656. "name": "OCS-APIRequest",
  3657. "in": "header",
  3658. "description": "Required to be true for the API request to pass",
  3659. "required": true,
  3660. "schema": {
  3661. "type": "boolean",
  3662. "default": true
  3663. }
  3664. }
  3665. ],
  3666. "responses": {
  3667. "200": {
  3668. "description": "Preference deleted successfully",
  3669. "content": {
  3670. "application/json": {
  3671. "schema": {
  3672. "type": "object",
  3673. "required": [
  3674. "ocs"
  3675. ],
  3676. "properties": {
  3677. "ocs": {
  3678. "type": "object",
  3679. "required": [
  3680. "meta",
  3681. "data"
  3682. ],
  3683. "properties": {
  3684. "meta": {
  3685. "$ref": "#/components/schemas/OCSMeta"
  3686. },
  3687. "data": {}
  3688. }
  3689. }
  3690. }
  3691. }
  3692. }
  3693. }
  3694. },
  3695. "400": {
  3696. "description": "Preference invalid",
  3697. "content": {
  3698. "application/json": {
  3699. "schema": {
  3700. "type": "object",
  3701. "required": [
  3702. "ocs"
  3703. ],
  3704. "properties": {
  3705. "ocs": {
  3706. "type": "object",
  3707. "required": [
  3708. "meta",
  3709. "data"
  3710. ],
  3711. "properties": {
  3712. "meta": {
  3713. "$ref": "#/components/schemas/OCSMeta"
  3714. },
  3715. "data": {}
  3716. }
  3717. }
  3718. }
  3719. }
  3720. }
  3721. }
  3722. }
  3723. }
  3724. }
  3725. },
  3726. "/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}": {
  3727. "post": {
  3728. "operationId": "preferences-set-multiple-preferences",
  3729. "summary": "Update multiple preference values of an app",
  3730. "tags": [
  3731. "preferences"
  3732. ],
  3733. "security": [
  3734. {
  3735. "bearer_auth": []
  3736. },
  3737. {
  3738. "basic_auth": []
  3739. }
  3740. ],
  3741. "parameters": [
  3742. {
  3743. "name": "configs",
  3744. "in": "query",
  3745. "description": "Key-value pairs of the preferences",
  3746. "required": true,
  3747. "schema": {
  3748. "type": "string"
  3749. }
  3750. },
  3751. {
  3752. "name": "appId",
  3753. "in": "path",
  3754. "description": "ID of the app",
  3755. "required": true,
  3756. "schema": {
  3757. "type": "string"
  3758. }
  3759. },
  3760. {
  3761. "name": "OCS-APIRequest",
  3762. "in": "header",
  3763. "description": "Required to be true for the API request to pass",
  3764. "required": true,
  3765. "schema": {
  3766. "type": "boolean",
  3767. "default": true
  3768. }
  3769. }
  3770. ],
  3771. "responses": {
  3772. "200": {
  3773. "description": "Preferences updated successfully",
  3774. "content": {
  3775. "application/json": {
  3776. "schema": {
  3777. "type": "object",
  3778. "required": [
  3779. "ocs"
  3780. ],
  3781. "properties": {
  3782. "ocs": {
  3783. "type": "object",
  3784. "required": [
  3785. "meta",
  3786. "data"
  3787. ],
  3788. "properties": {
  3789. "meta": {
  3790. "$ref": "#/components/schemas/OCSMeta"
  3791. },
  3792. "data": {}
  3793. }
  3794. }
  3795. }
  3796. }
  3797. }
  3798. }
  3799. },
  3800. "400": {
  3801. "description": "Preference invalid",
  3802. "content": {
  3803. "application/json": {
  3804. "schema": {
  3805. "type": "object",
  3806. "required": [
  3807. "ocs"
  3808. ],
  3809. "properties": {
  3810. "ocs": {
  3811. "type": "object",
  3812. "required": [
  3813. "meta",
  3814. "data"
  3815. ],
  3816. "properties": {
  3817. "meta": {
  3818. "$ref": "#/components/schemas/OCSMeta"
  3819. },
  3820. "data": {}
  3821. }
  3822. }
  3823. }
  3824. }
  3825. }
  3826. }
  3827. }
  3828. }
  3829. },
  3830. "delete": {
  3831. "operationId": "preferences-delete-multiple-preference",
  3832. "summary": "Delete multiple preferences for an app",
  3833. "tags": [
  3834. "preferences"
  3835. ],
  3836. "security": [
  3837. {
  3838. "bearer_auth": []
  3839. },
  3840. {
  3841. "basic_auth": []
  3842. }
  3843. ],
  3844. "parameters": [
  3845. {
  3846. "name": "configKeys[]",
  3847. "in": "query",
  3848. "description": "Keys to delete",
  3849. "required": true,
  3850. "schema": {
  3851. "type": "array",
  3852. "items": {
  3853. "type": "string"
  3854. }
  3855. }
  3856. },
  3857. {
  3858. "name": "appId",
  3859. "in": "path",
  3860. "description": "ID of the app",
  3861. "required": true,
  3862. "schema": {
  3863. "type": "string"
  3864. }
  3865. },
  3866. {
  3867. "name": "OCS-APIRequest",
  3868. "in": "header",
  3869. "description": "Required to be true for the API request to pass",
  3870. "required": true,
  3871. "schema": {
  3872. "type": "boolean",
  3873. "default": true
  3874. }
  3875. }
  3876. ],
  3877. "responses": {
  3878. "200": {
  3879. "description": "Preferences deleted successfully",
  3880. "content": {
  3881. "application/json": {
  3882. "schema": {
  3883. "type": "object",
  3884. "required": [
  3885. "ocs"
  3886. ],
  3887. "properties": {
  3888. "ocs": {
  3889. "type": "object",
  3890. "required": [
  3891. "meta",
  3892. "data"
  3893. ],
  3894. "properties": {
  3895. "meta": {
  3896. "$ref": "#/components/schemas/OCSMeta"
  3897. },
  3898. "data": {}
  3899. }
  3900. }
  3901. }
  3902. }
  3903. }
  3904. }
  3905. },
  3906. "400": {
  3907. "description": "Preference invalid",
  3908. "content": {
  3909. "application/json": {
  3910. "schema": {
  3911. "type": "object",
  3912. "required": [
  3913. "ocs"
  3914. ],
  3915. "properties": {
  3916. "ocs": {
  3917. "type": "object",
  3918. "required": [
  3919. "meta",
  3920. "data"
  3921. ],
  3922. "properties": {
  3923. "meta": {
  3924. "$ref": "#/components/schemas/OCSMeta"
  3925. },
  3926. "data": {}
  3927. }
  3928. }
  3929. }
  3930. }
  3931. }
  3932. }
  3933. }
  3934. }
  3935. }
  3936. }
  3937. },
  3938. "tags": []
  3939. }