1
0

openapi.json 125 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078
  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 users, 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": "search",
  1291. "in": "query",
  1292. "description": "Text to search for",
  1293. "schema": {
  1294. "type": "string",
  1295. "default": ""
  1296. }
  1297. },
  1298. {
  1299. "name": "limit",
  1300. "in": "query",
  1301. "description": "Limit the amount of users returned",
  1302. "schema": {
  1303. "type": "integer",
  1304. "format": "int64",
  1305. "nullable": true
  1306. }
  1307. },
  1308. {
  1309. "name": "offset",
  1310. "in": "query",
  1311. "description": "Offset",
  1312. "schema": {
  1313. "type": "integer",
  1314. "format": "int64",
  1315. "default": 0
  1316. }
  1317. },
  1318. {
  1319. "name": "OCS-APIRequest",
  1320. "in": "header",
  1321. "description": "Required to be true for the API request to pass",
  1322. "required": true,
  1323. "schema": {
  1324. "type": "boolean",
  1325. "default": true
  1326. }
  1327. }
  1328. ],
  1329. "responses": {
  1330. "200": {
  1331. "description": "Disabled users details returned",
  1332. "content": {
  1333. "application/json": {
  1334. "schema": {
  1335. "type": "object",
  1336. "required": [
  1337. "ocs"
  1338. ],
  1339. "properties": {
  1340. "ocs": {
  1341. "type": "object",
  1342. "required": [
  1343. "meta",
  1344. "data"
  1345. ],
  1346. "properties": {
  1347. "meta": {
  1348. "$ref": "#/components/schemas/OCSMeta"
  1349. },
  1350. "data": {
  1351. "type": "object",
  1352. "required": [
  1353. "users"
  1354. ],
  1355. "properties": {
  1356. "users": {
  1357. "type": "object",
  1358. "additionalProperties": {
  1359. "oneOf": [
  1360. {
  1361. "$ref": "#/components/schemas/UserDetails"
  1362. },
  1363. {
  1364. "type": "object",
  1365. "required": [
  1366. "id"
  1367. ],
  1368. "properties": {
  1369. "id": {
  1370. "type": "string"
  1371. }
  1372. }
  1373. }
  1374. ]
  1375. }
  1376. }
  1377. }
  1378. }
  1379. }
  1380. }
  1381. }
  1382. }
  1383. }
  1384. }
  1385. }
  1386. }
  1387. }
  1388. },
  1389. "/ocs/v2.php/cloud/users/search/by-phone": {
  1390. "post": {
  1391. "operationId": "users-search-by-phone-numbers",
  1392. "summary": "Search users by their phone numbers",
  1393. "tags": [
  1394. "users"
  1395. ],
  1396. "security": [
  1397. {
  1398. "bearer_auth": []
  1399. },
  1400. {
  1401. "basic_auth": []
  1402. }
  1403. ],
  1404. "parameters": [
  1405. {
  1406. "name": "location",
  1407. "in": "query",
  1408. "description": "Location of the phone number (for country code)",
  1409. "required": true,
  1410. "schema": {
  1411. "type": "string"
  1412. }
  1413. },
  1414. {
  1415. "name": "search",
  1416. "in": "query",
  1417. "description": "Phone numbers to search for",
  1418. "required": true,
  1419. "schema": {
  1420. "type": "string"
  1421. }
  1422. },
  1423. {
  1424. "name": "OCS-APIRequest",
  1425. "in": "header",
  1426. "description": "Required to be true for the API request to pass",
  1427. "required": true,
  1428. "schema": {
  1429. "type": "boolean",
  1430. "default": true
  1431. }
  1432. }
  1433. ],
  1434. "responses": {
  1435. "200": {
  1436. "description": "Users returned",
  1437. "content": {
  1438. "application/json": {
  1439. "schema": {
  1440. "type": "object",
  1441. "required": [
  1442. "ocs"
  1443. ],
  1444. "properties": {
  1445. "ocs": {
  1446. "type": "object",
  1447. "required": [
  1448. "meta",
  1449. "data"
  1450. ],
  1451. "properties": {
  1452. "meta": {
  1453. "$ref": "#/components/schemas/OCSMeta"
  1454. },
  1455. "data": {
  1456. "type": "object",
  1457. "additionalProperties": {
  1458. "type": "string"
  1459. }
  1460. }
  1461. }
  1462. }
  1463. }
  1464. }
  1465. }
  1466. }
  1467. },
  1468. "400": {
  1469. "description": "Invalid location",
  1470. "content": {
  1471. "application/json": {
  1472. "schema": {
  1473. "type": "object",
  1474. "required": [
  1475. "ocs"
  1476. ],
  1477. "properties": {
  1478. "ocs": {
  1479. "type": "object",
  1480. "required": [
  1481. "meta",
  1482. "data"
  1483. ],
  1484. "properties": {
  1485. "meta": {
  1486. "$ref": "#/components/schemas/OCSMeta"
  1487. },
  1488. "data": {}
  1489. }
  1490. }
  1491. }
  1492. }
  1493. }
  1494. }
  1495. }
  1496. }
  1497. }
  1498. },
  1499. "/ocs/v2.php/cloud/users/{userId}": {
  1500. "get": {
  1501. "operationId": "users-get-user",
  1502. "summary": "Get the details of a user",
  1503. "tags": [
  1504. "users"
  1505. ],
  1506. "security": [
  1507. {
  1508. "bearer_auth": []
  1509. },
  1510. {
  1511. "basic_auth": []
  1512. }
  1513. ],
  1514. "parameters": [
  1515. {
  1516. "name": "userId",
  1517. "in": "path",
  1518. "description": "ID of the user",
  1519. "required": true,
  1520. "schema": {
  1521. "type": "string"
  1522. }
  1523. },
  1524. {
  1525. "name": "OCS-APIRequest",
  1526. "in": "header",
  1527. "description": "Required to be true for the API request to pass",
  1528. "required": true,
  1529. "schema": {
  1530. "type": "boolean",
  1531. "default": true
  1532. }
  1533. }
  1534. ],
  1535. "responses": {
  1536. "200": {
  1537. "description": "User returned",
  1538. "content": {
  1539. "application/json": {
  1540. "schema": {
  1541. "type": "object",
  1542. "required": [
  1543. "ocs"
  1544. ],
  1545. "properties": {
  1546. "ocs": {
  1547. "type": "object",
  1548. "required": [
  1549. "meta",
  1550. "data"
  1551. ],
  1552. "properties": {
  1553. "meta": {
  1554. "$ref": "#/components/schemas/OCSMeta"
  1555. },
  1556. "data": {
  1557. "$ref": "#/components/schemas/UserDetails"
  1558. }
  1559. }
  1560. }
  1561. }
  1562. }
  1563. }
  1564. }
  1565. }
  1566. }
  1567. },
  1568. "put": {
  1569. "operationId": "users-edit-user",
  1570. "summary": "Update a value of the user's details",
  1571. "tags": [
  1572. "users"
  1573. ],
  1574. "security": [
  1575. {
  1576. "bearer_auth": []
  1577. },
  1578. {
  1579. "basic_auth": []
  1580. }
  1581. ],
  1582. "parameters": [
  1583. {
  1584. "name": "key",
  1585. "in": "query",
  1586. "description": "Key that will be updated",
  1587. "required": true,
  1588. "schema": {
  1589. "type": "string"
  1590. }
  1591. },
  1592. {
  1593. "name": "value",
  1594. "in": "query",
  1595. "description": "New value for the key",
  1596. "required": true,
  1597. "schema": {
  1598. "type": "string"
  1599. }
  1600. },
  1601. {
  1602. "name": "userId",
  1603. "in": "path",
  1604. "description": "ID of the user",
  1605. "required": true,
  1606. "schema": {
  1607. "type": "string"
  1608. }
  1609. },
  1610. {
  1611. "name": "OCS-APIRequest",
  1612. "in": "header",
  1613. "description": "Required to be true for the API request to pass",
  1614. "required": true,
  1615. "schema": {
  1616. "type": "boolean",
  1617. "default": true
  1618. }
  1619. }
  1620. ],
  1621. "responses": {
  1622. "200": {
  1623. "description": "User value edited successfully",
  1624. "content": {
  1625. "application/json": {
  1626. "schema": {
  1627. "type": "object",
  1628. "required": [
  1629. "ocs"
  1630. ],
  1631. "properties": {
  1632. "ocs": {
  1633. "type": "object",
  1634. "required": [
  1635. "meta",
  1636. "data"
  1637. ],
  1638. "properties": {
  1639. "meta": {
  1640. "$ref": "#/components/schemas/OCSMeta"
  1641. },
  1642. "data": {}
  1643. }
  1644. }
  1645. }
  1646. }
  1647. }
  1648. }
  1649. }
  1650. }
  1651. },
  1652. "delete": {
  1653. "operationId": "users-delete-user",
  1654. "summary": "Delete a user",
  1655. "tags": [
  1656. "users"
  1657. ],
  1658. "security": [
  1659. {
  1660. "bearer_auth": []
  1661. },
  1662. {
  1663. "basic_auth": []
  1664. }
  1665. ],
  1666. "parameters": [
  1667. {
  1668. "name": "userId",
  1669. "in": "path",
  1670. "description": "ID of the user",
  1671. "required": true,
  1672. "schema": {
  1673. "type": "string"
  1674. }
  1675. },
  1676. {
  1677. "name": "OCS-APIRequest",
  1678. "in": "header",
  1679. "description": "Required to be true for the API request to pass",
  1680. "required": true,
  1681. "schema": {
  1682. "type": "boolean",
  1683. "default": true
  1684. }
  1685. }
  1686. ],
  1687. "responses": {
  1688. "200": {
  1689. "description": "User deleted successfully",
  1690. "content": {
  1691. "application/json": {
  1692. "schema": {
  1693. "type": "object",
  1694. "required": [
  1695. "ocs"
  1696. ],
  1697. "properties": {
  1698. "ocs": {
  1699. "type": "object",
  1700. "required": [
  1701. "meta",
  1702. "data"
  1703. ],
  1704. "properties": {
  1705. "meta": {
  1706. "$ref": "#/components/schemas/OCSMeta"
  1707. },
  1708. "data": {}
  1709. }
  1710. }
  1711. }
  1712. }
  1713. }
  1714. }
  1715. }
  1716. }
  1717. }
  1718. },
  1719. "/ocs/v2.php/cloud/user": {
  1720. "get": {
  1721. "operationId": "users-get-current-user",
  1722. "summary": "Get the details of the current user",
  1723. "tags": [
  1724. "users"
  1725. ],
  1726. "security": [
  1727. {
  1728. "bearer_auth": []
  1729. },
  1730. {
  1731. "basic_auth": []
  1732. }
  1733. ],
  1734. "parameters": [
  1735. {
  1736. "name": "OCS-APIRequest",
  1737. "in": "header",
  1738. "description": "Required to be true for the API request to pass",
  1739. "required": true,
  1740. "schema": {
  1741. "type": "boolean",
  1742. "default": true
  1743. }
  1744. }
  1745. ],
  1746. "responses": {
  1747. "200": {
  1748. "description": "Current user returned",
  1749. "content": {
  1750. "application/json": {
  1751. "schema": {
  1752. "type": "object",
  1753. "required": [
  1754. "ocs"
  1755. ],
  1756. "properties": {
  1757. "ocs": {
  1758. "type": "object",
  1759. "required": [
  1760. "meta",
  1761. "data"
  1762. ],
  1763. "properties": {
  1764. "meta": {
  1765. "$ref": "#/components/schemas/OCSMeta"
  1766. },
  1767. "data": {
  1768. "$ref": "#/components/schemas/UserDetails"
  1769. }
  1770. }
  1771. }
  1772. }
  1773. }
  1774. }
  1775. }
  1776. }
  1777. }
  1778. }
  1779. },
  1780. "/ocs/v2.php/cloud/user/fields": {
  1781. "get": {
  1782. "operationId": "users-get-editable-fields",
  1783. "summary": "Get a list of fields that are editable for the current user",
  1784. "tags": [
  1785. "users"
  1786. ],
  1787. "security": [
  1788. {
  1789. "bearer_auth": []
  1790. },
  1791. {
  1792. "basic_auth": []
  1793. }
  1794. ],
  1795. "parameters": [
  1796. {
  1797. "name": "OCS-APIRequest",
  1798. "in": "header",
  1799. "description": "Required to be true for the API request to pass",
  1800. "required": true,
  1801. "schema": {
  1802. "type": "boolean",
  1803. "default": true
  1804. }
  1805. }
  1806. ],
  1807. "responses": {
  1808. "200": {
  1809. "description": "Editable fields returned",
  1810. "content": {
  1811. "application/json": {
  1812. "schema": {
  1813. "type": "object",
  1814. "required": [
  1815. "ocs"
  1816. ],
  1817. "properties": {
  1818. "ocs": {
  1819. "type": "object",
  1820. "required": [
  1821. "meta",
  1822. "data"
  1823. ],
  1824. "properties": {
  1825. "meta": {
  1826. "$ref": "#/components/schemas/OCSMeta"
  1827. },
  1828. "data": {
  1829. "type": "array",
  1830. "items": {
  1831. "type": "string"
  1832. }
  1833. }
  1834. }
  1835. }
  1836. }
  1837. }
  1838. }
  1839. }
  1840. }
  1841. }
  1842. }
  1843. },
  1844. "/ocs/v2.php/cloud/user/fields/{userId}": {
  1845. "get": {
  1846. "operationId": "users-get-editable-fields-for-user",
  1847. "summary": "Get a list of fields that are editable for a user",
  1848. "tags": [
  1849. "users"
  1850. ],
  1851. "security": [
  1852. {
  1853. "bearer_auth": []
  1854. },
  1855. {
  1856. "basic_auth": []
  1857. }
  1858. ],
  1859. "parameters": [
  1860. {
  1861. "name": "userId",
  1862. "in": "path",
  1863. "description": "ID of the user",
  1864. "required": true,
  1865. "schema": {
  1866. "type": "string"
  1867. }
  1868. },
  1869. {
  1870. "name": "OCS-APIRequest",
  1871. "in": "header",
  1872. "description": "Required to be true for the API request to pass",
  1873. "required": true,
  1874. "schema": {
  1875. "type": "boolean",
  1876. "default": true
  1877. }
  1878. }
  1879. ],
  1880. "responses": {
  1881. "200": {
  1882. "description": "Editable fields for user returned",
  1883. "content": {
  1884. "application/json": {
  1885. "schema": {
  1886. "type": "object",
  1887. "required": [
  1888. "ocs"
  1889. ],
  1890. "properties": {
  1891. "ocs": {
  1892. "type": "object",
  1893. "required": [
  1894. "meta",
  1895. "data"
  1896. ],
  1897. "properties": {
  1898. "meta": {
  1899. "$ref": "#/components/schemas/OCSMeta"
  1900. },
  1901. "data": {
  1902. "type": "array",
  1903. "items": {
  1904. "type": "string"
  1905. }
  1906. }
  1907. }
  1908. }
  1909. }
  1910. }
  1911. }
  1912. }
  1913. }
  1914. }
  1915. }
  1916. },
  1917. "/ocs/v2.php/cloud/users/{userId}/{collectionName}": {
  1918. "put": {
  1919. "operationId": "users-edit-user-multi-value",
  1920. "summary": "Update multiple values of the user's details",
  1921. "tags": [
  1922. "users"
  1923. ],
  1924. "security": [
  1925. {
  1926. "bearer_auth": []
  1927. },
  1928. {
  1929. "basic_auth": []
  1930. }
  1931. ],
  1932. "parameters": [
  1933. {
  1934. "name": "key",
  1935. "in": "query",
  1936. "description": "Key that will be updated",
  1937. "required": true,
  1938. "schema": {
  1939. "type": "string"
  1940. }
  1941. },
  1942. {
  1943. "name": "value",
  1944. "in": "query",
  1945. "description": "New value for the key",
  1946. "required": true,
  1947. "schema": {
  1948. "type": "string"
  1949. }
  1950. },
  1951. {
  1952. "name": "userId",
  1953. "in": "path",
  1954. "description": "ID of the user",
  1955. "required": true,
  1956. "schema": {
  1957. "type": "string"
  1958. }
  1959. },
  1960. {
  1961. "name": "collectionName",
  1962. "in": "path",
  1963. "description": "Collection to update",
  1964. "required": true,
  1965. "schema": {
  1966. "type": "string",
  1967. "pattern": "^(?!enable$|disable$)[a-zA-Z0-9_]*$"
  1968. }
  1969. },
  1970. {
  1971. "name": "OCS-APIRequest",
  1972. "in": "header",
  1973. "description": "Required to be true for the API request to pass",
  1974. "required": true,
  1975. "schema": {
  1976. "type": "boolean",
  1977. "default": true
  1978. }
  1979. }
  1980. ],
  1981. "responses": {
  1982. "200": {
  1983. "description": "User values edited successfully",
  1984. "content": {
  1985. "application/json": {
  1986. "schema": {
  1987. "type": "object",
  1988. "required": [
  1989. "ocs"
  1990. ],
  1991. "properties": {
  1992. "ocs": {
  1993. "type": "object",
  1994. "required": [
  1995. "meta",
  1996. "data"
  1997. ],
  1998. "properties": {
  1999. "meta": {
  2000. "$ref": "#/components/schemas/OCSMeta"
  2001. },
  2002. "data": {}
  2003. }
  2004. }
  2005. }
  2006. }
  2007. }
  2008. }
  2009. }
  2010. }
  2011. }
  2012. },
  2013. "/ocs/v2.php/cloud/users/{userId}/wipe": {
  2014. "post": {
  2015. "operationId": "users-wipe-user-devices",
  2016. "summary": "Wipe all devices of a user",
  2017. "tags": [
  2018. "users"
  2019. ],
  2020. "security": [
  2021. {
  2022. "bearer_auth": []
  2023. },
  2024. {
  2025. "basic_auth": []
  2026. }
  2027. ],
  2028. "parameters": [
  2029. {
  2030. "name": "userId",
  2031. "in": "path",
  2032. "description": "ID of the user",
  2033. "required": true,
  2034. "schema": {
  2035. "type": "string"
  2036. }
  2037. },
  2038. {
  2039. "name": "OCS-APIRequest",
  2040. "in": "header",
  2041. "description": "Required to be true for the API request to pass",
  2042. "required": true,
  2043. "schema": {
  2044. "type": "boolean",
  2045. "default": true
  2046. }
  2047. }
  2048. ],
  2049. "responses": {
  2050. "200": {
  2051. "description": "Wiped all user devices successfully",
  2052. "content": {
  2053. "application/json": {
  2054. "schema": {
  2055. "type": "object",
  2056. "required": [
  2057. "ocs"
  2058. ],
  2059. "properties": {
  2060. "ocs": {
  2061. "type": "object",
  2062. "required": [
  2063. "meta",
  2064. "data"
  2065. ],
  2066. "properties": {
  2067. "meta": {
  2068. "$ref": "#/components/schemas/OCSMeta"
  2069. },
  2070. "data": {}
  2071. }
  2072. }
  2073. }
  2074. }
  2075. }
  2076. }
  2077. }
  2078. }
  2079. }
  2080. },
  2081. "/ocs/v2.php/cloud/users/{userId}/enable": {
  2082. "put": {
  2083. "operationId": "users-enable-user",
  2084. "summary": "Enable a user",
  2085. "tags": [
  2086. "users"
  2087. ],
  2088. "security": [
  2089. {
  2090. "bearer_auth": []
  2091. },
  2092. {
  2093. "basic_auth": []
  2094. }
  2095. ],
  2096. "parameters": [
  2097. {
  2098. "name": "userId",
  2099. "in": "path",
  2100. "description": "ID of the user",
  2101. "required": true,
  2102. "schema": {
  2103. "type": "string"
  2104. }
  2105. },
  2106. {
  2107. "name": "OCS-APIRequest",
  2108. "in": "header",
  2109. "description": "Required to be true for the API request to pass",
  2110. "required": true,
  2111. "schema": {
  2112. "type": "boolean",
  2113. "default": true
  2114. }
  2115. }
  2116. ],
  2117. "responses": {
  2118. "200": {
  2119. "description": "User enabled successfully",
  2120. "content": {
  2121. "application/json": {
  2122. "schema": {
  2123. "type": "object",
  2124. "required": [
  2125. "ocs"
  2126. ],
  2127. "properties": {
  2128. "ocs": {
  2129. "type": "object",
  2130. "required": [
  2131. "meta",
  2132. "data"
  2133. ],
  2134. "properties": {
  2135. "meta": {
  2136. "$ref": "#/components/schemas/OCSMeta"
  2137. },
  2138. "data": {}
  2139. }
  2140. }
  2141. }
  2142. }
  2143. }
  2144. }
  2145. }
  2146. }
  2147. }
  2148. },
  2149. "/ocs/v2.php/cloud/users/{userId}/disable": {
  2150. "put": {
  2151. "operationId": "users-disable-user",
  2152. "summary": "Disable a user",
  2153. "tags": [
  2154. "users"
  2155. ],
  2156. "security": [
  2157. {
  2158. "bearer_auth": []
  2159. },
  2160. {
  2161. "basic_auth": []
  2162. }
  2163. ],
  2164. "parameters": [
  2165. {
  2166. "name": "userId",
  2167. "in": "path",
  2168. "description": "ID of the user",
  2169. "required": true,
  2170. "schema": {
  2171. "type": "string"
  2172. }
  2173. },
  2174. {
  2175. "name": "OCS-APIRequest",
  2176. "in": "header",
  2177. "description": "Required to be true for the API request to pass",
  2178. "required": true,
  2179. "schema": {
  2180. "type": "boolean",
  2181. "default": true
  2182. }
  2183. }
  2184. ],
  2185. "responses": {
  2186. "200": {
  2187. "description": "User disabled successfully",
  2188. "content": {
  2189. "application/json": {
  2190. "schema": {
  2191. "type": "object",
  2192. "required": [
  2193. "ocs"
  2194. ],
  2195. "properties": {
  2196. "ocs": {
  2197. "type": "object",
  2198. "required": [
  2199. "meta",
  2200. "data"
  2201. ],
  2202. "properties": {
  2203. "meta": {
  2204. "$ref": "#/components/schemas/OCSMeta"
  2205. },
  2206. "data": {}
  2207. }
  2208. }
  2209. }
  2210. }
  2211. }
  2212. }
  2213. }
  2214. }
  2215. }
  2216. },
  2217. "/ocs/v2.php/cloud/users/{userId}/groups": {
  2218. "get": {
  2219. "operationId": "users-get-users-groups",
  2220. "summary": "Get a list of groups the user belongs to",
  2221. "tags": [
  2222. "users"
  2223. ],
  2224. "security": [
  2225. {
  2226. "bearer_auth": []
  2227. },
  2228. {
  2229. "basic_auth": []
  2230. }
  2231. ],
  2232. "parameters": [
  2233. {
  2234. "name": "userId",
  2235. "in": "path",
  2236. "description": "ID of the user",
  2237. "required": true,
  2238. "schema": {
  2239. "type": "string"
  2240. }
  2241. },
  2242. {
  2243. "name": "OCS-APIRequest",
  2244. "in": "header",
  2245. "description": "Required to be true for the API request to pass",
  2246. "required": true,
  2247. "schema": {
  2248. "type": "boolean",
  2249. "default": true
  2250. }
  2251. }
  2252. ],
  2253. "responses": {
  2254. "200": {
  2255. "description": "Users groups returned",
  2256. "content": {
  2257. "application/json": {
  2258. "schema": {
  2259. "type": "object",
  2260. "required": [
  2261. "ocs"
  2262. ],
  2263. "properties": {
  2264. "ocs": {
  2265. "type": "object",
  2266. "required": [
  2267. "meta",
  2268. "data"
  2269. ],
  2270. "properties": {
  2271. "meta": {
  2272. "$ref": "#/components/schemas/OCSMeta"
  2273. },
  2274. "data": {
  2275. "type": "object",
  2276. "required": [
  2277. "groups"
  2278. ],
  2279. "properties": {
  2280. "groups": {
  2281. "type": "array",
  2282. "items": {
  2283. "type": "string"
  2284. }
  2285. }
  2286. }
  2287. }
  2288. }
  2289. }
  2290. }
  2291. }
  2292. }
  2293. }
  2294. }
  2295. }
  2296. },
  2297. "post": {
  2298. "operationId": "users-add-to-group",
  2299. "summary": "Add a user to a group",
  2300. "tags": [
  2301. "users"
  2302. ],
  2303. "security": [
  2304. {
  2305. "bearer_auth": []
  2306. },
  2307. {
  2308. "basic_auth": []
  2309. }
  2310. ],
  2311. "parameters": [
  2312. {
  2313. "name": "groupid",
  2314. "in": "query",
  2315. "description": "ID of the group",
  2316. "schema": {
  2317. "type": "string",
  2318. "default": ""
  2319. }
  2320. },
  2321. {
  2322. "name": "userId",
  2323. "in": "path",
  2324. "description": "ID of the user",
  2325. "required": true,
  2326. "schema": {
  2327. "type": "string"
  2328. }
  2329. },
  2330. {
  2331. "name": "OCS-APIRequest",
  2332. "in": "header",
  2333. "description": "Required to be true for the API request to pass",
  2334. "required": true,
  2335. "schema": {
  2336. "type": "boolean",
  2337. "default": true
  2338. }
  2339. }
  2340. ],
  2341. "responses": {
  2342. "200": {
  2343. "description": "User added to group successfully",
  2344. "content": {
  2345. "application/json": {
  2346. "schema": {
  2347. "type": "object",
  2348. "required": [
  2349. "ocs"
  2350. ],
  2351. "properties": {
  2352. "ocs": {
  2353. "type": "object",
  2354. "required": [
  2355. "meta",
  2356. "data"
  2357. ],
  2358. "properties": {
  2359. "meta": {
  2360. "$ref": "#/components/schemas/OCSMeta"
  2361. },
  2362. "data": {}
  2363. }
  2364. }
  2365. }
  2366. }
  2367. }
  2368. }
  2369. }
  2370. }
  2371. },
  2372. "delete": {
  2373. "operationId": "users-remove-from-group",
  2374. "summary": "Remove a user from a group",
  2375. "tags": [
  2376. "users"
  2377. ],
  2378. "security": [
  2379. {
  2380. "bearer_auth": []
  2381. },
  2382. {
  2383. "basic_auth": []
  2384. }
  2385. ],
  2386. "parameters": [
  2387. {
  2388. "name": "groupid",
  2389. "in": "query",
  2390. "description": "ID of the group",
  2391. "required": true,
  2392. "schema": {
  2393. "type": "string"
  2394. }
  2395. },
  2396. {
  2397. "name": "userId",
  2398. "in": "path",
  2399. "description": "ID of the user",
  2400. "required": true,
  2401. "schema": {
  2402. "type": "string"
  2403. }
  2404. },
  2405. {
  2406. "name": "OCS-APIRequest",
  2407. "in": "header",
  2408. "description": "Required to be true for the API request to pass",
  2409. "required": true,
  2410. "schema": {
  2411. "type": "boolean",
  2412. "default": true
  2413. }
  2414. }
  2415. ],
  2416. "responses": {
  2417. "200": {
  2418. "description": "User removed from group successfully",
  2419. "content": {
  2420. "application/json": {
  2421. "schema": {
  2422. "type": "object",
  2423. "required": [
  2424. "ocs"
  2425. ],
  2426. "properties": {
  2427. "ocs": {
  2428. "type": "object",
  2429. "required": [
  2430. "meta",
  2431. "data"
  2432. ],
  2433. "properties": {
  2434. "meta": {
  2435. "$ref": "#/components/schemas/OCSMeta"
  2436. },
  2437. "data": {}
  2438. }
  2439. }
  2440. }
  2441. }
  2442. }
  2443. }
  2444. }
  2445. }
  2446. }
  2447. },
  2448. "/ocs/v2.php/cloud/users/{userId}/welcome": {
  2449. "post": {
  2450. "operationId": "users-resend-welcome-message",
  2451. "summary": "Resend the welcome message",
  2452. "tags": [
  2453. "users"
  2454. ],
  2455. "security": [
  2456. {
  2457. "bearer_auth": []
  2458. },
  2459. {
  2460. "basic_auth": []
  2461. }
  2462. ],
  2463. "parameters": [
  2464. {
  2465. "name": "userId",
  2466. "in": "path",
  2467. "description": "ID if the user",
  2468. "required": true,
  2469. "schema": {
  2470. "type": "string"
  2471. }
  2472. },
  2473. {
  2474. "name": "OCS-APIRequest",
  2475. "in": "header",
  2476. "description": "Required to be true for the API request to pass",
  2477. "required": true,
  2478. "schema": {
  2479. "type": "boolean",
  2480. "default": true
  2481. }
  2482. }
  2483. ],
  2484. "responses": {
  2485. "200": {
  2486. "description": "Resent welcome message successfully",
  2487. "content": {
  2488. "application/json": {
  2489. "schema": {
  2490. "type": "object",
  2491. "required": [
  2492. "ocs"
  2493. ],
  2494. "properties": {
  2495. "ocs": {
  2496. "type": "object",
  2497. "required": [
  2498. "meta",
  2499. "data"
  2500. ],
  2501. "properties": {
  2502. "meta": {
  2503. "$ref": "#/components/schemas/OCSMeta"
  2504. },
  2505. "data": {}
  2506. }
  2507. }
  2508. }
  2509. }
  2510. }
  2511. }
  2512. }
  2513. }
  2514. }
  2515. },
  2516. "/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}": {
  2517. "post": {
  2518. "operationId": "app_config-set-value",
  2519. "summary": "Update the config value of an app",
  2520. "tags": [
  2521. "app_config"
  2522. ],
  2523. "security": [
  2524. {
  2525. "bearer_auth": []
  2526. },
  2527. {
  2528. "basic_auth": []
  2529. }
  2530. ],
  2531. "parameters": [
  2532. {
  2533. "name": "value",
  2534. "in": "query",
  2535. "description": "New value for the key",
  2536. "required": true,
  2537. "schema": {
  2538. "type": "string"
  2539. }
  2540. },
  2541. {
  2542. "name": "app",
  2543. "in": "path",
  2544. "description": "ID of the app",
  2545. "required": true,
  2546. "schema": {
  2547. "type": "string"
  2548. }
  2549. },
  2550. {
  2551. "name": "key",
  2552. "in": "path",
  2553. "description": "Key to update",
  2554. "required": true,
  2555. "schema": {
  2556. "type": "string"
  2557. }
  2558. },
  2559. {
  2560. "name": "OCS-APIRequest",
  2561. "in": "header",
  2562. "description": "Required to be true for the API request to pass",
  2563. "required": true,
  2564. "schema": {
  2565. "type": "boolean",
  2566. "default": true
  2567. }
  2568. }
  2569. ],
  2570. "responses": {
  2571. "200": {
  2572. "description": "Value updated successfully",
  2573. "content": {
  2574. "application/json": {
  2575. "schema": {
  2576. "type": "object",
  2577. "required": [
  2578. "ocs"
  2579. ],
  2580. "properties": {
  2581. "ocs": {
  2582. "type": "object",
  2583. "required": [
  2584. "meta",
  2585. "data"
  2586. ],
  2587. "properties": {
  2588. "meta": {
  2589. "$ref": "#/components/schemas/OCSMeta"
  2590. },
  2591. "data": {}
  2592. }
  2593. }
  2594. }
  2595. }
  2596. }
  2597. }
  2598. },
  2599. "403": {
  2600. "description": "App or key is not allowed",
  2601. "content": {
  2602. "application/json": {
  2603. "schema": {
  2604. "type": "object",
  2605. "required": [
  2606. "ocs"
  2607. ],
  2608. "properties": {
  2609. "ocs": {
  2610. "type": "object",
  2611. "required": [
  2612. "meta",
  2613. "data"
  2614. ],
  2615. "properties": {
  2616. "meta": {
  2617. "$ref": "#/components/schemas/OCSMeta"
  2618. },
  2619. "data": {
  2620. "type": "object",
  2621. "required": [
  2622. "data"
  2623. ],
  2624. "properties": {
  2625. "data": {
  2626. "type": "object",
  2627. "required": [
  2628. "message"
  2629. ],
  2630. "properties": {
  2631. "message": {
  2632. "type": "string"
  2633. }
  2634. }
  2635. }
  2636. }
  2637. }
  2638. }
  2639. }
  2640. }
  2641. }
  2642. }
  2643. }
  2644. }
  2645. }
  2646. }
  2647. },
  2648. "/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}": {
  2649. "post": {
  2650. "operationId": "preferences-set-preference",
  2651. "summary": "Update a preference value of an app",
  2652. "tags": [
  2653. "preferences"
  2654. ],
  2655. "security": [
  2656. {
  2657. "bearer_auth": []
  2658. },
  2659. {
  2660. "basic_auth": []
  2661. }
  2662. ],
  2663. "parameters": [
  2664. {
  2665. "name": "configValue",
  2666. "in": "query",
  2667. "description": "New value",
  2668. "required": true,
  2669. "schema": {
  2670. "type": "string"
  2671. }
  2672. },
  2673. {
  2674. "name": "appId",
  2675. "in": "path",
  2676. "description": "ID of the app",
  2677. "required": true,
  2678. "schema": {
  2679. "type": "string"
  2680. }
  2681. },
  2682. {
  2683. "name": "configKey",
  2684. "in": "path",
  2685. "description": "Key of the preference",
  2686. "required": true,
  2687. "schema": {
  2688. "type": "string"
  2689. }
  2690. },
  2691. {
  2692. "name": "OCS-APIRequest",
  2693. "in": "header",
  2694. "description": "Required to be true for the API request to pass",
  2695. "required": true,
  2696. "schema": {
  2697. "type": "boolean",
  2698. "default": true
  2699. }
  2700. }
  2701. ],
  2702. "responses": {
  2703. "200": {
  2704. "description": "Preference updated successfully",
  2705. "content": {
  2706. "application/json": {
  2707. "schema": {
  2708. "type": "object",
  2709. "required": [
  2710. "ocs"
  2711. ],
  2712. "properties": {
  2713. "ocs": {
  2714. "type": "object",
  2715. "required": [
  2716. "meta",
  2717. "data"
  2718. ],
  2719. "properties": {
  2720. "meta": {
  2721. "$ref": "#/components/schemas/OCSMeta"
  2722. },
  2723. "data": {}
  2724. }
  2725. }
  2726. }
  2727. }
  2728. }
  2729. }
  2730. },
  2731. "400": {
  2732. "description": "Preference invalid",
  2733. "content": {
  2734. "application/json": {
  2735. "schema": {
  2736. "type": "object",
  2737. "required": [
  2738. "ocs"
  2739. ],
  2740. "properties": {
  2741. "ocs": {
  2742. "type": "object",
  2743. "required": [
  2744. "meta",
  2745. "data"
  2746. ],
  2747. "properties": {
  2748. "meta": {
  2749. "$ref": "#/components/schemas/OCSMeta"
  2750. },
  2751. "data": {}
  2752. }
  2753. }
  2754. }
  2755. }
  2756. }
  2757. }
  2758. }
  2759. }
  2760. },
  2761. "delete": {
  2762. "operationId": "preferences-delete-preference",
  2763. "summary": "Delete a preference for an app",
  2764. "tags": [
  2765. "preferences"
  2766. ],
  2767. "security": [
  2768. {
  2769. "bearer_auth": []
  2770. },
  2771. {
  2772. "basic_auth": []
  2773. }
  2774. ],
  2775. "parameters": [
  2776. {
  2777. "name": "appId",
  2778. "in": "path",
  2779. "description": "ID of the app",
  2780. "required": true,
  2781. "schema": {
  2782. "type": "string"
  2783. }
  2784. },
  2785. {
  2786. "name": "configKey",
  2787. "in": "path",
  2788. "description": "Key to delete",
  2789. "required": true,
  2790. "schema": {
  2791. "type": "string"
  2792. }
  2793. },
  2794. {
  2795. "name": "OCS-APIRequest",
  2796. "in": "header",
  2797. "description": "Required to be true for the API request to pass",
  2798. "required": true,
  2799. "schema": {
  2800. "type": "boolean",
  2801. "default": true
  2802. }
  2803. }
  2804. ],
  2805. "responses": {
  2806. "200": {
  2807. "description": "Preference deleted successfully",
  2808. "content": {
  2809. "application/json": {
  2810. "schema": {
  2811. "type": "object",
  2812. "required": [
  2813. "ocs"
  2814. ],
  2815. "properties": {
  2816. "ocs": {
  2817. "type": "object",
  2818. "required": [
  2819. "meta",
  2820. "data"
  2821. ],
  2822. "properties": {
  2823. "meta": {
  2824. "$ref": "#/components/schemas/OCSMeta"
  2825. },
  2826. "data": {}
  2827. }
  2828. }
  2829. }
  2830. }
  2831. }
  2832. }
  2833. },
  2834. "400": {
  2835. "description": "Preference invalid",
  2836. "content": {
  2837. "application/json": {
  2838. "schema": {
  2839. "type": "object",
  2840. "required": [
  2841. "ocs"
  2842. ],
  2843. "properties": {
  2844. "ocs": {
  2845. "type": "object",
  2846. "required": [
  2847. "meta",
  2848. "data"
  2849. ],
  2850. "properties": {
  2851. "meta": {
  2852. "$ref": "#/components/schemas/OCSMeta"
  2853. },
  2854. "data": {}
  2855. }
  2856. }
  2857. }
  2858. }
  2859. }
  2860. }
  2861. }
  2862. }
  2863. }
  2864. },
  2865. "/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}": {
  2866. "post": {
  2867. "operationId": "preferences-set-multiple-preferences",
  2868. "summary": "Update multiple preference values of an app",
  2869. "tags": [
  2870. "preferences"
  2871. ],
  2872. "security": [
  2873. {
  2874. "bearer_auth": []
  2875. },
  2876. {
  2877. "basic_auth": []
  2878. }
  2879. ],
  2880. "parameters": [
  2881. {
  2882. "name": "configs",
  2883. "in": "query",
  2884. "description": "Key-value pairs of the preferences",
  2885. "required": true,
  2886. "schema": {
  2887. "type": "string"
  2888. }
  2889. },
  2890. {
  2891. "name": "appId",
  2892. "in": "path",
  2893. "description": "ID of the app",
  2894. "required": true,
  2895. "schema": {
  2896. "type": "string"
  2897. }
  2898. },
  2899. {
  2900. "name": "OCS-APIRequest",
  2901. "in": "header",
  2902. "description": "Required to be true for the API request to pass",
  2903. "required": true,
  2904. "schema": {
  2905. "type": "boolean",
  2906. "default": true
  2907. }
  2908. }
  2909. ],
  2910. "responses": {
  2911. "200": {
  2912. "description": "Preferences updated successfully",
  2913. "content": {
  2914. "application/json": {
  2915. "schema": {
  2916. "type": "object",
  2917. "required": [
  2918. "ocs"
  2919. ],
  2920. "properties": {
  2921. "ocs": {
  2922. "type": "object",
  2923. "required": [
  2924. "meta",
  2925. "data"
  2926. ],
  2927. "properties": {
  2928. "meta": {
  2929. "$ref": "#/components/schemas/OCSMeta"
  2930. },
  2931. "data": {}
  2932. }
  2933. }
  2934. }
  2935. }
  2936. }
  2937. }
  2938. },
  2939. "400": {
  2940. "description": "Preference invalid",
  2941. "content": {
  2942. "application/json": {
  2943. "schema": {
  2944. "type": "object",
  2945. "required": [
  2946. "ocs"
  2947. ],
  2948. "properties": {
  2949. "ocs": {
  2950. "type": "object",
  2951. "required": [
  2952. "meta",
  2953. "data"
  2954. ],
  2955. "properties": {
  2956. "meta": {
  2957. "$ref": "#/components/schemas/OCSMeta"
  2958. },
  2959. "data": {}
  2960. }
  2961. }
  2962. }
  2963. }
  2964. }
  2965. }
  2966. }
  2967. }
  2968. },
  2969. "delete": {
  2970. "operationId": "preferences-delete-multiple-preference",
  2971. "summary": "Delete multiple preferences for an app",
  2972. "tags": [
  2973. "preferences"
  2974. ],
  2975. "security": [
  2976. {
  2977. "bearer_auth": []
  2978. },
  2979. {
  2980. "basic_auth": []
  2981. }
  2982. ],
  2983. "parameters": [
  2984. {
  2985. "name": "configKeys[]",
  2986. "in": "query",
  2987. "description": "Keys to delete",
  2988. "required": true,
  2989. "schema": {
  2990. "type": "array",
  2991. "items": {
  2992. "type": "string"
  2993. }
  2994. }
  2995. },
  2996. {
  2997. "name": "appId",
  2998. "in": "path",
  2999. "description": "ID of the app",
  3000. "required": true,
  3001. "schema": {
  3002. "type": "string"
  3003. }
  3004. },
  3005. {
  3006. "name": "OCS-APIRequest",
  3007. "in": "header",
  3008. "description": "Required to be true for the API request to pass",
  3009. "required": true,
  3010. "schema": {
  3011. "type": "boolean",
  3012. "default": true
  3013. }
  3014. }
  3015. ],
  3016. "responses": {
  3017. "200": {
  3018. "description": "Preferences deleted successfully",
  3019. "content": {
  3020. "application/json": {
  3021. "schema": {
  3022. "type": "object",
  3023. "required": [
  3024. "ocs"
  3025. ],
  3026. "properties": {
  3027. "ocs": {
  3028. "type": "object",
  3029. "required": [
  3030. "meta",
  3031. "data"
  3032. ],
  3033. "properties": {
  3034. "meta": {
  3035. "$ref": "#/components/schemas/OCSMeta"
  3036. },
  3037. "data": {}
  3038. }
  3039. }
  3040. }
  3041. }
  3042. }
  3043. }
  3044. },
  3045. "400": {
  3046. "description": "Preference invalid",
  3047. "content": {
  3048. "application/json": {
  3049. "schema": {
  3050. "type": "object",
  3051. "required": [
  3052. "ocs"
  3053. ],
  3054. "properties": {
  3055. "ocs": {
  3056. "type": "object",
  3057. "required": [
  3058. "meta",
  3059. "data"
  3060. ],
  3061. "properties": {
  3062. "meta": {
  3063. "$ref": "#/components/schemas/OCSMeta"
  3064. },
  3065. "data": {}
  3066. }
  3067. }
  3068. }
  3069. }
  3070. }
  3071. }
  3072. }
  3073. }
  3074. }
  3075. }
  3076. },
  3077. "tags": []
  3078. }