openapi.json 135 KB

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