openapi-full.json 394 KB

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