1
0

openapi-full.json 408 KB

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