openapi-full.json 162 KB

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