openapi.json 132 KB

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