You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openapi.json 128KB

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