openapi.json 133 KB

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