1
0

openapi.json 129 KB

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