1
0

openapi.json 156 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "files_sharing",
  5. "version": "0.0.1",
  6. "description": "File sharing",
  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. "files_sharing"
  27. ],
  28. "properties": {
  29. "files_sharing": {
  30. "type": "object",
  31. "required": [
  32. "api_enabled",
  33. "public",
  34. "user",
  35. "resharing",
  36. "federation",
  37. "sharee"
  38. ],
  39. "properties": {
  40. "api_enabled": {
  41. "type": "boolean"
  42. },
  43. "public": {
  44. "type": "object",
  45. "required": [
  46. "enabled"
  47. ],
  48. "properties": {
  49. "enabled": {
  50. "type": "boolean"
  51. },
  52. "password": {
  53. "type": "object",
  54. "required": [
  55. "enforced",
  56. "askForOptionalPassword"
  57. ],
  58. "properties": {
  59. "enforced": {
  60. "type": "boolean"
  61. },
  62. "askForOptionalPassword": {
  63. "type": "boolean"
  64. }
  65. }
  66. },
  67. "multiple_links": {
  68. "type": "boolean"
  69. },
  70. "expire_date": {
  71. "type": "object",
  72. "required": [
  73. "enabled"
  74. ],
  75. "properties": {
  76. "enabled": {
  77. "type": "boolean"
  78. },
  79. "days": {
  80. "type": "integer",
  81. "format": "int64"
  82. },
  83. "enforced": {
  84. "type": "boolean"
  85. }
  86. }
  87. },
  88. "expire_date_internal": {
  89. "type": "object",
  90. "required": [
  91. "enabled"
  92. ],
  93. "properties": {
  94. "enabled": {
  95. "type": "boolean"
  96. },
  97. "days": {
  98. "type": "integer",
  99. "format": "int64"
  100. },
  101. "enforced": {
  102. "type": "boolean"
  103. }
  104. }
  105. },
  106. "expire_date_remote": {
  107. "type": "object",
  108. "required": [
  109. "enabled"
  110. ],
  111. "properties": {
  112. "enabled": {
  113. "type": "boolean"
  114. },
  115. "days": {
  116. "type": "integer",
  117. "format": "int64"
  118. },
  119. "enforced": {
  120. "type": "boolean"
  121. }
  122. }
  123. },
  124. "send_mail": {
  125. "type": "boolean"
  126. },
  127. "upload": {
  128. "type": "boolean"
  129. },
  130. "upload_files_drop": {
  131. "type": "boolean"
  132. }
  133. }
  134. },
  135. "user": {
  136. "type": "object",
  137. "required": [
  138. "send_mail"
  139. ],
  140. "properties": {
  141. "send_mail": {
  142. "type": "boolean"
  143. },
  144. "expire_date": {
  145. "type": "object",
  146. "required": [
  147. "enabled"
  148. ],
  149. "properties": {
  150. "enabled": {
  151. "type": "boolean"
  152. }
  153. }
  154. }
  155. }
  156. },
  157. "resharing": {
  158. "type": "boolean"
  159. },
  160. "group_sharing": {
  161. "type": "boolean"
  162. },
  163. "group": {
  164. "type": "object",
  165. "required": [
  166. "enabled"
  167. ],
  168. "properties": {
  169. "enabled": {
  170. "type": "boolean"
  171. },
  172. "expire_date": {
  173. "type": "object",
  174. "required": [
  175. "enabled"
  176. ],
  177. "properties": {
  178. "enabled": {
  179. "type": "boolean"
  180. }
  181. }
  182. }
  183. }
  184. },
  185. "default_permissions": {
  186. "type": "integer",
  187. "format": "int64"
  188. },
  189. "federation": {
  190. "type": "object",
  191. "required": [
  192. "outgoing",
  193. "incoming",
  194. "expire_date",
  195. "expire_date_supported"
  196. ],
  197. "properties": {
  198. "outgoing": {
  199. "type": "boolean"
  200. },
  201. "incoming": {
  202. "type": "boolean"
  203. },
  204. "expire_date": {
  205. "type": "object",
  206. "required": [
  207. "enabled"
  208. ],
  209. "properties": {
  210. "enabled": {
  211. "type": "boolean"
  212. }
  213. }
  214. },
  215. "expire_date_supported": {
  216. "type": "object",
  217. "required": [
  218. "enabled"
  219. ],
  220. "properties": {
  221. "enabled": {
  222. "type": "boolean"
  223. }
  224. }
  225. }
  226. }
  227. },
  228. "sharee": {
  229. "type": "object",
  230. "required": [
  231. "query_lookup_default",
  232. "always_show_unique"
  233. ],
  234. "properties": {
  235. "query_lookup_default": {
  236. "type": "boolean"
  237. },
  238. "always_show_unique": {
  239. "type": "boolean"
  240. }
  241. }
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "DeletedShare": {
  248. "type": "object",
  249. "required": [
  250. "id",
  251. "share_type",
  252. "uid_owner",
  253. "displayname_owner",
  254. "permissions",
  255. "stime",
  256. "uid_file_owner",
  257. "displayname_file_owner",
  258. "path",
  259. "item_type",
  260. "mimetype",
  261. "storage",
  262. "item_source",
  263. "file_source",
  264. "file_parent",
  265. "file_target",
  266. "expiration",
  267. "share_with",
  268. "share_with_displayname",
  269. "share_with_link"
  270. ],
  271. "properties": {
  272. "id": {
  273. "type": "string"
  274. },
  275. "share_type": {
  276. "type": "integer",
  277. "format": "int64"
  278. },
  279. "uid_owner": {
  280. "type": "string"
  281. },
  282. "displayname_owner": {
  283. "type": "string"
  284. },
  285. "permissions": {
  286. "type": "integer",
  287. "format": "int64"
  288. },
  289. "stime": {
  290. "type": "integer",
  291. "format": "int64"
  292. },
  293. "uid_file_owner": {
  294. "type": "string"
  295. },
  296. "displayname_file_owner": {
  297. "type": "string"
  298. },
  299. "path": {
  300. "type": "string"
  301. },
  302. "item_type": {
  303. "type": "string"
  304. },
  305. "mimetype": {
  306. "type": "string"
  307. },
  308. "storage": {
  309. "type": "integer",
  310. "format": "int64"
  311. },
  312. "item_source": {
  313. "type": "integer",
  314. "format": "int64"
  315. },
  316. "file_source": {
  317. "type": "integer",
  318. "format": "int64"
  319. },
  320. "file_parent": {
  321. "type": "integer",
  322. "format": "int64"
  323. },
  324. "file_target": {
  325. "type": "integer",
  326. "format": "int64"
  327. },
  328. "expiration": {
  329. "type": "string",
  330. "nullable": true
  331. },
  332. "share_with": {
  333. "type": "string",
  334. "nullable": true
  335. },
  336. "share_with_displayname": {
  337. "type": "string",
  338. "nullable": true
  339. },
  340. "share_with_link": {
  341. "type": "string",
  342. "nullable": true
  343. }
  344. }
  345. },
  346. "Lookup": {
  347. "type": "object",
  348. "required": [
  349. "value",
  350. "verified"
  351. ],
  352. "properties": {
  353. "value": {
  354. "type": "string"
  355. },
  356. "verified": {
  357. "type": "integer",
  358. "format": "int64"
  359. }
  360. }
  361. },
  362. "OCSMeta": {
  363. "type": "object",
  364. "required": [
  365. "status",
  366. "statuscode"
  367. ],
  368. "properties": {
  369. "status": {
  370. "type": "string"
  371. },
  372. "statuscode": {
  373. "type": "integer"
  374. },
  375. "message": {
  376. "type": "string"
  377. },
  378. "totalitems": {
  379. "type": "string"
  380. },
  381. "itemsperpage": {
  382. "type": "string"
  383. }
  384. }
  385. },
  386. "RemoteShare": {
  387. "type": "object",
  388. "required": [
  389. "accepted",
  390. "file_id",
  391. "id",
  392. "mimetype",
  393. "mountpoint",
  394. "mtime",
  395. "name",
  396. "owner",
  397. "parent",
  398. "permissions",
  399. "remote",
  400. "remote_id",
  401. "share_token",
  402. "share_type",
  403. "type",
  404. "user"
  405. ],
  406. "properties": {
  407. "accepted": {
  408. "type": "boolean"
  409. },
  410. "file_id": {
  411. "type": "integer",
  412. "format": "int64",
  413. "nullable": true
  414. },
  415. "id": {
  416. "type": "integer",
  417. "format": "int64"
  418. },
  419. "mimetype": {
  420. "type": "string",
  421. "nullable": true
  422. },
  423. "mountpoint": {
  424. "type": "string"
  425. },
  426. "mtime": {
  427. "type": "integer",
  428. "format": "int64",
  429. "nullable": true
  430. },
  431. "name": {
  432. "type": "string"
  433. },
  434. "owner": {
  435. "type": "string"
  436. },
  437. "parent": {
  438. "type": "integer",
  439. "format": "int64",
  440. "nullable": true
  441. },
  442. "permissions": {
  443. "type": "integer",
  444. "format": "int64",
  445. "nullable": true
  446. },
  447. "remote": {
  448. "type": "string"
  449. },
  450. "remote_id": {
  451. "type": "string"
  452. },
  453. "share_token": {
  454. "type": "string"
  455. },
  456. "share_type": {
  457. "type": "integer",
  458. "format": "int64"
  459. },
  460. "type": {
  461. "type": "string",
  462. "nullable": true
  463. },
  464. "user": {
  465. "type": "string"
  466. }
  467. }
  468. },
  469. "Share": {
  470. "type": "object",
  471. "required": [
  472. "attributes",
  473. "can_delete",
  474. "can_edit",
  475. "displayname_file_owner",
  476. "displayname_owner",
  477. "expiration",
  478. "file_parent",
  479. "file_source",
  480. "file_target",
  481. "has_preview",
  482. "hide_download",
  483. "is-mount-root",
  484. "id",
  485. "item_mtime",
  486. "item_size",
  487. "item_source",
  488. "item_type",
  489. "label",
  490. "mail_send",
  491. "mimetype",
  492. "mount-type",
  493. "note",
  494. "parent",
  495. "path",
  496. "permissions",
  497. "share_type",
  498. "stime",
  499. "storage",
  500. "storage_id",
  501. "token",
  502. "uid_file_owner",
  503. "uid_owner"
  504. ],
  505. "properties": {
  506. "attributes": {
  507. "type": "string",
  508. "nullable": true
  509. },
  510. "can_delete": {
  511. "type": "boolean"
  512. },
  513. "can_edit": {
  514. "type": "boolean"
  515. },
  516. "displayname_file_owner": {
  517. "type": "string"
  518. },
  519. "displayname_owner": {
  520. "type": "string"
  521. },
  522. "expiration": {
  523. "type": "string",
  524. "nullable": true
  525. },
  526. "file_parent": {
  527. "type": "integer",
  528. "format": "int64"
  529. },
  530. "file_source": {
  531. "type": "integer",
  532. "format": "int64"
  533. },
  534. "file_target": {
  535. "type": "string"
  536. },
  537. "has_preview": {
  538. "type": "boolean"
  539. },
  540. "hide_download": {
  541. "type": "integer",
  542. "format": "int64",
  543. "enum": [
  544. 0,
  545. 1
  546. ]
  547. },
  548. "is-mount-root": {
  549. "type": "boolean"
  550. },
  551. "id": {
  552. "type": "string"
  553. },
  554. "item_mtime": {
  555. "type": "integer",
  556. "format": "int64"
  557. },
  558. "item_permissions": {
  559. "type": "integer",
  560. "format": "int64"
  561. },
  562. "item_size": {
  563. "anyOf": [
  564. {
  565. "type": "number",
  566. "format": "double"
  567. },
  568. {
  569. "type": "integer",
  570. "format": "int64"
  571. }
  572. ]
  573. },
  574. "item_source": {
  575. "type": "integer",
  576. "format": "int64"
  577. },
  578. "item_type": {
  579. "type": "string",
  580. "enum": [
  581. "file",
  582. "folder"
  583. ]
  584. },
  585. "label": {
  586. "type": "string"
  587. },
  588. "mail_send": {
  589. "type": "integer",
  590. "format": "int64",
  591. "enum": [
  592. 0,
  593. 1
  594. ]
  595. },
  596. "mimetype": {
  597. "type": "string"
  598. },
  599. "mount-type": {
  600. "type": "string"
  601. },
  602. "note": {
  603. "type": "string"
  604. },
  605. "parent": {
  606. "nullable": true
  607. },
  608. "password": {
  609. "type": "string",
  610. "nullable": true
  611. },
  612. "password_expiration_time": {
  613. "type": "string",
  614. "nullable": true
  615. },
  616. "path": {
  617. "type": "string",
  618. "nullable": true
  619. },
  620. "permissions": {
  621. "type": "integer",
  622. "format": "int64"
  623. },
  624. "send_password_by_talk": {
  625. "type": "boolean"
  626. },
  627. "share_type": {
  628. "type": "integer",
  629. "format": "int64"
  630. },
  631. "share_with": {
  632. "type": "string",
  633. "nullable": true
  634. },
  635. "share_with_avatar": {
  636. "type": "string"
  637. },
  638. "share_with_displayname": {
  639. "type": "string"
  640. },
  641. "share_with_displayname_unique": {
  642. "type": "string",
  643. "nullable": true
  644. },
  645. "share_with_link": {
  646. "type": "string"
  647. },
  648. "status": {
  649. "type": "object",
  650. "required": [
  651. "clearAt",
  652. "icon",
  653. "message",
  654. "status"
  655. ],
  656. "properties": {
  657. "clearAt": {
  658. "type": "integer",
  659. "format": "int64",
  660. "nullable": true
  661. },
  662. "icon": {
  663. "type": "string",
  664. "nullable": true
  665. },
  666. "message": {
  667. "type": "string",
  668. "nullable": true
  669. },
  670. "status": {
  671. "type": "string"
  672. }
  673. }
  674. },
  675. "stime": {
  676. "type": "integer",
  677. "format": "int64"
  678. },
  679. "storage": {
  680. "type": "integer",
  681. "format": "int64"
  682. },
  683. "storage_id": {
  684. "type": "string"
  685. },
  686. "token": {
  687. "type": "string",
  688. "nullable": true
  689. },
  690. "uid_file_owner": {
  691. "type": "string"
  692. },
  693. "uid_owner": {
  694. "type": "string"
  695. },
  696. "url": {
  697. "type": "string"
  698. }
  699. }
  700. },
  701. "ShareInfo": {
  702. "type": "object",
  703. "required": [
  704. "id",
  705. "parentId",
  706. "mtime",
  707. "name",
  708. "permissions",
  709. "mimetype",
  710. "size",
  711. "type",
  712. "etag"
  713. ],
  714. "properties": {
  715. "id": {
  716. "type": "integer",
  717. "format": "int64"
  718. },
  719. "parentId": {
  720. "type": "integer",
  721. "format": "int64"
  722. },
  723. "mtime": {
  724. "type": "integer",
  725. "format": "int64"
  726. },
  727. "name": {
  728. "type": "string"
  729. },
  730. "permissions": {
  731. "type": "integer",
  732. "format": "int64"
  733. },
  734. "mimetype": {
  735. "type": "string"
  736. },
  737. "size": {
  738. "anyOf": [
  739. {
  740. "type": "integer",
  741. "format": "int64"
  742. },
  743. {
  744. "type": "number",
  745. "format": "double"
  746. }
  747. ]
  748. },
  749. "type": {
  750. "type": "string"
  751. },
  752. "etag": {
  753. "type": "string"
  754. },
  755. "children": {
  756. "type": "array",
  757. "items": {
  758. "type": "object",
  759. "additionalProperties": {
  760. "type": "object"
  761. }
  762. }
  763. }
  764. }
  765. },
  766. "Sharee": {
  767. "type": "object",
  768. "required": [
  769. "count",
  770. "label"
  771. ],
  772. "properties": {
  773. "count": {
  774. "type": "integer",
  775. "format": "int64",
  776. "nullable": true
  777. },
  778. "label": {
  779. "type": "string"
  780. }
  781. }
  782. },
  783. "ShareeCircle": {
  784. "allOf": [
  785. {
  786. "$ref": "#/components/schemas/Sharee"
  787. },
  788. {
  789. "type": "object",
  790. "required": [
  791. "shareWithDescription",
  792. "value"
  793. ],
  794. "properties": {
  795. "shareWithDescription": {
  796. "type": "string"
  797. },
  798. "value": {
  799. "allOf": [
  800. {
  801. "$ref": "#/components/schemas/ShareeValue"
  802. },
  803. {
  804. "type": "object",
  805. "required": [
  806. "circle"
  807. ],
  808. "properties": {
  809. "circle": {
  810. "type": "string"
  811. }
  812. }
  813. }
  814. ]
  815. }
  816. }
  817. }
  818. ]
  819. },
  820. "ShareeEmail": {
  821. "allOf": [
  822. {
  823. "$ref": "#/components/schemas/Sharee"
  824. },
  825. {
  826. "type": "object",
  827. "required": [
  828. "uuid",
  829. "name",
  830. "type",
  831. "shareWithDisplayNameUnique",
  832. "value"
  833. ],
  834. "properties": {
  835. "uuid": {
  836. "type": "string"
  837. },
  838. "name": {
  839. "type": "string"
  840. },
  841. "type": {
  842. "type": "string"
  843. },
  844. "shareWithDisplayNameUnique": {
  845. "type": "string"
  846. },
  847. "value": {
  848. "$ref": "#/components/schemas/ShareeValue"
  849. }
  850. }
  851. }
  852. ]
  853. },
  854. "ShareeLookup": {
  855. "allOf": [
  856. {
  857. "$ref": "#/components/schemas/Sharee"
  858. },
  859. {
  860. "type": "object",
  861. "required": [
  862. "extra",
  863. "value"
  864. ],
  865. "properties": {
  866. "extra": {
  867. "type": "object",
  868. "required": [
  869. "federationId",
  870. "name",
  871. "email",
  872. "address",
  873. "website",
  874. "twitter",
  875. "phone",
  876. "twitter_signature",
  877. "website_signature",
  878. "userid"
  879. ],
  880. "properties": {
  881. "federationId": {
  882. "type": "string"
  883. },
  884. "name": {
  885. "$ref": "#/components/schemas/Lookup",
  886. "nullable": true
  887. },
  888. "email": {
  889. "$ref": "#/components/schemas/Lookup",
  890. "nullable": true
  891. },
  892. "address": {
  893. "$ref": "#/components/schemas/Lookup",
  894. "nullable": true
  895. },
  896. "website": {
  897. "$ref": "#/components/schemas/Lookup",
  898. "nullable": true
  899. },
  900. "twitter": {
  901. "$ref": "#/components/schemas/Lookup",
  902. "nullable": true
  903. },
  904. "phone": {
  905. "$ref": "#/components/schemas/Lookup",
  906. "nullable": true
  907. },
  908. "twitter_signature": {
  909. "$ref": "#/components/schemas/Lookup",
  910. "nullable": true
  911. },
  912. "website_signature": {
  913. "$ref": "#/components/schemas/Lookup",
  914. "nullable": true
  915. },
  916. "userid": {
  917. "$ref": "#/components/schemas/Lookup",
  918. "nullable": true
  919. }
  920. }
  921. },
  922. "value": {
  923. "allOf": [
  924. {
  925. "$ref": "#/components/schemas/ShareeValue"
  926. },
  927. {
  928. "type": "object",
  929. "required": [
  930. "globalScale"
  931. ],
  932. "properties": {
  933. "globalScale": {
  934. "type": "boolean"
  935. }
  936. }
  937. }
  938. ]
  939. }
  940. }
  941. }
  942. ]
  943. },
  944. "ShareeRemote": {
  945. "allOf": [
  946. {
  947. "$ref": "#/components/schemas/Sharee"
  948. },
  949. {
  950. "type": "object",
  951. "required": [
  952. "uuid",
  953. "name",
  954. "type",
  955. "value"
  956. ],
  957. "properties": {
  958. "uuid": {
  959. "type": "string"
  960. },
  961. "name": {
  962. "type": "string"
  963. },
  964. "type": {
  965. "type": "string"
  966. },
  967. "value": {
  968. "allOf": [
  969. {
  970. "$ref": "#/components/schemas/ShareeValue"
  971. },
  972. {
  973. "type": "object",
  974. "required": [
  975. "server"
  976. ],
  977. "properties": {
  978. "server": {
  979. "type": "string"
  980. }
  981. }
  982. }
  983. ]
  984. }
  985. }
  986. }
  987. ]
  988. },
  989. "ShareeRemoteGroup": {
  990. "allOf": [
  991. {
  992. "$ref": "#/components/schemas/Sharee"
  993. },
  994. {
  995. "type": "object",
  996. "required": [
  997. "guid",
  998. "name",
  999. "value"
  1000. ],
  1001. "properties": {
  1002. "guid": {
  1003. "type": "string"
  1004. },
  1005. "name": {
  1006. "type": "string"
  1007. },
  1008. "value": {
  1009. "allOf": [
  1010. {
  1011. "$ref": "#/components/schemas/ShareeValue"
  1012. },
  1013. {
  1014. "type": "object",
  1015. "required": [
  1016. "server"
  1017. ],
  1018. "properties": {
  1019. "server": {
  1020. "type": "string"
  1021. }
  1022. }
  1023. }
  1024. ]
  1025. }
  1026. }
  1027. }
  1028. ]
  1029. },
  1030. "ShareeUser": {
  1031. "allOf": [
  1032. {
  1033. "$ref": "#/components/schemas/Sharee"
  1034. },
  1035. {
  1036. "type": "object",
  1037. "required": [
  1038. "subline",
  1039. "icon",
  1040. "shareWithDisplayNameUnique",
  1041. "status",
  1042. "value"
  1043. ],
  1044. "properties": {
  1045. "subline": {
  1046. "type": "string"
  1047. },
  1048. "icon": {
  1049. "type": "string"
  1050. },
  1051. "shareWithDisplayNameUnique": {
  1052. "type": "string"
  1053. },
  1054. "status": {
  1055. "type": "object",
  1056. "required": [
  1057. "status",
  1058. "message",
  1059. "icon",
  1060. "clearAt"
  1061. ],
  1062. "properties": {
  1063. "status": {
  1064. "type": "string"
  1065. },
  1066. "message": {
  1067. "type": "string"
  1068. },
  1069. "icon": {
  1070. "type": "string"
  1071. },
  1072. "clearAt": {
  1073. "type": "integer",
  1074. "format": "int64",
  1075. "nullable": true
  1076. }
  1077. }
  1078. },
  1079. "value": {
  1080. "$ref": "#/components/schemas/ShareeValue"
  1081. }
  1082. }
  1083. }
  1084. ]
  1085. },
  1086. "ShareeValue": {
  1087. "type": "object",
  1088. "required": [
  1089. "shareType",
  1090. "shareWith"
  1091. ],
  1092. "properties": {
  1093. "shareType": {
  1094. "type": "integer",
  1095. "format": "int64"
  1096. },
  1097. "shareWith": {
  1098. "type": "string"
  1099. }
  1100. }
  1101. },
  1102. "ShareesRecommendedResult": {
  1103. "type": "object",
  1104. "required": [
  1105. "exact",
  1106. "emails",
  1107. "groups",
  1108. "remote_groups",
  1109. "remotes",
  1110. "users"
  1111. ],
  1112. "properties": {
  1113. "exact": {
  1114. "type": "object",
  1115. "required": [
  1116. "emails",
  1117. "groups",
  1118. "remote_groups",
  1119. "remotes",
  1120. "users"
  1121. ],
  1122. "properties": {
  1123. "emails": {
  1124. "type": "array",
  1125. "items": {
  1126. "$ref": "#/components/schemas/ShareeEmail"
  1127. }
  1128. },
  1129. "groups": {
  1130. "type": "array",
  1131. "items": {
  1132. "$ref": "#/components/schemas/Sharee"
  1133. }
  1134. },
  1135. "remote_groups": {
  1136. "type": "array",
  1137. "items": {
  1138. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1139. }
  1140. },
  1141. "remotes": {
  1142. "type": "array",
  1143. "items": {
  1144. "$ref": "#/components/schemas/ShareeRemote"
  1145. }
  1146. },
  1147. "users": {
  1148. "type": "array",
  1149. "items": {
  1150. "$ref": "#/components/schemas/ShareeUser"
  1151. }
  1152. }
  1153. }
  1154. },
  1155. "emails": {
  1156. "type": "array",
  1157. "items": {
  1158. "$ref": "#/components/schemas/ShareeEmail"
  1159. }
  1160. },
  1161. "groups": {
  1162. "type": "array",
  1163. "items": {
  1164. "$ref": "#/components/schemas/Sharee"
  1165. }
  1166. },
  1167. "remote_groups": {
  1168. "type": "array",
  1169. "items": {
  1170. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1171. }
  1172. },
  1173. "remotes": {
  1174. "type": "array",
  1175. "items": {
  1176. "$ref": "#/components/schemas/ShareeRemote"
  1177. }
  1178. },
  1179. "users": {
  1180. "type": "array",
  1181. "items": {
  1182. "$ref": "#/components/schemas/ShareeUser"
  1183. }
  1184. }
  1185. }
  1186. },
  1187. "ShareesSearchResult": {
  1188. "type": "object",
  1189. "required": [
  1190. "exact",
  1191. "circles",
  1192. "emails",
  1193. "groups",
  1194. "lookup",
  1195. "remote_groups",
  1196. "remotes",
  1197. "rooms",
  1198. "users",
  1199. "lookupEnabled"
  1200. ],
  1201. "properties": {
  1202. "exact": {
  1203. "type": "object",
  1204. "required": [
  1205. "circles",
  1206. "emails",
  1207. "groups",
  1208. "remote_groups",
  1209. "remotes",
  1210. "rooms",
  1211. "users"
  1212. ],
  1213. "properties": {
  1214. "circles": {
  1215. "type": "array",
  1216. "items": {
  1217. "$ref": "#/components/schemas/ShareeCircle"
  1218. }
  1219. },
  1220. "emails": {
  1221. "type": "array",
  1222. "items": {
  1223. "$ref": "#/components/schemas/ShareeEmail"
  1224. }
  1225. },
  1226. "groups": {
  1227. "type": "array",
  1228. "items": {
  1229. "$ref": "#/components/schemas/Sharee"
  1230. }
  1231. },
  1232. "remote_groups": {
  1233. "type": "array",
  1234. "items": {
  1235. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1236. }
  1237. },
  1238. "remotes": {
  1239. "type": "array",
  1240. "items": {
  1241. "$ref": "#/components/schemas/ShareeRemote"
  1242. }
  1243. },
  1244. "rooms": {
  1245. "type": "array",
  1246. "items": {
  1247. "$ref": "#/components/schemas/Sharee"
  1248. }
  1249. },
  1250. "users": {
  1251. "type": "array",
  1252. "items": {
  1253. "$ref": "#/components/schemas/ShareeUser"
  1254. }
  1255. }
  1256. }
  1257. },
  1258. "circles": {
  1259. "type": "array",
  1260. "items": {
  1261. "$ref": "#/components/schemas/ShareeCircle"
  1262. }
  1263. },
  1264. "emails": {
  1265. "type": "array",
  1266. "items": {
  1267. "$ref": "#/components/schemas/ShareeEmail"
  1268. }
  1269. },
  1270. "groups": {
  1271. "type": "array",
  1272. "items": {
  1273. "$ref": "#/components/schemas/Sharee"
  1274. }
  1275. },
  1276. "lookup": {
  1277. "type": "array",
  1278. "items": {
  1279. "$ref": "#/components/schemas/ShareeLookup"
  1280. }
  1281. },
  1282. "remote_groups": {
  1283. "type": "array",
  1284. "items": {
  1285. "$ref": "#/components/schemas/ShareeRemoteGroup"
  1286. }
  1287. },
  1288. "remotes": {
  1289. "type": "array",
  1290. "items": {
  1291. "$ref": "#/components/schemas/ShareeRemote"
  1292. }
  1293. },
  1294. "rooms": {
  1295. "type": "array",
  1296. "items": {
  1297. "$ref": "#/components/schemas/Sharee"
  1298. }
  1299. },
  1300. "users": {
  1301. "type": "array",
  1302. "items": {
  1303. "$ref": "#/components/schemas/ShareeUser"
  1304. }
  1305. },
  1306. "lookupEnabled": {
  1307. "type": "boolean"
  1308. }
  1309. }
  1310. }
  1311. }
  1312. },
  1313. "paths": {
  1314. "/index.php/s/{token}/preview": {
  1315. "get": {
  1316. "operationId": "public_preview-direct-link",
  1317. "summary": "Get a direct link preview for a shared file",
  1318. "tags": [
  1319. "public_preview"
  1320. ],
  1321. "security": [
  1322. {},
  1323. {
  1324. "bearer_auth": []
  1325. },
  1326. {
  1327. "basic_auth": []
  1328. }
  1329. ],
  1330. "parameters": [
  1331. {
  1332. "name": "token",
  1333. "in": "path",
  1334. "description": "Token of the share",
  1335. "required": true,
  1336. "schema": {
  1337. "type": "string"
  1338. }
  1339. }
  1340. ],
  1341. "responses": {
  1342. "200": {
  1343. "description": "Preview returned",
  1344. "content": {
  1345. "*/*": {
  1346. "schema": {
  1347. "type": "string",
  1348. "format": "binary"
  1349. }
  1350. }
  1351. }
  1352. },
  1353. "400": {
  1354. "description": "Getting preview is not possible",
  1355. "content": {
  1356. "application/json": {
  1357. "schema": {}
  1358. }
  1359. }
  1360. },
  1361. "403": {
  1362. "description": "Getting preview is not allowed",
  1363. "content": {
  1364. "application/json": {
  1365. "schema": {}
  1366. }
  1367. }
  1368. },
  1369. "404": {
  1370. "description": "Share or preview not found",
  1371. "content": {
  1372. "application/json": {
  1373. "schema": {}
  1374. }
  1375. }
  1376. }
  1377. }
  1378. }
  1379. },
  1380. "/index.php/apps/files_sharing/publicpreview/{token}": {
  1381. "get": {
  1382. "operationId": "public_preview-get-preview",
  1383. "summary": "Get a preview for a shared file",
  1384. "tags": [
  1385. "public_preview"
  1386. ],
  1387. "security": [
  1388. {},
  1389. {
  1390. "bearer_auth": []
  1391. },
  1392. {
  1393. "basic_auth": []
  1394. }
  1395. ],
  1396. "parameters": [
  1397. {
  1398. "name": "token",
  1399. "in": "path",
  1400. "description": "Token of the share",
  1401. "required": true,
  1402. "schema": {
  1403. "type": "string"
  1404. }
  1405. },
  1406. {
  1407. "name": "file",
  1408. "in": "query",
  1409. "description": "File in the share",
  1410. "schema": {
  1411. "type": "string",
  1412. "default": ""
  1413. }
  1414. },
  1415. {
  1416. "name": "x",
  1417. "in": "query",
  1418. "description": "Width of the preview",
  1419. "schema": {
  1420. "type": "integer",
  1421. "format": "int64",
  1422. "default": 32
  1423. }
  1424. },
  1425. {
  1426. "name": "y",
  1427. "in": "query",
  1428. "description": "Height of the preview",
  1429. "schema": {
  1430. "type": "integer",
  1431. "format": "int64",
  1432. "default": 32
  1433. }
  1434. },
  1435. {
  1436. "name": "a",
  1437. "in": "query",
  1438. "description": "Whether to not crop the preview",
  1439. "schema": {
  1440. "type": "integer",
  1441. "default": 0,
  1442. "enum": [
  1443. 0,
  1444. 1
  1445. ]
  1446. }
  1447. }
  1448. ],
  1449. "responses": {
  1450. "200": {
  1451. "description": "Preview returned",
  1452. "content": {
  1453. "*/*": {
  1454. "schema": {
  1455. "type": "string",
  1456. "format": "binary"
  1457. }
  1458. }
  1459. }
  1460. },
  1461. "400": {
  1462. "description": "Getting preview is not possible",
  1463. "content": {
  1464. "application/json": {
  1465. "schema": {}
  1466. }
  1467. }
  1468. },
  1469. "403": {
  1470. "description": "Getting preview is not allowed",
  1471. "content": {
  1472. "application/json": {
  1473. "schema": {}
  1474. }
  1475. }
  1476. },
  1477. "404": {
  1478. "description": "Share or preview not found",
  1479. "content": {
  1480. "application/json": {
  1481. "schema": {}
  1482. }
  1483. }
  1484. }
  1485. }
  1486. }
  1487. },
  1488. "/index.php/apps/files_sharing/shareinfo": {
  1489. "post": {
  1490. "operationId": "share_info-info",
  1491. "summary": "Get the info about a share",
  1492. "tags": [
  1493. "share_info"
  1494. ],
  1495. "security": [
  1496. {},
  1497. {
  1498. "bearer_auth": []
  1499. },
  1500. {
  1501. "basic_auth": []
  1502. }
  1503. ],
  1504. "requestBody": {
  1505. "required": true,
  1506. "content": {
  1507. "application/json": {
  1508. "schema": {
  1509. "type": "object",
  1510. "required": [
  1511. "t"
  1512. ],
  1513. "properties": {
  1514. "t": {
  1515. "type": "string",
  1516. "description": "Token of the share"
  1517. },
  1518. "password": {
  1519. "type": "string",
  1520. "nullable": true,
  1521. "description": "Password of the share"
  1522. },
  1523. "dir": {
  1524. "type": "string",
  1525. "nullable": true,
  1526. "description": "Subdirectory to get info about"
  1527. },
  1528. "depth": {
  1529. "type": "integer",
  1530. "format": "int64",
  1531. "default": -1,
  1532. "description": "Maximum depth to get info about"
  1533. }
  1534. }
  1535. }
  1536. }
  1537. }
  1538. },
  1539. "responses": {
  1540. "200": {
  1541. "description": "Share info returned",
  1542. "content": {
  1543. "application/json": {
  1544. "schema": {
  1545. "$ref": "#/components/schemas/ShareInfo"
  1546. }
  1547. }
  1548. }
  1549. },
  1550. "403": {
  1551. "description": "Getting share info is not allowed",
  1552. "content": {
  1553. "application/json": {
  1554. "schema": {}
  1555. }
  1556. }
  1557. },
  1558. "404": {
  1559. "description": "Share not found",
  1560. "content": {
  1561. "application/json": {
  1562. "schema": {}
  1563. }
  1564. }
  1565. }
  1566. }
  1567. }
  1568. },
  1569. "/ocs/v2.php/apps/files_sharing/api/v1/shares": {
  1570. "get": {
  1571. "operationId": "shareapi-get-shares",
  1572. "summary": "Get shares of the current user",
  1573. "tags": [
  1574. "shareapi"
  1575. ],
  1576. "security": [
  1577. {
  1578. "bearer_auth": []
  1579. },
  1580. {
  1581. "basic_auth": []
  1582. }
  1583. ],
  1584. "parameters": [
  1585. {
  1586. "name": "shared_with_me",
  1587. "in": "query",
  1588. "description": "Only get shares with the current user",
  1589. "schema": {
  1590. "type": "string",
  1591. "default": "false"
  1592. }
  1593. },
  1594. {
  1595. "name": "reshares",
  1596. "in": "query",
  1597. "description": "Only get shares by the current user and reshares",
  1598. "schema": {
  1599. "type": "string",
  1600. "default": "false"
  1601. }
  1602. },
  1603. {
  1604. "name": "subfiles",
  1605. "in": "query",
  1606. "description": "Only get all shares in a folder",
  1607. "schema": {
  1608. "type": "string",
  1609. "default": "false"
  1610. }
  1611. },
  1612. {
  1613. "name": "path",
  1614. "in": "query",
  1615. "description": "Get shares for a specific path",
  1616. "schema": {
  1617. "type": "string",
  1618. "default": ""
  1619. }
  1620. },
  1621. {
  1622. "name": "include_tags",
  1623. "in": "query",
  1624. "description": "Include tags in the share",
  1625. "schema": {
  1626. "type": "string",
  1627. "default": "false"
  1628. }
  1629. },
  1630. {
  1631. "name": "OCS-APIRequest",
  1632. "in": "header",
  1633. "description": "Required to be true for the API request to pass",
  1634. "required": true,
  1635. "schema": {
  1636. "type": "boolean",
  1637. "default": true
  1638. }
  1639. }
  1640. ],
  1641. "responses": {
  1642. "200": {
  1643. "description": "Shares returned",
  1644. "content": {
  1645. "application/json": {
  1646. "schema": {
  1647. "type": "object",
  1648. "required": [
  1649. "ocs"
  1650. ],
  1651. "properties": {
  1652. "ocs": {
  1653. "type": "object",
  1654. "required": [
  1655. "meta",
  1656. "data"
  1657. ],
  1658. "properties": {
  1659. "meta": {
  1660. "$ref": "#/components/schemas/OCSMeta"
  1661. },
  1662. "data": {
  1663. "type": "array",
  1664. "items": {
  1665. "$ref": "#/components/schemas/Share"
  1666. }
  1667. }
  1668. }
  1669. }
  1670. }
  1671. }
  1672. }
  1673. }
  1674. },
  1675. "404": {
  1676. "description": "The folder was not found or is inaccessible",
  1677. "content": {
  1678. "application/json": {
  1679. "schema": {
  1680. "type": "object",
  1681. "required": [
  1682. "ocs"
  1683. ],
  1684. "properties": {
  1685. "ocs": {
  1686. "type": "object",
  1687. "required": [
  1688. "meta",
  1689. "data"
  1690. ],
  1691. "properties": {
  1692. "meta": {
  1693. "$ref": "#/components/schemas/OCSMeta"
  1694. },
  1695. "data": {}
  1696. }
  1697. }
  1698. }
  1699. }
  1700. }
  1701. }
  1702. }
  1703. }
  1704. },
  1705. "post": {
  1706. "operationId": "shareapi-create-share",
  1707. "summary": "Create a share",
  1708. "tags": [
  1709. "shareapi"
  1710. ],
  1711. "security": [
  1712. {
  1713. "bearer_auth": []
  1714. },
  1715. {
  1716. "basic_auth": []
  1717. }
  1718. ],
  1719. "requestBody": {
  1720. "required": false,
  1721. "content": {
  1722. "application/json": {
  1723. "schema": {
  1724. "type": "object",
  1725. "properties": {
  1726. "path": {
  1727. "type": "string",
  1728. "nullable": true,
  1729. "description": "Path of the share"
  1730. },
  1731. "permissions": {
  1732. "type": "integer",
  1733. "format": "int64",
  1734. "nullable": true,
  1735. "description": "Permissions for the share"
  1736. },
  1737. "shareType": {
  1738. "type": "integer",
  1739. "format": "int64",
  1740. "default": -1,
  1741. "description": "Type of the share"
  1742. },
  1743. "shareWith": {
  1744. "type": "string",
  1745. "nullable": true,
  1746. "description": "The entity this should be shared with"
  1747. },
  1748. "publicUpload": {
  1749. "type": "string",
  1750. "default": "false",
  1751. "description": "If public uploading is allowed"
  1752. },
  1753. "password": {
  1754. "type": "string",
  1755. "default": "",
  1756. "description": "Password for the share"
  1757. },
  1758. "sendPasswordByTalk": {
  1759. "type": "string",
  1760. "nullable": true,
  1761. "description": "Send the password for the share over Talk"
  1762. },
  1763. "expireDate": {
  1764. "type": "string",
  1765. "nullable": true,
  1766. "description": "The expiry date of the share in the user's timezone at 00:00. If $expireDate is not supplied or set to `null`, the system default will be used."
  1767. },
  1768. "note": {
  1769. "type": "string",
  1770. "default": "",
  1771. "description": "Note for the share"
  1772. },
  1773. "label": {
  1774. "type": "string",
  1775. "default": "",
  1776. "description": "Label for the share (only used in link and email)"
  1777. },
  1778. "attributes": {
  1779. "type": "string",
  1780. "nullable": true,
  1781. "description": "Additional attributes for the share"
  1782. },
  1783. "sendMail": {
  1784. "type": "string",
  1785. "nullable": true,
  1786. "enum": [
  1787. "false",
  1788. "true"
  1789. ],
  1790. "description": "Send a mail to the recipient"
  1791. }
  1792. }
  1793. }
  1794. }
  1795. }
  1796. },
  1797. "parameters": [
  1798. {
  1799. "name": "OCS-APIRequest",
  1800. "in": "header",
  1801. "description": "Required to be true for the API request to pass",
  1802. "required": true,
  1803. "schema": {
  1804. "type": "boolean",
  1805. "default": true
  1806. }
  1807. }
  1808. ],
  1809. "responses": {
  1810. "200": {
  1811. "description": "Share created",
  1812. "content": {
  1813. "application/json": {
  1814. "schema": {
  1815. "type": "object",
  1816. "required": [
  1817. "ocs"
  1818. ],
  1819. "properties": {
  1820. "ocs": {
  1821. "type": "object",
  1822. "required": [
  1823. "meta",
  1824. "data"
  1825. ],
  1826. "properties": {
  1827. "meta": {
  1828. "$ref": "#/components/schemas/OCSMeta"
  1829. },
  1830. "data": {
  1831. "$ref": "#/components/schemas/Share"
  1832. }
  1833. }
  1834. }
  1835. }
  1836. }
  1837. }
  1838. }
  1839. },
  1840. "400": {
  1841. "description": "Unknown share type",
  1842. "content": {
  1843. "application/json": {
  1844. "schema": {
  1845. "type": "object",
  1846. "required": [
  1847. "ocs"
  1848. ],
  1849. "properties": {
  1850. "ocs": {
  1851. "type": "object",
  1852. "required": [
  1853. "meta",
  1854. "data"
  1855. ],
  1856. "properties": {
  1857. "meta": {
  1858. "$ref": "#/components/schemas/OCSMeta"
  1859. },
  1860. "data": {}
  1861. }
  1862. }
  1863. }
  1864. }
  1865. }
  1866. }
  1867. },
  1868. "403": {
  1869. "description": "Creating the share is not allowed",
  1870. "content": {
  1871. "application/json": {
  1872. "schema": {
  1873. "type": "object",
  1874. "required": [
  1875. "ocs"
  1876. ],
  1877. "properties": {
  1878. "ocs": {
  1879. "type": "object",
  1880. "required": [
  1881. "meta",
  1882. "data"
  1883. ],
  1884. "properties": {
  1885. "meta": {
  1886. "$ref": "#/components/schemas/OCSMeta"
  1887. },
  1888. "data": {}
  1889. }
  1890. }
  1891. }
  1892. }
  1893. }
  1894. }
  1895. },
  1896. "404": {
  1897. "description": "Creating the share failed",
  1898. "content": {
  1899. "application/json": {
  1900. "schema": {
  1901. "type": "object",
  1902. "required": [
  1903. "ocs"
  1904. ],
  1905. "properties": {
  1906. "ocs": {
  1907. "type": "object",
  1908. "required": [
  1909. "meta",
  1910. "data"
  1911. ],
  1912. "properties": {
  1913. "meta": {
  1914. "$ref": "#/components/schemas/OCSMeta"
  1915. },
  1916. "data": {}
  1917. }
  1918. }
  1919. }
  1920. }
  1921. }
  1922. }
  1923. }
  1924. }
  1925. }
  1926. },
  1927. "/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited": {
  1928. "get": {
  1929. "operationId": "shareapi-get-inherited-shares",
  1930. "summary": "Get all shares relative to a file, including parent folders shares rights",
  1931. "tags": [
  1932. "shareapi"
  1933. ],
  1934. "security": [
  1935. {
  1936. "bearer_auth": []
  1937. },
  1938. {
  1939. "basic_auth": []
  1940. }
  1941. ],
  1942. "parameters": [
  1943. {
  1944. "name": "path",
  1945. "in": "query",
  1946. "description": "Path all shares will be relative to",
  1947. "required": true,
  1948. "schema": {
  1949. "type": "string"
  1950. }
  1951. },
  1952. {
  1953. "name": "OCS-APIRequest",
  1954. "in": "header",
  1955. "description": "Required to be true for the API request to pass",
  1956. "required": true,
  1957. "schema": {
  1958. "type": "boolean",
  1959. "default": true
  1960. }
  1961. }
  1962. ],
  1963. "responses": {
  1964. "200": {
  1965. "description": "Shares returned",
  1966. "content": {
  1967. "application/json": {
  1968. "schema": {
  1969. "type": "object",
  1970. "required": [
  1971. "ocs"
  1972. ],
  1973. "properties": {
  1974. "ocs": {
  1975. "type": "object",
  1976. "required": [
  1977. "meta",
  1978. "data"
  1979. ],
  1980. "properties": {
  1981. "meta": {
  1982. "$ref": "#/components/schemas/OCSMeta"
  1983. },
  1984. "data": {
  1985. "type": "array",
  1986. "items": {
  1987. "$ref": "#/components/schemas/Share"
  1988. }
  1989. }
  1990. }
  1991. }
  1992. }
  1993. }
  1994. }
  1995. }
  1996. },
  1997. "500": {
  1998. "description": "",
  1999. "content": {
  2000. "text/plain": {
  2001. "schema": {
  2002. "type": "string"
  2003. }
  2004. }
  2005. }
  2006. },
  2007. "404": {
  2008. "description": "The given path is invalid",
  2009. "content": {
  2010. "application/json": {
  2011. "schema": {
  2012. "type": "object",
  2013. "required": [
  2014. "ocs"
  2015. ],
  2016. "properties": {
  2017. "ocs": {
  2018. "type": "object",
  2019. "required": [
  2020. "meta",
  2021. "data"
  2022. ],
  2023. "properties": {
  2024. "meta": {
  2025. "$ref": "#/components/schemas/OCSMeta"
  2026. },
  2027. "data": {}
  2028. }
  2029. }
  2030. }
  2031. }
  2032. }
  2033. }
  2034. }
  2035. }
  2036. }
  2037. },
  2038. "/ocs/v2.php/apps/files_sharing/api/v1/shares/pending": {
  2039. "get": {
  2040. "operationId": "shareapi-pending-shares",
  2041. "summary": "Get all shares that are still pending",
  2042. "tags": [
  2043. "shareapi"
  2044. ],
  2045. "security": [
  2046. {
  2047. "bearer_auth": []
  2048. },
  2049. {
  2050. "basic_auth": []
  2051. }
  2052. ],
  2053. "parameters": [
  2054. {
  2055. "name": "OCS-APIRequest",
  2056. "in": "header",
  2057. "description": "Required to be true for the API request to pass",
  2058. "required": true,
  2059. "schema": {
  2060. "type": "boolean",
  2061. "default": true
  2062. }
  2063. }
  2064. ],
  2065. "responses": {
  2066. "200": {
  2067. "description": "Pending shares returned",
  2068. "content": {
  2069. "application/json": {
  2070. "schema": {
  2071. "type": "object",
  2072. "required": [
  2073. "ocs"
  2074. ],
  2075. "properties": {
  2076. "ocs": {
  2077. "type": "object",
  2078. "required": [
  2079. "meta",
  2080. "data"
  2081. ],
  2082. "properties": {
  2083. "meta": {
  2084. "$ref": "#/components/schemas/OCSMeta"
  2085. },
  2086. "data": {
  2087. "type": "array",
  2088. "items": {
  2089. "$ref": "#/components/schemas/Share"
  2090. }
  2091. }
  2092. }
  2093. }
  2094. }
  2095. }
  2096. }
  2097. }
  2098. }
  2099. }
  2100. }
  2101. },
  2102. "/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}": {
  2103. "get": {
  2104. "operationId": "shareapi-get-share",
  2105. "summary": "Get a specific share by id",
  2106. "tags": [
  2107. "shareapi"
  2108. ],
  2109. "security": [
  2110. {
  2111. "bearer_auth": []
  2112. },
  2113. {
  2114. "basic_auth": []
  2115. }
  2116. ],
  2117. "parameters": [
  2118. {
  2119. "name": "id",
  2120. "in": "path",
  2121. "description": "ID of the share",
  2122. "required": true,
  2123. "schema": {
  2124. "type": "string"
  2125. }
  2126. },
  2127. {
  2128. "name": "include_tags",
  2129. "in": "query",
  2130. "description": "Include tags in the share",
  2131. "schema": {
  2132. "type": "integer",
  2133. "default": 0,
  2134. "enum": [
  2135. 0,
  2136. 1
  2137. ]
  2138. }
  2139. },
  2140. {
  2141. "name": "OCS-APIRequest",
  2142. "in": "header",
  2143. "description": "Required to be true for the API request to pass",
  2144. "required": true,
  2145. "schema": {
  2146. "type": "boolean",
  2147. "default": true
  2148. }
  2149. }
  2150. ],
  2151. "responses": {
  2152. "200": {
  2153. "description": "Share returned",
  2154. "content": {
  2155. "application/json": {
  2156. "schema": {
  2157. "type": "object",
  2158. "required": [
  2159. "ocs"
  2160. ],
  2161. "properties": {
  2162. "ocs": {
  2163. "type": "object",
  2164. "required": [
  2165. "meta",
  2166. "data"
  2167. ],
  2168. "properties": {
  2169. "meta": {
  2170. "$ref": "#/components/schemas/OCSMeta"
  2171. },
  2172. "data": {
  2173. "$ref": "#/components/schemas/Share"
  2174. }
  2175. }
  2176. }
  2177. }
  2178. }
  2179. }
  2180. }
  2181. },
  2182. "404": {
  2183. "description": "Share not found",
  2184. "content": {
  2185. "application/json": {
  2186. "schema": {
  2187. "type": "object",
  2188. "required": [
  2189. "ocs"
  2190. ],
  2191. "properties": {
  2192. "ocs": {
  2193. "type": "object",
  2194. "required": [
  2195. "meta",
  2196. "data"
  2197. ],
  2198. "properties": {
  2199. "meta": {
  2200. "$ref": "#/components/schemas/OCSMeta"
  2201. },
  2202. "data": {}
  2203. }
  2204. }
  2205. }
  2206. }
  2207. }
  2208. }
  2209. }
  2210. }
  2211. },
  2212. "put": {
  2213. "operationId": "shareapi-update-share",
  2214. "summary": "Update a share",
  2215. "tags": [
  2216. "shareapi"
  2217. ],
  2218. "security": [
  2219. {
  2220. "bearer_auth": []
  2221. },
  2222. {
  2223. "basic_auth": []
  2224. }
  2225. ],
  2226. "requestBody": {
  2227. "required": false,
  2228. "content": {
  2229. "application/json": {
  2230. "schema": {
  2231. "type": "object",
  2232. "properties": {
  2233. "permissions": {
  2234. "type": "integer",
  2235. "format": "int64",
  2236. "nullable": true,
  2237. "description": "New permissions"
  2238. },
  2239. "password": {
  2240. "type": "string",
  2241. "nullable": true,
  2242. "description": "New password"
  2243. },
  2244. "sendPasswordByTalk": {
  2245. "type": "string",
  2246. "nullable": true,
  2247. "description": "New condition if the password should be send over Talk"
  2248. },
  2249. "publicUpload": {
  2250. "type": "string",
  2251. "nullable": true,
  2252. "description": "New condition if public uploading is allowed"
  2253. },
  2254. "expireDate": {
  2255. "type": "string",
  2256. "nullable": true,
  2257. "description": "New expiry date"
  2258. },
  2259. "note": {
  2260. "type": "string",
  2261. "nullable": true,
  2262. "description": "New note"
  2263. },
  2264. "label": {
  2265. "type": "string",
  2266. "nullable": true,
  2267. "description": "New label"
  2268. },
  2269. "hideDownload": {
  2270. "type": "string",
  2271. "nullable": true,
  2272. "description": "New condition if the download should be hidden"
  2273. },
  2274. "attributes": {
  2275. "type": "string",
  2276. "nullable": true,
  2277. "description": "New additional attributes"
  2278. },
  2279. "sendMail": {
  2280. "type": "string",
  2281. "nullable": true,
  2282. "description": "if the share should be send by mail. Considering the share already exists, no mail will be send after the share is updated. You will have to use the sendMail action to send the mail."
  2283. }
  2284. }
  2285. }
  2286. }
  2287. }
  2288. },
  2289. "parameters": [
  2290. {
  2291. "name": "id",
  2292. "in": "path",
  2293. "description": "ID of the share",
  2294. "required": true,
  2295. "schema": {
  2296. "type": "string"
  2297. }
  2298. },
  2299. {
  2300. "name": "OCS-APIRequest",
  2301. "in": "header",
  2302. "description": "Required to be true for the API request to pass",
  2303. "required": true,
  2304. "schema": {
  2305. "type": "boolean",
  2306. "default": true
  2307. }
  2308. }
  2309. ],
  2310. "responses": {
  2311. "200": {
  2312. "description": "Share updated successfully",
  2313. "content": {
  2314. "application/json": {
  2315. "schema": {
  2316. "type": "object",
  2317. "required": [
  2318. "ocs"
  2319. ],
  2320. "properties": {
  2321. "ocs": {
  2322. "type": "object",
  2323. "required": [
  2324. "meta",
  2325. "data"
  2326. ],
  2327. "properties": {
  2328. "meta": {
  2329. "$ref": "#/components/schemas/OCSMeta"
  2330. },
  2331. "data": {
  2332. "$ref": "#/components/schemas/Share"
  2333. }
  2334. }
  2335. }
  2336. }
  2337. }
  2338. }
  2339. }
  2340. },
  2341. "400": {
  2342. "description": "Share could not be updated because the requested changes are invalid",
  2343. "content": {
  2344. "application/json": {
  2345. "schema": {
  2346. "type": "object",
  2347. "required": [
  2348. "ocs"
  2349. ],
  2350. "properties": {
  2351. "ocs": {
  2352. "type": "object",
  2353. "required": [
  2354. "meta",
  2355. "data"
  2356. ],
  2357. "properties": {
  2358. "meta": {
  2359. "$ref": "#/components/schemas/OCSMeta"
  2360. },
  2361. "data": {}
  2362. }
  2363. }
  2364. }
  2365. }
  2366. }
  2367. }
  2368. },
  2369. "403": {
  2370. "description": "Missing permissions to update the share",
  2371. "content": {
  2372. "application/json": {
  2373. "schema": {
  2374. "type": "object",
  2375. "required": [
  2376. "ocs"
  2377. ],
  2378. "properties": {
  2379. "ocs": {
  2380. "type": "object",
  2381. "required": [
  2382. "meta",
  2383. "data"
  2384. ],
  2385. "properties": {
  2386. "meta": {
  2387. "$ref": "#/components/schemas/OCSMeta"
  2388. },
  2389. "data": {}
  2390. }
  2391. }
  2392. }
  2393. }
  2394. }
  2395. }
  2396. },
  2397. "404": {
  2398. "description": "Share not found",
  2399. "content": {
  2400. "application/json": {
  2401. "schema": {
  2402. "type": "object",
  2403. "required": [
  2404. "ocs"
  2405. ],
  2406. "properties": {
  2407. "ocs": {
  2408. "type": "object",
  2409. "required": [
  2410. "meta",
  2411. "data"
  2412. ],
  2413. "properties": {
  2414. "meta": {
  2415. "$ref": "#/components/schemas/OCSMeta"
  2416. },
  2417. "data": {}
  2418. }
  2419. }
  2420. }
  2421. }
  2422. }
  2423. }
  2424. }
  2425. }
  2426. },
  2427. "delete": {
  2428. "operationId": "shareapi-delete-share",
  2429. "summary": "Delete a share",
  2430. "tags": [
  2431. "shareapi"
  2432. ],
  2433. "security": [
  2434. {
  2435. "bearer_auth": []
  2436. },
  2437. {
  2438. "basic_auth": []
  2439. }
  2440. ],
  2441. "parameters": [
  2442. {
  2443. "name": "id",
  2444. "in": "path",
  2445. "description": "ID of the share",
  2446. "required": true,
  2447. "schema": {
  2448. "type": "string"
  2449. }
  2450. },
  2451. {
  2452. "name": "OCS-APIRequest",
  2453. "in": "header",
  2454. "description": "Required to be true for the API request to pass",
  2455. "required": true,
  2456. "schema": {
  2457. "type": "boolean",
  2458. "default": true
  2459. }
  2460. }
  2461. ],
  2462. "responses": {
  2463. "200": {
  2464. "description": "Share deleted successfully",
  2465. "content": {
  2466. "application/json": {
  2467. "schema": {
  2468. "type": "object",
  2469. "required": [
  2470. "ocs"
  2471. ],
  2472. "properties": {
  2473. "ocs": {
  2474. "type": "object",
  2475. "required": [
  2476. "meta",
  2477. "data"
  2478. ],
  2479. "properties": {
  2480. "meta": {
  2481. "$ref": "#/components/schemas/OCSMeta"
  2482. },
  2483. "data": {}
  2484. }
  2485. }
  2486. }
  2487. }
  2488. }
  2489. }
  2490. },
  2491. "404": {
  2492. "description": "Share not found",
  2493. "content": {
  2494. "application/json": {
  2495. "schema": {
  2496. "type": "object",
  2497. "required": [
  2498. "ocs"
  2499. ],
  2500. "properties": {
  2501. "ocs": {
  2502. "type": "object",
  2503. "required": [
  2504. "meta",
  2505. "data"
  2506. ],
  2507. "properties": {
  2508. "meta": {
  2509. "$ref": "#/components/schemas/OCSMeta"
  2510. },
  2511. "data": {}
  2512. }
  2513. }
  2514. }
  2515. }
  2516. }
  2517. }
  2518. },
  2519. "403": {
  2520. "description": "Missing permissions to delete the share",
  2521. "content": {
  2522. "application/json": {
  2523. "schema": {
  2524. "type": "object",
  2525. "required": [
  2526. "ocs"
  2527. ],
  2528. "properties": {
  2529. "ocs": {
  2530. "type": "object",
  2531. "required": [
  2532. "meta",
  2533. "data"
  2534. ],
  2535. "properties": {
  2536. "meta": {
  2537. "$ref": "#/components/schemas/OCSMeta"
  2538. },
  2539. "data": {}
  2540. }
  2541. }
  2542. }
  2543. }
  2544. }
  2545. }
  2546. }
  2547. }
  2548. }
  2549. },
  2550. "/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}/send-email": {
  2551. "post": {
  2552. "operationId": "shareapi-send-share-email",
  2553. "summary": "Send a mail notification again for a share. The mail_send option must be enabled for the given share.",
  2554. "tags": [
  2555. "shareapi"
  2556. ],
  2557. "security": [
  2558. {
  2559. "bearer_auth": []
  2560. },
  2561. {
  2562. "basic_auth": []
  2563. }
  2564. ],
  2565. "requestBody": {
  2566. "required": false,
  2567. "content": {
  2568. "application/json": {
  2569. "schema": {
  2570. "type": "object",
  2571. "properties": {
  2572. "password": {
  2573. "type": "string",
  2574. "default": "",
  2575. "description": "the password to check against. Necessary for password protected shares."
  2576. }
  2577. }
  2578. }
  2579. }
  2580. }
  2581. },
  2582. "parameters": [
  2583. {
  2584. "name": "id",
  2585. "in": "path",
  2586. "description": "the share ID",
  2587. "required": true,
  2588. "schema": {
  2589. "type": "string"
  2590. }
  2591. },
  2592. {
  2593. "name": "OCS-APIRequest",
  2594. "in": "header",
  2595. "description": "Required to be true for the API request to pass",
  2596. "required": true,
  2597. "schema": {
  2598. "type": "boolean",
  2599. "default": true
  2600. }
  2601. }
  2602. ],
  2603. "responses": {
  2604. "404": {
  2605. "description": "Share not found",
  2606. "content": {
  2607. "application/json": {
  2608. "schema": {
  2609. "type": "object",
  2610. "required": [
  2611. "ocs"
  2612. ],
  2613. "properties": {
  2614. "ocs": {
  2615. "type": "object",
  2616. "required": [
  2617. "meta",
  2618. "data"
  2619. ],
  2620. "properties": {
  2621. "meta": {
  2622. "$ref": "#/components/schemas/OCSMeta"
  2623. },
  2624. "data": {}
  2625. }
  2626. }
  2627. }
  2628. }
  2629. }
  2630. }
  2631. },
  2632. "403": {
  2633. "description": "You are not allowed to send mail notifications",
  2634. "content": {
  2635. "application/json": {
  2636. "schema": {
  2637. "type": "object",
  2638. "required": [
  2639. "ocs"
  2640. ],
  2641. "properties": {
  2642. "ocs": {
  2643. "type": "object",
  2644. "required": [
  2645. "meta",
  2646. "data"
  2647. ],
  2648. "properties": {
  2649. "meta": {
  2650. "$ref": "#/components/schemas/OCSMeta"
  2651. },
  2652. "data": {}
  2653. }
  2654. }
  2655. }
  2656. }
  2657. }
  2658. }
  2659. },
  2660. "400": {
  2661. "description": "Invalid request or wrong password",
  2662. "content": {
  2663. "application/json": {
  2664. "schema": {
  2665. "type": "object",
  2666. "required": [
  2667. "ocs"
  2668. ],
  2669. "properties": {
  2670. "ocs": {
  2671. "type": "object",
  2672. "required": [
  2673. "meta",
  2674. "data"
  2675. ],
  2676. "properties": {
  2677. "meta": {
  2678. "$ref": "#/components/schemas/OCSMeta"
  2679. },
  2680. "data": {}
  2681. }
  2682. }
  2683. }
  2684. }
  2685. }
  2686. }
  2687. },
  2688. "200": {
  2689. "description": "The email notification was sent successfully",
  2690. "content": {
  2691. "application/json": {
  2692. "schema": {
  2693. "type": "object",
  2694. "required": [
  2695. "ocs"
  2696. ],
  2697. "properties": {
  2698. "ocs": {
  2699. "type": "object",
  2700. "required": [
  2701. "meta",
  2702. "data"
  2703. ],
  2704. "properties": {
  2705. "meta": {
  2706. "$ref": "#/components/schemas/OCSMeta"
  2707. },
  2708. "data": {}
  2709. }
  2710. }
  2711. }
  2712. }
  2713. }
  2714. }
  2715. }
  2716. }
  2717. }
  2718. },
  2719. "/ocs/v2.php/apps/files_sharing/api/v1/shares/pending/{id}": {
  2720. "post": {
  2721. "operationId": "shareapi-accept-share",
  2722. "summary": "Accept a share",
  2723. "tags": [
  2724. "shareapi"
  2725. ],
  2726. "security": [
  2727. {
  2728. "bearer_auth": []
  2729. },
  2730. {
  2731. "basic_auth": []
  2732. }
  2733. ],
  2734. "parameters": [
  2735. {
  2736. "name": "id",
  2737. "in": "path",
  2738. "description": "ID of the share",
  2739. "required": true,
  2740. "schema": {
  2741. "type": "string"
  2742. }
  2743. },
  2744. {
  2745. "name": "OCS-APIRequest",
  2746. "in": "header",
  2747. "description": "Required to be true for the API request to pass",
  2748. "required": true,
  2749. "schema": {
  2750. "type": "boolean",
  2751. "default": true
  2752. }
  2753. }
  2754. ],
  2755. "responses": {
  2756. "200": {
  2757. "description": "Share accepted successfully",
  2758. "content": {
  2759. "application/json": {
  2760. "schema": {
  2761. "type": "object",
  2762. "required": [
  2763. "ocs"
  2764. ],
  2765. "properties": {
  2766. "ocs": {
  2767. "type": "object",
  2768. "required": [
  2769. "meta",
  2770. "data"
  2771. ],
  2772. "properties": {
  2773. "meta": {
  2774. "$ref": "#/components/schemas/OCSMeta"
  2775. },
  2776. "data": {}
  2777. }
  2778. }
  2779. }
  2780. }
  2781. }
  2782. }
  2783. },
  2784. "404": {
  2785. "description": "Share not found",
  2786. "content": {
  2787. "application/json": {
  2788. "schema": {
  2789. "type": "object",
  2790. "required": [
  2791. "ocs"
  2792. ],
  2793. "properties": {
  2794. "ocs": {
  2795. "type": "object",
  2796. "required": [
  2797. "meta",
  2798. "data"
  2799. ],
  2800. "properties": {
  2801. "meta": {
  2802. "$ref": "#/components/schemas/OCSMeta"
  2803. },
  2804. "data": {}
  2805. }
  2806. }
  2807. }
  2808. }
  2809. }
  2810. }
  2811. },
  2812. "400": {
  2813. "description": "Share could not be accepted",
  2814. "content": {
  2815. "application/json": {
  2816. "schema": {
  2817. "type": "object",
  2818. "required": [
  2819. "ocs"
  2820. ],
  2821. "properties": {
  2822. "ocs": {
  2823. "type": "object",
  2824. "required": [
  2825. "meta",
  2826. "data"
  2827. ],
  2828. "properties": {
  2829. "meta": {
  2830. "$ref": "#/components/schemas/OCSMeta"
  2831. },
  2832. "data": {}
  2833. }
  2834. }
  2835. }
  2836. }
  2837. }
  2838. }
  2839. }
  2840. }
  2841. }
  2842. },
  2843. "/ocs/v2.php/apps/files_sharing/api/v1/deletedshares": {
  2844. "get": {
  2845. "operationId": "deleted_shareapi-index",
  2846. "summary": "Get a list of all deleted shares",
  2847. "tags": [
  2848. "deleted_shareapi"
  2849. ],
  2850. "security": [
  2851. {
  2852. "bearer_auth": []
  2853. },
  2854. {
  2855. "basic_auth": []
  2856. }
  2857. ],
  2858. "parameters": [
  2859. {
  2860. "name": "OCS-APIRequest",
  2861. "in": "header",
  2862. "description": "Required to be true for the API request to pass",
  2863. "required": true,
  2864. "schema": {
  2865. "type": "boolean",
  2866. "default": true
  2867. }
  2868. }
  2869. ],
  2870. "responses": {
  2871. "200": {
  2872. "description": "Deleted shares returned",
  2873. "content": {
  2874. "application/json": {
  2875. "schema": {
  2876. "type": "object",
  2877. "required": [
  2878. "ocs"
  2879. ],
  2880. "properties": {
  2881. "ocs": {
  2882. "type": "object",
  2883. "required": [
  2884. "meta",
  2885. "data"
  2886. ],
  2887. "properties": {
  2888. "meta": {
  2889. "$ref": "#/components/schemas/OCSMeta"
  2890. },
  2891. "data": {
  2892. "type": "array",
  2893. "items": {
  2894. "$ref": "#/components/schemas/DeletedShare"
  2895. }
  2896. }
  2897. }
  2898. }
  2899. }
  2900. }
  2901. }
  2902. }
  2903. }
  2904. }
  2905. }
  2906. },
  2907. "/ocs/v2.php/apps/files_sharing/api/v1/deletedshares/{id}": {
  2908. "post": {
  2909. "operationId": "deleted_shareapi-undelete",
  2910. "summary": "Undelete a deleted share",
  2911. "tags": [
  2912. "deleted_shareapi"
  2913. ],
  2914. "security": [
  2915. {
  2916. "bearer_auth": []
  2917. },
  2918. {
  2919. "basic_auth": []
  2920. }
  2921. ],
  2922. "parameters": [
  2923. {
  2924. "name": "id",
  2925. "in": "path",
  2926. "description": "ID of the share",
  2927. "required": true,
  2928. "schema": {
  2929. "type": "string"
  2930. }
  2931. },
  2932. {
  2933. "name": "OCS-APIRequest",
  2934. "in": "header",
  2935. "description": "Required to be true for the API request to pass",
  2936. "required": true,
  2937. "schema": {
  2938. "type": "boolean",
  2939. "default": true
  2940. }
  2941. }
  2942. ],
  2943. "responses": {
  2944. "200": {
  2945. "description": "Share undeleted successfully",
  2946. "content": {
  2947. "application/json": {
  2948. "schema": {
  2949. "type": "object",
  2950. "required": [
  2951. "ocs"
  2952. ],
  2953. "properties": {
  2954. "ocs": {
  2955. "type": "object",
  2956. "required": [
  2957. "meta",
  2958. "data"
  2959. ],
  2960. "properties": {
  2961. "meta": {
  2962. "$ref": "#/components/schemas/OCSMeta"
  2963. },
  2964. "data": {}
  2965. }
  2966. }
  2967. }
  2968. }
  2969. }
  2970. }
  2971. },
  2972. "404": {
  2973. "description": "Share not found",
  2974. "content": {
  2975. "application/json": {
  2976. "schema": {
  2977. "type": "object",
  2978. "required": [
  2979. "ocs"
  2980. ],
  2981. "properties": {
  2982. "ocs": {
  2983. "type": "object",
  2984. "required": [
  2985. "meta",
  2986. "data"
  2987. ],
  2988. "properties": {
  2989. "meta": {
  2990. "$ref": "#/components/schemas/OCSMeta"
  2991. },
  2992. "data": {}
  2993. }
  2994. }
  2995. }
  2996. }
  2997. }
  2998. }
  2999. }
  3000. }
  3001. }
  3002. },
  3003. "/ocs/v2.php/apps/files_sharing/api/v1/sharees": {
  3004. "get": {
  3005. "operationId": "shareesapi-search",
  3006. "summary": "Search for sharees",
  3007. "tags": [
  3008. "shareesapi"
  3009. ],
  3010. "security": [
  3011. {
  3012. "bearer_auth": []
  3013. },
  3014. {
  3015. "basic_auth": []
  3016. }
  3017. ],
  3018. "parameters": [
  3019. {
  3020. "name": "search",
  3021. "in": "query",
  3022. "description": "Text to search for",
  3023. "schema": {
  3024. "type": "string",
  3025. "default": ""
  3026. }
  3027. },
  3028. {
  3029. "name": "itemType",
  3030. "in": "query",
  3031. "description": "Limit to specific item types",
  3032. "schema": {
  3033. "type": "string",
  3034. "nullable": true
  3035. }
  3036. },
  3037. {
  3038. "name": "page",
  3039. "in": "query",
  3040. "description": "Page offset for searching",
  3041. "schema": {
  3042. "type": "integer",
  3043. "format": "int64",
  3044. "default": 1
  3045. }
  3046. },
  3047. {
  3048. "name": "perPage",
  3049. "in": "query",
  3050. "description": "Limit amount of search results per page",
  3051. "schema": {
  3052. "type": "integer",
  3053. "format": "int64",
  3054. "default": 200
  3055. }
  3056. },
  3057. {
  3058. "name": "shareType",
  3059. "in": "query",
  3060. "description": "Limit to specific share types",
  3061. "schema": {
  3062. "nullable": true,
  3063. "oneOf": [
  3064. {
  3065. "type": "integer",
  3066. "format": "int64"
  3067. },
  3068. {
  3069. "type": "array",
  3070. "items": {
  3071. "type": "integer",
  3072. "format": "int64"
  3073. }
  3074. }
  3075. ]
  3076. }
  3077. },
  3078. {
  3079. "name": "lookup",
  3080. "in": "query",
  3081. "description": "If a global lookup should be performed too",
  3082. "schema": {
  3083. "type": "integer",
  3084. "default": 0,
  3085. "enum": [
  3086. 0,
  3087. 1
  3088. ]
  3089. }
  3090. },
  3091. {
  3092. "name": "OCS-APIRequest",
  3093. "in": "header",
  3094. "description": "Required to be true for the API request to pass",
  3095. "required": true,
  3096. "schema": {
  3097. "type": "boolean",
  3098. "default": true
  3099. }
  3100. }
  3101. ],
  3102. "responses": {
  3103. "200": {
  3104. "description": "Sharees search result returned",
  3105. "headers": {
  3106. "Link": {
  3107. "schema": {
  3108. "type": "string"
  3109. }
  3110. }
  3111. },
  3112. "content": {
  3113. "application/json": {
  3114. "schema": {
  3115. "type": "object",
  3116. "required": [
  3117. "ocs"
  3118. ],
  3119. "properties": {
  3120. "ocs": {
  3121. "type": "object",
  3122. "required": [
  3123. "meta",
  3124. "data"
  3125. ],
  3126. "properties": {
  3127. "meta": {
  3128. "$ref": "#/components/schemas/OCSMeta"
  3129. },
  3130. "data": {
  3131. "$ref": "#/components/schemas/ShareesSearchResult"
  3132. }
  3133. }
  3134. }
  3135. }
  3136. }
  3137. }
  3138. }
  3139. },
  3140. "400": {
  3141. "description": "Invalid search parameters",
  3142. "content": {
  3143. "application/json": {
  3144. "schema": {
  3145. "type": "object",
  3146. "required": [
  3147. "ocs"
  3148. ],
  3149. "properties": {
  3150. "ocs": {
  3151. "type": "object",
  3152. "required": [
  3153. "meta",
  3154. "data"
  3155. ],
  3156. "properties": {
  3157. "meta": {
  3158. "$ref": "#/components/schemas/OCSMeta"
  3159. },
  3160. "data": {}
  3161. }
  3162. }
  3163. }
  3164. }
  3165. }
  3166. }
  3167. }
  3168. }
  3169. }
  3170. },
  3171. "/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended": {
  3172. "get": {
  3173. "operationId": "shareesapi-find-recommended",
  3174. "summary": "Find recommended sharees",
  3175. "tags": [
  3176. "shareesapi"
  3177. ],
  3178. "security": [
  3179. {
  3180. "bearer_auth": []
  3181. },
  3182. {
  3183. "basic_auth": []
  3184. }
  3185. ],
  3186. "parameters": [
  3187. {
  3188. "name": "itemType",
  3189. "in": "query",
  3190. "description": "Limit to specific item types",
  3191. "required": true,
  3192. "schema": {
  3193. "type": "string"
  3194. }
  3195. },
  3196. {
  3197. "name": "shareType",
  3198. "in": "query",
  3199. "description": "Limit to specific share types",
  3200. "schema": {
  3201. "nullable": true,
  3202. "oneOf": [
  3203. {
  3204. "type": "integer",
  3205. "format": "int64"
  3206. },
  3207. {
  3208. "type": "array",
  3209. "items": {
  3210. "type": "integer",
  3211. "format": "int64"
  3212. }
  3213. }
  3214. ]
  3215. }
  3216. },
  3217. {
  3218. "name": "OCS-APIRequest",
  3219. "in": "header",
  3220. "description": "Required to be true for the API request to pass",
  3221. "required": true,
  3222. "schema": {
  3223. "type": "boolean",
  3224. "default": true
  3225. }
  3226. }
  3227. ],
  3228. "responses": {
  3229. "200": {
  3230. "description": "Recommended sharees returned",
  3231. "content": {
  3232. "application/json": {
  3233. "schema": {
  3234. "type": "object",
  3235. "required": [
  3236. "ocs"
  3237. ],
  3238. "properties": {
  3239. "ocs": {
  3240. "type": "object",
  3241. "required": [
  3242. "meta",
  3243. "data"
  3244. ],
  3245. "properties": {
  3246. "meta": {
  3247. "$ref": "#/components/schemas/OCSMeta"
  3248. },
  3249. "data": {
  3250. "$ref": "#/components/schemas/ShareesRecommendedResult"
  3251. }
  3252. }
  3253. }
  3254. }
  3255. }
  3256. }
  3257. }
  3258. }
  3259. }
  3260. }
  3261. },
  3262. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares": {
  3263. "get": {
  3264. "operationId": "remote-get-shares",
  3265. "summary": "Get a list of accepted remote shares",
  3266. "tags": [
  3267. "remote"
  3268. ],
  3269. "security": [
  3270. {
  3271. "bearer_auth": []
  3272. },
  3273. {
  3274. "basic_auth": []
  3275. }
  3276. ],
  3277. "parameters": [
  3278. {
  3279. "name": "OCS-APIRequest",
  3280. "in": "header",
  3281. "description": "Required to be true for the API request to pass",
  3282. "required": true,
  3283. "schema": {
  3284. "type": "boolean",
  3285. "default": true
  3286. }
  3287. }
  3288. ],
  3289. "responses": {
  3290. "200": {
  3291. "description": "Accepted remote shares returned",
  3292. "content": {
  3293. "application/json": {
  3294. "schema": {
  3295. "type": "object",
  3296. "required": [
  3297. "ocs"
  3298. ],
  3299. "properties": {
  3300. "ocs": {
  3301. "type": "object",
  3302. "required": [
  3303. "meta",
  3304. "data"
  3305. ],
  3306. "properties": {
  3307. "meta": {
  3308. "$ref": "#/components/schemas/OCSMeta"
  3309. },
  3310. "data": {
  3311. "type": "array",
  3312. "items": {
  3313. "$ref": "#/components/schemas/RemoteShare"
  3314. }
  3315. }
  3316. }
  3317. }
  3318. }
  3319. }
  3320. }
  3321. }
  3322. }
  3323. }
  3324. }
  3325. },
  3326. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending": {
  3327. "get": {
  3328. "operationId": "remote-get-open-shares",
  3329. "summary": "Get list of pending remote shares",
  3330. "tags": [
  3331. "remote"
  3332. ],
  3333. "security": [
  3334. {
  3335. "bearer_auth": []
  3336. },
  3337. {
  3338. "basic_auth": []
  3339. }
  3340. ],
  3341. "parameters": [
  3342. {
  3343. "name": "OCS-APIRequest",
  3344. "in": "header",
  3345. "description": "Required to be true for the API request to pass",
  3346. "required": true,
  3347. "schema": {
  3348. "type": "boolean",
  3349. "default": true
  3350. }
  3351. }
  3352. ],
  3353. "responses": {
  3354. "200": {
  3355. "description": "Pending remote shares returned",
  3356. "content": {
  3357. "application/json": {
  3358. "schema": {
  3359. "type": "object",
  3360. "required": [
  3361. "ocs"
  3362. ],
  3363. "properties": {
  3364. "ocs": {
  3365. "type": "object",
  3366. "required": [
  3367. "meta",
  3368. "data"
  3369. ],
  3370. "properties": {
  3371. "meta": {
  3372. "$ref": "#/components/schemas/OCSMeta"
  3373. },
  3374. "data": {
  3375. "type": "array",
  3376. "items": {
  3377. "$ref": "#/components/schemas/RemoteShare"
  3378. }
  3379. }
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. }
  3386. }
  3387. }
  3388. }
  3389. },
  3390. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}": {
  3391. "post": {
  3392. "operationId": "remote-accept-share",
  3393. "summary": "Accept a remote share",
  3394. "tags": [
  3395. "remote"
  3396. ],
  3397. "security": [
  3398. {
  3399. "bearer_auth": []
  3400. },
  3401. {
  3402. "basic_auth": []
  3403. }
  3404. ],
  3405. "parameters": [
  3406. {
  3407. "name": "id",
  3408. "in": "path",
  3409. "description": "ID of the share",
  3410. "required": true,
  3411. "schema": {
  3412. "type": "integer",
  3413. "format": "int64"
  3414. }
  3415. },
  3416. {
  3417. "name": "OCS-APIRequest",
  3418. "in": "header",
  3419. "description": "Required to be true for the API request to pass",
  3420. "required": true,
  3421. "schema": {
  3422. "type": "boolean",
  3423. "default": true
  3424. }
  3425. }
  3426. ],
  3427. "responses": {
  3428. "200": {
  3429. "description": "Share accepted successfully",
  3430. "content": {
  3431. "application/json": {
  3432. "schema": {
  3433. "type": "object",
  3434. "required": [
  3435. "ocs"
  3436. ],
  3437. "properties": {
  3438. "ocs": {
  3439. "type": "object",
  3440. "required": [
  3441. "meta",
  3442. "data"
  3443. ],
  3444. "properties": {
  3445. "meta": {
  3446. "$ref": "#/components/schemas/OCSMeta"
  3447. },
  3448. "data": {}
  3449. }
  3450. }
  3451. }
  3452. }
  3453. }
  3454. }
  3455. },
  3456. "404": {
  3457. "description": "Share not found",
  3458. "content": {
  3459. "application/json": {
  3460. "schema": {
  3461. "type": "object",
  3462. "required": [
  3463. "ocs"
  3464. ],
  3465. "properties": {
  3466. "ocs": {
  3467. "type": "object",
  3468. "required": [
  3469. "meta",
  3470. "data"
  3471. ],
  3472. "properties": {
  3473. "meta": {
  3474. "$ref": "#/components/schemas/OCSMeta"
  3475. },
  3476. "data": {}
  3477. }
  3478. }
  3479. }
  3480. }
  3481. }
  3482. }
  3483. }
  3484. }
  3485. },
  3486. "delete": {
  3487. "operationId": "remote-decline-share",
  3488. "summary": "Decline a remote share",
  3489. "tags": [
  3490. "remote"
  3491. ],
  3492. "security": [
  3493. {
  3494. "bearer_auth": []
  3495. },
  3496. {
  3497. "basic_auth": []
  3498. }
  3499. ],
  3500. "parameters": [
  3501. {
  3502. "name": "id",
  3503. "in": "path",
  3504. "description": "ID of the share",
  3505. "required": true,
  3506. "schema": {
  3507. "type": "integer",
  3508. "format": "int64"
  3509. }
  3510. },
  3511. {
  3512. "name": "OCS-APIRequest",
  3513. "in": "header",
  3514. "description": "Required to be true for the API request to pass",
  3515. "required": true,
  3516. "schema": {
  3517. "type": "boolean",
  3518. "default": true
  3519. }
  3520. }
  3521. ],
  3522. "responses": {
  3523. "200": {
  3524. "description": "Share declined successfully",
  3525. "content": {
  3526. "application/json": {
  3527. "schema": {
  3528. "type": "object",
  3529. "required": [
  3530. "ocs"
  3531. ],
  3532. "properties": {
  3533. "ocs": {
  3534. "type": "object",
  3535. "required": [
  3536. "meta",
  3537. "data"
  3538. ],
  3539. "properties": {
  3540. "meta": {
  3541. "$ref": "#/components/schemas/OCSMeta"
  3542. },
  3543. "data": {}
  3544. }
  3545. }
  3546. }
  3547. }
  3548. }
  3549. }
  3550. },
  3551. "404": {
  3552. "description": "Share not found",
  3553. "content": {
  3554. "application/json": {
  3555. "schema": {
  3556. "type": "object",
  3557. "required": [
  3558. "ocs"
  3559. ],
  3560. "properties": {
  3561. "ocs": {
  3562. "type": "object",
  3563. "required": [
  3564. "meta",
  3565. "data"
  3566. ],
  3567. "properties": {
  3568. "meta": {
  3569. "$ref": "#/components/schemas/OCSMeta"
  3570. },
  3571. "data": {}
  3572. }
  3573. }
  3574. }
  3575. }
  3576. }
  3577. }
  3578. }
  3579. }
  3580. }
  3581. },
  3582. "/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}": {
  3583. "get": {
  3584. "operationId": "remote-get-share",
  3585. "summary": "Get info of a remote share",
  3586. "tags": [
  3587. "remote"
  3588. ],
  3589. "security": [
  3590. {
  3591. "bearer_auth": []
  3592. },
  3593. {
  3594. "basic_auth": []
  3595. }
  3596. ],
  3597. "parameters": [
  3598. {
  3599. "name": "id",
  3600. "in": "path",
  3601. "description": "ID of the share",
  3602. "required": true,
  3603. "schema": {
  3604. "type": "integer",
  3605. "format": "int64"
  3606. }
  3607. },
  3608. {
  3609. "name": "OCS-APIRequest",
  3610. "in": "header",
  3611. "description": "Required to be true for the API request to pass",
  3612. "required": true,
  3613. "schema": {
  3614. "type": "boolean",
  3615. "default": true
  3616. }
  3617. }
  3618. ],
  3619. "responses": {
  3620. "200": {
  3621. "description": "Share returned",
  3622. "content": {
  3623. "application/json": {
  3624. "schema": {
  3625. "type": "object",
  3626. "required": [
  3627. "ocs"
  3628. ],
  3629. "properties": {
  3630. "ocs": {
  3631. "type": "object",
  3632. "required": [
  3633. "meta",
  3634. "data"
  3635. ],
  3636. "properties": {
  3637. "meta": {
  3638. "$ref": "#/components/schemas/OCSMeta"
  3639. },
  3640. "data": {
  3641. "$ref": "#/components/schemas/RemoteShare"
  3642. }
  3643. }
  3644. }
  3645. }
  3646. }
  3647. }
  3648. }
  3649. },
  3650. "404": {
  3651. "description": "Share not found",
  3652. "content": {
  3653. "application/json": {
  3654. "schema": {
  3655. "type": "object",
  3656. "required": [
  3657. "ocs"
  3658. ],
  3659. "properties": {
  3660. "ocs": {
  3661. "type": "object",
  3662. "required": [
  3663. "meta",
  3664. "data"
  3665. ],
  3666. "properties": {
  3667. "meta": {
  3668. "$ref": "#/components/schemas/OCSMeta"
  3669. },
  3670. "data": {}
  3671. }
  3672. }
  3673. }
  3674. }
  3675. }
  3676. }
  3677. }
  3678. }
  3679. },
  3680. "delete": {
  3681. "operationId": "remote-unshare",
  3682. "summary": "Unshare a remote share",
  3683. "tags": [
  3684. "remote"
  3685. ],
  3686. "security": [
  3687. {
  3688. "bearer_auth": []
  3689. },
  3690. {
  3691. "basic_auth": []
  3692. }
  3693. ],
  3694. "parameters": [
  3695. {
  3696. "name": "id",
  3697. "in": "path",
  3698. "description": "ID of the share",
  3699. "required": true,
  3700. "schema": {
  3701. "type": "integer",
  3702. "format": "int64"
  3703. }
  3704. },
  3705. {
  3706. "name": "OCS-APIRequest",
  3707. "in": "header",
  3708. "description": "Required to be true for the API request to pass",
  3709. "required": true,
  3710. "schema": {
  3711. "type": "boolean",
  3712. "default": true
  3713. }
  3714. }
  3715. ],
  3716. "responses": {
  3717. "200": {
  3718. "description": "Share unshared successfully",
  3719. "content": {
  3720. "application/json": {
  3721. "schema": {
  3722. "type": "object",
  3723. "required": [
  3724. "ocs"
  3725. ],
  3726. "properties": {
  3727. "ocs": {
  3728. "type": "object",
  3729. "required": [
  3730. "meta",
  3731. "data"
  3732. ],
  3733. "properties": {
  3734. "meta": {
  3735. "$ref": "#/components/schemas/OCSMeta"
  3736. },
  3737. "data": {}
  3738. }
  3739. }
  3740. }
  3741. }
  3742. }
  3743. }
  3744. },
  3745. "404": {
  3746. "description": "Share not found",
  3747. "content": {
  3748. "application/json": {
  3749. "schema": {
  3750. "type": "object",
  3751. "required": [
  3752. "ocs"
  3753. ],
  3754. "properties": {
  3755. "ocs": {
  3756. "type": "object",
  3757. "required": [
  3758. "meta",
  3759. "data"
  3760. ],
  3761. "properties": {
  3762. "meta": {
  3763. "$ref": "#/components/schemas/OCSMeta"
  3764. },
  3765. "data": {}
  3766. }
  3767. }
  3768. }
  3769. }
  3770. }
  3771. }
  3772. },
  3773. "403": {
  3774. "description": "Unsharing is not possible",
  3775. "content": {
  3776. "application/json": {
  3777. "schema": {
  3778. "type": "object",
  3779. "required": [
  3780. "ocs"
  3781. ],
  3782. "properties": {
  3783. "ocs": {
  3784. "type": "object",
  3785. "required": [
  3786. "meta",
  3787. "data"
  3788. ],
  3789. "properties": {
  3790. "meta": {
  3791. "$ref": "#/components/schemas/OCSMeta"
  3792. },
  3793. "data": {}
  3794. }
  3795. }
  3796. }
  3797. }
  3798. }
  3799. }
  3800. }
  3801. }
  3802. }
  3803. }
  3804. },
  3805. "tags": [
  3806. {
  3807. "name": "external_shares",
  3808. "description": "Class ExternalSharesController"
  3809. }
  3810. ]
  3811. }