1
0

openapi.json 364 KB

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