openapi.json 157 KB

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