openapi.json 125 KB

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