1
0

openapi-full.json 409 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "core-full",
  5. "version": "0.0.1",
  6. "description": "Core functionality of Nextcloud",
  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. "AutocompleteResult": {
  24. "type": "object",
  25. "required": [
  26. "id",
  27. "label",
  28. "icon",
  29. "source",
  30. "status",
  31. "subline",
  32. "shareWithDisplayNameUnique"
  33. ],
  34. "properties": {
  35. "id": {
  36. "type": "string"
  37. },
  38. "label": {
  39. "type": "string"
  40. },
  41. "icon": {
  42. "type": "string"
  43. },
  44. "source": {
  45. "type": "string"
  46. },
  47. "status": {
  48. "oneOf": [
  49. {
  50. "type": "object",
  51. "required": [
  52. "status",
  53. "message",
  54. "icon",
  55. "clearAt"
  56. ],
  57. "properties": {
  58. "status": {
  59. "type": "string"
  60. },
  61. "message": {
  62. "type": "string",
  63. "nullable": true
  64. },
  65. "icon": {
  66. "type": "string",
  67. "nullable": true
  68. },
  69. "clearAt": {
  70. "type": "integer",
  71. "format": "int64",
  72. "nullable": true
  73. }
  74. }
  75. },
  76. {
  77. "type": "string"
  78. }
  79. ]
  80. },
  81. "subline": {
  82. "type": "string"
  83. },
  84. "shareWithDisplayNameUnique": {
  85. "type": "string"
  86. }
  87. }
  88. },
  89. "Capabilities": {
  90. "type": "object",
  91. "required": [
  92. "core"
  93. ],
  94. "properties": {
  95. "core": {
  96. "type": "object",
  97. "required": [
  98. "pollinterval",
  99. "webdav-root",
  100. "reference-api",
  101. "reference-regex",
  102. "mod-rewrite-working"
  103. ],
  104. "properties": {
  105. "pollinterval": {
  106. "type": "integer",
  107. "format": "int64"
  108. },
  109. "webdav-root": {
  110. "type": "string"
  111. },
  112. "reference-api": {
  113. "type": "boolean"
  114. },
  115. "reference-regex": {
  116. "type": "string"
  117. },
  118. "mod-rewrite-working": {
  119. "type": "boolean"
  120. }
  121. }
  122. }
  123. }
  124. },
  125. "Collection": {
  126. "type": "object",
  127. "required": [
  128. "id",
  129. "name",
  130. "resources"
  131. ],
  132. "properties": {
  133. "id": {
  134. "type": "integer",
  135. "format": "int64"
  136. },
  137. "name": {
  138. "type": "string"
  139. },
  140. "resources": {
  141. "type": "array",
  142. "items": {
  143. "$ref": "#/components/schemas/Resource"
  144. }
  145. }
  146. }
  147. },
  148. "ContactsAction": {
  149. "type": "object",
  150. "required": [
  151. "title",
  152. "icon",
  153. "hyperlink",
  154. "appId"
  155. ],
  156. "properties": {
  157. "title": {
  158. "type": "string"
  159. },
  160. "icon": {
  161. "type": "string"
  162. },
  163. "hyperlink": {
  164. "type": "string"
  165. },
  166. "appId": {
  167. "type": "string"
  168. }
  169. }
  170. },
  171. "LoginFlowV2": {
  172. "type": "object",
  173. "required": [
  174. "poll",
  175. "login"
  176. ],
  177. "properties": {
  178. "poll": {
  179. "type": "object",
  180. "required": [
  181. "token",
  182. "endpoint"
  183. ],
  184. "properties": {
  185. "token": {
  186. "type": "string"
  187. },
  188. "endpoint": {
  189. "type": "string"
  190. }
  191. }
  192. },
  193. "login": {
  194. "type": "string"
  195. }
  196. }
  197. },
  198. "LoginFlowV2Credentials": {
  199. "type": "object",
  200. "required": [
  201. "server",
  202. "loginName",
  203. "appPassword"
  204. ],
  205. "properties": {
  206. "server": {
  207. "type": "string"
  208. },
  209. "loginName": {
  210. "type": "string"
  211. },
  212. "appPassword": {
  213. "type": "string"
  214. }
  215. }
  216. },
  217. "NavigationEntry": {
  218. "type": "object",
  219. "required": [
  220. "id",
  221. "href",
  222. "icon",
  223. "type",
  224. "name",
  225. "active",
  226. "classes",
  227. "unread"
  228. ],
  229. "properties": {
  230. "id": {
  231. "type": "string"
  232. },
  233. "order": {
  234. "type": "integer",
  235. "format": "int64"
  236. },
  237. "href": {
  238. "type": "string"
  239. },
  240. "icon": {
  241. "type": "string"
  242. },
  243. "type": {
  244. "type": "string"
  245. },
  246. "name": {
  247. "type": "string"
  248. },
  249. "app": {
  250. "type": "string"
  251. },
  252. "default": {
  253. "type": "boolean"
  254. },
  255. "active": {
  256. "type": "boolean"
  257. },
  258. "classes": {
  259. "type": "string"
  260. },
  261. "unread": {
  262. "type": "integer",
  263. "format": "int64"
  264. }
  265. }
  266. },
  267. "OCSMeta": {
  268. "type": "object",
  269. "required": [
  270. "status",
  271. "statuscode"
  272. ],
  273. "properties": {
  274. "status": {
  275. "type": "string"
  276. },
  277. "statuscode": {
  278. "type": "integer"
  279. },
  280. "message": {
  281. "type": "string"
  282. },
  283. "totalitems": {
  284. "type": "string"
  285. },
  286. "itemsperpage": {
  287. "type": "string"
  288. }
  289. }
  290. },
  291. "OpenGraphObject": {
  292. "type": "object",
  293. "required": [
  294. "id",
  295. "name",
  296. "description",
  297. "thumb",
  298. "link"
  299. ],
  300. "properties": {
  301. "id": {
  302. "type": "string"
  303. },
  304. "name": {
  305. "type": "string"
  306. },
  307. "description": {
  308. "type": "string",
  309. "nullable": true
  310. },
  311. "thumb": {
  312. "type": "string",
  313. "nullable": true
  314. },
  315. "link": {
  316. "type": "string"
  317. }
  318. }
  319. },
  320. "PublicCapabilities": {
  321. "type": "object",
  322. "required": [
  323. "bruteforce"
  324. ],
  325. "properties": {
  326. "bruteforce": {
  327. "type": "object",
  328. "required": [
  329. "delay",
  330. "allow-listed"
  331. ],
  332. "properties": {
  333. "delay": {
  334. "type": "integer",
  335. "format": "int64"
  336. },
  337. "allow-listed": {
  338. "type": "boolean"
  339. }
  340. }
  341. }
  342. }
  343. },
  344. "Reference": {
  345. "type": "object",
  346. "required": [
  347. "richObjectType",
  348. "richObject",
  349. "openGraphObject",
  350. "accessible"
  351. ],
  352. "properties": {
  353. "richObjectType": {
  354. "type": "string"
  355. },
  356. "richObject": {
  357. "type": "object",
  358. "additionalProperties": {
  359. "type": "object",
  360. "nullable": true
  361. }
  362. },
  363. "openGraphObject": {
  364. "$ref": "#/components/schemas/OpenGraphObject"
  365. },
  366. "accessible": {
  367. "type": "boolean"
  368. }
  369. }
  370. },
  371. "ReferenceProvider": {
  372. "type": "object",
  373. "required": [
  374. "id",
  375. "title",
  376. "icon_url",
  377. "order",
  378. "search_providers_ids"
  379. ],
  380. "properties": {
  381. "id": {
  382. "type": "string"
  383. },
  384. "title": {
  385. "type": "string"
  386. },
  387. "icon_url": {
  388. "type": "string"
  389. },
  390. "order": {
  391. "type": "integer",
  392. "format": "int64"
  393. },
  394. "search_providers_ids": {
  395. "type": "array",
  396. "nullable": true,
  397. "items": {
  398. "type": "string"
  399. }
  400. }
  401. }
  402. },
  403. "Resource": {
  404. "type": "object",
  405. "required": [
  406. "richObjectType",
  407. "richObject",
  408. "openGraphObject",
  409. "accessible"
  410. ],
  411. "properties": {
  412. "richObjectType": {
  413. "type": "string"
  414. },
  415. "richObject": {
  416. "type": "object",
  417. "additionalProperties": {
  418. "type": "object",
  419. "nullable": true
  420. }
  421. },
  422. "openGraphObject": {
  423. "$ref": "#/components/schemas/OpenGraphObject"
  424. },
  425. "accessible": {
  426. "type": "boolean"
  427. }
  428. }
  429. },
  430. "Status": {
  431. "type": "object",
  432. "required": [
  433. "installed",
  434. "maintenance",
  435. "needsDbUpgrade",
  436. "version",
  437. "versionstring",
  438. "edition",
  439. "productname",
  440. "extendedSupport"
  441. ],
  442. "properties": {
  443. "installed": {
  444. "type": "boolean"
  445. },
  446. "maintenance": {
  447. "type": "boolean"
  448. },
  449. "needsDbUpgrade": {
  450. "type": "boolean"
  451. },
  452. "version": {
  453. "type": "string"
  454. },
  455. "versionstring": {
  456. "type": "string"
  457. },
  458. "edition": {
  459. "type": "string"
  460. },
  461. "productname": {
  462. "type": "string"
  463. },
  464. "extendedSupport": {
  465. "type": "boolean"
  466. }
  467. }
  468. },
  469. "TaskProcessingIO": {
  470. "type": "object",
  471. "additionalProperties": {
  472. "anyOf": [
  473. {
  474. "type": "number"
  475. },
  476. {
  477. "type": "array",
  478. "items": {
  479. "type": "number"
  480. }
  481. },
  482. {
  483. "type": "string"
  484. },
  485. {
  486. "type": "array",
  487. "items": {
  488. "type": "string"
  489. }
  490. }
  491. ]
  492. }
  493. },
  494. "TaskProcessingShape": {
  495. "type": "object",
  496. "required": [
  497. "name",
  498. "description",
  499. "type"
  500. ],
  501. "properties": {
  502. "name": {
  503. "type": "string"
  504. },
  505. "description": {
  506. "type": "string"
  507. },
  508. "type": {
  509. "type": "string",
  510. "enum": [
  511. "Number",
  512. "Text",
  513. "Audio",
  514. "Image",
  515. "Video",
  516. "File",
  517. "Enum",
  518. "ListOfNumbers",
  519. "ListOfTexts",
  520. "ListOfImages",
  521. "ListOfAudios",
  522. "ListOfVideos",
  523. "ListOfFiles"
  524. ]
  525. }
  526. }
  527. },
  528. "TaskProcessingTask": {
  529. "type": "object",
  530. "required": [
  531. "id",
  532. "lastUpdated",
  533. "type",
  534. "status",
  535. "userId",
  536. "appId",
  537. "input",
  538. "output",
  539. "customId",
  540. "completionExpectedAt",
  541. "progress",
  542. "scheduledAt",
  543. "startedAt",
  544. "endedAt"
  545. ],
  546. "properties": {
  547. "id": {
  548. "type": "integer",
  549. "format": "int64"
  550. },
  551. "lastUpdated": {
  552. "type": "integer",
  553. "format": "int64"
  554. },
  555. "type": {
  556. "type": "string"
  557. },
  558. "status": {
  559. "type": "string",
  560. "enum": [
  561. "STATUS_CANCELLED",
  562. "STATUS_FAILED",
  563. "STATUS_SUCCESSFUL",
  564. "STATUS_RUNNING",
  565. "STATUS_SCHEDULED",
  566. "STATUS_UNKNOWN"
  567. ]
  568. },
  569. "userId": {
  570. "type": "string",
  571. "nullable": true
  572. },
  573. "appId": {
  574. "type": "string"
  575. },
  576. "input": {
  577. "$ref": "#/components/schemas/TaskProcessingIO"
  578. },
  579. "output": {
  580. "$ref": "#/components/schemas/TaskProcessingIO",
  581. "nullable": true
  582. },
  583. "customId": {
  584. "type": "string",
  585. "nullable": true
  586. },
  587. "completionExpectedAt": {
  588. "type": "integer",
  589. "format": "int64",
  590. "nullable": true
  591. },
  592. "progress": {
  593. "type": "number",
  594. "format": "double",
  595. "nullable": true
  596. },
  597. "scheduledAt": {
  598. "type": "integer",
  599. "format": "int64",
  600. "nullable": true
  601. },
  602. "startedAt": {
  603. "type": "integer",
  604. "format": "int64",
  605. "nullable": true
  606. },
  607. "endedAt": {
  608. "type": "integer",
  609. "format": "int64",
  610. "nullable": true
  611. }
  612. }
  613. },
  614. "TaskProcessingTaskType": {
  615. "type": "object",
  616. "required": [
  617. "name",
  618. "description",
  619. "inputShape",
  620. "inputShapeEnumValues",
  621. "inputShapeDefaults",
  622. "optionalInputShape",
  623. "optionalInputShapeEnumValues",
  624. "optionalInputShapeDefaults",
  625. "outputShape",
  626. "outputShapeEnumValues",
  627. "optionalOutputShape",
  628. "optionalOutputShapeEnumValues"
  629. ],
  630. "properties": {
  631. "name": {
  632. "type": "string"
  633. },
  634. "description": {
  635. "type": "string"
  636. },
  637. "inputShape": {
  638. "type": "array",
  639. "items": {
  640. "$ref": "#/components/schemas/TaskProcessingShape"
  641. }
  642. },
  643. "inputShapeEnumValues": {
  644. "type": "array",
  645. "items": {
  646. "type": "array",
  647. "items": {
  648. "type": "object",
  649. "required": [
  650. "name",
  651. "value"
  652. ],
  653. "properties": {
  654. "name": {
  655. "type": "string"
  656. },
  657. "value": {
  658. "type": "string"
  659. }
  660. }
  661. }
  662. }
  663. },
  664. "inputShapeDefaults": {
  665. "type": "object",
  666. "additionalProperties": {
  667. "oneOf": [
  668. {
  669. "type": "number"
  670. },
  671. {
  672. "type": "string"
  673. }
  674. ]
  675. }
  676. },
  677. "optionalInputShape": {
  678. "type": "array",
  679. "items": {
  680. "$ref": "#/components/schemas/TaskProcessingShape"
  681. }
  682. },
  683. "optionalInputShapeEnumValues": {
  684. "type": "array",
  685. "items": {
  686. "type": "array",
  687. "items": {
  688. "type": "object",
  689. "required": [
  690. "name",
  691. "value"
  692. ],
  693. "properties": {
  694. "name": {
  695. "type": "string"
  696. },
  697. "value": {
  698. "type": "string"
  699. }
  700. }
  701. }
  702. }
  703. },
  704. "optionalInputShapeDefaults": {
  705. "type": "object",
  706. "additionalProperties": {
  707. "oneOf": [
  708. {
  709. "type": "number"
  710. },
  711. {
  712. "type": "string"
  713. }
  714. ]
  715. }
  716. },
  717. "outputShape": {
  718. "type": "array",
  719. "items": {
  720. "$ref": "#/components/schemas/TaskProcessingShape"
  721. }
  722. },
  723. "outputShapeEnumValues": {
  724. "type": "array",
  725. "items": {
  726. "type": "array",
  727. "items": {
  728. "type": "object",
  729. "required": [
  730. "name",
  731. "value"
  732. ],
  733. "properties": {
  734. "name": {
  735. "type": "string"
  736. },
  737. "value": {
  738. "type": "string"
  739. }
  740. }
  741. }
  742. }
  743. },
  744. "optionalOutputShape": {
  745. "type": "array",
  746. "items": {
  747. "$ref": "#/components/schemas/TaskProcessingShape"
  748. }
  749. },
  750. "optionalOutputShapeEnumValues": {
  751. "type": "array",
  752. "items": {
  753. "type": "array",
  754. "items": {
  755. "type": "object",
  756. "required": [
  757. "name",
  758. "value"
  759. ],
  760. "properties": {
  761. "name": {
  762. "type": "string"
  763. },
  764. "value": {
  765. "type": "string"
  766. }
  767. }
  768. }
  769. }
  770. }
  771. }
  772. },
  773. "Team": {
  774. "type": "object",
  775. "required": [
  776. "id",
  777. "name",
  778. "icon"
  779. ],
  780. "properties": {
  781. "id": {
  782. "type": "string"
  783. },
  784. "name": {
  785. "type": "string"
  786. },
  787. "icon": {
  788. "type": "string"
  789. }
  790. }
  791. },
  792. "TeamResource": {
  793. "type": "object",
  794. "required": [
  795. "id",
  796. "label",
  797. "url",
  798. "iconSvg",
  799. "iconURL",
  800. "iconEmoji"
  801. ],
  802. "properties": {
  803. "id": {
  804. "type": "integer",
  805. "format": "int64"
  806. },
  807. "label": {
  808. "type": "string"
  809. },
  810. "url": {
  811. "type": "string"
  812. },
  813. "iconSvg": {
  814. "type": "string",
  815. "nullable": true
  816. },
  817. "iconURL": {
  818. "type": "string",
  819. "nullable": true
  820. },
  821. "iconEmoji": {
  822. "type": "string",
  823. "nullable": true
  824. }
  825. }
  826. },
  827. "TextProcessingTask": {
  828. "type": "object",
  829. "required": [
  830. "id",
  831. "type",
  832. "status",
  833. "userId",
  834. "appId",
  835. "input",
  836. "output",
  837. "identifier",
  838. "completionExpectedAt"
  839. ],
  840. "properties": {
  841. "id": {
  842. "type": "integer",
  843. "format": "int64",
  844. "nullable": true
  845. },
  846. "type": {
  847. "type": "string"
  848. },
  849. "status": {
  850. "type": "integer",
  851. "format": "int64",
  852. "enum": [
  853. 0,
  854. 1,
  855. 2,
  856. 3,
  857. 4
  858. ]
  859. },
  860. "userId": {
  861. "type": "string",
  862. "nullable": true
  863. },
  864. "appId": {
  865. "type": "string"
  866. },
  867. "input": {
  868. "type": "string"
  869. },
  870. "output": {
  871. "type": "string",
  872. "nullable": true
  873. },
  874. "identifier": {
  875. "type": "string"
  876. },
  877. "completionExpectedAt": {
  878. "type": "integer",
  879. "format": "int64",
  880. "nullable": true
  881. }
  882. }
  883. },
  884. "TextToImageTask": {
  885. "type": "object",
  886. "required": [
  887. "id",
  888. "status",
  889. "userId",
  890. "appId",
  891. "input",
  892. "identifier",
  893. "numberOfImages",
  894. "completionExpectedAt"
  895. ],
  896. "properties": {
  897. "id": {
  898. "type": "integer",
  899. "format": "int64",
  900. "nullable": true
  901. },
  902. "status": {
  903. "type": "integer",
  904. "format": "int64",
  905. "enum": [
  906. 0,
  907. 1,
  908. 2,
  909. 3,
  910. 4
  911. ]
  912. },
  913. "userId": {
  914. "type": "string",
  915. "nullable": true
  916. },
  917. "appId": {
  918. "type": "string"
  919. },
  920. "input": {
  921. "type": "string"
  922. },
  923. "identifier": {
  924. "type": "string",
  925. "nullable": true
  926. },
  927. "numberOfImages": {
  928. "type": "integer",
  929. "format": "int64"
  930. },
  931. "completionExpectedAt": {
  932. "type": "integer",
  933. "format": "int64",
  934. "nullable": true
  935. }
  936. }
  937. },
  938. "UnifiedSearchProvider": {
  939. "type": "object",
  940. "required": [
  941. "id",
  942. "appId",
  943. "name",
  944. "icon",
  945. "order",
  946. "triggers",
  947. "filters",
  948. "inAppSearch"
  949. ],
  950. "properties": {
  951. "id": {
  952. "type": "string"
  953. },
  954. "appId": {
  955. "type": "string"
  956. },
  957. "name": {
  958. "type": "string"
  959. },
  960. "icon": {
  961. "type": "string"
  962. },
  963. "order": {
  964. "type": "integer",
  965. "format": "int64"
  966. },
  967. "triggers": {
  968. "type": "array",
  969. "items": {
  970. "type": "string"
  971. }
  972. },
  973. "filters": {
  974. "type": "object",
  975. "additionalProperties": {
  976. "type": "string"
  977. }
  978. },
  979. "inAppSearch": {
  980. "type": "boolean"
  981. }
  982. }
  983. },
  984. "UnifiedSearchResult": {
  985. "type": "object",
  986. "required": [
  987. "name",
  988. "isPaginated",
  989. "entries",
  990. "cursor"
  991. ],
  992. "properties": {
  993. "name": {
  994. "type": "string"
  995. },
  996. "isPaginated": {
  997. "type": "boolean"
  998. },
  999. "entries": {
  1000. "type": "array",
  1001. "items": {
  1002. "$ref": "#/components/schemas/UnifiedSearchResultEntry"
  1003. }
  1004. },
  1005. "cursor": {
  1006. "nullable": true,
  1007. "oneOf": [
  1008. {
  1009. "type": "integer",
  1010. "format": "int64"
  1011. },
  1012. {
  1013. "type": "string"
  1014. }
  1015. ]
  1016. }
  1017. }
  1018. },
  1019. "UnifiedSearchResultEntry": {
  1020. "type": "object",
  1021. "required": [
  1022. "thumbnailUrl",
  1023. "title",
  1024. "subline",
  1025. "resourceUrl",
  1026. "icon",
  1027. "rounded",
  1028. "attributes"
  1029. ],
  1030. "properties": {
  1031. "thumbnailUrl": {
  1032. "type": "string"
  1033. },
  1034. "title": {
  1035. "type": "string"
  1036. },
  1037. "subline": {
  1038. "type": "string"
  1039. },
  1040. "resourceUrl": {
  1041. "type": "string"
  1042. },
  1043. "icon": {
  1044. "type": "string"
  1045. },
  1046. "rounded": {
  1047. "type": "boolean"
  1048. },
  1049. "attributes": {
  1050. "type": "array",
  1051. "items": {
  1052. "type": "string"
  1053. }
  1054. }
  1055. }
  1056. }
  1057. }
  1058. },
  1059. "paths": {
  1060. "/ocs/v2.php/core/getapppassword": {
  1061. "get": {
  1062. "operationId": "app_password-get-app-password",
  1063. "summary": "Create app password",
  1064. "description": "This endpoint requires password confirmation",
  1065. "tags": [
  1066. "app_password"
  1067. ],
  1068. "security": [
  1069. {
  1070. "bearer_auth": []
  1071. },
  1072. {
  1073. "basic_auth": []
  1074. }
  1075. ],
  1076. "parameters": [
  1077. {
  1078. "name": "OCS-APIRequest",
  1079. "in": "header",
  1080. "description": "Required to be true for the API request to pass",
  1081. "required": true,
  1082. "schema": {
  1083. "type": "boolean",
  1084. "default": true
  1085. }
  1086. }
  1087. ],
  1088. "responses": {
  1089. "200": {
  1090. "description": "App password returned",
  1091. "content": {
  1092. "application/json": {
  1093. "schema": {
  1094. "type": "object",
  1095. "required": [
  1096. "ocs"
  1097. ],
  1098. "properties": {
  1099. "ocs": {
  1100. "type": "object",
  1101. "required": [
  1102. "meta",
  1103. "data"
  1104. ],
  1105. "properties": {
  1106. "meta": {
  1107. "$ref": "#/components/schemas/OCSMeta"
  1108. },
  1109. "data": {
  1110. "type": "object",
  1111. "required": [
  1112. "apppassword"
  1113. ],
  1114. "properties": {
  1115. "apppassword": {
  1116. "type": "string"
  1117. }
  1118. }
  1119. }
  1120. }
  1121. }
  1122. }
  1123. }
  1124. }
  1125. }
  1126. },
  1127. "403": {
  1128. "description": "Creating app password is not allowed",
  1129. "content": {
  1130. "application/json": {
  1131. "schema": {
  1132. "type": "object",
  1133. "required": [
  1134. "ocs"
  1135. ],
  1136. "properties": {
  1137. "ocs": {
  1138. "type": "object",
  1139. "required": [
  1140. "meta",
  1141. "data"
  1142. ],
  1143. "properties": {
  1144. "meta": {
  1145. "$ref": "#/components/schemas/OCSMeta"
  1146. },
  1147. "data": {}
  1148. }
  1149. }
  1150. }
  1151. }
  1152. }
  1153. }
  1154. }
  1155. }
  1156. }
  1157. },
  1158. "/ocs/v2.php/core/apppassword": {
  1159. "delete": {
  1160. "operationId": "app_password-delete-app-password",
  1161. "summary": "Delete app password",
  1162. "tags": [
  1163. "app_password"
  1164. ],
  1165. "security": [
  1166. {
  1167. "bearer_auth": []
  1168. },
  1169. {
  1170. "basic_auth": []
  1171. }
  1172. ],
  1173. "parameters": [
  1174. {
  1175. "name": "OCS-APIRequest",
  1176. "in": "header",
  1177. "description": "Required to be true for the API request to pass",
  1178. "required": true,
  1179. "schema": {
  1180. "type": "boolean",
  1181. "default": true
  1182. }
  1183. }
  1184. ],
  1185. "responses": {
  1186. "200": {
  1187. "description": "App password deleted successfully",
  1188. "content": {
  1189. "application/json": {
  1190. "schema": {
  1191. "type": "object",
  1192. "required": [
  1193. "ocs"
  1194. ],
  1195. "properties": {
  1196. "ocs": {
  1197. "type": "object",
  1198. "required": [
  1199. "meta",
  1200. "data"
  1201. ],
  1202. "properties": {
  1203. "meta": {
  1204. "$ref": "#/components/schemas/OCSMeta"
  1205. },
  1206. "data": {}
  1207. }
  1208. }
  1209. }
  1210. }
  1211. }
  1212. }
  1213. },
  1214. "403": {
  1215. "description": "Deleting app password is not allowed",
  1216. "content": {
  1217. "application/json": {
  1218. "schema": {
  1219. "type": "object",
  1220. "required": [
  1221. "ocs"
  1222. ],
  1223. "properties": {
  1224. "ocs": {
  1225. "type": "object",
  1226. "required": [
  1227. "meta",
  1228. "data"
  1229. ],
  1230. "properties": {
  1231. "meta": {
  1232. "$ref": "#/components/schemas/OCSMeta"
  1233. },
  1234. "data": {}
  1235. }
  1236. }
  1237. }
  1238. }
  1239. }
  1240. }
  1241. }
  1242. }
  1243. }
  1244. },
  1245. "/ocs/v2.php/core/apppassword/rotate": {
  1246. "post": {
  1247. "operationId": "app_password-rotate-app-password",
  1248. "summary": "Rotate app password",
  1249. "tags": [
  1250. "app_password"
  1251. ],
  1252. "security": [
  1253. {
  1254. "bearer_auth": []
  1255. },
  1256. {
  1257. "basic_auth": []
  1258. }
  1259. ],
  1260. "parameters": [
  1261. {
  1262. "name": "OCS-APIRequest",
  1263. "in": "header",
  1264. "description": "Required to be true for the API request to pass",
  1265. "required": true,
  1266. "schema": {
  1267. "type": "boolean",
  1268. "default": true
  1269. }
  1270. }
  1271. ],
  1272. "responses": {
  1273. "200": {
  1274. "description": "App password returned",
  1275. "content": {
  1276. "application/json": {
  1277. "schema": {
  1278. "type": "object",
  1279. "required": [
  1280. "ocs"
  1281. ],
  1282. "properties": {
  1283. "ocs": {
  1284. "type": "object",
  1285. "required": [
  1286. "meta",
  1287. "data"
  1288. ],
  1289. "properties": {
  1290. "meta": {
  1291. "$ref": "#/components/schemas/OCSMeta"
  1292. },
  1293. "data": {
  1294. "type": "object",
  1295. "required": [
  1296. "apppassword"
  1297. ],
  1298. "properties": {
  1299. "apppassword": {
  1300. "type": "string"
  1301. }
  1302. }
  1303. }
  1304. }
  1305. }
  1306. }
  1307. }
  1308. }
  1309. }
  1310. },
  1311. "403": {
  1312. "description": "Rotating app password is not allowed",
  1313. "content": {
  1314. "application/json": {
  1315. "schema": {
  1316. "type": "object",
  1317. "required": [
  1318. "ocs"
  1319. ],
  1320. "properties": {
  1321. "ocs": {
  1322. "type": "object",
  1323. "required": [
  1324. "meta",
  1325. "data"
  1326. ],
  1327. "properties": {
  1328. "meta": {
  1329. "$ref": "#/components/schemas/OCSMeta"
  1330. },
  1331. "data": {}
  1332. }
  1333. }
  1334. }
  1335. }
  1336. }
  1337. }
  1338. }
  1339. }
  1340. }
  1341. },
  1342. "/ocs/v2.php/core/apppassword/confirm": {
  1343. "put": {
  1344. "operationId": "app_password-confirm-user-password",
  1345. "summary": "Confirm the user password",
  1346. "tags": [
  1347. "app_password"
  1348. ],
  1349. "security": [
  1350. {
  1351. "bearer_auth": []
  1352. },
  1353. {
  1354. "basic_auth": []
  1355. }
  1356. ],
  1357. "requestBody": {
  1358. "required": true,
  1359. "content": {
  1360. "application/json": {
  1361. "schema": {
  1362. "type": "object",
  1363. "required": [
  1364. "password"
  1365. ],
  1366. "properties": {
  1367. "password": {
  1368. "type": "string",
  1369. "description": "The password of the user"
  1370. }
  1371. }
  1372. }
  1373. }
  1374. }
  1375. },
  1376. "parameters": [
  1377. {
  1378. "name": "OCS-APIRequest",
  1379. "in": "header",
  1380. "description": "Required to be true for the API request to pass",
  1381. "required": true,
  1382. "schema": {
  1383. "type": "boolean",
  1384. "default": true
  1385. }
  1386. }
  1387. ],
  1388. "responses": {
  1389. "200": {
  1390. "description": "Password confirmation succeeded",
  1391. "content": {
  1392. "application/json": {
  1393. "schema": {
  1394. "type": "object",
  1395. "required": [
  1396. "ocs"
  1397. ],
  1398. "properties": {
  1399. "ocs": {
  1400. "type": "object",
  1401. "required": [
  1402. "meta",
  1403. "data"
  1404. ],
  1405. "properties": {
  1406. "meta": {
  1407. "$ref": "#/components/schemas/OCSMeta"
  1408. },
  1409. "data": {
  1410. "type": "object",
  1411. "required": [
  1412. "lastLogin"
  1413. ],
  1414. "properties": {
  1415. "lastLogin": {
  1416. "type": "integer",
  1417. "format": "int64"
  1418. }
  1419. }
  1420. }
  1421. }
  1422. }
  1423. }
  1424. }
  1425. }
  1426. }
  1427. },
  1428. "403": {
  1429. "description": "Password confirmation failed",
  1430. "content": {
  1431. "application/json": {
  1432. "schema": {
  1433. "type": "object",
  1434. "required": [
  1435. "ocs"
  1436. ],
  1437. "properties": {
  1438. "ocs": {
  1439. "type": "object",
  1440. "required": [
  1441. "meta",
  1442. "data"
  1443. ],
  1444. "properties": {
  1445. "meta": {
  1446. "$ref": "#/components/schemas/OCSMeta"
  1447. },
  1448. "data": {}
  1449. }
  1450. }
  1451. }
  1452. }
  1453. }
  1454. }
  1455. }
  1456. }
  1457. }
  1458. },
  1459. "/ocs/v2.php/core/autocomplete/get": {
  1460. "get": {
  1461. "operationId": "auto_complete-get",
  1462. "summary": "Autocomplete a query",
  1463. "tags": [
  1464. "auto_complete"
  1465. ],
  1466. "security": [
  1467. {
  1468. "bearer_auth": []
  1469. },
  1470. {
  1471. "basic_auth": []
  1472. }
  1473. ],
  1474. "parameters": [
  1475. {
  1476. "name": "search",
  1477. "in": "query",
  1478. "description": "Text to search for",
  1479. "required": true,
  1480. "schema": {
  1481. "type": "string"
  1482. }
  1483. },
  1484. {
  1485. "name": "itemType",
  1486. "in": "query",
  1487. "description": "Type of the items to search for",
  1488. "schema": {
  1489. "type": "string",
  1490. "nullable": true
  1491. }
  1492. },
  1493. {
  1494. "name": "itemId",
  1495. "in": "query",
  1496. "description": "ID of the items to search for",
  1497. "schema": {
  1498. "type": "string",
  1499. "nullable": true
  1500. }
  1501. },
  1502. {
  1503. "name": "sorter",
  1504. "in": "query",
  1505. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
  1506. "schema": {
  1507. "type": "string",
  1508. "nullable": true
  1509. }
  1510. },
  1511. {
  1512. "name": "shareTypes[]",
  1513. "in": "query",
  1514. "description": "Types of shares to search for",
  1515. "schema": {
  1516. "type": "array",
  1517. "default": [],
  1518. "items": {
  1519. "type": "integer",
  1520. "format": "int64"
  1521. }
  1522. }
  1523. },
  1524. {
  1525. "name": "limit",
  1526. "in": "query",
  1527. "description": "Maximum number of results to return",
  1528. "schema": {
  1529. "type": "integer",
  1530. "format": "int64",
  1531. "default": 10
  1532. }
  1533. },
  1534. {
  1535. "name": "OCS-APIRequest",
  1536. "in": "header",
  1537. "description": "Required to be true for the API request to pass",
  1538. "required": true,
  1539. "schema": {
  1540. "type": "boolean",
  1541. "default": true
  1542. }
  1543. }
  1544. ],
  1545. "responses": {
  1546. "200": {
  1547. "description": "Autocomplete results returned",
  1548. "content": {
  1549. "application/json": {
  1550. "schema": {
  1551. "type": "object",
  1552. "required": [
  1553. "ocs"
  1554. ],
  1555. "properties": {
  1556. "ocs": {
  1557. "type": "object",
  1558. "required": [
  1559. "meta",
  1560. "data"
  1561. ],
  1562. "properties": {
  1563. "meta": {
  1564. "$ref": "#/components/schemas/OCSMeta"
  1565. },
  1566. "data": {
  1567. "type": "array",
  1568. "items": {
  1569. "$ref": "#/components/schemas/AutocompleteResult"
  1570. }
  1571. }
  1572. }
  1573. }
  1574. }
  1575. }
  1576. }
  1577. }
  1578. }
  1579. }
  1580. }
  1581. },
  1582. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  1583. "get": {
  1584. "operationId": "collaboration_resources-list-collection",
  1585. "summary": "Get a collection",
  1586. "tags": [
  1587. "collaboration_resources"
  1588. ],
  1589. "security": [
  1590. {
  1591. "bearer_auth": []
  1592. },
  1593. {
  1594. "basic_auth": []
  1595. }
  1596. ],
  1597. "parameters": [
  1598. {
  1599. "name": "collectionId",
  1600. "in": "path",
  1601. "description": "ID of the collection",
  1602. "required": true,
  1603. "schema": {
  1604. "type": "integer",
  1605. "format": "int64"
  1606. }
  1607. },
  1608. {
  1609. "name": "OCS-APIRequest",
  1610. "in": "header",
  1611. "description": "Required to be true for the API request to pass",
  1612. "required": true,
  1613. "schema": {
  1614. "type": "boolean",
  1615. "default": true
  1616. }
  1617. }
  1618. ],
  1619. "responses": {
  1620. "200": {
  1621. "description": "Collection returned",
  1622. "content": {
  1623. "application/json": {
  1624. "schema": {
  1625. "type": "object",
  1626. "required": [
  1627. "ocs"
  1628. ],
  1629. "properties": {
  1630. "ocs": {
  1631. "type": "object",
  1632. "required": [
  1633. "meta",
  1634. "data"
  1635. ],
  1636. "properties": {
  1637. "meta": {
  1638. "$ref": "#/components/schemas/OCSMeta"
  1639. },
  1640. "data": {
  1641. "$ref": "#/components/schemas/Collection"
  1642. }
  1643. }
  1644. }
  1645. }
  1646. }
  1647. }
  1648. }
  1649. },
  1650. "404": {
  1651. "description": "Collection not found",
  1652. "content": {
  1653. "application/json": {
  1654. "schema": {
  1655. "type": "object",
  1656. "required": [
  1657. "ocs"
  1658. ],
  1659. "properties": {
  1660. "ocs": {
  1661. "type": "object",
  1662. "required": [
  1663. "meta",
  1664. "data"
  1665. ],
  1666. "properties": {
  1667. "meta": {
  1668. "$ref": "#/components/schemas/OCSMeta"
  1669. },
  1670. "data": {}
  1671. }
  1672. }
  1673. }
  1674. }
  1675. }
  1676. }
  1677. },
  1678. "500": {
  1679. "description": "",
  1680. "content": {
  1681. "application/json": {
  1682. "schema": {
  1683. "type": "object",
  1684. "required": [
  1685. "ocs"
  1686. ],
  1687. "properties": {
  1688. "ocs": {
  1689. "type": "object",
  1690. "required": [
  1691. "meta",
  1692. "data"
  1693. ],
  1694. "properties": {
  1695. "meta": {
  1696. "$ref": "#/components/schemas/OCSMeta"
  1697. },
  1698. "data": {}
  1699. }
  1700. }
  1701. }
  1702. }
  1703. }
  1704. }
  1705. }
  1706. }
  1707. },
  1708. "post": {
  1709. "operationId": "collaboration_resources-add-resource",
  1710. "summary": "Add a resource to a collection",
  1711. "tags": [
  1712. "collaboration_resources"
  1713. ],
  1714. "security": [
  1715. {
  1716. "bearer_auth": []
  1717. },
  1718. {
  1719. "basic_auth": []
  1720. }
  1721. ],
  1722. "requestBody": {
  1723. "required": true,
  1724. "content": {
  1725. "application/json": {
  1726. "schema": {
  1727. "type": "object",
  1728. "required": [
  1729. "resourceType",
  1730. "resourceId"
  1731. ],
  1732. "properties": {
  1733. "resourceType": {
  1734. "type": "string",
  1735. "description": "Name of the resource"
  1736. },
  1737. "resourceId": {
  1738. "type": "string",
  1739. "description": "ID of the resource"
  1740. }
  1741. }
  1742. }
  1743. }
  1744. }
  1745. },
  1746. "parameters": [
  1747. {
  1748. "name": "collectionId",
  1749. "in": "path",
  1750. "description": "ID of the collection",
  1751. "required": true,
  1752. "schema": {
  1753. "type": "integer",
  1754. "format": "int64"
  1755. }
  1756. },
  1757. {
  1758. "name": "OCS-APIRequest",
  1759. "in": "header",
  1760. "description": "Required to be true for the API request to pass",
  1761. "required": true,
  1762. "schema": {
  1763. "type": "boolean",
  1764. "default": true
  1765. }
  1766. }
  1767. ],
  1768. "responses": {
  1769. "200": {
  1770. "description": "Collection returned",
  1771. "content": {
  1772. "application/json": {
  1773. "schema": {
  1774. "type": "object",
  1775. "required": [
  1776. "ocs"
  1777. ],
  1778. "properties": {
  1779. "ocs": {
  1780. "type": "object",
  1781. "required": [
  1782. "meta",
  1783. "data"
  1784. ],
  1785. "properties": {
  1786. "meta": {
  1787. "$ref": "#/components/schemas/OCSMeta"
  1788. },
  1789. "data": {
  1790. "$ref": "#/components/schemas/Collection"
  1791. }
  1792. }
  1793. }
  1794. }
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "404": {
  1800. "description": "Collection not found or resource inaccessible",
  1801. "content": {
  1802. "application/json": {
  1803. "schema": {
  1804. "type": "object",
  1805. "required": [
  1806. "ocs"
  1807. ],
  1808. "properties": {
  1809. "ocs": {
  1810. "type": "object",
  1811. "required": [
  1812. "meta",
  1813. "data"
  1814. ],
  1815. "properties": {
  1816. "meta": {
  1817. "$ref": "#/components/schemas/OCSMeta"
  1818. },
  1819. "data": {}
  1820. }
  1821. }
  1822. }
  1823. }
  1824. }
  1825. }
  1826. },
  1827. "500": {
  1828. "description": "",
  1829. "content": {
  1830. "application/json": {
  1831. "schema": {
  1832. "type": "object",
  1833. "required": [
  1834. "ocs"
  1835. ],
  1836. "properties": {
  1837. "ocs": {
  1838. "type": "object",
  1839. "required": [
  1840. "meta",
  1841. "data"
  1842. ],
  1843. "properties": {
  1844. "meta": {
  1845. "$ref": "#/components/schemas/OCSMeta"
  1846. },
  1847. "data": {}
  1848. }
  1849. }
  1850. }
  1851. }
  1852. }
  1853. }
  1854. }
  1855. }
  1856. },
  1857. "delete": {
  1858. "operationId": "collaboration_resources-remove-resource",
  1859. "summary": "Remove a resource from a collection",
  1860. "tags": [
  1861. "collaboration_resources"
  1862. ],
  1863. "security": [
  1864. {
  1865. "bearer_auth": []
  1866. },
  1867. {
  1868. "basic_auth": []
  1869. }
  1870. ],
  1871. "parameters": [
  1872. {
  1873. "name": "collectionId",
  1874. "in": "path",
  1875. "description": "ID of the collection",
  1876. "required": true,
  1877. "schema": {
  1878. "type": "integer",
  1879. "format": "int64"
  1880. }
  1881. },
  1882. {
  1883. "name": "resourceType",
  1884. "in": "query",
  1885. "description": "Name of the resource",
  1886. "required": true,
  1887. "schema": {
  1888. "type": "string"
  1889. }
  1890. },
  1891. {
  1892. "name": "resourceId",
  1893. "in": "query",
  1894. "description": "ID of the resource",
  1895. "required": true,
  1896. "schema": {
  1897. "type": "string"
  1898. }
  1899. },
  1900. {
  1901. "name": "OCS-APIRequest",
  1902. "in": "header",
  1903. "description": "Required to be true for the API request to pass",
  1904. "required": true,
  1905. "schema": {
  1906. "type": "boolean",
  1907. "default": true
  1908. }
  1909. }
  1910. ],
  1911. "responses": {
  1912. "200": {
  1913. "description": "Collection returned",
  1914. "content": {
  1915. "application/json": {
  1916. "schema": {
  1917. "type": "object",
  1918. "required": [
  1919. "ocs"
  1920. ],
  1921. "properties": {
  1922. "ocs": {
  1923. "type": "object",
  1924. "required": [
  1925. "meta",
  1926. "data"
  1927. ],
  1928. "properties": {
  1929. "meta": {
  1930. "$ref": "#/components/schemas/OCSMeta"
  1931. },
  1932. "data": {
  1933. "$ref": "#/components/schemas/Collection"
  1934. }
  1935. }
  1936. }
  1937. }
  1938. }
  1939. }
  1940. }
  1941. },
  1942. "404": {
  1943. "description": "Collection or resource not found",
  1944. "content": {
  1945. "application/json": {
  1946. "schema": {
  1947. "type": "object",
  1948. "required": [
  1949. "ocs"
  1950. ],
  1951. "properties": {
  1952. "ocs": {
  1953. "type": "object",
  1954. "required": [
  1955. "meta",
  1956. "data"
  1957. ],
  1958. "properties": {
  1959. "meta": {
  1960. "$ref": "#/components/schemas/OCSMeta"
  1961. },
  1962. "data": {}
  1963. }
  1964. }
  1965. }
  1966. }
  1967. }
  1968. }
  1969. },
  1970. "500": {
  1971. "description": "",
  1972. "content": {
  1973. "application/json": {
  1974. "schema": {
  1975. "type": "object",
  1976. "required": [
  1977. "ocs"
  1978. ],
  1979. "properties": {
  1980. "ocs": {
  1981. "type": "object",
  1982. "required": [
  1983. "meta",
  1984. "data"
  1985. ],
  1986. "properties": {
  1987. "meta": {
  1988. "$ref": "#/components/schemas/OCSMeta"
  1989. },
  1990. "data": {}
  1991. }
  1992. }
  1993. }
  1994. }
  1995. }
  1996. }
  1997. }
  1998. }
  1999. },
  2000. "put": {
  2001. "operationId": "collaboration_resources-rename-collection",
  2002. "summary": "Rename a collection",
  2003. "tags": [
  2004. "collaboration_resources"
  2005. ],
  2006. "security": [
  2007. {
  2008. "bearer_auth": []
  2009. },
  2010. {
  2011. "basic_auth": []
  2012. }
  2013. ],
  2014. "requestBody": {
  2015. "required": true,
  2016. "content": {
  2017. "application/json": {
  2018. "schema": {
  2019. "type": "object",
  2020. "required": [
  2021. "collectionName"
  2022. ],
  2023. "properties": {
  2024. "collectionName": {
  2025. "type": "string",
  2026. "description": "New name"
  2027. }
  2028. }
  2029. }
  2030. }
  2031. }
  2032. },
  2033. "parameters": [
  2034. {
  2035. "name": "collectionId",
  2036. "in": "path",
  2037. "description": "ID of the collection",
  2038. "required": true,
  2039. "schema": {
  2040. "type": "integer",
  2041. "format": "int64"
  2042. }
  2043. },
  2044. {
  2045. "name": "OCS-APIRequest",
  2046. "in": "header",
  2047. "description": "Required to be true for the API request to pass",
  2048. "required": true,
  2049. "schema": {
  2050. "type": "boolean",
  2051. "default": true
  2052. }
  2053. }
  2054. ],
  2055. "responses": {
  2056. "200": {
  2057. "description": "Collection returned",
  2058. "content": {
  2059. "application/json": {
  2060. "schema": {
  2061. "type": "object",
  2062. "required": [
  2063. "ocs"
  2064. ],
  2065. "properties": {
  2066. "ocs": {
  2067. "type": "object",
  2068. "required": [
  2069. "meta",
  2070. "data"
  2071. ],
  2072. "properties": {
  2073. "meta": {
  2074. "$ref": "#/components/schemas/OCSMeta"
  2075. },
  2076. "data": {
  2077. "$ref": "#/components/schemas/Collection"
  2078. }
  2079. }
  2080. }
  2081. }
  2082. }
  2083. }
  2084. }
  2085. },
  2086. "404": {
  2087. "description": "Collection not found",
  2088. "content": {
  2089. "application/json": {
  2090. "schema": {
  2091. "type": "object",
  2092. "required": [
  2093. "ocs"
  2094. ],
  2095. "properties": {
  2096. "ocs": {
  2097. "type": "object",
  2098. "required": [
  2099. "meta",
  2100. "data"
  2101. ],
  2102. "properties": {
  2103. "meta": {
  2104. "$ref": "#/components/schemas/OCSMeta"
  2105. },
  2106. "data": {}
  2107. }
  2108. }
  2109. }
  2110. }
  2111. }
  2112. }
  2113. },
  2114. "500": {
  2115. "description": "",
  2116. "content": {
  2117. "application/json": {
  2118. "schema": {
  2119. "type": "object",
  2120. "required": [
  2121. "ocs"
  2122. ],
  2123. "properties": {
  2124. "ocs": {
  2125. "type": "object",
  2126. "required": [
  2127. "meta",
  2128. "data"
  2129. ],
  2130. "properties": {
  2131. "meta": {
  2132. "$ref": "#/components/schemas/OCSMeta"
  2133. },
  2134. "data": {}
  2135. }
  2136. }
  2137. }
  2138. }
  2139. }
  2140. }
  2141. }
  2142. }
  2143. }
  2144. },
  2145. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2146. "get": {
  2147. "operationId": "collaboration_resources-search-collections",
  2148. "summary": "Search for collections",
  2149. "tags": [
  2150. "collaboration_resources"
  2151. ],
  2152. "security": [
  2153. {
  2154. "bearer_auth": []
  2155. },
  2156. {
  2157. "basic_auth": []
  2158. }
  2159. ],
  2160. "parameters": [
  2161. {
  2162. "name": "filter",
  2163. "in": "path",
  2164. "description": "Filter collections",
  2165. "required": true,
  2166. "schema": {
  2167. "type": "string"
  2168. }
  2169. },
  2170. {
  2171. "name": "OCS-APIRequest",
  2172. "in": "header",
  2173. "description": "Required to be true for the API request to pass",
  2174. "required": true,
  2175. "schema": {
  2176. "type": "boolean",
  2177. "default": true
  2178. }
  2179. }
  2180. ],
  2181. "responses": {
  2182. "200": {
  2183. "description": "Collections returned",
  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. "type": "array",
  2204. "items": {
  2205. "$ref": "#/components/schemas/Collection"
  2206. }
  2207. }
  2208. }
  2209. }
  2210. }
  2211. }
  2212. }
  2213. }
  2214. },
  2215. "404": {
  2216. "description": "Collection not found",
  2217. "content": {
  2218. "application/json": {
  2219. "schema": {
  2220. "type": "object",
  2221. "required": [
  2222. "ocs"
  2223. ],
  2224. "properties": {
  2225. "ocs": {
  2226. "type": "object",
  2227. "required": [
  2228. "meta",
  2229. "data"
  2230. ],
  2231. "properties": {
  2232. "meta": {
  2233. "$ref": "#/components/schemas/OCSMeta"
  2234. },
  2235. "data": {}
  2236. }
  2237. }
  2238. }
  2239. }
  2240. }
  2241. }
  2242. }
  2243. }
  2244. }
  2245. },
  2246. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  2247. "get": {
  2248. "operationId": "collaboration_resources-get-collections-by-resource",
  2249. "summary": "Get collections by resource",
  2250. "tags": [
  2251. "collaboration_resources"
  2252. ],
  2253. "security": [
  2254. {
  2255. "bearer_auth": []
  2256. },
  2257. {
  2258. "basic_auth": []
  2259. }
  2260. ],
  2261. "parameters": [
  2262. {
  2263. "name": "resourceType",
  2264. "in": "path",
  2265. "description": "Type of the resource",
  2266. "required": true,
  2267. "schema": {
  2268. "type": "string"
  2269. }
  2270. },
  2271. {
  2272. "name": "resourceId",
  2273. "in": "path",
  2274. "description": "ID of the resource",
  2275. "required": true,
  2276. "schema": {
  2277. "type": "string"
  2278. }
  2279. },
  2280. {
  2281. "name": "OCS-APIRequest",
  2282. "in": "header",
  2283. "description": "Required to be true for the API request to pass",
  2284. "required": true,
  2285. "schema": {
  2286. "type": "boolean",
  2287. "default": true
  2288. }
  2289. }
  2290. ],
  2291. "responses": {
  2292. "200": {
  2293. "description": "Collections returned",
  2294. "content": {
  2295. "application/json": {
  2296. "schema": {
  2297. "type": "object",
  2298. "required": [
  2299. "ocs"
  2300. ],
  2301. "properties": {
  2302. "ocs": {
  2303. "type": "object",
  2304. "required": [
  2305. "meta",
  2306. "data"
  2307. ],
  2308. "properties": {
  2309. "meta": {
  2310. "$ref": "#/components/schemas/OCSMeta"
  2311. },
  2312. "data": {
  2313. "type": "array",
  2314. "items": {
  2315. "$ref": "#/components/schemas/Collection"
  2316. }
  2317. }
  2318. }
  2319. }
  2320. }
  2321. }
  2322. }
  2323. }
  2324. },
  2325. "404": {
  2326. "description": "Resource not accessible",
  2327. "content": {
  2328. "application/json": {
  2329. "schema": {
  2330. "type": "object",
  2331. "required": [
  2332. "ocs"
  2333. ],
  2334. "properties": {
  2335. "ocs": {
  2336. "type": "object",
  2337. "required": [
  2338. "meta",
  2339. "data"
  2340. ],
  2341. "properties": {
  2342. "meta": {
  2343. "$ref": "#/components/schemas/OCSMeta"
  2344. },
  2345. "data": {}
  2346. }
  2347. }
  2348. }
  2349. }
  2350. }
  2351. }
  2352. }
  2353. }
  2354. }
  2355. },
  2356. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  2357. "post": {
  2358. "operationId": "collaboration_resources-create-collection-on-resource",
  2359. "summary": "Create a collection for a resource",
  2360. "tags": [
  2361. "collaboration_resources"
  2362. ],
  2363. "security": [
  2364. {
  2365. "bearer_auth": []
  2366. },
  2367. {
  2368. "basic_auth": []
  2369. }
  2370. ],
  2371. "requestBody": {
  2372. "required": true,
  2373. "content": {
  2374. "application/json": {
  2375. "schema": {
  2376. "type": "object",
  2377. "required": [
  2378. "name"
  2379. ],
  2380. "properties": {
  2381. "name": {
  2382. "type": "string",
  2383. "description": "Name of the collection"
  2384. }
  2385. }
  2386. }
  2387. }
  2388. }
  2389. },
  2390. "parameters": [
  2391. {
  2392. "name": "baseResourceType",
  2393. "in": "path",
  2394. "description": "Type of the base resource",
  2395. "required": true,
  2396. "schema": {
  2397. "type": "string"
  2398. }
  2399. },
  2400. {
  2401. "name": "baseResourceId",
  2402. "in": "path",
  2403. "description": "ID of the base resource",
  2404. "required": true,
  2405. "schema": {
  2406. "type": "string"
  2407. }
  2408. },
  2409. {
  2410. "name": "OCS-APIRequest",
  2411. "in": "header",
  2412. "description": "Required to be true for the API request to pass",
  2413. "required": true,
  2414. "schema": {
  2415. "type": "boolean",
  2416. "default": true
  2417. }
  2418. }
  2419. ],
  2420. "responses": {
  2421. "200": {
  2422. "description": "Collection returned",
  2423. "content": {
  2424. "application/json": {
  2425. "schema": {
  2426. "type": "object",
  2427. "required": [
  2428. "ocs"
  2429. ],
  2430. "properties": {
  2431. "ocs": {
  2432. "type": "object",
  2433. "required": [
  2434. "meta",
  2435. "data"
  2436. ],
  2437. "properties": {
  2438. "meta": {
  2439. "$ref": "#/components/schemas/OCSMeta"
  2440. },
  2441. "data": {
  2442. "$ref": "#/components/schemas/Collection"
  2443. }
  2444. }
  2445. }
  2446. }
  2447. }
  2448. }
  2449. }
  2450. },
  2451. "400": {
  2452. "description": "Creating collection is not possible",
  2453. "content": {
  2454. "application/json": {
  2455. "schema": {
  2456. "type": "object",
  2457. "required": [
  2458. "ocs"
  2459. ],
  2460. "properties": {
  2461. "ocs": {
  2462. "type": "object",
  2463. "required": [
  2464. "meta",
  2465. "data"
  2466. ],
  2467. "properties": {
  2468. "meta": {
  2469. "$ref": "#/components/schemas/OCSMeta"
  2470. },
  2471. "data": {}
  2472. }
  2473. }
  2474. }
  2475. }
  2476. }
  2477. }
  2478. },
  2479. "404": {
  2480. "description": "Resource inaccessible",
  2481. "content": {
  2482. "application/json": {
  2483. "schema": {
  2484. "type": "object",
  2485. "required": [
  2486. "ocs"
  2487. ],
  2488. "properties": {
  2489. "ocs": {
  2490. "type": "object",
  2491. "required": [
  2492. "meta",
  2493. "data"
  2494. ],
  2495. "properties": {
  2496. "meta": {
  2497. "$ref": "#/components/schemas/OCSMeta"
  2498. },
  2499. "data": {}
  2500. }
  2501. }
  2502. }
  2503. }
  2504. }
  2505. }
  2506. },
  2507. "500": {
  2508. "description": "",
  2509. "content": {
  2510. "application/json": {
  2511. "schema": {
  2512. "type": "object",
  2513. "required": [
  2514. "ocs"
  2515. ],
  2516. "properties": {
  2517. "ocs": {
  2518. "type": "object",
  2519. "required": [
  2520. "meta",
  2521. "data"
  2522. ],
  2523. "properties": {
  2524. "meta": {
  2525. "$ref": "#/components/schemas/OCSMeta"
  2526. },
  2527. "data": {}
  2528. }
  2529. }
  2530. }
  2531. }
  2532. }
  2533. }
  2534. }
  2535. }
  2536. }
  2537. },
  2538. "/ocs/v2.php/hovercard/v1/{userId}": {
  2539. "get": {
  2540. "operationId": "hover_card-get-user",
  2541. "summary": "Get the account details for a hovercard",
  2542. "tags": [
  2543. "hover_card"
  2544. ],
  2545. "security": [
  2546. {
  2547. "bearer_auth": []
  2548. },
  2549. {
  2550. "basic_auth": []
  2551. }
  2552. ],
  2553. "parameters": [
  2554. {
  2555. "name": "userId",
  2556. "in": "path",
  2557. "description": "ID of the user",
  2558. "required": true,
  2559. "schema": {
  2560. "type": "string"
  2561. }
  2562. },
  2563. {
  2564. "name": "OCS-APIRequest",
  2565. "in": "header",
  2566. "description": "Required to be true for the API request to pass",
  2567. "required": true,
  2568. "schema": {
  2569. "type": "boolean",
  2570. "default": true
  2571. }
  2572. }
  2573. ],
  2574. "responses": {
  2575. "200": {
  2576. "description": "Account details returned",
  2577. "content": {
  2578. "application/json": {
  2579. "schema": {
  2580. "type": "object",
  2581. "required": [
  2582. "ocs"
  2583. ],
  2584. "properties": {
  2585. "ocs": {
  2586. "type": "object",
  2587. "required": [
  2588. "meta",
  2589. "data"
  2590. ],
  2591. "properties": {
  2592. "meta": {
  2593. "$ref": "#/components/schemas/OCSMeta"
  2594. },
  2595. "data": {
  2596. "type": "object",
  2597. "required": [
  2598. "userId",
  2599. "displayName",
  2600. "actions"
  2601. ],
  2602. "properties": {
  2603. "userId": {
  2604. "type": "string"
  2605. },
  2606. "displayName": {
  2607. "type": "string"
  2608. },
  2609. "actions": {
  2610. "type": "array",
  2611. "items": {
  2612. "$ref": "#/components/schemas/ContactsAction"
  2613. }
  2614. }
  2615. }
  2616. }
  2617. }
  2618. }
  2619. }
  2620. }
  2621. }
  2622. }
  2623. },
  2624. "404": {
  2625. "description": "Account not found",
  2626. "content": {
  2627. "application/json": {
  2628. "schema": {
  2629. "type": "object",
  2630. "required": [
  2631. "ocs"
  2632. ],
  2633. "properties": {
  2634. "ocs": {
  2635. "type": "object",
  2636. "required": [
  2637. "meta",
  2638. "data"
  2639. ],
  2640. "properties": {
  2641. "meta": {
  2642. "$ref": "#/components/schemas/OCSMeta"
  2643. },
  2644. "data": {}
  2645. }
  2646. }
  2647. }
  2648. }
  2649. }
  2650. }
  2651. }
  2652. }
  2653. }
  2654. },
  2655. "/ocs/v2.php/core/navigation/apps": {
  2656. "get": {
  2657. "operationId": "navigation-get-apps-navigation",
  2658. "summary": "Get the apps navigation",
  2659. "tags": [
  2660. "navigation"
  2661. ],
  2662. "security": [
  2663. {
  2664. "bearer_auth": []
  2665. },
  2666. {
  2667. "basic_auth": []
  2668. }
  2669. ],
  2670. "parameters": [
  2671. {
  2672. "name": "absolute",
  2673. "in": "query",
  2674. "description": "Rewrite URLs to absolute ones",
  2675. "schema": {
  2676. "type": "integer",
  2677. "default": 0,
  2678. "enum": [
  2679. 0,
  2680. 1
  2681. ]
  2682. }
  2683. },
  2684. {
  2685. "name": "OCS-APIRequest",
  2686. "in": "header",
  2687. "description": "Required to be true for the API request to pass",
  2688. "required": true,
  2689. "schema": {
  2690. "type": "boolean",
  2691. "default": true
  2692. }
  2693. }
  2694. ],
  2695. "responses": {
  2696. "200": {
  2697. "description": "Apps navigation returned",
  2698. "content": {
  2699. "application/json": {
  2700. "schema": {
  2701. "type": "object",
  2702. "required": [
  2703. "ocs"
  2704. ],
  2705. "properties": {
  2706. "ocs": {
  2707. "type": "object",
  2708. "required": [
  2709. "meta",
  2710. "data"
  2711. ],
  2712. "properties": {
  2713. "meta": {
  2714. "$ref": "#/components/schemas/OCSMeta"
  2715. },
  2716. "data": {
  2717. "type": "array",
  2718. "items": {
  2719. "$ref": "#/components/schemas/NavigationEntry"
  2720. }
  2721. }
  2722. }
  2723. }
  2724. }
  2725. }
  2726. }
  2727. }
  2728. },
  2729. "304": {
  2730. "description": "No apps navigation changed"
  2731. }
  2732. }
  2733. }
  2734. },
  2735. "/ocs/v2.php/core/navigation/settings": {
  2736. "get": {
  2737. "operationId": "navigation-get-settings-navigation",
  2738. "summary": "Get the settings navigation",
  2739. "tags": [
  2740. "navigation"
  2741. ],
  2742. "security": [
  2743. {
  2744. "bearer_auth": []
  2745. },
  2746. {
  2747. "basic_auth": []
  2748. }
  2749. ],
  2750. "parameters": [
  2751. {
  2752. "name": "absolute",
  2753. "in": "query",
  2754. "description": "Rewrite URLs to absolute ones",
  2755. "schema": {
  2756. "type": "integer",
  2757. "default": 0,
  2758. "enum": [
  2759. 0,
  2760. 1
  2761. ]
  2762. }
  2763. },
  2764. {
  2765. "name": "OCS-APIRequest",
  2766. "in": "header",
  2767. "description": "Required to be true for the API request to pass",
  2768. "required": true,
  2769. "schema": {
  2770. "type": "boolean",
  2771. "default": true
  2772. }
  2773. }
  2774. ],
  2775. "responses": {
  2776. "200": {
  2777. "description": "Apps navigation returned",
  2778. "content": {
  2779. "application/json": {
  2780. "schema": {
  2781. "type": "object",
  2782. "required": [
  2783. "ocs"
  2784. ],
  2785. "properties": {
  2786. "ocs": {
  2787. "type": "object",
  2788. "required": [
  2789. "meta",
  2790. "data"
  2791. ],
  2792. "properties": {
  2793. "meta": {
  2794. "$ref": "#/components/schemas/OCSMeta"
  2795. },
  2796. "data": {
  2797. "type": "array",
  2798. "items": {
  2799. "$ref": "#/components/schemas/NavigationEntry"
  2800. }
  2801. }
  2802. }
  2803. }
  2804. }
  2805. }
  2806. }
  2807. }
  2808. },
  2809. "304": {
  2810. "description": "No apps navigation changed"
  2811. }
  2812. }
  2813. }
  2814. },
  2815. "/ocs/v2.php/cloud/capabilities": {
  2816. "get": {
  2817. "operationId": "ocs-get-capabilities",
  2818. "summary": "Get the capabilities",
  2819. "tags": [
  2820. "ocs"
  2821. ],
  2822. "security": [
  2823. {},
  2824. {
  2825. "bearer_auth": []
  2826. },
  2827. {
  2828. "basic_auth": []
  2829. }
  2830. ],
  2831. "parameters": [
  2832. {
  2833. "name": "OCS-APIRequest",
  2834. "in": "header",
  2835. "description": "Required to be true for the API request to pass",
  2836. "required": true,
  2837. "schema": {
  2838. "type": "boolean",
  2839. "default": true
  2840. }
  2841. }
  2842. ],
  2843. "responses": {
  2844. "200": {
  2845. "description": "Capabilities returned",
  2846. "content": {
  2847. "application/json": {
  2848. "schema": {
  2849. "type": "object",
  2850. "required": [
  2851. "ocs"
  2852. ],
  2853. "properties": {
  2854. "ocs": {
  2855. "type": "object",
  2856. "required": [
  2857. "meta",
  2858. "data"
  2859. ],
  2860. "properties": {
  2861. "meta": {
  2862. "$ref": "#/components/schemas/OCSMeta"
  2863. },
  2864. "data": {
  2865. "type": "object",
  2866. "required": [
  2867. "version",
  2868. "capabilities"
  2869. ],
  2870. "properties": {
  2871. "version": {
  2872. "type": "object",
  2873. "required": [
  2874. "major",
  2875. "minor",
  2876. "micro",
  2877. "string",
  2878. "edition",
  2879. "extendedSupport"
  2880. ],
  2881. "properties": {
  2882. "major": {
  2883. "type": "integer",
  2884. "format": "int64"
  2885. },
  2886. "minor": {
  2887. "type": "integer",
  2888. "format": "int64"
  2889. },
  2890. "micro": {
  2891. "type": "integer",
  2892. "format": "int64"
  2893. },
  2894. "string": {
  2895. "type": "string"
  2896. },
  2897. "edition": {
  2898. "type": "string"
  2899. },
  2900. "extendedSupport": {
  2901. "type": "boolean"
  2902. }
  2903. }
  2904. },
  2905. "capabilities": {
  2906. "type": "object",
  2907. "additionalProperties": {
  2908. "type": "object"
  2909. }
  2910. }
  2911. }
  2912. }
  2913. }
  2914. }
  2915. }
  2916. }
  2917. }
  2918. }
  2919. }
  2920. }
  2921. }
  2922. },
  2923. "/ocs/v2.php/profile/{targetUserId}": {
  2924. "put": {
  2925. "operationId": "profile_api-set-visibility",
  2926. "summary": "Update the visibility of a parameter",
  2927. "description": "This endpoint requires password confirmation",
  2928. "tags": [
  2929. "profile_api"
  2930. ],
  2931. "security": [
  2932. {
  2933. "bearer_auth": []
  2934. },
  2935. {
  2936. "basic_auth": []
  2937. }
  2938. ],
  2939. "requestBody": {
  2940. "required": true,
  2941. "content": {
  2942. "application/json": {
  2943. "schema": {
  2944. "type": "object",
  2945. "required": [
  2946. "paramId",
  2947. "visibility"
  2948. ],
  2949. "properties": {
  2950. "paramId": {
  2951. "type": "string",
  2952. "description": "ID of the parameter"
  2953. },
  2954. "visibility": {
  2955. "type": "string",
  2956. "description": "New visibility"
  2957. }
  2958. }
  2959. }
  2960. }
  2961. }
  2962. },
  2963. "parameters": [
  2964. {
  2965. "name": "targetUserId",
  2966. "in": "path",
  2967. "description": "ID of the user",
  2968. "required": true,
  2969. "schema": {
  2970. "type": "string"
  2971. }
  2972. },
  2973. {
  2974. "name": "OCS-APIRequest",
  2975. "in": "header",
  2976. "description": "Required to be true for the API request to pass",
  2977. "required": true,
  2978. "schema": {
  2979. "type": "boolean",
  2980. "default": true
  2981. }
  2982. }
  2983. ],
  2984. "responses": {
  2985. "200": {
  2986. "description": "Visibility updated successfully",
  2987. "content": {
  2988. "application/json": {
  2989. "schema": {
  2990. "type": "object",
  2991. "required": [
  2992. "ocs"
  2993. ],
  2994. "properties": {
  2995. "ocs": {
  2996. "type": "object",
  2997. "required": [
  2998. "meta",
  2999. "data"
  3000. ],
  3001. "properties": {
  3002. "meta": {
  3003. "$ref": "#/components/schemas/OCSMeta"
  3004. },
  3005. "data": {}
  3006. }
  3007. }
  3008. }
  3009. }
  3010. }
  3011. }
  3012. },
  3013. "400": {
  3014. "description": "Updating visibility is not possible",
  3015. "content": {
  3016. "application/json": {
  3017. "schema": {
  3018. "type": "object",
  3019. "required": [
  3020. "ocs"
  3021. ],
  3022. "properties": {
  3023. "ocs": {
  3024. "type": "object",
  3025. "required": [
  3026. "meta",
  3027. "data"
  3028. ],
  3029. "properties": {
  3030. "meta": {
  3031. "$ref": "#/components/schemas/OCSMeta"
  3032. },
  3033. "data": {}
  3034. }
  3035. }
  3036. }
  3037. }
  3038. }
  3039. }
  3040. },
  3041. "403": {
  3042. "description": "Not allowed to edit other users visibility",
  3043. "content": {
  3044. "application/json": {
  3045. "schema": {
  3046. "type": "object",
  3047. "required": [
  3048. "ocs"
  3049. ],
  3050. "properties": {
  3051. "ocs": {
  3052. "type": "object",
  3053. "required": [
  3054. "meta",
  3055. "data"
  3056. ],
  3057. "properties": {
  3058. "meta": {
  3059. "$ref": "#/components/schemas/OCSMeta"
  3060. },
  3061. "data": {}
  3062. }
  3063. }
  3064. }
  3065. }
  3066. }
  3067. }
  3068. },
  3069. "404": {
  3070. "description": "Account not found",
  3071. "content": {
  3072. "application/json": {
  3073. "schema": {
  3074. "type": "object",
  3075. "required": [
  3076. "ocs"
  3077. ],
  3078. "properties": {
  3079. "ocs": {
  3080. "type": "object",
  3081. "required": [
  3082. "meta",
  3083. "data"
  3084. ],
  3085. "properties": {
  3086. "meta": {
  3087. "$ref": "#/components/schemas/OCSMeta"
  3088. },
  3089. "data": {}
  3090. }
  3091. }
  3092. }
  3093. }
  3094. }
  3095. }
  3096. }
  3097. }
  3098. }
  3099. },
  3100. "/ocs/v2.php/references/extract": {
  3101. "post": {
  3102. "operationId": "reference_api-extract",
  3103. "summary": "Extract references from a text",
  3104. "tags": [
  3105. "reference_api"
  3106. ],
  3107. "security": [
  3108. {
  3109. "bearer_auth": []
  3110. },
  3111. {
  3112. "basic_auth": []
  3113. }
  3114. ],
  3115. "requestBody": {
  3116. "required": true,
  3117. "content": {
  3118. "application/json": {
  3119. "schema": {
  3120. "type": "object",
  3121. "required": [
  3122. "text"
  3123. ],
  3124. "properties": {
  3125. "text": {
  3126. "type": "string",
  3127. "description": "Text to extract from"
  3128. },
  3129. "resolve": {
  3130. "type": "boolean",
  3131. "default": false,
  3132. "description": "Resolve the references"
  3133. },
  3134. "limit": {
  3135. "type": "integer",
  3136. "format": "int64",
  3137. "default": 1,
  3138. "description": "Maximum amount of references to extract"
  3139. }
  3140. }
  3141. }
  3142. }
  3143. }
  3144. },
  3145. "parameters": [
  3146. {
  3147. "name": "OCS-APIRequest",
  3148. "in": "header",
  3149. "description": "Required to be true for the API request to pass",
  3150. "required": true,
  3151. "schema": {
  3152. "type": "boolean",
  3153. "default": true
  3154. }
  3155. }
  3156. ],
  3157. "responses": {
  3158. "200": {
  3159. "description": "References returned",
  3160. "content": {
  3161. "application/json": {
  3162. "schema": {
  3163. "type": "object",
  3164. "required": [
  3165. "ocs"
  3166. ],
  3167. "properties": {
  3168. "ocs": {
  3169. "type": "object",
  3170. "required": [
  3171. "meta",
  3172. "data"
  3173. ],
  3174. "properties": {
  3175. "meta": {
  3176. "$ref": "#/components/schemas/OCSMeta"
  3177. },
  3178. "data": {
  3179. "type": "object",
  3180. "required": [
  3181. "references"
  3182. ],
  3183. "properties": {
  3184. "references": {
  3185. "type": "object",
  3186. "additionalProperties": {
  3187. "$ref": "#/components/schemas/Reference",
  3188. "nullable": true
  3189. }
  3190. }
  3191. }
  3192. }
  3193. }
  3194. }
  3195. }
  3196. }
  3197. }
  3198. }
  3199. }
  3200. }
  3201. }
  3202. },
  3203. "/ocs/v2.php/references/extractPublic": {
  3204. "post": {
  3205. "operationId": "reference_api-extract-public",
  3206. "summary": "Extract references from a text",
  3207. "tags": [
  3208. "reference_api"
  3209. ],
  3210. "security": [
  3211. {},
  3212. {
  3213. "bearer_auth": []
  3214. },
  3215. {
  3216. "basic_auth": []
  3217. }
  3218. ],
  3219. "requestBody": {
  3220. "required": true,
  3221. "content": {
  3222. "application/json": {
  3223. "schema": {
  3224. "type": "object",
  3225. "required": [
  3226. "text",
  3227. "sharingToken"
  3228. ],
  3229. "properties": {
  3230. "text": {
  3231. "type": "string",
  3232. "description": "Text to extract from"
  3233. },
  3234. "sharingToken": {
  3235. "type": "string",
  3236. "description": "Token of the public share"
  3237. },
  3238. "resolve": {
  3239. "type": "boolean",
  3240. "default": false,
  3241. "description": "Resolve the references"
  3242. },
  3243. "limit": {
  3244. "type": "integer",
  3245. "format": "int64",
  3246. "default": 1,
  3247. "description": "Maximum amount of references to extract, limited to 15"
  3248. }
  3249. }
  3250. }
  3251. }
  3252. }
  3253. },
  3254. "parameters": [
  3255. {
  3256. "name": "OCS-APIRequest",
  3257. "in": "header",
  3258. "description": "Required to be true for the API request to pass",
  3259. "required": true,
  3260. "schema": {
  3261. "type": "boolean",
  3262. "default": true
  3263. }
  3264. }
  3265. ],
  3266. "responses": {
  3267. "200": {
  3268. "description": "References returned",
  3269. "content": {
  3270. "application/json": {
  3271. "schema": {
  3272. "type": "object",
  3273. "required": [
  3274. "ocs"
  3275. ],
  3276. "properties": {
  3277. "ocs": {
  3278. "type": "object",
  3279. "required": [
  3280. "meta",
  3281. "data"
  3282. ],
  3283. "properties": {
  3284. "meta": {
  3285. "$ref": "#/components/schemas/OCSMeta"
  3286. },
  3287. "data": {
  3288. "type": "object",
  3289. "required": [
  3290. "references"
  3291. ],
  3292. "properties": {
  3293. "references": {
  3294. "type": "object",
  3295. "additionalProperties": {
  3296. "$ref": "#/components/schemas/Reference",
  3297. "nullable": true
  3298. }
  3299. }
  3300. }
  3301. }
  3302. }
  3303. }
  3304. }
  3305. }
  3306. }
  3307. }
  3308. }
  3309. }
  3310. }
  3311. },
  3312. "/ocs/v2.php/references/resolve": {
  3313. "get": {
  3314. "operationId": "reference_api-resolve-one",
  3315. "summary": "Resolve a reference",
  3316. "tags": [
  3317. "reference_api"
  3318. ],
  3319. "security": [
  3320. {
  3321. "bearer_auth": []
  3322. },
  3323. {
  3324. "basic_auth": []
  3325. }
  3326. ],
  3327. "parameters": [
  3328. {
  3329. "name": "reference",
  3330. "in": "query",
  3331. "description": "Reference to resolve",
  3332. "required": true,
  3333. "schema": {
  3334. "type": "string"
  3335. }
  3336. },
  3337. {
  3338. "name": "OCS-APIRequest",
  3339. "in": "header",
  3340. "description": "Required to be true for the API request to pass",
  3341. "required": true,
  3342. "schema": {
  3343. "type": "boolean",
  3344. "default": true
  3345. }
  3346. }
  3347. ],
  3348. "responses": {
  3349. "200": {
  3350. "description": "Reference returned",
  3351. "content": {
  3352. "application/json": {
  3353. "schema": {
  3354. "type": "object",
  3355. "required": [
  3356. "ocs"
  3357. ],
  3358. "properties": {
  3359. "ocs": {
  3360. "type": "object",
  3361. "required": [
  3362. "meta",
  3363. "data"
  3364. ],
  3365. "properties": {
  3366. "meta": {
  3367. "$ref": "#/components/schemas/OCSMeta"
  3368. },
  3369. "data": {
  3370. "type": "object",
  3371. "required": [
  3372. "references"
  3373. ],
  3374. "properties": {
  3375. "references": {
  3376. "type": "object",
  3377. "additionalProperties": {
  3378. "$ref": "#/components/schemas/Reference",
  3379. "nullable": true
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. }
  3386. }
  3387. }
  3388. }
  3389. }
  3390. }
  3391. }
  3392. },
  3393. "post": {
  3394. "operationId": "reference_api-resolve",
  3395. "summary": "Resolve multiple references",
  3396. "tags": [
  3397. "reference_api"
  3398. ],
  3399. "security": [
  3400. {
  3401. "bearer_auth": []
  3402. },
  3403. {
  3404. "basic_auth": []
  3405. }
  3406. ],
  3407. "requestBody": {
  3408. "required": true,
  3409. "content": {
  3410. "application/json": {
  3411. "schema": {
  3412. "type": "object",
  3413. "required": [
  3414. "references"
  3415. ],
  3416. "properties": {
  3417. "references": {
  3418. "type": "array",
  3419. "description": "References to resolve",
  3420. "items": {
  3421. "type": "string"
  3422. }
  3423. },
  3424. "limit": {
  3425. "type": "integer",
  3426. "format": "int64",
  3427. "default": 1,
  3428. "description": "Maximum amount of references to resolve"
  3429. }
  3430. }
  3431. }
  3432. }
  3433. }
  3434. },
  3435. "parameters": [
  3436. {
  3437. "name": "OCS-APIRequest",
  3438. "in": "header",
  3439. "description": "Required to be true for the API request to pass",
  3440. "required": true,
  3441. "schema": {
  3442. "type": "boolean",
  3443. "default": true
  3444. }
  3445. }
  3446. ],
  3447. "responses": {
  3448. "200": {
  3449. "description": "References returned",
  3450. "content": {
  3451. "application/json": {
  3452. "schema": {
  3453. "type": "object",
  3454. "required": [
  3455. "ocs"
  3456. ],
  3457. "properties": {
  3458. "ocs": {
  3459. "type": "object",
  3460. "required": [
  3461. "meta",
  3462. "data"
  3463. ],
  3464. "properties": {
  3465. "meta": {
  3466. "$ref": "#/components/schemas/OCSMeta"
  3467. },
  3468. "data": {
  3469. "type": "object",
  3470. "required": [
  3471. "references"
  3472. ],
  3473. "properties": {
  3474. "references": {
  3475. "type": "object",
  3476. "additionalProperties": {
  3477. "$ref": "#/components/schemas/Reference",
  3478. "nullable": true
  3479. }
  3480. }
  3481. }
  3482. }
  3483. }
  3484. }
  3485. }
  3486. }
  3487. }
  3488. }
  3489. }
  3490. }
  3491. }
  3492. },
  3493. "/ocs/v2.php/references/resolvePublic": {
  3494. "get": {
  3495. "operationId": "reference_api-resolve-one-public",
  3496. "summary": "Resolve from a public page",
  3497. "tags": [
  3498. "reference_api"
  3499. ],
  3500. "security": [
  3501. {},
  3502. {
  3503. "bearer_auth": []
  3504. },
  3505. {
  3506. "basic_auth": []
  3507. }
  3508. ],
  3509. "parameters": [
  3510. {
  3511. "name": "reference",
  3512. "in": "query",
  3513. "description": "Reference to resolve",
  3514. "required": true,
  3515. "schema": {
  3516. "type": "string"
  3517. }
  3518. },
  3519. {
  3520. "name": "sharingToken",
  3521. "in": "query",
  3522. "description": "Token of the public share",
  3523. "required": true,
  3524. "schema": {
  3525. "type": "string"
  3526. }
  3527. },
  3528. {
  3529. "name": "OCS-APIRequest",
  3530. "in": "header",
  3531. "description": "Required to be true for the API request to pass",
  3532. "required": true,
  3533. "schema": {
  3534. "type": "boolean",
  3535. "default": true
  3536. }
  3537. }
  3538. ],
  3539. "responses": {
  3540. "200": {
  3541. "description": "Reference returned",
  3542. "content": {
  3543. "application/json": {
  3544. "schema": {
  3545. "type": "object",
  3546. "required": [
  3547. "ocs"
  3548. ],
  3549. "properties": {
  3550. "ocs": {
  3551. "type": "object",
  3552. "required": [
  3553. "meta",
  3554. "data"
  3555. ],
  3556. "properties": {
  3557. "meta": {
  3558. "$ref": "#/components/schemas/OCSMeta"
  3559. },
  3560. "data": {
  3561. "type": "object",
  3562. "required": [
  3563. "references"
  3564. ],
  3565. "properties": {
  3566. "references": {
  3567. "type": "object",
  3568. "additionalProperties": {
  3569. "$ref": "#/components/schemas/Reference",
  3570. "nullable": true
  3571. }
  3572. }
  3573. }
  3574. }
  3575. }
  3576. }
  3577. }
  3578. }
  3579. }
  3580. }
  3581. }
  3582. }
  3583. },
  3584. "post": {
  3585. "operationId": "reference_api-resolve-public",
  3586. "summary": "Resolve multiple references from a public page",
  3587. "tags": [
  3588. "reference_api"
  3589. ],
  3590. "security": [
  3591. {},
  3592. {
  3593. "bearer_auth": []
  3594. },
  3595. {
  3596. "basic_auth": []
  3597. }
  3598. ],
  3599. "requestBody": {
  3600. "required": true,
  3601. "content": {
  3602. "application/json": {
  3603. "schema": {
  3604. "type": "object",
  3605. "required": [
  3606. "references",
  3607. "sharingToken"
  3608. ],
  3609. "properties": {
  3610. "references": {
  3611. "type": "array",
  3612. "description": "References to resolve",
  3613. "items": {
  3614. "type": "string"
  3615. }
  3616. },
  3617. "sharingToken": {
  3618. "type": "string",
  3619. "description": "Token of the public share"
  3620. },
  3621. "limit": {
  3622. "type": "integer",
  3623. "format": "int64",
  3624. "default": 1,
  3625. "description": "Maximum amount of references to resolve, limited to 15"
  3626. }
  3627. }
  3628. }
  3629. }
  3630. }
  3631. },
  3632. "parameters": [
  3633. {
  3634. "name": "OCS-APIRequest",
  3635. "in": "header",
  3636. "description": "Required to be true for the API request to pass",
  3637. "required": true,
  3638. "schema": {
  3639. "type": "boolean",
  3640. "default": true
  3641. }
  3642. }
  3643. ],
  3644. "responses": {
  3645. "200": {
  3646. "description": "References returned",
  3647. "content": {
  3648. "application/json": {
  3649. "schema": {
  3650. "type": "object",
  3651. "required": [
  3652. "ocs"
  3653. ],
  3654. "properties": {
  3655. "ocs": {
  3656. "type": "object",
  3657. "required": [
  3658. "meta",
  3659. "data"
  3660. ],
  3661. "properties": {
  3662. "meta": {
  3663. "$ref": "#/components/schemas/OCSMeta"
  3664. },
  3665. "data": {
  3666. "type": "object",
  3667. "required": [
  3668. "references"
  3669. ],
  3670. "properties": {
  3671. "references": {
  3672. "type": "object",
  3673. "additionalProperties": {
  3674. "$ref": "#/components/schemas/Reference",
  3675. "nullable": true
  3676. }
  3677. }
  3678. }
  3679. }
  3680. }
  3681. }
  3682. }
  3683. }
  3684. }
  3685. }
  3686. }
  3687. }
  3688. }
  3689. },
  3690. "/ocs/v2.php/references/providers": {
  3691. "get": {
  3692. "operationId": "reference_api-get-providers-info",
  3693. "summary": "Get the providers",
  3694. "tags": [
  3695. "reference_api"
  3696. ],
  3697. "security": [
  3698. {
  3699. "bearer_auth": []
  3700. },
  3701. {
  3702. "basic_auth": []
  3703. }
  3704. ],
  3705. "parameters": [
  3706. {
  3707. "name": "OCS-APIRequest",
  3708. "in": "header",
  3709. "description": "Required to be true for the API request to pass",
  3710. "required": true,
  3711. "schema": {
  3712. "type": "boolean",
  3713. "default": true
  3714. }
  3715. }
  3716. ],
  3717. "responses": {
  3718. "200": {
  3719. "description": "Providers returned",
  3720. "content": {
  3721. "application/json": {
  3722. "schema": {
  3723. "type": "object",
  3724. "required": [
  3725. "ocs"
  3726. ],
  3727. "properties": {
  3728. "ocs": {
  3729. "type": "object",
  3730. "required": [
  3731. "meta",
  3732. "data"
  3733. ],
  3734. "properties": {
  3735. "meta": {
  3736. "$ref": "#/components/schemas/OCSMeta"
  3737. },
  3738. "data": {
  3739. "type": "array",
  3740. "items": {
  3741. "$ref": "#/components/schemas/ReferenceProvider"
  3742. }
  3743. }
  3744. }
  3745. }
  3746. }
  3747. }
  3748. }
  3749. }
  3750. }
  3751. }
  3752. }
  3753. },
  3754. "/ocs/v2.php/references/provider/{providerId}": {
  3755. "put": {
  3756. "operationId": "reference_api-touch-provider",
  3757. "summary": "Touch a provider",
  3758. "tags": [
  3759. "reference_api"
  3760. ],
  3761. "security": [
  3762. {
  3763. "bearer_auth": []
  3764. },
  3765. {
  3766. "basic_auth": []
  3767. }
  3768. ],
  3769. "requestBody": {
  3770. "required": false,
  3771. "content": {
  3772. "application/json": {
  3773. "schema": {
  3774. "type": "object",
  3775. "properties": {
  3776. "timestamp": {
  3777. "type": "integer",
  3778. "format": "int64",
  3779. "nullable": true,
  3780. "description": "Timestamp of the last usage"
  3781. }
  3782. }
  3783. }
  3784. }
  3785. }
  3786. },
  3787. "parameters": [
  3788. {
  3789. "name": "providerId",
  3790. "in": "path",
  3791. "description": "ID of the provider",
  3792. "required": true,
  3793. "schema": {
  3794. "type": "string"
  3795. }
  3796. },
  3797. {
  3798. "name": "OCS-APIRequest",
  3799. "in": "header",
  3800. "description": "Required to be true for the API request to pass",
  3801. "required": true,
  3802. "schema": {
  3803. "type": "boolean",
  3804. "default": true
  3805. }
  3806. }
  3807. ],
  3808. "responses": {
  3809. "200": {
  3810. "description": "Provider touched",
  3811. "content": {
  3812. "application/json": {
  3813. "schema": {
  3814. "type": "object",
  3815. "required": [
  3816. "ocs"
  3817. ],
  3818. "properties": {
  3819. "ocs": {
  3820. "type": "object",
  3821. "required": [
  3822. "meta",
  3823. "data"
  3824. ],
  3825. "properties": {
  3826. "meta": {
  3827. "$ref": "#/components/schemas/OCSMeta"
  3828. },
  3829. "data": {
  3830. "type": "object",
  3831. "required": [
  3832. "success"
  3833. ],
  3834. "properties": {
  3835. "success": {
  3836. "type": "boolean"
  3837. }
  3838. }
  3839. }
  3840. }
  3841. }
  3842. }
  3843. }
  3844. }
  3845. }
  3846. }
  3847. }
  3848. }
  3849. },
  3850. "/ocs/v2.php/taskprocessing/tasktypes": {
  3851. "get": {
  3852. "operationId": "task_processing_api-task-types",
  3853. "summary": "Returns all available TaskProcessing task types",
  3854. "tags": [
  3855. "task_processing_api"
  3856. ],
  3857. "security": [
  3858. {},
  3859. {
  3860. "bearer_auth": []
  3861. },
  3862. {
  3863. "basic_auth": []
  3864. }
  3865. ],
  3866. "parameters": [
  3867. {
  3868. "name": "OCS-APIRequest",
  3869. "in": "header",
  3870. "description": "Required to be true for the API request to pass",
  3871. "required": true,
  3872. "schema": {
  3873. "type": "boolean",
  3874. "default": true
  3875. }
  3876. }
  3877. ],
  3878. "responses": {
  3879. "200": {
  3880. "description": "Task types returned",
  3881. "content": {
  3882. "application/json": {
  3883. "schema": {
  3884. "type": "object",
  3885. "required": [
  3886. "ocs"
  3887. ],
  3888. "properties": {
  3889. "ocs": {
  3890. "type": "object",
  3891. "required": [
  3892. "meta",
  3893. "data"
  3894. ],
  3895. "properties": {
  3896. "meta": {
  3897. "$ref": "#/components/schemas/OCSMeta"
  3898. },
  3899. "data": {
  3900. "type": "object",
  3901. "required": [
  3902. "types"
  3903. ],
  3904. "properties": {
  3905. "types": {
  3906. "type": "object",
  3907. "additionalProperties": {
  3908. "$ref": "#/components/schemas/TaskProcessingTaskType"
  3909. }
  3910. }
  3911. }
  3912. }
  3913. }
  3914. }
  3915. }
  3916. }
  3917. }
  3918. }
  3919. }
  3920. }
  3921. }
  3922. },
  3923. "/ocs/v2.php/taskprocessing/schedule": {
  3924. "post": {
  3925. "operationId": "task_processing_api-schedule",
  3926. "summary": "Schedules a task",
  3927. "tags": [
  3928. "task_processing_api"
  3929. ],
  3930. "security": [
  3931. {},
  3932. {
  3933. "bearer_auth": []
  3934. },
  3935. {
  3936. "basic_auth": []
  3937. }
  3938. ],
  3939. "requestBody": {
  3940. "required": true,
  3941. "content": {
  3942. "application/json": {
  3943. "schema": {
  3944. "type": "object",
  3945. "required": [
  3946. "input",
  3947. "type",
  3948. "appId"
  3949. ],
  3950. "properties": {
  3951. "input": {
  3952. "type": "object",
  3953. "description": "Task's input parameters",
  3954. "additionalProperties": {
  3955. "type": "object"
  3956. }
  3957. },
  3958. "type": {
  3959. "type": "string",
  3960. "description": "Type of the task"
  3961. },
  3962. "appId": {
  3963. "type": "string",
  3964. "description": "ID of the app that will execute the task"
  3965. },
  3966. "customId": {
  3967. "type": "string",
  3968. "default": "",
  3969. "description": "An arbitrary identifier for the task"
  3970. },
  3971. "webhookUri": {
  3972. "type": "string",
  3973. "nullable": true,
  3974. "description": "URI to be requested when the task finishes"
  3975. },
  3976. "webhookMethod": {
  3977. "type": "string",
  3978. "nullable": true,
  3979. "description": "Method used for the webhook request (HTTP:GET, HTTP:POST, HTTP:PUT, HTTP:DELETE or AppAPI:APP_ID:GET, AppAPI:APP_ID:POST...)"
  3980. }
  3981. }
  3982. }
  3983. }
  3984. }
  3985. },
  3986. "parameters": [
  3987. {
  3988. "name": "OCS-APIRequest",
  3989. "in": "header",
  3990. "description": "Required to be true for the API request to pass",
  3991. "required": true,
  3992. "schema": {
  3993. "type": "boolean",
  3994. "default": true
  3995. }
  3996. }
  3997. ],
  3998. "responses": {
  3999. "200": {
  4000. "description": "Task scheduled successfully",
  4001. "content": {
  4002. "application/json": {
  4003. "schema": {
  4004. "type": "object",
  4005. "required": [
  4006. "ocs"
  4007. ],
  4008. "properties": {
  4009. "ocs": {
  4010. "type": "object",
  4011. "required": [
  4012. "meta",
  4013. "data"
  4014. ],
  4015. "properties": {
  4016. "meta": {
  4017. "$ref": "#/components/schemas/OCSMeta"
  4018. },
  4019. "data": {
  4020. "type": "object",
  4021. "required": [
  4022. "task"
  4023. ],
  4024. "properties": {
  4025. "task": {
  4026. "$ref": "#/components/schemas/TaskProcessingTask"
  4027. }
  4028. }
  4029. }
  4030. }
  4031. }
  4032. }
  4033. }
  4034. }
  4035. }
  4036. },
  4037. "500": {
  4038. "description": "",
  4039. "content": {
  4040. "application/json": {
  4041. "schema": {
  4042. "type": "object",
  4043. "required": [
  4044. "ocs"
  4045. ],
  4046. "properties": {
  4047. "ocs": {
  4048. "type": "object",
  4049. "required": [
  4050. "meta",
  4051. "data"
  4052. ],
  4053. "properties": {
  4054. "meta": {
  4055. "$ref": "#/components/schemas/OCSMeta"
  4056. },
  4057. "data": {
  4058. "type": "object",
  4059. "required": [
  4060. "message"
  4061. ],
  4062. "properties": {
  4063. "message": {
  4064. "type": "string"
  4065. }
  4066. }
  4067. }
  4068. }
  4069. }
  4070. }
  4071. }
  4072. }
  4073. }
  4074. },
  4075. "400": {
  4076. "description": "Scheduling task is not possible",
  4077. "content": {
  4078. "application/json": {
  4079. "schema": {
  4080. "type": "object",
  4081. "required": [
  4082. "ocs"
  4083. ],
  4084. "properties": {
  4085. "ocs": {
  4086. "type": "object",
  4087. "required": [
  4088. "meta",
  4089. "data"
  4090. ],
  4091. "properties": {
  4092. "meta": {
  4093. "$ref": "#/components/schemas/OCSMeta"
  4094. },
  4095. "data": {
  4096. "type": "object",
  4097. "required": [
  4098. "message"
  4099. ],
  4100. "properties": {
  4101. "message": {
  4102. "type": "string"
  4103. }
  4104. }
  4105. }
  4106. }
  4107. }
  4108. }
  4109. }
  4110. }
  4111. }
  4112. },
  4113. "412": {
  4114. "description": "Scheduling task is not possible",
  4115. "content": {
  4116. "application/json": {
  4117. "schema": {
  4118. "type": "object",
  4119. "required": [
  4120. "ocs"
  4121. ],
  4122. "properties": {
  4123. "ocs": {
  4124. "type": "object",
  4125. "required": [
  4126. "meta",
  4127. "data"
  4128. ],
  4129. "properties": {
  4130. "meta": {
  4131. "$ref": "#/components/schemas/OCSMeta"
  4132. },
  4133. "data": {
  4134. "type": "object",
  4135. "required": [
  4136. "message"
  4137. ],
  4138. "properties": {
  4139. "message": {
  4140. "type": "string"
  4141. }
  4142. }
  4143. }
  4144. }
  4145. }
  4146. }
  4147. }
  4148. }
  4149. }
  4150. },
  4151. "401": {
  4152. "description": "Cannot schedule task because it references files in its input that the user doesn't have access to",
  4153. "content": {
  4154. "application/json": {
  4155. "schema": {
  4156. "type": "object",
  4157. "required": [
  4158. "ocs"
  4159. ],
  4160. "properties": {
  4161. "ocs": {
  4162. "type": "object",
  4163. "required": [
  4164. "meta",
  4165. "data"
  4166. ],
  4167. "properties": {
  4168. "meta": {
  4169. "$ref": "#/components/schemas/OCSMeta"
  4170. },
  4171. "data": {
  4172. "type": "object",
  4173. "required": [
  4174. "message"
  4175. ],
  4176. "properties": {
  4177. "message": {
  4178. "type": "string"
  4179. }
  4180. }
  4181. }
  4182. }
  4183. }
  4184. }
  4185. }
  4186. }
  4187. }
  4188. }
  4189. }
  4190. }
  4191. },
  4192. "/ocs/v2.php/taskprocessing/task/{id}": {
  4193. "get": {
  4194. "operationId": "task_processing_api-get-task",
  4195. "summary": "Gets a task including status and result",
  4196. "description": "Tasks are removed 1 week after receiving their last update",
  4197. "tags": [
  4198. "task_processing_api"
  4199. ],
  4200. "security": [
  4201. {},
  4202. {
  4203. "bearer_auth": []
  4204. },
  4205. {
  4206. "basic_auth": []
  4207. }
  4208. ],
  4209. "parameters": [
  4210. {
  4211. "name": "id",
  4212. "in": "path",
  4213. "description": "The id of the task",
  4214. "required": true,
  4215. "schema": {
  4216. "type": "integer",
  4217. "format": "int64"
  4218. }
  4219. },
  4220. {
  4221. "name": "OCS-APIRequest",
  4222. "in": "header",
  4223. "description": "Required to be true for the API request to pass",
  4224. "required": true,
  4225. "schema": {
  4226. "type": "boolean",
  4227. "default": true
  4228. }
  4229. }
  4230. ],
  4231. "responses": {
  4232. "200": {
  4233. "description": "Task returned",
  4234. "content": {
  4235. "application/json": {
  4236. "schema": {
  4237. "type": "object",
  4238. "required": [
  4239. "ocs"
  4240. ],
  4241. "properties": {
  4242. "ocs": {
  4243. "type": "object",
  4244. "required": [
  4245. "meta",
  4246. "data"
  4247. ],
  4248. "properties": {
  4249. "meta": {
  4250. "$ref": "#/components/schemas/OCSMeta"
  4251. },
  4252. "data": {
  4253. "type": "object",
  4254. "required": [
  4255. "task"
  4256. ],
  4257. "properties": {
  4258. "task": {
  4259. "$ref": "#/components/schemas/TaskProcessingTask"
  4260. }
  4261. }
  4262. }
  4263. }
  4264. }
  4265. }
  4266. }
  4267. }
  4268. }
  4269. },
  4270. "404": {
  4271. "description": "Task not found",
  4272. "content": {
  4273. "application/json": {
  4274. "schema": {
  4275. "type": "object",
  4276. "required": [
  4277. "ocs"
  4278. ],
  4279. "properties": {
  4280. "ocs": {
  4281. "type": "object",
  4282. "required": [
  4283. "meta",
  4284. "data"
  4285. ],
  4286. "properties": {
  4287. "meta": {
  4288. "$ref": "#/components/schemas/OCSMeta"
  4289. },
  4290. "data": {
  4291. "type": "object",
  4292. "required": [
  4293. "message"
  4294. ],
  4295. "properties": {
  4296. "message": {
  4297. "type": "string"
  4298. }
  4299. }
  4300. }
  4301. }
  4302. }
  4303. }
  4304. }
  4305. }
  4306. }
  4307. },
  4308. "500": {
  4309. "description": "",
  4310. "content": {
  4311. "application/json": {
  4312. "schema": {
  4313. "type": "object",
  4314. "required": [
  4315. "ocs"
  4316. ],
  4317. "properties": {
  4318. "ocs": {
  4319. "type": "object",
  4320. "required": [
  4321. "meta",
  4322. "data"
  4323. ],
  4324. "properties": {
  4325. "meta": {
  4326. "$ref": "#/components/schemas/OCSMeta"
  4327. },
  4328. "data": {
  4329. "type": "object",
  4330. "required": [
  4331. "message"
  4332. ],
  4333. "properties": {
  4334. "message": {
  4335. "type": "string"
  4336. }
  4337. }
  4338. }
  4339. }
  4340. }
  4341. }
  4342. }
  4343. }
  4344. }
  4345. }
  4346. }
  4347. },
  4348. "delete": {
  4349. "operationId": "task_processing_api-delete-task",
  4350. "summary": "Deletes a task",
  4351. "tags": [
  4352. "task_processing_api"
  4353. ],
  4354. "security": [
  4355. {
  4356. "bearer_auth": []
  4357. },
  4358. {
  4359. "basic_auth": []
  4360. }
  4361. ],
  4362. "parameters": [
  4363. {
  4364. "name": "id",
  4365. "in": "path",
  4366. "description": "The id of the task",
  4367. "required": true,
  4368. "schema": {
  4369. "type": "integer",
  4370. "format": "int64"
  4371. }
  4372. },
  4373. {
  4374. "name": "OCS-APIRequest",
  4375. "in": "header",
  4376. "description": "Required to be true for the API request to pass",
  4377. "required": true,
  4378. "schema": {
  4379. "type": "boolean",
  4380. "default": true
  4381. }
  4382. }
  4383. ],
  4384. "responses": {
  4385. "200": {
  4386. "description": "Task deleted",
  4387. "content": {
  4388. "application/json": {
  4389. "schema": {
  4390. "type": "object",
  4391. "required": [
  4392. "ocs"
  4393. ],
  4394. "properties": {
  4395. "ocs": {
  4396. "type": "object",
  4397. "required": [
  4398. "meta",
  4399. "data"
  4400. ],
  4401. "properties": {
  4402. "meta": {
  4403. "$ref": "#/components/schemas/OCSMeta"
  4404. },
  4405. "data": {
  4406. "nullable": true
  4407. }
  4408. }
  4409. }
  4410. }
  4411. }
  4412. }
  4413. }
  4414. },
  4415. "500": {
  4416. "description": "",
  4417. "content": {
  4418. "application/json": {
  4419. "schema": {
  4420. "type": "object",
  4421. "required": [
  4422. "ocs"
  4423. ],
  4424. "properties": {
  4425. "ocs": {
  4426. "type": "object",
  4427. "required": [
  4428. "meta",
  4429. "data"
  4430. ],
  4431. "properties": {
  4432. "meta": {
  4433. "$ref": "#/components/schemas/OCSMeta"
  4434. },
  4435. "data": {
  4436. "type": "object",
  4437. "required": [
  4438. "message"
  4439. ],
  4440. "properties": {
  4441. "message": {
  4442. "type": "string"
  4443. }
  4444. }
  4445. }
  4446. }
  4447. }
  4448. }
  4449. }
  4450. }
  4451. }
  4452. }
  4453. }
  4454. }
  4455. },
  4456. "/ocs/v2.php/taskprocessing/tasks/app/{appId}": {
  4457. "get": {
  4458. "operationId": "task_processing_api-list-tasks-by-app",
  4459. "summary": "Returns tasks for the current user filtered by the appId and optional customId",
  4460. "tags": [
  4461. "task_processing_api"
  4462. ],
  4463. "security": [
  4464. {
  4465. "bearer_auth": []
  4466. },
  4467. {
  4468. "basic_auth": []
  4469. }
  4470. ],
  4471. "parameters": [
  4472. {
  4473. "name": "appId",
  4474. "in": "path",
  4475. "description": "ID of the app",
  4476. "required": true,
  4477. "schema": {
  4478. "type": "string"
  4479. }
  4480. },
  4481. {
  4482. "name": "customId",
  4483. "in": "query",
  4484. "description": "An arbitrary identifier for the task",
  4485. "schema": {
  4486. "type": "string",
  4487. "nullable": true
  4488. }
  4489. },
  4490. {
  4491. "name": "OCS-APIRequest",
  4492. "in": "header",
  4493. "description": "Required to be true for the API request to pass",
  4494. "required": true,
  4495. "schema": {
  4496. "type": "boolean",
  4497. "default": true
  4498. }
  4499. }
  4500. ],
  4501. "responses": {
  4502. "200": {
  4503. "description": "Tasks returned",
  4504. "content": {
  4505. "application/json": {
  4506. "schema": {
  4507. "type": "object",
  4508. "required": [
  4509. "ocs"
  4510. ],
  4511. "properties": {
  4512. "ocs": {
  4513. "type": "object",
  4514. "required": [
  4515. "meta",
  4516. "data"
  4517. ],
  4518. "properties": {
  4519. "meta": {
  4520. "$ref": "#/components/schemas/OCSMeta"
  4521. },
  4522. "data": {
  4523. "type": "object",
  4524. "required": [
  4525. "tasks"
  4526. ],
  4527. "properties": {
  4528. "tasks": {
  4529. "type": "array",
  4530. "items": {
  4531. "$ref": "#/components/schemas/TaskProcessingTask"
  4532. }
  4533. }
  4534. }
  4535. }
  4536. }
  4537. }
  4538. }
  4539. }
  4540. }
  4541. }
  4542. },
  4543. "500": {
  4544. "description": "",
  4545. "content": {
  4546. "application/json": {
  4547. "schema": {
  4548. "type": "object",
  4549. "required": [
  4550. "ocs"
  4551. ],
  4552. "properties": {
  4553. "ocs": {
  4554. "type": "object",
  4555. "required": [
  4556. "meta",
  4557. "data"
  4558. ],
  4559. "properties": {
  4560. "meta": {
  4561. "$ref": "#/components/schemas/OCSMeta"
  4562. },
  4563. "data": {
  4564. "type": "object",
  4565. "required": [
  4566. "message"
  4567. ],
  4568. "properties": {
  4569. "message": {
  4570. "type": "string"
  4571. }
  4572. }
  4573. }
  4574. }
  4575. }
  4576. }
  4577. }
  4578. }
  4579. }
  4580. }
  4581. }
  4582. }
  4583. },
  4584. "/ocs/v2.php/taskprocessing/tasks": {
  4585. "get": {
  4586. "operationId": "task_processing_api-list-tasks",
  4587. "summary": "Returns tasks for the current user filtered by the optional taskType and optional customId",
  4588. "tags": [
  4589. "task_processing_api"
  4590. ],
  4591. "security": [
  4592. {
  4593. "bearer_auth": []
  4594. },
  4595. {
  4596. "basic_auth": []
  4597. }
  4598. ],
  4599. "parameters": [
  4600. {
  4601. "name": "taskType",
  4602. "in": "query",
  4603. "description": "The task type to filter by",
  4604. "schema": {
  4605. "type": "string",
  4606. "nullable": true
  4607. }
  4608. },
  4609. {
  4610. "name": "customId",
  4611. "in": "query",
  4612. "description": "An arbitrary identifier for the task",
  4613. "schema": {
  4614. "type": "string",
  4615. "nullable": true
  4616. }
  4617. },
  4618. {
  4619. "name": "OCS-APIRequest",
  4620. "in": "header",
  4621. "description": "Required to be true for the API request to pass",
  4622. "required": true,
  4623. "schema": {
  4624. "type": "boolean",
  4625. "default": true
  4626. }
  4627. }
  4628. ],
  4629. "responses": {
  4630. "200": {
  4631. "description": "Tasks returned",
  4632. "content": {
  4633. "application/json": {
  4634. "schema": {
  4635. "type": "object",
  4636. "required": [
  4637. "ocs"
  4638. ],
  4639. "properties": {
  4640. "ocs": {
  4641. "type": "object",
  4642. "required": [
  4643. "meta",
  4644. "data"
  4645. ],
  4646. "properties": {
  4647. "meta": {
  4648. "$ref": "#/components/schemas/OCSMeta"
  4649. },
  4650. "data": {
  4651. "type": "object",
  4652. "required": [
  4653. "tasks"
  4654. ],
  4655. "properties": {
  4656. "tasks": {
  4657. "type": "array",
  4658. "items": {
  4659. "$ref": "#/components/schemas/TaskProcessingTask"
  4660. }
  4661. }
  4662. }
  4663. }
  4664. }
  4665. }
  4666. }
  4667. }
  4668. }
  4669. }
  4670. },
  4671. "500": {
  4672. "description": "",
  4673. "content": {
  4674. "application/json": {
  4675. "schema": {
  4676. "type": "object",
  4677. "required": [
  4678. "ocs"
  4679. ],
  4680. "properties": {
  4681. "ocs": {
  4682. "type": "object",
  4683. "required": [
  4684. "meta",
  4685. "data"
  4686. ],
  4687. "properties": {
  4688. "meta": {
  4689. "$ref": "#/components/schemas/OCSMeta"
  4690. },
  4691. "data": {
  4692. "type": "object",
  4693. "required": [
  4694. "message"
  4695. ],
  4696. "properties": {
  4697. "message": {
  4698. "type": "string"
  4699. }
  4700. }
  4701. }
  4702. }
  4703. }
  4704. }
  4705. }
  4706. }
  4707. }
  4708. }
  4709. }
  4710. }
  4711. },
  4712. "/ocs/v2.php/taskprocessing/tasks/{taskId}/file/{fileId}": {
  4713. "get": {
  4714. "operationId": "task_processing_api-get-file-contents",
  4715. "summary": "Returns the contents of a file referenced in a task",
  4716. "tags": [
  4717. "task_processing_api"
  4718. ],
  4719. "security": [
  4720. {
  4721. "bearer_auth": []
  4722. },
  4723. {
  4724. "basic_auth": []
  4725. }
  4726. ],
  4727. "parameters": [
  4728. {
  4729. "name": "taskId",
  4730. "in": "path",
  4731. "description": "The id of the task",
  4732. "required": true,
  4733. "schema": {
  4734. "type": "integer",
  4735. "format": "int64"
  4736. }
  4737. },
  4738. {
  4739. "name": "fileId",
  4740. "in": "path",
  4741. "description": "The file id of the file to retrieve",
  4742. "required": true,
  4743. "schema": {
  4744. "type": "integer",
  4745. "format": "int64"
  4746. }
  4747. },
  4748. {
  4749. "name": "OCS-APIRequest",
  4750. "in": "header",
  4751. "description": "Required to be true for the API request to pass",
  4752. "required": true,
  4753. "schema": {
  4754. "type": "boolean",
  4755. "default": true
  4756. }
  4757. }
  4758. ],
  4759. "responses": {
  4760. "200": {
  4761. "description": "File content returned",
  4762. "content": {
  4763. "*/*": {
  4764. "schema": {
  4765. "type": "string",
  4766. "format": "binary"
  4767. }
  4768. }
  4769. }
  4770. },
  4771. "500": {
  4772. "description": "",
  4773. "content": {
  4774. "application/json": {
  4775. "schema": {
  4776. "type": "object",
  4777. "required": [
  4778. "ocs"
  4779. ],
  4780. "properties": {
  4781. "ocs": {
  4782. "type": "object",
  4783. "required": [
  4784. "meta",
  4785. "data"
  4786. ],
  4787. "properties": {
  4788. "meta": {
  4789. "$ref": "#/components/schemas/OCSMeta"
  4790. },
  4791. "data": {
  4792. "type": "object",
  4793. "required": [
  4794. "message"
  4795. ],
  4796. "properties": {
  4797. "message": {
  4798. "type": "string"
  4799. }
  4800. }
  4801. }
  4802. }
  4803. }
  4804. }
  4805. }
  4806. }
  4807. }
  4808. },
  4809. "404": {
  4810. "description": "Task or file not found",
  4811. "content": {
  4812. "application/json": {
  4813. "schema": {
  4814. "type": "object",
  4815. "required": [
  4816. "ocs"
  4817. ],
  4818. "properties": {
  4819. "ocs": {
  4820. "type": "object",
  4821. "required": [
  4822. "meta",
  4823. "data"
  4824. ],
  4825. "properties": {
  4826. "meta": {
  4827. "$ref": "#/components/schemas/OCSMeta"
  4828. },
  4829. "data": {
  4830. "type": "object",
  4831. "required": [
  4832. "message"
  4833. ],
  4834. "properties": {
  4835. "message": {
  4836. "type": "string"
  4837. }
  4838. }
  4839. }
  4840. }
  4841. }
  4842. }
  4843. }
  4844. }
  4845. }
  4846. }
  4847. }
  4848. }
  4849. },
  4850. "/ocs/v2.php/taskprocessing/tasks/{taskId}/cancel": {
  4851. "post": {
  4852. "operationId": "task_processing_api-cancel-task",
  4853. "summary": "Cancels a task",
  4854. "tags": [
  4855. "task_processing_api"
  4856. ],
  4857. "security": [
  4858. {
  4859. "bearer_auth": []
  4860. },
  4861. {
  4862. "basic_auth": []
  4863. }
  4864. ],
  4865. "parameters": [
  4866. {
  4867. "name": "taskId",
  4868. "in": "path",
  4869. "description": "The id of the task",
  4870. "required": true,
  4871. "schema": {
  4872. "type": "integer",
  4873. "format": "int64"
  4874. }
  4875. },
  4876. {
  4877. "name": "OCS-APIRequest",
  4878. "in": "header",
  4879. "description": "Required to be true for the API request to pass",
  4880. "required": true,
  4881. "schema": {
  4882. "type": "boolean",
  4883. "default": true
  4884. }
  4885. }
  4886. ],
  4887. "responses": {
  4888. "200": {
  4889. "description": "Task canceled successfully",
  4890. "content": {
  4891. "application/json": {
  4892. "schema": {
  4893. "type": "object",
  4894. "required": [
  4895. "ocs"
  4896. ],
  4897. "properties": {
  4898. "ocs": {
  4899. "type": "object",
  4900. "required": [
  4901. "meta",
  4902. "data"
  4903. ],
  4904. "properties": {
  4905. "meta": {
  4906. "$ref": "#/components/schemas/OCSMeta"
  4907. },
  4908. "data": {
  4909. "type": "object",
  4910. "required": [
  4911. "task"
  4912. ],
  4913. "properties": {
  4914. "task": {
  4915. "$ref": "#/components/schemas/TaskProcessingTask"
  4916. }
  4917. }
  4918. }
  4919. }
  4920. }
  4921. }
  4922. }
  4923. }
  4924. }
  4925. },
  4926. "500": {
  4927. "description": "",
  4928. "content": {
  4929. "application/json": {
  4930. "schema": {
  4931. "type": "object",
  4932. "required": [
  4933. "ocs"
  4934. ],
  4935. "properties": {
  4936. "ocs": {
  4937. "type": "object",
  4938. "required": [
  4939. "meta",
  4940. "data"
  4941. ],
  4942. "properties": {
  4943. "meta": {
  4944. "$ref": "#/components/schemas/OCSMeta"
  4945. },
  4946. "data": {
  4947. "type": "object",
  4948. "required": [
  4949. "message"
  4950. ],
  4951. "properties": {
  4952. "message": {
  4953. "type": "string"
  4954. }
  4955. }
  4956. }
  4957. }
  4958. }
  4959. }
  4960. }
  4961. }
  4962. }
  4963. },
  4964. "404": {
  4965. "description": "Task not found",
  4966. "content": {
  4967. "application/json": {
  4968. "schema": {
  4969. "type": "object",
  4970. "required": [
  4971. "ocs"
  4972. ],
  4973. "properties": {
  4974. "ocs": {
  4975. "type": "object",
  4976. "required": [
  4977. "meta",
  4978. "data"
  4979. ],
  4980. "properties": {
  4981. "meta": {
  4982. "$ref": "#/components/schemas/OCSMeta"
  4983. },
  4984. "data": {
  4985. "type": "object",
  4986. "required": [
  4987. "message"
  4988. ],
  4989. "properties": {
  4990. "message": {
  4991. "type": "string"
  4992. }
  4993. }
  4994. }
  4995. }
  4996. }
  4997. }
  4998. }
  4999. }
  5000. }
  5001. }
  5002. }
  5003. }
  5004. },
  5005. "/ocs/v2.php/teams/{teamId}/resources": {
  5006. "get": {
  5007. "operationId": "teams_api-resolve-one",
  5008. "summary": "Get all resources of a team",
  5009. "tags": [
  5010. "teams_api"
  5011. ],
  5012. "security": [
  5013. {
  5014. "bearer_auth": []
  5015. },
  5016. {
  5017. "basic_auth": []
  5018. }
  5019. ],
  5020. "parameters": [
  5021. {
  5022. "name": "teamId",
  5023. "in": "path",
  5024. "description": "Unique id of the team",
  5025. "required": true,
  5026. "schema": {
  5027. "type": "string"
  5028. }
  5029. },
  5030. {
  5031. "name": "OCS-APIRequest",
  5032. "in": "header",
  5033. "description": "Required to be true for the API request to pass",
  5034. "required": true,
  5035. "schema": {
  5036. "type": "boolean",
  5037. "default": true
  5038. }
  5039. }
  5040. ],
  5041. "responses": {
  5042. "200": {
  5043. "description": "Resources returned",
  5044. "content": {
  5045. "application/json": {
  5046. "schema": {
  5047. "type": "object",
  5048. "required": [
  5049. "ocs"
  5050. ],
  5051. "properties": {
  5052. "ocs": {
  5053. "type": "object",
  5054. "required": [
  5055. "meta",
  5056. "data"
  5057. ],
  5058. "properties": {
  5059. "meta": {
  5060. "$ref": "#/components/schemas/OCSMeta"
  5061. },
  5062. "data": {
  5063. "type": "object",
  5064. "required": [
  5065. "resources"
  5066. ],
  5067. "properties": {
  5068. "resources": {
  5069. "type": "array",
  5070. "items": {
  5071. "$ref": "#/components/schemas/TeamResource"
  5072. }
  5073. }
  5074. }
  5075. }
  5076. }
  5077. }
  5078. }
  5079. }
  5080. }
  5081. }
  5082. }
  5083. }
  5084. }
  5085. },
  5086. "/ocs/v2.php/teams/resources/{providerId}/{resourceId}": {
  5087. "get": {
  5088. "operationId": "teams_api-list-teams",
  5089. "summary": "Get all teams of a resource",
  5090. "tags": [
  5091. "teams_api"
  5092. ],
  5093. "security": [
  5094. {
  5095. "bearer_auth": []
  5096. },
  5097. {
  5098. "basic_auth": []
  5099. }
  5100. ],
  5101. "parameters": [
  5102. {
  5103. "name": "providerId",
  5104. "in": "path",
  5105. "description": "Identifier of the provider (e.g. deck, talk, collectives)",
  5106. "required": true,
  5107. "schema": {
  5108. "type": "string"
  5109. }
  5110. },
  5111. {
  5112. "name": "resourceId",
  5113. "in": "path",
  5114. "description": "Unique id of the resource to list teams for (e.g. deck board id)",
  5115. "required": true,
  5116. "schema": {
  5117. "type": "string"
  5118. }
  5119. },
  5120. {
  5121. "name": "OCS-APIRequest",
  5122. "in": "header",
  5123. "description": "Required to be true for the API request to pass",
  5124. "required": true,
  5125. "schema": {
  5126. "type": "boolean",
  5127. "default": true
  5128. }
  5129. }
  5130. ],
  5131. "responses": {
  5132. "200": {
  5133. "description": "Teams returned",
  5134. "content": {
  5135. "application/json": {
  5136. "schema": {
  5137. "type": "object",
  5138. "required": [
  5139. "ocs"
  5140. ],
  5141. "properties": {
  5142. "ocs": {
  5143. "type": "object",
  5144. "required": [
  5145. "meta",
  5146. "data"
  5147. ],
  5148. "properties": {
  5149. "meta": {
  5150. "$ref": "#/components/schemas/OCSMeta"
  5151. },
  5152. "data": {
  5153. "type": "object",
  5154. "required": [
  5155. "teams"
  5156. ],
  5157. "properties": {
  5158. "teams": {
  5159. "type": "array",
  5160. "items": {
  5161. "$ref": "#/components/schemas/Team"
  5162. }
  5163. }
  5164. }
  5165. }
  5166. }
  5167. }
  5168. }
  5169. }
  5170. }
  5171. }
  5172. }
  5173. }
  5174. }
  5175. },
  5176. "/ocs/v2.php/textprocessing/tasktypes": {
  5177. "get": {
  5178. "operationId": "text_processing_api-task-types",
  5179. "summary": "This endpoint returns all available LanguageModel task types",
  5180. "tags": [
  5181. "text_processing_api"
  5182. ],
  5183. "security": [
  5184. {},
  5185. {
  5186. "bearer_auth": []
  5187. },
  5188. {
  5189. "basic_auth": []
  5190. }
  5191. ],
  5192. "parameters": [
  5193. {
  5194. "name": "OCS-APIRequest",
  5195. "in": "header",
  5196. "description": "Required to be true for the API request to pass",
  5197. "required": true,
  5198. "schema": {
  5199. "type": "boolean",
  5200. "default": true
  5201. }
  5202. }
  5203. ],
  5204. "responses": {
  5205. "200": {
  5206. "description": "Task types returned",
  5207. "content": {
  5208. "application/json": {
  5209. "schema": {
  5210. "type": "object",
  5211. "required": [
  5212. "ocs"
  5213. ],
  5214. "properties": {
  5215. "ocs": {
  5216. "type": "object",
  5217. "required": [
  5218. "meta",
  5219. "data"
  5220. ],
  5221. "properties": {
  5222. "meta": {
  5223. "$ref": "#/components/schemas/OCSMeta"
  5224. },
  5225. "data": {
  5226. "type": "object",
  5227. "required": [
  5228. "types"
  5229. ],
  5230. "properties": {
  5231. "types": {
  5232. "type": "array",
  5233. "items": {
  5234. "type": "object",
  5235. "required": [
  5236. "id",
  5237. "name",
  5238. "description"
  5239. ],
  5240. "properties": {
  5241. "id": {
  5242. "type": "string"
  5243. },
  5244. "name": {
  5245. "type": "string"
  5246. },
  5247. "description": {
  5248. "type": "string"
  5249. }
  5250. }
  5251. }
  5252. }
  5253. }
  5254. }
  5255. }
  5256. }
  5257. }
  5258. }
  5259. }
  5260. }
  5261. }
  5262. }
  5263. }
  5264. },
  5265. "/ocs/v2.php/textprocessing/schedule": {
  5266. "post": {
  5267. "operationId": "text_processing_api-schedule",
  5268. "summary": "This endpoint allows scheduling a language model task",
  5269. "tags": [
  5270. "text_processing_api"
  5271. ],
  5272. "security": [
  5273. {},
  5274. {
  5275. "bearer_auth": []
  5276. },
  5277. {
  5278. "basic_auth": []
  5279. }
  5280. ],
  5281. "requestBody": {
  5282. "required": true,
  5283. "content": {
  5284. "application/json": {
  5285. "schema": {
  5286. "type": "object",
  5287. "required": [
  5288. "input",
  5289. "type",
  5290. "appId"
  5291. ],
  5292. "properties": {
  5293. "input": {
  5294. "type": "string",
  5295. "description": "Input text"
  5296. },
  5297. "type": {
  5298. "type": "string",
  5299. "description": "Type of the task"
  5300. },
  5301. "appId": {
  5302. "type": "string",
  5303. "description": "ID of the app that will execute the task"
  5304. },
  5305. "identifier": {
  5306. "type": "string",
  5307. "default": "",
  5308. "description": "An arbitrary identifier for the task"
  5309. }
  5310. }
  5311. }
  5312. }
  5313. }
  5314. },
  5315. "parameters": [
  5316. {
  5317. "name": "OCS-APIRequest",
  5318. "in": "header",
  5319. "description": "Required to be true for the API request to pass",
  5320. "required": true,
  5321. "schema": {
  5322. "type": "boolean",
  5323. "default": true
  5324. }
  5325. }
  5326. ],
  5327. "responses": {
  5328. "200": {
  5329. "description": "Task scheduled successfully",
  5330. "content": {
  5331. "application/json": {
  5332. "schema": {
  5333. "type": "object",
  5334. "required": [
  5335. "ocs"
  5336. ],
  5337. "properties": {
  5338. "ocs": {
  5339. "type": "object",
  5340. "required": [
  5341. "meta",
  5342. "data"
  5343. ],
  5344. "properties": {
  5345. "meta": {
  5346. "$ref": "#/components/schemas/OCSMeta"
  5347. },
  5348. "data": {
  5349. "type": "object",
  5350. "required": [
  5351. "task"
  5352. ],
  5353. "properties": {
  5354. "task": {
  5355. "$ref": "#/components/schemas/TextProcessingTask"
  5356. }
  5357. }
  5358. }
  5359. }
  5360. }
  5361. }
  5362. }
  5363. }
  5364. }
  5365. },
  5366. "500": {
  5367. "description": "",
  5368. "content": {
  5369. "application/json": {
  5370. "schema": {
  5371. "type": "object",
  5372. "required": [
  5373. "ocs"
  5374. ],
  5375. "properties": {
  5376. "ocs": {
  5377. "type": "object",
  5378. "required": [
  5379. "meta",
  5380. "data"
  5381. ],
  5382. "properties": {
  5383. "meta": {
  5384. "$ref": "#/components/schemas/OCSMeta"
  5385. },
  5386. "data": {
  5387. "type": "object",
  5388. "required": [
  5389. "message"
  5390. ],
  5391. "properties": {
  5392. "message": {
  5393. "type": "string"
  5394. }
  5395. }
  5396. }
  5397. }
  5398. }
  5399. }
  5400. }
  5401. }
  5402. }
  5403. },
  5404. "400": {
  5405. "description": "Scheduling task is not possible",
  5406. "content": {
  5407. "application/json": {
  5408. "schema": {
  5409. "type": "object",
  5410. "required": [
  5411. "ocs"
  5412. ],
  5413. "properties": {
  5414. "ocs": {
  5415. "type": "object",
  5416. "required": [
  5417. "meta",
  5418. "data"
  5419. ],
  5420. "properties": {
  5421. "meta": {
  5422. "$ref": "#/components/schemas/OCSMeta"
  5423. },
  5424. "data": {
  5425. "type": "object",
  5426. "required": [
  5427. "message"
  5428. ],
  5429. "properties": {
  5430. "message": {
  5431. "type": "string"
  5432. }
  5433. }
  5434. }
  5435. }
  5436. }
  5437. }
  5438. }
  5439. }
  5440. }
  5441. },
  5442. "412": {
  5443. "description": "Scheduling task is not possible",
  5444. "content": {
  5445. "application/json": {
  5446. "schema": {
  5447. "type": "object",
  5448. "required": [
  5449. "ocs"
  5450. ],
  5451. "properties": {
  5452. "ocs": {
  5453. "type": "object",
  5454. "required": [
  5455. "meta",
  5456. "data"
  5457. ],
  5458. "properties": {
  5459. "meta": {
  5460. "$ref": "#/components/schemas/OCSMeta"
  5461. },
  5462. "data": {
  5463. "type": "object",
  5464. "required": [
  5465. "message"
  5466. ],
  5467. "properties": {
  5468. "message": {
  5469. "type": "string"
  5470. }
  5471. }
  5472. }
  5473. }
  5474. }
  5475. }
  5476. }
  5477. }
  5478. }
  5479. }
  5480. }
  5481. }
  5482. },
  5483. "/ocs/v2.php/textprocessing/task/{id}": {
  5484. "get": {
  5485. "operationId": "text_processing_api-get-task",
  5486. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  5487. "tags": [
  5488. "text_processing_api"
  5489. ],
  5490. "security": [
  5491. {},
  5492. {
  5493. "bearer_auth": []
  5494. },
  5495. {
  5496. "basic_auth": []
  5497. }
  5498. ],
  5499. "parameters": [
  5500. {
  5501. "name": "id",
  5502. "in": "path",
  5503. "description": "The id of the task",
  5504. "required": true,
  5505. "schema": {
  5506. "type": "integer",
  5507. "format": "int64"
  5508. }
  5509. },
  5510. {
  5511. "name": "OCS-APIRequest",
  5512. "in": "header",
  5513. "description": "Required to be true for the API request to pass",
  5514. "required": true,
  5515. "schema": {
  5516. "type": "boolean",
  5517. "default": true
  5518. }
  5519. }
  5520. ],
  5521. "responses": {
  5522. "200": {
  5523. "description": "Task returned",
  5524. "content": {
  5525. "application/json": {
  5526. "schema": {
  5527. "type": "object",
  5528. "required": [
  5529. "ocs"
  5530. ],
  5531. "properties": {
  5532. "ocs": {
  5533. "type": "object",
  5534. "required": [
  5535. "meta",
  5536. "data"
  5537. ],
  5538. "properties": {
  5539. "meta": {
  5540. "$ref": "#/components/schemas/OCSMeta"
  5541. },
  5542. "data": {
  5543. "type": "object",
  5544. "required": [
  5545. "task"
  5546. ],
  5547. "properties": {
  5548. "task": {
  5549. "$ref": "#/components/schemas/TextProcessingTask"
  5550. }
  5551. }
  5552. }
  5553. }
  5554. }
  5555. }
  5556. }
  5557. }
  5558. }
  5559. },
  5560. "404": {
  5561. "description": "Task not found",
  5562. "content": {
  5563. "application/json": {
  5564. "schema": {
  5565. "type": "object",
  5566. "required": [
  5567. "ocs"
  5568. ],
  5569. "properties": {
  5570. "ocs": {
  5571. "type": "object",
  5572. "required": [
  5573. "meta",
  5574. "data"
  5575. ],
  5576. "properties": {
  5577. "meta": {
  5578. "$ref": "#/components/schemas/OCSMeta"
  5579. },
  5580. "data": {
  5581. "type": "object",
  5582. "required": [
  5583. "message"
  5584. ],
  5585. "properties": {
  5586. "message": {
  5587. "type": "string"
  5588. }
  5589. }
  5590. }
  5591. }
  5592. }
  5593. }
  5594. }
  5595. }
  5596. }
  5597. },
  5598. "500": {
  5599. "description": "",
  5600. "content": {
  5601. "application/json": {
  5602. "schema": {
  5603. "type": "object",
  5604. "required": [
  5605. "ocs"
  5606. ],
  5607. "properties": {
  5608. "ocs": {
  5609. "type": "object",
  5610. "required": [
  5611. "meta",
  5612. "data"
  5613. ],
  5614. "properties": {
  5615. "meta": {
  5616. "$ref": "#/components/schemas/OCSMeta"
  5617. },
  5618. "data": {
  5619. "type": "object",
  5620. "required": [
  5621. "message"
  5622. ],
  5623. "properties": {
  5624. "message": {
  5625. "type": "string"
  5626. }
  5627. }
  5628. }
  5629. }
  5630. }
  5631. }
  5632. }
  5633. }
  5634. }
  5635. }
  5636. }
  5637. },
  5638. "delete": {
  5639. "operationId": "text_processing_api-delete-task",
  5640. "summary": "This endpoint allows to delete a scheduled task for a user",
  5641. "tags": [
  5642. "text_processing_api"
  5643. ],
  5644. "security": [
  5645. {
  5646. "bearer_auth": []
  5647. },
  5648. {
  5649. "basic_auth": []
  5650. }
  5651. ],
  5652. "parameters": [
  5653. {
  5654. "name": "id",
  5655. "in": "path",
  5656. "description": "The id of the task",
  5657. "required": true,
  5658. "schema": {
  5659. "type": "integer",
  5660. "format": "int64"
  5661. }
  5662. },
  5663. {
  5664. "name": "OCS-APIRequest",
  5665. "in": "header",
  5666. "description": "Required to be true for the API request to pass",
  5667. "required": true,
  5668. "schema": {
  5669. "type": "boolean",
  5670. "default": true
  5671. }
  5672. }
  5673. ],
  5674. "responses": {
  5675. "200": {
  5676. "description": "Task returned",
  5677. "content": {
  5678. "application/json": {
  5679. "schema": {
  5680. "type": "object",
  5681. "required": [
  5682. "ocs"
  5683. ],
  5684. "properties": {
  5685. "ocs": {
  5686. "type": "object",
  5687. "required": [
  5688. "meta",
  5689. "data"
  5690. ],
  5691. "properties": {
  5692. "meta": {
  5693. "$ref": "#/components/schemas/OCSMeta"
  5694. },
  5695. "data": {
  5696. "type": "object",
  5697. "required": [
  5698. "task"
  5699. ],
  5700. "properties": {
  5701. "task": {
  5702. "$ref": "#/components/schemas/TextProcessingTask"
  5703. }
  5704. }
  5705. }
  5706. }
  5707. }
  5708. }
  5709. }
  5710. }
  5711. }
  5712. },
  5713. "404": {
  5714. "description": "Task not found",
  5715. "content": {
  5716. "application/json": {
  5717. "schema": {
  5718. "type": "object",
  5719. "required": [
  5720. "ocs"
  5721. ],
  5722. "properties": {
  5723. "ocs": {
  5724. "type": "object",
  5725. "required": [
  5726. "meta",
  5727. "data"
  5728. ],
  5729. "properties": {
  5730. "meta": {
  5731. "$ref": "#/components/schemas/OCSMeta"
  5732. },
  5733. "data": {
  5734. "type": "object",
  5735. "required": [
  5736. "message"
  5737. ],
  5738. "properties": {
  5739. "message": {
  5740. "type": "string"
  5741. }
  5742. }
  5743. }
  5744. }
  5745. }
  5746. }
  5747. }
  5748. }
  5749. }
  5750. },
  5751. "500": {
  5752. "description": "",
  5753. "content": {
  5754. "application/json": {
  5755. "schema": {
  5756. "type": "object",
  5757. "required": [
  5758. "ocs"
  5759. ],
  5760. "properties": {
  5761. "ocs": {
  5762. "type": "object",
  5763. "required": [
  5764. "meta",
  5765. "data"
  5766. ],
  5767. "properties": {
  5768. "meta": {
  5769. "$ref": "#/components/schemas/OCSMeta"
  5770. },
  5771. "data": {
  5772. "type": "object",
  5773. "required": [
  5774. "message"
  5775. ],
  5776. "properties": {
  5777. "message": {
  5778. "type": "string"
  5779. }
  5780. }
  5781. }
  5782. }
  5783. }
  5784. }
  5785. }
  5786. }
  5787. }
  5788. }
  5789. }
  5790. }
  5791. },
  5792. "/ocs/v2.php/textprocessing/tasks/app/{appId}": {
  5793. "get": {
  5794. "operationId": "text_processing_api-list-tasks-by-app",
  5795. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  5796. "tags": [
  5797. "text_processing_api"
  5798. ],
  5799. "security": [
  5800. {
  5801. "bearer_auth": []
  5802. },
  5803. {
  5804. "basic_auth": []
  5805. }
  5806. ],
  5807. "parameters": [
  5808. {
  5809. "name": "appId",
  5810. "in": "path",
  5811. "description": "ID of the app",
  5812. "required": true,
  5813. "schema": {
  5814. "type": "string"
  5815. }
  5816. },
  5817. {
  5818. "name": "identifier",
  5819. "in": "query",
  5820. "description": "An arbitrary identifier for the task",
  5821. "schema": {
  5822. "type": "string",
  5823. "nullable": true
  5824. }
  5825. },
  5826. {
  5827. "name": "OCS-APIRequest",
  5828. "in": "header",
  5829. "description": "Required to be true for the API request to pass",
  5830. "required": true,
  5831. "schema": {
  5832. "type": "boolean",
  5833. "default": true
  5834. }
  5835. }
  5836. ],
  5837. "responses": {
  5838. "200": {
  5839. "description": "Task list returned",
  5840. "content": {
  5841. "application/json": {
  5842. "schema": {
  5843. "type": "object",
  5844. "required": [
  5845. "ocs"
  5846. ],
  5847. "properties": {
  5848. "ocs": {
  5849. "type": "object",
  5850. "required": [
  5851. "meta",
  5852. "data"
  5853. ],
  5854. "properties": {
  5855. "meta": {
  5856. "$ref": "#/components/schemas/OCSMeta"
  5857. },
  5858. "data": {
  5859. "type": "object",
  5860. "required": [
  5861. "tasks"
  5862. ],
  5863. "properties": {
  5864. "tasks": {
  5865. "type": "array",
  5866. "items": {
  5867. "$ref": "#/components/schemas/TextProcessingTask"
  5868. }
  5869. }
  5870. }
  5871. }
  5872. }
  5873. }
  5874. }
  5875. }
  5876. }
  5877. }
  5878. },
  5879. "500": {
  5880. "description": "",
  5881. "content": {
  5882. "application/json": {
  5883. "schema": {
  5884. "type": "object",
  5885. "required": [
  5886. "ocs"
  5887. ],
  5888. "properties": {
  5889. "ocs": {
  5890. "type": "object",
  5891. "required": [
  5892. "meta",
  5893. "data"
  5894. ],
  5895. "properties": {
  5896. "meta": {
  5897. "$ref": "#/components/schemas/OCSMeta"
  5898. },
  5899. "data": {
  5900. "type": "object",
  5901. "required": [
  5902. "message"
  5903. ],
  5904. "properties": {
  5905. "message": {
  5906. "type": "string"
  5907. }
  5908. }
  5909. }
  5910. }
  5911. }
  5912. }
  5913. }
  5914. }
  5915. }
  5916. }
  5917. }
  5918. }
  5919. },
  5920. "/ocs/v2.php/text2image/is_available": {
  5921. "get": {
  5922. "operationId": "text_to_image_api-is-available",
  5923. "summary": "Check whether this feature is available",
  5924. "tags": [
  5925. "text_to_image_api"
  5926. ],
  5927. "security": [
  5928. {},
  5929. {
  5930. "bearer_auth": []
  5931. },
  5932. {
  5933. "basic_auth": []
  5934. }
  5935. ],
  5936. "parameters": [
  5937. {
  5938. "name": "OCS-APIRequest",
  5939. "in": "header",
  5940. "description": "Required to be true for the API request to pass",
  5941. "required": true,
  5942. "schema": {
  5943. "type": "boolean",
  5944. "default": true
  5945. }
  5946. }
  5947. ],
  5948. "responses": {
  5949. "200": {
  5950. "description": "Returns availability status",
  5951. "content": {
  5952. "application/json": {
  5953. "schema": {
  5954. "type": "object",
  5955. "required": [
  5956. "ocs"
  5957. ],
  5958. "properties": {
  5959. "ocs": {
  5960. "type": "object",
  5961. "required": [
  5962. "meta",
  5963. "data"
  5964. ],
  5965. "properties": {
  5966. "meta": {
  5967. "$ref": "#/components/schemas/OCSMeta"
  5968. },
  5969. "data": {
  5970. "type": "object",
  5971. "required": [
  5972. "isAvailable"
  5973. ],
  5974. "properties": {
  5975. "isAvailable": {
  5976. "type": "boolean"
  5977. }
  5978. }
  5979. }
  5980. }
  5981. }
  5982. }
  5983. }
  5984. }
  5985. }
  5986. }
  5987. }
  5988. }
  5989. },
  5990. "/ocs/v2.php/text2image/schedule": {
  5991. "post": {
  5992. "operationId": "text_to_image_api-schedule",
  5993. "summary": "This endpoint allows scheduling a text to image task",
  5994. "tags": [
  5995. "text_to_image_api"
  5996. ],
  5997. "security": [
  5998. {},
  5999. {
  6000. "bearer_auth": []
  6001. },
  6002. {
  6003. "basic_auth": []
  6004. }
  6005. ],
  6006. "requestBody": {
  6007. "required": true,
  6008. "content": {
  6009. "application/json": {
  6010. "schema": {
  6011. "type": "object",
  6012. "required": [
  6013. "input",
  6014. "appId"
  6015. ],
  6016. "properties": {
  6017. "input": {
  6018. "type": "string",
  6019. "description": "Input text"
  6020. },
  6021. "appId": {
  6022. "type": "string",
  6023. "description": "ID of the app that will execute the task"
  6024. },
  6025. "identifier": {
  6026. "type": "string",
  6027. "default": "",
  6028. "description": "An arbitrary identifier for the task"
  6029. },
  6030. "numberOfImages": {
  6031. "type": "integer",
  6032. "format": "int64",
  6033. "default": 8,
  6034. "description": "The number of images to generate"
  6035. }
  6036. }
  6037. }
  6038. }
  6039. }
  6040. },
  6041. "parameters": [
  6042. {
  6043. "name": "OCS-APIRequest",
  6044. "in": "header",
  6045. "description": "Required to be true for the API request to pass",
  6046. "required": true,
  6047. "schema": {
  6048. "type": "boolean",
  6049. "default": true
  6050. }
  6051. }
  6052. ],
  6053. "responses": {
  6054. "200": {
  6055. "description": "Task scheduled successfully",
  6056. "content": {
  6057. "application/json": {
  6058. "schema": {
  6059. "type": "object",
  6060. "required": [
  6061. "ocs"
  6062. ],
  6063. "properties": {
  6064. "ocs": {
  6065. "type": "object",
  6066. "required": [
  6067. "meta",
  6068. "data"
  6069. ],
  6070. "properties": {
  6071. "meta": {
  6072. "$ref": "#/components/schemas/OCSMeta"
  6073. },
  6074. "data": {
  6075. "type": "object",
  6076. "required": [
  6077. "task"
  6078. ],
  6079. "properties": {
  6080. "task": {
  6081. "$ref": "#/components/schemas/TextToImageTask"
  6082. }
  6083. }
  6084. }
  6085. }
  6086. }
  6087. }
  6088. }
  6089. }
  6090. }
  6091. },
  6092. "412": {
  6093. "description": "Scheduling task is not possible",
  6094. "content": {
  6095. "application/json": {
  6096. "schema": {
  6097. "type": "object",
  6098. "required": [
  6099. "ocs"
  6100. ],
  6101. "properties": {
  6102. "ocs": {
  6103. "type": "object",
  6104. "required": [
  6105. "meta",
  6106. "data"
  6107. ],
  6108. "properties": {
  6109. "meta": {
  6110. "$ref": "#/components/schemas/OCSMeta"
  6111. },
  6112. "data": {
  6113. "type": "object",
  6114. "required": [
  6115. "message"
  6116. ],
  6117. "properties": {
  6118. "message": {
  6119. "type": "string"
  6120. }
  6121. }
  6122. }
  6123. }
  6124. }
  6125. }
  6126. }
  6127. }
  6128. }
  6129. },
  6130. "500": {
  6131. "description": "",
  6132. "content": {
  6133. "application/json": {
  6134. "schema": {
  6135. "type": "object",
  6136. "required": [
  6137. "ocs"
  6138. ],
  6139. "properties": {
  6140. "ocs": {
  6141. "type": "object",
  6142. "required": [
  6143. "meta",
  6144. "data"
  6145. ],
  6146. "properties": {
  6147. "meta": {
  6148. "$ref": "#/components/schemas/OCSMeta"
  6149. },
  6150. "data": {
  6151. "type": "object",
  6152. "required": [
  6153. "message"
  6154. ],
  6155. "properties": {
  6156. "message": {
  6157. "type": "string"
  6158. }
  6159. }
  6160. }
  6161. }
  6162. }
  6163. }
  6164. }
  6165. }
  6166. }
  6167. }
  6168. }
  6169. }
  6170. },
  6171. "/ocs/v2.php/text2image/task/{id}": {
  6172. "get": {
  6173. "operationId": "text_to_image_api-get-task",
  6174. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  6175. "tags": [
  6176. "text_to_image_api"
  6177. ],
  6178. "security": [
  6179. {},
  6180. {
  6181. "bearer_auth": []
  6182. },
  6183. {
  6184. "basic_auth": []
  6185. }
  6186. ],
  6187. "parameters": [
  6188. {
  6189. "name": "id",
  6190. "in": "path",
  6191. "description": "The id of the task",
  6192. "required": true,
  6193. "schema": {
  6194. "type": "integer",
  6195. "format": "int64"
  6196. }
  6197. },
  6198. {
  6199. "name": "OCS-APIRequest",
  6200. "in": "header",
  6201. "description": "Required to be true for the API request to pass",
  6202. "required": true,
  6203. "schema": {
  6204. "type": "boolean",
  6205. "default": true
  6206. }
  6207. }
  6208. ],
  6209. "responses": {
  6210. "200": {
  6211. "description": "Task returned",
  6212. "content": {
  6213. "application/json": {
  6214. "schema": {
  6215. "type": "object",
  6216. "required": [
  6217. "ocs"
  6218. ],
  6219. "properties": {
  6220. "ocs": {
  6221. "type": "object",
  6222. "required": [
  6223. "meta",
  6224. "data"
  6225. ],
  6226. "properties": {
  6227. "meta": {
  6228. "$ref": "#/components/schemas/OCSMeta"
  6229. },
  6230. "data": {
  6231. "type": "object",
  6232. "required": [
  6233. "task"
  6234. ],
  6235. "properties": {
  6236. "task": {
  6237. "$ref": "#/components/schemas/TextToImageTask"
  6238. }
  6239. }
  6240. }
  6241. }
  6242. }
  6243. }
  6244. }
  6245. }
  6246. }
  6247. },
  6248. "404": {
  6249. "description": "Task not found",
  6250. "content": {
  6251. "application/json": {
  6252. "schema": {
  6253. "type": "object",
  6254. "required": [
  6255. "ocs"
  6256. ],
  6257. "properties": {
  6258. "ocs": {
  6259. "type": "object",
  6260. "required": [
  6261. "meta",
  6262. "data"
  6263. ],
  6264. "properties": {
  6265. "meta": {
  6266. "$ref": "#/components/schemas/OCSMeta"
  6267. },
  6268. "data": {
  6269. "type": "object",
  6270. "required": [
  6271. "message"
  6272. ],
  6273. "properties": {
  6274. "message": {
  6275. "type": "string"
  6276. }
  6277. }
  6278. }
  6279. }
  6280. }
  6281. }
  6282. }
  6283. }
  6284. }
  6285. },
  6286. "500": {
  6287. "description": "",
  6288. "content": {
  6289. "application/json": {
  6290. "schema": {
  6291. "type": "object",
  6292. "required": [
  6293. "ocs"
  6294. ],
  6295. "properties": {
  6296. "ocs": {
  6297. "type": "object",
  6298. "required": [
  6299. "meta",
  6300. "data"
  6301. ],
  6302. "properties": {
  6303. "meta": {
  6304. "$ref": "#/components/schemas/OCSMeta"
  6305. },
  6306. "data": {
  6307. "type": "object",
  6308. "required": [
  6309. "message"
  6310. ],
  6311. "properties": {
  6312. "message": {
  6313. "type": "string"
  6314. }
  6315. }
  6316. }
  6317. }
  6318. }
  6319. }
  6320. }
  6321. }
  6322. }
  6323. }
  6324. }
  6325. },
  6326. "delete": {
  6327. "operationId": "text_to_image_api-delete-task",
  6328. "summary": "This endpoint allows to delete a scheduled task for a user",
  6329. "tags": [
  6330. "text_to_image_api"
  6331. ],
  6332. "security": [
  6333. {
  6334. "bearer_auth": []
  6335. },
  6336. {
  6337. "basic_auth": []
  6338. }
  6339. ],
  6340. "parameters": [
  6341. {
  6342. "name": "id",
  6343. "in": "path",
  6344. "description": "The id of the task",
  6345. "required": true,
  6346. "schema": {
  6347. "type": "integer",
  6348. "format": "int64"
  6349. }
  6350. },
  6351. {
  6352. "name": "OCS-APIRequest",
  6353. "in": "header",
  6354. "description": "Required to be true for the API request to pass",
  6355. "required": true,
  6356. "schema": {
  6357. "type": "boolean",
  6358. "default": true
  6359. }
  6360. }
  6361. ],
  6362. "responses": {
  6363. "200": {
  6364. "description": "Task returned",
  6365. "content": {
  6366. "application/json": {
  6367. "schema": {
  6368. "type": "object",
  6369. "required": [
  6370. "ocs"
  6371. ],
  6372. "properties": {
  6373. "ocs": {
  6374. "type": "object",
  6375. "required": [
  6376. "meta",
  6377. "data"
  6378. ],
  6379. "properties": {
  6380. "meta": {
  6381. "$ref": "#/components/schemas/OCSMeta"
  6382. },
  6383. "data": {
  6384. "type": "object",
  6385. "required": [
  6386. "task"
  6387. ],
  6388. "properties": {
  6389. "task": {
  6390. "$ref": "#/components/schemas/TextToImageTask"
  6391. }
  6392. }
  6393. }
  6394. }
  6395. }
  6396. }
  6397. }
  6398. }
  6399. }
  6400. },
  6401. "404": {
  6402. "description": "Task not found",
  6403. "content": {
  6404. "application/json": {
  6405. "schema": {
  6406. "type": "object",
  6407. "required": [
  6408. "ocs"
  6409. ],
  6410. "properties": {
  6411. "ocs": {
  6412. "type": "object",
  6413. "required": [
  6414. "meta",
  6415. "data"
  6416. ],
  6417. "properties": {
  6418. "meta": {
  6419. "$ref": "#/components/schemas/OCSMeta"
  6420. },
  6421. "data": {
  6422. "type": "object",
  6423. "required": [
  6424. "message"
  6425. ],
  6426. "properties": {
  6427. "message": {
  6428. "type": "string"
  6429. }
  6430. }
  6431. }
  6432. }
  6433. }
  6434. }
  6435. }
  6436. }
  6437. }
  6438. },
  6439. "500": {
  6440. "description": "",
  6441. "content": {
  6442. "application/json": {
  6443. "schema": {
  6444. "type": "object",
  6445. "required": [
  6446. "ocs"
  6447. ],
  6448. "properties": {
  6449. "ocs": {
  6450. "type": "object",
  6451. "required": [
  6452. "meta",
  6453. "data"
  6454. ],
  6455. "properties": {
  6456. "meta": {
  6457. "$ref": "#/components/schemas/OCSMeta"
  6458. },
  6459. "data": {
  6460. "type": "object",
  6461. "required": [
  6462. "message"
  6463. ],
  6464. "properties": {
  6465. "message": {
  6466. "type": "string"
  6467. }
  6468. }
  6469. }
  6470. }
  6471. }
  6472. }
  6473. }
  6474. }
  6475. }
  6476. }
  6477. }
  6478. }
  6479. },
  6480. "/ocs/v2.php/text2image/task/{id}/image/{index}": {
  6481. "get": {
  6482. "operationId": "text_to_image_api-get-image",
  6483. "summary": "This endpoint allows downloading the resulting image of a task",
  6484. "tags": [
  6485. "text_to_image_api"
  6486. ],
  6487. "security": [
  6488. {},
  6489. {
  6490. "bearer_auth": []
  6491. },
  6492. {
  6493. "basic_auth": []
  6494. }
  6495. ],
  6496. "parameters": [
  6497. {
  6498. "name": "id",
  6499. "in": "path",
  6500. "description": "The id of the task",
  6501. "required": true,
  6502. "schema": {
  6503. "type": "integer",
  6504. "format": "int64"
  6505. }
  6506. },
  6507. {
  6508. "name": "index",
  6509. "in": "path",
  6510. "description": "The index of the image to retrieve",
  6511. "required": true,
  6512. "schema": {
  6513. "type": "integer",
  6514. "format": "int64"
  6515. }
  6516. },
  6517. {
  6518. "name": "OCS-APIRequest",
  6519. "in": "header",
  6520. "description": "Required to be true for the API request to pass",
  6521. "required": true,
  6522. "schema": {
  6523. "type": "boolean",
  6524. "default": true
  6525. }
  6526. }
  6527. ],
  6528. "responses": {
  6529. "200": {
  6530. "description": "Image returned",
  6531. "content": {
  6532. "*/*": {
  6533. "schema": {
  6534. "type": "string",
  6535. "format": "binary"
  6536. }
  6537. }
  6538. }
  6539. },
  6540. "404": {
  6541. "description": "Task or image not found",
  6542. "content": {
  6543. "application/json": {
  6544. "schema": {
  6545. "type": "object",
  6546. "required": [
  6547. "ocs"
  6548. ],
  6549. "properties": {
  6550. "ocs": {
  6551. "type": "object",
  6552. "required": [
  6553. "meta",
  6554. "data"
  6555. ],
  6556. "properties": {
  6557. "meta": {
  6558. "$ref": "#/components/schemas/OCSMeta"
  6559. },
  6560. "data": {
  6561. "type": "object",
  6562. "required": [
  6563. "message"
  6564. ],
  6565. "properties": {
  6566. "message": {
  6567. "type": "string"
  6568. }
  6569. }
  6570. }
  6571. }
  6572. }
  6573. }
  6574. }
  6575. }
  6576. }
  6577. },
  6578. "500": {
  6579. "description": "",
  6580. "content": {
  6581. "application/json": {
  6582. "schema": {
  6583. "type": "object",
  6584. "required": [
  6585. "ocs"
  6586. ],
  6587. "properties": {
  6588. "ocs": {
  6589. "type": "object",
  6590. "required": [
  6591. "meta",
  6592. "data"
  6593. ],
  6594. "properties": {
  6595. "meta": {
  6596. "$ref": "#/components/schemas/OCSMeta"
  6597. },
  6598. "data": {
  6599. "type": "object",
  6600. "required": [
  6601. "message"
  6602. ],
  6603. "properties": {
  6604. "message": {
  6605. "type": "string"
  6606. }
  6607. }
  6608. }
  6609. }
  6610. }
  6611. }
  6612. }
  6613. }
  6614. }
  6615. }
  6616. }
  6617. }
  6618. },
  6619. "/ocs/v2.php/text2image/tasks/app/{appId}": {
  6620. "get": {
  6621. "operationId": "text_to_image_api-list-tasks-by-app",
  6622. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  6623. "tags": [
  6624. "text_to_image_api"
  6625. ],
  6626. "security": [
  6627. {
  6628. "bearer_auth": []
  6629. },
  6630. {
  6631. "basic_auth": []
  6632. }
  6633. ],
  6634. "parameters": [
  6635. {
  6636. "name": "appId",
  6637. "in": "path",
  6638. "description": "ID of the app",
  6639. "required": true,
  6640. "schema": {
  6641. "type": "string"
  6642. }
  6643. },
  6644. {
  6645. "name": "identifier",
  6646. "in": "query",
  6647. "description": "An arbitrary identifier for the task",
  6648. "schema": {
  6649. "type": "string",
  6650. "nullable": true
  6651. }
  6652. },
  6653. {
  6654. "name": "OCS-APIRequest",
  6655. "in": "header",
  6656. "description": "Required to be true for the API request to pass",
  6657. "required": true,
  6658. "schema": {
  6659. "type": "boolean",
  6660. "default": true
  6661. }
  6662. }
  6663. ],
  6664. "responses": {
  6665. "200": {
  6666. "description": "Task list returned",
  6667. "content": {
  6668. "application/json": {
  6669. "schema": {
  6670. "type": "object",
  6671. "required": [
  6672. "ocs"
  6673. ],
  6674. "properties": {
  6675. "ocs": {
  6676. "type": "object",
  6677. "required": [
  6678. "meta",
  6679. "data"
  6680. ],
  6681. "properties": {
  6682. "meta": {
  6683. "$ref": "#/components/schemas/OCSMeta"
  6684. },
  6685. "data": {
  6686. "type": "object",
  6687. "required": [
  6688. "tasks"
  6689. ],
  6690. "properties": {
  6691. "tasks": {
  6692. "type": "array",
  6693. "items": {
  6694. "$ref": "#/components/schemas/TextToImageTask"
  6695. }
  6696. }
  6697. }
  6698. }
  6699. }
  6700. }
  6701. }
  6702. }
  6703. }
  6704. }
  6705. },
  6706. "500": {
  6707. "description": "",
  6708. "content": {
  6709. "application/json": {
  6710. "schema": {
  6711. "type": "object",
  6712. "required": [
  6713. "ocs"
  6714. ],
  6715. "properties": {
  6716. "ocs": {
  6717. "type": "object",
  6718. "required": [
  6719. "meta",
  6720. "data"
  6721. ],
  6722. "properties": {
  6723. "meta": {
  6724. "$ref": "#/components/schemas/OCSMeta"
  6725. },
  6726. "data": {
  6727. "type": "object",
  6728. "required": [
  6729. "message"
  6730. ],
  6731. "properties": {
  6732. "message": {
  6733. "type": "string"
  6734. }
  6735. }
  6736. }
  6737. }
  6738. }
  6739. }
  6740. }
  6741. }
  6742. }
  6743. }
  6744. }
  6745. }
  6746. },
  6747. "/ocs/v2.php/translation/languages": {
  6748. "get": {
  6749. "operationId": "translation_api-languages",
  6750. "summary": "Get the list of supported languages",
  6751. "tags": [
  6752. "translation_api"
  6753. ],
  6754. "security": [
  6755. {},
  6756. {
  6757. "bearer_auth": []
  6758. },
  6759. {
  6760. "basic_auth": []
  6761. }
  6762. ],
  6763. "parameters": [
  6764. {
  6765. "name": "OCS-APIRequest",
  6766. "in": "header",
  6767. "description": "Required to be true for the API request to pass",
  6768. "required": true,
  6769. "schema": {
  6770. "type": "boolean",
  6771. "default": true
  6772. }
  6773. }
  6774. ],
  6775. "responses": {
  6776. "200": {
  6777. "description": "Supported languages returned",
  6778. "content": {
  6779. "application/json": {
  6780. "schema": {
  6781. "type": "object",
  6782. "required": [
  6783. "ocs"
  6784. ],
  6785. "properties": {
  6786. "ocs": {
  6787. "type": "object",
  6788. "required": [
  6789. "meta",
  6790. "data"
  6791. ],
  6792. "properties": {
  6793. "meta": {
  6794. "$ref": "#/components/schemas/OCSMeta"
  6795. },
  6796. "data": {
  6797. "type": "object",
  6798. "required": [
  6799. "languages",
  6800. "languageDetection"
  6801. ],
  6802. "properties": {
  6803. "languages": {
  6804. "type": "array",
  6805. "items": {
  6806. "type": "object",
  6807. "required": [
  6808. "from",
  6809. "fromLabel",
  6810. "to",
  6811. "toLabel"
  6812. ],
  6813. "properties": {
  6814. "from": {
  6815. "type": "string"
  6816. },
  6817. "fromLabel": {
  6818. "type": "string"
  6819. },
  6820. "to": {
  6821. "type": "string"
  6822. },
  6823. "toLabel": {
  6824. "type": "string"
  6825. }
  6826. }
  6827. }
  6828. },
  6829. "languageDetection": {
  6830. "type": "boolean"
  6831. }
  6832. }
  6833. }
  6834. }
  6835. }
  6836. }
  6837. }
  6838. }
  6839. }
  6840. }
  6841. }
  6842. }
  6843. },
  6844. "/ocs/v2.php/translation/translate": {
  6845. "post": {
  6846. "operationId": "translation_api-translate",
  6847. "summary": "Translate a text",
  6848. "tags": [
  6849. "translation_api"
  6850. ],
  6851. "security": [
  6852. {},
  6853. {
  6854. "bearer_auth": []
  6855. },
  6856. {
  6857. "basic_auth": []
  6858. }
  6859. ],
  6860. "requestBody": {
  6861. "required": true,
  6862. "content": {
  6863. "application/json": {
  6864. "schema": {
  6865. "type": "object",
  6866. "required": [
  6867. "text",
  6868. "toLanguage"
  6869. ],
  6870. "properties": {
  6871. "text": {
  6872. "type": "string",
  6873. "description": "Text to be translated"
  6874. },
  6875. "fromLanguage": {
  6876. "type": "string",
  6877. "nullable": true,
  6878. "description": "Language to translate from"
  6879. },
  6880. "toLanguage": {
  6881. "type": "string",
  6882. "description": "Language to translate to"
  6883. }
  6884. }
  6885. }
  6886. }
  6887. }
  6888. },
  6889. "parameters": [
  6890. {
  6891. "name": "OCS-APIRequest",
  6892. "in": "header",
  6893. "description": "Required to be true for the API request to pass",
  6894. "required": true,
  6895. "schema": {
  6896. "type": "boolean",
  6897. "default": true
  6898. }
  6899. }
  6900. ],
  6901. "responses": {
  6902. "200": {
  6903. "description": "Translated text returned",
  6904. "content": {
  6905. "application/json": {
  6906. "schema": {
  6907. "type": "object",
  6908. "required": [
  6909. "ocs"
  6910. ],
  6911. "properties": {
  6912. "ocs": {
  6913. "type": "object",
  6914. "required": [
  6915. "meta",
  6916. "data"
  6917. ],
  6918. "properties": {
  6919. "meta": {
  6920. "$ref": "#/components/schemas/OCSMeta"
  6921. },
  6922. "data": {
  6923. "type": "object",
  6924. "required": [
  6925. "text",
  6926. "from"
  6927. ],
  6928. "properties": {
  6929. "text": {
  6930. "type": "string"
  6931. },
  6932. "from": {
  6933. "type": "string",
  6934. "nullable": true
  6935. }
  6936. }
  6937. }
  6938. }
  6939. }
  6940. }
  6941. }
  6942. }
  6943. }
  6944. },
  6945. "400": {
  6946. "description": "Language not detected or unable to translate",
  6947. "content": {
  6948. "application/json": {
  6949. "schema": {
  6950. "type": "object",
  6951. "required": [
  6952. "ocs"
  6953. ],
  6954. "properties": {
  6955. "ocs": {
  6956. "type": "object",
  6957. "required": [
  6958. "meta",
  6959. "data"
  6960. ],
  6961. "properties": {
  6962. "meta": {
  6963. "$ref": "#/components/schemas/OCSMeta"
  6964. },
  6965. "data": {
  6966. "type": "object",
  6967. "required": [
  6968. "message"
  6969. ],
  6970. "properties": {
  6971. "message": {
  6972. "type": "string"
  6973. },
  6974. "from": {
  6975. "type": "string",
  6976. "nullable": true
  6977. }
  6978. }
  6979. }
  6980. }
  6981. }
  6982. }
  6983. }
  6984. }
  6985. }
  6986. },
  6987. "412": {
  6988. "description": "Translating is not possible",
  6989. "content": {
  6990. "application/json": {
  6991. "schema": {
  6992. "type": "object",
  6993. "required": [
  6994. "ocs"
  6995. ],
  6996. "properties": {
  6997. "ocs": {
  6998. "type": "object",
  6999. "required": [
  7000. "meta",
  7001. "data"
  7002. ],
  7003. "properties": {
  7004. "meta": {
  7005. "$ref": "#/components/schemas/OCSMeta"
  7006. },
  7007. "data": {
  7008. "type": "object",
  7009. "required": [
  7010. "message"
  7011. ],
  7012. "properties": {
  7013. "message": {
  7014. "type": "string"
  7015. },
  7016. "from": {
  7017. "type": "string",
  7018. "nullable": true
  7019. }
  7020. }
  7021. }
  7022. }
  7023. }
  7024. }
  7025. }
  7026. }
  7027. }
  7028. },
  7029. "500": {
  7030. "description": "",
  7031. "content": {
  7032. "application/json": {
  7033. "schema": {
  7034. "type": "object",
  7035. "required": [
  7036. "ocs"
  7037. ],
  7038. "properties": {
  7039. "ocs": {
  7040. "type": "object",
  7041. "required": [
  7042. "meta",
  7043. "data"
  7044. ],
  7045. "properties": {
  7046. "meta": {
  7047. "$ref": "#/components/schemas/OCSMeta"
  7048. },
  7049. "data": {
  7050. "type": "object",
  7051. "required": [
  7052. "message"
  7053. ],
  7054. "properties": {
  7055. "message": {
  7056. "type": "string"
  7057. },
  7058. "from": {
  7059. "type": "string",
  7060. "nullable": true
  7061. }
  7062. }
  7063. }
  7064. }
  7065. }
  7066. }
  7067. }
  7068. }
  7069. }
  7070. }
  7071. }
  7072. }
  7073. },
  7074. "/ocs/v2.php/search/providers": {
  7075. "get": {
  7076. "operationId": "unified_search-get-providers",
  7077. "summary": "Get the providers for unified search",
  7078. "tags": [
  7079. "unified_search"
  7080. ],
  7081. "security": [
  7082. {
  7083. "bearer_auth": []
  7084. },
  7085. {
  7086. "basic_auth": []
  7087. }
  7088. ],
  7089. "parameters": [
  7090. {
  7091. "name": "from",
  7092. "in": "query",
  7093. "description": "the url the user is currently at",
  7094. "schema": {
  7095. "type": "string",
  7096. "default": ""
  7097. }
  7098. },
  7099. {
  7100. "name": "OCS-APIRequest",
  7101. "in": "header",
  7102. "description": "Required to be true for the API request to pass",
  7103. "required": true,
  7104. "schema": {
  7105. "type": "boolean",
  7106. "default": true
  7107. }
  7108. }
  7109. ],
  7110. "responses": {
  7111. "200": {
  7112. "description": "Providers returned",
  7113. "content": {
  7114. "application/json": {
  7115. "schema": {
  7116. "type": "object",
  7117. "required": [
  7118. "ocs"
  7119. ],
  7120. "properties": {
  7121. "ocs": {
  7122. "type": "object",
  7123. "required": [
  7124. "meta",
  7125. "data"
  7126. ],
  7127. "properties": {
  7128. "meta": {
  7129. "$ref": "#/components/schemas/OCSMeta"
  7130. },
  7131. "data": {
  7132. "type": "array",
  7133. "items": {
  7134. "$ref": "#/components/schemas/UnifiedSearchProvider"
  7135. }
  7136. }
  7137. }
  7138. }
  7139. }
  7140. }
  7141. }
  7142. }
  7143. }
  7144. }
  7145. }
  7146. },
  7147. "/ocs/v2.php/search/providers/{providerId}/search": {
  7148. "get": {
  7149. "operationId": "unified_search-search",
  7150. "summary": "Launch a search for a specific search provider.",
  7151. "description": "Additional filters are available for each provider. Send a request to /providers endpoint to list providers with their available filters.",
  7152. "tags": [
  7153. "unified_search"
  7154. ],
  7155. "security": [
  7156. {
  7157. "bearer_auth": []
  7158. },
  7159. {
  7160. "basic_auth": []
  7161. }
  7162. ],
  7163. "parameters": [
  7164. {
  7165. "name": "providerId",
  7166. "in": "path",
  7167. "description": "ID of the provider",
  7168. "required": true,
  7169. "schema": {
  7170. "type": "string"
  7171. }
  7172. },
  7173. {
  7174. "name": "term",
  7175. "in": "query",
  7176. "description": "Term to search",
  7177. "schema": {
  7178. "type": "string",
  7179. "default": ""
  7180. }
  7181. },
  7182. {
  7183. "name": "sortOrder",
  7184. "in": "query",
  7185. "description": "Order of entries",
  7186. "schema": {
  7187. "type": "integer",
  7188. "format": "int64",
  7189. "nullable": true
  7190. }
  7191. },
  7192. {
  7193. "name": "limit",
  7194. "in": "query",
  7195. "description": "Maximum amount of entries, limited to 25",
  7196. "schema": {
  7197. "type": "integer",
  7198. "format": "int64",
  7199. "nullable": true
  7200. }
  7201. },
  7202. {
  7203. "name": "cursor",
  7204. "in": "query",
  7205. "description": "Offset for searching",
  7206. "schema": {
  7207. "nullable": true,
  7208. "oneOf": [
  7209. {
  7210. "type": "integer",
  7211. "format": "int64"
  7212. },
  7213. {
  7214. "type": "string"
  7215. }
  7216. ]
  7217. }
  7218. },
  7219. {
  7220. "name": "from",
  7221. "in": "query",
  7222. "description": "The current user URL",
  7223. "schema": {
  7224. "type": "string",
  7225. "default": ""
  7226. }
  7227. },
  7228. {
  7229. "name": "OCS-APIRequest",
  7230. "in": "header",
  7231. "description": "Required to be true for the API request to pass",
  7232. "required": true,
  7233. "schema": {
  7234. "type": "boolean",
  7235. "default": true
  7236. }
  7237. }
  7238. ],
  7239. "responses": {
  7240. "200": {
  7241. "description": "Search entries returned",
  7242. "content": {
  7243. "application/json": {
  7244. "schema": {
  7245. "type": "object",
  7246. "required": [
  7247. "ocs"
  7248. ],
  7249. "properties": {
  7250. "ocs": {
  7251. "type": "object",
  7252. "required": [
  7253. "meta",
  7254. "data"
  7255. ],
  7256. "properties": {
  7257. "meta": {
  7258. "$ref": "#/components/schemas/OCSMeta"
  7259. },
  7260. "data": {
  7261. "$ref": "#/components/schemas/UnifiedSearchResult"
  7262. }
  7263. }
  7264. }
  7265. }
  7266. }
  7267. }
  7268. }
  7269. },
  7270. "400": {
  7271. "description": "Searching is not possible",
  7272. "content": {
  7273. "application/json": {
  7274. "schema": {
  7275. "type": "object",
  7276. "required": [
  7277. "ocs"
  7278. ],
  7279. "properties": {
  7280. "ocs": {
  7281. "type": "object",
  7282. "required": [
  7283. "meta",
  7284. "data"
  7285. ],
  7286. "properties": {
  7287. "meta": {
  7288. "$ref": "#/components/schemas/OCSMeta"
  7289. },
  7290. "data": {
  7291. "type": "string"
  7292. }
  7293. }
  7294. }
  7295. }
  7296. }
  7297. }
  7298. }
  7299. }
  7300. }
  7301. }
  7302. },
  7303. "/ocs/v2.php/core/whatsnew": {
  7304. "get": {
  7305. "operationId": "whats_new-get",
  7306. "summary": "Get the changes",
  7307. "tags": [
  7308. "whats_new"
  7309. ],
  7310. "security": [
  7311. {
  7312. "bearer_auth": []
  7313. },
  7314. {
  7315. "basic_auth": []
  7316. }
  7317. ],
  7318. "parameters": [
  7319. {
  7320. "name": "OCS-APIRequest",
  7321. "in": "header",
  7322. "description": "Required to be true for the API request to pass",
  7323. "required": true,
  7324. "schema": {
  7325. "type": "boolean",
  7326. "default": true
  7327. }
  7328. }
  7329. ],
  7330. "responses": {
  7331. "200": {
  7332. "description": "Changes returned",
  7333. "content": {
  7334. "application/json": {
  7335. "schema": {
  7336. "type": "object",
  7337. "required": [
  7338. "ocs"
  7339. ],
  7340. "properties": {
  7341. "ocs": {
  7342. "type": "object",
  7343. "required": [
  7344. "meta",
  7345. "data"
  7346. ],
  7347. "properties": {
  7348. "meta": {
  7349. "$ref": "#/components/schemas/OCSMeta"
  7350. },
  7351. "data": {
  7352. "type": "object",
  7353. "required": [
  7354. "changelogURL",
  7355. "product",
  7356. "version"
  7357. ],
  7358. "properties": {
  7359. "changelogURL": {
  7360. "type": "string"
  7361. },
  7362. "product": {
  7363. "type": "string"
  7364. },
  7365. "version": {
  7366. "type": "string"
  7367. },
  7368. "whatsNew": {
  7369. "type": "object",
  7370. "required": [
  7371. "regular",
  7372. "admin"
  7373. ],
  7374. "properties": {
  7375. "regular": {
  7376. "type": "array",
  7377. "items": {
  7378. "type": "string"
  7379. }
  7380. },
  7381. "admin": {
  7382. "type": "array",
  7383. "items": {
  7384. "type": "string"
  7385. }
  7386. }
  7387. }
  7388. }
  7389. }
  7390. }
  7391. }
  7392. }
  7393. }
  7394. }
  7395. }
  7396. }
  7397. },
  7398. "204": {
  7399. "description": "No changes"
  7400. }
  7401. }
  7402. },
  7403. "post": {
  7404. "operationId": "whats_new-dismiss",
  7405. "summary": "Dismiss the changes",
  7406. "tags": [
  7407. "whats_new"
  7408. ],
  7409. "security": [
  7410. {
  7411. "bearer_auth": []
  7412. },
  7413. {
  7414. "basic_auth": []
  7415. }
  7416. ],
  7417. "requestBody": {
  7418. "required": true,
  7419. "content": {
  7420. "application/json": {
  7421. "schema": {
  7422. "type": "object",
  7423. "required": [
  7424. "version"
  7425. ],
  7426. "properties": {
  7427. "version": {
  7428. "type": "string",
  7429. "description": "Version to dismiss the changes for"
  7430. }
  7431. }
  7432. }
  7433. }
  7434. }
  7435. },
  7436. "parameters": [
  7437. {
  7438. "name": "OCS-APIRequest",
  7439. "in": "header",
  7440. "description": "Required to be true for the API request to pass",
  7441. "required": true,
  7442. "schema": {
  7443. "type": "boolean",
  7444. "default": true
  7445. }
  7446. }
  7447. ],
  7448. "responses": {
  7449. "200": {
  7450. "description": "Changes dismissed",
  7451. "content": {
  7452. "application/json": {
  7453. "schema": {
  7454. "type": "object",
  7455. "required": [
  7456. "ocs"
  7457. ],
  7458. "properties": {
  7459. "ocs": {
  7460. "type": "object",
  7461. "required": [
  7462. "meta",
  7463. "data"
  7464. ],
  7465. "properties": {
  7466. "meta": {
  7467. "$ref": "#/components/schemas/OCSMeta"
  7468. },
  7469. "data": {}
  7470. }
  7471. }
  7472. }
  7473. }
  7474. }
  7475. }
  7476. },
  7477. "500": {
  7478. "description": "",
  7479. "content": {
  7480. "text/plain": {
  7481. "schema": {
  7482. "type": "string"
  7483. }
  7484. }
  7485. }
  7486. }
  7487. }
  7488. }
  7489. },
  7490. "/index.php/avatar/{userId}/{size}/dark": {
  7491. "get": {
  7492. "operationId": "avatar-get-avatar-dark",
  7493. "summary": "Get the dark avatar",
  7494. "tags": [
  7495. "avatar"
  7496. ],
  7497. "security": [
  7498. {},
  7499. {
  7500. "bearer_auth": []
  7501. },
  7502. {
  7503. "basic_auth": []
  7504. }
  7505. ],
  7506. "parameters": [
  7507. {
  7508. "name": "userId",
  7509. "in": "path",
  7510. "description": "ID of the user",
  7511. "required": true,
  7512. "schema": {
  7513. "type": "string"
  7514. }
  7515. },
  7516. {
  7517. "name": "size",
  7518. "in": "path",
  7519. "description": "Size of the avatar",
  7520. "required": true,
  7521. "schema": {
  7522. "type": "integer",
  7523. "format": "int64",
  7524. "enum": [
  7525. 64,
  7526. 512
  7527. ]
  7528. }
  7529. },
  7530. {
  7531. "name": "guestFallback",
  7532. "in": "query",
  7533. "description": "Fallback to guest avatar if not found",
  7534. "schema": {
  7535. "type": "integer",
  7536. "default": 0,
  7537. "enum": [
  7538. 0,
  7539. 1
  7540. ]
  7541. }
  7542. }
  7543. ],
  7544. "responses": {
  7545. "200": {
  7546. "description": "Avatar returned",
  7547. "headers": {
  7548. "X-NC-IsCustomAvatar": {
  7549. "schema": {
  7550. "type": "integer",
  7551. "format": "int64"
  7552. }
  7553. }
  7554. },
  7555. "content": {
  7556. "*/*": {
  7557. "schema": {
  7558. "type": "string",
  7559. "format": "binary"
  7560. }
  7561. }
  7562. }
  7563. },
  7564. "201": {
  7565. "description": "Avatar returned",
  7566. "headers": {
  7567. "X-NC-IsCustomAvatar": {
  7568. "schema": {
  7569. "type": "integer",
  7570. "format": "int64"
  7571. }
  7572. }
  7573. },
  7574. "content": {
  7575. "*/*": {
  7576. "schema": {
  7577. "type": "string",
  7578. "format": "binary"
  7579. }
  7580. }
  7581. }
  7582. },
  7583. "404": {
  7584. "description": "Avatar not found",
  7585. "content": {
  7586. "application/json": {
  7587. "schema": {}
  7588. }
  7589. }
  7590. },
  7591. "500": {
  7592. "description": ""
  7593. }
  7594. }
  7595. }
  7596. },
  7597. "/index.php/avatar/{userId}/{size}": {
  7598. "get": {
  7599. "operationId": "avatar-get-avatar",
  7600. "summary": "Get the avatar",
  7601. "tags": [
  7602. "avatar"
  7603. ],
  7604. "security": [
  7605. {},
  7606. {
  7607. "bearer_auth": []
  7608. },
  7609. {
  7610. "basic_auth": []
  7611. }
  7612. ],
  7613. "parameters": [
  7614. {
  7615. "name": "userId",
  7616. "in": "path",
  7617. "description": "ID of the user",
  7618. "required": true,
  7619. "schema": {
  7620. "type": "string"
  7621. }
  7622. },
  7623. {
  7624. "name": "size",
  7625. "in": "path",
  7626. "description": "Size of the avatar",
  7627. "required": true,
  7628. "schema": {
  7629. "type": "integer",
  7630. "format": "int64",
  7631. "enum": [
  7632. 64,
  7633. 512
  7634. ]
  7635. }
  7636. },
  7637. {
  7638. "name": "guestFallback",
  7639. "in": "query",
  7640. "description": "Fallback to guest avatar if not found",
  7641. "schema": {
  7642. "type": "integer",
  7643. "default": 0,
  7644. "enum": [
  7645. 0,
  7646. 1
  7647. ]
  7648. }
  7649. }
  7650. ],
  7651. "responses": {
  7652. "200": {
  7653. "description": "Avatar returned",
  7654. "headers": {
  7655. "X-NC-IsCustomAvatar": {
  7656. "schema": {
  7657. "type": "integer",
  7658. "format": "int64"
  7659. }
  7660. }
  7661. },
  7662. "content": {
  7663. "*/*": {
  7664. "schema": {
  7665. "type": "string",
  7666. "format": "binary"
  7667. }
  7668. }
  7669. }
  7670. },
  7671. "201": {
  7672. "description": "Avatar returned",
  7673. "headers": {
  7674. "X-NC-IsCustomAvatar": {
  7675. "schema": {
  7676. "type": "integer",
  7677. "format": "int64"
  7678. }
  7679. }
  7680. },
  7681. "content": {
  7682. "*/*": {
  7683. "schema": {
  7684. "type": "string",
  7685. "format": "binary"
  7686. }
  7687. }
  7688. }
  7689. },
  7690. "404": {
  7691. "description": "Avatar not found",
  7692. "content": {
  7693. "application/json": {
  7694. "schema": {}
  7695. }
  7696. }
  7697. },
  7698. "500": {
  7699. "description": ""
  7700. }
  7701. }
  7702. }
  7703. },
  7704. "/index.php/csrftoken": {
  7705. "get": {
  7706. "operationId": "csrf_token-index",
  7707. "summary": "Returns a new CSRF token.",
  7708. "tags": [
  7709. "csrf_token"
  7710. ],
  7711. "security": [
  7712. {},
  7713. {
  7714. "bearer_auth": []
  7715. },
  7716. {
  7717. "basic_auth": []
  7718. }
  7719. ],
  7720. "responses": {
  7721. "200": {
  7722. "description": "CSRF token returned",
  7723. "content": {
  7724. "application/json": {
  7725. "schema": {
  7726. "type": "object",
  7727. "required": [
  7728. "token"
  7729. ],
  7730. "properties": {
  7731. "token": {
  7732. "type": "string"
  7733. }
  7734. }
  7735. }
  7736. }
  7737. }
  7738. },
  7739. "403": {
  7740. "description": "Strict cookie check failed",
  7741. "content": {
  7742. "application/json": {
  7743. "schema": {}
  7744. }
  7745. }
  7746. }
  7747. }
  7748. }
  7749. },
  7750. "/index.php/login/v2/poll": {
  7751. "post": {
  7752. "operationId": "client_flow_login_v2-poll",
  7753. "summary": "Poll the login flow credentials",
  7754. "tags": [
  7755. "client_flow_login_v2"
  7756. ],
  7757. "security": [
  7758. {},
  7759. {
  7760. "bearer_auth": []
  7761. },
  7762. {
  7763. "basic_auth": []
  7764. }
  7765. ],
  7766. "requestBody": {
  7767. "required": true,
  7768. "content": {
  7769. "application/json": {
  7770. "schema": {
  7771. "type": "object",
  7772. "required": [
  7773. "token"
  7774. ],
  7775. "properties": {
  7776. "token": {
  7777. "type": "string",
  7778. "description": "Token of the flow"
  7779. }
  7780. }
  7781. }
  7782. }
  7783. }
  7784. },
  7785. "responses": {
  7786. "200": {
  7787. "description": "Login flow credentials returned",
  7788. "content": {
  7789. "application/json": {
  7790. "schema": {
  7791. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  7792. }
  7793. }
  7794. }
  7795. },
  7796. "404": {
  7797. "description": "Login flow not found or completed",
  7798. "content": {
  7799. "application/json": {
  7800. "schema": {}
  7801. }
  7802. }
  7803. }
  7804. }
  7805. }
  7806. },
  7807. "/index.php/login/v2": {
  7808. "post": {
  7809. "operationId": "client_flow_login_v2-init",
  7810. "summary": "Init a login flow",
  7811. "tags": [
  7812. "client_flow_login_v2"
  7813. ],
  7814. "security": [
  7815. {},
  7816. {
  7817. "bearer_auth": []
  7818. },
  7819. {
  7820. "basic_auth": []
  7821. }
  7822. ],
  7823. "responses": {
  7824. "200": {
  7825. "description": "Login flow init returned",
  7826. "content": {
  7827. "application/json": {
  7828. "schema": {
  7829. "$ref": "#/components/schemas/LoginFlowV2"
  7830. }
  7831. }
  7832. }
  7833. }
  7834. }
  7835. }
  7836. },
  7837. "/index.php/avatar/guest/{guestName}/{size}": {
  7838. "get": {
  7839. "operationId": "guest_avatar-get-avatar",
  7840. "summary": "Returns a guest avatar image response",
  7841. "tags": [
  7842. "guest_avatar"
  7843. ],
  7844. "security": [
  7845. {},
  7846. {
  7847. "bearer_auth": []
  7848. },
  7849. {
  7850. "basic_auth": []
  7851. }
  7852. ],
  7853. "parameters": [
  7854. {
  7855. "name": "guestName",
  7856. "in": "path",
  7857. "description": "The guest name, e.g. \"Albert\"",
  7858. "required": true,
  7859. "schema": {
  7860. "type": "string"
  7861. }
  7862. },
  7863. {
  7864. "name": "size",
  7865. "in": "path",
  7866. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7867. "required": true,
  7868. "schema": {
  7869. "type": "integer",
  7870. "format": "int64",
  7871. "enum": [
  7872. 64,
  7873. 512
  7874. ]
  7875. }
  7876. },
  7877. {
  7878. "name": "darkTheme",
  7879. "in": "query",
  7880. "description": "Return dark avatar",
  7881. "schema": {
  7882. "type": "integer",
  7883. "nullable": true,
  7884. "default": 0,
  7885. "enum": [
  7886. 0,
  7887. 1
  7888. ]
  7889. }
  7890. }
  7891. ],
  7892. "responses": {
  7893. "200": {
  7894. "description": "Custom avatar returned",
  7895. "headers": {
  7896. "X-NC-IsCustomAvatar": {
  7897. "schema": {
  7898. "type": "integer",
  7899. "format": "int64"
  7900. }
  7901. }
  7902. },
  7903. "content": {
  7904. "*/*": {
  7905. "schema": {
  7906. "type": "string",
  7907. "format": "binary"
  7908. }
  7909. }
  7910. }
  7911. },
  7912. "201": {
  7913. "description": "Avatar returned",
  7914. "headers": {
  7915. "X-NC-IsCustomAvatar": {
  7916. "schema": {
  7917. "type": "integer",
  7918. "format": "int64"
  7919. }
  7920. }
  7921. },
  7922. "content": {
  7923. "*/*": {
  7924. "schema": {
  7925. "type": "string",
  7926. "format": "binary"
  7927. }
  7928. }
  7929. }
  7930. },
  7931. "500": {
  7932. "description": ""
  7933. }
  7934. }
  7935. }
  7936. },
  7937. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  7938. "get": {
  7939. "operationId": "guest_avatar-get-avatar-dark",
  7940. "summary": "Returns a dark guest avatar image response",
  7941. "tags": [
  7942. "guest_avatar"
  7943. ],
  7944. "security": [
  7945. {},
  7946. {
  7947. "bearer_auth": []
  7948. },
  7949. {
  7950. "basic_auth": []
  7951. }
  7952. ],
  7953. "parameters": [
  7954. {
  7955. "name": "guestName",
  7956. "in": "path",
  7957. "description": "The guest name, e.g. \"Albert\"",
  7958. "required": true,
  7959. "schema": {
  7960. "type": "string"
  7961. }
  7962. },
  7963. {
  7964. "name": "size",
  7965. "in": "path",
  7966. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7967. "required": true,
  7968. "schema": {
  7969. "type": "integer",
  7970. "format": "int64",
  7971. "enum": [
  7972. 64,
  7973. 512
  7974. ]
  7975. }
  7976. }
  7977. ],
  7978. "responses": {
  7979. "200": {
  7980. "description": "Custom avatar returned",
  7981. "headers": {
  7982. "X-NC-IsCustomAvatar": {
  7983. "schema": {
  7984. "type": "integer",
  7985. "format": "int64"
  7986. }
  7987. }
  7988. },
  7989. "content": {
  7990. "*/*": {
  7991. "schema": {
  7992. "type": "string",
  7993. "format": "binary"
  7994. }
  7995. }
  7996. }
  7997. },
  7998. "201": {
  7999. "description": "Avatar returned",
  8000. "headers": {
  8001. "X-NC-IsCustomAvatar": {
  8002. "schema": {
  8003. "type": "integer",
  8004. "format": "int64"
  8005. }
  8006. }
  8007. },
  8008. "content": {
  8009. "*/*": {
  8010. "schema": {
  8011. "type": "string",
  8012. "format": "binary"
  8013. }
  8014. }
  8015. }
  8016. },
  8017. "500": {
  8018. "description": ""
  8019. }
  8020. }
  8021. }
  8022. },
  8023. "/index.php/login/confirm": {
  8024. "post": {
  8025. "operationId": "login-confirm-password",
  8026. "summary": "Confirm the user password",
  8027. "tags": [
  8028. "login"
  8029. ],
  8030. "security": [
  8031. {
  8032. "bearer_auth": []
  8033. },
  8034. {
  8035. "basic_auth": []
  8036. }
  8037. ],
  8038. "requestBody": {
  8039. "required": true,
  8040. "content": {
  8041. "application/json": {
  8042. "schema": {
  8043. "type": "object",
  8044. "required": [
  8045. "password"
  8046. ],
  8047. "properties": {
  8048. "password": {
  8049. "type": "string",
  8050. "description": "The password of the user"
  8051. }
  8052. }
  8053. }
  8054. }
  8055. }
  8056. },
  8057. "responses": {
  8058. "200": {
  8059. "description": "Password confirmation succeeded",
  8060. "content": {
  8061. "application/json": {
  8062. "schema": {
  8063. "type": "object",
  8064. "required": [
  8065. "lastLogin"
  8066. ],
  8067. "properties": {
  8068. "lastLogin": {
  8069. "type": "integer",
  8070. "format": "int64"
  8071. }
  8072. }
  8073. }
  8074. }
  8075. }
  8076. },
  8077. "403": {
  8078. "description": "Password confirmation failed",
  8079. "content": {
  8080. "application/json": {
  8081. "schema": {}
  8082. }
  8083. }
  8084. }
  8085. }
  8086. }
  8087. },
  8088. "/index.php/ocm-provider": {
  8089. "get": {
  8090. "operationId": "ocm-discovery",
  8091. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  8092. "tags": [
  8093. "ocm"
  8094. ],
  8095. "security": [
  8096. {},
  8097. {
  8098. "bearer_auth": []
  8099. },
  8100. {
  8101. "basic_auth": []
  8102. }
  8103. ],
  8104. "responses": {
  8105. "200": {
  8106. "description": "OCM Provider details returned",
  8107. "headers": {
  8108. "X-NEXTCLOUD-OCM-PROVIDERS": {
  8109. "schema": {
  8110. "type": "boolean",
  8111. "enum": [
  8112. true
  8113. ]
  8114. }
  8115. }
  8116. },
  8117. "content": {
  8118. "application/json": {
  8119. "schema": {
  8120. "type": "object",
  8121. "required": [
  8122. "enabled",
  8123. "apiVersion",
  8124. "endPoint",
  8125. "resourceTypes"
  8126. ],
  8127. "properties": {
  8128. "enabled": {
  8129. "type": "boolean"
  8130. },
  8131. "apiVersion": {
  8132. "type": "string"
  8133. },
  8134. "endPoint": {
  8135. "type": "string"
  8136. },
  8137. "resourceTypes": {
  8138. "type": "array",
  8139. "items": {
  8140. "type": "object",
  8141. "required": [
  8142. "name",
  8143. "shareTypes",
  8144. "protocols"
  8145. ],
  8146. "properties": {
  8147. "name": {
  8148. "type": "string"
  8149. },
  8150. "shareTypes": {
  8151. "type": "array",
  8152. "items": {
  8153. "type": "string"
  8154. }
  8155. },
  8156. "protocols": {
  8157. "type": "object",
  8158. "required": [
  8159. "webdav"
  8160. ],
  8161. "properties": {
  8162. "webdav": {
  8163. "type": "string"
  8164. }
  8165. }
  8166. }
  8167. }
  8168. }
  8169. }
  8170. }
  8171. }
  8172. }
  8173. }
  8174. },
  8175. "500": {
  8176. "description": "OCM not supported",
  8177. "content": {
  8178. "application/json": {
  8179. "schema": {
  8180. "type": "object",
  8181. "required": [
  8182. "message"
  8183. ],
  8184. "properties": {
  8185. "message": {
  8186. "type": "string"
  8187. }
  8188. }
  8189. }
  8190. }
  8191. }
  8192. }
  8193. }
  8194. }
  8195. },
  8196. "/index.php/core/preview.png": {
  8197. "get": {
  8198. "operationId": "preview-get-preview",
  8199. "summary": "Get a preview by file path",
  8200. "tags": [
  8201. "preview"
  8202. ],
  8203. "security": [
  8204. {
  8205. "bearer_auth": []
  8206. },
  8207. {
  8208. "basic_auth": []
  8209. }
  8210. ],
  8211. "parameters": [
  8212. {
  8213. "name": "file",
  8214. "in": "query",
  8215. "description": "Path of the file",
  8216. "schema": {
  8217. "type": "string",
  8218. "default": ""
  8219. }
  8220. },
  8221. {
  8222. "name": "x",
  8223. "in": "query",
  8224. "description": "Width of the preview. A width of -1 will use the original image width.",
  8225. "schema": {
  8226. "type": "integer",
  8227. "format": "int64",
  8228. "default": 32
  8229. }
  8230. },
  8231. {
  8232. "name": "y",
  8233. "in": "query",
  8234. "description": "Height of the preview. A height of -1 will use the original image height.",
  8235. "schema": {
  8236. "type": "integer",
  8237. "format": "int64",
  8238. "default": 32
  8239. }
  8240. },
  8241. {
  8242. "name": "a",
  8243. "in": "query",
  8244. "description": "Preserve the aspect ratio",
  8245. "schema": {
  8246. "type": "integer",
  8247. "default": 0,
  8248. "enum": [
  8249. 0,
  8250. 1
  8251. ]
  8252. }
  8253. },
  8254. {
  8255. "name": "forceIcon",
  8256. "in": "query",
  8257. "description": "Force returning an icon",
  8258. "schema": {
  8259. "type": "integer",
  8260. "default": 1,
  8261. "enum": [
  8262. 0,
  8263. 1
  8264. ]
  8265. }
  8266. },
  8267. {
  8268. "name": "mode",
  8269. "in": "query",
  8270. "description": "How to crop the image",
  8271. "schema": {
  8272. "type": "string",
  8273. "default": "fill",
  8274. "enum": [
  8275. "fill",
  8276. "cover"
  8277. ]
  8278. }
  8279. },
  8280. {
  8281. "name": "mimeFallback",
  8282. "in": "query",
  8283. "description": "Whether to fallback to the mime icon if no preview is available",
  8284. "schema": {
  8285. "type": "integer",
  8286. "default": 0,
  8287. "enum": [
  8288. 0,
  8289. 1
  8290. ]
  8291. }
  8292. }
  8293. ],
  8294. "responses": {
  8295. "200": {
  8296. "description": "Preview returned",
  8297. "content": {
  8298. "*/*": {
  8299. "schema": {
  8300. "type": "string",
  8301. "format": "binary"
  8302. }
  8303. }
  8304. }
  8305. },
  8306. "400": {
  8307. "description": "Getting preview is not possible",
  8308. "content": {
  8309. "application/json": {
  8310. "schema": {}
  8311. }
  8312. }
  8313. },
  8314. "403": {
  8315. "description": "Getting preview is not allowed",
  8316. "content": {
  8317. "application/json": {
  8318. "schema": {}
  8319. }
  8320. }
  8321. },
  8322. "404": {
  8323. "description": "Preview not found",
  8324. "content": {
  8325. "application/json": {
  8326. "schema": {}
  8327. }
  8328. }
  8329. },
  8330. "303": {
  8331. "description": "Redirect to the mime icon url if mimeFallback is true",
  8332. "headers": {
  8333. "Location": {
  8334. "schema": {
  8335. "type": "string"
  8336. }
  8337. }
  8338. }
  8339. }
  8340. }
  8341. }
  8342. },
  8343. "/index.php/core/preview": {
  8344. "get": {
  8345. "operationId": "preview-get-preview-by-file-id",
  8346. "summary": "Get a preview by file ID",
  8347. "tags": [
  8348. "preview"
  8349. ],
  8350. "security": [
  8351. {
  8352. "bearer_auth": []
  8353. },
  8354. {
  8355. "basic_auth": []
  8356. }
  8357. ],
  8358. "parameters": [
  8359. {
  8360. "name": "fileId",
  8361. "in": "query",
  8362. "description": "ID of the file",
  8363. "schema": {
  8364. "type": "integer",
  8365. "format": "int64",
  8366. "default": -1
  8367. }
  8368. },
  8369. {
  8370. "name": "x",
  8371. "in": "query",
  8372. "description": "Width of the preview. A width of -1 will use the original image width.",
  8373. "schema": {
  8374. "type": "integer",
  8375. "format": "int64",
  8376. "default": 32
  8377. }
  8378. },
  8379. {
  8380. "name": "y",
  8381. "in": "query",
  8382. "description": "Height of the preview. A height of -1 will use the original image height.",
  8383. "schema": {
  8384. "type": "integer",
  8385. "format": "int64",
  8386. "default": 32
  8387. }
  8388. },
  8389. {
  8390. "name": "a",
  8391. "in": "query",
  8392. "description": "Preserve the aspect ratio",
  8393. "schema": {
  8394. "type": "integer",
  8395. "default": 0,
  8396. "enum": [
  8397. 0,
  8398. 1
  8399. ]
  8400. }
  8401. },
  8402. {
  8403. "name": "forceIcon",
  8404. "in": "query",
  8405. "description": "Force returning an icon",
  8406. "schema": {
  8407. "type": "integer",
  8408. "default": 1,
  8409. "enum": [
  8410. 0,
  8411. 1
  8412. ]
  8413. }
  8414. },
  8415. {
  8416. "name": "mode",
  8417. "in": "query",
  8418. "description": "How to crop the image",
  8419. "schema": {
  8420. "type": "string",
  8421. "default": "fill",
  8422. "enum": [
  8423. "fill",
  8424. "cover"
  8425. ]
  8426. }
  8427. },
  8428. {
  8429. "name": "mimeFallback",
  8430. "in": "query",
  8431. "description": "Whether to fallback to the mime icon if no preview is available",
  8432. "schema": {
  8433. "type": "integer",
  8434. "default": 0,
  8435. "enum": [
  8436. 0,
  8437. 1
  8438. ]
  8439. }
  8440. }
  8441. ],
  8442. "responses": {
  8443. "200": {
  8444. "description": "Preview returned",
  8445. "content": {
  8446. "*/*": {
  8447. "schema": {
  8448. "type": "string",
  8449. "format": "binary"
  8450. }
  8451. }
  8452. }
  8453. },
  8454. "400": {
  8455. "description": "Getting preview is not possible",
  8456. "content": {
  8457. "application/json": {
  8458. "schema": {}
  8459. }
  8460. }
  8461. },
  8462. "403": {
  8463. "description": "Getting preview is not allowed",
  8464. "content": {
  8465. "application/json": {
  8466. "schema": {}
  8467. }
  8468. }
  8469. },
  8470. "404": {
  8471. "description": "Preview not found",
  8472. "content": {
  8473. "application/json": {
  8474. "schema": {}
  8475. }
  8476. }
  8477. },
  8478. "303": {
  8479. "description": "Redirect to the mime icon url if mimeFallback is true",
  8480. "headers": {
  8481. "Location": {
  8482. "schema": {
  8483. "type": "string"
  8484. }
  8485. }
  8486. }
  8487. }
  8488. }
  8489. }
  8490. },
  8491. "/index.php/core/references/preview/{referenceId}": {
  8492. "get": {
  8493. "operationId": "reference-preview",
  8494. "summary": "Get a preview for a reference",
  8495. "tags": [
  8496. "reference"
  8497. ],
  8498. "security": [
  8499. {},
  8500. {
  8501. "bearer_auth": []
  8502. },
  8503. {
  8504. "basic_auth": []
  8505. }
  8506. ],
  8507. "parameters": [
  8508. {
  8509. "name": "referenceId",
  8510. "in": "path",
  8511. "description": "the reference cache key",
  8512. "required": true,
  8513. "schema": {
  8514. "type": "string"
  8515. }
  8516. }
  8517. ],
  8518. "responses": {
  8519. "200": {
  8520. "description": "Preview returned",
  8521. "content": {
  8522. "*/*": {
  8523. "schema": {
  8524. "type": "string",
  8525. "format": "binary"
  8526. }
  8527. }
  8528. }
  8529. },
  8530. "404": {
  8531. "description": "Reference not found",
  8532. "content": {
  8533. "application/json": {
  8534. "schema": {
  8535. "type": "string"
  8536. }
  8537. }
  8538. }
  8539. }
  8540. }
  8541. }
  8542. },
  8543. "/index.php/core/wipe/check": {
  8544. "post": {
  8545. "operationId": "wipe-check-wipe",
  8546. "summary": "Check if the device should be wiped",
  8547. "tags": [
  8548. "wipe"
  8549. ],
  8550. "security": [
  8551. {},
  8552. {
  8553. "bearer_auth": []
  8554. },
  8555. {
  8556. "basic_auth": []
  8557. }
  8558. ],
  8559. "requestBody": {
  8560. "required": true,
  8561. "content": {
  8562. "application/json": {
  8563. "schema": {
  8564. "type": "object",
  8565. "required": [
  8566. "token"
  8567. ],
  8568. "properties": {
  8569. "token": {
  8570. "type": "string",
  8571. "description": "App password"
  8572. }
  8573. }
  8574. }
  8575. }
  8576. }
  8577. },
  8578. "responses": {
  8579. "200": {
  8580. "description": "Device should be wiped",
  8581. "content": {
  8582. "application/json": {
  8583. "schema": {
  8584. "type": "object",
  8585. "required": [
  8586. "wipe"
  8587. ],
  8588. "properties": {
  8589. "wipe": {
  8590. "type": "boolean"
  8591. }
  8592. }
  8593. }
  8594. }
  8595. }
  8596. },
  8597. "404": {
  8598. "description": "Device should not be wiped",
  8599. "content": {
  8600. "application/json": {
  8601. "schema": {}
  8602. }
  8603. }
  8604. }
  8605. }
  8606. }
  8607. },
  8608. "/index.php/core/wipe/success": {
  8609. "post": {
  8610. "operationId": "wipe-wipe-done",
  8611. "summary": "Finish the wipe",
  8612. "tags": [
  8613. "wipe"
  8614. ],
  8615. "security": [
  8616. {},
  8617. {
  8618. "bearer_auth": []
  8619. },
  8620. {
  8621. "basic_auth": []
  8622. }
  8623. ],
  8624. "requestBody": {
  8625. "required": true,
  8626. "content": {
  8627. "application/json": {
  8628. "schema": {
  8629. "type": "object",
  8630. "required": [
  8631. "token"
  8632. ],
  8633. "properties": {
  8634. "token": {
  8635. "type": "string",
  8636. "description": "App password"
  8637. }
  8638. }
  8639. }
  8640. }
  8641. }
  8642. },
  8643. "responses": {
  8644. "200": {
  8645. "description": "Wipe finished successfully",
  8646. "content": {
  8647. "application/json": {
  8648. "schema": {}
  8649. }
  8650. }
  8651. },
  8652. "404": {
  8653. "description": "Device should not be wiped",
  8654. "content": {
  8655. "application/json": {
  8656. "schema": {}
  8657. }
  8658. }
  8659. }
  8660. }
  8661. }
  8662. },
  8663. "/status.php": {
  8664. "get": {
  8665. "operationId": "get-status",
  8666. "responses": {
  8667. "200": {
  8668. "description": "Status returned",
  8669. "content": {
  8670. "application/json": {
  8671. "schema": {
  8672. "$ref": "#/components/schemas/Status"
  8673. }
  8674. }
  8675. }
  8676. }
  8677. }
  8678. }
  8679. },
  8680. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/file/{fileId}": {
  8681. "get": {
  8682. "operationId": "task_processing_api-get-file-contents-ex-app",
  8683. "summary": "Returns the contents of a file referenced in a task(ExApp route version)",
  8684. "description": "This endpoint requires admin access",
  8685. "tags": [
  8686. "task_processing_api"
  8687. ],
  8688. "security": [
  8689. {
  8690. "bearer_auth": []
  8691. },
  8692. {
  8693. "basic_auth": []
  8694. }
  8695. ],
  8696. "parameters": [
  8697. {
  8698. "name": "taskId",
  8699. "in": "path",
  8700. "description": "The id of the task",
  8701. "required": true,
  8702. "schema": {
  8703. "type": "integer",
  8704. "format": "int64"
  8705. }
  8706. },
  8707. {
  8708. "name": "fileId",
  8709. "in": "path",
  8710. "description": "The file id of the file to retrieve",
  8711. "required": true,
  8712. "schema": {
  8713. "type": "integer",
  8714. "format": "int64"
  8715. }
  8716. },
  8717. {
  8718. "name": "OCS-APIRequest",
  8719. "in": "header",
  8720. "description": "Required to be true for the API request to pass",
  8721. "required": true,
  8722. "schema": {
  8723. "type": "boolean",
  8724. "default": true
  8725. }
  8726. }
  8727. ],
  8728. "responses": {
  8729. "200": {
  8730. "description": "File content returned",
  8731. "content": {
  8732. "*/*": {
  8733. "schema": {
  8734. "type": "string",
  8735. "format": "binary"
  8736. }
  8737. }
  8738. }
  8739. },
  8740. "500": {
  8741. "description": "",
  8742. "content": {
  8743. "application/json": {
  8744. "schema": {
  8745. "type": "object",
  8746. "required": [
  8747. "ocs"
  8748. ],
  8749. "properties": {
  8750. "ocs": {
  8751. "type": "object",
  8752. "required": [
  8753. "meta",
  8754. "data"
  8755. ],
  8756. "properties": {
  8757. "meta": {
  8758. "$ref": "#/components/schemas/OCSMeta"
  8759. },
  8760. "data": {
  8761. "type": "object",
  8762. "required": [
  8763. "message"
  8764. ],
  8765. "properties": {
  8766. "message": {
  8767. "type": "string"
  8768. }
  8769. }
  8770. }
  8771. }
  8772. }
  8773. }
  8774. }
  8775. }
  8776. }
  8777. },
  8778. "404": {
  8779. "description": "Task or file not found",
  8780. "content": {
  8781. "application/json": {
  8782. "schema": {
  8783. "type": "object",
  8784. "required": [
  8785. "ocs"
  8786. ],
  8787. "properties": {
  8788. "ocs": {
  8789. "type": "object",
  8790. "required": [
  8791. "meta",
  8792. "data"
  8793. ],
  8794. "properties": {
  8795. "meta": {
  8796. "$ref": "#/components/schemas/OCSMeta"
  8797. },
  8798. "data": {
  8799. "type": "object",
  8800. "required": [
  8801. "message"
  8802. ],
  8803. "properties": {
  8804. "message": {
  8805. "type": "string"
  8806. }
  8807. }
  8808. }
  8809. }
  8810. }
  8811. }
  8812. }
  8813. }
  8814. }
  8815. }
  8816. }
  8817. }
  8818. },
  8819. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/file": {
  8820. "post": {
  8821. "operationId": "task_processing_api-set-file-contents-ex-app",
  8822. "summary": "Upload a file so it can be referenced in a task result (ExApp route version)",
  8823. "description": "Use field 'file' for the file upload\nThis endpoint requires admin access",
  8824. "tags": [
  8825. "task_processing_api"
  8826. ],
  8827. "security": [
  8828. {
  8829. "bearer_auth": []
  8830. },
  8831. {
  8832. "basic_auth": []
  8833. }
  8834. ],
  8835. "parameters": [
  8836. {
  8837. "name": "taskId",
  8838. "in": "path",
  8839. "description": "The id of the task",
  8840. "required": true,
  8841. "schema": {
  8842. "type": "integer",
  8843. "format": "int64"
  8844. }
  8845. },
  8846. {
  8847. "name": "OCS-APIRequest",
  8848. "in": "header",
  8849. "description": "Required to be true for the API request to pass",
  8850. "required": true,
  8851. "schema": {
  8852. "type": "boolean",
  8853. "default": true
  8854. }
  8855. }
  8856. ],
  8857. "responses": {
  8858. "201": {
  8859. "description": "File created",
  8860. "content": {
  8861. "application/json": {
  8862. "schema": {
  8863. "type": "object",
  8864. "required": [
  8865. "ocs"
  8866. ],
  8867. "properties": {
  8868. "ocs": {
  8869. "type": "object",
  8870. "required": [
  8871. "meta",
  8872. "data"
  8873. ],
  8874. "properties": {
  8875. "meta": {
  8876. "$ref": "#/components/schemas/OCSMeta"
  8877. },
  8878. "data": {
  8879. "type": "object",
  8880. "required": [
  8881. "fileId"
  8882. ],
  8883. "properties": {
  8884. "fileId": {
  8885. "type": "integer",
  8886. "format": "int64"
  8887. }
  8888. }
  8889. }
  8890. }
  8891. }
  8892. }
  8893. }
  8894. }
  8895. }
  8896. },
  8897. "400": {
  8898. "description": "File upload failed or no file was uploaded",
  8899. "content": {
  8900. "application/json": {
  8901. "schema": {
  8902. "type": "object",
  8903. "required": [
  8904. "ocs"
  8905. ],
  8906. "properties": {
  8907. "ocs": {
  8908. "type": "object",
  8909. "required": [
  8910. "meta",
  8911. "data"
  8912. ],
  8913. "properties": {
  8914. "meta": {
  8915. "$ref": "#/components/schemas/OCSMeta"
  8916. },
  8917. "data": {
  8918. "type": "object",
  8919. "required": [
  8920. "message"
  8921. ],
  8922. "properties": {
  8923. "message": {
  8924. "type": "string"
  8925. }
  8926. }
  8927. }
  8928. }
  8929. }
  8930. }
  8931. }
  8932. }
  8933. }
  8934. },
  8935. "500": {
  8936. "description": "",
  8937. "content": {
  8938. "application/json": {
  8939. "schema": {
  8940. "type": "object",
  8941. "required": [
  8942. "ocs"
  8943. ],
  8944. "properties": {
  8945. "ocs": {
  8946. "type": "object",
  8947. "required": [
  8948. "meta",
  8949. "data"
  8950. ],
  8951. "properties": {
  8952. "meta": {
  8953. "$ref": "#/components/schemas/OCSMeta"
  8954. },
  8955. "data": {
  8956. "type": "object",
  8957. "required": [
  8958. "message"
  8959. ],
  8960. "properties": {
  8961. "message": {
  8962. "type": "string"
  8963. }
  8964. }
  8965. }
  8966. }
  8967. }
  8968. }
  8969. }
  8970. }
  8971. }
  8972. },
  8973. "404": {
  8974. "description": "Task not found",
  8975. "content": {
  8976. "application/json": {
  8977. "schema": {
  8978. "type": "object",
  8979. "required": [
  8980. "ocs"
  8981. ],
  8982. "properties": {
  8983. "ocs": {
  8984. "type": "object",
  8985. "required": [
  8986. "meta",
  8987. "data"
  8988. ],
  8989. "properties": {
  8990. "meta": {
  8991. "$ref": "#/components/schemas/OCSMeta"
  8992. },
  8993. "data": {
  8994. "type": "object",
  8995. "required": [
  8996. "message"
  8997. ],
  8998. "properties": {
  8999. "message": {
  9000. "type": "string"
  9001. }
  9002. }
  9003. }
  9004. }
  9005. }
  9006. }
  9007. }
  9008. }
  9009. }
  9010. }
  9011. }
  9012. }
  9013. },
  9014. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/progress": {
  9015. "post": {
  9016. "operationId": "task_processing_api-set-progress",
  9017. "summary": "Sets the task progress",
  9018. "description": "This endpoint requires admin access",
  9019. "tags": [
  9020. "task_processing_api"
  9021. ],
  9022. "security": [
  9023. {
  9024. "bearer_auth": []
  9025. },
  9026. {
  9027. "basic_auth": []
  9028. }
  9029. ],
  9030. "requestBody": {
  9031. "required": true,
  9032. "content": {
  9033. "application/json": {
  9034. "schema": {
  9035. "type": "object",
  9036. "required": [
  9037. "progress"
  9038. ],
  9039. "properties": {
  9040. "progress": {
  9041. "type": "number",
  9042. "format": "double",
  9043. "description": "The progress"
  9044. }
  9045. }
  9046. }
  9047. }
  9048. }
  9049. },
  9050. "parameters": [
  9051. {
  9052. "name": "taskId",
  9053. "in": "path",
  9054. "description": "The id of the task",
  9055. "required": true,
  9056. "schema": {
  9057. "type": "integer",
  9058. "format": "int64"
  9059. }
  9060. },
  9061. {
  9062. "name": "OCS-APIRequest",
  9063. "in": "header",
  9064. "description": "Required to be true for the API request to pass",
  9065. "required": true,
  9066. "schema": {
  9067. "type": "boolean",
  9068. "default": true
  9069. }
  9070. }
  9071. ],
  9072. "responses": {
  9073. "200": {
  9074. "description": "Progress updated successfully",
  9075. "content": {
  9076. "application/json": {
  9077. "schema": {
  9078. "type": "object",
  9079. "required": [
  9080. "ocs"
  9081. ],
  9082. "properties": {
  9083. "ocs": {
  9084. "type": "object",
  9085. "required": [
  9086. "meta",
  9087. "data"
  9088. ],
  9089. "properties": {
  9090. "meta": {
  9091. "$ref": "#/components/schemas/OCSMeta"
  9092. },
  9093. "data": {
  9094. "type": "object",
  9095. "required": [
  9096. "task"
  9097. ],
  9098. "properties": {
  9099. "task": {
  9100. "$ref": "#/components/schemas/TaskProcessingTask"
  9101. }
  9102. }
  9103. }
  9104. }
  9105. }
  9106. }
  9107. }
  9108. }
  9109. }
  9110. },
  9111. "500": {
  9112. "description": "",
  9113. "content": {
  9114. "application/json": {
  9115. "schema": {
  9116. "type": "object",
  9117. "required": [
  9118. "ocs"
  9119. ],
  9120. "properties": {
  9121. "ocs": {
  9122. "type": "object",
  9123. "required": [
  9124. "meta",
  9125. "data"
  9126. ],
  9127. "properties": {
  9128. "meta": {
  9129. "$ref": "#/components/schemas/OCSMeta"
  9130. },
  9131. "data": {
  9132. "type": "object",
  9133. "required": [
  9134. "message"
  9135. ],
  9136. "properties": {
  9137. "message": {
  9138. "type": "string"
  9139. }
  9140. }
  9141. }
  9142. }
  9143. }
  9144. }
  9145. }
  9146. }
  9147. }
  9148. },
  9149. "404": {
  9150. "description": "Task not found",
  9151. "content": {
  9152. "application/json": {
  9153. "schema": {
  9154. "type": "object",
  9155. "required": [
  9156. "ocs"
  9157. ],
  9158. "properties": {
  9159. "ocs": {
  9160. "type": "object",
  9161. "required": [
  9162. "meta",
  9163. "data"
  9164. ],
  9165. "properties": {
  9166. "meta": {
  9167. "$ref": "#/components/schemas/OCSMeta"
  9168. },
  9169. "data": {
  9170. "type": "object",
  9171. "required": [
  9172. "message"
  9173. ],
  9174. "properties": {
  9175. "message": {
  9176. "type": "string"
  9177. }
  9178. }
  9179. }
  9180. }
  9181. }
  9182. }
  9183. }
  9184. }
  9185. }
  9186. }
  9187. }
  9188. }
  9189. },
  9190. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/result": {
  9191. "post": {
  9192. "operationId": "task_processing_api-set-result",
  9193. "summary": "Sets the task result",
  9194. "description": "This endpoint requires admin access",
  9195. "tags": [
  9196. "task_processing_api"
  9197. ],
  9198. "security": [
  9199. {
  9200. "bearer_auth": []
  9201. },
  9202. {
  9203. "basic_auth": []
  9204. }
  9205. ],
  9206. "requestBody": {
  9207. "required": false,
  9208. "content": {
  9209. "application/json": {
  9210. "schema": {
  9211. "type": "object",
  9212. "properties": {
  9213. "output": {
  9214. "type": "object",
  9215. "nullable": true,
  9216. "description": "The resulting task output, files are represented by their IDs",
  9217. "additionalProperties": {
  9218. "type": "object"
  9219. }
  9220. },
  9221. "errorMessage": {
  9222. "type": "string",
  9223. "nullable": true,
  9224. "description": "An error message if the task failed"
  9225. }
  9226. }
  9227. }
  9228. }
  9229. }
  9230. },
  9231. "parameters": [
  9232. {
  9233. "name": "taskId",
  9234. "in": "path",
  9235. "description": "The id of the task",
  9236. "required": true,
  9237. "schema": {
  9238. "type": "integer",
  9239. "format": "int64"
  9240. }
  9241. },
  9242. {
  9243. "name": "OCS-APIRequest",
  9244. "in": "header",
  9245. "description": "Required to be true for the API request to pass",
  9246. "required": true,
  9247. "schema": {
  9248. "type": "boolean",
  9249. "default": true
  9250. }
  9251. }
  9252. ],
  9253. "responses": {
  9254. "200": {
  9255. "description": "Result updated successfully",
  9256. "content": {
  9257. "application/json": {
  9258. "schema": {
  9259. "type": "object",
  9260. "required": [
  9261. "ocs"
  9262. ],
  9263. "properties": {
  9264. "ocs": {
  9265. "type": "object",
  9266. "required": [
  9267. "meta",
  9268. "data"
  9269. ],
  9270. "properties": {
  9271. "meta": {
  9272. "$ref": "#/components/schemas/OCSMeta"
  9273. },
  9274. "data": {
  9275. "type": "object",
  9276. "required": [
  9277. "task"
  9278. ],
  9279. "properties": {
  9280. "task": {
  9281. "$ref": "#/components/schemas/TaskProcessingTask"
  9282. }
  9283. }
  9284. }
  9285. }
  9286. }
  9287. }
  9288. }
  9289. }
  9290. }
  9291. },
  9292. "500": {
  9293. "description": "",
  9294. "content": {
  9295. "application/json": {
  9296. "schema": {
  9297. "type": "object",
  9298. "required": [
  9299. "ocs"
  9300. ],
  9301. "properties": {
  9302. "ocs": {
  9303. "type": "object",
  9304. "required": [
  9305. "meta",
  9306. "data"
  9307. ],
  9308. "properties": {
  9309. "meta": {
  9310. "$ref": "#/components/schemas/OCSMeta"
  9311. },
  9312. "data": {
  9313. "type": "object",
  9314. "required": [
  9315. "message"
  9316. ],
  9317. "properties": {
  9318. "message": {
  9319. "type": "string"
  9320. }
  9321. }
  9322. }
  9323. }
  9324. }
  9325. }
  9326. }
  9327. }
  9328. }
  9329. },
  9330. "404": {
  9331. "description": "Task not found",
  9332. "content": {
  9333. "application/json": {
  9334. "schema": {
  9335. "type": "object",
  9336. "required": [
  9337. "ocs"
  9338. ],
  9339. "properties": {
  9340. "ocs": {
  9341. "type": "object",
  9342. "required": [
  9343. "meta",
  9344. "data"
  9345. ],
  9346. "properties": {
  9347. "meta": {
  9348. "$ref": "#/components/schemas/OCSMeta"
  9349. },
  9350. "data": {
  9351. "type": "object",
  9352. "required": [
  9353. "message"
  9354. ],
  9355. "properties": {
  9356. "message": {
  9357. "type": "string"
  9358. }
  9359. }
  9360. }
  9361. }
  9362. }
  9363. }
  9364. }
  9365. }
  9366. }
  9367. }
  9368. }
  9369. }
  9370. },
  9371. "/ocs/v2.php/taskprocessing/tasks_provider/next": {
  9372. "get": {
  9373. "operationId": "task_processing_api-get-next-scheduled-task",
  9374. "summary": "Returns the next scheduled task for the taskTypeId",
  9375. "description": "This endpoint requires admin access",
  9376. "tags": [
  9377. "task_processing_api"
  9378. ],
  9379. "security": [
  9380. {
  9381. "bearer_auth": []
  9382. },
  9383. {
  9384. "basic_auth": []
  9385. }
  9386. ],
  9387. "parameters": [
  9388. {
  9389. "name": "providerIds[]",
  9390. "in": "query",
  9391. "description": "The ids of the providers",
  9392. "required": true,
  9393. "schema": {
  9394. "type": "array",
  9395. "items": {
  9396. "type": "string"
  9397. }
  9398. }
  9399. },
  9400. {
  9401. "name": "taskTypeIds[]",
  9402. "in": "query",
  9403. "description": "The ids of the task types",
  9404. "required": true,
  9405. "schema": {
  9406. "type": "array",
  9407. "items": {
  9408. "type": "string"
  9409. }
  9410. }
  9411. },
  9412. {
  9413. "name": "OCS-APIRequest",
  9414. "in": "header",
  9415. "description": "Required to be true for the API request to pass",
  9416. "required": true,
  9417. "schema": {
  9418. "type": "boolean",
  9419. "default": true
  9420. }
  9421. }
  9422. ],
  9423. "responses": {
  9424. "200": {
  9425. "description": "Task returned",
  9426. "content": {
  9427. "application/json": {
  9428. "schema": {
  9429. "type": "object",
  9430. "required": [
  9431. "ocs"
  9432. ],
  9433. "properties": {
  9434. "ocs": {
  9435. "type": "object",
  9436. "required": [
  9437. "meta",
  9438. "data"
  9439. ],
  9440. "properties": {
  9441. "meta": {
  9442. "$ref": "#/components/schemas/OCSMeta"
  9443. },
  9444. "data": {
  9445. "type": "object",
  9446. "required": [
  9447. "task",
  9448. "provider"
  9449. ],
  9450. "properties": {
  9451. "task": {
  9452. "$ref": "#/components/schemas/TaskProcessingTask"
  9453. },
  9454. "provider": {
  9455. "type": "object",
  9456. "required": [
  9457. "name"
  9458. ],
  9459. "properties": {
  9460. "name": {
  9461. "type": "string"
  9462. }
  9463. }
  9464. }
  9465. }
  9466. }
  9467. }
  9468. }
  9469. }
  9470. }
  9471. }
  9472. }
  9473. },
  9474. "204": {
  9475. "description": "No task found"
  9476. },
  9477. "500": {
  9478. "description": "",
  9479. "content": {
  9480. "application/json": {
  9481. "schema": {
  9482. "type": "object",
  9483. "required": [
  9484. "ocs"
  9485. ],
  9486. "properties": {
  9487. "ocs": {
  9488. "type": "object",
  9489. "required": [
  9490. "meta",
  9491. "data"
  9492. ],
  9493. "properties": {
  9494. "meta": {
  9495. "$ref": "#/components/schemas/OCSMeta"
  9496. },
  9497. "data": {
  9498. "type": "object",
  9499. "required": [
  9500. "message"
  9501. ],
  9502. "properties": {
  9503. "message": {
  9504. "type": "string"
  9505. }
  9506. }
  9507. }
  9508. }
  9509. }
  9510. }
  9511. }
  9512. }
  9513. }
  9514. }
  9515. }
  9516. }
  9517. }
  9518. },
  9519. "tags": [
  9520. {
  9521. "name": "avatar",
  9522. "description": "Class AvatarController"
  9523. },
  9524. {
  9525. "name": "guest_avatar",
  9526. "description": "This controller handles guest avatar requests."
  9527. },
  9528. {
  9529. "name": "ocm",
  9530. "description": "Controller about the endpoint /ocm-provider/"
  9531. }
  9532. ]
  9533. }