openapi-full.json 412 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521
  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. "requestBody": {
  1457. "required": true,
  1458. "content": {
  1459. "application/json": {
  1460. "schema": {
  1461. "type": "object",
  1462. "required": [
  1463. "search"
  1464. ],
  1465. "properties": {
  1466. "search": {
  1467. "type": "string",
  1468. "description": "Text to search for"
  1469. },
  1470. "itemType": {
  1471. "type": "string",
  1472. "nullable": true,
  1473. "description": "Type of the items to search for"
  1474. },
  1475. "itemId": {
  1476. "type": "string",
  1477. "nullable": true,
  1478. "description": "ID of the items to search for"
  1479. },
  1480. "sorter": {
  1481. "type": "string",
  1482. "nullable": true,
  1483. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\""
  1484. },
  1485. "shareTypes": {
  1486. "type": "array",
  1487. "default": [],
  1488. "description": "Types of shares to search for",
  1489. "items": {
  1490. "type": "integer",
  1491. "format": "int64"
  1492. }
  1493. },
  1494. "limit": {
  1495. "type": "integer",
  1496. "format": "int64",
  1497. "default": 10,
  1498. "description": "Maximum number of results to return"
  1499. }
  1500. }
  1501. }
  1502. }
  1503. }
  1504. },
  1505. "parameters": [
  1506. {
  1507. "name": "OCS-APIRequest",
  1508. "in": "header",
  1509. "description": "Required to be true for the API request to pass",
  1510. "required": true,
  1511. "schema": {
  1512. "type": "boolean",
  1513. "default": true
  1514. }
  1515. }
  1516. ],
  1517. "responses": {
  1518. "200": {
  1519. "description": "Autocomplete results returned",
  1520. "content": {
  1521. "application/json": {
  1522. "schema": {
  1523. "type": "object",
  1524. "required": [
  1525. "ocs"
  1526. ],
  1527. "properties": {
  1528. "ocs": {
  1529. "type": "object",
  1530. "required": [
  1531. "meta",
  1532. "data"
  1533. ],
  1534. "properties": {
  1535. "meta": {
  1536. "$ref": "#/components/schemas/OCSMeta"
  1537. },
  1538. "data": {
  1539. "type": "array",
  1540. "items": {
  1541. "$ref": "#/components/schemas/AutocompleteResult"
  1542. }
  1543. }
  1544. }
  1545. }
  1546. }
  1547. }
  1548. }
  1549. }
  1550. }
  1551. }
  1552. }
  1553. },
  1554. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  1555. "get": {
  1556. "operationId": "collaboration_resources-list-collection",
  1557. "summary": "Get a collection",
  1558. "tags": [
  1559. "collaboration_resources"
  1560. ],
  1561. "security": [
  1562. {
  1563. "bearer_auth": []
  1564. },
  1565. {
  1566. "basic_auth": []
  1567. }
  1568. ],
  1569. "parameters": [
  1570. {
  1571. "name": "collectionId",
  1572. "in": "path",
  1573. "description": "ID of the collection",
  1574. "required": true,
  1575. "schema": {
  1576. "type": "integer",
  1577. "format": "int64"
  1578. }
  1579. },
  1580. {
  1581. "name": "OCS-APIRequest",
  1582. "in": "header",
  1583. "description": "Required to be true for the API request to pass",
  1584. "required": true,
  1585. "schema": {
  1586. "type": "boolean",
  1587. "default": true
  1588. }
  1589. }
  1590. ],
  1591. "responses": {
  1592. "200": {
  1593. "description": "Collection returned",
  1594. "content": {
  1595. "application/json": {
  1596. "schema": {
  1597. "type": "object",
  1598. "required": [
  1599. "ocs"
  1600. ],
  1601. "properties": {
  1602. "ocs": {
  1603. "type": "object",
  1604. "required": [
  1605. "meta",
  1606. "data"
  1607. ],
  1608. "properties": {
  1609. "meta": {
  1610. "$ref": "#/components/schemas/OCSMeta"
  1611. },
  1612. "data": {
  1613. "$ref": "#/components/schemas/Collection"
  1614. }
  1615. }
  1616. }
  1617. }
  1618. }
  1619. }
  1620. }
  1621. },
  1622. "404": {
  1623. "description": "Collection not found",
  1624. "content": {
  1625. "application/json": {
  1626. "schema": {
  1627. "type": "object",
  1628. "required": [
  1629. "ocs"
  1630. ],
  1631. "properties": {
  1632. "ocs": {
  1633. "type": "object",
  1634. "required": [
  1635. "meta",
  1636. "data"
  1637. ],
  1638. "properties": {
  1639. "meta": {
  1640. "$ref": "#/components/schemas/OCSMeta"
  1641. },
  1642. "data": {}
  1643. }
  1644. }
  1645. }
  1646. }
  1647. }
  1648. }
  1649. },
  1650. "500": {
  1651. "description": "",
  1652. "content": {
  1653. "application/json": {
  1654. "schema": {
  1655. "type": "object",
  1656. "required": [
  1657. "ocs"
  1658. ],
  1659. "properties": {
  1660. "ocs": {
  1661. "type": "object",
  1662. "required": [
  1663. "meta",
  1664. "data"
  1665. ],
  1666. "properties": {
  1667. "meta": {
  1668. "$ref": "#/components/schemas/OCSMeta"
  1669. },
  1670. "data": {}
  1671. }
  1672. }
  1673. }
  1674. }
  1675. }
  1676. }
  1677. }
  1678. }
  1679. },
  1680. "post": {
  1681. "operationId": "collaboration_resources-add-resource",
  1682. "summary": "Add a resource to a collection",
  1683. "tags": [
  1684. "collaboration_resources"
  1685. ],
  1686. "security": [
  1687. {
  1688. "bearer_auth": []
  1689. },
  1690. {
  1691. "basic_auth": []
  1692. }
  1693. ],
  1694. "requestBody": {
  1695. "required": true,
  1696. "content": {
  1697. "application/json": {
  1698. "schema": {
  1699. "type": "object",
  1700. "required": [
  1701. "resourceType",
  1702. "resourceId"
  1703. ],
  1704. "properties": {
  1705. "resourceType": {
  1706. "type": "string",
  1707. "description": "Name of the resource"
  1708. },
  1709. "resourceId": {
  1710. "type": "string",
  1711. "description": "ID of the resource"
  1712. }
  1713. }
  1714. }
  1715. }
  1716. }
  1717. },
  1718. "parameters": [
  1719. {
  1720. "name": "collectionId",
  1721. "in": "path",
  1722. "description": "ID of the collection",
  1723. "required": true,
  1724. "schema": {
  1725. "type": "integer",
  1726. "format": "int64"
  1727. }
  1728. },
  1729. {
  1730. "name": "OCS-APIRequest",
  1731. "in": "header",
  1732. "description": "Required to be true for the API request to pass",
  1733. "required": true,
  1734. "schema": {
  1735. "type": "boolean",
  1736. "default": true
  1737. }
  1738. }
  1739. ],
  1740. "responses": {
  1741. "200": {
  1742. "description": "Collection returned",
  1743. "content": {
  1744. "application/json": {
  1745. "schema": {
  1746. "type": "object",
  1747. "required": [
  1748. "ocs"
  1749. ],
  1750. "properties": {
  1751. "ocs": {
  1752. "type": "object",
  1753. "required": [
  1754. "meta",
  1755. "data"
  1756. ],
  1757. "properties": {
  1758. "meta": {
  1759. "$ref": "#/components/schemas/OCSMeta"
  1760. },
  1761. "data": {
  1762. "$ref": "#/components/schemas/Collection"
  1763. }
  1764. }
  1765. }
  1766. }
  1767. }
  1768. }
  1769. }
  1770. },
  1771. "404": {
  1772. "description": "Collection not found or resource inaccessible",
  1773. "content": {
  1774. "application/json": {
  1775. "schema": {
  1776. "type": "object",
  1777. "required": [
  1778. "ocs"
  1779. ],
  1780. "properties": {
  1781. "ocs": {
  1782. "type": "object",
  1783. "required": [
  1784. "meta",
  1785. "data"
  1786. ],
  1787. "properties": {
  1788. "meta": {
  1789. "$ref": "#/components/schemas/OCSMeta"
  1790. },
  1791. "data": {}
  1792. }
  1793. }
  1794. }
  1795. }
  1796. }
  1797. }
  1798. },
  1799. "500": {
  1800. "description": "",
  1801. "content": {
  1802. "application/json": {
  1803. "schema": {
  1804. "type": "object",
  1805. "required": [
  1806. "ocs"
  1807. ],
  1808. "properties": {
  1809. "ocs": {
  1810. "type": "object",
  1811. "required": [
  1812. "meta",
  1813. "data"
  1814. ],
  1815. "properties": {
  1816. "meta": {
  1817. "$ref": "#/components/schemas/OCSMeta"
  1818. },
  1819. "data": {}
  1820. }
  1821. }
  1822. }
  1823. }
  1824. }
  1825. }
  1826. }
  1827. }
  1828. },
  1829. "delete": {
  1830. "operationId": "collaboration_resources-remove-resource",
  1831. "summary": "Remove a resource from a collection",
  1832. "tags": [
  1833. "collaboration_resources"
  1834. ],
  1835. "security": [
  1836. {
  1837. "bearer_auth": []
  1838. },
  1839. {
  1840. "basic_auth": []
  1841. }
  1842. ],
  1843. "requestBody": {
  1844. "required": true,
  1845. "content": {
  1846. "application/json": {
  1847. "schema": {
  1848. "type": "object",
  1849. "required": [
  1850. "resourceType",
  1851. "resourceId"
  1852. ],
  1853. "properties": {
  1854. "resourceType": {
  1855. "type": "string",
  1856. "description": "Name of the resource"
  1857. },
  1858. "resourceId": {
  1859. "type": "string",
  1860. "description": "ID of the resource"
  1861. }
  1862. }
  1863. }
  1864. }
  1865. }
  1866. },
  1867. "parameters": [
  1868. {
  1869. "name": "collectionId",
  1870. "in": "path",
  1871. "description": "ID of the collection",
  1872. "required": true,
  1873. "schema": {
  1874. "type": "integer",
  1875. "format": "int64"
  1876. }
  1877. },
  1878. {
  1879. "name": "OCS-APIRequest",
  1880. "in": "header",
  1881. "description": "Required to be true for the API request to pass",
  1882. "required": true,
  1883. "schema": {
  1884. "type": "boolean",
  1885. "default": true
  1886. }
  1887. }
  1888. ],
  1889. "responses": {
  1890. "200": {
  1891. "description": "Collection returned",
  1892. "content": {
  1893. "application/json": {
  1894. "schema": {
  1895. "type": "object",
  1896. "required": [
  1897. "ocs"
  1898. ],
  1899. "properties": {
  1900. "ocs": {
  1901. "type": "object",
  1902. "required": [
  1903. "meta",
  1904. "data"
  1905. ],
  1906. "properties": {
  1907. "meta": {
  1908. "$ref": "#/components/schemas/OCSMeta"
  1909. },
  1910. "data": {
  1911. "$ref": "#/components/schemas/Collection"
  1912. }
  1913. }
  1914. }
  1915. }
  1916. }
  1917. }
  1918. }
  1919. },
  1920. "404": {
  1921. "description": "Collection or resource not found",
  1922. "content": {
  1923. "application/json": {
  1924. "schema": {
  1925. "type": "object",
  1926. "required": [
  1927. "ocs"
  1928. ],
  1929. "properties": {
  1930. "ocs": {
  1931. "type": "object",
  1932. "required": [
  1933. "meta",
  1934. "data"
  1935. ],
  1936. "properties": {
  1937. "meta": {
  1938. "$ref": "#/components/schemas/OCSMeta"
  1939. },
  1940. "data": {}
  1941. }
  1942. }
  1943. }
  1944. }
  1945. }
  1946. }
  1947. },
  1948. "500": {
  1949. "description": "",
  1950. "content": {
  1951. "application/json": {
  1952. "schema": {
  1953. "type": "object",
  1954. "required": [
  1955. "ocs"
  1956. ],
  1957. "properties": {
  1958. "ocs": {
  1959. "type": "object",
  1960. "required": [
  1961. "meta",
  1962. "data"
  1963. ],
  1964. "properties": {
  1965. "meta": {
  1966. "$ref": "#/components/schemas/OCSMeta"
  1967. },
  1968. "data": {}
  1969. }
  1970. }
  1971. }
  1972. }
  1973. }
  1974. }
  1975. }
  1976. }
  1977. },
  1978. "put": {
  1979. "operationId": "collaboration_resources-rename-collection",
  1980. "summary": "Rename a collection",
  1981. "tags": [
  1982. "collaboration_resources"
  1983. ],
  1984. "security": [
  1985. {
  1986. "bearer_auth": []
  1987. },
  1988. {
  1989. "basic_auth": []
  1990. }
  1991. ],
  1992. "requestBody": {
  1993. "required": true,
  1994. "content": {
  1995. "application/json": {
  1996. "schema": {
  1997. "type": "object",
  1998. "required": [
  1999. "collectionName"
  2000. ],
  2001. "properties": {
  2002. "collectionName": {
  2003. "type": "string",
  2004. "description": "New name"
  2005. }
  2006. }
  2007. }
  2008. }
  2009. }
  2010. },
  2011. "parameters": [
  2012. {
  2013. "name": "collectionId",
  2014. "in": "path",
  2015. "description": "ID of the collection",
  2016. "required": true,
  2017. "schema": {
  2018. "type": "integer",
  2019. "format": "int64"
  2020. }
  2021. },
  2022. {
  2023. "name": "OCS-APIRequest",
  2024. "in": "header",
  2025. "description": "Required to be true for the API request to pass",
  2026. "required": true,
  2027. "schema": {
  2028. "type": "boolean",
  2029. "default": true
  2030. }
  2031. }
  2032. ],
  2033. "responses": {
  2034. "200": {
  2035. "description": "Collection returned",
  2036. "content": {
  2037. "application/json": {
  2038. "schema": {
  2039. "type": "object",
  2040. "required": [
  2041. "ocs"
  2042. ],
  2043. "properties": {
  2044. "ocs": {
  2045. "type": "object",
  2046. "required": [
  2047. "meta",
  2048. "data"
  2049. ],
  2050. "properties": {
  2051. "meta": {
  2052. "$ref": "#/components/schemas/OCSMeta"
  2053. },
  2054. "data": {
  2055. "$ref": "#/components/schemas/Collection"
  2056. }
  2057. }
  2058. }
  2059. }
  2060. }
  2061. }
  2062. }
  2063. },
  2064. "404": {
  2065. "description": "Collection not found",
  2066. "content": {
  2067. "application/json": {
  2068. "schema": {
  2069. "type": "object",
  2070. "required": [
  2071. "ocs"
  2072. ],
  2073. "properties": {
  2074. "ocs": {
  2075. "type": "object",
  2076. "required": [
  2077. "meta",
  2078. "data"
  2079. ],
  2080. "properties": {
  2081. "meta": {
  2082. "$ref": "#/components/schemas/OCSMeta"
  2083. },
  2084. "data": {}
  2085. }
  2086. }
  2087. }
  2088. }
  2089. }
  2090. }
  2091. },
  2092. "500": {
  2093. "description": "",
  2094. "content": {
  2095. "application/json": {
  2096. "schema": {
  2097. "type": "object",
  2098. "required": [
  2099. "ocs"
  2100. ],
  2101. "properties": {
  2102. "ocs": {
  2103. "type": "object",
  2104. "required": [
  2105. "meta",
  2106. "data"
  2107. ],
  2108. "properties": {
  2109. "meta": {
  2110. "$ref": "#/components/schemas/OCSMeta"
  2111. },
  2112. "data": {}
  2113. }
  2114. }
  2115. }
  2116. }
  2117. }
  2118. }
  2119. }
  2120. }
  2121. }
  2122. },
  2123. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2124. "get": {
  2125. "operationId": "collaboration_resources-search-collections",
  2126. "summary": "Search for collections",
  2127. "tags": [
  2128. "collaboration_resources"
  2129. ],
  2130. "security": [
  2131. {
  2132. "bearer_auth": []
  2133. },
  2134. {
  2135. "basic_auth": []
  2136. }
  2137. ],
  2138. "parameters": [
  2139. {
  2140. "name": "filter",
  2141. "in": "path",
  2142. "description": "Filter collections",
  2143. "required": true,
  2144. "schema": {
  2145. "type": "string"
  2146. }
  2147. },
  2148. {
  2149. "name": "OCS-APIRequest",
  2150. "in": "header",
  2151. "description": "Required to be true for the API request to pass",
  2152. "required": true,
  2153. "schema": {
  2154. "type": "boolean",
  2155. "default": true
  2156. }
  2157. }
  2158. ],
  2159. "responses": {
  2160. "200": {
  2161. "description": "Collections returned",
  2162. "content": {
  2163. "application/json": {
  2164. "schema": {
  2165. "type": "object",
  2166. "required": [
  2167. "ocs"
  2168. ],
  2169. "properties": {
  2170. "ocs": {
  2171. "type": "object",
  2172. "required": [
  2173. "meta",
  2174. "data"
  2175. ],
  2176. "properties": {
  2177. "meta": {
  2178. "$ref": "#/components/schemas/OCSMeta"
  2179. },
  2180. "data": {
  2181. "type": "array",
  2182. "items": {
  2183. "$ref": "#/components/schemas/Collection"
  2184. }
  2185. }
  2186. }
  2187. }
  2188. }
  2189. }
  2190. }
  2191. }
  2192. },
  2193. "404": {
  2194. "description": "Collection not found",
  2195. "content": {
  2196. "application/json": {
  2197. "schema": {
  2198. "type": "object",
  2199. "required": [
  2200. "ocs"
  2201. ],
  2202. "properties": {
  2203. "ocs": {
  2204. "type": "object",
  2205. "required": [
  2206. "meta",
  2207. "data"
  2208. ],
  2209. "properties": {
  2210. "meta": {
  2211. "$ref": "#/components/schemas/OCSMeta"
  2212. },
  2213. "data": {}
  2214. }
  2215. }
  2216. }
  2217. }
  2218. }
  2219. }
  2220. }
  2221. }
  2222. }
  2223. },
  2224. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  2225. "get": {
  2226. "operationId": "collaboration_resources-get-collections-by-resource",
  2227. "summary": "Get collections by resource",
  2228. "tags": [
  2229. "collaboration_resources"
  2230. ],
  2231. "security": [
  2232. {
  2233. "bearer_auth": []
  2234. },
  2235. {
  2236. "basic_auth": []
  2237. }
  2238. ],
  2239. "parameters": [
  2240. {
  2241. "name": "resourceType",
  2242. "in": "path",
  2243. "description": "Type of the resource",
  2244. "required": true,
  2245. "schema": {
  2246. "type": "string"
  2247. }
  2248. },
  2249. {
  2250. "name": "resourceId",
  2251. "in": "path",
  2252. "description": "ID of the resource",
  2253. "required": true,
  2254. "schema": {
  2255. "type": "string"
  2256. }
  2257. },
  2258. {
  2259. "name": "OCS-APIRequest",
  2260. "in": "header",
  2261. "description": "Required to be true for the API request to pass",
  2262. "required": true,
  2263. "schema": {
  2264. "type": "boolean",
  2265. "default": true
  2266. }
  2267. }
  2268. ],
  2269. "responses": {
  2270. "200": {
  2271. "description": "Collections returned",
  2272. "content": {
  2273. "application/json": {
  2274. "schema": {
  2275. "type": "object",
  2276. "required": [
  2277. "ocs"
  2278. ],
  2279. "properties": {
  2280. "ocs": {
  2281. "type": "object",
  2282. "required": [
  2283. "meta",
  2284. "data"
  2285. ],
  2286. "properties": {
  2287. "meta": {
  2288. "$ref": "#/components/schemas/OCSMeta"
  2289. },
  2290. "data": {
  2291. "type": "array",
  2292. "items": {
  2293. "$ref": "#/components/schemas/Collection"
  2294. }
  2295. }
  2296. }
  2297. }
  2298. }
  2299. }
  2300. }
  2301. }
  2302. },
  2303. "404": {
  2304. "description": "Resource not accessible",
  2305. "content": {
  2306. "application/json": {
  2307. "schema": {
  2308. "type": "object",
  2309. "required": [
  2310. "ocs"
  2311. ],
  2312. "properties": {
  2313. "ocs": {
  2314. "type": "object",
  2315. "required": [
  2316. "meta",
  2317. "data"
  2318. ],
  2319. "properties": {
  2320. "meta": {
  2321. "$ref": "#/components/schemas/OCSMeta"
  2322. },
  2323. "data": {}
  2324. }
  2325. }
  2326. }
  2327. }
  2328. }
  2329. }
  2330. }
  2331. }
  2332. }
  2333. },
  2334. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  2335. "post": {
  2336. "operationId": "collaboration_resources-create-collection-on-resource",
  2337. "summary": "Create a collection for a resource",
  2338. "tags": [
  2339. "collaboration_resources"
  2340. ],
  2341. "security": [
  2342. {
  2343. "bearer_auth": []
  2344. },
  2345. {
  2346. "basic_auth": []
  2347. }
  2348. ],
  2349. "requestBody": {
  2350. "required": true,
  2351. "content": {
  2352. "application/json": {
  2353. "schema": {
  2354. "type": "object",
  2355. "required": [
  2356. "name"
  2357. ],
  2358. "properties": {
  2359. "name": {
  2360. "type": "string",
  2361. "description": "Name of the collection"
  2362. }
  2363. }
  2364. }
  2365. }
  2366. }
  2367. },
  2368. "parameters": [
  2369. {
  2370. "name": "baseResourceType",
  2371. "in": "path",
  2372. "description": "Type of the base resource",
  2373. "required": true,
  2374. "schema": {
  2375. "type": "string"
  2376. }
  2377. },
  2378. {
  2379. "name": "baseResourceId",
  2380. "in": "path",
  2381. "description": "ID of the base resource",
  2382. "required": true,
  2383. "schema": {
  2384. "type": "string"
  2385. }
  2386. },
  2387. {
  2388. "name": "OCS-APIRequest",
  2389. "in": "header",
  2390. "description": "Required to be true for the API request to pass",
  2391. "required": true,
  2392. "schema": {
  2393. "type": "boolean",
  2394. "default": true
  2395. }
  2396. }
  2397. ],
  2398. "responses": {
  2399. "200": {
  2400. "description": "Collection returned",
  2401. "content": {
  2402. "application/json": {
  2403. "schema": {
  2404. "type": "object",
  2405. "required": [
  2406. "ocs"
  2407. ],
  2408. "properties": {
  2409. "ocs": {
  2410. "type": "object",
  2411. "required": [
  2412. "meta",
  2413. "data"
  2414. ],
  2415. "properties": {
  2416. "meta": {
  2417. "$ref": "#/components/schemas/OCSMeta"
  2418. },
  2419. "data": {
  2420. "$ref": "#/components/schemas/Collection"
  2421. }
  2422. }
  2423. }
  2424. }
  2425. }
  2426. }
  2427. }
  2428. },
  2429. "400": {
  2430. "description": "Creating collection is not possible",
  2431. "content": {
  2432. "application/json": {
  2433. "schema": {
  2434. "type": "object",
  2435. "required": [
  2436. "ocs"
  2437. ],
  2438. "properties": {
  2439. "ocs": {
  2440. "type": "object",
  2441. "required": [
  2442. "meta",
  2443. "data"
  2444. ],
  2445. "properties": {
  2446. "meta": {
  2447. "$ref": "#/components/schemas/OCSMeta"
  2448. },
  2449. "data": {}
  2450. }
  2451. }
  2452. }
  2453. }
  2454. }
  2455. }
  2456. },
  2457. "404": {
  2458. "description": "Resource inaccessible",
  2459. "content": {
  2460. "application/json": {
  2461. "schema": {
  2462. "type": "object",
  2463. "required": [
  2464. "ocs"
  2465. ],
  2466. "properties": {
  2467. "ocs": {
  2468. "type": "object",
  2469. "required": [
  2470. "meta",
  2471. "data"
  2472. ],
  2473. "properties": {
  2474. "meta": {
  2475. "$ref": "#/components/schemas/OCSMeta"
  2476. },
  2477. "data": {}
  2478. }
  2479. }
  2480. }
  2481. }
  2482. }
  2483. }
  2484. },
  2485. "500": {
  2486. "description": "",
  2487. "content": {
  2488. "application/json": {
  2489. "schema": {
  2490. "type": "object",
  2491. "required": [
  2492. "ocs"
  2493. ],
  2494. "properties": {
  2495. "ocs": {
  2496. "type": "object",
  2497. "required": [
  2498. "meta",
  2499. "data"
  2500. ],
  2501. "properties": {
  2502. "meta": {
  2503. "$ref": "#/components/schemas/OCSMeta"
  2504. },
  2505. "data": {}
  2506. }
  2507. }
  2508. }
  2509. }
  2510. }
  2511. }
  2512. }
  2513. }
  2514. }
  2515. },
  2516. "/ocs/v2.php/hovercard/v1/{userId}": {
  2517. "get": {
  2518. "operationId": "hover_card-get-user",
  2519. "summary": "Get the account details for a hovercard",
  2520. "tags": [
  2521. "hover_card"
  2522. ],
  2523. "security": [
  2524. {
  2525. "bearer_auth": []
  2526. },
  2527. {
  2528. "basic_auth": []
  2529. }
  2530. ],
  2531. "parameters": [
  2532. {
  2533. "name": "userId",
  2534. "in": "path",
  2535. "description": "ID of the user",
  2536. "required": true,
  2537. "schema": {
  2538. "type": "string"
  2539. }
  2540. },
  2541. {
  2542. "name": "OCS-APIRequest",
  2543. "in": "header",
  2544. "description": "Required to be true for the API request to pass",
  2545. "required": true,
  2546. "schema": {
  2547. "type": "boolean",
  2548. "default": true
  2549. }
  2550. }
  2551. ],
  2552. "responses": {
  2553. "200": {
  2554. "description": "Account details returned",
  2555. "content": {
  2556. "application/json": {
  2557. "schema": {
  2558. "type": "object",
  2559. "required": [
  2560. "ocs"
  2561. ],
  2562. "properties": {
  2563. "ocs": {
  2564. "type": "object",
  2565. "required": [
  2566. "meta",
  2567. "data"
  2568. ],
  2569. "properties": {
  2570. "meta": {
  2571. "$ref": "#/components/schemas/OCSMeta"
  2572. },
  2573. "data": {
  2574. "type": "object",
  2575. "required": [
  2576. "userId",
  2577. "displayName",
  2578. "actions"
  2579. ],
  2580. "properties": {
  2581. "userId": {
  2582. "type": "string"
  2583. },
  2584. "displayName": {
  2585. "type": "string"
  2586. },
  2587. "actions": {
  2588. "type": "array",
  2589. "items": {
  2590. "$ref": "#/components/schemas/ContactsAction"
  2591. }
  2592. }
  2593. }
  2594. }
  2595. }
  2596. }
  2597. }
  2598. }
  2599. }
  2600. }
  2601. },
  2602. "404": {
  2603. "description": "Account not found",
  2604. "content": {
  2605. "application/json": {
  2606. "schema": {
  2607. "type": "object",
  2608. "required": [
  2609. "ocs"
  2610. ],
  2611. "properties": {
  2612. "ocs": {
  2613. "type": "object",
  2614. "required": [
  2615. "meta",
  2616. "data"
  2617. ],
  2618. "properties": {
  2619. "meta": {
  2620. "$ref": "#/components/schemas/OCSMeta"
  2621. },
  2622. "data": {}
  2623. }
  2624. }
  2625. }
  2626. }
  2627. }
  2628. }
  2629. }
  2630. }
  2631. }
  2632. },
  2633. "/ocs/v2.php/core/navigation/apps": {
  2634. "get": {
  2635. "operationId": "navigation-get-apps-navigation",
  2636. "summary": "Get the apps navigation",
  2637. "tags": [
  2638. "navigation"
  2639. ],
  2640. "security": [
  2641. {
  2642. "bearer_auth": []
  2643. },
  2644. {
  2645. "basic_auth": []
  2646. }
  2647. ],
  2648. "requestBody": {
  2649. "required": false,
  2650. "content": {
  2651. "application/json": {
  2652. "schema": {
  2653. "type": "object",
  2654. "properties": {
  2655. "absolute": {
  2656. "type": "boolean",
  2657. "default": false,
  2658. "description": "Rewrite URLs to absolute ones"
  2659. }
  2660. }
  2661. }
  2662. }
  2663. }
  2664. },
  2665. "parameters": [
  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. "requestBody": {
  2733. "required": false,
  2734. "content": {
  2735. "application/json": {
  2736. "schema": {
  2737. "type": "object",
  2738. "properties": {
  2739. "absolute": {
  2740. "type": "boolean",
  2741. "default": false,
  2742. "description": "Rewrite URLs to absolute ones"
  2743. }
  2744. }
  2745. }
  2746. }
  2747. }
  2748. },
  2749. "parameters": [
  2750. {
  2751. "name": "OCS-APIRequest",
  2752. "in": "header",
  2753. "description": "Required to be true for the API request to pass",
  2754. "required": true,
  2755. "schema": {
  2756. "type": "boolean",
  2757. "default": true
  2758. }
  2759. }
  2760. ],
  2761. "responses": {
  2762. "200": {
  2763. "description": "Apps navigation returned",
  2764. "content": {
  2765. "application/json": {
  2766. "schema": {
  2767. "type": "object",
  2768. "required": [
  2769. "ocs"
  2770. ],
  2771. "properties": {
  2772. "ocs": {
  2773. "type": "object",
  2774. "required": [
  2775. "meta",
  2776. "data"
  2777. ],
  2778. "properties": {
  2779. "meta": {
  2780. "$ref": "#/components/schemas/OCSMeta"
  2781. },
  2782. "data": {
  2783. "type": "array",
  2784. "items": {
  2785. "$ref": "#/components/schemas/NavigationEntry"
  2786. }
  2787. }
  2788. }
  2789. }
  2790. }
  2791. }
  2792. }
  2793. }
  2794. },
  2795. "304": {
  2796. "description": "No apps navigation changed"
  2797. }
  2798. }
  2799. }
  2800. },
  2801. "/ocs/v2.php/cloud/capabilities": {
  2802. "get": {
  2803. "operationId": "ocs-get-capabilities",
  2804. "summary": "Get the capabilities",
  2805. "tags": [
  2806. "ocs"
  2807. ],
  2808. "security": [
  2809. {},
  2810. {
  2811. "bearer_auth": []
  2812. },
  2813. {
  2814. "basic_auth": []
  2815. }
  2816. ],
  2817. "parameters": [
  2818. {
  2819. "name": "OCS-APIRequest",
  2820. "in": "header",
  2821. "description": "Required to be true for the API request to pass",
  2822. "required": true,
  2823. "schema": {
  2824. "type": "boolean",
  2825. "default": true
  2826. }
  2827. }
  2828. ],
  2829. "responses": {
  2830. "200": {
  2831. "description": "Capabilities returned",
  2832. "content": {
  2833. "application/json": {
  2834. "schema": {
  2835. "type": "object",
  2836. "required": [
  2837. "ocs"
  2838. ],
  2839. "properties": {
  2840. "ocs": {
  2841. "type": "object",
  2842. "required": [
  2843. "meta",
  2844. "data"
  2845. ],
  2846. "properties": {
  2847. "meta": {
  2848. "$ref": "#/components/schemas/OCSMeta"
  2849. },
  2850. "data": {
  2851. "type": "object",
  2852. "required": [
  2853. "version",
  2854. "capabilities"
  2855. ],
  2856. "properties": {
  2857. "version": {
  2858. "type": "object",
  2859. "required": [
  2860. "major",
  2861. "minor",
  2862. "micro",
  2863. "string",
  2864. "edition",
  2865. "extendedSupport"
  2866. ],
  2867. "properties": {
  2868. "major": {
  2869. "type": "integer",
  2870. "format": "int64"
  2871. },
  2872. "minor": {
  2873. "type": "integer",
  2874. "format": "int64"
  2875. },
  2876. "micro": {
  2877. "type": "integer",
  2878. "format": "int64"
  2879. },
  2880. "string": {
  2881. "type": "string"
  2882. },
  2883. "edition": {
  2884. "type": "string"
  2885. },
  2886. "extendedSupport": {
  2887. "type": "boolean"
  2888. }
  2889. }
  2890. },
  2891. "capabilities": {
  2892. "type": "object",
  2893. "additionalProperties": {
  2894. "type": "object"
  2895. }
  2896. }
  2897. }
  2898. }
  2899. }
  2900. }
  2901. }
  2902. }
  2903. }
  2904. }
  2905. }
  2906. }
  2907. }
  2908. },
  2909. "/ocs/v2.php/profile/{targetUserId}": {
  2910. "put": {
  2911. "operationId": "profile_api-set-visibility",
  2912. "summary": "Update the visibility of a parameter",
  2913. "description": "This endpoint requires password confirmation",
  2914. "tags": [
  2915. "profile_api"
  2916. ],
  2917. "security": [
  2918. {
  2919. "bearer_auth": []
  2920. },
  2921. {
  2922. "basic_auth": []
  2923. }
  2924. ],
  2925. "requestBody": {
  2926. "required": true,
  2927. "content": {
  2928. "application/json": {
  2929. "schema": {
  2930. "type": "object",
  2931. "required": [
  2932. "paramId",
  2933. "visibility"
  2934. ],
  2935. "properties": {
  2936. "paramId": {
  2937. "type": "string",
  2938. "description": "ID of the parameter"
  2939. },
  2940. "visibility": {
  2941. "type": "string",
  2942. "description": "New visibility"
  2943. }
  2944. }
  2945. }
  2946. }
  2947. }
  2948. },
  2949. "parameters": [
  2950. {
  2951. "name": "targetUserId",
  2952. "in": "path",
  2953. "description": "ID of the user",
  2954. "required": true,
  2955. "schema": {
  2956. "type": "string"
  2957. }
  2958. },
  2959. {
  2960. "name": "OCS-APIRequest",
  2961. "in": "header",
  2962. "description": "Required to be true for the API request to pass",
  2963. "required": true,
  2964. "schema": {
  2965. "type": "boolean",
  2966. "default": true
  2967. }
  2968. }
  2969. ],
  2970. "responses": {
  2971. "200": {
  2972. "description": "Visibility updated successfully",
  2973. "content": {
  2974. "application/json": {
  2975. "schema": {
  2976. "type": "object",
  2977. "required": [
  2978. "ocs"
  2979. ],
  2980. "properties": {
  2981. "ocs": {
  2982. "type": "object",
  2983. "required": [
  2984. "meta",
  2985. "data"
  2986. ],
  2987. "properties": {
  2988. "meta": {
  2989. "$ref": "#/components/schemas/OCSMeta"
  2990. },
  2991. "data": {}
  2992. }
  2993. }
  2994. }
  2995. }
  2996. }
  2997. }
  2998. },
  2999. "400": {
  3000. "description": "Updating visibility is not possible",
  3001. "content": {
  3002. "application/json": {
  3003. "schema": {
  3004. "type": "object",
  3005. "required": [
  3006. "ocs"
  3007. ],
  3008. "properties": {
  3009. "ocs": {
  3010. "type": "object",
  3011. "required": [
  3012. "meta",
  3013. "data"
  3014. ],
  3015. "properties": {
  3016. "meta": {
  3017. "$ref": "#/components/schemas/OCSMeta"
  3018. },
  3019. "data": {}
  3020. }
  3021. }
  3022. }
  3023. }
  3024. }
  3025. }
  3026. },
  3027. "403": {
  3028. "description": "Not allowed to edit other users visibility",
  3029. "content": {
  3030. "application/json": {
  3031. "schema": {
  3032. "type": "object",
  3033. "required": [
  3034. "ocs"
  3035. ],
  3036. "properties": {
  3037. "ocs": {
  3038. "type": "object",
  3039. "required": [
  3040. "meta",
  3041. "data"
  3042. ],
  3043. "properties": {
  3044. "meta": {
  3045. "$ref": "#/components/schemas/OCSMeta"
  3046. },
  3047. "data": {}
  3048. }
  3049. }
  3050. }
  3051. }
  3052. }
  3053. }
  3054. },
  3055. "404": {
  3056. "description": "Account not found",
  3057. "content": {
  3058. "application/json": {
  3059. "schema": {
  3060. "type": "object",
  3061. "required": [
  3062. "ocs"
  3063. ],
  3064. "properties": {
  3065. "ocs": {
  3066. "type": "object",
  3067. "required": [
  3068. "meta",
  3069. "data"
  3070. ],
  3071. "properties": {
  3072. "meta": {
  3073. "$ref": "#/components/schemas/OCSMeta"
  3074. },
  3075. "data": {}
  3076. }
  3077. }
  3078. }
  3079. }
  3080. }
  3081. }
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "/ocs/v2.php/references/extract": {
  3087. "post": {
  3088. "operationId": "reference_api-extract",
  3089. "summary": "Extract references from a text",
  3090. "tags": [
  3091. "reference_api"
  3092. ],
  3093. "security": [
  3094. {
  3095. "bearer_auth": []
  3096. },
  3097. {
  3098. "basic_auth": []
  3099. }
  3100. ],
  3101. "requestBody": {
  3102. "required": true,
  3103. "content": {
  3104. "application/json": {
  3105. "schema": {
  3106. "type": "object",
  3107. "required": [
  3108. "text"
  3109. ],
  3110. "properties": {
  3111. "text": {
  3112. "type": "string",
  3113. "description": "Text to extract from"
  3114. },
  3115. "resolve": {
  3116. "type": "boolean",
  3117. "default": false,
  3118. "description": "Resolve the references"
  3119. },
  3120. "limit": {
  3121. "type": "integer",
  3122. "format": "int64",
  3123. "default": 1,
  3124. "description": "Maximum amount of references to extract"
  3125. }
  3126. }
  3127. }
  3128. }
  3129. }
  3130. },
  3131. "parameters": [
  3132. {
  3133. "name": "OCS-APIRequest",
  3134. "in": "header",
  3135. "description": "Required to be true for the API request to pass",
  3136. "required": true,
  3137. "schema": {
  3138. "type": "boolean",
  3139. "default": true
  3140. }
  3141. }
  3142. ],
  3143. "responses": {
  3144. "200": {
  3145. "description": "References returned",
  3146. "content": {
  3147. "application/json": {
  3148. "schema": {
  3149. "type": "object",
  3150. "required": [
  3151. "ocs"
  3152. ],
  3153. "properties": {
  3154. "ocs": {
  3155. "type": "object",
  3156. "required": [
  3157. "meta",
  3158. "data"
  3159. ],
  3160. "properties": {
  3161. "meta": {
  3162. "$ref": "#/components/schemas/OCSMeta"
  3163. },
  3164. "data": {
  3165. "type": "object",
  3166. "required": [
  3167. "references"
  3168. ],
  3169. "properties": {
  3170. "references": {
  3171. "type": "object",
  3172. "additionalProperties": {
  3173. "$ref": "#/components/schemas/Reference",
  3174. "nullable": true
  3175. }
  3176. }
  3177. }
  3178. }
  3179. }
  3180. }
  3181. }
  3182. }
  3183. }
  3184. }
  3185. }
  3186. }
  3187. }
  3188. },
  3189. "/ocs/v2.php/references/extractPublic": {
  3190. "post": {
  3191. "operationId": "reference_api-extract-public",
  3192. "summary": "Extract references from a text",
  3193. "tags": [
  3194. "reference_api"
  3195. ],
  3196. "security": [
  3197. {},
  3198. {
  3199. "bearer_auth": []
  3200. },
  3201. {
  3202. "basic_auth": []
  3203. }
  3204. ],
  3205. "requestBody": {
  3206. "required": true,
  3207. "content": {
  3208. "application/json": {
  3209. "schema": {
  3210. "type": "object",
  3211. "required": [
  3212. "text",
  3213. "sharingToken"
  3214. ],
  3215. "properties": {
  3216. "text": {
  3217. "type": "string",
  3218. "description": "Text to extract from"
  3219. },
  3220. "sharingToken": {
  3221. "type": "string",
  3222. "description": "Token of the public share"
  3223. },
  3224. "resolve": {
  3225. "type": "boolean",
  3226. "default": false,
  3227. "description": "Resolve the references"
  3228. },
  3229. "limit": {
  3230. "type": "integer",
  3231. "format": "int64",
  3232. "default": 1,
  3233. "description": "Maximum amount of references to extract, limited to 15"
  3234. }
  3235. }
  3236. }
  3237. }
  3238. }
  3239. },
  3240. "parameters": [
  3241. {
  3242. "name": "OCS-APIRequest",
  3243. "in": "header",
  3244. "description": "Required to be true for the API request to pass",
  3245. "required": true,
  3246. "schema": {
  3247. "type": "boolean",
  3248. "default": true
  3249. }
  3250. }
  3251. ],
  3252. "responses": {
  3253. "200": {
  3254. "description": "References returned",
  3255. "content": {
  3256. "application/json": {
  3257. "schema": {
  3258. "type": "object",
  3259. "required": [
  3260. "ocs"
  3261. ],
  3262. "properties": {
  3263. "ocs": {
  3264. "type": "object",
  3265. "required": [
  3266. "meta",
  3267. "data"
  3268. ],
  3269. "properties": {
  3270. "meta": {
  3271. "$ref": "#/components/schemas/OCSMeta"
  3272. },
  3273. "data": {
  3274. "type": "object",
  3275. "required": [
  3276. "references"
  3277. ],
  3278. "properties": {
  3279. "references": {
  3280. "type": "object",
  3281. "additionalProperties": {
  3282. "$ref": "#/components/schemas/Reference",
  3283. "nullable": true
  3284. }
  3285. }
  3286. }
  3287. }
  3288. }
  3289. }
  3290. }
  3291. }
  3292. }
  3293. }
  3294. }
  3295. }
  3296. }
  3297. },
  3298. "/ocs/v2.php/references/resolve": {
  3299. "get": {
  3300. "operationId": "reference_api-resolve-one",
  3301. "summary": "Resolve a reference",
  3302. "tags": [
  3303. "reference_api"
  3304. ],
  3305. "security": [
  3306. {
  3307. "bearer_auth": []
  3308. },
  3309. {
  3310. "basic_auth": []
  3311. }
  3312. ],
  3313. "requestBody": {
  3314. "required": true,
  3315. "content": {
  3316. "application/json": {
  3317. "schema": {
  3318. "type": "object",
  3319. "required": [
  3320. "reference"
  3321. ],
  3322. "properties": {
  3323. "reference": {
  3324. "type": "string",
  3325. "description": "Reference to resolve"
  3326. }
  3327. }
  3328. }
  3329. }
  3330. }
  3331. },
  3332. "parameters": [
  3333. {
  3334. "name": "OCS-APIRequest",
  3335. "in": "header",
  3336. "description": "Required to be true for the API request to pass",
  3337. "required": true,
  3338. "schema": {
  3339. "type": "boolean",
  3340. "default": true
  3341. }
  3342. }
  3343. ],
  3344. "responses": {
  3345. "200": {
  3346. "description": "Reference returned",
  3347. "content": {
  3348. "application/json": {
  3349. "schema": {
  3350. "type": "object",
  3351. "required": [
  3352. "ocs"
  3353. ],
  3354. "properties": {
  3355. "ocs": {
  3356. "type": "object",
  3357. "required": [
  3358. "meta",
  3359. "data"
  3360. ],
  3361. "properties": {
  3362. "meta": {
  3363. "$ref": "#/components/schemas/OCSMeta"
  3364. },
  3365. "data": {
  3366. "type": "object",
  3367. "required": [
  3368. "references"
  3369. ],
  3370. "properties": {
  3371. "references": {
  3372. "type": "object",
  3373. "additionalProperties": {
  3374. "$ref": "#/components/schemas/Reference",
  3375. "nullable": true
  3376. }
  3377. }
  3378. }
  3379. }
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. }
  3386. }
  3387. }
  3388. },
  3389. "post": {
  3390. "operationId": "reference_api-resolve",
  3391. "summary": "Resolve multiple references",
  3392. "tags": [
  3393. "reference_api"
  3394. ],
  3395. "security": [
  3396. {
  3397. "bearer_auth": []
  3398. },
  3399. {
  3400. "basic_auth": []
  3401. }
  3402. ],
  3403. "requestBody": {
  3404. "required": true,
  3405. "content": {
  3406. "application/json": {
  3407. "schema": {
  3408. "type": "object",
  3409. "required": [
  3410. "references"
  3411. ],
  3412. "properties": {
  3413. "references": {
  3414. "type": "array",
  3415. "description": "References to resolve",
  3416. "items": {
  3417. "type": "string"
  3418. }
  3419. },
  3420. "limit": {
  3421. "type": "integer",
  3422. "format": "int64",
  3423. "default": 1,
  3424. "description": "Maximum amount of references to resolve"
  3425. }
  3426. }
  3427. }
  3428. }
  3429. }
  3430. },
  3431. "parameters": [
  3432. {
  3433. "name": "OCS-APIRequest",
  3434. "in": "header",
  3435. "description": "Required to be true for the API request to pass",
  3436. "required": true,
  3437. "schema": {
  3438. "type": "boolean",
  3439. "default": true
  3440. }
  3441. }
  3442. ],
  3443. "responses": {
  3444. "200": {
  3445. "description": "References returned",
  3446. "content": {
  3447. "application/json": {
  3448. "schema": {
  3449. "type": "object",
  3450. "required": [
  3451. "ocs"
  3452. ],
  3453. "properties": {
  3454. "ocs": {
  3455. "type": "object",
  3456. "required": [
  3457. "meta",
  3458. "data"
  3459. ],
  3460. "properties": {
  3461. "meta": {
  3462. "$ref": "#/components/schemas/OCSMeta"
  3463. },
  3464. "data": {
  3465. "type": "object",
  3466. "required": [
  3467. "references"
  3468. ],
  3469. "properties": {
  3470. "references": {
  3471. "type": "object",
  3472. "additionalProperties": {
  3473. "$ref": "#/components/schemas/Reference",
  3474. "nullable": true
  3475. }
  3476. }
  3477. }
  3478. }
  3479. }
  3480. }
  3481. }
  3482. }
  3483. }
  3484. }
  3485. }
  3486. }
  3487. }
  3488. },
  3489. "/ocs/v2.php/references/resolvePublic": {
  3490. "get": {
  3491. "operationId": "reference_api-resolve-one-public",
  3492. "summary": "Resolve from a public page",
  3493. "tags": [
  3494. "reference_api"
  3495. ],
  3496. "security": [
  3497. {},
  3498. {
  3499. "bearer_auth": []
  3500. },
  3501. {
  3502. "basic_auth": []
  3503. }
  3504. ],
  3505. "requestBody": {
  3506. "required": true,
  3507. "content": {
  3508. "application/json": {
  3509. "schema": {
  3510. "type": "object",
  3511. "required": [
  3512. "reference",
  3513. "sharingToken"
  3514. ],
  3515. "properties": {
  3516. "reference": {
  3517. "type": "string",
  3518. "description": "Reference to resolve"
  3519. },
  3520. "sharingToken": {
  3521. "type": "string",
  3522. "description": "Token of the public share"
  3523. }
  3524. }
  3525. }
  3526. }
  3527. }
  3528. },
  3529. "parameters": [
  3530. {
  3531. "name": "OCS-APIRequest",
  3532. "in": "header",
  3533. "description": "Required to be true for the API request to pass",
  3534. "required": true,
  3535. "schema": {
  3536. "type": "boolean",
  3537. "default": true
  3538. }
  3539. }
  3540. ],
  3541. "responses": {
  3542. "200": {
  3543. "description": "Reference returned",
  3544. "content": {
  3545. "application/json": {
  3546. "schema": {
  3547. "type": "object",
  3548. "required": [
  3549. "ocs"
  3550. ],
  3551. "properties": {
  3552. "ocs": {
  3553. "type": "object",
  3554. "required": [
  3555. "meta",
  3556. "data"
  3557. ],
  3558. "properties": {
  3559. "meta": {
  3560. "$ref": "#/components/schemas/OCSMeta"
  3561. },
  3562. "data": {
  3563. "type": "object",
  3564. "required": [
  3565. "references"
  3566. ],
  3567. "properties": {
  3568. "references": {
  3569. "type": "object",
  3570. "additionalProperties": {
  3571. "$ref": "#/components/schemas/Reference",
  3572. "nullable": true
  3573. }
  3574. }
  3575. }
  3576. }
  3577. }
  3578. }
  3579. }
  3580. }
  3581. }
  3582. }
  3583. }
  3584. }
  3585. },
  3586. "post": {
  3587. "operationId": "reference_api-resolve-public",
  3588. "summary": "Resolve multiple references from a public page",
  3589. "tags": [
  3590. "reference_api"
  3591. ],
  3592. "security": [
  3593. {},
  3594. {
  3595. "bearer_auth": []
  3596. },
  3597. {
  3598. "basic_auth": []
  3599. }
  3600. ],
  3601. "requestBody": {
  3602. "required": true,
  3603. "content": {
  3604. "application/json": {
  3605. "schema": {
  3606. "type": "object",
  3607. "required": [
  3608. "references",
  3609. "sharingToken"
  3610. ],
  3611. "properties": {
  3612. "references": {
  3613. "type": "array",
  3614. "description": "References to resolve",
  3615. "items": {
  3616. "type": "string"
  3617. }
  3618. },
  3619. "sharingToken": {
  3620. "type": "string",
  3621. "description": "Token of the public share"
  3622. },
  3623. "limit": {
  3624. "type": "integer",
  3625. "format": "int64",
  3626. "default": 1,
  3627. "description": "Maximum amount of references to resolve, limited to 15"
  3628. }
  3629. }
  3630. }
  3631. }
  3632. }
  3633. },
  3634. "parameters": [
  3635. {
  3636. "name": "OCS-APIRequest",
  3637. "in": "header",
  3638. "description": "Required to be true for the API request to pass",
  3639. "required": true,
  3640. "schema": {
  3641. "type": "boolean",
  3642. "default": true
  3643. }
  3644. }
  3645. ],
  3646. "responses": {
  3647. "200": {
  3648. "description": "References returned",
  3649. "content": {
  3650. "application/json": {
  3651. "schema": {
  3652. "type": "object",
  3653. "required": [
  3654. "ocs"
  3655. ],
  3656. "properties": {
  3657. "ocs": {
  3658. "type": "object",
  3659. "required": [
  3660. "meta",
  3661. "data"
  3662. ],
  3663. "properties": {
  3664. "meta": {
  3665. "$ref": "#/components/schemas/OCSMeta"
  3666. },
  3667. "data": {
  3668. "type": "object",
  3669. "required": [
  3670. "references"
  3671. ],
  3672. "properties": {
  3673. "references": {
  3674. "type": "object",
  3675. "additionalProperties": {
  3676. "$ref": "#/components/schemas/Reference",
  3677. "nullable": true
  3678. }
  3679. }
  3680. }
  3681. }
  3682. }
  3683. }
  3684. }
  3685. }
  3686. }
  3687. }
  3688. }
  3689. }
  3690. }
  3691. },
  3692. "/ocs/v2.php/references/providers": {
  3693. "get": {
  3694. "operationId": "reference_api-get-providers-info",
  3695. "summary": "Get the providers",
  3696. "tags": [
  3697. "reference_api"
  3698. ],
  3699. "security": [
  3700. {
  3701. "bearer_auth": []
  3702. },
  3703. {
  3704. "basic_auth": []
  3705. }
  3706. ],
  3707. "parameters": [
  3708. {
  3709. "name": "OCS-APIRequest",
  3710. "in": "header",
  3711. "description": "Required to be true for the API request to pass",
  3712. "required": true,
  3713. "schema": {
  3714. "type": "boolean",
  3715. "default": true
  3716. }
  3717. }
  3718. ],
  3719. "responses": {
  3720. "200": {
  3721. "description": "Providers returned",
  3722. "content": {
  3723. "application/json": {
  3724. "schema": {
  3725. "type": "object",
  3726. "required": [
  3727. "ocs"
  3728. ],
  3729. "properties": {
  3730. "ocs": {
  3731. "type": "object",
  3732. "required": [
  3733. "meta",
  3734. "data"
  3735. ],
  3736. "properties": {
  3737. "meta": {
  3738. "$ref": "#/components/schemas/OCSMeta"
  3739. },
  3740. "data": {
  3741. "type": "array",
  3742. "items": {
  3743. "$ref": "#/components/schemas/ReferenceProvider"
  3744. }
  3745. }
  3746. }
  3747. }
  3748. }
  3749. }
  3750. }
  3751. }
  3752. }
  3753. }
  3754. }
  3755. },
  3756. "/ocs/v2.php/references/provider/{providerId}": {
  3757. "put": {
  3758. "operationId": "reference_api-touch-provider",
  3759. "summary": "Touch a provider",
  3760. "tags": [
  3761. "reference_api"
  3762. ],
  3763. "security": [
  3764. {
  3765. "bearer_auth": []
  3766. },
  3767. {
  3768. "basic_auth": []
  3769. }
  3770. ],
  3771. "requestBody": {
  3772. "required": false,
  3773. "content": {
  3774. "application/json": {
  3775. "schema": {
  3776. "type": "object",
  3777. "properties": {
  3778. "timestamp": {
  3779. "type": "integer",
  3780. "format": "int64",
  3781. "nullable": true,
  3782. "description": "Timestamp of the last usage"
  3783. }
  3784. }
  3785. }
  3786. }
  3787. }
  3788. },
  3789. "parameters": [
  3790. {
  3791. "name": "providerId",
  3792. "in": "path",
  3793. "description": "ID of the provider",
  3794. "required": true,
  3795. "schema": {
  3796. "type": "string"
  3797. }
  3798. },
  3799. {
  3800. "name": "OCS-APIRequest",
  3801. "in": "header",
  3802. "description": "Required to be true for the API request to pass",
  3803. "required": true,
  3804. "schema": {
  3805. "type": "boolean",
  3806. "default": true
  3807. }
  3808. }
  3809. ],
  3810. "responses": {
  3811. "200": {
  3812. "description": "Provider touched",
  3813. "content": {
  3814. "application/json": {
  3815. "schema": {
  3816. "type": "object",
  3817. "required": [
  3818. "ocs"
  3819. ],
  3820. "properties": {
  3821. "ocs": {
  3822. "type": "object",
  3823. "required": [
  3824. "meta",
  3825. "data"
  3826. ],
  3827. "properties": {
  3828. "meta": {
  3829. "$ref": "#/components/schemas/OCSMeta"
  3830. },
  3831. "data": {
  3832. "type": "object",
  3833. "required": [
  3834. "success"
  3835. ],
  3836. "properties": {
  3837. "success": {
  3838. "type": "boolean"
  3839. }
  3840. }
  3841. }
  3842. }
  3843. }
  3844. }
  3845. }
  3846. }
  3847. }
  3848. }
  3849. }
  3850. }
  3851. },
  3852. "/ocs/v2.php/taskprocessing/tasktypes": {
  3853. "get": {
  3854. "operationId": "task_processing_api-task-types",
  3855. "summary": "Returns all available TaskProcessing task types",
  3856. "tags": [
  3857. "task_processing_api"
  3858. ],
  3859. "security": [
  3860. {},
  3861. {
  3862. "bearer_auth": []
  3863. },
  3864. {
  3865. "basic_auth": []
  3866. }
  3867. ],
  3868. "parameters": [
  3869. {
  3870. "name": "OCS-APIRequest",
  3871. "in": "header",
  3872. "description": "Required to be true for the API request to pass",
  3873. "required": true,
  3874. "schema": {
  3875. "type": "boolean",
  3876. "default": true
  3877. }
  3878. }
  3879. ],
  3880. "responses": {
  3881. "200": {
  3882. "description": "Task types returned",
  3883. "content": {
  3884. "application/json": {
  3885. "schema": {
  3886. "type": "object",
  3887. "required": [
  3888. "ocs"
  3889. ],
  3890. "properties": {
  3891. "ocs": {
  3892. "type": "object",
  3893. "required": [
  3894. "meta",
  3895. "data"
  3896. ],
  3897. "properties": {
  3898. "meta": {
  3899. "$ref": "#/components/schemas/OCSMeta"
  3900. },
  3901. "data": {
  3902. "type": "object",
  3903. "required": [
  3904. "types"
  3905. ],
  3906. "properties": {
  3907. "types": {
  3908. "type": "object",
  3909. "additionalProperties": {
  3910. "$ref": "#/components/schemas/TaskProcessingTaskType"
  3911. }
  3912. }
  3913. }
  3914. }
  3915. }
  3916. }
  3917. }
  3918. }
  3919. }
  3920. }
  3921. }
  3922. }
  3923. }
  3924. },
  3925. "/ocs/v2.php/taskprocessing/schedule": {
  3926. "post": {
  3927. "operationId": "task_processing_api-schedule",
  3928. "summary": "Schedules a task",
  3929. "tags": [
  3930. "task_processing_api"
  3931. ],
  3932. "security": [
  3933. {},
  3934. {
  3935. "bearer_auth": []
  3936. },
  3937. {
  3938. "basic_auth": []
  3939. }
  3940. ],
  3941. "requestBody": {
  3942. "required": true,
  3943. "content": {
  3944. "application/json": {
  3945. "schema": {
  3946. "type": "object",
  3947. "required": [
  3948. "input",
  3949. "type",
  3950. "appId"
  3951. ],
  3952. "properties": {
  3953. "input": {
  3954. "type": "object",
  3955. "description": "Task's input parameters",
  3956. "additionalProperties": {
  3957. "type": "object"
  3958. }
  3959. },
  3960. "type": {
  3961. "type": "string",
  3962. "description": "Type of the task"
  3963. },
  3964. "appId": {
  3965. "type": "string",
  3966. "description": "ID of the app that will execute the task"
  3967. },
  3968. "customId": {
  3969. "type": "string",
  3970. "default": "",
  3971. "description": "An arbitrary identifier for the task"
  3972. },
  3973. "webhookUri": {
  3974. "type": "string",
  3975. "nullable": true,
  3976. "description": "URI to be requested when the task finishes"
  3977. },
  3978. "webhookMethod": {
  3979. "type": "string",
  3980. "nullable": true,
  3981. "description": "Method used for the webhook request (HTTP:GET, HTTP:POST, HTTP:PUT, HTTP:DELETE or AppAPI:APP_ID:GET, AppAPI:APP_ID:POST...)"
  3982. }
  3983. }
  3984. }
  3985. }
  3986. }
  3987. },
  3988. "parameters": [
  3989. {
  3990. "name": "OCS-APIRequest",
  3991. "in": "header",
  3992. "description": "Required to be true for the API request to pass",
  3993. "required": true,
  3994. "schema": {
  3995. "type": "boolean",
  3996. "default": true
  3997. }
  3998. }
  3999. ],
  4000. "responses": {
  4001. "200": {
  4002. "description": "Task scheduled successfully",
  4003. "content": {
  4004. "application/json": {
  4005. "schema": {
  4006. "type": "object",
  4007. "required": [
  4008. "ocs"
  4009. ],
  4010. "properties": {
  4011. "ocs": {
  4012. "type": "object",
  4013. "required": [
  4014. "meta",
  4015. "data"
  4016. ],
  4017. "properties": {
  4018. "meta": {
  4019. "$ref": "#/components/schemas/OCSMeta"
  4020. },
  4021. "data": {
  4022. "type": "object",
  4023. "required": [
  4024. "task"
  4025. ],
  4026. "properties": {
  4027. "task": {
  4028. "$ref": "#/components/schemas/TaskProcessingTask"
  4029. }
  4030. }
  4031. }
  4032. }
  4033. }
  4034. }
  4035. }
  4036. }
  4037. }
  4038. },
  4039. "500": {
  4040. "description": "",
  4041. "content": {
  4042. "application/json": {
  4043. "schema": {
  4044. "type": "object",
  4045. "required": [
  4046. "ocs"
  4047. ],
  4048. "properties": {
  4049. "ocs": {
  4050. "type": "object",
  4051. "required": [
  4052. "meta",
  4053. "data"
  4054. ],
  4055. "properties": {
  4056. "meta": {
  4057. "$ref": "#/components/schemas/OCSMeta"
  4058. },
  4059. "data": {
  4060. "type": "object",
  4061. "required": [
  4062. "message"
  4063. ],
  4064. "properties": {
  4065. "message": {
  4066. "type": "string"
  4067. }
  4068. }
  4069. }
  4070. }
  4071. }
  4072. }
  4073. }
  4074. }
  4075. }
  4076. },
  4077. "400": {
  4078. "description": "Scheduling task is not possible",
  4079. "content": {
  4080. "application/json": {
  4081. "schema": {
  4082. "type": "object",
  4083. "required": [
  4084. "ocs"
  4085. ],
  4086. "properties": {
  4087. "ocs": {
  4088. "type": "object",
  4089. "required": [
  4090. "meta",
  4091. "data"
  4092. ],
  4093. "properties": {
  4094. "meta": {
  4095. "$ref": "#/components/schemas/OCSMeta"
  4096. },
  4097. "data": {
  4098. "type": "object",
  4099. "required": [
  4100. "message"
  4101. ],
  4102. "properties": {
  4103. "message": {
  4104. "type": "string"
  4105. }
  4106. }
  4107. }
  4108. }
  4109. }
  4110. }
  4111. }
  4112. }
  4113. }
  4114. },
  4115. "412": {
  4116. "description": "Scheduling task is not possible",
  4117. "content": {
  4118. "application/json": {
  4119. "schema": {
  4120. "type": "object",
  4121. "required": [
  4122. "ocs"
  4123. ],
  4124. "properties": {
  4125. "ocs": {
  4126. "type": "object",
  4127. "required": [
  4128. "meta",
  4129. "data"
  4130. ],
  4131. "properties": {
  4132. "meta": {
  4133. "$ref": "#/components/schemas/OCSMeta"
  4134. },
  4135. "data": {
  4136. "type": "object",
  4137. "required": [
  4138. "message"
  4139. ],
  4140. "properties": {
  4141. "message": {
  4142. "type": "string"
  4143. }
  4144. }
  4145. }
  4146. }
  4147. }
  4148. }
  4149. }
  4150. }
  4151. }
  4152. },
  4153. "401": {
  4154. "description": "Cannot schedule task because it references files in its input that the user doesn't have access to",
  4155. "content": {
  4156. "application/json": {
  4157. "schema": {
  4158. "type": "object",
  4159. "required": [
  4160. "ocs"
  4161. ],
  4162. "properties": {
  4163. "ocs": {
  4164. "type": "object",
  4165. "required": [
  4166. "meta",
  4167. "data"
  4168. ],
  4169. "properties": {
  4170. "meta": {
  4171. "$ref": "#/components/schemas/OCSMeta"
  4172. },
  4173. "data": {
  4174. "type": "object",
  4175. "required": [
  4176. "message"
  4177. ],
  4178. "properties": {
  4179. "message": {
  4180. "type": "string"
  4181. }
  4182. }
  4183. }
  4184. }
  4185. }
  4186. }
  4187. }
  4188. }
  4189. }
  4190. }
  4191. }
  4192. }
  4193. },
  4194. "/ocs/v2.php/taskprocessing/task/{id}": {
  4195. "get": {
  4196. "operationId": "task_processing_api-get-task",
  4197. "summary": "Gets a task including status and result",
  4198. "description": "Tasks are removed 1 week after receiving their last update",
  4199. "tags": [
  4200. "task_processing_api"
  4201. ],
  4202. "security": [
  4203. {},
  4204. {
  4205. "bearer_auth": []
  4206. },
  4207. {
  4208. "basic_auth": []
  4209. }
  4210. ],
  4211. "parameters": [
  4212. {
  4213. "name": "id",
  4214. "in": "path",
  4215. "description": "The id of the task",
  4216. "required": true,
  4217. "schema": {
  4218. "type": "integer",
  4219. "format": "int64"
  4220. }
  4221. },
  4222. {
  4223. "name": "OCS-APIRequest",
  4224. "in": "header",
  4225. "description": "Required to be true for the API request to pass",
  4226. "required": true,
  4227. "schema": {
  4228. "type": "boolean",
  4229. "default": true
  4230. }
  4231. }
  4232. ],
  4233. "responses": {
  4234. "200": {
  4235. "description": "Task returned",
  4236. "content": {
  4237. "application/json": {
  4238. "schema": {
  4239. "type": "object",
  4240. "required": [
  4241. "ocs"
  4242. ],
  4243. "properties": {
  4244. "ocs": {
  4245. "type": "object",
  4246. "required": [
  4247. "meta",
  4248. "data"
  4249. ],
  4250. "properties": {
  4251. "meta": {
  4252. "$ref": "#/components/schemas/OCSMeta"
  4253. },
  4254. "data": {
  4255. "type": "object",
  4256. "required": [
  4257. "task"
  4258. ],
  4259. "properties": {
  4260. "task": {
  4261. "$ref": "#/components/schemas/TaskProcessingTask"
  4262. }
  4263. }
  4264. }
  4265. }
  4266. }
  4267. }
  4268. }
  4269. }
  4270. }
  4271. },
  4272. "404": {
  4273. "description": "Task not found",
  4274. "content": {
  4275. "application/json": {
  4276. "schema": {
  4277. "type": "object",
  4278. "required": [
  4279. "ocs"
  4280. ],
  4281. "properties": {
  4282. "ocs": {
  4283. "type": "object",
  4284. "required": [
  4285. "meta",
  4286. "data"
  4287. ],
  4288. "properties": {
  4289. "meta": {
  4290. "$ref": "#/components/schemas/OCSMeta"
  4291. },
  4292. "data": {
  4293. "type": "object",
  4294. "required": [
  4295. "message"
  4296. ],
  4297. "properties": {
  4298. "message": {
  4299. "type": "string"
  4300. }
  4301. }
  4302. }
  4303. }
  4304. }
  4305. }
  4306. }
  4307. }
  4308. }
  4309. },
  4310. "500": {
  4311. "description": "",
  4312. "content": {
  4313. "application/json": {
  4314. "schema": {
  4315. "type": "object",
  4316. "required": [
  4317. "ocs"
  4318. ],
  4319. "properties": {
  4320. "ocs": {
  4321. "type": "object",
  4322. "required": [
  4323. "meta",
  4324. "data"
  4325. ],
  4326. "properties": {
  4327. "meta": {
  4328. "$ref": "#/components/schemas/OCSMeta"
  4329. },
  4330. "data": {
  4331. "type": "object",
  4332. "required": [
  4333. "message"
  4334. ],
  4335. "properties": {
  4336. "message": {
  4337. "type": "string"
  4338. }
  4339. }
  4340. }
  4341. }
  4342. }
  4343. }
  4344. }
  4345. }
  4346. }
  4347. }
  4348. }
  4349. },
  4350. "delete": {
  4351. "operationId": "task_processing_api-delete-task",
  4352. "summary": "Deletes a task",
  4353. "tags": [
  4354. "task_processing_api"
  4355. ],
  4356. "security": [
  4357. {
  4358. "bearer_auth": []
  4359. },
  4360. {
  4361. "basic_auth": []
  4362. }
  4363. ],
  4364. "parameters": [
  4365. {
  4366. "name": "id",
  4367. "in": "path",
  4368. "description": "The id of the task",
  4369. "required": true,
  4370. "schema": {
  4371. "type": "integer",
  4372. "format": "int64"
  4373. }
  4374. },
  4375. {
  4376. "name": "OCS-APIRequest",
  4377. "in": "header",
  4378. "description": "Required to be true for the API request to pass",
  4379. "required": true,
  4380. "schema": {
  4381. "type": "boolean",
  4382. "default": true
  4383. }
  4384. }
  4385. ],
  4386. "responses": {
  4387. "200": {
  4388. "description": "Task deleted",
  4389. "content": {
  4390. "application/json": {
  4391. "schema": {
  4392. "type": "object",
  4393. "required": [
  4394. "ocs"
  4395. ],
  4396. "properties": {
  4397. "ocs": {
  4398. "type": "object",
  4399. "required": [
  4400. "meta",
  4401. "data"
  4402. ],
  4403. "properties": {
  4404. "meta": {
  4405. "$ref": "#/components/schemas/OCSMeta"
  4406. },
  4407. "data": {
  4408. "nullable": true
  4409. }
  4410. }
  4411. }
  4412. }
  4413. }
  4414. }
  4415. }
  4416. },
  4417. "500": {
  4418. "description": "",
  4419. "content": {
  4420. "application/json": {
  4421. "schema": {
  4422. "type": "object",
  4423. "required": [
  4424. "ocs"
  4425. ],
  4426. "properties": {
  4427. "ocs": {
  4428. "type": "object",
  4429. "required": [
  4430. "meta",
  4431. "data"
  4432. ],
  4433. "properties": {
  4434. "meta": {
  4435. "$ref": "#/components/schemas/OCSMeta"
  4436. },
  4437. "data": {
  4438. "type": "object",
  4439. "required": [
  4440. "message"
  4441. ],
  4442. "properties": {
  4443. "message": {
  4444. "type": "string"
  4445. }
  4446. }
  4447. }
  4448. }
  4449. }
  4450. }
  4451. }
  4452. }
  4453. }
  4454. }
  4455. }
  4456. }
  4457. },
  4458. "/ocs/v2.php/taskprocessing/tasks/app/{appId}": {
  4459. "get": {
  4460. "operationId": "task_processing_api-list-tasks-by-app",
  4461. "summary": "Returns tasks for the current user filtered by the appId and optional customId",
  4462. "tags": [
  4463. "task_processing_api"
  4464. ],
  4465. "security": [
  4466. {
  4467. "bearer_auth": []
  4468. },
  4469. {
  4470. "basic_auth": []
  4471. }
  4472. ],
  4473. "requestBody": {
  4474. "required": false,
  4475. "content": {
  4476. "application/json": {
  4477. "schema": {
  4478. "type": "object",
  4479. "properties": {
  4480. "customId": {
  4481. "type": "string",
  4482. "nullable": true,
  4483. "description": "An arbitrary identifier for the task"
  4484. }
  4485. }
  4486. }
  4487. }
  4488. }
  4489. },
  4490. "parameters": [
  4491. {
  4492. "name": "appId",
  4493. "in": "path",
  4494. "description": "ID of the app",
  4495. "required": true,
  4496. "schema": {
  4497. "type": "string"
  4498. }
  4499. },
  4500. {
  4501. "name": "OCS-APIRequest",
  4502. "in": "header",
  4503. "description": "Required to be true for the API request to pass",
  4504. "required": true,
  4505. "schema": {
  4506. "type": "boolean",
  4507. "default": true
  4508. }
  4509. }
  4510. ],
  4511. "responses": {
  4512. "200": {
  4513. "description": "Tasks returned",
  4514. "content": {
  4515. "application/json": {
  4516. "schema": {
  4517. "type": "object",
  4518. "required": [
  4519. "ocs"
  4520. ],
  4521. "properties": {
  4522. "ocs": {
  4523. "type": "object",
  4524. "required": [
  4525. "meta",
  4526. "data"
  4527. ],
  4528. "properties": {
  4529. "meta": {
  4530. "$ref": "#/components/schemas/OCSMeta"
  4531. },
  4532. "data": {
  4533. "type": "object",
  4534. "required": [
  4535. "tasks"
  4536. ],
  4537. "properties": {
  4538. "tasks": {
  4539. "type": "array",
  4540. "items": {
  4541. "$ref": "#/components/schemas/TaskProcessingTask"
  4542. }
  4543. }
  4544. }
  4545. }
  4546. }
  4547. }
  4548. }
  4549. }
  4550. }
  4551. }
  4552. },
  4553. "500": {
  4554. "description": "",
  4555. "content": {
  4556. "application/json": {
  4557. "schema": {
  4558. "type": "object",
  4559. "required": [
  4560. "ocs"
  4561. ],
  4562. "properties": {
  4563. "ocs": {
  4564. "type": "object",
  4565. "required": [
  4566. "meta",
  4567. "data"
  4568. ],
  4569. "properties": {
  4570. "meta": {
  4571. "$ref": "#/components/schemas/OCSMeta"
  4572. },
  4573. "data": {
  4574. "type": "object",
  4575. "required": [
  4576. "message"
  4577. ],
  4578. "properties": {
  4579. "message": {
  4580. "type": "string"
  4581. }
  4582. }
  4583. }
  4584. }
  4585. }
  4586. }
  4587. }
  4588. }
  4589. }
  4590. }
  4591. }
  4592. }
  4593. },
  4594. "/ocs/v2.php/taskprocessing/tasks": {
  4595. "get": {
  4596. "operationId": "task_processing_api-list-tasks",
  4597. "summary": "Returns tasks for the current user filtered by the optional taskType and optional customId",
  4598. "tags": [
  4599. "task_processing_api"
  4600. ],
  4601. "security": [
  4602. {
  4603. "bearer_auth": []
  4604. },
  4605. {
  4606. "basic_auth": []
  4607. }
  4608. ],
  4609. "requestBody": {
  4610. "required": false,
  4611. "content": {
  4612. "application/json": {
  4613. "schema": {
  4614. "type": "object",
  4615. "properties": {
  4616. "taskType": {
  4617. "type": "string",
  4618. "nullable": true,
  4619. "description": "The task type to filter by"
  4620. },
  4621. "customId": {
  4622. "type": "string",
  4623. "nullable": true,
  4624. "description": "An arbitrary identifier for the task"
  4625. }
  4626. }
  4627. }
  4628. }
  4629. }
  4630. },
  4631. "parameters": [
  4632. {
  4633. "name": "OCS-APIRequest",
  4634. "in": "header",
  4635. "description": "Required to be true for the API request to pass",
  4636. "required": true,
  4637. "schema": {
  4638. "type": "boolean",
  4639. "default": true
  4640. }
  4641. }
  4642. ],
  4643. "responses": {
  4644. "200": {
  4645. "description": "Tasks returned",
  4646. "content": {
  4647. "application/json": {
  4648. "schema": {
  4649. "type": "object",
  4650. "required": [
  4651. "ocs"
  4652. ],
  4653. "properties": {
  4654. "ocs": {
  4655. "type": "object",
  4656. "required": [
  4657. "meta",
  4658. "data"
  4659. ],
  4660. "properties": {
  4661. "meta": {
  4662. "$ref": "#/components/schemas/OCSMeta"
  4663. },
  4664. "data": {
  4665. "type": "object",
  4666. "required": [
  4667. "tasks"
  4668. ],
  4669. "properties": {
  4670. "tasks": {
  4671. "type": "array",
  4672. "items": {
  4673. "$ref": "#/components/schemas/TaskProcessingTask"
  4674. }
  4675. }
  4676. }
  4677. }
  4678. }
  4679. }
  4680. }
  4681. }
  4682. }
  4683. }
  4684. },
  4685. "500": {
  4686. "description": "",
  4687. "content": {
  4688. "application/json": {
  4689. "schema": {
  4690. "type": "object",
  4691. "required": [
  4692. "ocs"
  4693. ],
  4694. "properties": {
  4695. "ocs": {
  4696. "type": "object",
  4697. "required": [
  4698. "meta",
  4699. "data"
  4700. ],
  4701. "properties": {
  4702. "meta": {
  4703. "$ref": "#/components/schemas/OCSMeta"
  4704. },
  4705. "data": {
  4706. "type": "object",
  4707. "required": [
  4708. "message"
  4709. ],
  4710. "properties": {
  4711. "message": {
  4712. "type": "string"
  4713. }
  4714. }
  4715. }
  4716. }
  4717. }
  4718. }
  4719. }
  4720. }
  4721. }
  4722. }
  4723. }
  4724. }
  4725. },
  4726. "/ocs/v2.php/taskprocessing/tasks/{taskId}/file/{fileId}": {
  4727. "get": {
  4728. "operationId": "task_processing_api-get-file-contents",
  4729. "summary": "Returns the contents of a file referenced in a task",
  4730. "tags": [
  4731. "task_processing_api"
  4732. ],
  4733. "security": [
  4734. {
  4735. "bearer_auth": []
  4736. },
  4737. {
  4738. "basic_auth": []
  4739. }
  4740. ],
  4741. "parameters": [
  4742. {
  4743. "name": "taskId",
  4744. "in": "path",
  4745. "description": "The id of the task",
  4746. "required": true,
  4747. "schema": {
  4748. "type": "integer",
  4749. "format": "int64"
  4750. }
  4751. },
  4752. {
  4753. "name": "fileId",
  4754. "in": "path",
  4755. "description": "The file id of the file to retrieve",
  4756. "required": true,
  4757. "schema": {
  4758. "type": "integer",
  4759. "format": "int64"
  4760. }
  4761. },
  4762. {
  4763. "name": "OCS-APIRequest",
  4764. "in": "header",
  4765. "description": "Required to be true for the API request to pass",
  4766. "required": true,
  4767. "schema": {
  4768. "type": "boolean",
  4769. "default": true
  4770. }
  4771. }
  4772. ],
  4773. "responses": {
  4774. "200": {
  4775. "description": "File content returned",
  4776. "content": {
  4777. "*/*": {
  4778. "schema": {
  4779. "type": "string",
  4780. "format": "binary"
  4781. }
  4782. }
  4783. }
  4784. },
  4785. "500": {
  4786. "description": "",
  4787. "content": {
  4788. "application/json": {
  4789. "schema": {
  4790. "type": "object",
  4791. "required": [
  4792. "ocs"
  4793. ],
  4794. "properties": {
  4795. "ocs": {
  4796. "type": "object",
  4797. "required": [
  4798. "meta",
  4799. "data"
  4800. ],
  4801. "properties": {
  4802. "meta": {
  4803. "$ref": "#/components/schemas/OCSMeta"
  4804. },
  4805. "data": {
  4806. "type": "object",
  4807. "required": [
  4808. "message"
  4809. ],
  4810. "properties": {
  4811. "message": {
  4812. "type": "string"
  4813. }
  4814. }
  4815. }
  4816. }
  4817. }
  4818. }
  4819. }
  4820. }
  4821. }
  4822. },
  4823. "404": {
  4824. "description": "Task or file not found",
  4825. "content": {
  4826. "application/json": {
  4827. "schema": {
  4828. "type": "object",
  4829. "required": [
  4830. "ocs"
  4831. ],
  4832. "properties": {
  4833. "ocs": {
  4834. "type": "object",
  4835. "required": [
  4836. "meta",
  4837. "data"
  4838. ],
  4839. "properties": {
  4840. "meta": {
  4841. "$ref": "#/components/schemas/OCSMeta"
  4842. },
  4843. "data": {
  4844. "type": "object",
  4845. "required": [
  4846. "message"
  4847. ],
  4848. "properties": {
  4849. "message": {
  4850. "type": "string"
  4851. }
  4852. }
  4853. }
  4854. }
  4855. }
  4856. }
  4857. }
  4858. }
  4859. }
  4860. }
  4861. }
  4862. }
  4863. },
  4864. "/ocs/v2.php/taskprocessing/tasks/{taskId}/cancel": {
  4865. "post": {
  4866. "operationId": "task_processing_api-cancel-task",
  4867. "summary": "Cancels a task",
  4868. "tags": [
  4869. "task_processing_api"
  4870. ],
  4871. "security": [
  4872. {
  4873. "bearer_auth": []
  4874. },
  4875. {
  4876. "basic_auth": []
  4877. }
  4878. ],
  4879. "parameters": [
  4880. {
  4881. "name": "taskId",
  4882. "in": "path",
  4883. "description": "The id of the task",
  4884. "required": true,
  4885. "schema": {
  4886. "type": "integer",
  4887. "format": "int64"
  4888. }
  4889. },
  4890. {
  4891. "name": "OCS-APIRequest",
  4892. "in": "header",
  4893. "description": "Required to be true for the API request to pass",
  4894. "required": true,
  4895. "schema": {
  4896. "type": "boolean",
  4897. "default": true
  4898. }
  4899. }
  4900. ],
  4901. "responses": {
  4902. "200": {
  4903. "description": "Task canceled successfully",
  4904. "content": {
  4905. "application/json": {
  4906. "schema": {
  4907. "type": "object",
  4908. "required": [
  4909. "ocs"
  4910. ],
  4911. "properties": {
  4912. "ocs": {
  4913. "type": "object",
  4914. "required": [
  4915. "meta",
  4916. "data"
  4917. ],
  4918. "properties": {
  4919. "meta": {
  4920. "$ref": "#/components/schemas/OCSMeta"
  4921. },
  4922. "data": {
  4923. "type": "object",
  4924. "required": [
  4925. "task"
  4926. ],
  4927. "properties": {
  4928. "task": {
  4929. "$ref": "#/components/schemas/TaskProcessingTask"
  4930. }
  4931. }
  4932. }
  4933. }
  4934. }
  4935. }
  4936. }
  4937. }
  4938. }
  4939. },
  4940. "500": {
  4941. "description": "",
  4942. "content": {
  4943. "application/json": {
  4944. "schema": {
  4945. "type": "object",
  4946. "required": [
  4947. "ocs"
  4948. ],
  4949. "properties": {
  4950. "ocs": {
  4951. "type": "object",
  4952. "required": [
  4953. "meta",
  4954. "data"
  4955. ],
  4956. "properties": {
  4957. "meta": {
  4958. "$ref": "#/components/schemas/OCSMeta"
  4959. },
  4960. "data": {
  4961. "type": "object",
  4962. "required": [
  4963. "message"
  4964. ],
  4965. "properties": {
  4966. "message": {
  4967. "type": "string"
  4968. }
  4969. }
  4970. }
  4971. }
  4972. }
  4973. }
  4974. }
  4975. }
  4976. }
  4977. },
  4978. "404": {
  4979. "description": "Task not found",
  4980. "content": {
  4981. "application/json": {
  4982. "schema": {
  4983. "type": "object",
  4984. "required": [
  4985. "ocs"
  4986. ],
  4987. "properties": {
  4988. "ocs": {
  4989. "type": "object",
  4990. "required": [
  4991. "meta",
  4992. "data"
  4993. ],
  4994. "properties": {
  4995. "meta": {
  4996. "$ref": "#/components/schemas/OCSMeta"
  4997. },
  4998. "data": {
  4999. "type": "object",
  5000. "required": [
  5001. "message"
  5002. ],
  5003. "properties": {
  5004. "message": {
  5005. "type": "string"
  5006. }
  5007. }
  5008. }
  5009. }
  5010. }
  5011. }
  5012. }
  5013. }
  5014. }
  5015. }
  5016. }
  5017. }
  5018. },
  5019. "/ocs/v2.php/teams/{teamId}/resources": {
  5020. "get": {
  5021. "operationId": "teams_api-resolve-one",
  5022. "summary": "Get all resources of a team",
  5023. "tags": [
  5024. "teams_api"
  5025. ],
  5026. "security": [
  5027. {
  5028. "bearer_auth": []
  5029. },
  5030. {
  5031. "basic_auth": []
  5032. }
  5033. ],
  5034. "parameters": [
  5035. {
  5036. "name": "teamId",
  5037. "in": "path",
  5038. "description": "Unique id of the team",
  5039. "required": true,
  5040. "schema": {
  5041. "type": "string"
  5042. }
  5043. },
  5044. {
  5045. "name": "OCS-APIRequest",
  5046. "in": "header",
  5047. "description": "Required to be true for the API request to pass",
  5048. "required": true,
  5049. "schema": {
  5050. "type": "boolean",
  5051. "default": true
  5052. }
  5053. }
  5054. ],
  5055. "responses": {
  5056. "200": {
  5057. "description": "Resources returned",
  5058. "content": {
  5059. "application/json": {
  5060. "schema": {
  5061. "type": "object",
  5062. "required": [
  5063. "ocs"
  5064. ],
  5065. "properties": {
  5066. "ocs": {
  5067. "type": "object",
  5068. "required": [
  5069. "meta",
  5070. "data"
  5071. ],
  5072. "properties": {
  5073. "meta": {
  5074. "$ref": "#/components/schemas/OCSMeta"
  5075. },
  5076. "data": {
  5077. "type": "object",
  5078. "required": [
  5079. "resources"
  5080. ],
  5081. "properties": {
  5082. "resources": {
  5083. "type": "array",
  5084. "items": {
  5085. "$ref": "#/components/schemas/TeamResource"
  5086. }
  5087. }
  5088. }
  5089. }
  5090. }
  5091. }
  5092. }
  5093. }
  5094. }
  5095. }
  5096. }
  5097. }
  5098. }
  5099. },
  5100. "/ocs/v2.php/teams/resources/{providerId}/{resourceId}": {
  5101. "get": {
  5102. "operationId": "teams_api-list-teams",
  5103. "summary": "Get all teams of a resource",
  5104. "tags": [
  5105. "teams_api"
  5106. ],
  5107. "security": [
  5108. {
  5109. "bearer_auth": []
  5110. },
  5111. {
  5112. "basic_auth": []
  5113. }
  5114. ],
  5115. "parameters": [
  5116. {
  5117. "name": "providerId",
  5118. "in": "path",
  5119. "description": "Identifier of the provider (e.g. deck, talk, collectives)",
  5120. "required": true,
  5121. "schema": {
  5122. "type": "string"
  5123. }
  5124. },
  5125. {
  5126. "name": "resourceId",
  5127. "in": "path",
  5128. "description": "Unique id of the resource to list teams for (e.g. deck board id)",
  5129. "required": true,
  5130. "schema": {
  5131. "type": "string"
  5132. }
  5133. },
  5134. {
  5135. "name": "OCS-APIRequest",
  5136. "in": "header",
  5137. "description": "Required to be true for the API request to pass",
  5138. "required": true,
  5139. "schema": {
  5140. "type": "boolean",
  5141. "default": true
  5142. }
  5143. }
  5144. ],
  5145. "responses": {
  5146. "200": {
  5147. "description": "Teams returned",
  5148. "content": {
  5149. "application/json": {
  5150. "schema": {
  5151. "type": "object",
  5152. "required": [
  5153. "ocs"
  5154. ],
  5155. "properties": {
  5156. "ocs": {
  5157. "type": "object",
  5158. "required": [
  5159. "meta",
  5160. "data"
  5161. ],
  5162. "properties": {
  5163. "meta": {
  5164. "$ref": "#/components/schemas/OCSMeta"
  5165. },
  5166. "data": {
  5167. "type": "object",
  5168. "required": [
  5169. "teams"
  5170. ],
  5171. "properties": {
  5172. "teams": {
  5173. "type": "array",
  5174. "items": {
  5175. "$ref": "#/components/schemas/Team"
  5176. }
  5177. }
  5178. }
  5179. }
  5180. }
  5181. }
  5182. }
  5183. }
  5184. }
  5185. }
  5186. }
  5187. }
  5188. }
  5189. },
  5190. "/ocs/v2.php/textprocessing/tasktypes": {
  5191. "get": {
  5192. "operationId": "text_processing_api-task-types",
  5193. "summary": "This endpoint returns all available LanguageModel task types",
  5194. "tags": [
  5195. "text_processing_api"
  5196. ],
  5197. "security": [
  5198. {},
  5199. {
  5200. "bearer_auth": []
  5201. },
  5202. {
  5203. "basic_auth": []
  5204. }
  5205. ],
  5206. "parameters": [
  5207. {
  5208. "name": "OCS-APIRequest",
  5209. "in": "header",
  5210. "description": "Required to be true for the API request to pass",
  5211. "required": true,
  5212. "schema": {
  5213. "type": "boolean",
  5214. "default": true
  5215. }
  5216. }
  5217. ],
  5218. "responses": {
  5219. "200": {
  5220. "description": "Task types returned",
  5221. "content": {
  5222. "application/json": {
  5223. "schema": {
  5224. "type": "object",
  5225. "required": [
  5226. "ocs"
  5227. ],
  5228. "properties": {
  5229. "ocs": {
  5230. "type": "object",
  5231. "required": [
  5232. "meta",
  5233. "data"
  5234. ],
  5235. "properties": {
  5236. "meta": {
  5237. "$ref": "#/components/schemas/OCSMeta"
  5238. },
  5239. "data": {
  5240. "type": "object",
  5241. "required": [
  5242. "types"
  5243. ],
  5244. "properties": {
  5245. "types": {
  5246. "type": "array",
  5247. "items": {
  5248. "type": "object",
  5249. "required": [
  5250. "id",
  5251. "name",
  5252. "description"
  5253. ],
  5254. "properties": {
  5255. "id": {
  5256. "type": "string"
  5257. },
  5258. "name": {
  5259. "type": "string"
  5260. },
  5261. "description": {
  5262. "type": "string"
  5263. }
  5264. }
  5265. }
  5266. }
  5267. }
  5268. }
  5269. }
  5270. }
  5271. }
  5272. }
  5273. }
  5274. }
  5275. }
  5276. }
  5277. }
  5278. },
  5279. "/ocs/v2.php/textprocessing/schedule": {
  5280. "post": {
  5281. "operationId": "text_processing_api-schedule",
  5282. "summary": "This endpoint allows scheduling a language model task",
  5283. "tags": [
  5284. "text_processing_api"
  5285. ],
  5286. "security": [
  5287. {},
  5288. {
  5289. "bearer_auth": []
  5290. },
  5291. {
  5292. "basic_auth": []
  5293. }
  5294. ],
  5295. "requestBody": {
  5296. "required": true,
  5297. "content": {
  5298. "application/json": {
  5299. "schema": {
  5300. "type": "object",
  5301. "required": [
  5302. "input",
  5303. "type",
  5304. "appId"
  5305. ],
  5306. "properties": {
  5307. "input": {
  5308. "type": "string",
  5309. "description": "Input text"
  5310. },
  5311. "type": {
  5312. "type": "string",
  5313. "description": "Type of the task"
  5314. },
  5315. "appId": {
  5316. "type": "string",
  5317. "description": "ID of the app that will execute the task"
  5318. },
  5319. "identifier": {
  5320. "type": "string",
  5321. "default": "",
  5322. "description": "An arbitrary identifier for the task"
  5323. }
  5324. }
  5325. }
  5326. }
  5327. }
  5328. },
  5329. "parameters": [
  5330. {
  5331. "name": "OCS-APIRequest",
  5332. "in": "header",
  5333. "description": "Required to be true for the API request to pass",
  5334. "required": true,
  5335. "schema": {
  5336. "type": "boolean",
  5337. "default": true
  5338. }
  5339. }
  5340. ],
  5341. "responses": {
  5342. "200": {
  5343. "description": "Task scheduled successfully",
  5344. "content": {
  5345. "application/json": {
  5346. "schema": {
  5347. "type": "object",
  5348. "required": [
  5349. "ocs"
  5350. ],
  5351. "properties": {
  5352. "ocs": {
  5353. "type": "object",
  5354. "required": [
  5355. "meta",
  5356. "data"
  5357. ],
  5358. "properties": {
  5359. "meta": {
  5360. "$ref": "#/components/schemas/OCSMeta"
  5361. },
  5362. "data": {
  5363. "type": "object",
  5364. "required": [
  5365. "task"
  5366. ],
  5367. "properties": {
  5368. "task": {
  5369. "$ref": "#/components/schemas/TextProcessingTask"
  5370. }
  5371. }
  5372. }
  5373. }
  5374. }
  5375. }
  5376. }
  5377. }
  5378. }
  5379. },
  5380. "500": {
  5381. "description": "",
  5382. "content": {
  5383. "application/json": {
  5384. "schema": {
  5385. "type": "object",
  5386. "required": [
  5387. "ocs"
  5388. ],
  5389. "properties": {
  5390. "ocs": {
  5391. "type": "object",
  5392. "required": [
  5393. "meta",
  5394. "data"
  5395. ],
  5396. "properties": {
  5397. "meta": {
  5398. "$ref": "#/components/schemas/OCSMeta"
  5399. },
  5400. "data": {
  5401. "type": "object",
  5402. "required": [
  5403. "message"
  5404. ],
  5405. "properties": {
  5406. "message": {
  5407. "type": "string"
  5408. }
  5409. }
  5410. }
  5411. }
  5412. }
  5413. }
  5414. }
  5415. }
  5416. }
  5417. },
  5418. "400": {
  5419. "description": "Scheduling task is not possible",
  5420. "content": {
  5421. "application/json": {
  5422. "schema": {
  5423. "type": "object",
  5424. "required": [
  5425. "ocs"
  5426. ],
  5427. "properties": {
  5428. "ocs": {
  5429. "type": "object",
  5430. "required": [
  5431. "meta",
  5432. "data"
  5433. ],
  5434. "properties": {
  5435. "meta": {
  5436. "$ref": "#/components/schemas/OCSMeta"
  5437. },
  5438. "data": {
  5439. "type": "object",
  5440. "required": [
  5441. "message"
  5442. ],
  5443. "properties": {
  5444. "message": {
  5445. "type": "string"
  5446. }
  5447. }
  5448. }
  5449. }
  5450. }
  5451. }
  5452. }
  5453. }
  5454. }
  5455. },
  5456. "412": {
  5457. "description": "Scheduling task is not possible",
  5458. "content": {
  5459. "application/json": {
  5460. "schema": {
  5461. "type": "object",
  5462. "required": [
  5463. "ocs"
  5464. ],
  5465. "properties": {
  5466. "ocs": {
  5467. "type": "object",
  5468. "required": [
  5469. "meta",
  5470. "data"
  5471. ],
  5472. "properties": {
  5473. "meta": {
  5474. "$ref": "#/components/schemas/OCSMeta"
  5475. },
  5476. "data": {
  5477. "type": "object",
  5478. "required": [
  5479. "message"
  5480. ],
  5481. "properties": {
  5482. "message": {
  5483. "type": "string"
  5484. }
  5485. }
  5486. }
  5487. }
  5488. }
  5489. }
  5490. }
  5491. }
  5492. }
  5493. }
  5494. }
  5495. }
  5496. },
  5497. "/ocs/v2.php/textprocessing/task/{id}": {
  5498. "get": {
  5499. "operationId": "text_processing_api-get-task",
  5500. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  5501. "tags": [
  5502. "text_processing_api"
  5503. ],
  5504. "security": [
  5505. {},
  5506. {
  5507. "bearer_auth": []
  5508. },
  5509. {
  5510. "basic_auth": []
  5511. }
  5512. ],
  5513. "parameters": [
  5514. {
  5515. "name": "id",
  5516. "in": "path",
  5517. "description": "The id of the task",
  5518. "required": true,
  5519. "schema": {
  5520. "type": "integer",
  5521. "format": "int64"
  5522. }
  5523. },
  5524. {
  5525. "name": "OCS-APIRequest",
  5526. "in": "header",
  5527. "description": "Required to be true for the API request to pass",
  5528. "required": true,
  5529. "schema": {
  5530. "type": "boolean",
  5531. "default": true
  5532. }
  5533. }
  5534. ],
  5535. "responses": {
  5536. "200": {
  5537. "description": "Task returned",
  5538. "content": {
  5539. "application/json": {
  5540. "schema": {
  5541. "type": "object",
  5542. "required": [
  5543. "ocs"
  5544. ],
  5545. "properties": {
  5546. "ocs": {
  5547. "type": "object",
  5548. "required": [
  5549. "meta",
  5550. "data"
  5551. ],
  5552. "properties": {
  5553. "meta": {
  5554. "$ref": "#/components/schemas/OCSMeta"
  5555. },
  5556. "data": {
  5557. "type": "object",
  5558. "required": [
  5559. "task"
  5560. ],
  5561. "properties": {
  5562. "task": {
  5563. "$ref": "#/components/schemas/TextProcessingTask"
  5564. }
  5565. }
  5566. }
  5567. }
  5568. }
  5569. }
  5570. }
  5571. }
  5572. }
  5573. },
  5574. "404": {
  5575. "description": "Task not found",
  5576. "content": {
  5577. "application/json": {
  5578. "schema": {
  5579. "type": "object",
  5580. "required": [
  5581. "ocs"
  5582. ],
  5583. "properties": {
  5584. "ocs": {
  5585. "type": "object",
  5586. "required": [
  5587. "meta",
  5588. "data"
  5589. ],
  5590. "properties": {
  5591. "meta": {
  5592. "$ref": "#/components/schemas/OCSMeta"
  5593. },
  5594. "data": {
  5595. "type": "object",
  5596. "required": [
  5597. "message"
  5598. ],
  5599. "properties": {
  5600. "message": {
  5601. "type": "string"
  5602. }
  5603. }
  5604. }
  5605. }
  5606. }
  5607. }
  5608. }
  5609. }
  5610. }
  5611. },
  5612. "500": {
  5613. "description": "",
  5614. "content": {
  5615. "application/json": {
  5616. "schema": {
  5617. "type": "object",
  5618. "required": [
  5619. "ocs"
  5620. ],
  5621. "properties": {
  5622. "ocs": {
  5623. "type": "object",
  5624. "required": [
  5625. "meta",
  5626. "data"
  5627. ],
  5628. "properties": {
  5629. "meta": {
  5630. "$ref": "#/components/schemas/OCSMeta"
  5631. },
  5632. "data": {
  5633. "type": "object",
  5634. "required": [
  5635. "message"
  5636. ],
  5637. "properties": {
  5638. "message": {
  5639. "type": "string"
  5640. }
  5641. }
  5642. }
  5643. }
  5644. }
  5645. }
  5646. }
  5647. }
  5648. }
  5649. }
  5650. }
  5651. },
  5652. "delete": {
  5653. "operationId": "text_processing_api-delete-task",
  5654. "summary": "This endpoint allows to delete a scheduled task for a user",
  5655. "tags": [
  5656. "text_processing_api"
  5657. ],
  5658. "security": [
  5659. {
  5660. "bearer_auth": []
  5661. },
  5662. {
  5663. "basic_auth": []
  5664. }
  5665. ],
  5666. "parameters": [
  5667. {
  5668. "name": "id",
  5669. "in": "path",
  5670. "description": "The id of the task",
  5671. "required": true,
  5672. "schema": {
  5673. "type": "integer",
  5674. "format": "int64"
  5675. }
  5676. },
  5677. {
  5678. "name": "OCS-APIRequest",
  5679. "in": "header",
  5680. "description": "Required to be true for the API request to pass",
  5681. "required": true,
  5682. "schema": {
  5683. "type": "boolean",
  5684. "default": true
  5685. }
  5686. }
  5687. ],
  5688. "responses": {
  5689. "200": {
  5690. "description": "Task returned",
  5691. "content": {
  5692. "application/json": {
  5693. "schema": {
  5694. "type": "object",
  5695. "required": [
  5696. "ocs"
  5697. ],
  5698. "properties": {
  5699. "ocs": {
  5700. "type": "object",
  5701. "required": [
  5702. "meta",
  5703. "data"
  5704. ],
  5705. "properties": {
  5706. "meta": {
  5707. "$ref": "#/components/schemas/OCSMeta"
  5708. },
  5709. "data": {
  5710. "type": "object",
  5711. "required": [
  5712. "task"
  5713. ],
  5714. "properties": {
  5715. "task": {
  5716. "$ref": "#/components/schemas/TextProcessingTask"
  5717. }
  5718. }
  5719. }
  5720. }
  5721. }
  5722. }
  5723. }
  5724. }
  5725. }
  5726. },
  5727. "404": {
  5728. "description": "Task not found",
  5729. "content": {
  5730. "application/json": {
  5731. "schema": {
  5732. "type": "object",
  5733. "required": [
  5734. "ocs"
  5735. ],
  5736. "properties": {
  5737. "ocs": {
  5738. "type": "object",
  5739. "required": [
  5740. "meta",
  5741. "data"
  5742. ],
  5743. "properties": {
  5744. "meta": {
  5745. "$ref": "#/components/schemas/OCSMeta"
  5746. },
  5747. "data": {
  5748. "type": "object",
  5749. "required": [
  5750. "message"
  5751. ],
  5752. "properties": {
  5753. "message": {
  5754. "type": "string"
  5755. }
  5756. }
  5757. }
  5758. }
  5759. }
  5760. }
  5761. }
  5762. }
  5763. }
  5764. },
  5765. "500": {
  5766. "description": "",
  5767. "content": {
  5768. "application/json": {
  5769. "schema": {
  5770. "type": "object",
  5771. "required": [
  5772. "ocs"
  5773. ],
  5774. "properties": {
  5775. "ocs": {
  5776. "type": "object",
  5777. "required": [
  5778. "meta",
  5779. "data"
  5780. ],
  5781. "properties": {
  5782. "meta": {
  5783. "$ref": "#/components/schemas/OCSMeta"
  5784. },
  5785. "data": {
  5786. "type": "object",
  5787. "required": [
  5788. "message"
  5789. ],
  5790. "properties": {
  5791. "message": {
  5792. "type": "string"
  5793. }
  5794. }
  5795. }
  5796. }
  5797. }
  5798. }
  5799. }
  5800. }
  5801. }
  5802. }
  5803. }
  5804. }
  5805. },
  5806. "/ocs/v2.php/textprocessing/tasks/app/{appId}": {
  5807. "get": {
  5808. "operationId": "text_processing_api-list-tasks-by-app",
  5809. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  5810. "tags": [
  5811. "text_processing_api"
  5812. ],
  5813. "security": [
  5814. {
  5815. "bearer_auth": []
  5816. },
  5817. {
  5818. "basic_auth": []
  5819. }
  5820. ],
  5821. "requestBody": {
  5822. "required": false,
  5823. "content": {
  5824. "application/json": {
  5825. "schema": {
  5826. "type": "object",
  5827. "properties": {
  5828. "identifier": {
  5829. "type": "string",
  5830. "nullable": true,
  5831. "description": "An arbitrary identifier for the task"
  5832. }
  5833. }
  5834. }
  5835. }
  5836. }
  5837. },
  5838. "parameters": [
  5839. {
  5840. "name": "appId",
  5841. "in": "path",
  5842. "description": "ID of the app",
  5843. "required": true,
  5844. "schema": {
  5845. "type": "string"
  5846. }
  5847. },
  5848. {
  5849. "name": "OCS-APIRequest",
  5850. "in": "header",
  5851. "description": "Required to be true for the API request to pass",
  5852. "required": true,
  5853. "schema": {
  5854. "type": "boolean",
  5855. "default": true
  5856. }
  5857. }
  5858. ],
  5859. "responses": {
  5860. "200": {
  5861. "description": "Task list returned",
  5862. "content": {
  5863. "application/json": {
  5864. "schema": {
  5865. "type": "object",
  5866. "required": [
  5867. "ocs"
  5868. ],
  5869. "properties": {
  5870. "ocs": {
  5871. "type": "object",
  5872. "required": [
  5873. "meta",
  5874. "data"
  5875. ],
  5876. "properties": {
  5877. "meta": {
  5878. "$ref": "#/components/schemas/OCSMeta"
  5879. },
  5880. "data": {
  5881. "type": "object",
  5882. "required": [
  5883. "tasks"
  5884. ],
  5885. "properties": {
  5886. "tasks": {
  5887. "type": "array",
  5888. "items": {
  5889. "$ref": "#/components/schemas/TextProcessingTask"
  5890. }
  5891. }
  5892. }
  5893. }
  5894. }
  5895. }
  5896. }
  5897. }
  5898. }
  5899. }
  5900. },
  5901. "500": {
  5902. "description": "",
  5903. "content": {
  5904. "application/json": {
  5905. "schema": {
  5906. "type": "object",
  5907. "required": [
  5908. "ocs"
  5909. ],
  5910. "properties": {
  5911. "ocs": {
  5912. "type": "object",
  5913. "required": [
  5914. "meta",
  5915. "data"
  5916. ],
  5917. "properties": {
  5918. "meta": {
  5919. "$ref": "#/components/schemas/OCSMeta"
  5920. },
  5921. "data": {
  5922. "type": "object",
  5923. "required": [
  5924. "message"
  5925. ],
  5926. "properties": {
  5927. "message": {
  5928. "type": "string"
  5929. }
  5930. }
  5931. }
  5932. }
  5933. }
  5934. }
  5935. }
  5936. }
  5937. }
  5938. }
  5939. }
  5940. }
  5941. },
  5942. "/ocs/v2.php/text2image/is_available": {
  5943. "get": {
  5944. "operationId": "text_to_image_api-is-available",
  5945. "summary": "Check whether this feature is available",
  5946. "tags": [
  5947. "text_to_image_api"
  5948. ],
  5949. "security": [
  5950. {},
  5951. {
  5952. "bearer_auth": []
  5953. },
  5954. {
  5955. "basic_auth": []
  5956. }
  5957. ],
  5958. "parameters": [
  5959. {
  5960. "name": "OCS-APIRequest",
  5961. "in": "header",
  5962. "description": "Required to be true for the API request to pass",
  5963. "required": true,
  5964. "schema": {
  5965. "type": "boolean",
  5966. "default": true
  5967. }
  5968. }
  5969. ],
  5970. "responses": {
  5971. "200": {
  5972. "description": "Returns availability status",
  5973. "content": {
  5974. "application/json": {
  5975. "schema": {
  5976. "type": "object",
  5977. "required": [
  5978. "ocs"
  5979. ],
  5980. "properties": {
  5981. "ocs": {
  5982. "type": "object",
  5983. "required": [
  5984. "meta",
  5985. "data"
  5986. ],
  5987. "properties": {
  5988. "meta": {
  5989. "$ref": "#/components/schemas/OCSMeta"
  5990. },
  5991. "data": {
  5992. "type": "object",
  5993. "required": [
  5994. "isAvailable"
  5995. ],
  5996. "properties": {
  5997. "isAvailable": {
  5998. "type": "boolean"
  5999. }
  6000. }
  6001. }
  6002. }
  6003. }
  6004. }
  6005. }
  6006. }
  6007. }
  6008. }
  6009. }
  6010. }
  6011. },
  6012. "/ocs/v2.php/text2image/schedule": {
  6013. "post": {
  6014. "operationId": "text_to_image_api-schedule",
  6015. "summary": "This endpoint allows scheduling a text to image task",
  6016. "tags": [
  6017. "text_to_image_api"
  6018. ],
  6019. "security": [
  6020. {},
  6021. {
  6022. "bearer_auth": []
  6023. },
  6024. {
  6025. "basic_auth": []
  6026. }
  6027. ],
  6028. "requestBody": {
  6029. "required": true,
  6030. "content": {
  6031. "application/json": {
  6032. "schema": {
  6033. "type": "object",
  6034. "required": [
  6035. "input",
  6036. "appId"
  6037. ],
  6038. "properties": {
  6039. "input": {
  6040. "type": "string",
  6041. "description": "Input text"
  6042. },
  6043. "appId": {
  6044. "type": "string",
  6045. "description": "ID of the app that will execute the task"
  6046. },
  6047. "identifier": {
  6048. "type": "string",
  6049. "default": "",
  6050. "description": "An arbitrary identifier for the task"
  6051. },
  6052. "numberOfImages": {
  6053. "type": "integer",
  6054. "format": "int64",
  6055. "default": 8,
  6056. "description": "The number of images to generate"
  6057. }
  6058. }
  6059. }
  6060. }
  6061. }
  6062. },
  6063. "parameters": [
  6064. {
  6065. "name": "OCS-APIRequest",
  6066. "in": "header",
  6067. "description": "Required to be true for the API request to pass",
  6068. "required": true,
  6069. "schema": {
  6070. "type": "boolean",
  6071. "default": true
  6072. }
  6073. }
  6074. ],
  6075. "responses": {
  6076. "200": {
  6077. "description": "Task scheduled successfully",
  6078. "content": {
  6079. "application/json": {
  6080. "schema": {
  6081. "type": "object",
  6082. "required": [
  6083. "ocs"
  6084. ],
  6085. "properties": {
  6086. "ocs": {
  6087. "type": "object",
  6088. "required": [
  6089. "meta",
  6090. "data"
  6091. ],
  6092. "properties": {
  6093. "meta": {
  6094. "$ref": "#/components/schemas/OCSMeta"
  6095. },
  6096. "data": {
  6097. "type": "object",
  6098. "required": [
  6099. "task"
  6100. ],
  6101. "properties": {
  6102. "task": {
  6103. "$ref": "#/components/schemas/TextToImageTask"
  6104. }
  6105. }
  6106. }
  6107. }
  6108. }
  6109. }
  6110. }
  6111. }
  6112. }
  6113. },
  6114. "412": {
  6115. "description": "Scheduling task is not possible",
  6116. "content": {
  6117. "application/json": {
  6118. "schema": {
  6119. "type": "object",
  6120. "required": [
  6121. "ocs"
  6122. ],
  6123. "properties": {
  6124. "ocs": {
  6125. "type": "object",
  6126. "required": [
  6127. "meta",
  6128. "data"
  6129. ],
  6130. "properties": {
  6131. "meta": {
  6132. "$ref": "#/components/schemas/OCSMeta"
  6133. },
  6134. "data": {
  6135. "type": "object",
  6136. "required": [
  6137. "message"
  6138. ],
  6139. "properties": {
  6140. "message": {
  6141. "type": "string"
  6142. }
  6143. }
  6144. }
  6145. }
  6146. }
  6147. }
  6148. }
  6149. }
  6150. }
  6151. },
  6152. "500": {
  6153. "description": "",
  6154. "content": {
  6155. "application/json": {
  6156. "schema": {
  6157. "type": "object",
  6158. "required": [
  6159. "ocs"
  6160. ],
  6161. "properties": {
  6162. "ocs": {
  6163. "type": "object",
  6164. "required": [
  6165. "meta",
  6166. "data"
  6167. ],
  6168. "properties": {
  6169. "meta": {
  6170. "$ref": "#/components/schemas/OCSMeta"
  6171. },
  6172. "data": {
  6173. "type": "object",
  6174. "required": [
  6175. "message"
  6176. ],
  6177. "properties": {
  6178. "message": {
  6179. "type": "string"
  6180. }
  6181. }
  6182. }
  6183. }
  6184. }
  6185. }
  6186. }
  6187. }
  6188. }
  6189. }
  6190. }
  6191. }
  6192. },
  6193. "/ocs/v2.php/text2image/task/{id}": {
  6194. "get": {
  6195. "operationId": "text_to_image_api-get-task",
  6196. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  6197. "tags": [
  6198. "text_to_image_api"
  6199. ],
  6200. "security": [
  6201. {},
  6202. {
  6203. "bearer_auth": []
  6204. },
  6205. {
  6206. "basic_auth": []
  6207. }
  6208. ],
  6209. "parameters": [
  6210. {
  6211. "name": "id",
  6212. "in": "path",
  6213. "description": "The id of the task",
  6214. "required": true,
  6215. "schema": {
  6216. "type": "integer",
  6217. "format": "int64"
  6218. }
  6219. },
  6220. {
  6221. "name": "OCS-APIRequest",
  6222. "in": "header",
  6223. "description": "Required to be true for the API request to pass",
  6224. "required": true,
  6225. "schema": {
  6226. "type": "boolean",
  6227. "default": true
  6228. }
  6229. }
  6230. ],
  6231. "responses": {
  6232. "200": {
  6233. "description": "Task returned",
  6234. "content": {
  6235. "application/json": {
  6236. "schema": {
  6237. "type": "object",
  6238. "required": [
  6239. "ocs"
  6240. ],
  6241. "properties": {
  6242. "ocs": {
  6243. "type": "object",
  6244. "required": [
  6245. "meta",
  6246. "data"
  6247. ],
  6248. "properties": {
  6249. "meta": {
  6250. "$ref": "#/components/schemas/OCSMeta"
  6251. },
  6252. "data": {
  6253. "type": "object",
  6254. "required": [
  6255. "task"
  6256. ],
  6257. "properties": {
  6258. "task": {
  6259. "$ref": "#/components/schemas/TextToImageTask"
  6260. }
  6261. }
  6262. }
  6263. }
  6264. }
  6265. }
  6266. }
  6267. }
  6268. }
  6269. },
  6270. "404": {
  6271. "description": "Task not found",
  6272. "content": {
  6273. "application/json": {
  6274. "schema": {
  6275. "type": "object",
  6276. "required": [
  6277. "ocs"
  6278. ],
  6279. "properties": {
  6280. "ocs": {
  6281. "type": "object",
  6282. "required": [
  6283. "meta",
  6284. "data"
  6285. ],
  6286. "properties": {
  6287. "meta": {
  6288. "$ref": "#/components/schemas/OCSMeta"
  6289. },
  6290. "data": {
  6291. "type": "object",
  6292. "required": [
  6293. "message"
  6294. ],
  6295. "properties": {
  6296. "message": {
  6297. "type": "string"
  6298. }
  6299. }
  6300. }
  6301. }
  6302. }
  6303. }
  6304. }
  6305. }
  6306. }
  6307. },
  6308. "500": {
  6309. "description": "",
  6310. "content": {
  6311. "application/json": {
  6312. "schema": {
  6313. "type": "object",
  6314. "required": [
  6315. "ocs"
  6316. ],
  6317. "properties": {
  6318. "ocs": {
  6319. "type": "object",
  6320. "required": [
  6321. "meta",
  6322. "data"
  6323. ],
  6324. "properties": {
  6325. "meta": {
  6326. "$ref": "#/components/schemas/OCSMeta"
  6327. },
  6328. "data": {
  6329. "type": "object",
  6330. "required": [
  6331. "message"
  6332. ],
  6333. "properties": {
  6334. "message": {
  6335. "type": "string"
  6336. }
  6337. }
  6338. }
  6339. }
  6340. }
  6341. }
  6342. }
  6343. }
  6344. }
  6345. }
  6346. }
  6347. },
  6348. "delete": {
  6349. "operationId": "text_to_image_api-delete-task",
  6350. "summary": "This endpoint allows to delete a scheduled task for a user",
  6351. "tags": [
  6352. "text_to_image_api"
  6353. ],
  6354. "security": [
  6355. {
  6356. "bearer_auth": []
  6357. },
  6358. {
  6359. "basic_auth": []
  6360. }
  6361. ],
  6362. "parameters": [
  6363. {
  6364. "name": "id",
  6365. "in": "path",
  6366. "description": "The id of the task",
  6367. "required": true,
  6368. "schema": {
  6369. "type": "integer",
  6370. "format": "int64"
  6371. }
  6372. },
  6373. {
  6374. "name": "OCS-APIRequest",
  6375. "in": "header",
  6376. "description": "Required to be true for the API request to pass",
  6377. "required": true,
  6378. "schema": {
  6379. "type": "boolean",
  6380. "default": true
  6381. }
  6382. }
  6383. ],
  6384. "responses": {
  6385. "200": {
  6386. "description": "Task returned",
  6387. "content": {
  6388. "application/json": {
  6389. "schema": {
  6390. "type": "object",
  6391. "required": [
  6392. "ocs"
  6393. ],
  6394. "properties": {
  6395. "ocs": {
  6396. "type": "object",
  6397. "required": [
  6398. "meta",
  6399. "data"
  6400. ],
  6401. "properties": {
  6402. "meta": {
  6403. "$ref": "#/components/schemas/OCSMeta"
  6404. },
  6405. "data": {
  6406. "type": "object",
  6407. "required": [
  6408. "task"
  6409. ],
  6410. "properties": {
  6411. "task": {
  6412. "$ref": "#/components/schemas/TextToImageTask"
  6413. }
  6414. }
  6415. }
  6416. }
  6417. }
  6418. }
  6419. }
  6420. }
  6421. }
  6422. },
  6423. "404": {
  6424. "description": "Task not found",
  6425. "content": {
  6426. "application/json": {
  6427. "schema": {
  6428. "type": "object",
  6429. "required": [
  6430. "ocs"
  6431. ],
  6432. "properties": {
  6433. "ocs": {
  6434. "type": "object",
  6435. "required": [
  6436. "meta",
  6437. "data"
  6438. ],
  6439. "properties": {
  6440. "meta": {
  6441. "$ref": "#/components/schemas/OCSMeta"
  6442. },
  6443. "data": {
  6444. "type": "object",
  6445. "required": [
  6446. "message"
  6447. ],
  6448. "properties": {
  6449. "message": {
  6450. "type": "string"
  6451. }
  6452. }
  6453. }
  6454. }
  6455. }
  6456. }
  6457. }
  6458. }
  6459. }
  6460. },
  6461. "500": {
  6462. "description": "",
  6463. "content": {
  6464. "application/json": {
  6465. "schema": {
  6466. "type": "object",
  6467. "required": [
  6468. "ocs"
  6469. ],
  6470. "properties": {
  6471. "ocs": {
  6472. "type": "object",
  6473. "required": [
  6474. "meta",
  6475. "data"
  6476. ],
  6477. "properties": {
  6478. "meta": {
  6479. "$ref": "#/components/schemas/OCSMeta"
  6480. },
  6481. "data": {
  6482. "type": "object",
  6483. "required": [
  6484. "message"
  6485. ],
  6486. "properties": {
  6487. "message": {
  6488. "type": "string"
  6489. }
  6490. }
  6491. }
  6492. }
  6493. }
  6494. }
  6495. }
  6496. }
  6497. }
  6498. }
  6499. }
  6500. }
  6501. },
  6502. "/ocs/v2.php/text2image/task/{id}/image/{index}": {
  6503. "get": {
  6504. "operationId": "text_to_image_api-get-image",
  6505. "summary": "This endpoint allows downloading the resulting image of a task",
  6506. "tags": [
  6507. "text_to_image_api"
  6508. ],
  6509. "security": [
  6510. {},
  6511. {
  6512. "bearer_auth": []
  6513. },
  6514. {
  6515. "basic_auth": []
  6516. }
  6517. ],
  6518. "parameters": [
  6519. {
  6520. "name": "id",
  6521. "in": "path",
  6522. "description": "The id of the task",
  6523. "required": true,
  6524. "schema": {
  6525. "type": "integer",
  6526. "format": "int64"
  6527. }
  6528. },
  6529. {
  6530. "name": "index",
  6531. "in": "path",
  6532. "description": "The index of the image to retrieve",
  6533. "required": true,
  6534. "schema": {
  6535. "type": "integer",
  6536. "format": "int64"
  6537. }
  6538. },
  6539. {
  6540. "name": "OCS-APIRequest",
  6541. "in": "header",
  6542. "description": "Required to be true for the API request to pass",
  6543. "required": true,
  6544. "schema": {
  6545. "type": "boolean",
  6546. "default": true
  6547. }
  6548. }
  6549. ],
  6550. "responses": {
  6551. "200": {
  6552. "description": "Image returned",
  6553. "content": {
  6554. "*/*": {
  6555. "schema": {
  6556. "type": "string",
  6557. "format": "binary"
  6558. }
  6559. }
  6560. }
  6561. },
  6562. "404": {
  6563. "description": "Task or image not found",
  6564. "content": {
  6565. "application/json": {
  6566. "schema": {
  6567. "type": "object",
  6568. "required": [
  6569. "ocs"
  6570. ],
  6571. "properties": {
  6572. "ocs": {
  6573. "type": "object",
  6574. "required": [
  6575. "meta",
  6576. "data"
  6577. ],
  6578. "properties": {
  6579. "meta": {
  6580. "$ref": "#/components/schemas/OCSMeta"
  6581. },
  6582. "data": {
  6583. "type": "object",
  6584. "required": [
  6585. "message"
  6586. ],
  6587. "properties": {
  6588. "message": {
  6589. "type": "string"
  6590. }
  6591. }
  6592. }
  6593. }
  6594. }
  6595. }
  6596. }
  6597. }
  6598. }
  6599. },
  6600. "500": {
  6601. "description": "",
  6602. "content": {
  6603. "application/json": {
  6604. "schema": {
  6605. "type": "object",
  6606. "required": [
  6607. "ocs"
  6608. ],
  6609. "properties": {
  6610. "ocs": {
  6611. "type": "object",
  6612. "required": [
  6613. "meta",
  6614. "data"
  6615. ],
  6616. "properties": {
  6617. "meta": {
  6618. "$ref": "#/components/schemas/OCSMeta"
  6619. },
  6620. "data": {
  6621. "type": "object",
  6622. "required": [
  6623. "message"
  6624. ],
  6625. "properties": {
  6626. "message": {
  6627. "type": "string"
  6628. }
  6629. }
  6630. }
  6631. }
  6632. }
  6633. }
  6634. }
  6635. }
  6636. }
  6637. }
  6638. }
  6639. }
  6640. },
  6641. "/ocs/v2.php/text2image/tasks/app/{appId}": {
  6642. "get": {
  6643. "operationId": "text_to_image_api-list-tasks-by-app",
  6644. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  6645. "tags": [
  6646. "text_to_image_api"
  6647. ],
  6648. "security": [
  6649. {
  6650. "bearer_auth": []
  6651. },
  6652. {
  6653. "basic_auth": []
  6654. }
  6655. ],
  6656. "requestBody": {
  6657. "required": false,
  6658. "content": {
  6659. "application/json": {
  6660. "schema": {
  6661. "type": "object",
  6662. "properties": {
  6663. "identifier": {
  6664. "type": "string",
  6665. "nullable": true,
  6666. "description": "An arbitrary identifier for the task"
  6667. }
  6668. }
  6669. }
  6670. }
  6671. }
  6672. },
  6673. "parameters": [
  6674. {
  6675. "name": "appId",
  6676. "in": "path",
  6677. "description": "ID of the app",
  6678. "required": true,
  6679. "schema": {
  6680. "type": "string"
  6681. }
  6682. },
  6683. {
  6684. "name": "OCS-APIRequest",
  6685. "in": "header",
  6686. "description": "Required to be true for the API request to pass",
  6687. "required": true,
  6688. "schema": {
  6689. "type": "boolean",
  6690. "default": true
  6691. }
  6692. }
  6693. ],
  6694. "responses": {
  6695. "200": {
  6696. "description": "Task list returned",
  6697. "content": {
  6698. "application/json": {
  6699. "schema": {
  6700. "type": "object",
  6701. "required": [
  6702. "ocs"
  6703. ],
  6704. "properties": {
  6705. "ocs": {
  6706. "type": "object",
  6707. "required": [
  6708. "meta",
  6709. "data"
  6710. ],
  6711. "properties": {
  6712. "meta": {
  6713. "$ref": "#/components/schemas/OCSMeta"
  6714. },
  6715. "data": {
  6716. "type": "object",
  6717. "required": [
  6718. "tasks"
  6719. ],
  6720. "properties": {
  6721. "tasks": {
  6722. "type": "array",
  6723. "items": {
  6724. "$ref": "#/components/schemas/TextToImageTask"
  6725. }
  6726. }
  6727. }
  6728. }
  6729. }
  6730. }
  6731. }
  6732. }
  6733. }
  6734. }
  6735. },
  6736. "500": {
  6737. "description": "",
  6738. "content": {
  6739. "application/json": {
  6740. "schema": {
  6741. "type": "object",
  6742. "required": [
  6743. "ocs"
  6744. ],
  6745. "properties": {
  6746. "ocs": {
  6747. "type": "object",
  6748. "required": [
  6749. "meta",
  6750. "data"
  6751. ],
  6752. "properties": {
  6753. "meta": {
  6754. "$ref": "#/components/schemas/OCSMeta"
  6755. },
  6756. "data": {
  6757. "type": "object",
  6758. "required": [
  6759. "message"
  6760. ],
  6761. "properties": {
  6762. "message": {
  6763. "type": "string"
  6764. }
  6765. }
  6766. }
  6767. }
  6768. }
  6769. }
  6770. }
  6771. }
  6772. }
  6773. }
  6774. }
  6775. }
  6776. },
  6777. "/ocs/v2.php/translation/languages": {
  6778. "get": {
  6779. "operationId": "translation_api-languages",
  6780. "summary": "Get the list of supported languages",
  6781. "tags": [
  6782. "translation_api"
  6783. ],
  6784. "security": [
  6785. {},
  6786. {
  6787. "bearer_auth": []
  6788. },
  6789. {
  6790. "basic_auth": []
  6791. }
  6792. ],
  6793. "parameters": [
  6794. {
  6795. "name": "OCS-APIRequest",
  6796. "in": "header",
  6797. "description": "Required to be true for the API request to pass",
  6798. "required": true,
  6799. "schema": {
  6800. "type": "boolean",
  6801. "default": true
  6802. }
  6803. }
  6804. ],
  6805. "responses": {
  6806. "200": {
  6807. "description": "Supported languages returned",
  6808. "content": {
  6809. "application/json": {
  6810. "schema": {
  6811. "type": "object",
  6812. "required": [
  6813. "ocs"
  6814. ],
  6815. "properties": {
  6816. "ocs": {
  6817. "type": "object",
  6818. "required": [
  6819. "meta",
  6820. "data"
  6821. ],
  6822. "properties": {
  6823. "meta": {
  6824. "$ref": "#/components/schemas/OCSMeta"
  6825. },
  6826. "data": {
  6827. "type": "object",
  6828. "required": [
  6829. "languages",
  6830. "languageDetection"
  6831. ],
  6832. "properties": {
  6833. "languages": {
  6834. "type": "array",
  6835. "items": {
  6836. "type": "object",
  6837. "required": [
  6838. "from",
  6839. "fromLabel",
  6840. "to",
  6841. "toLabel"
  6842. ],
  6843. "properties": {
  6844. "from": {
  6845. "type": "string"
  6846. },
  6847. "fromLabel": {
  6848. "type": "string"
  6849. },
  6850. "to": {
  6851. "type": "string"
  6852. },
  6853. "toLabel": {
  6854. "type": "string"
  6855. }
  6856. }
  6857. }
  6858. },
  6859. "languageDetection": {
  6860. "type": "boolean"
  6861. }
  6862. }
  6863. }
  6864. }
  6865. }
  6866. }
  6867. }
  6868. }
  6869. }
  6870. }
  6871. }
  6872. }
  6873. },
  6874. "/ocs/v2.php/translation/translate": {
  6875. "post": {
  6876. "operationId": "translation_api-translate",
  6877. "summary": "Translate a text",
  6878. "tags": [
  6879. "translation_api"
  6880. ],
  6881. "security": [
  6882. {},
  6883. {
  6884. "bearer_auth": []
  6885. },
  6886. {
  6887. "basic_auth": []
  6888. }
  6889. ],
  6890. "requestBody": {
  6891. "required": true,
  6892. "content": {
  6893. "application/json": {
  6894. "schema": {
  6895. "type": "object",
  6896. "required": [
  6897. "text",
  6898. "toLanguage"
  6899. ],
  6900. "properties": {
  6901. "text": {
  6902. "type": "string",
  6903. "description": "Text to be translated"
  6904. },
  6905. "fromLanguage": {
  6906. "type": "string",
  6907. "nullable": true,
  6908. "description": "Language to translate from"
  6909. },
  6910. "toLanguage": {
  6911. "type": "string",
  6912. "description": "Language to translate to"
  6913. }
  6914. }
  6915. }
  6916. }
  6917. }
  6918. },
  6919. "parameters": [
  6920. {
  6921. "name": "OCS-APIRequest",
  6922. "in": "header",
  6923. "description": "Required to be true for the API request to pass",
  6924. "required": true,
  6925. "schema": {
  6926. "type": "boolean",
  6927. "default": true
  6928. }
  6929. }
  6930. ],
  6931. "responses": {
  6932. "200": {
  6933. "description": "Translated text returned",
  6934. "content": {
  6935. "application/json": {
  6936. "schema": {
  6937. "type": "object",
  6938. "required": [
  6939. "ocs"
  6940. ],
  6941. "properties": {
  6942. "ocs": {
  6943. "type": "object",
  6944. "required": [
  6945. "meta",
  6946. "data"
  6947. ],
  6948. "properties": {
  6949. "meta": {
  6950. "$ref": "#/components/schemas/OCSMeta"
  6951. },
  6952. "data": {
  6953. "type": "object",
  6954. "required": [
  6955. "text",
  6956. "from"
  6957. ],
  6958. "properties": {
  6959. "text": {
  6960. "type": "string"
  6961. },
  6962. "from": {
  6963. "type": "string",
  6964. "nullable": true
  6965. }
  6966. }
  6967. }
  6968. }
  6969. }
  6970. }
  6971. }
  6972. }
  6973. }
  6974. },
  6975. "400": {
  6976. "description": "Language not detected or unable to translate",
  6977. "content": {
  6978. "application/json": {
  6979. "schema": {
  6980. "type": "object",
  6981. "required": [
  6982. "ocs"
  6983. ],
  6984. "properties": {
  6985. "ocs": {
  6986. "type": "object",
  6987. "required": [
  6988. "meta",
  6989. "data"
  6990. ],
  6991. "properties": {
  6992. "meta": {
  6993. "$ref": "#/components/schemas/OCSMeta"
  6994. },
  6995. "data": {
  6996. "type": "object",
  6997. "required": [
  6998. "message"
  6999. ],
  7000. "properties": {
  7001. "message": {
  7002. "type": "string"
  7003. },
  7004. "from": {
  7005. "type": "string",
  7006. "nullable": true
  7007. }
  7008. }
  7009. }
  7010. }
  7011. }
  7012. }
  7013. }
  7014. }
  7015. }
  7016. },
  7017. "412": {
  7018. "description": "Translating is not possible",
  7019. "content": {
  7020. "application/json": {
  7021. "schema": {
  7022. "type": "object",
  7023. "required": [
  7024. "ocs"
  7025. ],
  7026. "properties": {
  7027. "ocs": {
  7028. "type": "object",
  7029. "required": [
  7030. "meta",
  7031. "data"
  7032. ],
  7033. "properties": {
  7034. "meta": {
  7035. "$ref": "#/components/schemas/OCSMeta"
  7036. },
  7037. "data": {
  7038. "type": "object",
  7039. "required": [
  7040. "message"
  7041. ],
  7042. "properties": {
  7043. "message": {
  7044. "type": "string"
  7045. },
  7046. "from": {
  7047. "type": "string",
  7048. "nullable": true
  7049. }
  7050. }
  7051. }
  7052. }
  7053. }
  7054. }
  7055. }
  7056. }
  7057. }
  7058. },
  7059. "500": {
  7060. "description": "",
  7061. "content": {
  7062. "application/json": {
  7063. "schema": {
  7064. "type": "object",
  7065. "required": [
  7066. "ocs"
  7067. ],
  7068. "properties": {
  7069. "ocs": {
  7070. "type": "object",
  7071. "required": [
  7072. "meta",
  7073. "data"
  7074. ],
  7075. "properties": {
  7076. "meta": {
  7077. "$ref": "#/components/schemas/OCSMeta"
  7078. },
  7079. "data": {
  7080. "type": "object",
  7081. "required": [
  7082. "message"
  7083. ],
  7084. "properties": {
  7085. "message": {
  7086. "type": "string"
  7087. },
  7088. "from": {
  7089. "type": "string",
  7090. "nullable": true
  7091. }
  7092. }
  7093. }
  7094. }
  7095. }
  7096. }
  7097. }
  7098. }
  7099. }
  7100. }
  7101. }
  7102. }
  7103. },
  7104. "/ocs/v2.php/search/providers": {
  7105. "get": {
  7106. "operationId": "unified_search-get-providers",
  7107. "summary": "Get the providers for unified search",
  7108. "tags": [
  7109. "unified_search"
  7110. ],
  7111. "security": [
  7112. {
  7113. "bearer_auth": []
  7114. },
  7115. {
  7116. "basic_auth": []
  7117. }
  7118. ],
  7119. "requestBody": {
  7120. "required": false,
  7121. "content": {
  7122. "application/json": {
  7123. "schema": {
  7124. "type": "object",
  7125. "properties": {
  7126. "from": {
  7127. "type": "string",
  7128. "default": "",
  7129. "description": "the url the user is currently at"
  7130. }
  7131. }
  7132. }
  7133. }
  7134. }
  7135. },
  7136. "parameters": [
  7137. {
  7138. "name": "OCS-APIRequest",
  7139. "in": "header",
  7140. "description": "Required to be true for the API request to pass",
  7141. "required": true,
  7142. "schema": {
  7143. "type": "boolean",
  7144. "default": true
  7145. }
  7146. }
  7147. ],
  7148. "responses": {
  7149. "200": {
  7150. "description": "Providers returned",
  7151. "content": {
  7152. "application/json": {
  7153. "schema": {
  7154. "type": "object",
  7155. "required": [
  7156. "ocs"
  7157. ],
  7158. "properties": {
  7159. "ocs": {
  7160. "type": "object",
  7161. "required": [
  7162. "meta",
  7163. "data"
  7164. ],
  7165. "properties": {
  7166. "meta": {
  7167. "$ref": "#/components/schemas/OCSMeta"
  7168. },
  7169. "data": {
  7170. "type": "array",
  7171. "items": {
  7172. "$ref": "#/components/schemas/UnifiedSearchProvider"
  7173. }
  7174. }
  7175. }
  7176. }
  7177. }
  7178. }
  7179. }
  7180. }
  7181. }
  7182. }
  7183. }
  7184. },
  7185. "/ocs/v2.php/search/providers/{providerId}/search": {
  7186. "get": {
  7187. "operationId": "unified_search-search",
  7188. "summary": "Launch a search for a specific search provider.",
  7189. "description": "Additional filters are available for each provider. Send a request to /providers endpoint to list providers with their available filters.",
  7190. "tags": [
  7191. "unified_search"
  7192. ],
  7193. "security": [
  7194. {
  7195. "bearer_auth": []
  7196. },
  7197. {
  7198. "basic_auth": []
  7199. }
  7200. ],
  7201. "requestBody": {
  7202. "required": false,
  7203. "content": {
  7204. "application/json": {
  7205. "schema": {
  7206. "type": "object",
  7207. "properties": {
  7208. "term": {
  7209. "type": "string",
  7210. "default": "",
  7211. "description": "Term to search"
  7212. },
  7213. "sortOrder": {
  7214. "type": "integer",
  7215. "format": "int64",
  7216. "nullable": true,
  7217. "description": "Order of entries"
  7218. },
  7219. "limit": {
  7220. "type": "integer",
  7221. "format": "int64",
  7222. "nullable": true,
  7223. "description": "Maximum amount of entries, limited to 25"
  7224. },
  7225. "cursor": {
  7226. "nullable": true,
  7227. "description": "Offset for searching",
  7228. "oneOf": [
  7229. {
  7230. "type": "integer",
  7231. "format": "int64"
  7232. },
  7233. {
  7234. "type": "string"
  7235. }
  7236. ]
  7237. },
  7238. "from": {
  7239. "type": "string",
  7240. "default": "",
  7241. "description": "The current user URL"
  7242. }
  7243. }
  7244. }
  7245. }
  7246. }
  7247. },
  7248. "parameters": [
  7249. {
  7250. "name": "providerId",
  7251. "in": "path",
  7252. "description": "ID of the provider",
  7253. "required": true,
  7254. "schema": {
  7255. "type": "string"
  7256. }
  7257. },
  7258. {
  7259. "name": "OCS-APIRequest",
  7260. "in": "header",
  7261. "description": "Required to be true for the API request to pass",
  7262. "required": true,
  7263. "schema": {
  7264. "type": "boolean",
  7265. "default": true
  7266. }
  7267. }
  7268. ],
  7269. "responses": {
  7270. "200": {
  7271. "description": "Search entries returned",
  7272. "content": {
  7273. "application/json": {
  7274. "schema": {
  7275. "type": "object",
  7276. "required": [
  7277. "ocs"
  7278. ],
  7279. "properties": {
  7280. "ocs": {
  7281. "type": "object",
  7282. "required": [
  7283. "meta",
  7284. "data"
  7285. ],
  7286. "properties": {
  7287. "meta": {
  7288. "$ref": "#/components/schemas/OCSMeta"
  7289. },
  7290. "data": {
  7291. "$ref": "#/components/schemas/UnifiedSearchResult"
  7292. }
  7293. }
  7294. }
  7295. }
  7296. }
  7297. }
  7298. }
  7299. },
  7300. "400": {
  7301. "description": "Searching is not possible",
  7302. "content": {
  7303. "application/json": {
  7304. "schema": {
  7305. "type": "object",
  7306. "required": [
  7307. "ocs"
  7308. ],
  7309. "properties": {
  7310. "ocs": {
  7311. "type": "object",
  7312. "required": [
  7313. "meta",
  7314. "data"
  7315. ],
  7316. "properties": {
  7317. "meta": {
  7318. "$ref": "#/components/schemas/OCSMeta"
  7319. },
  7320. "data": {
  7321. "type": "string"
  7322. }
  7323. }
  7324. }
  7325. }
  7326. }
  7327. }
  7328. }
  7329. }
  7330. }
  7331. }
  7332. },
  7333. "/ocs/v2.php/core/whatsnew": {
  7334. "get": {
  7335. "operationId": "whats_new-get",
  7336. "summary": "Get the changes",
  7337. "tags": [
  7338. "whats_new"
  7339. ],
  7340. "security": [
  7341. {
  7342. "bearer_auth": []
  7343. },
  7344. {
  7345. "basic_auth": []
  7346. }
  7347. ],
  7348. "parameters": [
  7349. {
  7350. "name": "OCS-APIRequest",
  7351. "in": "header",
  7352. "description": "Required to be true for the API request to pass",
  7353. "required": true,
  7354. "schema": {
  7355. "type": "boolean",
  7356. "default": true
  7357. }
  7358. }
  7359. ],
  7360. "responses": {
  7361. "200": {
  7362. "description": "Changes returned",
  7363. "content": {
  7364. "application/json": {
  7365. "schema": {
  7366. "type": "object",
  7367. "required": [
  7368. "ocs"
  7369. ],
  7370. "properties": {
  7371. "ocs": {
  7372. "type": "object",
  7373. "required": [
  7374. "meta",
  7375. "data"
  7376. ],
  7377. "properties": {
  7378. "meta": {
  7379. "$ref": "#/components/schemas/OCSMeta"
  7380. },
  7381. "data": {
  7382. "type": "object",
  7383. "required": [
  7384. "changelogURL",
  7385. "product",
  7386. "version"
  7387. ],
  7388. "properties": {
  7389. "changelogURL": {
  7390. "type": "string"
  7391. },
  7392. "product": {
  7393. "type": "string"
  7394. },
  7395. "version": {
  7396. "type": "string"
  7397. },
  7398. "whatsNew": {
  7399. "type": "object",
  7400. "required": [
  7401. "regular",
  7402. "admin"
  7403. ],
  7404. "properties": {
  7405. "regular": {
  7406. "type": "array",
  7407. "items": {
  7408. "type": "string"
  7409. }
  7410. },
  7411. "admin": {
  7412. "type": "array",
  7413. "items": {
  7414. "type": "string"
  7415. }
  7416. }
  7417. }
  7418. }
  7419. }
  7420. }
  7421. }
  7422. }
  7423. }
  7424. }
  7425. }
  7426. }
  7427. },
  7428. "204": {
  7429. "description": "No changes"
  7430. }
  7431. }
  7432. },
  7433. "post": {
  7434. "operationId": "whats_new-dismiss",
  7435. "summary": "Dismiss the changes",
  7436. "tags": [
  7437. "whats_new"
  7438. ],
  7439. "security": [
  7440. {
  7441. "bearer_auth": []
  7442. },
  7443. {
  7444. "basic_auth": []
  7445. }
  7446. ],
  7447. "requestBody": {
  7448. "required": true,
  7449. "content": {
  7450. "application/json": {
  7451. "schema": {
  7452. "type": "object",
  7453. "required": [
  7454. "version"
  7455. ],
  7456. "properties": {
  7457. "version": {
  7458. "type": "string",
  7459. "description": "Version to dismiss the changes for"
  7460. }
  7461. }
  7462. }
  7463. }
  7464. }
  7465. },
  7466. "parameters": [
  7467. {
  7468. "name": "OCS-APIRequest",
  7469. "in": "header",
  7470. "description": "Required to be true for the API request to pass",
  7471. "required": true,
  7472. "schema": {
  7473. "type": "boolean",
  7474. "default": true
  7475. }
  7476. }
  7477. ],
  7478. "responses": {
  7479. "200": {
  7480. "description": "Changes dismissed",
  7481. "content": {
  7482. "application/json": {
  7483. "schema": {
  7484. "type": "object",
  7485. "required": [
  7486. "ocs"
  7487. ],
  7488. "properties": {
  7489. "ocs": {
  7490. "type": "object",
  7491. "required": [
  7492. "meta",
  7493. "data"
  7494. ],
  7495. "properties": {
  7496. "meta": {
  7497. "$ref": "#/components/schemas/OCSMeta"
  7498. },
  7499. "data": {}
  7500. }
  7501. }
  7502. }
  7503. }
  7504. }
  7505. }
  7506. },
  7507. "500": {
  7508. "description": "",
  7509. "content": {
  7510. "text/plain": {
  7511. "schema": {
  7512. "type": "string"
  7513. }
  7514. }
  7515. }
  7516. }
  7517. }
  7518. }
  7519. },
  7520. "/index.php/avatar/{userId}/{size}/dark": {
  7521. "get": {
  7522. "operationId": "avatar-get-avatar-dark",
  7523. "summary": "Get the dark avatar",
  7524. "tags": [
  7525. "avatar"
  7526. ],
  7527. "security": [
  7528. {},
  7529. {
  7530. "bearer_auth": []
  7531. },
  7532. {
  7533. "basic_auth": []
  7534. }
  7535. ],
  7536. "requestBody": {
  7537. "required": false,
  7538. "content": {
  7539. "application/json": {
  7540. "schema": {
  7541. "type": "object",
  7542. "properties": {
  7543. "guestFallback": {
  7544. "type": "boolean",
  7545. "default": false,
  7546. "description": "Fallback to guest avatar if not found"
  7547. }
  7548. }
  7549. }
  7550. }
  7551. }
  7552. },
  7553. "parameters": [
  7554. {
  7555. "name": "userId",
  7556. "in": "path",
  7557. "description": "ID of the user",
  7558. "required": true,
  7559. "schema": {
  7560. "type": "string"
  7561. }
  7562. },
  7563. {
  7564. "name": "size",
  7565. "in": "path",
  7566. "description": "Size of the avatar",
  7567. "required": true,
  7568. "schema": {
  7569. "type": "integer",
  7570. "format": "int64",
  7571. "enum": [
  7572. 64,
  7573. 512
  7574. ]
  7575. }
  7576. }
  7577. ],
  7578. "responses": {
  7579. "200": {
  7580. "description": "Avatar returned",
  7581. "headers": {
  7582. "X-NC-IsCustomAvatar": {
  7583. "schema": {
  7584. "type": "integer",
  7585. "format": "int64"
  7586. }
  7587. }
  7588. },
  7589. "content": {
  7590. "*/*": {
  7591. "schema": {
  7592. "type": "string",
  7593. "format": "binary"
  7594. }
  7595. }
  7596. }
  7597. },
  7598. "201": {
  7599. "description": "Avatar returned",
  7600. "headers": {
  7601. "X-NC-IsCustomAvatar": {
  7602. "schema": {
  7603. "type": "integer",
  7604. "format": "int64"
  7605. }
  7606. }
  7607. },
  7608. "content": {
  7609. "*/*": {
  7610. "schema": {
  7611. "type": "string",
  7612. "format": "binary"
  7613. }
  7614. }
  7615. }
  7616. },
  7617. "404": {
  7618. "description": "Avatar not found",
  7619. "content": {
  7620. "application/json": {
  7621. "schema": {}
  7622. }
  7623. }
  7624. },
  7625. "500": {
  7626. "description": ""
  7627. }
  7628. }
  7629. }
  7630. },
  7631. "/index.php/avatar/{userId}/{size}": {
  7632. "get": {
  7633. "operationId": "avatar-get-avatar",
  7634. "summary": "Get the avatar",
  7635. "tags": [
  7636. "avatar"
  7637. ],
  7638. "security": [
  7639. {},
  7640. {
  7641. "bearer_auth": []
  7642. },
  7643. {
  7644. "basic_auth": []
  7645. }
  7646. ],
  7647. "requestBody": {
  7648. "required": false,
  7649. "content": {
  7650. "application/json": {
  7651. "schema": {
  7652. "type": "object",
  7653. "properties": {
  7654. "guestFallback": {
  7655. "type": "boolean",
  7656. "default": false,
  7657. "description": "Fallback to guest avatar if not found"
  7658. }
  7659. }
  7660. }
  7661. }
  7662. }
  7663. },
  7664. "parameters": [
  7665. {
  7666. "name": "userId",
  7667. "in": "path",
  7668. "description": "ID of the user",
  7669. "required": true,
  7670. "schema": {
  7671. "type": "string"
  7672. }
  7673. },
  7674. {
  7675. "name": "size",
  7676. "in": "path",
  7677. "description": "Size of the avatar",
  7678. "required": true,
  7679. "schema": {
  7680. "type": "integer",
  7681. "format": "int64",
  7682. "enum": [
  7683. 64,
  7684. 512
  7685. ]
  7686. }
  7687. }
  7688. ],
  7689. "responses": {
  7690. "200": {
  7691. "description": "Avatar returned",
  7692. "headers": {
  7693. "X-NC-IsCustomAvatar": {
  7694. "schema": {
  7695. "type": "integer",
  7696. "format": "int64"
  7697. }
  7698. }
  7699. },
  7700. "content": {
  7701. "*/*": {
  7702. "schema": {
  7703. "type": "string",
  7704. "format": "binary"
  7705. }
  7706. }
  7707. }
  7708. },
  7709. "201": {
  7710. "description": "Avatar returned",
  7711. "headers": {
  7712. "X-NC-IsCustomAvatar": {
  7713. "schema": {
  7714. "type": "integer",
  7715. "format": "int64"
  7716. }
  7717. }
  7718. },
  7719. "content": {
  7720. "*/*": {
  7721. "schema": {
  7722. "type": "string",
  7723. "format": "binary"
  7724. }
  7725. }
  7726. }
  7727. },
  7728. "404": {
  7729. "description": "Avatar not found",
  7730. "content": {
  7731. "application/json": {
  7732. "schema": {}
  7733. }
  7734. }
  7735. },
  7736. "500": {
  7737. "description": ""
  7738. }
  7739. }
  7740. }
  7741. },
  7742. "/index.php/csrftoken": {
  7743. "get": {
  7744. "operationId": "csrf_token-index",
  7745. "summary": "Returns a new CSRF token.",
  7746. "tags": [
  7747. "csrf_token"
  7748. ],
  7749. "security": [
  7750. {},
  7751. {
  7752. "bearer_auth": []
  7753. },
  7754. {
  7755. "basic_auth": []
  7756. }
  7757. ],
  7758. "responses": {
  7759. "200": {
  7760. "description": "CSRF token returned",
  7761. "content": {
  7762. "application/json": {
  7763. "schema": {
  7764. "type": "object",
  7765. "required": [
  7766. "token"
  7767. ],
  7768. "properties": {
  7769. "token": {
  7770. "type": "string"
  7771. }
  7772. }
  7773. }
  7774. }
  7775. }
  7776. },
  7777. "403": {
  7778. "description": "Strict cookie check failed",
  7779. "content": {
  7780. "application/json": {
  7781. "schema": {}
  7782. }
  7783. }
  7784. }
  7785. }
  7786. }
  7787. },
  7788. "/index.php/login/v2/poll": {
  7789. "post": {
  7790. "operationId": "client_flow_login_v2-poll",
  7791. "summary": "Poll the login flow credentials",
  7792. "tags": [
  7793. "client_flow_login_v2"
  7794. ],
  7795. "security": [
  7796. {},
  7797. {
  7798. "bearer_auth": []
  7799. },
  7800. {
  7801. "basic_auth": []
  7802. }
  7803. ],
  7804. "requestBody": {
  7805. "required": true,
  7806. "content": {
  7807. "application/json": {
  7808. "schema": {
  7809. "type": "object",
  7810. "required": [
  7811. "token"
  7812. ],
  7813. "properties": {
  7814. "token": {
  7815. "type": "string",
  7816. "description": "Token of the flow"
  7817. }
  7818. }
  7819. }
  7820. }
  7821. }
  7822. },
  7823. "responses": {
  7824. "200": {
  7825. "description": "Login flow credentials returned",
  7826. "content": {
  7827. "application/json": {
  7828. "schema": {
  7829. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  7830. }
  7831. }
  7832. }
  7833. },
  7834. "404": {
  7835. "description": "Login flow not found or completed",
  7836. "content": {
  7837. "application/json": {
  7838. "schema": {}
  7839. }
  7840. }
  7841. }
  7842. }
  7843. }
  7844. },
  7845. "/index.php/login/v2": {
  7846. "post": {
  7847. "operationId": "client_flow_login_v2-init",
  7848. "summary": "Init a login flow",
  7849. "tags": [
  7850. "client_flow_login_v2"
  7851. ],
  7852. "security": [
  7853. {},
  7854. {
  7855. "bearer_auth": []
  7856. },
  7857. {
  7858. "basic_auth": []
  7859. }
  7860. ],
  7861. "responses": {
  7862. "200": {
  7863. "description": "Login flow init returned",
  7864. "content": {
  7865. "application/json": {
  7866. "schema": {
  7867. "$ref": "#/components/schemas/LoginFlowV2"
  7868. }
  7869. }
  7870. }
  7871. }
  7872. }
  7873. }
  7874. },
  7875. "/index.php/avatar/guest/{guestName}/{size}": {
  7876. "get": {
  7877. "operationId": "guest_avatar-get-avatar",
  7878. "summary": "Returns a guest avatar image response",
  7879. "tags": [
  7880. "guest_avatar"
  7881. ],
  7882. "security": [
  7883. {},
  7884. {
  7885. "bearer_auth": []
  7886. },
  7887. {
  7888. "basic_auth": []
  7889. }
  7890. ],
  7891. "requestBody": {
  7892. "required": false,
  7893. "content": {
  7894. "application/json": {
  7895. "schema": {
  7896. "type": "object",
  7897. "properties": {
  7898. "darkTheme": {
  7899. "type": "boolean",
  7900. "nullable": true,
  7901. "default": false,
  7902. "description": "Return dark avatar"
  7903. }
  7904. }
  7905. }
  7906. }
  7907. }
  7908. },
  7909. "parameters": [
  7910. {
  7911. "name": "guestName",
  7912. "in": "path",
  7913. "description": "The guest name, e.g. \"Albert\"",
  7914. "required": true,
  7915. "schema": {
  7916. "type": "string"
  7917. }
  7918. },
  7919. {
  7920. "name": "size",
  7921. "in": "path",
  7922. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7923. "required": true,
  7924. "schema": {
  7925. "type": "integer",
  7926. "format": "int64",
  7927. "enum": [
  7928. 64,
  7929. 512
  7930. ]
  7931. }
  7932. }
  7933. ],
  7934. "responses": {
  7935. "200": {
  7936. "description": "Custom avatar returned",
  7937. "headers": {
  7938. "X-NC-IsCustomAvatar": {
  7939. "schema": {
  7940. "type": "integer",
  7941. "format": "int64"
  7942. }
  7943. }
  7944. },
  7945. "content": {
  7946. "*/*": {
  7947. "schema": {
  7948. "type": "string",
  7949. "format": "binary"
  7950. }
  7951. }
  7952. }
  7953. },
  7954. "201": {
  7955. "description": "Avatar returned",
  7956. "headers": {
  7957. "X-NC-IsCustomAvatar": {
  7958. "schema": {
  7959. "type": "integer",
  7960. "format": "int64"
  7961. }
  7962. }
  7963. },
  7964. "content": {
  7965. "*/*": {
  7966. "schema": {
  7967. "type": "string",
  7968. "format": "binary"
  7969. }
  7970. }
  7971. }
  7972. },
  7973. "500": {
  7974. "description": ""
  7975. }
  7976. }
  7977. }
  7978. },
  7979. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  7980. "get": {
  7981. "operationId": "guest_avatar-get-avatar-dark",
  7982. "summary": "Returns a dark guest avatar image response",
  7983. "tags": [
  7984. "guest_avatar"
  7985. ],
  7986. "security": [
  7987. {},
  7988. {
  7989. "bearer_auth": []
  7990. },
  7991. {
  7992. "basic_auth": []
  7993. }
  7994. ],
  7995. "parameters": [
  7996. {
  7997. "name": "guestName",
  7998. "in": "path",
  7999. "description": "The guest name, e.g. \"Albert\"",
  8000. "required": true,
  8001. "schema": {
  8002. "type": "string"
  8003. }
  8004. },
  8005. {
  8006. "name": "size",
  8007. "in": "path",
  8008. "description": "The desired avatar size, e.g. 64 for 64x64px",
  8009. "required": true,
  8010. "schema": {
  8011. "type": "integer",
  8012. "format": "int64",
  8013. "enum": [
  8014. 64,
  8015. 512
  8016. ]
  8017. }
  8018. }
  8019. ],
  8020. "responses": {
  8021. "200": {
  8022. "description": "Custom avatar returned",
  8023. "headers": {
  8024. "X-NC-IsCustomAvatar": {
  8025. "schema": {
  8026. "type": "integer",
  8027. "format": "int64"
  8028. }
  8029. }
  8030. },
  8031. "content": {
  8032. "*/*": {
  8033. "schema": {
  8034. "type": "string",
  8035. "format": "binary"
  8036. }
  8037. }
  8038. }
  8039. },
  8040. "201": {
  8041. "description": "Avatar returned",
  8042. "headers": {
  8043. "X-NC-IsCustomAvatar": {
  8044. "schema": {
  8045. "type": "integer",
  8046. "format": "int64"
  8047. }
  8048. }
  8049. },
  8050. "content": {
  8051. "*/*": {
  8052. "schema": {
  8053. "type": "string",
  8054. "format": "binary"
  8055. }
  8056. }
  8057. }
  8058. },
  8059. "500": {
  8060. "description": ""
  8061. }
  8062. }
  8063. }
  8064. },
  8065. "/index.php/login/confirm": {
  8066. "post": {
  8067. "operationId": "login-confirm-password",
  8068. "summary": "Confirm the user password",
  8069. "tags": [
  8070. "login"
  8071. ],
  8072. "security": [
  8073. {
  8074. "bearer_auth": []
  8075. },
  8076. {
  8077. "basic_auth": []
  8078. }
  8079. ],
  8080. "requestBody": {
  8081. "required": true,
  8082. "content": {
  8083. "application/json": {
  8084. "schema": {
  8085. "type": "object",
  8086. "required": [
  8087. "password"
  8088. ],
  8089. "properties": {
  8090. "password": {
  8091. "type": "string",
  8092. "description": "The password of the user"
  8093. }
  8094. }
  8095. }
  8096. }
  8097. }
  8098. },
  8099. "responses": {
  8100. "200": {
  8101. "description": "Password confirmation succeeded",
  8102. "content": {
  8103. "application/json": {
  8104. "schema": {
  8105. "type": "object",
  8106. "required": [
  8107. "lastLogin"
  8108. ],
  8109. "properties": {
  8110. "lastLogin": {
  8111. "type": "integer",
  8112. "format": "int64"
  8113. }
  8114. }
  8115. }
  8116. }
  8117. }
  8118. },
  8119. "403": {
  8120. "description": "Password confirmation failed",
  8121. "content": {
  8122. "application/json": {
  8123. "schema": {}
  8124. }
  8125. }
  8126. }
  8127. }
  8128. }
  8129. },
  8130. "/index.php/ocm-provider": {
  8131. "get": {
  8132. "operationId": "ocm-discovery",
  8133. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  8134. "tags": [
  8135. "ocm"
  8136. ],
  8137. "security": [
  8138. {},
  8139. {
  8140. "bearer_auth": []
  8141. },
  8142. {
  8143. "basic_auth": []
  8144. }
  8145. ],
  8146. "responses": {
  8147. "200": {
  8148. "description": "OCM Provider details returned",
  8149. "headers": {
  8150. "X-NEXTCLOUD-OCM-PROVIDERS": {
  8151. "schema": {
  8152. "type": "boolean",
  8153. "enum": [
  8154. true
  8155. ]
  8156. }
  8157. }
  8158. },
  8159. "content": {
  8160. "application/json": {
  8161. "schema": {
  8162. "type": "object",
  8163. "required": [
  8164. "enabled",
  8165. "apiVersion",
  8166. "endPoint",
  8167. "resourceTypes"
  8168. ],
  8169. "properties": {
  8170. "enabled": {
  8171. "type": "boolean"
  8172. },
  8173. "apiVersion": {
  8174. "type": "string"
  8175. },
  8176. "endPoint": {
  8177. "type": "string"
  8178. },
  8179. "resourceTypes": {
  8180. "type": "array",
  8181. "items": {
  8182. "type": "object",
  8183. "required": [
  8184. "name",
  8185. "shareTypes",
  8186. "protocols"
  8187. ],
  8188. "properties": {
  8189. "name": {
  8190. "type": "string"
  8191. },
  8192. "shareTypes": {
  8193. "type": "array",
  8194. "items": {
  8195. "type": "string"
  8196. }
  8197. },
  8198. "protocols": {
  8199. "type": "object",
  8200. "required": [
  8201. "webdav"
  8202. ],
  8203. "properties": {
  8204. "webdav": {
  8205. "type": "string"
  8206. }
  8207. }
  8208. }
  8209. }
  8210. }
  8211. }
  8212. }
  8213. }
  8214. }
  8215. }
  8216. },
  8217. "500": {
  8218. "description": "OCM not supported",
  8219. "content": {
  8220. "application/json": {
  8221. "schema": {
  8222. "type": "object",
  8223. "required": [
  8224. "message"
  8225. ],
  8226. "properties": {
  8227. "message": {
  8228. "type": "string"
  8229. }
  8230. }
  8231. }
  8232. }
  8233. }
  8234. }
  8235. }
  8236. }
  8237. },
  8238. "/index.php/core/preview.png": {
  8239. "get": {
  8240. "operationId": "preview-get-preview",
  8241. "summary": "Get a preview by file path",
  8242. "tags": [
  8243. "preview"
  8244. ],
  8245. "security": [
  8246. {
  8247. "bearer_auth": []
  8248. },
  8249. {
  8250. "basic_auth": []
  8251. }
  8252. ],
  8253. "requestBody": {
  8254. "required": false,
  8255. "content": {
  8256. "application/json": {
  8257. "schema": {
  8258. "type": "object",
  8259. "properties": {
  8260. "file": {
  8261. "type": "string",
  8262. "default": "",
  8263. "description": "Path of the file"
  8264. },
  8265. "x": {
  8266. "type": "integer",
  8267. "format": "int64",
  8268. "default": 32,
  8269. "description": "Width of the preview. A width of -1 will use the original image width."
  8270. },
  8271. "y": {
  8272. "type": "integer",
  8273. "format": "int64",
  8274. "default": 32,
  8275. "description": "Height of the preview. A height of -1 will use the original image height."
  8276. },
  8277. "a": {
  8278. "type": "boolean",
  8279. "default": false,
  8280. "description": "Preserve the aspect ratio"
  8281. },
  8282. "forceIcon": {
  8283. "type": "boolean",
  8284. "default": true,
  8285. "description": "Force returning an icon"
  8286. },
  8287. "mode": {
  8288. "type": "string",
  8289. "default": "fill",
  8290. "enum": [
  8291. "fill",
  8292. "cover"
  8293. ],
  8294. "description": "How to crop the image"
  8295. },
  8296. "mimeFallback": {
  8297. "type": "boolean",
  8298. "default": false,
  8299. "description": "Whether to fallback to the mime icon if no preview is available"
  8300. }
  8301. }
  8302. }
  8303. }
  8304. }
  8305. },
  8306. "responses": {
  8307. "200": {
  8308. "description": "Preview returned",
  8309. "content": {
  8310. "*/*": {
  8311. "schema": {
  8312. "type": "string",
  8313. "format": "binary"
  8314. }
  8315. }
  8316. }
  8317. },
  8318. "400": {
  8319. "description": "Getting preview is not possible",
  8320. "content": {
  8321. "application/json": {
  8322. "schema": {}
  8323. }
  8324. }
  8325. },
  8326. "403": {
  8327. "description": "Getting preview is not allowed",
  8328. "content": {
  8329. "application/json": {
  8330. "schema": {}
  8331. }
  8332. }
  8333. },
  8334. "404": {
  8335. "description": "Preview not found",
  8336. "content": {
  8337. "application/json": {
  8338. "schema": {}
  8339. }
  8340. }
  8341. },
  8342. "303": {
  8343. "description": "Redirect to the mime icon url if mimeFallback is true",
  8344. "headers": {
  8345. "Location": {
  8346. "schema": {
  8347. "type": "string"
  8348. }
  8349. }
  8350. }
  8351. }
  8352. }
  8353. }
  8354. },
  8355. "/index.php/core/preview": {
  8356. "get": {
  8357. "operationId": "preview-get-preview-by-file-id",
  8358. "summary": "Get a preview by file ID",
  8359. "tags": [
  8360. "preview"
  8361. ],
  8362. "security": [
  8363. {
  8364. "bearer_auth": []
  8365. },
  8366. {
  8367. "basic_auth": []
  8368. }
  8369. ],
  8370. "requestBody": {
  8371. "required": false,
  8372. "content": {
  8373. "application/json": {
  8374. "schema": {
  8375. "type": "object",
  8376. "properties": {
  8377. "fileId": {
  8378. "type": "integer",
  8379. "format": "int64",
  8380. "default": -1,
  8381. "description": "ID of the file"
  8382. },
  8383. "x": {
  8384. "type": "integer",
  8385. "format": "int64",
  8386. "default": 32,
  8387. "description": "Width of the preview. A width of -1 will use the original image width."
  8388. },
  8389. "y": {
  8390. "type": "integer",
  8391. "format": "int64",
  8392. "default": 32,
  8393. "description": "Height of the preview. A height of -1 will use the original image height."
  8394. },
  8395. "a": {
  8396. "type": "boolean",
  8397. "default": false,
  8398. "description": "Preserve the aspect ratio"
  8399. },
  8400. "forceIcon": {
  8401. "type": "boolean",
  8402. "default": true,
  8403. "description": "Force returning an icon"
  8404. },
  8405. "mode": {
  8406. "type": "string",
  8407. "default": "fill",
  8408. "enum": [
  8409. "fill",
  8410. "cover"
  8411. ],
  8412. "description": "How to crop the image"
  8413. },
  8414. "mimeFallback": {
  8415. "type": "boolean",
  8416. "default": false,
  8417. "description": "Whether to fallback to the mime icon if no preview is available"
  8418. }
  8419. }
  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. "requestBody": {
  9370. "required": true,
  9371. "content": {
  9372. "application/json": {
  9373. "schema": {
  9374. "type": "object",
  9375. "required": [
  9376. "providerIds",
  9377. "taskTypeIds"
  9378. ],
  9379. "properties": {
  9380. "providerIds": {
  9381. "type": "array",
  9382. "description": "The ids of the providers",
  9383. "items": {
  9384. "type": "string"
  9385. }
  9386. },
  9387. "taskTypeIds": {
  9388. "type": "array",
  9389. "description": "The ids of the task types",
  9390. "items": {
  9391. "type": "string"
  9392. }
  9393. }
  9394. }
  9395. }
  9396. }
  9397. }
  9398. },
  9399. "parameters": [
  9400. {
  9401. "name": "OCS-APIRequest",
  9402. "in": "header",
  9403. "description": "Required to be true for the API request to pass",
  9404. "required": true,
  9405. "schema": {
  9406. "type": "boolean",
  9407. "default": true
  9408. }
  9409. }
  9410. ],
  9411. "responses": {
  9412. "200": {
  9413. "description": "Task returned",
  9414. "content": {
  9415. "application/json": {
  9416. "schema": {
  9417. "type": "object",
  9418. "required": [
  9419. "ocs"
  9420. ],
  9421. "properties": {
  9422. "ocs": {
  9423. "type": "object",
  9424. "required": [
  9425. "meta",
  9426. "data"
  9427. ],
  9428. "properties": {
  9429. "meta": {
  9430. "$ref": "#/components/schemas/OCSMeta"
  9431. },
  9432. "data": {
  9433. "type": "object",
  9434. "required": [
  9435. "task",
  9436. "provider"
  9437. ],
  9438. "properties": {
  9439. "task": {
  9440. "$ref": "#/components/schemas/TaskProcessingTask"
  9441. },
  9442. "provider": {
  9443. "type": "object",
  9444. "required": [
  9445. "name"
  9446. ],
  9447. "properties": {
  9448. "name": {
  9449. "type": "string"
  9450. }
  9451. }
  9452. }
  9453. }
  9454. }
  9455. }
  9456. }
  9457. }
  9458. }
  9459. }
  9460. }
  9461. },
  9462. "204": {
  9463. "description": "No task found"
  9464. },
  9465. "500": {
  9466. "description": "",
  9467. "content": {
  9468. "application/json": {
  9469. "schema": {
  9470. "type": "object",
  9471. "required": [
  9472. "ocs"
  9473. ],
  9474. "properties": {
  9475. "ocs": {
  9476. "type": "object",
  9477. "required": [
  9478. "meta",
  9479. "data"
  9480. ],
  9481. "properties": {
  9482. "meta": {
  9483. "$ref": "#/components/schemas/OCSMeta"
  9484. },
  9485. "data": {
  9486. "type": "object",
  9487. "required": [
  9488. "message"
  9489. ],
  9490. "properties": {
  9491. "message": {
  9492. "type": "string"
  9493. }
  9494. }
  9495. }
  9496. }
  9497. }
  9498. }
  9499. }
  9500. }
  9501. }
  9502. }
  9503. }
  9504. }
  9505. }
  9506. },
  9507. "tags": [
  9508. {
  9509. "name": "avatar",
  9510. "description": "Class AvatarController"
  9511. },
  9512. {
  9513. "name": "guest_avatar",
  9514. "description": "This controller handles guest avatar requests."
  9515. },
  9516. {
  9517. "name": "ocm",
  9518. "description": "Controller about the endpoint /ocm-provider/"
  9519. }
  9520. ]
  9521. }