openapi-full.json 397 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157
  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. "features",
  2729. "apps"
  2730. ],
  2731. "properties": {
  2732. "version": {
  2733. "type": "object",
  2734. "required": [
  2735. "major",
  2736. "minor",
  2737. "micro",
  2738. "string",
  2739. "edition",
  2740. "extendedSupport"
  2741. ],
  2742. "properties": {
  2743. "major": {
  2744. "type": "integer",
  2745. "format": "int64"
  2746. },
  2747. "minor": {
  2748. "type": "integer",
  2749. "format": "int64"
  2750. },
  2751. "micro": {
  2752. "type": "integer",
  2753. "format": "int64"
  2754. },
  2755. "string": {
  2756. "type": "string"
  2757. },
  2758. "edition": {
  2759. "type": "string"
  2760. },
  2761. "extendedSupport": {
  2762. "type": "boolean"
  2763. }
  2764. }
  2765. },
  2766. "capabilities": {
  2767. "type": "object",
  2768. "additionalProperties": {
  2769. "type": "object"
  2770. }
  2771. },
  2772. "features": {
  2773. "type": "object",
  2774. "additionalProperties": {
  2775. "type": "array",
  2776. "items": {
  2777. "type": "string"
  2778. }
  2779. }
  2780. },
  2781. "apps": {
  2782. "type": "object",
  2783. "additionalProperties": {
  2784. "type": "object",
  2785. "required": [
  2786. "version",
  2787. "api_versions"
  2788. ],
  2789. "properties": {
  2790. "version": {
  2791. "type": "string"
  2792. },
  2793. "api_versions": {
  2794. "type": "array",
  2795. "items": {
  2796. "type": "string"
  2797. }
  2798. }
  2799. }
  2800. }
  2801. }
  2802. }
  2803. }
  2804. }
  2805. }
  2806. }
  2807. }
  2808. }
  2809. }
  2810. }
  2811. }
  2812. }
  2813. },
  2814. "/ocs/v2.php/profile/{targetUserId}": {
  2815. "put": {
  2816. "operationId": "profile_api-set-visibility",
  2817. "summary": "Update the visibility of a parameter",
  2818. "description": "This endpoint requires password confirmation",
  2819. "tags": [
  2820. "profile_api"
  2821. ],
  2822. "security": [
  2823. {
  2824. "bearer_auth": []
  2825. },
  2826. {
  2827. "basic_auth": []
  2828. }
  2829. ],
  2830. "requestBody": {
  2831. "required": true,
  2832. "content": {
  2833. "application/json": {
  2834. "schema": {
  2835. "type": "object",
  2836. "required": [
  2837. "paramId",
  2838. "visibility"
  2839. ],
  2840. "properties": {
  2841. "paramId": {
  2842. "type": "string",
  2843. "description": "ID of the parameter"
  2844. },
  2845. "visibility": {
  2846. "type": "string",
  2847. "description": "New visibility"
  2848. }
  2849. }
  2850. }
  2851. }
  2852. }
  2853. },
  2854. "parameters": [
  2855. {
  2856. "name": "targetUserId",
  2857. "in": "path",
  2858. "description": "ID of the user",
  2859. "required": true,
  2860. "schema": {
  2861. "type": "string"
  2862. }
  2863. },
  2864. {
  2865. "name": "OCS-APIRequest",
  2866. "in": "header",
  2867. "description": "Required to be true for the API request to pass",
  2868. "required": true,
  2869. "schema": {
  2870. "type": "boolean",
  2871. "default": true
  2872. }
  2873. }
  2874. ],
  2875. "responses": {
  2876. "200": {
  2877. "description": "Visibility updated successfully",
  2878. "content": {
  2879. "application/json": {
  2880. "schema": {
  2881. "type": "object",
  2882. "required": [
  2883. "ocs"
  2884. ],
  2885. "properties": {
  2886. "ocs": {
  2887. "type": "object",
  2888. "required": [
  2889. "meta",
  2890. "data"
  2891. ],
  2892. "properties": {
  2893. "meta": {
  2894. "$ref": "#/components/schemas/OCSMeta"
  2895. },
  2896. "data": {}
  2897. }
  2898. }
  2899. }
  2900. }
  2901. }
  2902. }
  2903. },
  2904. "400": {
  2905. "description": "Updating visibility is not possible",
  2906. "content": {
  2907. "application/json": {
  2908. "schema": {
  2909. "type": "object",
  2910. "required": [
  2911. "ocs"
  2912. ],
  2913. "properties": {
  2914. "ocs": {
  2915. "type": "object",
  2916. "required": [
  2917. "meta",
  2918. "data"
  2919. ],
  2920. "properties": {
  2921. "meta": {
  2922. "$ref": "#/components/schemas/OCSMeta"
  2923. },
  2924. "data": {}
  2925. }
  2926. }
  2927. }
  2928. }
  2929. }
  2930. }
  2931. },
  2932. "403": {
  2933. "description": "Not allowed to edit other users visibility",
  2934. "content": {
  2935. "application/json": {
  2936. "schema": {
  2937. "type": "object",
  2938. "required": [
  2939. "ocs"
  2940. ],
  2941. "properties": {
  2942. "ocs": {
  2943. "type": "object",
  2944. "required": [
  2945. "meta",
  2946. "data"
  2947. ],
  2948. "properties": {
  2949. "meta": {
  2950. "$ref": "#/components/schemas/OCSMeta"
  2951. },
  2952. "data": {}
  2953. }
  2954. }
  2955. }
  2956. }
  2957. }
  2958. }
  2959. },
  2960. "404": {
  2961. "description": "Account not found",
  2962. "content": {
  2963. "application/json": {
  2964. "schema": {
  2965. "type": "object",
  2966. "required": [
  2967. "ocs"
  2968. ],
  2969. "properties": {
  2970. "ocs": {
  2971. "type": "object",
  2972. "required": [
  2973. "meta",
  2974. "data"
  2975. ],
  2976. "properties": {
  2977. "meta": {
  2978. "$ref": "#/components/schemas/OCSMeta"
  2979. },
  2980. "data": {}
  2981. }
  2982. }
  2983. }
  2984. }
  2985. }
  2986. }
  2987. }
  2988. }
  2989. }
  2990. },
  2991. "/ocs/v2.php/references/extract": {
  2992. "post": {
  2993. "operationId": "reference_api-extract",
  2994. "summary": "Extract references from a text",
  2995. "tags": [
  2996. "reference_api"
  2997. ],
  2998. "security": [
  2999. {
  3000. "bearer_auth": []
  3001. },
  3002. {
  3003. "basic_auth": []
  3004. }
  3005. ],
  3006. "requestBody": {
  3007. "required": true,
  3008. "content": {
  3009. "application/json": {
  3010. "schema": {
  3011. "type": "object",
  3012. "required": [
  3013. "text"
  3014. ],
  3015. "properties": {
  3016. "text": {
  3017. "type": "string",
  3018. "description": "Text to extract from"
  3019. },
  3020. "resolve": {
  3021. "type": "boolean",
  3022. "default": false,
  3023. "description": "Resolve the references"
  3024. },
  3025. "limit": {
  3026. "type": "integer",
  3027. "format": "int64",
  3028. "default": 1,
  3029. "description": "Maximum amount of references to extract"
  3030. }
  3031. }
  3032. }
  3033. }
  3034. }
  3035. },
  3036. "parameters": [
  3037. {
  3038. "name": "OCS-APIRequest",
  3039. "in": "header",
  3040. "description": "Required to be true for the API request to pass",
  3041. "required": true,
  3042. "schema": {
  3043. "type": "boolean",
  3044. "default": true
  3045. }
  3046. }
  3047. ],
  3048. "responses": {
  3049. "200": {
  3050. "description": "References returned",
  3051. "content": {
  3052. "application/json": {
  3053. "schema": {
  3054. "type": "object",
  3055. "required": [
  3056. "ocs"
  3057. ],
  3058. "properties": {
  3059. "ocs": {
  3060. "type": "object",
  3061. "required": [
  3062. "meta",
  3063. "data"
  3064. ],
  3065. "properties": {
  3066. "meta": {
  3067. "$ref": "#/components/schemas/OCSMeta"
  3068. },
  3069. "data": {
  3070. "type": "object",
  3071. "required": [
  3072. "references"
  3073. ],
  3074. "properties": {
  3075. "references": {
  3076. "type": "object",
  3077. "additionalProperties": {
  3078. "$ref": "#/components/schemas/Reference",
  3079. "nullable": true
  3080. }
  3081. }
  3082. }
  3083. }
  3084. }
  3085. }
  3086. }
  3087. }
  3088. }
  3089. }
  3090. }
  3091. }
  3092. }
  3093. },
  3094. "/ocs/v2.php/references/extractPublic": {
  3095. "post": {
  3096. "operationId": "reference_api-extract-public",
  3097. "summary": "Extract references from a text",
  3098. "tags": [
  3099. "reference_api"
  3100. ],
  3101. "security": [
  3102. {},
  3103. {
  3104. "bearer_auth": []
  3105. },
  3106. {
  3107. "basic_auth": []
  3108. }
  3109. ],
  3110. "requestBody": {
  3111. "required": true,
  3112. "content": {
  3113. "application/json": {
  3114. "schema": {
  3115. "type": "object",
  3116. "required": [
  3117. "text",
  3118. "sharingToken"
  3119. ],
  3120. "properties": {
  3121. "text": {
  3122. "type": "string",
  3123. "description": "Text to extract from"
  3124. },
  3125. "sharingToken": {
  3126. "type": "string",
  3127. "description": "Token of the public share"
  3128. },
  3129. "resolve": {
  3130. "type": "boolean",
  3131. "default": false,
  3132. "description": "Resolve the references"
  3133. },
  3134. "limit": {
  3135. "type": "integer",
  3136. "format": "int64",
  3137. "default": 1,
  3138. "description": "Maximum amount of references to extract, limited to 15"
  3139. }
  3140. }
  3141. }
  3142. }
  3143. }
  3144. },
  3145. "parameters": [
  3146. {
  3147. "name": "OCS-APIRequest",
  3148. "in": "header",
  3149. "description": "Required to be true for the API request to pass",
  3150. "required": true,
  3151. "schema": {
  3152. "type": "boolean",
  3153. "default": true
  3154. }
  3155. }
  3156. ],
  3157. "responses": {
  3158. "200": {
  3159. "description": "References returned",
  3160. "content": {
  3161. "application/json": {
  3162. "schema": {
  3163. "type": "object",
  3164. "required": [
  3165. "ocs"
  3166. ],
  3167. "properties": {
  3168. "ocs": {
  3169. "type": "object",
  3170. "required": [
  3171. "meta",
  3172. "data"
  3173. ],
  3174. "properties": {
  3175. "meta": {
  3176. "$ref": "#/components/schemas/OCSMeta"
  3177. },
  3178. "data": {
  3179. "type": "object",
  3180. "required": [
  3181. "references"
  3182. ],
  3183. "properties": {
  3184. "references": {
  3185. "type": "object",
  3186. "additionalProperties": {
  3187. "$ref": "#/components/schemas/Reference",
  3188. "nullable": true
  3189. }
  3190. }
  3191. }
  3192. }
  3193. }
  3194. }
  3195. }
  3196. }
  3197. }
  3198. }
  3199. }
  3200. }
  3201. }
  3202. },
  3203. "/ocs/v2.php/references/resolve": {
  3204. "get": {
  3205. "operationId": "reference_api-resolve-one",
  3206. "summary": "Resolve a reference",
  3207. "tags": [
  3208. "reference_api"
  3209. ],
  3210. "security": [
  3211. {
  3212. "bearer_auth": []
  3213. },
  3214. {
  3215. "basic_auth": []
  3216. }
  3217. ],
  3218. "requestBody": {
  3219. "required": true,
  3220. "content": {
  3221. "application/json": {
  3222. "schema": {
  3223. "type": "object",
  3224. "required": [
  3225. "reference"
  3226. ],
  3227. "properties": {
  3228. "reference": {
  3229. "type": "string",
  3230. "description": "Reference to resolve"
  3231. }
  3232. }
  3233. }
  3234. }
  3235. }
  3236. },
  3237. "parameters": [
  3238. {
  3239. "name": "OCS-APIRequest",
  3240. "in": "header",
  3241. "description": "Required to be true for the API request to pass",
  3242. "required": true,
  3243. "schema": {
  3244. "type": "boolean",
  3245. "default": true
  3246. }
  3247. }
  3248. ],
  3249. "responses": {
  3250. "200": {
  3251. "description": "Reference returned",
  3252. "content": {
  3253. "application/json": {
  3254. "schema": {
  3255. "type": "object",
  3256. "required": [
  3257. "ocs"
  3258. ],
  3259. "properties": {
  3260. "ocs": {
  3261. "type": "object",
  3262. "required": [
  3263. "meta",
  3264. "data"
  3265. ],
  3266. "properties": {
  3267. "meta": {
  3268. "$ref": "#/components/schemas/OCSMeta"
  3269. },
  3270. "data": {
  3271. "type": "object",
  3272. "required": [
  3273. "references"
  3274. ],
  3275. "properties": {
  3276. "references": {
  3277. "type": "object",
  3278. "additionalProperties": {
  3279. "$ref": "#/components/schemas/Reference",
  3280. "nullable": true
  3281. }
  3282. }
  3283. }
  3284. }
  3285. }
  3286. }
  3287. }
  3288. }
  3289. }
  3290. }
  3291. }
  3292. }
  3293. },
  3294. "post": {
  3295. "operationId": "reference_api-resolve",
  3296. "summary": "Resolve multiple references",
  3297. "tags": [
  3298. "reference_api"
  3299. ],
  3300. "security": [
  3301. {
  3302. "bearer_auth": []
  3303. },
  3304. {
  3305. "basic_auth": []
  3306. }
  3307. ],
  3308. "requestBody": {
  3309. "required": true,
  3310. "content": {
  3311. "application/json": {
  3312. "schema": {
  3313. "type": "object",
  3314. "required": [
  3315. "references"
  3316. ],
  3317. "properties": {
  3318. "references": {
  3319. "type": "array",
  3320. "description": "References to resolve",
  3321. "items": {
  3322. "type": "string"
  3323. }
  3324. },
  3325. "limit": {
  3326. "type": "integer",
  3327. "format": "int64",
  3328. "default": 1,
  3329. "description": "Maximum amount of references to resolve"
  3330. }
  3331. }
  3332. }
  3333. }
  3334. }
  3335. },
  3336. "parameters": [
  3337. {
  3338. "name": "OCS-APIRequest",
  3339. "in": "header",
  3340. "description": "Required to be true for the API request to pass",
  3341. "required": true,
  3342. "schema": {
  3343. "type": "boolean",
  3344. "default": true
  3345. }
  3346. }
  3347. ],
  3348. "responses": {
  3349. "200": {
  3350. "description": "References returned",
  3351. "content": {
  3352. "application/json": {
  3353. "schema": {
  3354. "type": "object",
  3355. "required": [
  3356. "ocs"
  3357. ],
  3358. "properties": {
  3359. "ocs": {
  3360. "type": "object",
  3361. "required": [
  3362. "meta",
  3363. "data"
  3364. ],
  3365. "properties": {
  3366. "meta": {
  3367. "$ref": "#/components/schemas/OCSMeta"
  3368. },
  3369. "data": {
  3370. "type": "object",
  3371. "required": [
  3372. "references"
  3373. ],
  3374. "properties": {
  3375. "references": {
  3376. "type": "object",
  3377. "additionalProperties": {
  3378. "$ref": "#/components/schemas/Reference",
  3379. "nullable": true
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. }
  3386. }
  3387. }
  3388. }
  3389. }
  3390. }
  3391. }
  3392. }
  3393. },
  3394. "/ocs/v2.php/references/resolvePublic": {
  3395. "get": {
  3396. "operationId": "reference_api-resolve-one-public",
  3397. "summary": "Resolve from a public page",
  3398. "tags": [
  3399. "reference_api"
  3400. ],
  3401. "security": [
  3402. {},
  3403. {
  3404. "bearer_auth": []
  3405. },
  3406. {
  3407. "basic_auth": []
  3408. }
  3409. ],
  3410. "requestBody": {
  3411. "required": true,
  3412. "content": {
  3413. "application/json": {
  3414. "schema": {
  3415. "type": "object",
  3416. "required": [
  3417. "reference",
  3418. "sharingToken"
  3419. ],
  3420. "properties": {
  3421. "reference": {
  3422. "type": "string",
  3423. "description": "Reference to resolve"
  3424. },
  3425. "sharingToken": {
  3426. "type": "string",
  3427. "description": "Token of the public share"
  3428. }
  3429. }
  3430. }
  3431. }
  3432. }
  3433. },
  3434. "parameters": [
  3435. {
  3436. "name": "OCS-APIRequest",
  3437. "in": "header",
  3438. "description": "Required to be true for the API request to pass",
  3439. "required": true,
  3440. "schema": {
  3441. "type": "boolean",
  3442. "default": true
  3443. }
  3444. }
  3445. ],
  3446. "responses": {
  3447. "200": {
  3448. "description": "Reference returned",
  3449. "content": {
  3450. "application/json": {
  3451. "schema": {
  3452. "type": "object",
  3453. "required": [
  3454. "ocs"
  3455. ],
  3456. "properties": {
  3457. "ocs": {
  3458. "type": "object",
  3459. "required": [
  3460. "meta",
  3461. "data"
  3462. ],
  3463. "properties": {
  3464. "meta": {
  3465. "$ref": "#/components/schemas/OCSMeta"
  3466. },
  3467. "data": {
  3468. "type": "object",
  3469. "required": [
  3470. "references"
  3471. ],
  3472. "properties": {
  3473. "references": {
  3474. "type": "object",
  3475. "additionalProperties": {
  3476. "$ref": "#/components/schemas/Reference",
  3477. "nullable": true
  3478. }
  3479. }
  3480. }
  3481. }
  3482. }
  3483. }
  3484. }
  3485. }
  3486. }
  3487. }
  3488. }
  3489. }
  3490. },
  3491. "post": {
  3492. "operationId": "reference_api-resolve-public",
  3493. "summary": "Resolve multiple references from a public page",
  3494. "tags": [
  3495. "reference_api"
  3496. ],
  3497. "security": [
  3498. {},
  3499. {
  3500. "bearer_auth": []
  3501. },
  3502. {
  3503. "basic_auth": []
  3504. }
  3505. ],
  3506. "requestBody": {
  3507. "required": true,
  3508. "content": {
  3509. "application/json": {
  3510. "schema": {
  3511. "type": "object",
  3512. "required": [
  3513. "references",
  3514. "sharingToken"
  3515. ],
  3516. "properties": {
  3517. "references": {
  3518. "type": "array",
  3519. "description": "References to resolve",
  3520. "items": {
  3521. "type": "string"
  3522. }
  3523. },
  3524. "sharingToken": {
  3525. "type": "string",
  3526. "description": "Token of the public share"
  3527. },
  3528. "limit": {
  3529. "type": "integer",
  3530. "format": "int64",
  3531. "default": 1,
  3532. "description": "Maximum amount of references to resolve, limited to 15"
  3533. }
  3534. }
  3535. }
  3536. }
  3537. }
  3538. },
  3539. "parameters": [
  3540. {
  3541. "name": "OCS-APIRequest",
  3542. "in": "header",
  3543. "description": "Required to be true for the API request to pass",
  3544. "required": true,
  3545. "schema": {
  3546. "type": "boolean",
  3547. "default": true
  3548. }
  3549. }
  3550. ],
  3551. "responses": {
  3552. "200": {
  3553. "description": "References returned",
  3554. "content": {
  3555. "application/json": {
  3556. "schema": {
  3557. "type": "object",
  3558. "required": [
  3559. "ocs"
  3560. ],
  3561. "properties": {
  3562. "ocs": {
  3563. "type": "object",
  3564. "required": [
  3565. "meta",
  3566. "data"
  3567. ],
  3568. "properties": {
  3569. "meta": {
  3570. "$ref": "#/components/schemas/OCSMeta"
  3571. },
  3572. "data": {
  3573. "type": "object",
  3574. "required": [
  3575. "references"
  3576. ],
  3577. "properties": {
  3578. "references": {
  3579. "type": "object",
  3580. "additionalProperties": {
  3581. "$ref": "#/components/schemas/Reference",
  3582. "nullable": true
  3583. }
  3584. }
  3585. }
  3586. }
  3587. }
  3588. }
  3589. }
  3590. }
  3591. }
  3592. }
  3593. }
  3594. }
  3595. }
  3596. },
  3597. "/ocs/v2.php/references/providers": {
  3598. "get": {
  3599. "operationId": "reference_api-get-providers-info",
  3600. "summary": "Get the providers",
  3601. "tags": [
  3602. "reference_api"
  3603. ],
  3604. "security": [
  3605. {
  3606. "bearer_auth": []
  3607. },
  3608. {
  3609. "basic_auth": []
  3610. }
  3611. ],
  3612. "parameters": [
  3613. {
  3614. "name": "OCS-APIRequest",
  3615. "in": "header",
  3616. "description": "Required to be true for the API request to pass",
  3617. "required": true,
  3618. "schema": {
  3619. "type": "boolean",
  3620. "default": true
  3621. }
  3622. }
  3623. ],
  3624. "responses": {
  3625. "200": {
  3626. "description": "Providers returned",
  3627. "content": {
  3628. "application/json": {
  3629. "schema": {
  3630. "type": "object",
  3631. "required": [
  3632. "ocs"
  3633. ],
  3634. "properties": {
  3635. "ocs": {
  3636. "type": "object",
  3637. "required": [
  3638. "meta",
  3639. "data"
  3640. ],
  3641. "properties": {
  3642. "meta": {
  3643. "$ref": "#/components/schemas/OCSMeta"
  3644. },
  3645. "data": {
  3646. "type": "array",
  3647. "items": {
  3648. "$ref": "#/components/schemas/ReferenceProvider"
  3649. }
  3650. }
  3651. }
  3652. }
  3653. }
  3654. }
  3655. }
  3656. }
  3657. }
  3658. }
  3659. }
  3660. },
  3661. "/ocs/v2.php/references/provider/{providerId}": {
  3662. "put": {
  3663. "operationId": "reference_api-touch-provider",
  3664. "summary": "Touch a provider",
  3665. "tags": [
  3666. "reference_api"
  3667. ],
  3668. "security": [
  3669. {
  3670. "bearer_auth": []
  3671. },
  3672. {
  3673. "basic_auth": []
  3674. }
  3675. ],
  3676. "requestBody": {
  3677. "required": false,
  3678. "content": {
  3679. "application/json": {
  3680. "schema": {
  3681. "type": "object",
  3682. "properties": {
  3683. "timestamp": {
  3684. "type": "integer",
  3685. "format": "int64",
  3686. "nullable": true,
  3687. "description": "Timestamp of the last usage"
  3688. }
  3689. }
  3690. }
  3691. }
  3692. }
  3693. },
  3694. "parameters": [
  3695. {
  3696. "name": "providerId",
  3697. "in": "path",
  3698. "description": "ID of the provider",
  3699. "required": true,
  3700. "schema": {
  3701. "type": "string"
  3702. }
  3703. },
  3704. {
  3705. "name": "OCS-APIRequest",
  3706. "in": "header",
  3707. "description": "Required to be true for the API request to pass",
  3708. "required": true,
  3709. "schema": {
  3710. "type": "boolean",
  3711. "default": true
  3712. }
  3713. }
  3714. ],
  3715. "responses": {
  3716. "200": {
  3717. "description": "Provider touched",
  3718. "content": {
  3719. "application/json": {
  3720. "schema": {
  3721. "type": "object",
  3722. "required": [
  3723. "ocs"
  3724. ],
  3725. "properties": {
  3726. "ocs": {
  3727. "type": "object",
  3728. "required": [
  3729. "meta",
  3730. "data"
  3731. ],
  3732. "properties": {
  3733. "meta": {
  3734. "$ref": "#/components/schemas/OCSMeta"
  3735. },
  3736. "data": {
  3737. "type": "object",
  3738. "required": [
  3739. "success"
  3740. ],
  3741. "properties": {
  3742. "success": {
  3743. "type": "boolean"
  3744. }
  3745. }
  3746. }
  3747. }
  3748. }
  3749. }
  3750. }
  3751. }
  3752. }
  3753. }
  3754. }
  3755. }
  3756. },
  3757. "/ocs/v2.php/taskprocessing/tasktypes": {
  3758. "get": {
  3759. "operationId": "task_processing_api-task-types",
  3760. "summary": "Returns all available TaskProcessing task types",
  3761. "tags": [
  3762. "task_processing_api"
  3763. ],
  3764. "security": [
  3765. {},
  3766. {
  3767. "bearer_auth": []
  3768. },
  3769. {
  3770. "basic_auth": []
  3771. }
  3772. ],
  3773. "parameters": [
  3774. {
  3775. "name": "OCS-APIRequest",
  3776. "in": "header",
  3777. "description": "Required to be true for the API request to pass",
  3778. "required": true,
  3779. "schema": {
  3780. "type": "boolean",
  3781. "default": true
  3782. }
  3783. }
  3784. ],
  3785. "responses": {
  3786. "200": {
  3787. "description": "Task types returned",
  3788. "content": {
  3789. "application/json": {
  3790. "schema": {
  3791. "type": "object",
  3792. "required": [
  3793. "ocs"
  3794. ],
  3795. "properties": {
  3796. "ocs": {
  3797. "type": "object",
  3798. "required": [
  3799. "meta",
  3800. "data"
  3801. ],
  3802. "properties": {
  3803. "meta": {
  3804. "$ref": "#/components/schemas/OCSMeta"
  3805. },
  3806. "data": {
  3807. "type": "object",
  3808. "required": [
  3809. "types"
  3810. ],
  3811. "properties": {
  3812. "types": {
  3813. "type": "object",
  3814. "additionalProperties": {
  3815. "$ref": "#/components/schemas/TaskProcessingTaskType"
  3816. }
  3817. }
  3818. }
  3819. }
  3820. }
  3821. }
  3822. }
  3823. }
  3824. }
  3825. }
  3826. }
  3827. }
  3828. }
  3829. },
  3830. "/ocs/v2.php/taskprocessing/schedule": {
  3831. "post": {
  3832. "operationId": "task_processing_api-schedule",
  3833. "summary": "Schedules a task",
  3834. "tags": [
  3835. "task_processing_api"
  3836. ],
  3837. "security": [
  3838. {},
  3839. {
  3840. "bearer_auth": []
  3841. },
  3842. {
  3843. "basic_auth": []
  3844. }
  3845. ],
  3846. "requestBody": {
  3847. "required": true,
  3848. "content": {
  3849. "application/json": {
  3850. "schema": {
  3851. "type": "object",
  3852. "required": [
  3853. "input",
  3854. "type",
  3855. "appId"
  3856. ],
  3857. "properties": {
  3858. "input": {
  3859. "type": "object",
  3860. "description": "Task's input parameters",
  3861. "additionalProperties": {
  3862. "type": "object"
  3863. }
  3864. },
  3865. "type": {
  3866. "type": "string",
  3867. "description": "Type of the task"
  3868. },
  3869. "appId": {
  3870. "type": "string",
  3871. "description": "ID of the app that will execute the task"
  3872. },
  3873. "customId": {
  3874. "type": "string",
  3875. "default": "",
  3876. "description": "An arbitrary identifier for the task"
  3877. }
  3878. }
  3879. }
  3880. }
  3881. }
  3882. },
  3883. "parameters": [
  3884. {
  3885. "name": "OCS-APIRequest",
  3886. "in": "header",
  3887. "description": "Required to be true for the API request to pass",
  3888. "required": true,
  3889. "schema": {
  3890. "type": "boolean",
  3891. "default": true
  3892. }
  3893. }
  3894. ],
  3895. "responses": {
  3896. "200": {
  3897. "description": "Task scheduled successfully",
  3898. "content": {
  3899. "application/json": {
  3900. "schema": {
  3901. "type": "object",
  3902. "required": [
  3903. "ocs"
  3904. ],
  3905. "properties": {
  3906. "ocs": {
  3907. "type": "object",
  3908. "required": [
  3909. "meta",
  3910. "data"
  3911. ],
  3912. "properties": {
  3913. "meta": {
  3914. "$ref": "#/components/schemas/OCSMeta"
  3915. },
  3916. "data": {
  3917. "type": "object",
  3918. "required": [
  3919. "task"
  3920. ],
  3921. "properties": {
  3922. "task": {
  3923. "$ref": "#/components/schemas/TaskProcessingTask"
  3924. }
  3925. }
  3926. }
  3927. }
  3928. }
  3929. }
  3930. }
  3931. }
  3932. }
  3933. },
  3934. "500": {
  3935. "description": "",
  3936. "content": {
  3937. "application/json": {
  3938. "schema": {
  3939. "type": "object",
  3940. "required": [
  3941. "ocs"
  3942. ],
  3943. "properties": {
  3944. "ocs": {
  3945. "type": "object",
  3946. "required": [
  3947. "meta",
  3948. "data"
  3949. ],
  3950. "properties": {
  3951. "meta": {
  3952. "$ref": "#/components/schemas/OCSMeta"
  3953. },
  3954. "data": {
  3955. "type": "object",
  3956. "required": [
  3957. "message"
  3958. ],
  3959. "properties": {
  3960. "message": {
  3961. "type": "string"
  3962. }
  3963. }
  3964. }
  3965. }
  3966. }
  3967. }
  3968. }
  3969. }
  3970. }
  3971. },
  3972. "400": {
  3973. "description": "Scheduling task is not possible",
  3974. "content": {
  3975. "application/json": {
  3976. "schema": {
  3977. "type": "object",
  3978. "required": [
  3979. "ocs"
  3980. ],
  3981. "properties": {
  3982. "ocs": {
  3983. "type": "object",
  3984. "required": [
  3985. "meta",
  3986. "data"
  3987. ],
  3988. "properties": {
  3989. "meta": {
  3990. "$ref": "#/components/schemas/OCSMeta"
  3991. },
  3992. "data": {
  3993. "type": "object",
  3994. "required": [
  3995. "message"
  3996. ],
  3997. "properties": {
  3998. "message": {
  3999. "type": "string"
  4000. }
  4001. }
  4002. }
  4003. }
  4004. }
  4005. }
  4006. }
  4007. }
  4008. }
  4009. },
  4010. "412": {
  4011. "description": "Scheduling task is not possible",
  4012. "content": {
  4013. "application/json": {
  4014. "schema": {
  4015. "type": "object",
  4016. "required": [
  4017. "ocs"
  4018. ],
  4019. "properties": {
  4020. "ocs": {
  4021. "type": "object",
  4022. "required": [
  4023. "meta",
  4024. "data"
  4025. ],
  4026. "properties": {
  4027. "meta": {
  4028. "$ref": "#/components/schemas/OCSMeta"
  4029. },
  4030. "data": {
  4031. "type": "object",
  4032. "required": [
  4033. "message"
  4034. ],
  4035. "properties": {
  4036. "message": {
  4037. "type": "string"
  4038. }
  4039. }
  4040. }
  4041. }
  4042. }
  4043. }
  4044. }
  4045. }
  4046. }
  4047. },
  4048. "401": {
  4049. "description": "Cannot schedule task because it references files in its input that the user doesn't have access to",
  4050. "content": {
  4051. "application/json": {
  4052. "schema": {
  4053. "type": "object",
  4054. "required": [
  4055. "ocs"
  4056. ],
  4057. "properties": {
  4058. "ocs": {
  4059. "type": "object",
  4060. "required": [
  4061. "meta",
  4062. "data"
  4063. ],
  4064. "properties": {
  4065. "meta": {
  4066. "$ref": "#/components/schemas/OCSMeta"
  4067. },
  4068. "data": {
  4069. "type": "object",
  4070. "required": [
  4071. "message"
  4072. ],
  4073. "properties": {
  4074. "message": {
  4075. "type": "string"
  4076. }
  4077. }
  4078. }
  4079. }
  4080. }
  4081. }
  4082. }
  4083. }
  4084. }
  4085. }
  4086. }
  4087. }
  4088. },
  4089. "/ocs/v2.php/taskprocessing/task/{id}": {
  4090. "get": {
  4091. "operationId": "task_processing_api-get-task",
  4092. "summary": "Gets a task including status and result",
  4093. "description": "Tasks are removed 1 week after receiving their last update",
  4094. "tags": [
  4095. "task_processing_api"
  4096. ],
  4097. "security": [
  4098. {},
  4099. {
  4100. "bearer_auth": []
  4101. },
  4102. {
  4103. "basic_auth": []
  4104. }
  4105. ],
  4106. "parameters": [
  4107. {
  4108. "name": "id",
  4109. "in": "path",
  4110. "description": "The id of the task",
  4111. "required": true,
  4112. "schema": {
  4113. "type": "integer",
  4114. "format": "int64"
  4115. }
  4116. },
  4117. {
  4118. "name": "OCS-APIRequest",
  4119. "in": "header",
  4120. "description": "Required to be true for the API request to pass",
  4121. "required": true,
  4122. "schema": {
  4123. "type": "boolean",
  4124. "default": true
  4125. }
  4126. }
  4127. ],
  4128. "responses": {
  4129. "200": {
  4130. "description": "Task returned",
  4131. "content": {
  4132. "application/json": {
  4133. "schema": {
  4134. "type": "object",
  4135. "required": [
  4136. "ocs"
  4137. ],
  4138. "properties": {
  4139. "ocs": {
  4140. "type": "object",
  4141. "required": [
  4142. "meta",
  4143. "data"
  4144. ],
  4145. "properties": {
  4146. "meta": {
  4147. "$ref": "#/components/schemas/OCSMeta"
  4148. },
  4149. "data": {
  4150. "type": "object",
  4151. "required": [
  4152. "task"
  4153. ],
  4154. "properties": {
  4155. "task": {
  4156. "$ref": "#/components/schemas/TaskProcessingTask"
  4157. }
  4158. }
  4159. }
  4160. }
  4161. }
  4162. }
  4163. }
  4164. }
  4165. }
  4166. },
  4167. "404": {
  4168. "description": "Task not found",
  4169. "content": {
  4170. "application/json": {
  4171. "schema": {
  4172. "type": "object",
  4173. "required": [
  4174. "ocs"
  4175. ],
  4176. "properties": {
  4177. "ocs": {
  4178. "type": "object",
  4179. "required": [
  4180. "meta",
  4181. "data"
  4182. ],
  4183. "properties": {
  4184. "meta": {
  4185. "$ref": "#/components/schemas/OCSMeta"
  4186. },
  4187. "data": {
  4188. "type": "object",
  4189. "required": [
  4190. "message"
  4191. ],
  4192. "properties": {
  4193. "message": {
  4194. "type": "string"
  4195. }
  4196. }
  4197. }
  4198. }
  4199. }
  4200. }
  4201. }
  4202. }
  4203. }
  4204. },
  4205. "500": {
  4206. "description": "",
  4207. "content": {
  4208. "application/json": {
  4209. "schema": {
  4210. "type": "object",
  4211. "required": [
  4212. "ocs"
  4213. ],
  4214. "properties": {
  4215. "ocs": {
  4216. "type": "object",
  4217. "required": [
  4218. "meta",
  4219. "data"
  4220. ],
  4221. "properties": {
  4222. "meta": {
  4223. "$ref": "#/components/schemas/OCSMeta"
  4224. },
  4225. "data": {
  4226. "type": "object",
  4227. "required": [
  4228. "message"
  4229. ],
  4230. "properties": {
  4231. "message": {
  4232. "type": "string"
  4233. }
  4234. }
  4235. }
  4236. }
  4237. }
  4238. }
  4239. }
  4240. }
  4241. }
  4242. }
  4243. }
  4244. },
  4245. "delete": {
  4246. "operationId": "task_processing_api-delete-task",
  4247. "summary": "Deletes a task",
  4248. "tags": [
  4249. "task_processing_api"
  4250. ],
  4251. "security": [
  4252. {
  4253. "bearer_auth": []
  4254. },
  4255. {
  4256. "basic_auth": []
  4257. }
  4258. ],
  4259. "parameters": [
  4260. {
  4261. "name": "id",
  4262. "in": "path",
  4263. "description": "The id of the task",
  4264. "required": true,
  4265. "schema": {
  4266. "type": "integer",
  4267. "format": "int64"
  4268. }
  4269. },
  4270. {
  4271. "name": "OCS-APIRequest",
  4272. "in": "header",
  4273. "description": "Required to be true for the API request to pass",
  4274. "required": true,
  4275. "schema": {
  4276. "type": "boolean",
  4277. "default": true
  4278. }
  4279. }
  4280. ],
  4281. "responses": {
  4282. "200": {
  4283. "description": "Task deleted",
  4284. "content": {
  4285. "application/json": {
  4286. "schema": {
  4287. "type": "object",
  4288. "required": [
  4289. "ocs"
  4290. ],
  4291. "properties": {
  4292. "ocs": {
  4293. "type": "object",
  4294. "required": [
  4295. "meta",
  4296. "data"
  4297. ],
  4298. "properties": {
  4299. "meta": {
  4300. "$ref": "#/components/schemas/OCSMeta"
  4301. },
  4302. "data": {
  4303. "nullable": true
  4304. }
  4305. }
  4306. }
  4307. }
  4308. }
  4309. }
  4310. }
  4311. },
  4312. "500": {
  4313. "description": "",
  4314. "content": {
  4315. "application/json": {
  4316. "schema": {
  4317. "type": "object",
  4318. "required": [
  4319. "ocs"
  4320. ],
  4321. "properties": {
  4322. "ocs": {
  4323. "type": "object",
  4324. "required": [
  4325. "meta",
  4326. "data"
  4327. ],
  4328. "properties": {
  4329. "meta": {
  4330. "$ref": "#/components/schemas/OCSMeta"
  4331. },
  4332. "data": {
  4333. "type": "object",
  4334. "required": [
  4335. "message"
  4336. ],
  4337. "properties": {
  4338. "message": {
  4339. "type": "string"
  4340. }
  4341. }
  4342. }
  4343. }
  4344. }
  4345. }
  4346. }
  4347. }
  4348. }
  4349. }
  4350. }
  4351. }
  4352. },
  4353. "/ocs/v2.php/taskprocessing/tasks/app/{appId}": {
  4354. "get": {
  4355. "operationId": "task_processing_api-list-tasks-by-app",
  4356. "summary": "Returns tasks for the current user filtered by the appId and optional customId",
  4357. "tags": [
  4358. "task_processing_api"
  4359. ],
  4360. "security": [
  4361. {
  4362. "bearer_auth": []
  4363. },
  4364. {
  4365. "basic_auth": []
  4366. }
  4367. ],
  4368. "requestBody": {
  4369. "required": false,
  4370. "content": {
  4371. "application/json": {
  4372. "schema": {
  4373. "type": "object",
  4374. "properties": {
  4375. "customId": {
  4376. "type": "string",
  4377. "nullable": true,
  4378. "description": "An arbitrary identifier for the task"
  4379. }
  4380. }
  4381. }
  4382. }
  4383. }
  4384. },
  4385. "parameters": [
  4386. {
  4387. "name": "appId",
  4388. "in": "path",
  4389. "description": "ID of the app",
  4390. "required": true,
  4391. "schema": {
  4392. "type": "string"
  4393. }
  4394. },
  4395. {
  4396. "name": "OCS-APIRequest",
  4397. "in": "header",
  4398. "description": "Required to be true for the API request to pass",
  4399. "required": true,
  4400. "schema": {
  4401. "type": "boolean",
  4402. "default": true
  4403. }
  4404. }
  4405. ],
  4406. "responses": {
  4407. "200": {
  4408. "description": "Tasks returned",
  4409. "content": {
  4410. "application/json": {
  4411. "schema": {
  4412. "type": "object",
  4413. "required": [
  4414. "ocs"
  4415. ],
  4416. "properties": {
  4417. "ocs": {
  4418. "type": "object",
  4419. "required": [
  4420. "meta",
  4421. "data"
  4422. ],
  4423. "properties": {
  4424. "meta": {
  4425. "$ref": "#/components/schemas/OCSMeta"
  4426. },
  4427. "data": {
  4428. "type": "object",
  4429. "required": [
  4430. "tasks"
  4431. ],
  4432. "properties": {
  4433. "tasks": {
  4434. "type": "array",
  4435. "items": {
  4436. "$ref": "#/components/schemas/TaskProcessingTask"
  4437. }
  4438. }
  4439. }
  4440. }
  4441. }
  4442. }
  4443. }
  4444. }
  4445. }
  4446. }
  4447. },
  4448. "500": {
  4449. "description": "",
  4450. "content": {
  4451. "application/json": {
  4452. "schema": {
  4453. "type": "object",
  4454. "required": [
  4455. "ocs"
  4456. ],
  4457. "properties": {
  4458. "ocs": {
  4459. "type": "object",
  4460. "required": [
  4461. "meta",
  4462. "data"
  4463. ],
  4464. "properties": {
  4465. "meta": {
  4466. "$ref": "#/components/schemas/OCSMeta"
  4467. },
  4468. "data": {
  4469. "type": "object",
  4470. "required": [
  4471. "message"
  4472. ],
  4473. "properties": {
  4474. "message": {
  4475. "type": "string"
  4476. }
  4477. }
  4478. }
  4479. }
  4480. }
  4481. }
  4482. }
  4483. }
  4484. }
  4485. }
  4486. }
  4487. }
  4488. },
  4489. "/ocs/v2.php/taskprocessing/tasks": {
  4490. "get": {
  4491. "operationId": "task_processing_api-list-tasks",
  4492. "summary": "Returns tasks for the current user filtered by the optional taskType and optional customId",
  4493. "tags": [
  4494. "task_processing_api"
  4495. ],
  4496. "security": [
  4497. {
  4498. "bearer_auth": []
  4499. },
  4500. {
  4501. "basic_auth": []
  4502. }
  4503. ],
  4504. "requestBody": {
  4505. "required": false,
  4506. "content": {
  4507. "application/json": {
  4508. "schema": {
  4509. "type": "object",
  4510. "properties": {
  4511. "taskType": {
  4512. "type": "string",
  4513. "nullable": true,
  4514. "description": "The task type to filter by"
  4515. },
  4516. "customId": {
  4517. "type": "string",
  4518. "nullable": true,
  4519. "description": "An arbitrary identifier for the task"
  4520. }
  4521. }
  4522. }
  4523. }
  4524. }
  4525. },
  4526. "parameters": [
  4527. {
  4528. "name": "OCS-APIRequest",
  4529. "in": "header",
  4530. "description": "Required to be true for the API request to pass",
  4531. "required": true,
  4532. "schema": {
  4533. "type": "boolean",
  4534. "default": true
  4535. }
  4536. }
  4537. ],
  4538. "responses": {
  4539. "200": {
  4540. "description": "Tasks returned",
  4541. "content": {
  4542. "application/json": {
  4543. "schema": {
  4544. "type": "object",
  4545. "required": [
  4546. "ocs"
  4547. ],
  4548. "properties": {
  4549. "ocs": {
  4550. "type": "object",
  4551. "required": [
  4552. "meta",
  4553. "data"
  4554. ],
  4555. "properties": {
  4556. "meta": {
  4557. "$ref": "#/components/schemas/OCSMeta"
  4558. },
  4559. "data": {
  4560. "type": "object",
  4561. "required": [
  4562. "tasks"
  4563. ],
  4564. "properties": {
  4565. "tasks": {
  4566. "type": "array",
  4567. "items": {
  4568. "$ref": "#/components/schemas/TaskProcessingTask"
  4569. }
  4570. }
  4571. }
  4572. }
  4573. }
  4574. }
  4575. }
  4576. }
  4577. }
  4578. }
  4579. },
  4580. "500": {
  4581. "description": "",
  4582. "content": {
  4583. "application/json": {
  4584. "schema": {
  4585. "type": "object",
  4586. "required": [
  4587. "ocs"
  4588. ],
  4589. "properties": {
  4590. "ocs": {
  4591. "type": "object",
  4592. "required": [
  4593. "meta",
  4594. "data"
  4595. ],
  4596. "properties": {
  4597. "meta": {
  4598. "$ref": "#/components/schemas/OCSMeta"
  4599. },
  4600. "data": {
  4601. "type": "object",
  4602. "required": [
  4603. "message"
  4604. ],
  4605. "properties": {
  4606. "message": {
  4607. "type": "string"
  4608. }
  4609. }
  4610. }
  4611. }
  4612. }
  4613. }
  4614. }
  4615. }
  4616. }
  4617. }
  4618. }
  4619. }
  4620. },
  4621. "/ocs/v2.php/taskprocessing/tasks/{taskId}/file/{fileId}": {
  4622. "get": {
  4623. "operationId": "task_processing_api-get-file-contents",
  4624. "summary": "Returns the contents of a file referenced in a task",
  4625. "tags": [
  4626. "task_processing_api"
  4627. ],
  4628. "security": [
  4629. {
  4630. "bearer_auth": []
  4631. },
  4632. {
  4633. "basic_auth": []
  4634. }
  4635. ],
  4636. "parameters": [
  4637. {
  4638. "name": "taskId",
  4639. "in": "path",
  4640. "description": "The id of the task",
  4641. "required": true,
  4642. "schema": {
  4643. "type": "integer",
  4644. "format": "int64"
  4645. }
  4646. },
  4647. {
  4648. "name": "fileId",
  4649. "in": "path",
  4650. "description": "The file id of the file to retrieve",
  4651. "required": true,
  4652. "schema": {
  4653. "type": "integer",
  4654. "format": "int64"
  4655. }
  4656. },
  4657. {
  4658. "name": "OCS-APIRequest",
  4659. "in": "header",
  4660. "description": "Required to be true for the API request to pass",
  4661. "required": true,
  4662. "schema": {
  4663. "type": "boolean",
  4664. "default": true
  4665. }
  4666. }
  4667. ],
  4668. "responses": {
  4669. "200": {
  4670. "description": "File content returned",
  4671. "content": {
  4672. "*/*": {
  4673. "schema": {
  4674. "type": "string",
  4675. "format": "binary"
  4676. }
  4677. }
  4678. }
  4679. },
  4680. "500": {
  4681. "description": "",
  4682. "content": {
  4683. "application/json": {
  4684. "schema": {
  4685. "type": "object",
  4686. "required": [
  4687. "ocs"
  4688. ],
  4689. "properties": {
  4690. "ocs": {
  4691. "type": "object",
  4692. "required": [
  4693. "meta",
  4694. "data"
  4695. ],
  4696. "properties": {
  4697. "meta": {
  4698. "$ref": "#/components/schemas/OCSMeta"
  4699. },
  4700. "data": {
  4701. "type": "object",
  4702. "required": [
  4703. "message"
  4704. ],
  4705. "properties": {
  4706. "message": {
  4707. "type": "string"
  4708. }
  4709. }
  4710. }
  4711. }
  4712. }
  4713. }
  4714. }
  4715. }
  4716. }
  4717. },
  4718. "404": {
  4719. "description": "Task or file not found",
  4720. "content": {
  4721. "application/json": {
  4722. "schema": {
  4723. "type": "object",
  4724. "required": [
  4725. "ocs"
  4726. ],
  4727. "properties": {
  4728. "ocs": {
  4729. "type": "object",
  4730. "required": [
  4731. "meta",
  4732. "data"
  4733. ],
  4734. "properties": {
  4735. "meta": {
  4736. "$ref": "#/components/schemas/OCSMeta"
  4737. },
  4738. "data": {
  4739. "type": "object",
  4740. "required": [
  4741. "message"
  4742. ],
  4743. "properties": {
  4744. "message": {
  4745. "type": "string"
  4746. }
  4747. }
  4748. }
  4749. }
  4750. }
  4751. }
  4752. }
  4753. }
  4754. }
  4755. }
  4756. }
  4757. }
  4758. },
  4759. "/ocs/v2.php/taskprocessing/tasks/{taskId}/cancel": {
  4760. "post": {
  4761. "operationId": "task_processing_api-cancel-task",
  4762. "summary": "Cancels a task",
  4763. "tags": [
  4764. "task_processing_api"
  4765. ],
  4766. "security": [
  4767. {
  4768. "bearer_auth": []
  4769. },
  4770. {
  4771. "basic_auth": []
  4772. }
  4773. ],
  4774. "parameters": [
  4775. {
  4776. "name": "taskId",
  4777. "in": "path",
  4778. "description": "The id of the task",
  4779. "required": true,
  4780. "schema": {
  4781. "type": "integer",
  4782. "format": "int64"
  4783. }
  4784. },
  4785. {
  4786. "name": "OCS-APIRequest",
  4787. "in": "header",
  4788. "description": "Required to be true for the API request to pass",
  4789. "required": true,
  4790. "schema": {
  4791. "type": "boolean",
  4792. "default": true
  4793. }
  4794. }
  4795. ],
  4796. "responses": {
  4797. "200": {
  4798. "description": "Task canceled successfully",
  4799. "content": {
  4800. "application/json": {
  4801. "schema": {
  4802. "type": "object",
  4803. "required": [
  4804. "ocs"
  4805. ],
  4806. "properties": {
  4807. "ocs": {
  4808. "type": "object",
  4809. "required": [
  4810. "meta",
  4811. "data"
  4812. ],
  4813. "properties": {
  4814. "meta": {
  4815. "$ref": "#/components/schemas/OCSMeta"
  4816. },
  4817. "data": {
  4818. "type": "object",
  4819. "required": [
  4820. "task"
  4821. ],
  4822. "properties": {
  4823. "task": {
  4824. "$ref": "#/components/schemas/TaskProcessingTask"
  4825. }
  4826. }
  4827. }
  4828. }
  4829. }
  4830. }
  4831. }
  4832. }
  4833. }
  4834. },
  4835. "500": {
  4836. "description": "",
  4837. "content": {
  4838. "application/json": {
  4839. "schema": {
  4840. "type": "object",
  4841. "required": [
  4842. "ocs"
  4843. ],
  4844. "properties": {
  4845. "ocs": {
  4846. "type": "object",
  4847. "required": [
  4848. "meta",
  4849. "data"
  4850. ],
  4851. "properties": {
  4852. "meta": {
  4853. "$ref": "#/components/schemas/OCSMeta"
  4854. },
  4855. "data": {
  4856. "type": "object",
  4857. "required": [
  4858. "message"
  4859. ],
  4860. "properties": {
  4861. "message": {
  4862. "type": "string"
  4863. }
  4864. }
  4865. }
  4866. }
  4867. }
  4868. }
  4869. }
  4870. }
  4871. }
  4872. },
  4873. "404": {
  4874. "description": "Task not found",
  4875. "content": {
  4876. "application/json": {
  4877. "schema": {
  4878. "type": "object",
  4879. "required": [
  4880. "ocs"
  4881. ],
  4882. "properties": {
  4883. "ocs": {
  4884. "type": "object",
  4885. "required": [
  4886. "meta",
  4887. "data"
  4888. ],
  4889. "properties": {
  4890. "meta": {
  4891. "$ref": "#/components/schemas/OCSMeta"
  4892. },
  4893. "data": {
  4894. "type": "object",
  4895. "required": [
  4896. "message"
  4897. ],
  4898. "properties": {
  4899. "message": {
  4900. "type": "string"
  4901. }
  4902. }
  4903. }
  4904. }
  4905. }
  4906. }
  4907. }
  4908. }
  4909. }
  4910. }
  4911. }
  4912. }
  4913. },
  4914. "/ocs/v2.php/teams/{teamId}/resources": {
  4915. "get": {
  4916. "operationId": "teams_api-resolve-one",
  4917. "summary": "Get all resources of a team",
  4918. "tags": [
  4919. "teams_api"
  4920. ],
  4921. "security": [
  4922. {
  4923. "bearer_auth": []
  4924. },
  4925. {
  4926. "basic_auth": []
  4927. }
  4928. ],
  4929. "parameters": [
  4930. {
  4931. "name": "teamId",
  4932. "in": "path",
  4933. "description": "Unique id of the team",
  4934. "required": true,
  4935. "schema": {
  4936. "type": "string"
  4937. }
  4938. },
  4939. {
  4940. "name": "OCS-APIRequest",
  4941. "in": "header",
  4942. "description": "Required to be true for the API request to pass",
  4943. "required": true,
  4944. "schema": {
  4945. "type": "boolean",
  4946. "default": true
  4947. }
  4948. }
  4949. ],
  4950. "responses": {
  4951. "200": {
  4952. "description": "Resources returned",
  4953. "content": {
  4954. "application/json": {
  4955. "schema": {
  4956. "type": "object",
  4957. "required": [
  4958. "ocs"
  4959. ],
  4960. "properties": {
  4961. "ocs": {
  4962. "type": "object",
  4963. "required": [
  4964. "meta",
  4965. "data"
  4966. ],
  4967. "properties": {
  4968. "meta": {
  4969. "$ref": "#/components/schemas/OCSMeta"
  4970. },
  4971. "data": {
  4972. "type": "object",
  4973. "required": [
  4974. "resources"
  4975. ],
  4976. "properties": {
  4977. "resources": {
  4978. "type": "array",
  4979. "items": {
  4980. "$ref": "#/components/schemas/TeamResource"
  4981. }
  4982. }
  4983. }
  4984. }
  4985. }
  4986. }
  4987. }
  4988. }
  4989. }
  4990. }
  4991. }
  4992. }
  4993. }
  4994. },
  4995. "/ocs/v2.php/teams/resources/{providerId}/{resourceId}": {
  4996. "get": {
  4997. "operationId": "teams_api-list-teams",
  4998. "summary": "Get all teams of a resource",
  4999. "tags": [
  5000. "teams_api"
  5001. ],
  5002. "security": [
  5003. {
  5004. "bearer_auth": []
  5005. },
  5006. {
  5007. "basic_auth": []
  5008. }
  5009. ],
  5010. "parameters": [
  5011. {
  5012. "name": "providerId",
  5013. "in": "path",
  5014. "description": "Identifier of the provider (e.g. deck, talk, collectives)",
  5015. "required": true,
  5016. "schema": {
  5017. "type": "string"
  5018. }
  5019. },
  5020. {
  5021. "name": "resourceId",
  5022. "in": "path",
  5023. "description": "Unique id of the resource to list teams for (e.g. deck board id)",
  5024. "required": true,
  5025. "schema": {
  5026. "type": "string"
  5027. }
  5028. },
  5029. {
  5030. "name": "OCS-APIRequest",
  5031. "in": "header",
  5032. "description": "Required to be true for the API request to pass",
  5033. "required": true,
  5034. "schema": {
  5035. "type": "boolean",
  5036. "default": true
  5037. }
  5038. }
  5039. ],
  5040. "responses": {
  5041. "200": {
  5042. "description": "Teams returned",
  5043. "content": {
  5044. "application/json": {
  5045. "schema": {
  5046. "type": "object",
  5047. "required": [
  5048. "ocs"
  5049. ],
  5050. "properties": {
  5051. "ocs": {
  5052. "type": "object",
  5053. "required": [
  5054. "meta",
  5055. "data"
  5056. ],
  5057. "properties": {
  5058. "meta": {
  5059. "$ref": "#/components/schemas/OCSMeta"
  5060. },
  5061. "data": {
  5062. "type": "object",
  5063. "required": [
  5064. "teams"
  5065. ],
  5066. "properties": {
  5067. "teams": {
  5068. "type": "array",
  5069. "items": {
  5070. "$ref": "#/components/schemas/Team"
  5071. }
  5072. }
  5073. }
  5074. }
  5075. }
  5076. }
  5077. }
  5078. }
  5079. }
  5080. }
  5081. }
  5082. }
  5083. }
  5084. },
  5085. "/ocs/v2.php/textprocessing/tasktypes": {
  5086. "get": {
  5087. "operationId": "text_processing_api-task-types",
  5088. "summary": "This endpoint returns all available LanguageModel task types",
  5089. "tags": [
  5090. "text_processing_api"
  5091. ],
  5092. "security": [
  5093. {},
  5094. {
  5095. "bearer_auth": []
  5096. },
  5097. {
  5098. "basic_auth": []
  5099. }
  5100. ],
  5101. "parameters": [
  5102. {
  5103. "name": "OCS-APIRequest",
  5104. "in": "header",
  5105. "description": "Required to be true for the API request to pass",
  5106. "required": true,
  5107. "schema": {
  5108. "type": "boolean",
  5109. "default": true
  5110. }
  5111. }
  5112. ],
  5113. "responses": {
  5114. "200": {
  5115. "description": "Task types returned",
  5116. "content": {
  5117. "application/json": {
  5118. "schema": {
  5119. "type": "object",
  5120. "required": [
  5121. "ocs"
  5122. ],
  5123. "properties": {
  5124. "ocs": {
  5125. "type": "object",
  5126. "required": [
  5127. "meta",
  5128. "data"
  5129. ],
  5130. "properties": {
  5131. "meta": {
  5132. "$ref": "#/components/schemas/OCSMeta"
  5133. },
  5134. "data": {
  5135. "type": "object",
  5136. "required": [
  5137. "types"
  5138. ],
  5139. "properties": {
  5140. "types": {
  5141. "type": "array",
  5142. "items": {
  5143. "type": "object",
  5144. "required": [
  5145. "id",
  5146. "name",
  5147. "description"
  5148. ],
  5149. "properties": {
  5150. "id": {
  5151. "type": "string"
  5152. },
  5153. "name": {
  5154. "type": "string"
  5155. },
  5156. "description": {
  5157. "type": "string"
  5158. }
  5159. }
  5160. }
  5161. }
  5162. }
  5163. }
  5164. }
  5165. }
  5166. }
  5167. }
  5168. }
  5169. }
  5170. }
  5171. }
  5172. }
  5173. },
  5174. "/ocs/v2.php/textprocessing/schedule": {
  5175. "post": {
  5176. "operationId": "text_processing_api-schedule",
  5177. "summary": "This endpoint allows scheduling a language model task",
  5178. "tags": [
  5179. "text_processing_api"
  5180. ],
  5181. "security": [
  5182. {},
  5183. {
  5184. "bearer_auth": []
  5185. },
  5186. {
  5187. "basic_auth": []
  5188. }
  5189. ],
  5190. "requestBody": {
  5191. "required": true,
  5192. "content": {
  5193. "application/json": {
  5194. "schema": {
  5195. "type": "object",
  5196. "required": [
  5197. "input",
  5198. "type",
  5199. "appId"
  5200. ],
  5201. "properties": {
  5202. "input": {
  5203. "type": "string",
  5204. "description": "Input text"
  5205. },
  5206. "type": {
  5207. "type": "string",
  5208. "description": "Type of the task"
  5209. },
  5210. "appId": {
  5211. "type": "string",
  5212. "description": "ID of the app that will execute the task"
  5213. },
  5214. "identifier": {
  5215. "type": "string",
  5216. "default": "",
  5217. "description": "An arbitrary identifier for the task"
  5218. }
  5219. }
  5220. }
  5221. }
  5222. }
  5223. },
  5224. "parameters": [
  5225. {
  5226. "name": "OCS-APIRequest",
  5227. "in": "header",
  5228. "description": "Required to be true for the API request to pass",
  5229. "required": true,
  5230. "schema": {
  5231. "type": "boolean",
  5232. "default": true
  5233. }
  5234. }
  5235. ],
  5236. "responses": {
  5237. "200": {
  5238. "description": "Task scheduled successfully",
  5239. "content": {
  5240. "application/json": {
  5241. "schema": {
  5242. "type": "object",
  5243. "required": [
  5244. "ocs"
  5245. ],
  5246. "properties": {
  5247. "ocs": {
  5248. "type": "object",
  5249. "required": [
  5250. "meta",
  5251. "data"
  5252. ],
  5253. "properties": {
  5254. "meta": {
  5255. "$ref": "#/components/schemas/OCSMeta"
  5256. },
  5257. "data": {
  5258. "type": "object",
  5259. "required": [
  5260. "task"
  5261. ],
  5262. "properties": {
  5263. "task": {
  5264. "$ref": "#/components/schemas/TextProcessingTask"
  5265. }
  5266. }
  5267. }
  5268. }
  5269. }
  5270. }
  5271. }
  5272. }
  5273. }
  5274. },
  5275. "500": {
  5276. "description": "",
  5277. "content": {
  5278. "application/json": {
  5279. "schema": {
  5280. "type": "object",
  5281. "required": [
  5282. "ocs"
  5283. ],
  5284. "properties": {
  5285. "ocs": {
  5286. "type": "object",
  5287. "required": [
  5288. "meta",
  5289. "data"
  5290. ],
  5291. "properties": {
  5292. "meta": {
  5293. "$ref": "#/components/schemas/OCSMeta"
  5294. },
  5295. "data": {
  5296. "type": "object",
  5297. "required": [
  5298. "message"
  5299. ],
  5300. "properties": {
  5301. "message": {
  5302. "type": "string"
  5303. }
  5304. }
  5305. }
  5306. }
  5307. }
  5308. }
  5309. }
  5310. }
  5311. }
  5312. },
  5313. "400": {
  5314. "description": "Scheduling task is not possible",
  5315. "content": {
  5316. "application/json": {
  5317. "schema": {
  5318. "type": "object",
  5319. "required": [
  5320. "ocs"
  5321. ],
  5322. "properties": {
  5323. "ocs": {
  5324. "type": "object",
  5325. "required": [
  5326. "meta",
  5327. "data"
  5328. ],
  5329. "properties": {
  5330. "meta": {
  5331. "$ref": "#/components/schemas/OCSMeta"
  5332. },
  5333. "data": {
  5334. "type": "object",
  5335. "required": [
  5336. "message"
  5337. ],
  5338. "properties": {
  5339. "message": {
  5340. "type": "string"
  5341. }
  5342. }
  5343. }
  5344. }
  5345. }
  5346. }
  5347. }
  5348. }
  5349. }
  5350. },
  5351. "412": {
  5352. "description": "Scheduling task is not possible",
  5353. "content": {
  5354. "application/json": {
  5355. "schema": {
  5356. "type": "object",
  5357. "required": [
  5358. "ocs"
  5359. ],
  5360. "properties": {
  5361. "ocs": {
  5362. "type": "object",
  5363. "required": [
  5364. "meta",
  5365. "data"
  5366. ],
  5367. "properties": {
  5368. "meta": {
  5369. "$ref": "#/components/schemas/OCSMeta"
  5370. },
  5371. "data": {
  5372. "type": "object",
  5373. "required": [
  5374. "message"
  5375. ],
  5376. "properties": {
  5377. "message": {
  5378. "type": "string"
  5379. }
  5380. }
  5381. }
  5382. }
  5383. }
  5384. }
  5385. }
  5386. }
  5387. }
  5388. }
  5389. }
  5390. }
  5391. },
  5392. "/ocs/v2.php/textprocessing/task/{id}": {
  5393. "get": {
  5394. "operationId": "text_processing_api-get-task",
  5395. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  5396. "tags": [
  5397. "text_processing_api"
  5398. ],
  5399. "security": [
  5400. {},
  5401. {
  5402. "bearer_auth": []
  5403. },
  5404. {
  5405. "basic_auth": []
  5406. }
  5407. ],
  5408. "parameters": [
  5409. {
  5410. "name": "id",
  5411. "in": "path",
  5412. "description": "The id of the task",
  5413. "required": true,
  5414. "schema": {
  5415. "type": "integer",
  5416. "format": "int64"
  5417. }
  5418. },
  5419. {
  5420. "name": "OCS-APIRequest",
  5421. "in": "header",
  5422. "description": "Required to be true for the API request to pass",
  5423. "required": true,
  5424. "schema": {
  5425. "type": "boolean",
  5426. "default": true
  5427. }
  5428. }
  5429. ],
  5430. "responses": {
  5431. "200": {
  5432. "description": "Task returned",
  5433. "content": {
  5434. "application/json": {
  5435. "schema": {
  5436. "type": "object",
  5437. "required": [
  5438. "ocs"
  5439. ],
  5440. "properties": {
  5441. "ocs": {
  5442. "type": "object",
  5443. "required": [
  5444. "meta",
  5445. "data"
  5446. ],
  5447. "properties": {
  5448. "meta": {
  5449. "$ref": "#/components/schemas/OCSMeta"
  5450. },
  5451. "data": {
  5452. "type": "object",
  5453. "required": [
  5454. "task"
  5455. ],
  5456. "properties": {
  5457. "task": {
  5458. "$ref": "#/components/schemas/TextProcessingTask"
  5459. }
  5460. }
  5461. }
  5462. }
  5463. }
  5464. }
  5465. }
  5466. }
  5467. }
  5468. },
  5469. "404": {
  5470. "description": "Task not found",
  5471. "content": {
  5472. "application/json": {
  5473. "schema": {
  5474. "type": "object",
  5475. "required": [
  5476. "ocs"
  5477. ],
  5478. "properties": {
  5479. "ocs": {
  5480. "type": "object",
  5481. "required": [
  5482. "meta",
  5483. "data"
  5484. ],
  5485. "properties": {
  5486. "meta": {
  5487. "$ref": "#/components/schemas/OCSMeta"
  5488. },
  5489. "data": {
  5490. "type": "object",
  5491. "required": [
  5492. "message"
  5493. ],
  5494. "properties": {
  5495. "message": {
  5496. "type": "string"
  5497. }
  5498. }
  5499. }
  5500. }
  5501. }
  5502. }
  5503. }
  5504. }
  5505. }
  5506. },
  5507. "500": {
  5508. "description": "",
  5509. "content": {
  5510. "application/json": {
  5511. "schema": {
  5512. "type": "object",
  5513. "required": [
  5514. "ocs"
  5515. ],
  5516. "properties": {
  5517. "ocs": {
  5518. "type": "object",
  5519. "required": [
  5520. "meta",
  5521. "data"
  5522. ],
  5523. "properties": {
  5524. "meta": {
  5525. "$ref": "#/components/schemas/OCSMeta"
  5526. },
  5527. "data": {
  5528. "type": "object",
  5529. "required": [
  5530. "message"
  5531. ],
  5532. "properties": {
  5533. "message": {
  5534. "type": "string"
  5535. }
  5536. }
  5537. }
  5538. }
  5539. }
  5540. }
  5541. }
  5542. }
  5543. }
  5544. }
  5545. }
  5546. },
  5547. "delete": {
  5548. "operationId": "text_processing_api-delete-task",
  5549. "summary": "This endpoint allows to delete a scheduled task for a user",
  5550. "tags": [
  5551. "text_processing_api"
  5552. ],
  5553. "security": [
  5554. {
  5555. "bearer_auth": []
  5556. },
  5557. {
  5558. "basic_auth": []
  5559. }
  5560. ],
  5561. "parameters": [
  5562. {
  5563. "name": "id",
  5564. "in": "path",
  5565. "description": "The id of the task",
  5566. "required": true,
  5567. "schema": {
  5568. "type": "integer",
  5569. "format": "int64"
  5570. }
  5571. },
  5572. {
  5573. "name": "OCS-APIRequest",
  5574. "in": "header",
  5575. "description": "Required to be true for the API request to pass",
  5576. "required": true,
  5577. "schema": {
  5578. "type": "boolean",
  5579. "default": true
  5580. }
  5581. }
  5582. ],
  5583. "responses": {
  5584. "200": {
  5585. "description": "Task returned",
  5586. "content": {
  5587. "application/json": {
  5588. "schema": {
  5589. "type": "object",
  5590. "required": [
  5591. "ocs"
  5592. ],
  5593. "properties": {
  5594. "ocs": {
  5595. "type": "object",
  5596. "required": [
  5597. "meta",
  5598. "data"
  5599. ],
  5600. "properties": {
  5601. "meta": {
  5602. "$ref": "#/components/schemas/OCSMeta"
  5603. },
  5604. "data": {
  5605. "type": "object",
  5606. "required": [
  5607. "task"
  5608. ],
  5609. "properties": {
  5610. "task": {
  5611. "$ref": "#/components/schemas/TextProcessingTask"
  5612. }
  5613. }
  5614. }
  5615. }
  5616. }
  5617. }
  5618. }
  5619. }
  5620. }
  5621. },
  5622. "404": {
  5623. "description": "Task not found",
  5624. "content": {
  5625. "application/json": {
  5626. "schema": {
  5627. "type": "object",
  5628. "required": [
  5629. "ocs"
  5630. ],
  5631. "properties": {
  5632. "ocs": {
  5633. "type": "object",
  5634. "required": [
  5635. "meta",
  5636. "data"
  5637. ],
  5638. "properties": {
  5639. "meta": {
  5640. "$ref": "#/components/schemas/OCSMeta"
  5641. },
  5642. "data": {
  5643. "type": "object",
  5644. "required": [
  5645. "message"
  5646. ],
  5647. "properties": {
  5648. "message": {
  5649. "type": "string"
  5650. }
  5651. }
  5652. }
  5653. }
  5654. }
  5655. }
  5656. }
  5657. }
  5658. }
  5659. },
  5660. "500": {
  5661. "description": "",
  5662. "content": {
  5663. "application/json": {
  5664. "schema": {
  5665. "type": "object",
  5666. "required": [
  5667. "ocs"
  5668. ],
  5669. "properties": {
  5670. "ocs": {
  5671. "type": "object",
  5672. "required": [
  5673. "meta",
  5674. "data"
  5675. ],
  5676. "properties": {
  5677. "meta": {
  5678. "$ref": "#/components/schemas/OCSMeta"
  5679. },
  5680. "data": {
  5681. "type": "object",
  5682. "required": [
  5683. "message"
  5684. ],
  5685. "properties": {
  5686. "message": {
  5687. "type": "string"
  5688. }
  5689. }
  5690. }
  5691. }
  5692. }
  5693. }
  5694. }
  5695. }
  5696. }
  5697. }
  5698. }
  5699. }
  5700. },
  5701. "/ocs/v2.php/textprocessing/tasks/app/{appId}": {
  5702. "get": {
  5703. "operationId": "text_processing_api-list-tasks-by-app",
  5704. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  5705. "tags": [
  5706. "text_processing_api"
  5707. ],
  5708. "security": [
  5709. {
  5710. "bearer_auth": []
  5711. },
  5712. {
  5713. "basic_auth": []
  5714. }
  5715. ],
  5716. "requestBody": {
  5717. "required": false,
  5718. "content": {
  5719. "application/json": {
  5720. "schema": {
  5721. "type": "object",
  5722. "properties": {
  5723. "identifier": {
  5724. "type": "string",
  5725. "nullable": true,
  5726. "description": "An arbitrary identifier for the task"
  5727. }
  5728. }
  5729. }
  5730. }
  5731. }
  5732. },
  5733. "parameters": [
  5734. {
  5735. "name": "appId",
  5736. "in": "path",
  5737. "description": "ID of the app",
  5738. "required": true,
  5739. "schema": {
  5740. "type": "string"
  5741. }
  5742. },
  5743. {
  5744. "name": "OCS-APIRequest",
  5745. "in": "header",
  5746. "description": "Required to be true for the API request to pass",
  5747. "required": true,
  5748. "schema": {
  5749. "type": "boolean",
  5750. "default": true
  5751. }
  5752. }
  5753. ],
  5754. "responses": {
  5755. "200": {
  5756. "description": "Task list returned",
  5757. "content": {
  5758. "application/json": {
  5759. "schema": {
  5760. "type": "object",
  5761. "required": [
  5762. "ocs"
  5763. ],
  5764. "properties": {
  5765. "ocs": {
  5766. "type": "object",
  5767. "required": [
  5768. "meta",
  5769. "data"
  5770. ],
  5771. "properties": {
  5772. "meta": {
  5773. "$ref": "#/components/schemas/OCSMeta"
  5774. },
  5775. "data": {
  5776. "type": "object",
  5777. "required": [
  5778. "tasks"
  5779. ],
  5780. "properties": {
  5781. "tasks": {
  5782. "type": "array",
  5783. "items": {
  5784. "$ref": "#/components/schemas/TextProcessingTask"
  5785. }
  5786. }
  5787. }
  5788. }
  5789. }
  5790. }
  5791. }
  5792. }
  5793. }
  5794. }
  5795. },
  5796. "500": {
  5797. "description": "",
  5798. "content": {
  5799. "application/json": {
  5800. "schema": {
  5801. "type": "object",
  5802. "required": [
  5803. "ocs"
  5804. ],
  5805. "properties": {
  5806. "ocs": {
  5807. "type": "object",
  5808. "required": [
  5809. "meta",
  5810. "data"
  5811. ],
  5812. "properties": {
  5813. "meta": {
  5814. "$ref": "#/components/schemas/OCSMeta"
  5815. },
  5816. "data": {
  5817. "type": "object",
  5818. "required": [
  5819. "message"
  5820. ],
  5821. "properties": {
  5822. "message": {
  5823. "type": "string"
  5824. }
  5825. }
  5826. }
  5827. }
  5828. }
  5829. }
  5830. }
  5831. }
  5832. }
  5833. }
  5834. }
  5835. }
  5836. },
  5837. "/ocs/v2.php/text2image/is_available": {
  5838. "get": {
  5839. "operationId": "text_to_image_api-is-available",
  5840. "summary": "Check whether this feature is available",
  5841. "tags": [
  5842. "text_to_image_api"
  5843. ],
  5844. "security": [
  5845. {},
  5846. {
  5847. "bearer_auth": []
  5848. },
  5849. {
  5850. "basic_auth": []
  5851. }
  5852. ],
  5853. "parameters": [
  5854. {
  5855. "name": "OCS-APIRequest",
  5856. "in": "header",
  5857. "description": "Required to be true for the API request to pass",
  5858. "required": true,
  5859. "schema": {
  5860. "type": "boolean",
  5861. "default": true
  5862. }
  5863. }
  5864. ],
  5865. "responses": {
  5866. "200": {
  5867. "description": "Returns availability status",
  5868. "content": {
  5869. "application/json": {
  5870. "schema": {
  5871. "type": "object",
  5872. "required": [
  5873. "ocs"
  5874. ],
  5875. "properties": {
  5876. "ocs": {
  5877. "type": "object",
  5878. "required": [
  5879. "meta",
  5880. "data"
  5881. ],
  5882. "properties": {
  5883. "meta": {
  5884. "$ref": "#/components/schemas/OCSMeta"
  5885. },
  5886. "data": {
  5887. "type": "object",
  5888. "required": [
  5889. "isAvailable"
  5890. ],
  5891. "properties": {
  5892. "isAvailable": {
  5893. "type": "boolean"
  5894. }
  5895. }
  5896. }
  5897. }
  5898. }
  5899. }
  5900. }
  5901. }
  5902. }
  5903. }
  5904. }
  5905. }
  5906. },
  5907. "/ocs/v2.php/text2image/schedule": {
  5908. "post": {
  5909. "operationId": "text_to_image_api-schedule",
  5910. "summary": "This endpoint allows scheduling a text to image task",
  5911. "tags": [
  5912. "text_to_image_api"
  5913. ],
  5914. "security": [
  5915. {},
  5916. {
  5917. "bearer_auth": []
  5918. },
  5919. {
  5920. "basic_auth": []
  5921. }
  5922. ],
  5923. "requestBody": {
  5924. "required": true,
  5925. "content": {
  5926. "application/json": {
  5927. "schema": {
  5928. "type": "object",
  5929. "required": [
  5930. "input",
  5931. "appId"
  5932. ],
  5933. "properties": {
  5934. "input": {
  5935. "type": "string",
  5936. "description": "Input text"
  5937. },
  5938. "appId": {
  5939. "type": "string",
  5940. "description": "ID of the app that will execute the task"
  5941. },
  5942. "identifier": {
  5943. "type": "string",
  5944. "default": "",
  5945. "description": "An arbitrary identifier for the task"
  5946. },
  5947. "numberOfImages": {
  5948. "type": "integer",
  5949. "format": "int64",
  5950. "default": 8,
  5951. "description": "The number of images to generate"
  5952. }
  5953. }
  5954. }
  5955. }
  5956. }
  5957. },
  5958. "parameters": [
  5959. {
  5960. "name": "OCS-APIRequest",
  5961. "in": "header",
  5962. "description": "Required to be true for the API request to pass",
  5963. "required": true,
  5964. "schema": {
  5965. "type": "boolean",
  5966. "default": true
  5967. }
  5968. }
  5969. ],
  5970. "responses": {
  5971. "200": {
  5972. "description": "Task scheduled successfully",
  5973. "content": {
  5974. "application/json": {
  5975. "schema": {
  5976. "type": "object",
  5977. "required": [
  5978. "ocs"
  5979. ],
  5980. "properties": {
  5981. "ocs": {
  5982. "type": "object",
  5983. "required": [
  5984. "meta",
  5985. "data"
  5986. ],
  5987. "properties": {
  5988. "meta": {
  5989. "$ref": "#/components/schemas/OCSMeta"
  5990. },
  5991. "data": {
  5992. "type": "object",
  5993. "required": [
  5994. "task"
  5995. ],
  5996. "properties": {
  5997. "task": {
  5998. "$ref": "#/components/schemas/TextToImageTask"
  5999. }
  6000. }
  6001. }
  6002. }
  6003. }
  6004. }
  6005. }
  6006. }
  6007. }
  6008. },
  6009. "412": {
  6010. "description": "Scheduling task is not possible",
  6011. "content": {
  6012. "application/json": {
  6013. "schema": {
  6014. "type": "object",
  6015. "required": [
  6016. "ocs"
  6017. ],
  6018. "properties": {
  6019. "ocs": {
  6020. "type": "object",
  6021. "required": [
  6022. "meta",
  6023. "data"
  6024. ],
  6025. "properties": {
  6026. "meta": {
  6027. "$ref": "#/components/schemas/OCSMeta"
  6028. },
  6029. "data": {
  6030. "type": "object",
  6031. "required": [
  6032. "message"
  6033. ],
  6034. "properties": {
  6035. "message": {
  6036. "type": "string"
  6037. }
  6038. }
  6039. }
  6040. }
  6041. }
  6042. }
  6043. }
  6044. }
  6045. }
  6046. },
  6047. "500": {
  6048. "description": "",
  6049. "content": {
  6050. "application/json": {
  6051. "schema": {
  6052. "type": "object",
  6053. "required": [
  6054. "ocs"
  6055. ],
  6056. "properties": {
  6057. "ocs": {
  6058. "type": "object",
  6059. "required": [
  6060. "meta",
  6061. "data"
  6062. ],
  6063. "properties": {
  6064. "meta": {
  6065. "$ref": "#/components/schemas/OCSMeta"
  6066. },
  6067. "data": {
  6068. "type": "object",
  6069. "required": [
  6070. "message"
  6071. ],
  6072. "properties": {
  6073. "message": {
  6074. "type": "string"
  6075. }
  6076. }
  6077. }
  6078. }
  6079. }
  6080. }
  6081. }
  6082. }
  6083. }
  6084. }
  6085. }
  6086. }
  6087. },
  6088. "/ocs/v2.php/text2image/task/{id}": {
  6089. "get": {
  6090. "operationId": "text_to_image_api-get-task",
  6091. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  6092. "tags": [
  6093. "text_to_image_api"
  6094. ],
  6095. "security": [
  6096. {},
  6097. {
  6098. "bearer_auth": []
  6099. },
  6100. {
  6101. "basic_auth": []
  6102. }
  6103. ],
  6104. "parameters": [
  6105. {
  6106. "name": "id",
  6107. "in": "path",
  6108. "description": "The id of the task",
  6109. "required": true,
  6110. "schema": {
  6111. "type": "integer",
  6112. "format": "int64"
  6113. }
  6114. },
  6115. {
  6116. "name": "OCS-APIRequest",
  6117. "in": "header",
  6118. "description": "Required to be true for the API request to pass",
  6119. "required": true,
  6120. "schema": {
  6121. "type": "boolean",
  6122. "default": true
  6123. }
  6124. }
  6125. ],
  6126. "responses": {
  6127. "200": {
  6128. "description": "Task returned",
  6129. "content": {
  6130. "application/json": {
  6131. "schema": {
  6132. "type": "object",
  6133. "required": [
  6134. "ocs"
  6135. ],
  6136. "properties": {
  6137. "ocs": {
  6138. "type": "object",
  6139. "required": [
  6140. "meta",
  6141. "data"
  6142. ],
  6143. "properties": {
  6144. "meta": {
  6145. "$ref": "#/components/schemas/OCSMeta"
  6146. },
  6147. "data": {
  6148. "type": "object",
  6149. "required": [
  6150. "task"
  6151. ],
  6152. "properties": {
  6153. "task": {
  6154. "$ref": "#/components/schemas/TextToImageTask"
  6155. }
  6156. }
  6157. }
  6158. }
  6159. }
  6160. }
  6161. }
  6162. }
  6163. }
  6164. },
  6165. "404": {
  6166. "description": "Task not found",
  6167. "content": {
  6168. "application/json": {
  6169. "schema": {
  6170. "type": "object",
  6171. "required": [
  6172. "ocs"
  6173. ],
  6174. "properties": {
  6175. "ocs": {
  6176. "type": "object",
  6177. "required": [
  6178. "meta",
  6179. "data"
  6180. ],
  6181. "properties": {
  6182. "meta": {
  6183. "$ref": "#/components/schemas/OCSMeta"
  6184. },
  6185. "data": {
  6186. "type": "object",
  6187. "required": [
  6188. "message"
  6189. ],
  6190. "properties": {
  6191. "message": {
  6192. "type": "string"
  6193. }
  6194. }
  6195. }
  6196. }
  6197. }
  6198. }
  6199. }
  6200. }
  6201. }
  6202. },
  6203. "500": {
  6204. "description": "",
  6205. "content": {
  6206. "application/json": {
  6207. "schema": {
  6208. "type": "object",
  6209. "required": [
  6210. "ocs"
  6211. ],
  6212. "properties": {
  6213. "ocs": {
  6214. "type": "object",
  6215. "required": [
  6216. "meta",
  6217. "data"
  6218. ],
  6219. "properties": {
  6220. "meta": {
  6221. "$ref": "#/components/schemas/OCSMeta"
  6222. },
  6223. "data": {
  6224. "type": "object",
  6225. "required": [
  6226. "message"
  6227. ],
  6228. "properties": {
  6229. "message": {
  6230. "type": "string"
  6231. }
  6232. }
  6233. }
  6234. }
  6235. }
  6236. }
  6237. }
  6238. }
  6239. }
  6240. }
  6241. }
  6242. },
  6243. "delete": {
  6244. "operationId": "text_to_image_api-delete-task",
  6245. "summary": "This endpoint allows to delete a scheduled task for a user",
  6246. "tags": [
  6247. "text_to_image_api"
  6248. ],
  6249. "security": [
  6250. {
  6251. "bearer_auth": []
  6252. },
  6253. {
  6254. "basic_auth": []
  6255. }
  6256. ],
  6257. "parameters": [
  6258. {
  6259. "name": "id",
  6260. "in": "path",
  6261. "description": "The id of the task",
  6262. "required": true,
  6263. "schema": {
  6264. "type": "integer",
  6265. "format": "int64"
  6266. }
  6267. },
  6268. {
  6269. "name": "OCS-APIRequest",
  6270. "in": "header",
  6271. "description": "Required to be true for the API request to pass",
  6272. "required": true,
  6273. "schema": {
  6274. "type": "boolean",
  6275. "default": true
  6276. }
  6277. }
  6278. ],
  6279. "responses": {
  6280. "200": {
  6281. "description": "Task returned",
  6282. "content": {
  6283. "application/json": {
  6284. "schema": {
  6285. "type": "object",
  6286. "required": [
  6287. "ocs"
  6288. ],
  6289. "properties": {
  6290. "ocs": {
  6291. "type": "object",
  6292. "required": [
  6293. "meta",
  6294. "data"
  6295. ],
  6296. "properties": {
  6297. "meta": {
  6298. "$ref": "#/components/schemas/OCSMeta"
  6299. },
  6300. "data": {
  6301. "type": "object",
  6302. "required": [
  6303. "task"
  6304. ],
  6305. "properties": {
  6306. "task": {
  6307. "$ref": "#/components/schemas/TextToImageTask"
  6308. }
  6309. }
  6310. }
  6311. }
  6312. }
  6313. }
  6314. }
  6315. }
  6316. }
  6317. },
  6318. "404": {
  6319. "description": "Task not found",
  6320. "content": {
  6321. "application/json": {
  6322. "schema": {
  6323. "type": "object",
  6324. "required": [
  6325. "ocs"
  6326. ],
  6327. "properties": {
  6328. "ocs": {
  6329. "type": "object",
  6330. "required": [
  6331. "meta",
  6332. "data"
  6333. ],
  6334. "properties": {
  6335. "meta": {
  6336. "$ref": "#/components/schemas/OCSMeta"
  6337. },
  6338. "data": {
  6339. "type": "object",
  6340. "required": [
  6341. "message"
  6342. ],
  6343. "properties": {
  6344. "message": {
  6345. "type": "string"
  6346. }
  6347. }
  6348. }
  6349. }
  6350. }
  6351. }
  6352. }
  6353. }
  6354. }
  6355. },
  6356. "500": {
  6357. "description": "",
  6358. "content": {
  6359. "application/json": {
  6360. "schema": {
  6361. "type": "object",
  6362. "required": [
  6363. "ocs"
  6364. ],
  6365. "properties": {
  6366. "ocs": {
  6367. "type": "object",
  6368. "required": [
  6369. "meta",
  6370. "data"
  6371. ],
  6372. "properties": {
  6373. "meta": {
  6374. "$ref": "#/components/schemas/OCSMeta"
  6375. },
  6376. "data": {
  6377. "type": "object",
  6378. "required": [
  6379. "message"
  6380. ],
  6381. "properties": {
  6382. "message": {
  6383. "type": "string"
  6384. }
  6385. }
  6386. }
  6387. }
  6388. }
  6389. }
  6390. }
  6391. }
  6392. }
  6393. }
  6394. }
  6395. }
  6396. },
  6397. "/ocs/v2.php/text2image/task/{id}/image/{index}": {
  6398. "get": {
  6399. "operationId": "text_to_image_api-get-image",
  6400. "summary": "This endpoint allows downloading the resulting image of a task",
  6401. "tags": [
  6402. "text_to_image_api"
  6403. ],
  6404. "security": [
  6405. {},
  6406. {
  6407. "bearer_auth": []
  6408. },
  6409. {
  6410. "basic_auth": []
  6411. }
  6412. ],
  6413. "parameters": [
  6414. {
  6415. "name": "id",
  6416. "in": "path",
  6417. "description": "The id of the task",
  6418. "required": true,
  6419. "schema": {
  6420. "type": "integer",
  6421. "format": "int64"
  6422. }
  6423. },
  6424. {
  6425. "name": "index",
  6426. "in": "path",
  6427. "description": "The index of the image to retrieve",
  6428. "required": true,
  6429. "schema": {
  6430. "type": "integer",
  6431. "format": "int64"
  6432. }
  6433. },
  6434. {
  6435. "name": "OCS-APIRequest",
  6436. "in": "header",
  6437. "description": "Required to be true for the API request to pass",
  6438. "required": true,
  6439. "schema": {
  6440. "type": "boolean",
  6441. "default": true
  6442. }
  6443. }
  6444. ],
  6445. "responses": {
  6446. "200": {
  6447. "description": "Image returned",
  6448. "content": {
  6449. "*/*": {
  6450. "schema": {
  6451. "type": "string",
  6452. "format": "binary"
  6453. }
  6454. }
  6455. }
  6456. },
  6457. "404": {
  6458. "description": "Task or image not found",
  6459. "content": {
  6460. "application/json": {
  6461. "schema": {
  6462. "type": "object",
  6463. "required": [
  6464. "ocs"
  6465. ],
  6466. "properties": {
  6467. "ocs": {
  6468. "type": "object",
  6469. "required": [
  6470. "meta",
  6471. "data"
  6472. ],
  6473. "properties": {
  6474. "meta": {
  6475. "$ref": "#/components/schemas/OCSMeta"
  6476. },
  6477. "data": {
  6478. "type": "object",
  6479. "required": [
  6480. "message"
  6481. ],
  6482. "properties": {
  6483. "message": {
  6484. "type": "string"
  6485. }
  6486. }
  6487. }
  6488. }
  6489. }
  6490. }
  6491. }
  6492. }
  6493. }
  6494. },
  6495. "500": {
  6496. "description": "",
  6497. "content": {
  6498. "application/json": {
  6499. "schema": {
  6500. "type": "object",
  6501. "required": [
  6502. "ocs"
  6503. ],
  6504. "properties": {
  6505. "ocs": {
  6506. "type": "object",
  6507. "required": [
  6508. "meta",
  6509. "data"
  6510. ],
  6511. "properties": {
  6512. "meta": {
  6513. "$ref": "#/components/schemas/OCSMeta"
  6514. },
  6515. "data": {
  6516. "type": "object",
  6517. "required": [
  6518. "message"
  6519. ],
  6520. "properties": {
  6521. "message": {
  6522. "type": "string"
  6523. }
  6524. }
  6525. }
  6526. }
  6527. }
  6528. }
  6529. }
  6530. }
  6531. }
  6532. }
  6533. }
  6534. }
  6535. },
  6536. "/ocs/v2.php/text2image/tasks/app/{appId}": {
  6537. "get": {
  6538. "operationId": "text_to_image_api-list-tasks-by-app",
  6539. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  6540. "tags": [
  6541. "text_to_image_api"
  6542. ],
  6543. "security": [
  6544. {
  6545. "bearer_auth": []
  6546. },
  6547. {
  6548. "basic_auth": []
  6549. }
  6550. ],
  6551. "requestBody": {
  6552. "required": false,
  6553. "content": {
  6554. "application/json": {
  6555. "schema": {
  6556. "type": "object",
  6557. "properties": {
  6558. "identifier": {
  6559. "type": "string",
  6560. "nullable": true,
  6561. "description": "An arbitrary identifier for the task"
  6562. }
  6563. }
  6564. }
  6565. }
  6566. }
  6567. },
  6568. "parameters": [
  6569. {
  6570. "name": "appId",
  6571. "in": "path",
  6572. "description": "ID of the app",
  6573. "required": true,
  6574. "schema": {
  6575. "type": "string"
  6576. }
  6577. },
  6578. {
  6579. "name": "OCS-APIRequest",
  6580. "in": "header",
  6581. "description": "Required to be true for the API request to pass",
  6582. "required": true,
  6583. "schema": {
  6584. "type": "boolean",
  6585. "default": true
  6586. }
  6587. }
  6588. ],
  6589. "responses": {
  6590. "200": {
  6591. "description": "Task list returned",
  6592. "content": {
  6593. "application/json": {
  6594. "schema": {
  6595. "type": "object",
  6596. "required": [
  6597. "ocs"
  6598. ],
  6599. "properties": {
  6600. "ocs": {
  6601. "type": "object",
  6602. "required": [
  6603. "meta",
  6604. "data"
  6605. ],
  6606. "properties": {
  6607. "meta": {
  6608. "$ref": "#/components/schemas/OCSMeta"
  6609. },
  6610. "data": {
  6611. "type": "object",
  6612. "required": [
  6613. "tasks"
  6614. ],
  6615. "properties": {
  6616. "tasks": {
  6617. "type": "array",
  6618. "items": {
  6619. "$ref": "#/components/schemas/TextToImageTask"
  6620. }
  6621. }
  6622. }
  6623. }
  6624. }
  6625. }
  6626. }
  6627. }
  6628. }
  6629. }
  6630. },
  6631. "500": {
  6632. "description": "",
  6633. "content": {
  6634. "application/json": {
  6635. "schema": {
  6636. "type": "object",
  6637. "required": [
  6638. "ocs"
  6639. ],
  6640. "properties": {
  6641. "ocs": {
  6642. "type": "object",
  6643. "required": [
  6644. "meta",
  6645. "data"
  6646. ],
  6647. "properties": {
  6648. "meta": {
  6649. "$ref": "#/components/schemas/OCSMeta"
  6650. },
  6651. "data": {
  6652. "type": "object",
  6653. "required": [
  6654. "message"
  6655. ],
  6656. "properties": {
  6657. "message": {
  6658. "type": "string"
  6659. }
  6660. }
  6661. }
  6662. }
  6663. }
  6664. }
  6665. }
  6666. }
  6667. }
  6668. }
  6669. }
  6670. }
  6671. },
  6672. "/ocs/v2.php/translation/languages": {
  6673. "get": {
  6674. "operationId": "translation_api-languages",
  6675. "summary": "Get the list of supported languages",
  6676. "tags": [
  6677. "translation_api"
  6678. ],
  6679. "security": [
  6680. {},
  6681. {
  6682. "bearer_auth": []
  6683. },
  6684. {
  6685. "basic_auth": []
  6686. }
  6687. ],
  6688. "parameters": [
  6689. {
  6690. "name": "OCS-APIRequest",
  6691. "in": "header",
  6692. "description": "Required to be true for the API request to pass",
  6693. "required": true,
  6694. "schema": {
  6695. "type": "boolean",
  6696. "default": true
  6697. }
  6698. }
  6699. ],
  6700. "responses": {
  6701. "200": {
  6702. "description": "Supported languages returned",
  6703. "content": {
  6704. "application/json": {
  6705. "schema": {
  6706. "type": "object",
  6707. "required": [
  6708. "ocs"
  6709. ],
  6710. "properties": {
  6711. "ocs": {
  6712. "type": "object",
  6713. "required": [
  6714. "meta",
  6715. "data"
  6716. ],
  6717. "properties": {
  6718. "meta": {
  6719. "$ref": "#/components/schemas/OCSMeta"
  6720. },
  6721. "data": {
  6722. "type": "object",
  6723. "required": [
  6724. "languages",
  6725. "languageDetection"
  6726. ],
  6727. "properties": {
  6728. "languages": {
  6729. "type": "array",
  6730. "items": {
  6731. "type": "object",
  6732. "required": [
  6733. "from",
  6734. "fromLabel",
  6735. "to",
  6736. "toLabel"
  6737. ],
  6738. "properties": {
  6739. "from": {
  6740. "type": "string"
  6741. },
  6742. "fromLabel": {
  6743. "type": "string"
  6744. },
  6745. "to": {
  6746. "type": "string"
  6747. },
  6748. "toLabel": {
  6749. "type": "string"
  6750. }
  6751. }
  6752. }
  6753. },
  6754. "languageDetection": {
  6755. "type": "boolean"
  6756. }
  6757. }
  6758. }
  6759. }
  6760. }
  6761. }
  6762. }
  6763. }
  6764. }
  6765. }
  6766. }
  6767. }
  6768. },
  6769. "/ocs/v2.php/translation/translate": {
  6770. "post": {
  6771. "operationId": "translation_api-translate",
  6772. "summary": "Translate a text",
  6773. "tags": [
  6774. "translation_api"
  6775. ],
  6776. "security": [
  6777. {},
  6778. {
  6779. "bearer_auth": []
  6780. },
  6781. {
  6782. "basic_auth": []
  6783. }
  6784. ],
  6785. "requestBody": {
  6786. "required": true,
  6787. "content": {
  6788. "application/json": {
  6789. "schema": {
  6790. "type": "object",
  6791. "required": [
  6792. "text",
  6793. "toLanguage"
  6794. ],
  6795. "properties": {
  6796. "text": {
  6797. "type": "string",
  6798. "description": "Text to be translated"
  6799. },
  6800. "fromLanguage": {
  6801. "type": "string",
  6802. "nullable": true,
  6803. "description": "Language to translate from"
  6804. },
  6805. "toLanguage": {
  6806. "type": "string",
  6807. "description": "Language to translate to"
  6808. }
  6809. }
  6810. }
  6811. }
  6812. }
  6813. },
  6814. "parameters": [
  6815. {
  6816. "name": "OCS-APIRequest",
  6817. "in": "header",
  6818. "description": "Required to be true for the API request to pass",
  6819. "required": true,
  6820. "schema": {
  6821. "type": "boolean",
  6822. "default": true
  6823. }
  6824. }
  6825. ],
  6826. "responses": {
  6827. "200": {
  6828. "description": "Translated text returned",
  6829. "content": {
  6830. "application/json": {
  6831. "schema": {
  6832. "type": "object",
  6833. "required": [
  6834. "ocs"
  6835. ],
  6836. "properties": {
  6837. "ocs": {
  6838. "type": "object",
  6839. "required": [
  6840. "meta",
  6841. "data"
  6842. ],
  6843. "properties": {
  6844. "meta": {
  6845. "$ref": "#/components/schemas/OCSMeta"
  6846. },
  6847. "data": {
  6848. "type": "object",
  6849. "required": [
  6850. "text",
  6851. "from"
  6852. ],
  6853. "properties": {
  6854. "text": {
  6855. "type": "string"
  6856. },
  6857. "from": {
  6858. "type": "string",
  6859. "nullable": true
  6860. }
  6861. }
  6862. }
  6863. }
  6864. }
  6865. }
  6866. }
  6867. }
  6868. }
  6869. },
  6870. "400": {
  6871. "description": "Language not detected or unable to translate",
  6872. "content": {
  6873. "application/json": {
  6874. "schema": {
  6875. "type": "object",
  6876. "required": [
  6877. "ocs"
  6878. ],
  6879. "properties": {
  6880. "ocs": {
  6881. "type": "object",
  6882. "required": [
  6883. "meta",
  6884. "data"
  6885. ],
  6886. "properties": {
  6887. "meta": {
  6888. "$ref": "#/components/schemas/OCSMeta"
  6889. },
  6890. "data": {
  6891. "type": "object",
  6892. "required": [
  6893. "message"
  6894. ],
  6895. "properties": {
  6896. "message": {
  6897. "type": "string"
  6898. },
  6899. "from": {
  6900. "type": "string",
  6901. "nullable": true
  6902. }
  6903. }
  6904. }
  6905. }
  6906. }
  6907. }
  6908. }
  6909. }
  6910. }
  6911. },
  6912. "412": {
  6913. "description": "Translating is not possible",
  6914. "content": {
  6915. "application/json": {
  6916. "schema": {
  6917. "type": "object",
  6918. "required": [
  6919. "ocs"
  6920. ],
  6921. "properties": {
  6922. "ocs": {
  6923. "type": "object",
  6924. "required": [
  6925. "meta",
  6926. "data"
  6927. ],
  6928. "properties": {
  6929. "meta": {
  6930. "$ref": "#/components/schemas/OCSMeta"
  6931. },
  6932. "data": {
  6933. "type": "object",
  6934. "required": [
  6935. "message"
  6936. ],
  6937. "properties": {
  6938. "message": {
  6939. "type": "string"
  6940. },
  6941. "from": {
  6942. "type": "string",
  6943. "nullable": true
  6944. }
  6945. }
  6946. }
  6947. }
  6948. }
  6949. }
  6950. }
  6951. }
  6952. }
  6953. },
  6954. "500": {
  6955. "description": "",
  6956. "content": {
  6957. "application/json": {
  6958. "schema": {
  6959. "type": "object",
  6960. "required": [
  6961. "ocs"
  6962. ],
  6963. "properties": {
  6964. "ocs": {
  6965. "type": "object",
  6966. "required": [
  6967. "meta",
  6968. "data"
  6969. ],
  6970. "properties": {
  6971. "meta": {
  6972. "$ref": "#/components/schemas/OCSMeta"
  6973. },
  6974. "data": {
  6975. "type": "object",
  6976. "required": [
  6977. "message"
  6978. ],
  6979. "properties": {
  6980. "message": {
  6981. "type": "string"
  6982. },
  6983. "from": {
  6984. "type": "string",
  6985. "nullable": true
  6986. }
  6987. }
  6988. }
  6989. }
  6990. }
  6991. }
  6992. }
  6993. }
  6994. }
  6995. }
  6996. }
  6997. }
  6998. },
  6999. "/ocs/v2.php/search/providers": {
  7000. "get": {
  7001. "operationId": "unified_search-get-providers",
  7002. "summary": "Get the providers for unified search",
  7003. "tags": [
  7004. "unified_search"
  7005. ],
  7006. "security": [
  7007. {
  7008. "bearer_auth": []
  7009. },
  7010. {
  7011. "basic_auth": []
  7012. }
  7013. ],
  7014. "requestBody": {
  7015. "required": false,
  7016. "content": {
  7017. "application/json": {
  7018. "schema": {
  7019. "type": "object",
  7020. "properties": {
  7021. "from": {
  7022. "type": "string",
  7023. "default": "",
  7024. "description": "the url the user is currently at"
  7025. }
  7026. }
  7027. }
  7028. }
  7029. }
  7030. },
  7031. "parameters": [
  7032. {
  7033. "name": "OCS-APIRequest",
  7034. "in": "header",
  7035. "description": "Required to be true for the API request to pass",
  7036. "required": true,
  7037. "schema": {
  7038. "type": "boolean",
  7039. "default": true
  7040. }
  7041. }
  7042. ],
  7043. "responses": {
  7044. "200": {
  7045. "description": "Providers returned",
  7046. "content": {
  7047. "application/json": {
  7048. "schema": {
  7049. "type": "object",
  7050. "required": [
  7051. "ocs"
  7052. ],
  7053. "properties": {
  7054. "ocs": {
  7055. "type": "object",
  7056. "required": [
  7057. "meta",
  7058. "data"
  7059. ],
  7060. "properties": {
  7061. "meta": {
  7062. "$ref": "#/components/schemas/OCSMeta"
  7063. },
  7064. "data": {
  7065. "type": "array",
  7066. "items": {
  7067. "$ref": "#/components/schemas/UnifiedSearchProvider"
  7068. }
  7069. }
  7070. }
  7071. }
  7072. }
  7073. }
  7074. }
  7075. }
  7076. }
  7077. }
  7078. }
  7079. },
  7080. "/ocs/v2.php/search/providers/{providerId}/search": {
  7081. "get": {
  7082. "operationId": "unified_search-search",
  7083. "summary": "Launch a search for a specific search provider.",
  7084. "description": "Additional filters are available for each provider. Send a request to /providers endpoint to list providers with their available filters.",
  7085. "tags": [
  7086. "unified_search"
  7087. ],
  7088. "security": [
  7089. {
  7090. "bearer_auth": []
  7091. },
  7092. {
  7093. "basic_auth": []
  7094. }
  7095. ],
  7096. "requestBody": {
  7097. "required": false,
  7098. "content": {
  7099. "application/json": {
  7100. "schema": {
  7101. "type": "object",
  7102. "properties": {
  7103. "term": {
  7104. "type": "string",
  7105. "default": "",
  7106. "description": "Term to search"
  7107. },
  7108. "sortOrder": {
  7109. "type": "integer",
  7110. "format": "int64",
  7111. "nullable": true,
  7112. "description": "Order of entries"
  7113. },
  7114. "limit": {
  7115. "type": "integer",
  7116. "format": "int64",
  7117. "nullable": true,
  7118. "description": "Maximum amount of entries, limited to 25"
  7119. },
  7120. "cursor": {
  7121. "nullable": true,
  7122. "description": "Offset for searching",
  7123. "oneOf": [
  7124. {
  7125. "type": "integer",
  7126. "format": "int64"
  7127. },
  7128. {
  7129. "type": "string"
  7130. }
  7131. ]
  7132. },
  7133. "from": {
  7134. "type": "string",
  7135. "default": "",
  7136. "description": "The current user URL"
  7137. }
  7138. }
  7139. }
  7140. }
  7141. }
  7142. },
  7143. "parameters": [
  7144. {
  7145. "name": "providerId",
  7146. "in": "path",
  7147. "description": "ID of the provider",
  7148. "required": true,
  7149. "schema": {
  7150. "type": "string"
  7151. }
  7152. },
  7153. {
  7154. "name": "OCS-APIRequest",
  7155. "in": "header",
  7156. "description": "Required to be true for the API request to pass",
  7157. "required": true,
  7158. "schema": {
  7159. "type": "boolean",
  7160. "default": true
  7161. }
  7162. }
  7163. ],
  7164. "responses": {
  7165. "200": {
  7166. "description": "Search entries returned",
  7167. "content": {
  7168. "application/json": {
  7169. "schema": {
  7170. "type": "object",
  7171. "required": [
  7172. "ocs"
  7173. ],
  7174. "properties": {
  7175. "ocs": {
  7176. "type": "object",
  7177. "required": [
  7178. "meta",
  7179. "data"
  7180. ],
  7181. "properties": {
  7182. "meta": {
  7183. "$ref": "#/components/schemas/OCSMeta"
  7184. },
  7185. "data": {
  7186. "$ref": "#/components/schemas/UnifiedSearchResult"
  7187. }
  7188. }
  7189. }
  7190. }
  7191. }
  7192. }
  7193. }
  7194. },
  7195. "400": {
  7196. "description": "Searching is not possible",
  7197. "content": {
  7198. "application/json": {
  7199. "schema": {
  7200. "type": "object",
  7201. "required": [
  7202. "ocs"
  7203. ],
  7204. "properties": {
  7205. "ocs": {
  7206. "type": "object",
  7207. "required": [
  7208. "meta",
  7209. "data"
  7210. ],
  7211. "properties": {
  7212. "meta": {
  7213. "$ref": "#/components/schemas/OCSMeta"
  7214. },
  7215. "data": {
  7216. "type": "string"
  7217. }
  7218. }
  7219. }
  7220. }
  7221. }
  7222. }
  7223. }
  7224. }
  7225. }
  7226. }
  7227. },
  7228. "/ocs/v2.php/core/whatsnew": {
  7229. "get": {
  7230. "operationId": "whats_new-get",
  7231. "summary": "Get the changes",
  7232. "tags": [
  7233. "whats_new"
  7234. ],
  7235. "security": [
  7236. {
  7237. "bearer_auth": []
  7238. },
  7239. {
  7240. "basic_auth": []
  7241. }
  7242. ],
  7243. "parameters": [
  7244. {
  7245. "name": "OCS-APIRequest",
  7246. "in": "header",
  7247. "description": "Required to be true for the API request to pass",
  7248. "required": true,
  7249. "schema": {
  7250. "type": "boolean",
  7251. "default": true
  7252. }
  7253. }
  7254. ],
  7255. "responses": {
  7256. "200": {
  7257. "description": "Changes returned",
  7258. "content": {
  7259. "application/json": {
  7260. "schema": {
  7261. "type": "object",
  7262. "required": [
  7263. "ocs"
  7264. ],
  7265. "properties": {
  7266. "ocs": {
  7267. "type": "object",
  7268. "required": [
  7269. "meta",
  7270. "data"
  7271. ],
  7272. "properties": {
  7273. "meta": {
  7274. "$ref": "#/components/schemas/OCSMeta"
  7275. },
  7276. "data": {
  7277. "type": "object",
  7278. "required": [
  7279. "changelogURL",
  7280. "product",
  7281. "version"
  7282. ],
  7283. "properties": {
  7284. "changelogURL": {
  7285. "type": "string"
  7286. },
  7287. "product": {
  7288. "type": "string"
  7289. },
  7290. "version": {
  7291. "type": "string"
  7292. },
  7293. "whatsNew": {
  7294. "type": "object",
  7295. "required": [
  7296. "regular",
  7297. "admin"
  7298. ],
  7299. "properties": {
  7300. "regular": {
  7301. "type": "array",
  7302. "items": {
  7303. "type": "string"
  7304. }
  7305. },
  7306. "admin": {
  7307. "type": "array",
  7308. "items": {
  7309. "type": "string"
  7310. }
  7311. }
  7312. }
  7313. }
  7314. }
  7315. }
  7316. }
  7317. }
  7318. }
  7319. }
  7320. }
  7321. }
  7322. },
  7323. "204": {
  7324. "description": "No changes"
  7325. }
  7326. }
  7327. },
  7328. "post": {
  7329. "operationId": "whats_new-dismiss",
  7330. "summary": "Dismiss the changes",
  7331. "tags": [
  7332. "whats_new"
  7333. ],
  7334. "security": [
  7335. {
  7336. "bearer_auth": []
  7337. },
  7338. {
  7339. "basic_auth": []
  7340. }
  7341. ],
  7342. "requestBody": {
  7343. "required": true,
  7344. "content": {
  7345. "application/json": {
  7346. "schema": {
  7347. "type": "object",
  7348. "required": [
  7349. "version"
  7350. ],
  7351. "properties": {
  7352. "version": {
  7353. "type": "string",
  7354. "description": "Version to dismiss the changes for"
  7355. }
  7356. }
  7357. }
  7358. }
  7359. }
  7360. },
  7361. "parameters": [
  7362. {
  7363. "name": "OCS-APIRequest",
  7364. "in": "header",
  7365. "description": "Required to be true for the API request to pass",
  7366. "required": true,
  7367. "schema": {
  7368. "type": "boolean",
  7369. "default": true
  7370. }
  7371. }
  7372. ],
  7373. "responses": {
  7374. "200": {
  7375. "description": "Changes dismissed",
  7376. "content": {
  7377. "application/json": {
  7378. "schema": {
  7379. "type": "object",
  7380. "required": [
  7381. "ocs"
  7382. ],
  7383. "properties": {
  7384. "ocs": {
  7385. "type": "object",
  7386. "required": [
  7387. "meta",
  7388. "data"
  7389. ],
  7390. "properties": {
  7391. "meta": {
  7392. "$ref": "#/components/schemas/OCSMeta"
  7393. },
  7394. "data": {}
  7395. }
  7396. }
  7397. }
  7398. }
  7399. }
  7400. }
  7401. },
  7402. "500": {
  7403. "description": "",
  7404. "content": {
  7405. "text/plain": {
  7406. "schema": {
  7407. "type": "string"
  7408. }
  7409. }
  7410. }
  7411. }
  7412. }
  7413. }
  7414. },
  7415. "/index.php/avatar/{userId}/{size}/dark": {
  7416. "get": {
  7417. "operationId": "avatar-get-avatar-dark",
  7418. "summary": "Get the dark avatar",
  7419. "tags": [
  7420. "avatar"
  7421. ],
  7422. "security": [
  7423. {},
  7424. {
  7425. "bearer_auth": []
  7426. },
  7427. {
  7428. "basic_auth": []
  7429. }
  7430. ],
  7431. "requestBody": {
  7432. "required": false,
  7433. "content": {
  7434. "application/json": {
  7435. "schema": {
  7436. "type": "object",
  7437. "properties": {
  7438. "guestFallback": {
  7439. "type": "boolean",
  7440. "default": false,
  7441. "description": "Fallback to guest avatar if not found"
  7442. }
  7443. }
  7444. }
  7445. }
  7446. }
  7447. },
  7448. "parameters": [
  7449. {
  7450. "name": "userId",
  7451. "in": "path",
  7452. "description": "ID of the user",
  7453. "required": true,
  7454. "schema": {
  7455. "type": "string"
  7456. }
  7457. },
  7458. {
  7459. "name": "size",
  7460. "in": "path",
  7461. "description": "Size of the avatar",
  7462. "required": true,
  7463. "schema": {
  7464. "type": "integer",
  7465. "format": "int64"
  7466. }
  7467. }
  7468. ],
  7469. "responses": {
  7470. "200": {
  7471. "description": "Avatar returned",
  7472. "headers": {
  7473. "X-NC-IsCustomAvatar": {
  7474. "schema": {
  7475. "type": "integer",
  7476. "format": "int64"
  7477. }
  7478. }
  7479. },
  7480. "content": {
  7481. "*/*": {
  7482. "schema": {
  7483. "type": "string",
  7484. "format": "binary"
  7485. }
  7486. }
  7487. }
  7488. },
  7489. "201": {
  7490. "description": "Avatar returned",
  7491. "headers": {
  7492. "X-NC-IsCustomAvatar": {
  7493. "schema": {
  7494. "type": "integer",
  7495. "format": "int64"
  7496. }
  7497. }
  7498. },
  7499. "content": {
  7500. "*/*": {
  7501. "schema": {
  7502. "type": "string",
  7503. "format": "binary"
  7504. }
  7505. }
  7506. }
  7507. },
  7508. "404": {
  7509. "description": "Avatar not found",
  7510. "content": {
  7511. "application/json": {
  7512. "schema": {}
  7513. }
  7514. }
  7515. },
  7516. "500": {
  7517. "description": ""
  7518. }
  7519. }
  7520. }
  7521. },
  7522. "/index.php/avatar/{userId}/{size}": {
  7523. "get": {
  7524. "operationId": "avatar-get-avatar",
  7525. "summary": "Get the avatar",
  7526. "tags": [
  7527. "avatar"
  7528. ],
  7529. "security": [
  7530. {},
  7531. {
  7532. "bearer_auth": []
  7533. },
  7534. {
  7535. "basic_auth": []
  7536. }
  7537. ],
  7538. "requestBody": {
  7539. "required": false,
  7540. "content": {
  7541. "application/json": {
  7542. "schema": {
  7543. "type": "object",
  7544. "properties": {
  7545. "guestFallback": {
  7546. "type": "boolean",
  7547. "default": false,
  7548. "description": "Fallback to guest avatar if not found"
  7549. }
  7550. }
  7551. }
  7552. }
  7553. }
  7554. },
  7555. "parameters": [
  7556. {
  7557. "name": "userId",
  7558. "in": "path",
  7559. "description": "ID of the user",
  7560. "required": true,
  7561. "schema": {
  7562. "type": "string"
  7563. }
  7564. },
  7565. {
  7566. "name": "size",
  7567. "in": "path",
  7568. "description": "Size of the avatar",
  7569. "required": true,
  7570. "schema": {
  7571. "type": "integer",
  7572. "format": "int64"
  7573. }
  7574. }
  7575. ],
  7576. "responses": {
  7577. "200": {
  7578. "description": "Avatar returned",
  7579. "headers": {
  7580. "X-NC-IsCustomAvatar": {
  7581. "schema": {
  7582. "type": "integer",
  7583. "format": "int64"
  7584. }
  7585. }
  7586. },
  7587. "content": {
  7588. "*/*": {
  7589. "schema": {
  7590. "type": "string",
  7591. "format": "binary"
  7592. }
  7593. }
  7594. }
  7595. },
  7596. "201": {
  7597. "description": "Avatar returned",
  7598. "headers": {
  7599. "X-NC-IsCustomAvatar": {
  7600. "schema": {
  7601. "type": "integer",
  7602. "format": "int64"
  7603. }
  7604. }
  7605. },
  7606. "content": {
  7607. "*/*": {
  7608. "schema": {
  7609. "type": "string",
  7610. "format": "binary"
  7611. }
  7612. }
  7613. }
  7614. },
  7615. "404": {
  7616. "description": "Avatar not found",
  7617. "content": {
  7618. "application/json": {
  7619. "schema": {}
  7620. }
  7621. }
  7622. },
  7623. "500": {
  7624. "description": ""
  7625. }
  7626. }
  7627. }
  7628. },
  7629. "/index.php/login/v2/poll": {
  7630. "post": {
  7631. "operationId": "client_flow_login_v2-poll",
  7632. "summary": "Poll the login flow credentials",
  7633. "tags": [
  7634. "client_flow_login_v2"
  7635. ],
  7636. "security": [
  7637. {},
  7638. {
  7639. "bearer_auth": []
  7640. },
  7641. {
  7642. "basic_auth": []
  7643. }
  7644. ],
  7645. "requestBody": {
  7646. "required": true,
  7647. "content": {
  7648. "application/json": {
  7649. "schema": {
  7650. "type": "object",
  7651. "required": [
  7652. "token"
  7653. ],
  7654. "properties": {
  7655. "token": {
  7656. "type": "string",
  7657. "description": "Token of the flow"
  7658. }
  7659. }
  7660. }
  7661. }
  7662. }
  7663. },
  7664. "responses": {
  7665. "200": {
  7666. "description": "Login flow credentials returned",
  7667. "content": {
  7668. "application/json": {
  7669. "schema": {
  7670. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  7671. }
  7672. }
  7673. }
  7674. },
  7675. "404": {
  7676. "description": "Login flow not found or completed",
  7677. "content": {
  7678. "application/json": {
  7679. "schema": {}
  7680. }
  7681. }
  7682. }
  7683. }
  7684. }
  7685. },
  7686. "/index.php/login/v2": {
  7687. "post": {
  7688. "operationId": "client_flow_login_v2-init",
  7689. "summary": "Init a login flow",
  7690. "tags": [
  7691. "client_flow_login_v2"
  7692. ],
  7693. "security": [
  7694. {},
  7695. {
  7696. "bearer_auth": []
  7697. },
  7698. {
  7699. "basic_auth": []
  7700. }
  7701. ],
  7702. "responses": {
  7703. "200": {
  7704. "description": "Login flow init returned",
  7705. "content": {
  7706. "application/json": {
  7707. "schema": {
  7708. "$ref": "#/components/schemas/LoginFlowV2"
  7709. }
  7710. }
  7711. }
  7712. }
  7713. }
  7714. }
  7715. },
  7716. "/index.php/avatar/guest/{guestName}/{size}": {
  7717. "get": {
  7718. "operationId": "guest_avatar-get-avatar",
  7719. "summary": "Returns a guest avatar image response",
  7720. "tags": [
  7721. "guest_avatar"
  7722. ],
  7723. "security": [
  7724. {},
  7725. {
  7726. "bearer_auth": []
  7727. },
  7728. {
  7729. "basic_auth": []
  7730. }
  7731. ],
  7732. "requestBody": {
  7733. "required": false,
  7734. "content": {
  7735. "application/json": {
  7736. "schema": {
  7737. "type": "object",
  7738. "properties": {
  7739. "darkTheme": {
  7740. "type": "boolean",
  7741. "nullable": true,
  7742. "default": false,
  7743. "description": "Return dark avatar"
  7744. }
  7745. }
  7746. }
  7747. }
  7748. }
  7749. },
  7750. "parameters": [
  7751. {
  7752. "name": "guestName",
  7753. "in": "path",
  7754. "description": "The guest name, e.g. \"Albert\"",
  7755. "required": true,
  7756. "schema": {
  7757. "type": "string"
  7758. }
  7759. },
  7760. {
  7761. "name": "size",
  7762. "in": "path",
  7763. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7764. "required": true,
  7765. "schema": {
  7766. "type": "string"
  7767. }
  7768. }
  7769. ],
  7770. "responses": {
  7771. "200": {
  7772. "description": "Custom avatar returned",
  7773. "headers": {
  7774. "X-NC-IsCustomAvatar": {
  7775. "schema": {
  7776. "type": "integer",
  7777. "format": "int64"
  7778. }
  7779. }
  7780. },
  7781. "content": {
  7782. "*/*": {
  7783. "schema": {
  7784. "type": "string",
  7785. "format": "binary"
  7786. }
  7787. }
  7788. }
  7789. },
  7790. "201": {
  7791. "description": "Avatar returned",
  7792. "headers": {
  7793. "X-NC-IsCustomAvatar": {
  7794. "schema": {
  7795. "type": "integer",
  7796. "format": "int64"
  7797. }
  7798. }
  7799. },
  7800. "content": {
  7801. "*/*": {
  7802. "schema": {
  7803. "type": "string",
  7804. "format": "binary"
  7805. }
  7806. }
  7807. }
  7808. },
  7809. "500": {
  7810. "description": ""
  7811. }
  7812. }
  7813. }
  7814. },
  7815. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  7816. "get": {
  7817. "operationId": "guest_avatar-get-avatar-dark",
  7818. "summary": "Returns a dark guest avatar image response",
  7819. "tags": [
  7820. "guest_avatar"
  7821. ],
  7822. "security": [
  7823. {},
  7824. {
  7825. "bearer_auth": []
  7826. },
  7827. {
  7828. "basic_auth": []
  7829. }
  7830. ],
  7831. "parameters": [
  7832. {
  7833. "name": "guestName",
  7834. "in": "path",
  7835. "description": "The guest name, e.g. \"Albert\"",
  7836. "required": true,
  7837. "schema": {
  7838. "type": "string"
  7839. }
  7840. },
  7841. {
  7842. "name": "size",
  7843. "in": "path",
  7844. "description": "The desired avatar size, e.g. 64 for 64x64px",
  7845. "required": true,
  7846. "schema": {
  7847. "type": "string"
  7848. }
  7849. }
  7850. ],
  7851. "responses": {
  7852. "200": {
  7853. "description": "Custom avatar returned",
  7854. "headers": {
  7855. "X-NC-IsCustomAvatar": {
  7856. "schema": {
  7857. "type": "integer",
  7858. "format": "int64"
  7859. }
  7860. }
  7861. },
  7862. "content": {
  7863. "*/*": {
  7864. "schema": {
  7865. "type": "string",
  7866. "format": "binary"
  7867. }
  7868. }
  7869. }
  7870. },
  7871. "201": {
  7872. "description": "Avatar returned",
  7873. "headers": {
  7874. "X-NC-IsCustomAvatar": {
  7875. "schema": {
  7876. "type": "integer",
  7877. "format": "int64"
  7878. }
  7879. }
  7880. },
  7881. "content": {
  7882. "*/*": {
  7883. "schema": {
  7884. "type": "string",
  7885. "format": "binary"
  7886. }
  7887. }
  7888. }
  7889. },
  7890. "500": {
  7891. "description": ""
  7892. }
  7893. }
  7894. }
  7895. },
  7896. "/index.php/login/confirm": {
  7897. "post": {
  7898. "operationId": "login-confirm-password",
  7899. "summary": "Confirm the user password",
  7900. "tags": [
  7901. "login"
  7902. ],
  7903. "security": [
  7904. {
  7905. "bearer_auth": []
  7906. },
  7907. {
  7908. "basic_auth": []
  7909. }
  7910. ],
  7911. "requestBody": {
  7912. "required": true,
  7913. "content": {
  7914. "application/json": {
  7915. "schema": {
  7916. "type": "object",
  7917. "required": [
  7918. "password"
  7919. ],
  7920. "properties": {
  7921. "password": {
  7922. "type": "string",
  7923. "description": "The password of the user"
  7924. }
  7925. }
  7926. }
  7927. }
  7928. }
  7929. },
  7930. "responses": {
  7931. "200": {
  7932. "description": "Password confirmation succeeded",
  7933. "content": {
  7934. "application/json": {
  7935. "schema": {
  7936. "type": "object",
  7937. "required": [
  7938. "lastLogin"
  7939. ],
  7940. "properties": {
  7941. "lastLogin": {
  7942. "type": "integer",
  7943. "format": "int64"
  7944. }
  7945. }
  7946. }
  7947. }
  7948. }
  7949. },
  7950. "403": {
  7951. "description": "Password confirmation failed",
  7952. "content": {
  7953. "application/json": {
  7954. "schema": {}
  7955. }
  7956. }
  7957. }
  7958. }
  7959. }
  7960. },
  7961. "/index.php/ocm-provider": {
  7962. "get": {
  7963. "operationId": "ocm-discovery",
  7964. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  7965. "tags": [
  7966. "ocm"
  7967. ],
  7968. "security": [
  7969. {},
  7970. {
  7971. "bearer_auth": []
  7972. },
  7973. {
  7974. "basic_auth": []
  7975. }
  7976. ],
  7977. "responses": {
  7978. "200": {
  7979. "description": "OCM Provider details returned",
  7980. "headers": {
  7981. "X-NEXTCLOUD-OCM-PROVIDERS": {
  7982. "schema": {
  7983. "type": "boolean",
  7984. "enum": [
  7985. true
  7986. ]
  7987. }
  7988. }
  7989. },
  7990. "content": {
  7991. "application/json": {
  7992. "schema": {
  7993. "type": "object",
  7994. "required": [
  7995. "enabled",
  7996. "apiVersion",
  7997. "endPoint",
  7998. "resourceTypes"
  7999. ],
  8000. "properties": {
  8001. "enabled": {
  8002. "type": "boolean"
  8003. },
  8004. "apiVersion": {
  8005. "type": "string"
  8006. },
  8007. "endPoint": {
  8008. "type": "string"
  8009. },
  8010. "resourceTypes": {
  8011. "type": "array",
  8012. "items": {
  8013. "type": "object",
  8014. "required": [
  8015. "name",
  8016. "shareTypes",
  8017. "protocols"
  8018. ],
  8019. "properties": {
  8020. "name": {
  8021. "type": "string"
  8022. },
  8023. "shareTypes": {
  8024. "type": "array",
  8025. "items": {
  8026. "type": "string"
  8027. }
  8028. },
  8029. "protocols": {
  8030. "type": "object",
  8031. "required": [
  8032. "webdav"
  8033. ],
  8034. "properties": {
  8035. "webdav": {
  8036. "type": "string"
  8037. }
  8038. }
  8039. }
  8040. }
  8041. }
  8042. }
  8043. }
  8044. }
  8045. }
  8046. }
  8047. },
  8048. "500": {
  8049. "description": "OCM not supported",
  8050. "content": {
  8051. "application/json": {
  8052. "schema": {
  8053. "type": "object",
  8054. "required": [
  8055. "message"
  8056. ],
  8057. "properties": {
  8058. "message": {
  8059. "type": "string"
  8060. }
  8061. }
  8062. }
  8063. }
  8064. }
  8065. }
  8066. }
  8067. }
  8068. },
  8069. "/index.php/core/preview.png": {
  8070. "get": {
  8071. "operationId": "preview-get-preview",
  8072. "summary": "Get a preview by file path",
  8073. "tags": [
  8074. "preview"
  8075. ],
  8076. "security": [
  8077. {
  8078. "bearer_auth": []
  8079. },
  8080. {
  8081. "basic_auth": []
  8082. }
  8083. ],
  8084. "requestBody": {
  8085. "required": false,
  8086. "content": {
  8087. "application/json": {
  8088. "schema": {
  8089. "type": "object",
  8090. "properties": {
  8091. "file": {
  8092. "type": "string",
  8093. "default": "",
  8094. "description": "Path of the file"
  8095. },
  8096. "x": {
  8097. "type": "integer",
  8098. "format": "int64",
  8099. "default": 32,
  8100. "description": "Width of the preview. A width of -1 will use the original image width."
  8101. },
  8102. "y": {
  8103. "type": "integer",
  8104. "format": "int64",
  8105. "default": 32,
  8106. "description": "Height of the preview. A height of -1 will use the original image height."
  8107. },
  8108. "a": {
  8109. "type": "boolean",
  8110. "default": false,
  8111. "description": "Preserve the aspect ratio"
  8112. },
  8113. "forceIcon": {
  8114. "type": "boolean",
  8115. "default": true,
  8116. "description": "Force returning an icon"
  8117. },
  8118. "mode": {
  8119. "type": "string",
  8120. "default": "fill",
  8121. "enum": [
  8122. "fill",
  8123. "cover"
  8124. ],
  8125. "description": "How to crop the image"
  8126. },
  8127. "mimeFallback": {
  8128. "type": "boolean",
  8129. "default": false,
  8130. "description": "Whether to fallback to the mime icon if no preview is available"
  8131. }
  8132. }
  8133. }
  8134. }
  8135. }
  8136. },
  8137. "responses": {
  8138. "200": {
  8139. "description": "Preview returned",
  8140. "content": {
  8141. "*/*": {
  8142. "schema": {
  8143. "type": "string",
  8144. "format": "binary"
  8145. }
  8146. }
  8147. }
  8148. },
  8149. "400": {
  8150. "description": "Getting preview is not possible",
  8151. "content": {
  8152. "application/json": {
  8153. "schema": {}
  8154. }
  8155. }
  8156. },
  8157. "403": {
  8158. "description": "Getting preview is not allowed",
  8159. "content": {
  8160. "application/json": {
  8161. "schema": {}
  8162. }
  8163. }
  8164. },
  8165. "404": {
  8166. "description": "Preview not found",
  8167. "content": {
  8168. "application/json": {
  8169. "schema": {}
  8170. }
  8171. }
  8172. },
  8173. "303": {
  8174. "description": "Redirect to the mime icon url if mimeFallback is true",
  8175. "headers": {
  8176. "Location": {
  8177. "schema": {
  8178. "type": "string"
  8179. }
  8180. }
  8181. }
  8182. }
  8183. }
  8184. }
  8185. },
  8186. "/index.php/core/preview": {
  8187. "get": {
  8188. "operationId": "preview-get-preview-by-file-id",
  8189. "summary": "Get a preview by file ID",
  8190. "tags": [
  8191. "preview"
  8192. ],
  8193. "security": [
  8194. {
  8195. "bearer_auth": []
  8196. },
  8197. {
  8198. "basic_auth": []
  8199. }
  8200. ],
  8201. "requestBody": {
  8202. "required": false,
  8203. "content": {
  8204. "application/json": {
  8205. "schema": {
  8206. "type": "object",
  8207. "properties": {
  8208. "fileId": {
  8209. "type": "integer",
  8210. "format": "int64",
  8211. "default": -1,
  8212. "description": "ID of the file"
  8213. },
  8214. "x": {
  8215. "type": "integer",
  8216. "format": "int64",
  8217. "default": 32,
  8218. "description": "Width of the preview. A width of -1 will use the original image width."
  8219. },
  8220. "y": {
  8221. "type": "integer",
  8222. "format": "int64",
  8223. "default": 32,
  8224. "description": "Height of the preview. A height of -1 will use the original image height."
  8225. },
  8226. "a": {
  8227. "type": "boolean",
  8228. "default": false,
  8229. "description": "Preserve the aspect ratio"
  8230. },
  8231. "forceIcon": {
  8232. "type": "boolean",
  8233. "default": true,
  8234. "description": "Force returning an icon"
  8235. },
  8236. "mode": {
  8237. "type": "string",
  8238. "default": "fill",
  8239. "enum": [
  8240. "fill",
  8241. "cover"
  8242. ],
  8243. "description": "How to crop the image"
  8244. },
  8245. "mimeFallback": {
  8246. "type": "boolean",
  8247. "default": false,
  8248. "description": "Whether to fallback to the mime icon if no preview is available"
  8249. }
  8250. }
  8251. }
  8252. }
  8253. }
  8254. },
  8255. "responses": {
  8256. "200": {
  8257. "description": "Preview returned",
  8258. "content": {
  8259. "*/*": {
  8260. "schema": {
  8261. "type": "string",
  8262. "format": "binary"
  8263. }
  8264. }
  8265. }
  8266. },
  8267. "400": {
  8268. "description": "Getting preview is not possible",
  8269. "content": {
  8270. "application/json": {
  8271. "schema": {}
  8272. }
  8273. }
  8274. },
  8275. "403": {
  8276. "description": "Getting preview is not allowed",
  8277. "content": {
  8278. "application/json": {
  8279. "schema": {}
  8280. }
  8281. }
  8282. },
  8283. "404": {
  8284. "description": "Preview not found",
  8285. "content": {
  8286. "application/json": {
  8287. "schema": {}
  8288. }
  8289. }
  8290. },
  8291. "303": {
  8292. "description": "Redirect to the mime icon url if mimeFallback is true",
  8293. "headers": {
  8294. "Location": {
  8295. "schema": {
  8296. "type": "string"
  8297. }
  8298. }
  8299. }
  8300. }
  8301. }
  8302. }
  8303. },
  8304. "/index.php/core/references/preview/{referenceId}": {
  8305. "get": {
  8306. "operationId": "reference-preview",
  8307. "summary": "Get a preview for a reference",
  8308. "tags": [
  8309. "reference"
  8310. ],
  8311. "security": [
  8312. {},
  8313. {
  8314. "bearer_auth": []
  8315. },
  8316. {
  8317. "basic_auth": []
  8318. }
  8319. ],
  8320. "parameters": [
  8321. {
  8322. "name": "referenceId",
  8323. "in": "path",
  8324. "description": "the reference cache key",
  8325. "required": true,
  8326. "schema": {
  8327. "type": "string"
  8328. }
  8329. }
  8330. ],
  8331. "responses": {
  8332. "200": {
  8333. "description": "Preview returned",
  8334. "content": {
  8335. "*/*": {
  8336. "schema": {
  8337. "type": "string",
  8338. "format": "binary"
  8339. }
  8340. }
  8341. }
  8342. },
  8343. "404": {
  8344. "description": "Reference not found",
  8345. "content": {
  8346. "application/json": {
  8347. "schema": {
  8348. "type": "string"
  8349. }
  8350. }
  8351. }
  8352. }
  8353. }
  8354. }
  8355. },
  8356. "/index.php/core/wipe/check": {
  8357. "post": {
  8358. "operationId": "wipe-check-wipe",
  8359. "summary": "Check if the device should be wiped",
  8360. "tags": [
  8361. "wipe"
  8362. ],
  8363. "security": [
  8364. {},
  8365. {
  8366. "bearer_auth": []
  8367. },
  8368. {
  8369. "basic_auth": []
  8370. }
  8371. ],
  8372. "requestBody": {
  8373. "required": true,
  8374. "content": {
  8375. "application/json": {
  8376. "schema": {
  8377. "type": "object",
  8378. "required": [
  8379. "token"
  8380. ],
  8381. "properties": {
  8382. "token": {
  8383. "type": "string",
  8384. "description": "App password"
  8385. }
  8386. }
  8387. }
  8388. }
  8389. }
  8390. },
  8391. "responses": {
  8392. "200": {
  8393. "description": "Device should be wiped",
  8394. "content": {
  8395. "application/json": {
  8396. "schema": {
  8397. "type": "object",
  8398. "required": [
  8399. "wipe"
  8400. ],
  8401. "properties": {
  8402. "wipe": {
  8403. "type": "boolean"
  8404. }
  8405. }
  8406. }
  8407. }
  8408. }
  8409. },
  8410. "404": {
  8411. "description": "Device should not be wiped",
  8412. "content": {
  8413. "application/json": {
  8414. "schema": {}
  8415. }
  8416. }
  8417. }
  8418. }
  8419. }
  8420. },
  8421. "/index.php/core/wipe/success": {
  8422. "post": {
  8423. "operationId": "wipe-wipe-done",
  8424. "summary": "Finish the wipe",
  8425. "tags": [
  8426. "wipe"
  8427. ],
  8428. "security": [
  8429. {},
  8430. {
  8431. "bearer_auth": []
  8432. },
  8433. {
  8434. "basic_auth": []
  8435. }
  8436. ],
  8437. "requestBody": {
  8438. "required": true,
  8439. "content": {
  8440. "application/json": {
  8441. "schema": {
  8442. "type": "object",
  8443. "required": [
  8444. "token"
  8445. ],
  8446. "properties": {
  8447. "token": {
  8448. "type": "string",
  8449. "description": "App password"
  8450. }
  8451. }
  8452. }
  8453. }
  8454. }
  8455. },
  8456. "responses": {
  8457. "200": {
  8458. "description": "Wipe finished successfully",
  8459. "content": {
  8460. "application/json": {
  8461. "schema": {}
  8462. }
  8463. }
  8464. },
  8465. "404": {
  8466. "description": "Device should not be wiped",
  8467. "content": {
  8468. "application/json": {
  8469. "schema": {}
  8470. }
  8471. }
  8472. }
  8473. }
  8474. }
  8475. },
  8476. "/status.php": {
  8477. "get": {
  8478. "operationId": "get-status",
  8479. "responses": {
  8480. "200": {
  8481. "description": "Status returned",
  8482. "content": {
  8483. "application/json": {
  8484. "schema": {
  8485. "$ref": "#/components/schemas/Status"
  8486. }
  8487. }
  8488. }
  8489. }
  8490. }
  8491. }
  8492. },
  8493. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/file/{fileId}": {
  8494. "get": {
  8495. "operationId": "task_processing_api-get-file-contents-ex-app",
  8496. "summary": "Returns the contents of a file referenced in a task(ExApp route version)",
  8497. "description": "This endpoint requires admin access",
  8498. "tags": [
  8499. "task_processing_api"
  8500. ],
  8501. "security": [
  8502. {
  8503. "bearer_auth": []
  8504. },
  8505. {
  8506. "basic_auth": []
  8507. }
  8508. ],
  8509. "parameters": [
  8510. {
  8511. "name": "taskId",
  8512. "in": "path",
  8513. "description": "The id of the task",
  8514. "required": true,
  8515. "schema": {
  8516. "type": "integer",
  8517. "format": "int64"
  8518. }
  8519. },
  8520. {
  8521. "name": "fileId",
  8522. "in": "path",
  8523. "description": "The file id of the file to retrieve",
  8524. "required": true,
  8525. "schema": {
  8526. "type": "integer",
  8527. "format": "int64"
  8528. }
  8529. },
  8530. {
  8531. "name": "OCS-APIRequest",
  8532. "in": "header",
  8533. "description": "Required to be true for the API request to pass",
  8534. "required": true,
  8535. "schema": {
  8536. "type": "boolean",
  8537. "default": true
  8538. }
  8539. }
  8540. ],
  8541. "responses": {
  8542. "200": {
  8543. "description": "File content returned",
  8544. "content": {
  8545. "*/*": {
  8546. "schema": {
  8547. "type": "string",
  8548. "format": "binary"
  8549. }
  8550. }
  8551. }
  8552. },
  8553. "500": {
  8554. "description": "",
  8555. "content": {
  8556. "application/json": {
  8557. "schema": {
  8558. "type": "object",
  8559. "required": [
  8560. "ocs"
  8561. ],
  8562. "properties": {
  8563. "ocs": {
  8564. "type": "object",
  8565. "required": [
  8566. "meta",
  8567. "data"
  8568. ],
  8569. "properties": {
  8570. "meta": {
  8571. "$ref": "#/components/schemas/OCSMeta"
  8572. },
  8573. "data": {
  8574. "type": "object",
  8575. "required": [
  8576. "message"
  8577. ],
  8578. "properties": {
  8579. "message": {
  8580. "type": "string"
  8581. }
  8582. }
  8583. }
  8584. }
  8585. }
  8586. }
  8587. }
  8588. }
  8589. }
  8590. },
  8591. "404": {
  8592. "description": "Task or file not found",
  8593. "content": {
  8594. "application/json": {
  8595. "schema": {
  8596. "type": "object",
  8597. "required": [
  8598. "ocs"
  8599. ],
  8600. "properties": {
  8601. "ocs": {
  8602. "type": "object",
  8603. "required": [
  8604. "meta",
  8605. "data"
  8606. ],
  8607. "properties": {
  8608. "meta": {
  8609. "$ref": "#/components/schemas/OCSMeta"
  8610. },
  8611. "data": {
  8612. "type": "object",
  8613. "required": [
  8614. "message"
  8615. ],
  8616. "properties": {
  8617. "message": {
  8618. "type": "string"
  8619. }
  8620. }
  8621. }
  8622. }
  8623. }
  8624. }
  8625. }
  8626. }
  8627. }
  8628. }
  8629. }
  8630. }
  8631. },
  8632. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/progress": {
  8633. "post": {
  8634. "operationId": "task_processing_api-set-progress",
  8635. "summary": "Sets the task progress",
  8636. "description": "This endpoint requires admin access",
  8637. "tags": [
  8638. "task_processing_api"
  8639. ],
  8640. "security": [
  8641. {
  8642. "bearer_auth": []
  8643. },
  8644. {
  8645. "basic_auth": []
  8646. }
  8647. ],
  8648. "requestBody": {
  8649. "required": true,
  8650. "content": {
  8651. "application/json": {
  8652. "schema": {
  8653. "type": "object",
  8654. "required": [
  8655. "progress"
  8656. ],
  8657. "properties": {
  8658. "progress": {
  8659. "type": "number",
  8660. "format": "double",
  8661. "description": "The progress"
  8662. }
  8663. }
  8664. }
  8665. }
  8666. }
  8667. },
  8668. "parameters": [
  8669. {
  8670. "name": "taskId",
  8671. "in": "path",
  8672. "description": "The id of the task",
  8673. "required": true,
  8674. "schema": {
  8675. "type": "integer",
  8676. "format": "int64"
  8677. }
  8678. },
  8679. {
  8680. "name": "OCS-APIRequest",
  8681. "in": "header",
  8682. "description": "Required to be true for the API request to pass",
  8683. "required": true,
  8684. "schema": {
  8685. "type": "boolean",
  8686. "default": true
  8687. }
  8688. }
  8689. ],
  8690. "responses": {
  8691. "200": {
  8692. "description": "Progress updated successfully",
  8693. "content": {
  8694. "application/json": {
  8695. "schema": {
  8696. "type": "object",
  8697. "required": [
  8698. "ocs"
  8699. ],
  8700. "properties": {
  8701. "ocs": {
  8702. "type": "object",
  8703. "required": [
  8704. "meta",
  8705. "data"
  8706. ],
  8707. "properties": {
  8708. "meta": {
  8709. "$ref": "#/components/schemas/OCSMeta"
  8710. },
  8711. "data": {
  8712. "type": "object",
  8713. "required": [
  8714. "task"
  8715. ],
  8716. "properties": {
  8717. "task": {
  8718. "$ref": "#/components/schemas/TaskProcessingTask"
  8719. }
  8720. }
  8721. }
  8722. }
  8723. }
  8724. }
  8725. }
  8726. }
  8727. }
  8728. },
  8729. "500": {
  8730. "description": "",
  8731. "content": {
  8732. "application/json": {
  8733. "schema": {
  8734. "type": "object",
  8735. "required": [
  8736. "ocs"
  8737. ],
  8738. "properties": {
  8739. "ocs": {
  8740. "type": "object",
  8741. "required": [
  8742. "meta",
  8743. "data"
  8744. ],
  8745. "properties": {
  8746. "meta": {
  8747. "$ref": "#/components/schemas/OCSMeta"
  8748. },
  8749. "data": {
  8750. "type": "object",
  8751. "required": [
  8752. "message"
  8753. ],
  8754. "properties": {
  8755. "message": {
  8756. "type": "string"
  8757. }
  8758. }
  8759. }
  8760. }
  8761. }
  8762. }
  8763. }
  8764. }
  8765. }
  8766. },
  8767. "404": {
  8768. "description": "Task not found",
  8769. "content": {
  8770. "application/json": {
  8771. "schema": {
  8772. "type": "object",
  8773. "required": [
  8774. "ocs"
  8775. ],
  8776. "properties": {
  8777. "ocs": {
  8778. "type": "object",
  8779. "required": [
  8780. "meta",
  8781. "data"
  8782. ],
  8783. "properties": {
  8784. "meta": {
  8785. "$ref": "#/components/schemas/OCSMeta"
  8786. },
  8787. "data": {
  8788. "type": "object",
  8789. "required": [
  8790. "message"
  8791. ],
  8792. "properties": {
  8793. "message": {
  8794. "type": "string"
  8795. }
  8796. }
  8797. }
  8798. }
  8799. }
  8800. }
  8801. }
  8802. }
  8803. }
  8804. }
  8805. }
  8806. }
  8807. },
  8808. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/result": {
  8809. "post": {
  8810. "operationId": "task_processing_api-set-result",
  8811. "summary": "Sets the task result",
  8812. "description": "This endpoint requires admin access",
  8813. "tags": [
  8814. "task_processing_api"
  8815. ],
  8816. "security": [
  8817. {
  8818. "bearer_auth": []
  8819. },
  8820. {
  8821. "basic_auth": []
  8822. }
  8823. ],
  8824. "requestBody": {
  8825. "required": false,
  8826. "content": {
  8827. "application/json": {
  8828. "schema": {
  8829. "type": "object",
  8830. "properties": {
  8831. "output": {
  8832. "type": "object",
  8833. "nullable": true,
  8834. "description": "The resulting task output",
  8835. "additionalProperties": {
  8836. "type": "object"
  8837. }
  8838. },
  8839. "errorMessage": {
  8840. "type": "string",
  8841. "nullable": true,
  8842. "description": "An error message if the task failed"
  8843. }
  8844. }
  8845. }
  8846. }
  8847. }
  8848. },
  8849. "parameters": [
  8850. {
  8851. "name": "taskId",
  8852. "in": "path",
  8853. "description": "The id of the task",
  8854. "required": true,
  8855. "schema": {
  8856. "type": "integer",
  8857. "format": "int64"
  8858. }
  8859. },
  8860. {
  8861. "name": "OCS-APIRequest",
  8862. "in": "header",
  8863. "description": "Required to be true for the API request to pass",
  8864. "required": true,
  8865. "schema": {
  8866. "type": "boolean",
  8867. "default": true
  8868. }
  8869. }
  8870. ],
  8871. "responses": {
  8872. "200": {
  8873. "description": "Result updated successfully",
  8874. "content": {
  8875. "application/json": {
  8876. "schema": {
  8877. "type": "object",
  8878. "required": [
  8879. "ocs"
  8880. ],
  8881. "properties": {
  8882. "ocs": {
  8883. "type": "object",
  8884. "required": [
  8885. "meta",
  8886. "data"
  8887. ],
  8888. "properties": {
  8889. "meta": {
  8890. "$ref": "#/components/schemas/OCSMeta"
  8891. },
  8892. "data": {
  8893. "type": "object",
  8894. "required": [
  8895. "task"
  8896. ],
  8897. "properties": {
  8898. "task": {
  8899. "$ref": "#/components/schemas/TaskProcessingTask"
  8900. }
  8901. }
  8902. }
  8903. }
  8904. }
  8905. }
  8906. }
  8907. }
  8908. }
  8909. },
  8910. "500": {
  8911. "description": "",
  8912. "content": {
  8913. "application/json": {
  8914. "schema": {
  8915. "type": "object",
  8916. "required": [
  8917. "ocs"
  8918. ],
  8919. "properties": {
  8920. "ocs": {
  8921. "type": "object",
  8922. "required": [
  8923. "meta",
  8924. "data"
  8925. ],
  8926. "properties": {
  8927. "meta": {
  8928. "$ref": "#/components/schemas/OCSMeta"
  8929. },
  8930. "data": {
  8931. "type": "object",
  8932. "required": [
  8933. "message"
  8934. ],
  8935. "properties": {
  8936. "message": {
  8937. "type": "string"
  8938. }
  8939. }
  8940. }
  8941. }
  8942. }
  8943. }
  8944. }
  8945. }
  8946. }
  8947. },
  8948. "404": {
  8949. "description": "Task not found",
  8950. "content": {
  8951. "application/json": {
  8952. "schema": {
  8953. "type": "object",
  8954. "required": [
  8955. "ocs"
  8956. ],
  8957. "properties": {
  8958. "ocs": {
  8959. "type": "object",
  8960. "required": [
  8961. "meta",
  8962. "data"
  8963. ],
  8964. "properties": {
  8965. "meta": {
  8966. "$ref": "#/components/schemas/OCSMeta"
  8967. },
  8968. "data": {
  8969. "type": "object",
  8970. "required": [
  8971. "message"
  8972. ],
  8973. "properties": {
  8974. "message": {
  8975. "type": "string"
  8976. }
  8977. }
  8978. }
  8979. }
  8980. }
  8981. }
  8982. }
  8983. }
  8984. }
  8985. }
  8986. }
  8987. }
  8988. },
  8989. "/ocs/v2.php/taskprocessing/tasks_provider/next": {
  8990. "get": {
  8991. "operationId": "task_processing_api-get-next-scheduled-task",
  8992. "summary": "Returns the next scheduled task for the taskTypeId",
  8993. "description": "This endpoint requires admin access",
  8994. "tags": [
  8995. "task_processing_api"
  8996. ],
  8997. "security": [
  8998. {
  8999. "bearer_auth": []
  9000. },
  9001. {
  9002. "basic_auth": []
  9003. }
  9004. ],
  9005. "requestBody": {
  9006. "required": true,
  9007. "content": {
  9008. "application/json": {
  9009. "schema": {
  9010. "type": "object",
  9011. "required": [
  9012. "providerIds",
  9013. "taskTypeIds"
  9014. ],
  9015. "properties": {
  9016. "providerIds": {
  9017. "type": "array",
  9018. "description": "The ids of the providers",
  9019. "items": {
  9020. "type": "string"
  9021. }
  9022. },
  9023. "taskTypeIds": {
  9024. "type": "array",
  9025. "description": "The ids of the task types",
  9026. "items": {
  9027. "type": "string"
  9028. }
  9029. }
  9030. }
  9031. }
  9032. }
  9033. }
  9034. },
  9035. "parameters": [
  9036. {
  9037. "name": "OCS-APIRequest",
  9038. "in": "header",
  9039. "description": "Required to be true for the API request to pass",
  9040. "required": true,
  9041. "schema": {
  9042. "type": "boolean",
  9043. "default": true
  9044. }
  9045. }
  9046. ],
  9047. "responses": {
  9048. "200": {
  9049. "description": "Task returned",
  9050. "content": {
  9051. "application/json": {
  9052. "schema": {
  9053. "type": "object",
  9054. "required": [
  9055. "ocs"
  9056. ],
  9057. "properties": {
  9058. "ocs": {
  9059. "type": "object",
  9060. "required": [
  9061. "meta",
  9062. "data"
  9063. ],
  9064. "properties": {
  9065. "meta": {
  9066. "$ref": "#/components/schemas/OCSMeta"
  9067. },
  9068. "data": {
  9069. "type": "object",
  9070. "required": [
  9071. "task",
  9072. "provider"
  9073. ],
  9074. "properties": {
  9075. "task": {
  9076. "$ref": "#/components/schemas/TaskProcessingTask"
  9077. },
  9078. "provider": {
  9079. "type": "object",
  9080. "required": [
  9081. "name"
  9082. ],
  9083. "properties": {
  9084. "name": {
  9085. "type": "string"
  9086. }
  9087. }
  9088. }
  9089. }
  9090. }
  9091. }
  9092. }
  9093. }
  9094. }
  9095. }
  9096. }
  9097. },
  9098. "204": {
  9099. "description": "No task found"
  9100. },
  9101. "500": {
  9102. "description": "",
  9103. "content": {
  9104. "application/json": {
  9105. "schema": {
  9106. "type": "object",
  9107. "required": [
  9108. "ocs"
  9109. ],
  9110. "properties": {
  9111. "ocs": {
  9112. "type": "object",
  9113. "required": [
  9114. "meta",
  9115. "data"
  9116. ],
  9117. "properties": {
  9118. "meta": {
  9119. "$ref": "#/components/schemas/OCSMeta"
  9120. },
  9121. "data": {
  9122. "type": "object",
  9123. "required": [
  9124. "message"
  9125. ],
  9126. "properties": {
  9127. "message": {
  9128. "type": "string"
  9129. }
  9130. }
  9131. }
  9132. }
  9133. }
  9134. }
  9135. }
  9136. }
  9137. }
  9138. }
  9139. }
  9140. }
  9141. }
  9142. },
  9143. "tags": [
  9144. {
  9145. "name": "avatar",
  9146. "description": "Class AvatarController"
  9147. },
  9148. {
  9149. "name": "guest_avatar",
  9150. "description": "This controller handles guest avatar requests."
  9151. },
  9152. {
  9153. "name": "ocm",
  9154. "description": "Controller about the endpoint /ocm-provider/"
  9155. }
  9156. ]
  9157. }