wekan.html 696 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>Wekan REST API</title>
  8. <style>
  9. </style>
  10. <style media="screen">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  11. /**
  12. * 1. Set default font family to sans-serif.
  13. * 2. Prevent iOS text size adjust after orientation change, without disabling
  14. * user zoom.
  15. */
  16. html {
  17. font-family: sans-serif;
  18. /* 1 */
  19. -ms-text-size-adjust: 100%;
  20. /* 2 */
  21. -webkit-text-size-adjust: 100%;
  22. /* 2 */ }
  23. /**
  24. * Remove default margin.
  25. */
  26. body {
  27. margin: 0; }
  28. /* HTML5 display definitions
  29. ========================================================================== */
  30. /**
  31. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  32. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  33. * and Firefox.
  34. * Correct `block` display not defined for `main` in IE 11.
  35. */
  36. article,
  37. aside,
  38. details,
  39. figcaption,
  40. figure,
  41. footer,
  42. header,
  43. hgroup,
  44. main,
  45. menu,
  46. nav,
  47. section,
  48. summary {
  49. display: block; }
  50. /**
  51. * 1. Correct `inline-block` display not defined in IE 8/9.
  52. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  53. */
  54. audio,
  55. canvas,
  56. progress,
  57. video {
  58. display: inline-block;
  59. /* 1 */
  60. vertical-align: baseline;
  61. /* 2 */ }
  62. /**
  63. * Prevent modern browsers from displaying `audio` without controls.
  64. * Remove excess height in iOS 5 devices.
  65. */
  66. audio:not([controls]) {
  67. display: none;
  68. height: 0; }
  69. /**
  70. * Address `[hidden]` styling not present in IE 8/9/10.
  71. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  72. */
  73. [hidden],
  74. template {
  75. display: none; }
  76. /* Links
  77. ========================================================================== */
  78. /**
  79. * Remove the gray background color from active links in IE 10.
  80. */
  81. a {
  82. background-color: transparent; }
  83. /**
  84. * Improve readability when focused and also mouse hovered in all browsers.
  85. */
  86. a:active,
  87. a:hover {
  88. outline: 0; }
  89. /* Text-level semantics
  90. ========================================================================== */
  91. /**
  92. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  93. */
  94. abbr[title] {
  95. border-bottom: 1px dotted; }
  96. /**
  97. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  98. */
  99. b,
  100. strong {
  101. font-weight: bold; }
  102. /**
  103. * Address styling not present in Safari and Chrome.
  104. */
  105. dfn {
  106. font-style: italic; }
  107. /**
  108. * Address variable `h1` font-size and margin within `section` and `article`
  109. * contexts in Firefox 4+, Safari, and Chrome.
  110. */
  111. h1 {
  112. font-size: 2em;
  113. margin: 0.67em 0; }
  114. /**
  115. * Address styling not present in IE 8/9.
  116. */
  117. mark {
  118. background: #ff0;
  119. color: #000; }
  120. /**
  121. * Address inconsistent and variable font size in all browsers.
  122. */
  123. small {
  124. font-size: 80%; }
  125. /**
  126. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  127. */
  128. sub,
  129. sup {
  130. font-size: 75%;
  131. line-height: 0;
  132. position: relative;
  133. vertical-align: baseline; }
  134. sup {
  135. top: -0.5em; }
  136. sub {
  137. bottom: -0.25em; }
  138. /* Embedded content
  139. ========================================================================== */
  140. /**
  141. * Remove border when inside `a` element in IE 8/9/10.
  142. */
  143. img {
  144. border: 0; }
  145. /**
  146. * Correct overflow not hidden in IE 9/10/11.
  147. */
  148. svg:not(:root) {
  149. overflow: hidden; }
  150. /* Grouping content
  151. ========================================================================== */
  152. /**
  153. * Address margin not present in IE 8/9 and Safari.
  154. */
  155. figure {
  156. margin: 1em 40px; }
  157. /**
  158. * Address differences between Firefox and other browsers.
  159. */
  160. hr {
  161. -moz-box-sizing: content-box;
  162. box-sizing: content-box;
  163. height: 0; }
  164. /**
  165. * Contain overflow in all browsers.
  166. */
  167. pre {
  168. overflow: auto; }
  169. /**
  170. * Address odd `em`-unit font size rendering in all browsers.
  171. */
  172. code,
  173. kbd,
  174. pre,
  175. samp {
  176. font-family: monospace, monospace;
  177. font-size: 1em; }
  178. /* Forms
  179. ========================================================================== */
  180. /**
  181. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  182. * styling of `select`, unless a `border` property is set.
  183. */
  184. /**
  185. * 1. Correct color not being inherited.
  186. * Known issue: affects color of disabled elements.
  187. * 2. Correct font properties not being inherited.
  188. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  189. */
  190. button,
  191. input,
  192. optgroup,
  193. select,
  194. textarea {
  195. color: inherit;
  196. /* 1 */
  197. font: inherit;
  198. /* 2 */
  199. margin: 0;
  200. /* 3 */ }
  201. /**
  202. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  203. */
  204. button {
  205. overflow: visible; }
  206. /**
  207. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  208. * All other form control elements do not inherit `text-transform` values.
  209. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  210. * Correct `select` style inheritance in Firefox.
  211. */
  212. button,
  213. select {
  214. text-transform: none; }
  215. /**
  216. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  217. * and `video` controls.
  218. * 2. Correct inability to style clickable `input` types in iOS.
  219. * 3. Improve usability and consistency of cursor style between image-type
  220. * `input` and others.
  221. */
  222. button,
  223. html input[type="button"],
  224. input[type="reset"],
  225. input[type="submit"] {
  226. -webkit-appearance: button;
  227. /* 2 */
  228. cursor: pointer;
  229. /* 3 */ }
  230. /**
  231. * Re-set default cursor for disabled elements.
  232. */
  233. button[disabled],
  234. html input[disabled] {
  235. cursor: default; }
  236. /**
  237. * Remove inner padding and border in Firefox 4+.
  238. */
  239. button::-moz-focus-inner,
  240. input::-moz-focus-inner {
  241. border: 0;
  242. padding: 0; }
  243. /**
  244. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  245. * the UA stylesheet.
  246. */
  247. input {
  248. line-height: normal; }
  249. /**
  250. * It's recommended that you don't attempt to style these elements.
  251. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  252. *
  253. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  254. * 2. Remove excess padding in IE 8/9/10.
  255. */
  256. input[type="checkbox"],
  257. input[type="radio"] {
  258. box-sizing: border-box;
  259. /* 1 */
  260. padding: 0;
  261. /* 2 */ }
  262. /**
  263. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  264. * `font-size` values of the `input`, it causes the cursor style of the
  265. * decrement button to change from `default` to `text`.
  266. */
  267. input[type="number"]::-webkit-inner-spin-button,
  268. input[type="number"]::-webkit-outer-spin-button {
  269. height: auto; }
  270. /**
  271. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  272. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  273. * (include `-moz` to future-proof).
  274. */
  275. input[type="search"] {
  276. -webkit-appearance: textfield;
  277. /* 1 */
  278. -moz-box-sizing: content-box;
  279. -webkit-box-sizing: content-box;
  280. /* 2 */
  281. box-sizing: content-box; }
  282. /**
  283. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  284. * Safari (but not Chrome) clips the cancel button when the search input has
  285. * padding (and `textfield` appearance).
  286. */
  287. input[type="search"]::-webkit-search-cancel-button,
  288. input[type="search"]::-webkit-search-decoration {
  289. -webkit-appearance: none; }
  290. /**
  291. * Define consistent border, margin, and padding.
  292. */
  293. fieldset {
  294. border: 1px solid #c0c0c0;
  295. margin: 0 2px;
  296. padding: 0.35em 0.625em 0.75em; }
  297. /**
  298. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  299. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  300. */
  301. legend {
  302. border: 0;
  303. /* 1 */
  304. padding: 0;
  305. /* 2 */ }
  306. /**
  307. * Remove default vertical scrollbar in IE 8/9/10/11.
  308. */
  309. textarea {
  310. overflow: auto; }
  311. /**
  312. * Don't inherit the `font-weight` (applied by a rule above).
  313. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  314. */
  315. optgroup {
  316. font-weight: bold; }
  317. /* Tables
  318. ========================================================================== */
  319. /**
  320. * Remove most spacing between table cells.
  321. */
  322. table {
  323. border-collapse: collapse;
  324. border-spacing: 0; }
  325. td,
  326. th {
  327. padding: 0; }
  328. /*
  329. Copyright 2008-2013 Concur Technologies, Inc.
  330. Licensed under the Apache License, Version 2.0 (the "License"); you may
  331. not use this file except in compliance with the License. You may obtain
  332. a copy of the License at
  333. http://www.apache.org/licenses/LICENSE-2.0
  334. Unless required by applicable law or agreed to in writing, software
  335. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  336. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  337. License for the specific language governing permissions and limitations
  338. under the License.
  339. */
  340. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, html, body {
  341. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  342. font-size: 14px; }
  343. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  344. font-weight: bold; }
  345. .content code, .content pre {
  346. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  347. font-size: 12px;
  348. line-height: 1.5; }
  349. .content code {
  350. word-break: break-all;
  351. hyphens: auto; }
  352. @font-face {
  353. font-family: 'slate';
  354. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  355. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  356. font-weight: normal;
  357. font-style: normal; }
  358. .content aside.warning:before, .content aside.notice:before, .content aside.success:before, .toc-wrapper > .search:before {
  359. font-family: 'slate';
  360. speak: none;
  361. font-style: normal;
  362. font-weight: normal;
  363. font-variant: normal;
  364. text-transform: none;
  365. line-height: 1; }
  366. .content aside.warning:before {
  367. content: "\e600"; }
  368. .content aside.notice:before {
  369. content: "\e602"; }
  370. .content aside.success:before {
  371. content: "\e606"; }
  372. .toc-wrapper > .search:before {
  373. content: "\e607"; }
  374. /*
  375. Copyright 2008-2013 Concur Technologies, Inc.
  376. Licensed under the Apache License, Version 2.0 (the "License"); you may
  377. not use this file except in compliance with the License. You may obtain
  378. a copy of the License at
  379. http://www.apache.org/licenses/LICENSE-2.0
  380. Unless required by applicable law or agreed to in writing, software
  381. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  382. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  383. License for the specific language governing permissions and limitations
  384. under the License.
  385. */
  386. html, body {
  387. color: #333;
  388. padding: 0;
  389. margin: 0;
  390. -webkit-font-smoothing: antialiased;
  391. -moz-osx-font-smoothing: grayscale;
  392. background-color: #F3F7F9;
  393. height: 100%;
  394. -webkit-text-size-adjust: none;
  395. /* Never autoresize text */ }
  396. #toc > ul > li > a > span {
  397. float: right;
  398. background-color: #2484FF;
  399. border-radius: 40px;
  400. width: 20px; }
  401. .toc-wrapper {
  402. transition: left 0.3s ease-in-out;
  403. overflow-y: auto;
  404. overflow-x: hidden;
  405. position: fixed;
  406. z-index: 30;
  407. top: 0;
  408. left: 0;
  409. bottom: 0;
  410. width: 230px;
  411. background-color: #2E3336;
  412. font-size: 13px;
  413. font-weight: bold; }
  414. .toc-wrapper .lang-selector {
  415. display: none; }
  416. .toc-wrapper .lang-selector a {
  417. padding-top: 0.5em;
  418. padding-bottom: 0.5em; }
  419. .toc-wrapper .logo {
  420. display: block;
  421. max-width: 100%;
  422. margin-bottom: 0px; }
  423. .toc-wrapper > .search {
  424. position: relative; }
  425. .toc-wrapper > .search input {
  426. background: #2E3336;
  427. border-width: 0 0 1px 0;
  428. border-color: #666;
  429. padding: 6px 0 6px 20px;
  430. box-sizing: border-box;
  431. margin: 10px 15px;
  432. width: 200px;
  433. outline: none;
  434. color: #fff;
  435. border-radius: 0;
  436. /* ios has a default border radius */ }
  437. .toc-wrapper > .search:before {
  438. position: absolute;
  439. top: 17px;
  440. left: 15px;
  441. color: #fff; }
  442. .toc-wrapper .search-results {
  443. margin-top: 0;
  444. box-sizing: border-box;
  445. height: 0;
  446. overflow-y: auto;
  447. overflow-x: hidden;
  448. transition-property: height, margin;
  449. transition-duration: 180ms;
  450. transition-timing-function: ease-in-out;
  451. background: #1E2224; }
  452. .toc-wrapper .search-results.visible {
  453. height: 30%;
  454. margin-bottom: 1em; }
  455. .toc-wrapper .search-results li {
  456. margin: 1em 15px;
  457. line-height: 1; }
  458. .toc-wrapper .search-results a {
  459. color: #fff;
  460. text-decoration: none; }
  461. .toc-wrapper .search-results a:hover {
  462. text-decoration: underline; }
  463. .toc-wrapper ul, .toc-wrapper li {
  464. list-style: none;
  465. margin: 0;
  466. padding: 0;
  467. line-height: 28px; }
  468. .toc-wrapper li {
  469. color: #fff;
  470. transition-property: background;
  471. transition-timing-function: linear;
  472. transition-duration: 200ms; }
  473. .toc-wrapper .toc-link.active {
  474. background-color: #0F75D4;
  475. color: #fff; }
  476. .toc-wrapper .toc-link.active-parent {
  477. background-color: #1E2224;
  478. color: #fff; }
  479. .toc-wrapper .toc-list-h2 {
  480. display: none;
  481. background-color: #1E2224;
  482. font-weight: 500; }
  483. .toc-wrapper .toc-h2 {
  484. padding-left: 25px;
  485. font-size: 12px; }
  486. .toc-wrapper .toc-footer {
  487. padding: 1em 0;
  488. margin-top: 1em;
  489. border-top: 1px dashed #666; }
  490. .toc-wrapper .toc-footer li, .toc-wrapper .toc-footer a {
  491. color: #fff;
  492. text-decoration: none; }
  493. .toc-wrapper .toc-footer a:hover {
  494. text-decoration: underline; }
  495. .toc-wrapper .toc-footer li {
  496. font-size: 0.8em;
  497. line-height: 1.7;
  498. text-decoration: none; }
  499. .toc-link, .toc-footer li {
  500. padding: 0 15px 0 15px;
  501. display: block;
  502. overflow-x: hidden;
  503. white-space: nowrap;
  504. text-overflow: ellipsis;
  505. text-decoration: none;
  506. color: #fff;
  507. transition-property: background;
  508. transition-timing-function: linear;
  509. transition-duration: 130ms; }
  510. #nav-button {
  511. padding: 0 1.5em 5em 0;
  512. display: none;
  513. position: fixed;
  514. top: 0;
  515. left: 0;
  516. z-index: 100;
  517. color: #000;
  518. text-decoration: none;
  519. font-weight: bold;
  520. opacity: 0.7;
  521. line-height: 16px;
  522. transition: left 0.3s ease-in-out; }
  523. #nav-button span {
  524. display: block;
  525. padding: 6px 6px 6px;
  526. background-color: rgba(243, 247, 249, 0.7);
  527. transform-origin: 0 0;
  528. transform: rotate(-90deg) translate(-100%, 0);
  529. border-radius: 0 0 0 5px; }
  530. #nav-button img {
  531. height: 16px;
  532. vertical-align: bottom; }
  533. #nav-button:hover {
  534. opacity: 1; }
  535. #nav-button.open {
  536. left: 230px; }
  537. .page-wrapper {
  538. margin-left: 230px;
  539. position: relative;
  540. z-index: 10;
  541. background-color: #F3F7F9;
  542. min-height: 100%;
  543. padding-bottom: 1px; }
  544. .page-wrapper .dark-box {
  545. width: 50%;
  546. background-color: #2E3336;
  547. position: absolute;
  548. right: 0;
  549. top: 0;
  550. bottom: 0; }
  551. .page-wrapper .lang-selector {
  552. position: fixed;
  553. z-index: 50;
  554. border-bottom: 5px solid #2E3336; }
  555. .lang-selector {
  556. background-color: #1E2224;
  557. width: 100%;
  558. font-weight: bold; }
  559. .lang-selector a {
  560. display: block;
  561. float: left;
  562. color: #fff;
  563. text-decoration: none;
  564. padding: 0 10px;
  565. line-height: 30px;
  566. outline: 0; }
  567. .lang-selector a:active, .lang-selector a:focus {
  568. background-color: #111;
  569. color: #fff; }
  570. .lang-selector a.active {
  571. background-color: #2E3336;
  572. color: #fff; }
  573. .lang-selector:after {
  574. content: '';
  575. clear: both;
  576. display: block; }
  577. .content {
  578. -webkit-transform: translateZ(0);
  579. position: relative;
  580. z-index: 30; }
  581. .content:after {
  582. content: '';
  583. display: block;
  584. clear: both; }
  585. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  586. margin-right: 50%;
  587. padding: 0 28px;
  588. box-sizing: border-box;
  589. display: block; }
  590. .content > ul, .content > ol {
  591. padding-left: 43px; }
  592. .content > h1, .content > h2, .content > div {
  593. clear: both; }
  594. .content h1 {
  595. font-size: 25px;
  596. padding-top: 0.5em;
  597. padding-bottom: 0.5em;
  598. margin-bottom: 21px;
  599. margin-top: 2em;
  600. border-top: 1px solid #ccc;
  601. border-bottom: 1px solid #ccc;
  602. background-color: #fdfdfd; }
  603. .content h1:first-child, .content div:first-child + h1 {
  604. border-top-width: 0;
  605. margin-top: 0; }
  606. .content h2 {
  607. font-size: 19px;
  608. margin-top: 4em;
  609. margin-bottom: 0;
  610. border-top: 1px solid #ccc;
  611. padding-top: 1.2em;
  612. padding-bottom: 1.2em;
  613. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); }
  614. .content h1 + h2, .content h1 + div + h2 {
  615. margin-top: -21px;
  616. border-top: none; }
  617. .content h3, .content h4, .content h5, .content h6 {
  618. font-size: 15px;
  619. margin-top: 2.5em;
  620. margin-bottom: 0.8em; }
  621. .content h4, .content h5, .content h6 {
  622. font-size: 10px; }
  623. .content hr {
  624. margin: 2em 0;
  625. border-top: 2px solid #2E3336;
  626. border-bottom: 2px solid #F3F7F9; }
  627. .content table {
  628. margin-bottom: 1em;
  629. overflow: auto; }
  630. .content table th, .content table td {
  631. text-align: left;
  632. vertical-align: top;
  633. line-height: 1.6; }
  634. .content table th code, .content table td code {
  635. white-space: nowrap; }
  636. .content table th {
  637. padding: 5px 10px;
  638. border-bottom: 1px solid #ccc;
  639. vertical-align: bottom; }
  640. .content table td {
  641. padding: 10px; }
  642. .content table tr:last-child {
  643. border-bottom: 1px solid #ccc; }
  644. .content table tr:nth-child(odd) > td {
  645. background-color: white; }
  646. .content table tr:nth-child(even) > td {
  647. background-color: #fbfcfd; }
  648. .content dt {
  649. font-weight: bold; }
  650. .content dd {
  651. margin-left: 15px; }
  652. .content p, .content li, .content dt, .content dd {
  653. line-height: 1.6;
  654. margin-top: 0; }
  655. .content img {
  656. max-width: 100%; }
  657. .content code {
  658. background-color: rgba(0, 0, 0, 0.05);
  659. padding: 3px;
  660. border-radius: 3px; }
  661. .content pre > code {
  662. background-color: transparent;
  663. padding: 0; }
  664. .content aside {
  665. padding-top: 1em;
  666. padding-bottom: 1em;
  667. margin-top: 1.5em;
  668. margin-bottom: 1.5em;
  669. background: #8fbcd4;
  670. line-height: 1.6; }
  671. .content aside.warning {
  672. background-color: #c97a7e; }
  673. .content aside.success {
  674. background-color: #6ac174; }
  675. .content aside:before {
  676. vertical-align: middle;
  677. padding-right: 0.5em;
  678. font-size: 14px; }
  679. .content .search-highlight {
  680. padding: 2px;
  681. margin: -3px;
  682. border-radius: 4px;
  683. border: 1px solid #F7E633;
  684. background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%); }
  685. .content pre, .content blockquote {
  686. background-color: #1E2224;
  687. color: #fff;
  688. margin: 0;
  689. width: 50%;
  690. float: right;
  691. clear: right;
  692. box-sizing: border-box; }
  693. .content pre > p, .content blockquote > p {
  694. margin: 0; }
  695. .content pre a, .content blockquote a {
  696. color: #fff;
  697. text-decoration: none;
  698. border-bottom: dashed 1px #ccc; }
  699. .content pre {
  700. padding-top: 2em;
  701. padding-bottom: 2em;
  702. padding: 2em 28px; }
  703. .content blockquote > p {
  704. background-color: #191D1F;
  705. padding: 13px 2em;
  706. color: #eee; }
  707. @media (max-width: 930px) {
  708. .toc-wrapper {
  709. left: -230px; }
  710. .toc-wrapper.open {
  711. left: 0; }
  712. .page-wrapper {
  713. margin-left: 0; }
  714. #nav-button {
  715. display: block; }
  716. .toc-link {
  717. padding-top: 0.3em;
  718. padding-bottom: 0.3em; } }
  719. @media (max-width: 700px) {
  720. .dark-box {
  721. display: none; }
  722. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  723. margin-right: 0; }
  724. .toc-wrapper .lang-selector {
  725. display: block; }
  726. .page-wrapper .lang-selector {
  727. display: none; }
  728. .content pre, .content blockquote {
  729. width: auto;
  730. float: none; }
  731. .content > pre + h1, .content > blockquote + h1, .content > pre + h2, .content > blockquote + h2, .content > pre + h3, .content > blockquote + h3, .content > pre + h4, .content > blockquote + h4, .content > pre + h5, .content > blockquote + h5, .content > pre + h6, .content > blockquote + h6, .content > pre + p, .content > blockquote + p, .content > pre + table, .content > blockquote + table, .content > pre + ul, .content > blockquote + ul, .content > pre + ol, .content > blockquote + ol, .content > pre + aside, .content > blockquote + aside, .content > pre + dl, .content > blockquote + dl {
  732. margin-top: 28px; } }
  733. .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
  734. color: #909090; }
  735. .highlight, .highlight .w {
  736. background-color: #1E2224; }
  737. </style>
  738. <style media="print">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  739. /**
  740. * 1. Set default font family to sans-serif.
  741. * 2. Prevent iOS text size adjust after orientation change, without disabling
  742. * user zoom.
  743. */
  744. html {
  745. font-family: sans-serif;
  746. /* 1 */
  747. -ms-text-size-adjust: 100%;
  748. /* 2 */
  749. -webkit-text-size-adjust: 100%;
  750. /* 2 */ }
  751. /**
  752. * Remove default margin.
  753. */
  754. body {
  755. margin: 0; }
  756. /* HTML5 display definitions
  757. ========================================================================== */
  758. /**
  759. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  760. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  761. * and Firefox.
  762. * Correct `block` display not defined for `main` in IE 11.
  763. */
  764. article,
  765. aside,
  766. details,
  767. figcaption,
  768. figure,
  769. footer,
  770. header,
  771. hgroup,
  772. main,
  773. menu,
  774. nav,
  775. section,
  776. summary {
  777. display: block; }
  778. /**
  779. * 1. Correct `inline-block` display not defined in IE 8/9.
  780. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  781. */
  782. audio,
  783. canvas,
  784. progress,
  785. video {
  786. display: inline-block;
  787. /* 1 */
  788. vertical-align: baseline;
  789. /* 2 */ }
  790. /**
  791. * Prevent modern browsers from displaying `audio` without controls.
  792. * Remove excess height in iOS 5 devices.
  793. */
  794. audio:not([controls]) {
  795. display: none;
  796. height: 0; }
  797. /**
  798. * Address `[hidden]` styling not present in IE 8/9/10.
  799. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  800. */
  801. [hidden],
  802. template {
  803. display: none; }
  804. /* Links
  805. ========================================================================== */
  806. /**
  807. * Remove the gray background color from active links in IE 10.
  808. */
  809. a {
  810. background-color: transparent; }
  811. /**
  812. * Improve readability when focused and also mouse hovered in all browsers.
  813. */
  814. a:active,
  815. a:hover {
  816. outline: 0; }
  817. /* Text-level semantics
  818. ========================================================================== */
  819. /**
  820. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  821. */
  822. abbr[title] {
  823. border-bottom: 1px dotted; }
  824. /**
  825. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  826. */
  827. b,
  828. strong {
  829. font-weight: bold; }
  830. /**
  831. * Address styling not present in Safari and Chrome.
  832. */
  833. dfn {
  834. font-style: italic; }
  835. /**
  836. * Address variable `h1` font-size and margin within `section` and `article`
  837. * contexts in Firefox 4+, Safari, and Chrome.
  838. */
  839. h1 {
  840. font-size: 2em;
  841. margin: 0.67em 0; }
  842. /**
  843. * Address styling not present in IE 8/9.
  844. */
  845. mark {
  846. background: #ff0;
  847. color: #000; }
  848. /**
  849. * Address inconsistent and variable font size in all browsers.
  850. */
  851. small {
  852. font-size: 80%; }
  853. /**
  854. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  855. */
  856. sub,
  857. sup {
  858. font-size: 75%;
  859. line-height: 0;
  860. position: relative;
  861. vertical-align: baseline; }
  862. sup {
  863. top: -0.5em; }
  864. sub {
  865. bottom: -0.25em; }
  866. /* Embedded content
  867. ========================================================================== */
  868. /**
  869. * Remove border when inside `a` element in IE 8/9/10.
  870. */
  871. img {
  872. border: 0; }
  873. /**
  874. * Correct overflow not hidden in IE 9/10/11.
  875. */
  876. svg:not(:root) {
  877. overflow: hidden; }
  878. /* Grouping content
  879. ========================================================================== */
  880. /**
  881. * Address margin not present in IE 8/9 and Safari.
  882. */
  883. figure {
  884. margin: 1em 40px; }
  885. /**
  886. * Address differences between Firefox and other browsers.
  887. */
  888. hr {
  889. -moz-box-sizing: content-box;
  890. box-sizing: content-box;
  891. height: 0; }
  892. /**
  893. * Contain overflow in all browsers.
  894. */
  895. pre {
  896. overflow: auto; }
  897. /**
  898. * Address odd `em`-unit font size rendering in all browsers.
  899. */
  900. code,
  901. kbd,
  902. pre,
  903. samp {
  904. font-family: monospace, monospace;
  905. font-size: 1em; }
  906. /* Forms
  907. ========================================================================== */
  908. /**
  909. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  910. * styling of `select`, unless a `border` property is set.
  911. */
  912. /**
  913. * 1. Correct color not being inherited.
  914. * Known issue: affects color of disabled elements.
  915. * 2. Correct font properties not being inherited.
  916. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  917. */
  918. button,
  919. input,
  920. optgroup,
  921. select,
  922. textarea {
  923. color: inherit;
  924. /* 1 */
  925. font: inherit;
  926. /* 2 */
  927. margin: 0;
  928. /* 3 */ }
  929. /**
  930. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  931. */
  932. button {
  933. overflow: visible; }
  934. /**
  935. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  936. * All other form control elements do not inherit `text-transform` values.
  937. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  938. * Correct `select` style inheritance in Firefox.
  939. */
  940. button,
  941. select {
  942. text-transform: none; }
  943. /**
  944. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  945. * and `video` controls.
  946. * 2. Correct inability to style clickable `input` types in iOS.
  947. * 3. Improve usability and consistency of cursor style between image-type
  948. * `input` and others.
  949. */
  950. button,
  951. html input[type="button"],
  952. input[type="reset"],
  953. input[type="submit"] {
  954. -webkit-appearance: button;
  955. /* 2 */
  956. cursor: pointer;
  957. /* 3 */ }
  958. /**
  959. * Re-set default cursor for disabled elements.
  960. */
  961. button[disabled],
  962. html input[disabled] {
  963. cursor: default; }
  964. /**
  965. * Remove inner padding and border in Firefox 4+.
  966. */
  967. button::-moz-focus-inner,
  968. input::-moz-focus-inner {
  969. border: 0;
  970. padding: 0; }
  971. /**
  972. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  973. * the UA stylesheet.
  974. */
  975. input {
  976. line-height: normal; }
  977. /**
  978. * It's recommended that you don't attempt to style these elements.
  979. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  980. *
  981. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  982. * 2. Remove excess padding in IE 8/9/10.
  983. */
  984. input[type="checkbox"],
  985. input[type="radio"] {
  986. box-sizing: border-box;
  987. /* 1 */
  988. padding: 0;
  989. /* 2 */ }
  990. /**
  991. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  992. * `font-size` values of the `input`, it causes the cursor style of the
  993. * decrement button to change from `default` to `text`.
  994. */
  995. input[type="number"]::-webkit-inner-spin-button,
  996. input[type="number"]::-webkit-outer-spin-button {
  997. height: auto; }
  998. /**
  999. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  1000. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  1001. * (include `-moz` to future-proof).
  1002. */
  1003. input[type="search"] {
  1004. -webkit-appearance: textfield;
  1005. /* 1 */
  1006. -moz-box-sizing: content-box;
  1007. -webkit-box-sizing: content-box;
  1008. /* 2 */
  1009. box-sizing: content-box; }
  1010. /**
  1011. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  1012. * Safari (but not Chrome) clips the cancel button when the search input has
  1013. * padding (and `textfield` appearance).
  1014. */
  1015. input[type="search"]::-webkit-search-cancel-button,
  1016. input[type="search"]::-webkit-search-decoration {
  1017. -webkit-appearance: none; }
  1018. /**
  1019. * Define consistent border, margin, and padding.
  1020. */
  1021. fieldset {
  1022. border: 1px solid #c0c0c0;
  1023. margin: 0 2px;
  1024. padding: 0.35em 0.625em 0.75em; }
  1025. /**
  1026. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  1027. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  1028. */
  1029. legend {
  1030. border: 0;
  1031. /* 1 */
  1032. padding: 0;
  1033. /* 2 */ }
  1034. /**
  1035. * Remove default vertical scrollbar in IE 8/9/10/11.
  1036. */
  1037. textarea {
  1038. overflow: auto; }
  1039. /**
  1040. * Don't inherit the `font-weight` (applied by a rule above).
  1041. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  1042. */
  1043. optgroup {
  1044. font-weight: bold; }
  1045. /* Tables
  1046. ========================================================================== */
  1047. /**
  1048. * Remove most spacing between table cells.
  1049. */
  1050. table {
  1051. border-collapse: collapse;
  1052. border-spacing: 0; }
  1053. td,
  1054. th {
  1055. padding: 0; }
  1056. /*
  1057. Copyright 2008-2013 Concur Technologies, Inc.
  1058. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1059. not use this file except in compliance with the License. You may obtain
  1060. a copy of the License at
  1061. http://www.apache.org/licenses/LICENSE-2.0
  1062. Unless required by applicable law or agreed to in writing, software
  1063. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1064. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1065. License for the specific language governing permissions and limitations
  1066. under the License.
  1067. */
  1068. .content h1, .content h2, .content h3, .content h4, body {
  1069. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  1070. font-size: 14px; }
  1071. .content h1, .content h2, .content h3, .content h4 {
  1072. font-weight: bold; }
  1073. .content pre, .content code {
  1074. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  1075. font-size: 12px;
  1076. line-height: 1.5; }
  1077. .content pre, .content code {
  1078. word-break: break-all;
  1079. hyphens: auto; }
  1080. @font-face {
  1081. font-family: 'slate';
  1082. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  1083. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  1084. font-weight: normal;
  1085. font-style: normal; }
  1086. .content aside.warning:before, .content aside.notice:before, .content aside.success:before {
  1087. font-family: 'slate';
  1088. speak: none;
  1089. font-style: normal;
  1090. font-weight: normal;
  1091. font-variant: normal;
  1092. text-transform: none;
  1093. line-height: 1; }
  1094. .content aside.warning:before {
  1095. content: "\e600"; }
  1096. .content aside.notice:before {
  1097. content: "\e602"; }
  1098. .content aside.success:before {
  1099. content: "\e606"; }
  1100. /*
  1101. Copyright 2008-2013 Concur Technologies, Inc.
  1102. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1103. not use this file except in compliance with the License. You may obtain
  1104. a copy of the License at
  1105. http://www.apache.org/licenses/LICENSE-2.0
  1106. Unless required by applicable law or agreed to in writing, software
  1107. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1108. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1109. License for the specific language governing permissions and limitations
  1110. under the License.
  1111. */
  1112. .tocify, .toc-footer, .lang-selector, .search, #nav-button {
  1113. display: none; }
  1114. .tocify-wrapper > img {
  1115. margin: 0 auto;
  1116. display: block; }
  1117. .content {
  1118. font-size: 12px; }
  1119. .content pre, .content code {
  1120. border: 1px solid #999;
  1121. border-radius: 5px;
  1122. font-size: 0.8em; }
  1123. .content pre code {
  1124. border: 0; }
  1125. .content pre {
  1126. padding: 1.3em; }
  1127. .content code {
  1128. padding: 0.2em; }
  1129. .content table {
  1130. border: 1px solid #999; }
  1131. .content table tr {
  1132. border-bottom: 1px solid #999; }
  1133. .content table td, .content table th {
  1134. padding: 0.7em; }
  1135. .content p {
  1136. line-height: 1.5; }
  1137. .content a {
  1138. text-decoration: none;
  1139. color: #000; }
  1140. .content h1 {
  1141. font-size: 2.5em;
  1142. padding-top: 0.5em;
  1143. padding-bottom: 0.5em;
  1144. margin-top: 1em;
  1145. margin-bottom: 21px;
  1146. border: 2px solid #ccc;
  1147. border-width: 2px 0;
  1148. text-align: center; }
  1149. .content h2 {
  1150. font-size: 1.8em;
  1151. margin-top: 2em;
  1152. border-top: 2px solid #ccc;
  1153. padding-top: 0.8em; }
  1154. .content h1 + h2, .content h1 + div + h2 {
  1155. border-top: none;
  1156. padding-top: 0;
  1157. margin-top: 0; }
  1158. .content h3, .content h4 {
  1159. font-size: 0.8em;
  1160. margin-top: 1.5em;
  1161. margin-bottom: 0.8em;
  1162. text-transform: uppercase; }
  1163. .content h5, .content h6 {
  1164. text-transform: uppercase; }
  1165. .content aside {
  1166. padding: 1em;
  1167. border: 1px solid #ccc;
  1168. border-radius: 5px;
  1169. margin-top: 1.5em;
  1170. margin-bottom: 1.5em;
  1171. line-height: 1.6; }
  1172. .content aside:before {
  1173. vertical-align: middle;
  1174. padding-right: 0.5em;
  1175. font-size: 14px; }
  1176. </style>
  1177. <style media="screen">/*
  1178. Darkula color scheme from the JetBrains family of IDEs
  1179. */
  1180. .hljs {
  1181. display: block;
  1182. overflow-x: auto;
  1183. padding: 0.5em;
  1184. background: #2b2b2b;
  1185. -webkit-text-size-adjust: none;
  1186. }
  1187. .hljs,
  1188. .hljs-tag,
  1189. .hljs-title,
  1190. .css .hljs-rule,
  1191. .css .hljs-value,
  1192. .aspectj .hljs-function,
  1193. .css .hljs-function .hljs-preprocessor,
  1194. .hljs-pragma {
  1195. color: #bababa;
  1196. }
  1197. .hljs-strongemphasis,
  1198. .hljs-strong,
  1199. .hljs-emphasis {
  1200. color: #a8a8a2;
  1201. }
  1202. .hljs-bullet,
  1203. .hljs-blockquote,
  1204. .hljs-horizontal_rule,
  1205. .hljs-number,
  1206. .hljs-regexp,
  1207. .alias .hljs-keyword,
  1208. .hljs-literal,
  1209. .hljs-hexcolor {
  1210. color: #6896ba;
  1211. }
  1212. .hljs-tag .hljs-value,
  1213. .hljs-code,
  1214. .css .hljs-class,
  1215. .hljs-class .hljs-title:last-child {
  1216. color: #a6e22e;
  1217. }
  1218. .hljs-link_url {
  1219. font-size: 80%;
  1220. }
  1221. .hljs-emphasis,
  1222. .hljs-strongemphasis,
  1223. .hljs-class .hljs-title:last-child,
  1224. .hljs-typename {
  1225. font-style: italic;
  1226. }
  1227. .hljs-keyword,
  1228. .ruby .hljs-class .hljs-keyword:first-child,
  1229. .ruby .hljs-function .hljs-keyword,
  1230. .hljs-function,
  1231. .hljs-change,
  1232. .hljs-winutils,
  1233. .hljs-flow,
  1234. .nginx .hljs-title,
  1235. .tex .hljs-special,
  1236. .hljs-header,
  1237. .hljs-attribute,
  1238. .hljs-symbol,
  1239. .hljs-symbol .hljs-string,
  1240. .hljs-tag .hljs-title,
  1241. .hljs-value,
  1242. .alias .hljs-keyword:first-child,
  1243. .css .hljs-tag,
  1244. .css .unit,
  1245. .css .hljs-important {
  1246. color: #cb7832;
  1247. }
  1248. .hljs-function .hljs-keyword,
  1249. .hljs-class .hljs-keyword:first-child,
  1250. .hljs-aspect .hljs-keyword:first-child,
  1251. .hljs-constant,
  1252. .hljs-typename,
  1253. .css .hljs-attribute {
  1254. color: #cb7832;
  1255. }
  1256. .hljs-variable,
  1257. .hljs-params,
  1258. .hljs-class .hljs-title,
  1259. .hljs-aspect .hljs-title {
  1260. color: #b9b9b9;
  1261. }
  1262. .hljs-string,
  1263. .css .hljs-id,
  1264. .hljs-subst,
  1265. .hljs-type,
  1266. .ruby .hljs-class .hljs-parent,
  1267. .hljs-built_in,
  1268. .django .hljs-template_tag,
  1269. .django .hljs-variable,
  1270. .smalltalk .hljs-class,
  1271. .django .hljs-filter .hljs-argument,
  1272. .smalltalk .hljs-localvars,
  1273. .smalltalk .hljs-array,
  1274. .hljs-attr_selector,
  1275. .hljs-pseudo,
  1276. .hljs-addition,
  1277. .hljs-stream,
  1278. .hljs-envvar,
  1279. .apache .hljs-tag,
  1280. .apache .hljs-cbracket,
  1281. .tex .hljs-command,
  1282. .hljs-prompt,
  1283. .hljs-link_label,
  1284. .hljs-link_url,
  1285. .hljs-name {
  1286. color: #e0c46c;
  1287. }
  1288. .hljs-comment,
  1289. .hljs-annotation,
  1290. .hljs-pi,
  1291. .hljs-doctype,
  1292. .hljs-deletion,
  1293. .hljs-shebang,
  1294. .apache .hljs-sqbracket,
  1295. .tex .hljs-formula {
  1296. color: #7f7f7f;
  1297. }
  1298. .hljs-decorator {
  1299. color: #bab429;
  1300. }
  1301. .coffeescript .javascript,
  1302. .javascript .xml,
  1303. .tex .hljs-formula,
  1304. .xml .javascript,
  1305. .xml .vbscript,
  1306. .xml .css,
  1307. .xml .hljs-cdata,
  1308. .xml .php,
  1309. .php .xml {
  1310. opacity: 0.5;
  1311. }
  1312. </style>
  1313. <script>!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return ae.call(t,e)>-1!==n}):Ee.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return ae.call(t,e)>-1!==n&&1===e.nodeType}))}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Pe.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}$e.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=a(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),l=(he.cssNumber[t]||"px"!==c&&+u)&&Re.exec(he.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,he.style(e,t,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Be[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Fe.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Me(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Fe.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)Fe.set(e[n],"globalEval",!t||Fe.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Qe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ve.exec(o)||["",""])[1].toLowerCase(),u=Ue[a]||Ue._default,s.innerHTML=u[1]+he.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;he.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(c=he.contains(o.ownerDocument,o),s=y(f.appendChild(o),"script"),c&&x(s),n)for(l=0;o=s[l++];)Xe.test(o.type||"")&&n.push(o);return f}function w(){return!0}function T(){return!1}function S(){try{return ne.activeElement}catch(e){}}function E(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)E(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=T;else if(!i)return e;return 1===o&&(s=i,i=function(e){return he().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function C(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function j(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Fe.hasData(e)&&(o=Fe.access(e),s=Fe.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)he.event.add(t,i,c[i][n])}$e.hasData(e)&&(a=$e.access(e),u=he.extend({},a),$e.set(t,u))}}function A(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ze.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(e,t,r,i){t=oe.apply([],t);var o,s,a,u,c,l,f=0,d=e.length,p=d-1,h=t[0],g=he.isFunction(h);if(g||d>1&&"string"==typeof h&&!pe.checkClone&&tt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),L(o,t,r,i)});if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=he.map(y(o,"script"),k),u=a.length;f<d;f++)c=o,f!==p&&(c=he.clone(c,!0,!0),u&&he.merge(a,y(c,"script"))),r.call(e[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,he.map(a,N),f=0;f<u;f++)c=a[f],Xe.test(c.type||"")&&!Fe.access(c,"globalEval")&&he.contains(l,c)&&(c.src?he._evalUrl&&he._evalUrl(c.src):n(c.textContent.replace(rt,""),l))}return e}function D(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(y(r)),r.parentNode&&(n&&he.contains(r.ownerDocument,r)&&x(y(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,s,a=e.style;return n=n||st(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||he.contains(e.ownerDocument,e)||(s=he.style(e,t)),!pe.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function q(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in dt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if((e=ft[n]+t)in dt)return e}function $(e){var t=he.cssProps[e];return t||(t=he.cssProps[e]=F(e)||e),t}function P(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function H(e,t,n,r,i){var o,s=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=he.css(e,n+_e[o],!0,i)),r?("content"===n&&(s-=he.css(e,"padding"+_e[o],!0,i)),"margin"!==n&&(s-=he.css(e,"border"+_e[o]+"Width",!0,i))):(s+=he.css(e,"padding"+_e[o],!0,i),"padding"!==n&&(s+=he.css(e,"border"+_e[o]+"Width",!0,i)));return s}function I(e,t,n){var r,i=st(e),o=O(e,t,i),s="border-box"===he.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=s&&(pe.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+H(e,t,n||(s?"border":"content"),r,i)+"px")}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function _(){ht&&(!1===ne.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(_):e.setTimeout(_,he.fx.interval),he.fx.tick())}function M(){return e.setTimeout(function(){pt=void 0}),pt=he.now()}function W(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=_e[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(X.tweeners[t]||[]).concat(X.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function z(e,t,n){var r,i,o,s,a,u,c,l,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&Me(e),v=Fe.get(e,"fxshow");n.queue||(s=he._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,he.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(p)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=v&&v.display,null==c&&(c=Fe.get(e,"display")),l=he.css(e,"display"),"none"===l&&(c?l=c:(m([e],!0),c=e.style.display||c,l=he.css(e,"display"),m([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===he.css(e,"float")&&(u||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in p)u||(v?"hidden"in v&&(g=v.hidden):v=Fe.access(e,"fxshow",{display:c}),o&&(v.hidden=!g),g&&m([e],!0),d.done(function(){g||m([e]),Fe.remove(e,"fxshow");for(r in p)he.style(e,r,p[r])})),u=B(g?v[r]:0,r,d),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}}function V(e,t){var n,r,i,o,s;for(n in e)if(r=he.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=he.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function X(e,t,n){var r,i,o=0,s=X.prefilters.length,a=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=pt||M(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(e,[c,o,n]),o<1&&u?n:(u||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||M(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for(V(l,c.opts.specialEasing);o<s;o++)if(r=X.prefilters[o].call(c,e,l,c.opts))return he.isFunction(r.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=he.proxy(r.stop,r)),r;return he.map(l,B,c),he.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Ae)||[]).join(" ")}function Q(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e,t,n,r){var i;if(Array.isArray(t))he.each(t,function(t,i){n||kt.test(e)?r(e,i):Y(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==he.type(t))r(e,t);else for(i in t)Y(e+"["+i+"]",t[i],n,r)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ae)||[];if(he.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function G(e,t,n,r){function i(a){var u;return o[a]=!0,he.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===It;return i(t.dataTypes[0])||!o["*"]&&i("*")}function K(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}function Z(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ee(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,oe=te.concat,se=te.push,ae=te.indexOf,ue={},ce=ue.toString,le=ue.hasOwnProperty,fe=le.toString,de=fe.call(Object),pe={},he=function(e,t){return new he.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ve=/^-ms-/,me=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:"3.2.1",constructor:he,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:se,sort:te.sort,splice:te.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||he.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&he.isPlainObject(n)?n:{},s[t]=he.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},he.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e))&&(!(t=re(e))||"function"==typeof(n=le.call(t,"constructor")&&t.constructor)&&fe.call(n)===de)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[ce.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ve,"ms-").replace(me,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):se.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ae.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return oe.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),he.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:Date.now,support:pe}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=te[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var xe=function(e){function t(e,t,n,r){var i,o,s,a,u,l,d,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:R)!==D&&L(t),t=t||D,q)){if(11!==h&&(u=ge.exec(e)))if(i=u[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&H(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!z[e+" "]&&(!F||!F.test(e))){if(1!==h)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,be):t.setAttribute("id",a=I),l=E(e),o=l.length;o--;)l[o]="#"+a+" "+f(l[o]);d=l.join(","),p=ve.test(e)&&c(t.parentNode)||t}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{a===I&&t.removeAttribute("id")}}}return k(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,f,d=[_,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(f=t[I]||(t[I]={}),l=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,f,d=[],p=[],v=s.length,m=r||h(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?m:g(m,d,e,a,u),x=n?o||(r?e:v||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(c=g(x,p),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(x[p[l]]=!(y[p[l]]=f));if(r){if(o||e){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(y[l]=f);o(null,x=[],c,u)}for(l=x.length;l--;)(f=x[l])&&(c=o?K(r,f):d[l])>-1&&(r[c]=!(s[c]=f))}}else x=g(x===s?x.splice(v,x.length):x),o?o(null,s,x,u):J.apply(s,x)})}function m(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return K(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=w.relative[e[a].type])l=[d(p(l),n)];else{if(n=w.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;r<i&&!w.relative[e[r].type];r++);return v(a>1&&p(l),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&m(e.slice(a,r)),r<i&&m(e=e.slice(r)),r<i&&f(e))}l.push(n)}return p(l)}function y(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,f,d,p=0,h="0",v=r&&[],m=[],y=N,x=r||o&&w.find.TAG("*",c),b=_+=null==y?1:Math.random()||.1,T=x.length;for(c&&(N=s===D||s||c);h!==T&&null!=(l=x[h]);h++){if(o&&l){for(f=0,s||l.ownerDocument===D||(L(l),a=!q);d=e[f++];)if(d(l,s||D,a)){u.push(l);break}c&&(_=b)}i&&((l=!d&&l)&&p--,r&&v.push(l))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(v,m,s,a);if(r){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=Q.call(u));m=g(m)}J.apply(u,m),c&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return c&&(_=b,N=y),v};return i?r(s):s}var x,b,w,T,S,E,C,k,N,j,A,L,D,O,q,F,$,P,H,I="sizzle"+1*new Date,R=e.document,_=0,M=0,W=n(),B=n(),z=n(),V=function(e,t){return e===t&&(A=!0),0},X={}.hasOwnProperty,U=[],Q=U.pop,Y=U.push,J=U.push,G=U.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,me=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){L()},Te=d(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(U=G.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(e){J={apply:U.length?function(e,t){Y.apply(e,G.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,O=D.documentElement,q=!S(D),R!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=he.test(D.getElementsByClassName),b.getById=i(function(e){return O.appendChild(e).id=I,!D.getElementsByName||!D.getElementsByName(I).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&q)return t.getElementsByClassName(e)},$=[],F=[],(b.qsa=he.test(D.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+I+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||F.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(b.matchesSelector=he.test(P=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){b.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),$.push("!=",re)}),F=F.length&&new RegExp(F.join("|")),$=$.length&&new RegExp($.join("|")),t=he.test(O.compareDocumentPosition),H=t||he.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===R&&H(R,e)?-1:t===D||t.ownerDocument===R&&H(R,t)?1:j?K(j,e)-K(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:j?K(j,e)-K(j,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===R?-1:u[r]===R?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&L(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&q&&!z[n+" "]&&(!$||!$.test(n))&&(!F||!F.test(n)))try{var r=P.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&L(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&L(e);var n=w.attrHandle[t.toLowerCase()],r=n&&X.call(w.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:b.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,j=!b.sortStable&&e.slice(0),e.sort(V),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},w=t.selectors={cacheLength:50,createPseudo:r,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(me,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(me,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(me,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,p,h,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(v){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(d=v,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[_,p,x];break}}else if(y&&(d=t,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p),!1===x)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++x||(y&&(f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),l[e]=[_,x]),d!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=K(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(oe,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(me,ye),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(me,ye).toLowerCase(),function(t){var n;do{if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase()
  1314. ;return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(x);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,E=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=B[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=w.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in w.filter)!(i=fe[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},C=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=m(t[n]),o[I]?r.push(o):i.push(o);o=z(e,y(i,r)),o.selector=e}return o},k=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&q&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(me,ye),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((u=w.find[a])&&(r=u(s.matches[0].replace(me,ye),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return J.apply(n,r),n;break}}return(l||C(e,d))(r,t,!q,n,!t||ve.test(e)&&c(t.parentNode)||t),n},b.sortStable=I.split("").sort(V).join("")===I,b.detectDuplicates=!!A,L(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=xe,he.expr=xe.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=xe.uniqueSort,he.text=xe.getText,he.isXMLDoc=xe.isXML,he.contains=xe.contains,he.escapeSelector=xe.escape;var be=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=he.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ee=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&Te.test(e)?he(e):e||[],!1).length}});var Ce,ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ke.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),Se.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,Ce=he(ne);var Ne=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&he(e);if(!Te.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ae.call(he(e),this[0]):ae.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),this.length>1&&(je[e]||he.uniqueSort(i),Ne.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){e="string"==typeof e?a(e):he.extend({},e);var t,n,r,i,o=[],s=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,s.push(n)),function t(n){he.each(n,function(n,r){he.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==he.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;(n=he.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?he.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=he.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var a=this,l=arguments,f=function(){var e,f;if(!(t<s)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,he.isFunction(f)?i?f.call(e,o(s,n,u,i),o(s,n,c,i)):(s++,f.call(e,o(s,n,u,i),o(s,n,c,i),o(s,n,u,n.notifyWith))):(r!==u&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},d=i?f:function(){try{f()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,d.stackTrace),t+1>=s&&(r!==c&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?d():(he.Deferred.getStackHook&&(d.stackTrace=he.Deferred.getStackHook()),e.setTimeout(d))}}var s=0;return he.Deferred(function(e){n[0][3].add(o(0,e,he.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,he.isFunction(t)?t:u)),n[2][3].add(o(0,e,he.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),o=he.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||he.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Le.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var De=he.Deferred();he.fn.ready=function(e){return De.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||De.resolveWith(ne,[he]))}}),he.ready.then=De.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(he.ready):(ne.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Oe=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===he.type(n)){i=!0;for(a in n)Oe(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,he.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={cache:function(e){var t=e[this.expando];return t||(t={},qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[he.camelCase(t)]=n;else for(r in t)i[he.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][he.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(he.camelCase):(t=he.camelCase(t),t=t in r?[t]:t.match(Ae)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Fe=new d,$e=new d,Pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/[A-Z]/g;he.extend({hasData:function(e){return $e.hasData(e)||Fe.hasData(e)},data:function(e,t,n){return $e.access(e,t,n)},removeData:function(e,t){$e.remove(e,t)},_data:function(e,t,n){return Fe.access(e,t,n)},_removeData:function(e,t){Fe.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=$e.get(o),1===o.nodeType&&!Fe.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=he.camelCase(r.slice(5)),h(o,r,i[r])));Fe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){$e.set(this,e)}):Oe(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=$e.get(o,e)))return n;if(void 0!==(n=h(o,e)))return n}else this.each(function(){$e.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){$e.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||Array.isArray(n)?r=Fe.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t),s=function(){he.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:he.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Fe.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Me=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&he.contains(e.ownerDocument,e)&&"none"===he.css(e,"display")},We=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},Be={};he.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Me(this)?he(this).show():he(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ve=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Xe=/^$|\/(?:java|ecma)script/i,Ue={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Qe=/<|&#?\w+;/;!function(){var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ye=ne.documentElement,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.get(e);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&he.find.matchesSelector(Ye,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p&&(f=he.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=he.event.special[p]||{},l=he.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),he.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.hasData(e)&&Fe.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p){for(f=he.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)l=d[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)he.event.remove(e,p+t[c],n,r,!0);he.isEmptyObject(u)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=he.event.fix(e),u=new Array(arguments.length),c=(Fe.get(this,"events")||{})[a.type]||[],l=he.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=he.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?he(i,this).index(c)>-1:he.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:he.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||he.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=T),this.each(function(){he.event.remove(this,e,n,t)})}});var Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(Ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=he.contains(e.ownerDocument,e);if(!(pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(s=y(a),o=y(e),r=0,i=o.length;r<i;r++)A(o[r],s[r]);if(t)if(n)for(o=o||y(e),s=s||y(a),r=0,i=o.length;r<i;r++)j(o[r],s[r]);else j(e,a);return s=y(a,"script"),s.length>0&&x(s,!u&&y(e,"script")),a},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(qe(n)){if(t=n[Fe.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[Fe.expando]=void 0}n[$e.expando]&&(n[$e.expando]=void 0)}}}),he.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Oe(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){C(this,e).appendChild(e)}})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Oe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Ue[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),he(i[s])[t](n),se.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ye.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ye.removeChild(s),a=null}}var n,r,i,o,s=ne.createElement("div"),a=ne.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",pe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),he.extend(pe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,ut=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","Moz","ms"],dt=ne.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=he.camelCase(t),u=ut.test(t),c=e.style;if(u||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];o=typeof n,"string"===o&&(i=Re.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[a]?"":"px")),pe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=he.camelCase(t);return ut.test(t)||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=O(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?I(e,t,r):We(e,ct,function(){return I(e,t,r)})},set:function(e,n,r){var i,o=r&&st(e),s=r&&H(e,t,r,"border-box"===he.css(e,"boxSizing",!1,o),o);return s&&(i=Re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),P(e,n,s)}}}),he.cssHooks.marginLeft=q(pe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+_e[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(he.cssHooks[e+t].set=P)}),he.fn.extend({css:function(e,t){return Oe(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=st(e),i=t.length;s<i;s++)o[t[s]]=he.css(e,t[s],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)}}),he.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=R.prototype.init,he.fx.step={};var pt,ht,gt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;he.Animation=he.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[z],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),s=function(){var t=X(this,he.extend({},e),o);(i||Fe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,s=Fe.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&vt.test(i)&&r(s[i])
  1315. ;for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Fe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,s=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(W(t,!0),e,r,i)}}),he.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(pt=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),pt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,_())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var mt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Oe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=yt[s],yt[s]=i,i=null!=n(e,t,r)?s:null,yt[s]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Oe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Q(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(Ae)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=Q(this),t&&Fe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+U(Q(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;he.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=he.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,he(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:U(he.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],c=a?s+1:o.length;for(r=s<0?c:a?s:0;r<c;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=he(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=he.inArray(he.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},pe.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;he.extend(he.event,{trigger:function(t,n,r,i){var o,s,a,u,c,l,f,d=[r||ne],p=le.call(t,"type")?t.type:t,h=le.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+he.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[he.expando]?t:new he.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),f=he.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!he.isWindow(r)){for(u=f.delegateType||p,Tt.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(r.ownerDocument||ne)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||p,l=(Fe.get(s,"events")||{})[t.type]&&Fe.get(s,"handle"),l&&l.apply(s,n),(l=c&&s[c])&&l.apply&&qe(s)&&(t.result=l.apply(s,n),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!qe(r)||c&&he.isFunction(r[p])&&!he.isWindow(r)&&(a=r[c],a&&(r[c]=null),he.event.triggered=p,r[p](),he.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),pe.focusin="onfocusin"in e,pe.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Fe.access(r,t);i||r.addEventListener(e,n,!0),Fe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Fe.access(r,t)-1;i?Fe.access(r,t,i):(r.removeEventListener(e,n,!0),Fe.remove(r,t))}}});var St=e.location,Et=he.now(),Ct=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var kt=/\[\]$/,Nt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=he.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)Y(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&At.test(this.nodeName)&&!jt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}});var Lt=/%20/g,Dt=/#.*$/,Ot=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$t=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ht={},It={},Rt="*/".concat("*"),_t=ne.createElement("a");_t.href=St.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Ft.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?K(K(e,he.ajaxSettings),t):K(he.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(It),ajax:function(t,n){function r(t,n,r,a){var c,d,p,b,w,T=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=Z(h,S,r)),b=ee(h,b,S,c),c?(h.ifModified&&(w=S.getResponseHeader("Last-Modified"),w&&(he.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,p=b.error,c=!p)):(p=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(n||T)+"",c?m.resolveWith(g,[d,T,S]):m.rejectWith(g,[S,T,p]),S.statusCode(x),x=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[S,h,c?d:p]),y.fireWith(g,[S,T]),f&&(v.trigger("ajaxComplete",[S,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,c,l,f,d,p,h=he.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?he(g):he.event,m=he.Deferred(),y=he.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=qt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(m.promise(S),h.url=((t||h.url||St.href)+"").replace(Pt,St.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ae)||[""],null==h.crossDomain){c=ne.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),G(Ht,h,n,S),l)return S;f=he.event&&h.global,f&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(p=h.url.slice(o.length),h.data&&(o+=(Ct.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ot,"$1"),p=(Ct.test(o)?"&":"?")+"_="+Et+++p),h.url=o+p),h.ifModified&&(he.lastModified[o]&&S.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&S.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(g,S,h)||l))return S.abort();if(T="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),i=G(It,h,n,S)){if(S.readyState=1,f&&v.trigger("ajaxSend",[S,h]),l)return S;h.async&&h.timeout>0&&(u=e.setTimeout(function(){S.abort("timeout")},h.timeout));try{l=!1,i.send(b,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return he.isFunction(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(he.isFunction(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Wt=he.ajaxSettings.xhr();pe.cors=!!Wt&&"withCredentials"in Wt,pe.ajax=Wt=!!Wt,he.ajaxTransport(function(t){var n,r;if(pe.cors||Wt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=he("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Bt=[],zt=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||he.expando+"_"+Et++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(zt,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||he.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(i)),s&&he.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),pe.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),he.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(pe.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))},he.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=U(e.slice(a)),e=e.slice(0,a)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c,l=he.css(e,"position"),f=he(e),d={};"static"===l&&(e.style.position="relative"),a=f.offset(),o=he.css(e,"top"),u=he.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):f.css(d)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===he.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+he.css(e[0],"borderTopWidth",!0),left:r.left+he.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-he.css(n,"marginTop",!0),left:t.left-r.left-he.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ye})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Oe(this,function(e,r,i){var o;if(he.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=q(pe.pixelPosition,function(e,n){if(n)return n=O(e,t),ot.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Oe(this,function(t,n,i){var o;return he.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)},t,s?i:void 0,s)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Vt=e.jQuery,Xt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Xt),t&&e.jQuery===he&&(e.jQuery=Vt),he},t||(e.jQuery=e.$=he),he}),jQuery.extend({highlight:function(e,t,n,r){if(3===e.nodeType){var i=e.data.match(t);if(i){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(i.index);s.splitText(i[0].length);var a=s.cloneNode(!0);return o.appendChild(a),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var u=0;u<e.childNodes.length;u++)u+=jQuery.highlight(e.childNodes[u],t,n,r);return 0}}),jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};return jQuery.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(n,t),e.constructor===String&&(e=[e]),e=jQuery.grep(e,function(e,t){return""!=e}),e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),0==e.length)return this;var r=n.caseSensitive?"":"i",i="("+e.join("|")+")";n.wordsOnly&&(i="\\b"+i+"\\b");var o=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,o,n.element,n.className)})},function(){var e=function(t){var n=new e.Index;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),t&&t.call(n,n),n};e.version="0.5.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.EventEmitter=function(){this.events={}},e.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},e.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||delete this.events[e]}},e.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)})}},e.EventEmitter.prototype.hasHandler=function(e){return e in this.events},e.tokenizer=function(e){if(!arguments.length||null==e||void 0==e)return[];if(Array.isArray(e))return e.map(function(e){return e.toLowerCase()});for(var t=e.toString().replace(/^\s+/,""),n=t.length-1;n>=0;n--)if(/\S/.test(t.charAt(n))){t=t.substring(0,n+1);break}return t.split(/(?:\s+|\-)/).filter(function(e){return!!e}).map(function(e){return e.toLowerCase()})},e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions={},e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(t){var r=e.Pipeline.registeredFunctions[t];if(!r)throw new Error("Cannot load un-registered function: "+t);n.add(r)}),n},e.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t)+1;this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);this._stack.splice(t,1)},e.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,r=this._stack.length,i=0;i<n;i++){for(var o=e[i],s=0;s<r&&void 0!==(o=this._stack[s](o,i,e));s++);void 0!==o&&t.push(o)}return t},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})},e.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},e.Vector.Node=function(e,t,n){this.idx=e,this.val=t,this.next=n},e.Vector.prototype.insert=function(t,n){var r=this.list;if(!r)return this.list=new e.Vector.Node(t,n,r),this.length++;for(var i=r,o=r.next;void 0!=o;){if(t<o.idx)return i.next=new e.Vector.Node(t,n,o),this.length++;i=o,o=o.next}return i.next=new e.Vector.Node(t,n,o),this.length++},e.Vector.prototype.magnitude=function(){if(this._magniture)return this._magnitude;for(var e,t=this.list,n=0;t;)e=t.val,n+=e*e,t=t.next;return this._magnitude=Math.sqrt(n)},e.Vector.prototype.dot=function(e){for(var t=this.list,n=e.list,r=0;t&&n;)t.idx<n.idx?t=t.next:t.idx>n.idx?n=n.next:(r+=t.val*n.val,t=t.next,n=n.next);return r},e.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},e.SortedSet=function(){this.length=0,this.elements=[]},e.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},e.SortedSet.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){~this.indexOf(e)||this.elements.splice(this.locationFor(e),0,e)},this),this.length=this.elements.length},e.SortedSet.prototype.toArray=function(){return this.elements.slice()},e.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},e.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},e.SortedSet.prototype.indexOf=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];return r<=1?o===e?i:-1:o<e?this.indexOf(e,i,n):o>e?this.indexOf(e,t,i):o===e?i:void 0},e.SortedSet.prototype.locationFor=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];if(r<=1){if(o>e)return i;if(o<e)return i+1}return o<e?this.locationFor(e,i,n):o>e?this.locationFor(e,t,i):void 0},e.SortedSet.prototype.intersect=function(t){for(var n=new e.SortedSet,r=0,i=0,o=this.length,s=t.length,a=this.elements,u=t.elements;;){if(r>o-1||i>s-1)break;a[r]!==u[i]?a[r]<u[i]?r++:a[r]>u[i]&&i++:(n.add(a[r]),r++,i++)}return n},e.SortedSet.prototype.clone=function(){var t=new e.SortedSet;return t.elements=this.toArray(),t.length=t.elements.length,t},e.SortedSet.prototype.union=function(e){var t,n,r;return this.length>=e.length?(t=this,n=e):(t=e,n=this),r=t.clone(),r.add.apply(r,n.toArray()),r},e.SortedSet.prototype.toJSON=function(){return this.toArray()},e.Index=function(){this._fields=[],this._ref="id",this.pipeline=new e.Pipeline,this.documentStore=new e.Store,this.tokenStore=new e.TokenStore,this.corpusTokens=new e.SortedSet,this.eventEmitter=new e.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},e.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},e.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},e.Index.load=function(t){t.version!==e.version&&e.utils.warn("version mismatch: current "+e.version+" importing "+t.version);var n=new this;return n._fields=t.fields,n._ref=t.ref,n.documentStore=e.Store.load(t.documentStore),n.tokenStore=e.TokenStore.load(t.tokenStore),n.corpusTokens=e.SortedSet.load(t.corpusTokens),n.pipeline=e.Pipeline.load(t.pipeline),n},e.Index.prototype.field=function(e,t){var t=t||{},n={name:e,boost:t.boost||1};return this._fields.push(n),this},e.Index.prototype.ref=function(e){return this._ref=e,this},e.Index.prototype.add=function(t,n){var r={},i=new e.SortedSet,o=t[this._ref],n=void 0===n||n;this._fields.forEach(function(n){var o=this.pipeline.run(e.tokenizer(t[n.name]));r[n.name]=o,e.SortedSet.prototype.add.apply(i,o)},this),this.documentStore.set(o,i),e.SortedSet.prototype.add.apply(this.corpusTokens,i.toArray());for(var s=0;s<i.length;s++){var a=i.elements[s],u=this._fields.reduce(function(e,t){var n=r[t.name].length;return n?e+r[t.name].filter(function(e){return e===a}).length/n*t.boost:e},0);this.tokenStore.add(a,{ref:o,tf:u})}n&&this.eventEmitter.emit("add",t,this)},e.Index.prototype.remove=function(e,t){var n=e[this._ref],t=void 0===t||t;if(this.documentStore.has(n)){var r=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},e.Index.prototype.update=function(e,t){var t=void 0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},e.Index.prototype.idf=function(e){var t="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))return this._idfCache[t];var n=this.tokenStore.count(e),r=1;return n>0&&(r=1+Math.log(this.tokenStore.length/n)),this._idfCache[t]=r},e.Index.prototype.search=function(t){
  1316. var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduce(function(e,t){return e+t.boost},0);return n.some(function(e){return this.tokenStore.has(e)},this)?(n.forEach(function(t,n,s){var a=1/s.length*this._fields.length*o,u=this,c=this.tokenStore.expand(t).reduce(function(n,i){var o=u.corpusTokens.indexOf(i),s=u.idf(i),c=1,l=new e.SortedSet;if(i!==t){var f=Math.max(3,i.length-t.length);c=1/Math.log(f)}return o>-1&&r.insert(o,a*s*c),Object.keys(u.tokenStore.get(i)).forEach(function(e){l.add(e)}),n.union(l)},new e.SortedSet);i.push(c)},this),i.reduce(function(e,t){return e.intersect(t)}).map(function(e){return{ref:e,score:r.similarity(this.documentVector(e))}},this).sort(function(e,t){return t.score-e.score})):[]},e.Index.prototype.documentVector=function(t){for(var n=this.documentStore.get(t),r=n.length,i=new e.Vector,o=0;o<r;o++){var s=n.elements[o],a=this.tokenStore.get(s)[t].tf,u=this.idf(s);i.insert(this.corpusTokens.indexOf(s),a*u)}return i},e.Index.prototype.toJSON=function(){return{version:e.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},e.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},e.Store=function(){this.store={},this.length=0},e.Store.load=function(t){var n=new this;return n.length=t.length,n.store=Object.keys(t.store).reduce(function(n,r){return n[r]=e.SortedSet.load(t.store[r]),n},{}),n},e.Store.prototype.set=function(e,t){this.has(e)||this.length++,this.store[e]=t},e.Store.prototype.get=function(e){return this.store[e]},e.Store.prototype.has=function(e){return e in this.store},e.Store.prototype.remove=function(e){this.has(e)&&(delete this.store[e],this.length--)},e.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},e.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[aeiouy]",r="[^aeiou][^aeiouy]*",i=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),o=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),u=/^(.+?)(ss|i)es$/,c=/^(.+?)([^s])s$/,l=/^(.+?)eed$/,f=/^(.+?)(ed|ing)$/,d=/.$/,p=/(at|bl|iz)$/,h=new RegExp("([^aeiouylsz])\\1$"),g=new RegExp("^"+r+n+"[^aeiouwxy]$"),v=/^(.+?[^aeiou])y$/,m=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,y=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,x=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,w=/^(.+?)e$/,T=/ll$/,S=new RegExp("^"+r+n+"[^aeiouwxy]$");return function(n){var r,E,C,k,N,j,A;if(n.length<3)return n;if(C=n.substr(0,1),"y"==C&&(n=C.toUpperCase()+n.substr(1)),k=u,N=c,k.test(n)?n=n.replace(k,"$1$2"):N.test(n)&&(n=n.replace(N,"$1$2")),k=l,N=f,k.test(n)){var L=k.exec(n);k=i,k.test(L[1])&&(k=d,n=n.replace(k,""))}else if(N.test(n)){var L=N.exec(n);r=L[1],N=a,N.test(r)&&(n=r,N=p,j=h,A=g,N.test(n)?n+="e":j.test(n)?(k=d,n=n.replace(k,"")):A.test(n)&&(n+="e"))}if(k=v,k.test(n)){var L=k.exec(n);r=L[1],n=r+"i"}if(k=m,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+e[E])}if(k=y,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+t[E])}if(k=x,N=b,k.test(n)){var L=k.exec(n);r=L[1],k=o,k.test(r)&&(n=r)}else if(N.test(n)){var L=N.exec(n);r=L[1]+L[2],N=o,N.test(r)&&(n=r)}if(k=w,k.test(n)){var L=k.exec(n);r=L[1],k=o,N=s,j=S,(k.test(r)||N.test(r)&&!j.test(r))&&(n=r)}return k=T,N=o,k.test(n)&&N.test(n)&&(k=d,n=n.replace(k,"")),"y"==C&&(n=C.toLowerCase()+n.substr(1)),n}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer"),e.stopWordFilter=function(t){if(-1===e.stopWordFilter.stopWords.indexOf(t))return t},e.stopWordFilter.stopWords=new e.SortedSet,e.stopWordFilter.stopWords.length=119,e.stopWordFilter.stopWords.elements=["","a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"],e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter"),e.trimmer=function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")},e.Pipeline.registerFunction(e.trimmer,"trimmer"),e.TokenStore=function(){this.root={docs:{}},this.length=0},e.TokenStore.load=function(e){var t=new this;return t.root=e.root,t.length=e.length,t},e.TokenStore.prototype.add=function(e,t,n){var n=n||this.root,r=e[0],i=e.slice(1);return r in n||(n[r]={docs:{}}),0===i.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(i,t,n[r])},e.TokenStore.prototype.has=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},e.TokenStore.prototype.getNode=function(e){if(!e)return{};for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return{};t=t[e[n]]}return t},e.TokenStore.prototype.get=function(e,t){return this.getNode(e,t).docs||{}},e.TokenStore.prototype.count=function(e,t){return Object.keys(this.get(e,t)).length},e.TokenStore.prototype.remove=function(e,t){if(e){for(var n=this.root,r=0;r<e.length;r++){if(!(e[r]in n))return;n=n[e[r]]}delete n.docs[t]}},e.TokenStore.prototype.expand=function(e,t){var n=this.getNode(e),r=n.docs||{},t=t||[];return Object.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},e.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.lunr=t()}(this,function(){return e})}(),function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,o=i.EventEmitter;r.getListeners=function(e){var t,n,r=this._getEvents();if("object"==typeof e){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},r.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},r.addListener=function(e,n){var r,i=this.getListenersAsObject(e),o="object"==typeof n;for(r in i)i.hasOwnProperty(r)&&-1===t(i[r],n)&&i[r].push(o?n:{listener:n,once:!1});return this},r.on=n("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=n("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,n){var r,i,o=this.getListenersAsObject(e);for(i in o)o.hasOwnProperty(i)&&-1!==(r=t(o[i],n))&&o[i].splice(r,1);return this},r.off=n("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},r.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if("object"===n)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=n("removeEvent"),r.emitEvent=function(e,t){var n,r,i,o=this.getListenersAsObject(e);for(i in o)if(o.hasOwnProperty(i))for(r=o[i].length;r--;)n=o[i][r],!0===n.once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},r.trigger=n("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,r=function(){};n.addEventListener?r=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(r=function(e,n,r){e[n+r]=r.handleEvent?function(){var n=t(e);r.handleEvent.call(r,n)}:function(){var n=t(e);r.call(e,n)},e.attachEvent("on"+n,e[n+r])});var i=function(){};n.removeEventListener?i=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(i=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(r){e[t+n]=void 0}});var o={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,r){return t(e,n,r)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(i(e))t=e;else if("number"==typeof e.length)for(var n=0,r=e.length;r>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function a(e){this.img=e}function u(e){this.src=e,p[e]=this}var c=e.jQuery,l=e.console,f=void 0!==l,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var r=n.nodeType;if(r&&(1===r||9===r||11===r))for(var i=n.querySelectorAll("img"),o=0,s=i.length;s>o;o++){var a=i[o];this.addImage(a)}}},s.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},s.prototype.check=function(){function e(e,i){return t.options.debug&&f&&l.log("confirm",e,i),t.progress(e),n++,n===r&&t.complete(),!0}var t=this,n=0,r=this.images.length;if(this.hasAnyBroken=!1,!r)return void this.complete();for(var i=0;r>i;i++){var o=this.images[i];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},c&&(c.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(c(this))}),a.prototype=new t,a.prototype.check=function(){var e=p[this.img.src]||new u(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var p={};return u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},u.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},u.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}),function(){if("ontouchstart"in window){var e,t,n,r,i,o,s={};e=function(e,t){return Math.abs(e[0]-t[0])>5||Math.abs(e[1]-t[1])>5},t=function(e){this.startXY=[e.touches[0].clientX,e.touches[0].clientY],this.threshold=!1},n=function(t){if(this.threshold)return!1;this.threshold=e(this.startXY,[t.touches[0].clientX,t.touches[0].clientY])},r=function(t){if(!this.threshold&&!e(this.startXY,[t.changedTouches[0].clientX,t.changedTouches[0].clientY])){var n=t.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.simulated=!0,t.target.dispatchEvent(r)}},i=function(e){var t=Date.now(),n=t-s.time,r=e.clientX,i=e.clientY,a=[Math.abs(s.x-r),Math.abs(s.y-i)],u=o(e.target,"A")||e.target,c=u.nodeName,l="A"===c,f=window.navigator.standalone&&l&&e.target.getAttribute("href");if(s.time=t,s.x=r,s.y=i,(!e.simulated&&(n<500||n<1500&&a[0]<50&&a[1]<50)||f)&&(e.preventDefault(),e.stopPropagation(),!f))return!1;f&&(window.location=u.getAttribute("href")),u&&u.classList&&(u.classList.add("energize-focus"),window.setTimeout(function(){u.classList.remove("energize-focus")},150))},o=function(e,t){for(var n=e;n!==document.body;){if(!n||n.nodeName===t)return n;n=n.parentNode}return null},document.addEventListener("touchstart",t,!1),document.addEventListener("touchmove",n,!1),document.addEventListener("touchend",r,!1),document.addEventListener("click",i,!0)}}(),function(){"use strict";function e(e){if(e&&""!==e){$(".lang-selector a").removeClass("active"),$(".lang-selector a[data-language-name='"+e+"']").addClass("active");for(var t=0;t<a.length;t++)$(".highlight.tab-"+a[t]).hide(),$(".lang-specific."+a[t]).hide();$(".highlight.tab-"+e).show(),$(".lang-specific."+e).show(),window.recacheHeights(),$(window.location.hash).get(0)&&$(window.location.hash).get(0).scrollIntoView(!0)}}function t(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n[0],i=n[1];return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i,e},{}):{})}function n(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return Array.isArray(n)?n.sort().map(function(e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"):""}function r(){if(location.search.length>=1){var e=t(location.search).language;if(e)return e;if(-1!=jQuery.inArray(location.search.substr(1),a))return location.search.substr(1)}return!1}function i(e){var r=t(location.search);return r.language?(r.language=e,n(r)):e}function o(e){if(history){var t=window.location.hash;t&&(t=t.replace(/^#+/,"")),history.pushState({},"","?"+i(e)+"#"+t),localStorage.setItem("language",e)}}function s(t){var n=localStorage.getItem("language");a=t;var i=r();i?(e(i),localStorage.setItem("language",i)):e(null!==n&&-1!=jQuery.inArray(n,a)?n:a[0])}var a=[];window.setupLanguages=s,window.activateLanguage=e,window.getLanguageFromQueryString=r,$(function(){$(".lang-selector a").on("click",function(){var t=$(this).data("language-name");return o(t),e(t),!1})})}(),function(){"use strict";function e(){$("h1, h2").each(function(){var e=$(this),t=e.nextUntil("h1, h2");f.add({id:e.prop("id"),title:e.text(),body:t.text()})}),t()}function t(){f.tokenStore.length>5e3&&(c=300)}function n(){s=$(".content"),a=$(".search-results"),$("#input-search").on("keyup",function(e){!function(){return function(e,t){clearTimeout(l),l=setTimeout(e,t)}}()(function(){r(e)},c)})}function r(e){var t=$("#input-search")[0];if(o(),a.addClass("visible"),27===e.keyCode&&(t.value=""),t.value){var n=f.search(t.value).filter(function(e){return e.score>1e-4});n.length?(a.empty(),$.each(n,function(e,t){var n=document.getElementById(t.ref);a.append("<li><a href='#"+t.ref+"'>"+$(n).text()+"</a></li>")}),i.call(t)):(a.html("<li></li>"),$(".search-results li").text('No Results Found for "'+t.value+'"'))}else o(),a.removeClass("visible")}function i(){this.value&&s.highlight(this.value,u)}function o(){s.unhighlight(u)}var s,a,u={element:"span",className:"search-highlight"},c=0,l=0,f=new lunr.Index;f.ref("id"),f.field("title",{boost:10}),f.field("body"),f.pipeline.add(lunr.trimmer,lunr.stopWordFilter),$(e),$(n)}(),function(){"use strict";function e(e,i,o,s){var a={},u=0,c=0,l=document.title,f=function(){a={},u=$(document).height(),c=$(window).height(),e.find(i).each(function(){var e=$(this).attr("href");"#"===e[0]&&(a[e]=$(e).offset().top)})},d=function(){var n=$(document).scrollTop()+s;n+c>=u&&(n=u+1e3);var r=null;for(var f in a)(a[f]<n&&a[f]>a[r]||null===r)&&(r=f);n!=s||t||(r=window.location.hash,t=!0);var d=e.find("[href='"+r+"']").first();if(!d.hasClass("active")){e.find(".active").removeClass("active"),e.find(".active-parent").removeClass("active-parent"),d.addClass("active"),d.parents(o).addClass("active").siblings(i).addClass("active-parent"),d.siblings(o).addClass("active"),e.find(o).filter(":not(.active)").slideUp(150),e.find(o).filter(".active").slideDown(150),window.history.replaceState&&window.history.replaceState(null,"",r);var p=d.data("title");void 0!==p&&p.length>0?document.title=p+" – "+l:document.title=l}};!function(){f(),d(),$("#nav-button").click(function(){return $(".toc-wrapper").toggleClass("open"),$("#nav-button").toggleClass("open"),!1}),$(".page-wrapper").click(r),$(".toc-link").click(r),e.find(i).click(function(){setTimeout(function(){d()},0)}),$(window).scroll(n(d,200)),$(window).resize(n(f,200))}(),window.recacheHeights=f,window.refreshToc=d}var t=!1,n=function(e,t){var n=!1;return function(){!1===n&&(setTimeout(function(){e(),n=!1},t),n=!0)}},r=function(){$(".toc-wrapper").removeClass("open"),$("#nav-button").removeClass("open")};window.loadToc=e}(),$(function(){loadToc($("#toc"),".toc-link",".toc-list-h2, .toc-list-h3, .toc-list-h4, .toc-list-h5, .toc-list-h6",10),setupLanguages($("body").data("languages")),$(".content").imagesLoaded(function(){window.recacheHeights(),window.refreshToc()})}),window.onpopstate=function(){activateLanguage(getLanguageFromQueryString())};</script>
  1317. <meta name="theme-color" content="#F3F7F9" />
  1318. </head>
  1319. <body data-languages="[&quot;shell&quot;,&quot;http&quot;,&quot;javascript&quot;,&quot;javascript--nodejs&quot;,&quot;ruby&quot;,&quot;python&quot;,&quot;java&quot;,&quot;go&quot;]">
  1320. <a href="#" id="nav-button">
  1321. <span>
  1322. NAV
  1323. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1324. </span>
  1325. </a>
  1326. <div class="toc-wrapper">
  1327. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAYAAABxutG8AAAG6klEQVR4Ad3aA4xkSxcA4LvefbZt27Zt27Zt27Zt27bttWe2R9+vTionlZs7760m/5eMutDVXV11T507RUeD7rgAL+AQzIlx/mYfp6OGs4oOAp3QEz3Er65FR4NO2EL0GhZtZ/t50IhWXFJ0EFgDd+LW9OUWHFd0RJgSr4lewGTVbZ2BFjRh16KDwHNKjEynE+MkfIz7MP0o3pJuEQ3FChXtxsdLgEYs+385CVgQ98rVcAy6jaIt6Vq5DSraLYM/AMMxbdFB4NmRmgRMhtXyjgxATXQ7xs37sA7WxQRFBXTDzXLrVLTbXTK0qNbxJwGTYVe8IPoFF2F3fC96BZPnffkG8AQ2ROeKre4JUV8sVd5GL1wn+an4BzAJFsE62Aa7YM1Ubgbsgz2xF3ajOsLBS397ErAj3kKrpBVnYf56nfXQKLqAOCgsjKGSRhyDTiXPPQs+Fb1F+faCKfCJ5NmindAT2+FuvIufMBBNgA8wSb3u/nIzFBVwIHrjN/wqfT2ZV2Z6vI5W0ZdYHF3Svu1EUSO2yvt0DlpEr5etBiyFmuiKihc5q+jqoh1wFP5ETbkfMG+9/pFys9XL5sI9eLH+9TKextToivHlX73SYOiMA+SacTe6xMGbCI+LvsHc+ZbmHbmLyVcCOmMv0WBsWPFmbik6qryuzlgLfbXP95irfBLMXi/bGTW5tYsqmAp3yfXD/iVtZkQ/0XN5PRtgmNxG5eFpNrmfVO27uEy0ZUm9qXGt9mlDA55XDzawG2oYjCFoxLRpC9cgt1bVBIyH5+V+oXwGsZqoBafFOnrgMrkRmKv8oJbZr6iAj0VL53XMibeU+wtP4WIcgm2xERaKF27rSdHemug0spNwhtwgLF/R7lxRA/EwhWnRW+49TF3S76Gi34t2kJsulpsDf8oNwaVYETNgYnQv/gHshMaq0DqDPnJbFBXwiah/EYSlO0h0c1lSDn9Vb1sR5ifKgw0DRV9h62IUwjrohza0og2wUFXDBtEtRQVMJHdffur1AT7EANGRJf1uIXqpaAfsIWpIZSbFx4A2fDSK3/wA3dAT3du9onCHaNLqNraV2yq/ZmjAtaJh2KSk3w8kfbEoZsKyWBiTlLS7RvRlusi7GjAYJ2CidqZmNsEGWBVz5uGwlbEptsYa+YfUWtgOUxVVMDsGp8FXw30yMVWBD/E6zhN9jwVKVsEIyXd4AZ9hdzyBT3EFxottvS96qv74+oBvqE7mYUu8gB9wDn5AX3yHK9ELe+Nb9MYwtOCG1Icd8C4Ghg9nFayEgXi3nfWHi96J5VYA7CgPN9/G+HnKwXOiNsB+GBf3AdrwNWnS0Si6Gl3wM77GHBWvZwI8ghGAlzAefhcthXvktq33c5g4luFhlVTBdNihup755I6JdTyF3zEhfhQ9nPdpczTKDUQnTIpXJc04OJ1xtIgOx8EYWrUCMCmelDThYEyL/qIV8KrcLFgdraIvMFcxqmFfuYVTueVQw26YXtSCU/JknVfk4HJ0wowYKmnD7mnVaRXtiYHYvzpl7lzRX5gSO6MxTo4Z8LXcePgKI0RPolcxquEuUT9MmNIBrsEf6IGlRSOwWezPIcrUUxXYVPSC+ovDrvkkeAYNVUEGFgYgJv5wu+g1dMcg0Yc4Fp/jCUkbLowXe4sVowI+Fj2iHvNjAdSwS/3v7UXDMU88QGlTpn4Bx2eSq0gRDh6Va0Ir7qX8JhMekNseU+FT0Tn1NjXRYxiK9fCBZBi2Kerw3ijZmjBdvsc7AV3RDVfgS/XTME4UDU596YJfAM1oEfXGdDgD8AmWi+OxNP5UDi4oi9flYDysj49QAwzBxhgPTaIG3IS50Srpk7Krlse7xaiAxfBnyZYxH9qwY6rvYtEP6UDjgTRYp+JL0a84AVeU5IHGxVVoUe3IkADMxpadL86uf/UDfIMZMBua5GbBRqKvY6BixWJUwLxxEgzFEuiG9/EEepbngbxVf/wqwGBshe54C/l2VAIn4hR8I6phqNyZmDzF8p6Suwzj437sjAGAF1Mor1n0Qb1sF9Gt6V9d3FiMSnhSMgjr4UH8iWnypJm/JL/gfkA/UsIPW8tdnz+/cXAXTsX0+EpuPfwp9yFewnOYBu+IDsY2uAiLYhBacVk6pGojT8FgddHR6IQrMEsxKmECfJRvHaYrqb8mBojexqwlCbBG0cWYFfPgZPyFrdMtTd/LzYAp8bzc1+kumanxnWQY3k6Bhh8BL+MUXCi3ULol6yvJK7g0vxk16s8L9+ModK6+aeQ03Ied0akiAXYMPsEwSR9cnJ+2HYs38DN6o2+MwGyHj9APt2GyfGU5Cg/gVHSNK9lX+BIroSt2xWW4C5divPiB8xUa8H3MAJf7Fykvx9WyNCXUAAAAAElFTkSuQmCC" class="logo" alt="Logo">
  1328. <div class="lang-selector">
  1329. <a href="#" data-language-name="shell">Shell</a>
  1330. <a href="#" data-language-name="http">HTTP</a>
  1331. <a href="#" data-language-name="javascript">JavaScript</a>
  1332. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1333. <a href="#" data-language-name="ruby">Ruby</a>
  1334. <a href="#" data-language-name="python">Python</a>
  1335. <a href="#" data-language-name="java">Java</a>
  1336. <a href="#" data-language-name="go">Go</a>
  1337. </div>
  1338. <div class="search">
  1339. <input type="text" class="search" id="input-search" placeholder="Search">
  1340. </div>
  1341. <ul class="search-results"></ul>
  1342. <div id="toc" class="toc-list-h1">
  1343. <ul class="toc-list-h1">
  1344. <li>
  1345. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v4.70">Wekan REST API v4.70</a>
  1346. </li>
  1347. <li>
  1348. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1349. </li>
  1350. <li>
  1351. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1352. </li>
  1353. <li>
  1354. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1355. <ul class="toc-list-h2">
  1356. <li>
  1357. <a href="#login" class="toc-h2 toc-link" data-title="login">login</a>
  1358. </li>
  1359. <li>
  1360. <a href="#register" class="toc-h2 toc-link" data-title="register">register</a>
  1361. </li>
  1362. </ul>
  1363. </li>
  1364. <li>
  1365. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1366. <ul class="toc-list-h2">
  1367. <li>
  1368. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="get_public_boards">get_public_boards</a>
  1369. </li>
  1370. <li>
  1371. <a href="#new_board" class="toc-h2 toc-link" data-title="new_board">new_board</a>
  1372. </li>
  1373. <li>
  1374. <a href="#get_board" class="toc-h2 toc-link" data-title="get_board">get_board</a>
  1375. </li>
  1376. <li>
  1377. <a href="#delete_board" class="toc-h2 toc-link" data-title="delete_board">delete_board</a>
  1378. </li>
  1379. <li>
  1380. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="get_board_attachments">get_board_attachments</a>
  1381. </li>
  1382. <li>
  1383. <a href="#exportjson" class="toc-h2 toc-link" data-title="exportJson">exportJson</a>
  1384. </li>
  1385. <li>
  1386. <a href="#add_board_label" class="toc-h2 toc-link" data-title="add_board_label">add_board_label</a>
  1387. </li>
  1388. <li>
  1389. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="set_board_member_permission">set_board_member_permission</a>
  1390. </li>
  1391. <li>
  1392. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="get_boards_from_user">get_boards_from_user</a>
  1393. </li>
  1394. </ul>
  1395. </li>
  1396. <li>
  1397. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1398. <ul class="toc-list-h2">
  1399. <li>
  1400. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="get_all_checklists">get_all_checklists</a>
  1401. </li>
  1402. <li>
  1403. <a href="#new_checklist" class="toc-h2 toc-link" data-title="new_checklist">new_checklist</a>
  1404. </li>
  1405. <li>
  1406. <a href="#get_checklist" class="toc-h2 toc-link" data-title="get_checklist">get_checklist</a>
  1407. </li>
  1408. <li>
  1409. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="delete_checklist">delete_checklist</a>
  1410. </li>
  1411. </ul>
  1412. </li>
  1413. <li>
  1414. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1415. <ul class="toc-list-h2">
  1416. <li>
  1417. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="get_checklist_item">get_checklist_item</a>
  1418. </li>
  1419. <li>
  1420. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="edit_checklist_item">edit_checklist_item</a>
  1421. </li>
  1422. <li>
  1423. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="delete_checklist_item">delete_checklist_item</a>
  1424. </li>
  1425. </ul>
  1426. </li>
  1427. <li>
  1428. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1429. <ul class="toc-list-h2">
  1430. <li>
  1431. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="get_all_comments">get_all_comments</a>
  1432. </li>
  1433. <li>
  1434. <a href="#new_comment" class="toc-h2 toc-link" data-title="new_comment">new_comment</a>
  1435. </li>
  1436. <li>
  1437. <a href="#get_comment" class="toc-h2 toc-link" data-title="get_comment">get_comment</a>
  1438. </li>
  1439. <li>
  1440. <a href="#delete_comment" class="toc-h2 toc-link" data-title="delete_comment">delete_comment</a>
  1441. </li>
  1442. </ul>
  1443. </li>
  1444. <li>
  1445. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1446. <ul class="toc-list-h2">
  1447. <li>
  1448. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="get_cards_by_custom_field">get_cards_by_custom_field</a>
  1449. </li>
  1450. <li>
  1451. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="get_all_cards">get_all_cards</a>
  1452. </li>
  1453. <li>
  1454. <a href="#new_card" class="toc-h2 toc-link" data-title="new_card">new_card</a>
  1455. </li>
  1456. <li>
  1457. <a href="#get_card" class="toc-h2 toc-link" data-title="get_card">get_card</a>
  1458. </li>
  1459. <li>
  1460. <a href="#edit_card" class="toc-h2 toc-link" data-title="edit_card">edit_card</a>
  1461. </li>
  1462. <li>
  1463. <a href="#delete_card" class="toc-h2 toc-link" data-title="delete_card">delete_card</a>
  1464. </li>
  1465. <li>
  1466. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="get_swimlane_cards">get_swimlane_cards</a>
  1467. </li>
  1468. </ul>
  1469. </li>
  1470. <li>
  1471. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1472. <ul class="toc-list-h2">
  1473. <li>
  1474. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="get_all_custom_fields">get_all_custom_fields</a>
  1475. </li>
  1476. <li>
  1477. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="new_custom_field">new_custom_field</a>
  1478. </li>
  1479. <li>
  1480. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="get_custom_field">get_custom_field</a>
  1481. </li>
  1482. <li>
  1483. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="delete_custom_field">delete_custom_field</a>
  1484. </li>
  1485. </ul>
  1486. </li>
  1487. <li>
  1488. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1489. <ul class="toc-list-h2">
  1490. <li>
  1491. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="get_all_integrations">get_all_integrations</a>
  1492. </li>
  1493. <li>
  1494. <a href="#new_integration" class="toc-h2 toc-link" data-title="new_integration">new_integration</a>
  1495. </li>
  1496. <li>
  1497. <a href="#get_integration" class="toc-h2 toc-link" data-title="get_integration">get_integration</a>
  1498. </li>
  1499. <li>
  1500. <a href="#edit_integration" class="toc-h2 toc-link" data-title="edit_integration">edit_integration</a>
  1501. </li>
  1502. <li>
  1503. <a href="#delete_integration" class="toc-h2 toc-link" data-title="delete_integration">delete_integration</a>
  1504. </li>
  1505. <li>
  1506. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="delete_integration_activities">delete_integration_activities</a>
  1507. </li>
  1508. <li>
  1509. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="new_integration_activities">new_integration_activities</a>
  1510. </li>
  1511. </ul>
  1512. </li>
  1513. <li>
  1514. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1515. <ul class="toc-list-h2">
  1516. <li>
  1517. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="get_all_lists">get_all_lists</a>
  1518. </li>
  1519. <li>
  1520. <a href="#new_list" class="toc-h2 toc-link" data-title="new_list">new_list</a>
  1521. </li>
  1522. <li>
  1523. <a href="#get_list" class="toc-h2 toc-link" data-title="get_list">get_list</a>
  1524. </li>
  1525. <li>
  1526. <a href="#delete_list" class="toc-h2 toc-link" data-title="delete_list">delete_list</a>
  1527. </li>
  1528. </ul>
  1529. </li>
  1530. <li>
  1531. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1532. <ul class="toc-list-h2">
  1533. <li>
  1534. <a href="#add_board_member" class="toc-h2 toc-link" data-title="add_board_member">add_board_member</a>
  1535. </li>
  1536. <li>
  1537. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="remove_board_member">remove_board_member</a>
  1538. </li>
  1539. <li>
  1540. <a href="#get_current_user" class="toc-h2 toc-link" data-title="get_current_user">get_current_user</a>
  1541. </li>
  1542. <li>
  1543. <a href="#get_all_users" class="toc-h2 toc-link" data-title="get_all_users">get_all_users</a>
  1544. </li>
  1545. <li>
  1546. <a href="#new_user" class="toc-h2 toc-link" data-title="new_user">new_user</a>
  1547. </li>
  1548. <li>
  1549. <a href="#get_user" class="toc-h2 toc-link" data-title="get_user">get_user</a>
  1550. </li>
  1551. <li>
  1552. <a href="#edit_user" class="toc-h2 toc-link" data-title="edit_user">edit_user</a>
  1553. </li>
  1554. <li>
  1555. <a href="#delete_user" class="toc-h2 toc-link" data-title="delete_user">delete_user</a>
  1556. </li>
  1557. </ul>
  1558. </li>
  1559. <li>
  1560. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1561. <ul class="toc-list-h2">
  1562. <li>
  1563. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="get_all_swimlanes">get_all_swimlanes</a>
  1564. </li>
  1565. <li>
  1566. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="new_swimlane">new_swimlane</a>
  1567. </li>
  1568. <li>
  1569. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="get_swimlane">get_swimlane</a>
  1570. </li>
  1571. <li>
  1572. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="delete_swimlane">delete_swimlane</a>
  1573. </li>
  1574. </ul>
  1575. </li>
  1576. <li>
  1577. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1578. <ul class="toc-list-h2">
  1579. <li>
  1580. <a href="#tocsboards" class="toc-h2 toc-link" data-title="Boards">Boards</a>
  1581. </li>
  1582. <li>
  1583. <a href="#tocsboardslabels" class="toc-h2 toc-link" data-title="BoardsLabels">BoardsLabels</a>
  1584. </li>
  1585. <li>
  1586. <a href="#tocsboardsmembers" class="toc-h2 toc-link" data-title="BoardsMembers">BoardsMembers</a>
  1587. </li>
  1588. <li>
  1589. <a href="#tocscardcomments" class="toc-h2 toc-link" data-title="CardComments">CardComments</a>
  1590. </li>
  1591. <li>
  1592. <a href="#tocscards" class="toc-h2 toc-link" data-title="Cards">Cards</a>
  1593. </li>
  1594. <li>
  1595. <a href="#tocscardsvote" class="toc-h2 toc-link" data-title="CardsVote">CardsVote</a>
  1596. </li>
  1597. <li>
  1598. <a href="#tocscardscustomfields" class="toc-h2 toc-link" data-title="CardsCustomfields">CardsCustomfields</a>
  1599. </li>
  1600. <li>
  1601. <a href="#tocschecklistitems" class="toc-h2 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1602. </li>
  1603. <li>
  1604. <a href="#tocschecklists" class="toc-h2 toc-link" data-title="Checklists">Checklists</a>
  1605. </li>
  1606. <li>
  1607. <a href="#tocscustomfields" class="toc-h2 toc-link" data-title="CustomFields">CustomFields</a>
  1608. </li>
  1609. <li>
  1610. <a href="#tocscustomfieldssettings" class="toc-h2 toc-link" data-title="CustomFieldsSettings">CustomFieldsSettings</a>
  1611. </li>
  1612. <li>
  1613. <a href="#tocscustomfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="CustomFieldsSettingsDropdownitems">CustomFieldsSettingsDropdownitems</a>
  1614. </li>
  1615. <li>
  1616. <a href="#tocsintegrations" class="toc-h2 toc-link" data-title="Integrations">Integrations</a>
  1617. </li>
  1618. <li>
  1619. <a href="#tocslists" class="toc-h2 toc-link" data-title="Lists">Lists</a>
  1620. </li>
  1621. <li>
  1622. <a href="#tocslistswiplimit" class="toc-h2 toc-link" data-title="ListsWiplimit">ListsWiplimit</a>
  1623. </li>
  1624. <li>
  1625. <a href="#tocsswimlanes" class="toc-h2 toc-link" data-title="Swimlanes">Swimlanes</a>
  1626. </li>
  1627. <li>
  1628. <a href="#tocsusers" class="toc-h2 toc-link" data-title="Users">Users</a>
  1629. </li>
  1630. <li>
  1631. <a href="#tocsusersemails" class="toc-h2 toc-link" data-title="UsersEmails">UsersEmails</a>
  1632. </li>
  1633. <li>
  1634. <a href="#tocsusersprofile" class="toc-h2 toc-link" data-title="UsersProfile">UsersProfile</a>
  1635. </li>
  1636. </ul>
  1637. </li>
  1638. </ul>
  1639. </div>
  1640. <ul class="toc-footer">
  1641. </ul>
  1642. </div>
  1643. <div class="page-wrapper">
  1644. <div class="dark-box"></div>
  1645. <div class="content">
  1646. <h1 id="wekan-rest-api">Wekan REST API v4.70</h1>
  1647. <blockquote>
  1648. <p>Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.</p>
  1649. </blockquote>
  1650. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1651. <p>If you are an end-user and not a dev or a tester, <a href="https://github.com/wekan/wekan/issues/new">create an issue</a> to request new APIs.</p>
  1652. <blockquote>
  1653. <p>All API calls in the documentation are made using <code>curl</code>. However, you are free to use Java / Python / PHP / Golang / Ruby / Swift / Objective-C / Rust / Scala / C# or any other programming languages.</p>
  1654. </blockquote>
  1655. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1656. <p>When calling a production Wekan server, ensure it is running via HTTPS and has a valid SSL Certificate. The login method requires you to post your username and password in plaintext, which is why we highly suggest only calling the REST login api over HTTPS. Also, few things to note:</p>
  1657. <ul>
  1658. <li>Only call via HTTPS</li>
  1659. <li>Implement a timed authorization token expiration strategy</li>
  1660. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1661. </ul>
  1662. <h1 id="authentication">Authentication</h1>
  1663. <ul>
  1664. <li>API Key (UserSecurity)
  1665. <ul>
  1666. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1667. </ul>
  1668. </li>
  1669. </ul>
  1670. <h1 id="wekan-rest-api-login">Login</h1>
  1671. <h2 id="login">login</h2>
  1672. <p><a id="opIdlogin"></a></p>
  1673. <blockquote>
  1674. <p>Code samples</p>
  1675. </blockquote>
  1676. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1677. curl -X POST /users/login \
  1678. -H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
  1679. -H <span class="hljs-string">'Accept: */*'</span>
  1680. </code></pre>
  1681. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/login</span> HTTP/1.1
  1682. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/x-www-form-urlencoded
  1683. <span class="hljs-attribute">Accept</span>: */*
  1684. <span class="undefined"></span></span></code></pre>
  1685. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1686. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1687. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1688. };
  1689. $.ajax({
  1690. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/login'</span>,
  1691. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1692. <span class="hljs-attr">headers</span>: headers,
  1693. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1694. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1695. }
  1696. })
  1697. </code></pre>
  1698. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  1699. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1700. "username": "string",
  1701. "password": "pa$$word"
  1702. }'</span>;
  1703. <span class="hljs-keyword">const</span> headers = {
  1704. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1705. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1706. };
  1707. fetch(<span class="hljs-string">'/users/login'</span>,
  1708. {
  1709. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1710. <span class="hljs-attr">body</span>: inputBody,
  1711. <span class="hljs-attr">headers</span>: headers
  1712. })
  1713. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1714. <span class="hljs-keyword">return</span> res.json();
  1715. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1716. <span class="hljs-built_in">console</span>.log(body);
  1717. });
  1718. </code></pre>
  1719. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1720. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1721. headers = {
  1722. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1723. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1724. }
  1725. result = RestClient.post <span class="hljs-string">'/users/login'</span>,
  1726. <span class="hljs-symbol">params:</span> {
  1727. }, <span class="hljs-symbol">headers:</span> headers
  1728. p JSON.parse(result)
  1729. </code></pre>
  1730. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1731. headers = {
  1732. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1733. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  1734. }
  1735. r = requests.post(<span class="hljs-string">'/users/login'</span>, params={
  1736. }, headers = headers)
  1737. <span class="hljs-keyword">print</span> r.json()
  1738. </code></pre>
  1739. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/login"</span>);
  1740. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1741. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  1742. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1743. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1744. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1745. String inputLine;
  1746. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1747. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1748. response.append(inputLine);
  1749. }
  1750. in.close();
  1751. System.out.println(response.toString());
  1752. </code></pre>
  1753. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1754. <span class="hljs-keyword">import</span> (
  1755. <span class="hljs-string">"bytes"</span>
  1756. <span class="hljs-string">"net/http"</span>
  1757. )
  1758. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1759. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1760. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/x-www-form-urlencoded"</span>},
  1761. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  1762. }
  1763. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1764. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/login"</span>, data)
  1765. req.Header = headers
  1766. client := &amp;http.Client{}
  1767. resp, err := client.Do(req)
  1768. <span class="hljs-comment">// ...</span>
  1769. }
  1770. </code></pre>
  1771. <p><code>POST /users/login</code></p>
  1772. <p><em>Login with REST API</em></p>
  1773. <blockquote>
  1774. <p>Body parameter</p>
  1775. </blockquote>
  1776. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1777. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1778. </code></pre>
  1779. <h3 id="login-parameters">Parameters</h3>
  1780. <table>
  1781. <thead>
  1782. <tr>
  1783. <th>Name</th>
  1784. <th>In</th>
  1785. <th>Type</th>
  1786. <th>Required</th>
  1787. <th>Description</th>
  1788. </tr>
  1789. </thead>
  1790. <tbody>
  1791. <tr>
  1792. <td>body</td>
  1793. <td>body</td>
  1794. <td>object</td>
  1795. <td>false</td>
  1796. <td>none</td>
  1797. </tr>
  1798. <tr>
  1799. <td>» username</td>
  1800. <td>body</td>
  1801. <td>string</td>
  1802. <td>true</td>
  1803. <td>Your username</td>
  1804. </tr>
  1805. <tr>
  1806. <td>» password</td>
  1807. <td>body</td>
  1808. <td>string(password)</td>
  1809. <td>true</td>
  1810. <td>Your password</td>
  1811. </tr>
  1812. </tbody>
  1813. </table>
  1814. <blockquote>
  1815. <p>Example responses</p>
  1816. </blockquote>
  1817. <blockquote>
  1818. <p>200 Response</p>
  1819. </blockquote>
  1820. <h3 id="login-responses">Responses</h3>
  1821. <table>
  1822. <thead>
  1823. <tr>
  1824. <th>Status</th>
  1825. <th>Meaning</th>
  1826. <th>Description</th>
  1827. <th>Schema</th>
  1828. </tr>
  1829. </thead>
  1830. <tbody>
  1831. <tr>
  1832. <td>200</td>
  1833. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1834. <td>Successful authentication</td>
  1835. <td>Inline</td>
  1836. </tr>
  1837. <tr>
  1838. <td>400</td>
  1839. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1840. <td>Error in authentication</td>
  1841. <td>Inline</td>
  1842. </tr>
  1843. <tr>
  1844. <td>default</td>
  1845. <td>Default</td>
  1846. <td>Error in authentication</td>
  1847. <td>None</td>
  1848. </tr>
  1849. </tbody>
  1850. </table>
  1851. <h3 id="login-responseschema">Response Schema</h3>
  1852. <p>Status Code <strong>200</strong></p>
  1853. <table>
  1854. <thead>
  1855. <tr>
  1856. <th>Name</th>
  1857. <th>Type</th>
  1858. <th>Required</th>
  1859. <th>Restrictions</th>
  1860. <th>Description</th>
  1861. </tr>
  1862. </thead>
  1863. <tbody>
  1864. <tr>
  1865. <td>» id</td>
  1866. <td>string</td>
  1867. <td>false</td>
  1868. <td>none</td>
  1869. <td>none</td>
  1870. </tr>
  1871. <tr>
  1872. <td>» token</td>
  1873. <td>string</td>
  1874. <td>false</td>
  1875. <td>none</td>
  1876. <td>none</td>
  1877. </tr>
  1878. <tr>
  1879. <td>» tokenExpires</td>
  1880. <td>string</td>
  1881. <td>false</td>
  1882. <td>none</td>
  1883. <td>none</td>
  1884. </tr>
  1885. </tbody>
  1886. </table>
  1887. <p>Status Code <strong>400</strong></p>
  1888. <table>
  1889. <thead>
  1890. <tr>
  1891. <th>Name</th>
  1892. <th>Type</th>
  1893. <th>Required</th>
  1894. <th>Restrictions</th>
  1895. <th>Description</th>
  1896. </tr>
  1897. </thead>
  1898. <tbody>
  1899. <tr>
  1900. <td>» error</td>
  1901. <td>number</td>
  1902. <td>false</td>
  1903. <td>none</td>
  1904. <td>none</td>
  1905. </tr>
  1906. <tr>
  1907. <td>» reason</td>
  1908. <td>string</td>
  1909. <td>false</td>
  1910. <td>none</td>
  1911. <td>none</td>
  1912. </tr>
  1913. </tbody>
  1914. </table>
  1915. <aside class="success">
  1916. This operation does not require authentication
  1917. </aside>
  1918. <h2 id="register">register</h2>
  1919. <p><a id="opIdregister"></a></p>
  1920. <blockquote>
  1921. <p>Code samples</p>
  1922. </blockquote>
  1923. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1924. curl -X POST /users/register \
  1925. -H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
  1926. -H <span class="hljs-string">'Accept: */*'</span>
  1927. </code></pre>
  1928. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/register</span> HTTP/1.1
  1929. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/x-www-form-urlencoded
  1930. <span class="hljs-attribute">Accept</span>: */*
  1931. <span class="undefined"></span></span></code></pre>
  1932. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1933. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1934. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1935. };
  1936. $.ajax({
  1937. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/register'</span>,
  1938. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1939. <span class="hljs-attr">headers</span>: headers,
  1940. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1941. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1942. }
  1943. })
  1944. </code></pre>
  1945. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  1946. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1947. "username": "string",
  1948. "password": "pa$$word",
  1949. "email": "string"
  1950. }'</span>;
  1951. <span class="hljs-keyword">const</span> headers = {
  1952. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1953. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1954. };
  1955. fetch(<span class="hljs-string">'/users/register'</span>,
  1956. {
  1957. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1958. <span class="hljs-attr">body</span>: inputBody,
  1959. <span class="hljs-attr">headers</span>: headers
  1960. })
  1961. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1962. <span class="hljs-keyword">return</span> res.json();
  1963. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1964. <span class="hljs-built_in">console</span>.log(body);
  1965. });
  1966. </code></pre>
  1967. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1968. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1969. headers = {
  1970. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1971. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1972. }
  1973. result = RestClient.post <span class="hljs-string">'/users/register'</span>,
  1974. <span class="hljs-symbol">params:</span> {
  1975. }, <span class="hljs-symbol">headers:</span> headers
  1976. p JSON.parse(result)
  1977. </code></pre>
  1978. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1979. headers = {
  1980. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1981. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  1982. }
  1983. r = requests.post(<span class="hljs-string">'/users/register'</span>, params={
  1984. }, headers = headers)
  1985. <span class="hljs-keyword">print</span> r.json()
  1986. </code></pre>
  1987. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/register"</span>);
  1988. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1989. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  1990. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1991. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1992. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1993. String inputLine;
  1994. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1995. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1996. response.append(inputLine);
  1997. }
  1998. in.close();
  1999. System.out.println(response.toString());
  2000. </code></pre>
  2001. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2002. <span class="hljs-keyword">import</span> (
  2003. <span class="hljs-string">"bytes"</span>
  2004. <span class="hljs-string">"net/http"</span>
  2005. )
  2006. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2007. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2008. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/x-www-form-urlencoded"</span>},
  2009. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  2010. }
  2011. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2012. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/register"</span>, data)
  2013. req.Header = headers
  2014. client := &amp;http.Client{}
  2015. resp, err := client.Do(req)
  2016. <span class="hljs-comment">// ...</span>
  2017. }
  2018. </code></pre>
  2019. <p><code>POST /users/register</code></p>
  2020. <p><em>Register with REST API</em></p>
  2021. <p>Notes:</p>
  2022. <ul>
  2023. <li>You will need to provide the token for any of the authenticated methods.</li>
  2024. </ul>
  2025. <blockquote>
  2026. <p>Body parameter</p>
  2027. </blockquote>
  2028. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2029. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2030. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2031. </code></pre>
  2032. <h3 id="register-parameters">Parameters</h3>
  2033. <table>
  2034. <thead>
  2035. <tr>
  2036. <th>Name</th>
  2037. <th>In</th>
  2038. <th>Type</th>
  2039. <th>Required</th>
  2040. <th>Description</th>
  2041. </tr>
  2042. </thead>
  2043. <tbody>
  2044. <tr>
  2045. <td>body</td>
  2046. <td>body</td>
  2047. <td>object</td>
  2048. <td>false</td>
  2049. <td>none</td>
  2050. </tr>
  2051. <tr>
  2052. <td>» username</td>
  2053. <td>body</td>
  2054. <td>string</td>
  2055. <td>true</td>
  2056. <td>Your username</td>
  2057. </tr>
  2058. <tr>
  2059. <td>» password</td>
  2060. <td>body</td>
  2061. <td>string(password)</td>
  2062. <td>true</td>
  2063. <td>Your password</td>
  2064. </tr>
  2065. <tr>
  2066. <td>» email</td>
  2067. <td>body</td>
  2068. <td>string</td>
  2069. <td>true</td>
  2070. <td>Your email</td>
  2071. </tr>
  2072. </tbody>
  2073. </table>
  2074. <blockquote>
  2075. <p>Example responses</p>
  2076. </blockquote>
  2077. <blockquote>
  2078. <p>200 Response</p>
  2079. </blockquote>
  2080. <h3 id="register-responses">Responses</h3>
  2081. <table>
  2082. <thead>
  2083. <tr>
  2084. <th>Status</th>
  2085. <th>Meaning</th>
  2086. <th>Description</th>
  2087. <th>Schema</th>
  2088. </tr>
  2089. </thead>
  2090. <tbody>
  2091. <tr>
  2092. <td>200</td>
  2093. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2094. <td>Successful registration</td>
  2095. <td>Inline</td>
  2096. </tr>
  2097. <tr>
  2098. <td>400</td>
  2099. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2100. <td>Error in registration</td>
  2101. <td>Inline</td>
  2102. </tr>
  2103. <tr>
  2104. <td>default</td>
  2105. <td>Default</td>
  2106. <td>Error in registration</td>
  2107. <td>None</td>
  2108. </tr>
  2109. </tbody>
  2110. </table>
  2111. <h3 id="register-responseschema">Response Schema</h3>
  2112. <p>Status Code <strong>200</strong></p>
  2113. <table>
  2114. <thead>
  2115. <tr>
  2116. <th>Name</th>
  2117. <th>Type</th>
  2118. <th>Required</th>
  2119. <th>Restrictions</th>
  2120. <th>Description</th>
  2121. </tr>
  2122. </thead>
  2123. <tbody>
  2124. <tr>
  2125. <td>» id</td>
  2126. <td>string</td>
  2127. <td>false</td>
  2128. <td>none</td>
  2129. <td>none</td>
  2130. </tr>
  2131. <tr>
  2132. <td>» token</td>
  2133. <td>string</td>
  2134. <td>false</td>
  2135. <td>none</td>
  2136. <td>none</td>
  2137. </tr>
  2138. <tr>
  2139. <td>» tokenExpires</td>
  2140. <td>string</td>
  2141. <td>false</td>
  2142. <td>none</td>
  2143. <td>none</td>
  2144. </tr>
  2145. </tbody>
  2146. </table>
  2147. <p>Status Code <strong>400</strong></p>
  2148. <table>
  2149. <thead>
  2150. <tr>
  2151. <th>Name</th>
  2152. <th>Type</th>
  2153. <th>Required</th>
  2154. <th>Restrictions</th>
  2155. <th>Description</th>
  2156. </tr>
  2157. </thead>
  2158. <tbody>
  2159. <tr>
  2160. <td>» error</td>
  2161. <td>number</td>
  2162. <td>false</td>
  2163. <td>none</td>
  2164. <td>none</td>
  2165. </tr>
  2166. <tr>
  2167. <td>» reason</td>
  2168. <td>string</td>
  2169. <td>false</td>
  2170. <td>none</td>
  2171. <td>none</td>
  2172. </tr>
  2173. </tbody>
  2174. </table>
  2175. <aside class="success">
  2176. This operation does not require authentication
  2177. </aside>
  2178. <h1 id="wekan-rest-api-boards">Boards</h1>
  2179. <h2 id="get_public_boards">get_public_boards</h2>
  2180. <p><a id="opIdget_public_boards"></a></p>
  2181. <blockquote>
  2182. <p>Code samples</p>
  2183. </blockquote>
  2184. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2185. curl -X GET /api/boards \
  2186. -H <span class="hljs-string">'Accept: application/json'</span> \
  2187. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2188. </code></pre>
  2189. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards</span> HTTP/1.1
  2190. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2191. <span class="undefined"></span></span></code></pre>
  2192. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2193. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2194. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2195. };
  2196. $.ajax({
  2197. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards'</span>,
  2198. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2199. <span class="hljs-attr">headers</span>: headers,
  2200. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2201. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2202. }
  2203. })
  2204. </code></pre>
  2205. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2206. <span class="hljs-keyword">const</span> headers = {
  2207. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2208. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2209. };
  2210. fetch(<span class="hljs-string">'/api/boards'</span>,
  2211. {
  2212. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2213. <span class="hljs-attr">headers</span>: headers
  2214. })
  2215. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2216. <span class="hljs-keyword">return</span> res.json();
  2217. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2218. <span class="hljs-built_in">console</span>.log(body);
  2219. });
  2220. </code></pre>
  2221. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2222. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2223. headers = {
  2224. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2225. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2226. }
  2227. result = RestClient.get <span class="hljs-string">'/api/boards'</span>,
  2228. <span class="hljs-symbol">params:</span> {
  2229. }, <span class="hljs-symbol">headers:</span> headers
  2230. p JSON.parse(result)
  2231. </code></pre>
  2232. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2233. headers = {
  2234. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2235. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2236. }
  2237. r = requests.get(<span class="hljs-string">'/api/boards'</span>, params={
  2238. }, headers = headers)
  2239. <span class="hljs-keyword">print</span> r.json()
  2240. </code></pre>
  2241. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards"</span>);
  2242. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2243. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2244. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2245. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2246. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2247. String inputLine;
  2248. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2249. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2250. response.append(inputLine);
  2251. }
  2252. in.close();
  2253. System.out.println(response.toString());
  2254. </code></pre>
  2255. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2256. <span class="hljs-keyword">import</span> (
  2257. <span class="hljs-string">"bytes"</span>
  2258. <span class="hljs-string">"net/http"</span>
  2259. )
  2260. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2261. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2262. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2263. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2264. }
  2265. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2266. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards"</span>, data)
  2267. req.Header = headers
  2268. client := &amp;http.Client{}
  2269. resp, err := client.Do(req)
  2270. <span class="hljs-comment">// ...</span>
  2271. }
  2272. </code></pre>
  2273. <p><code>GET /api/boards</code></p>
  2274. <p><em>Get all public boards</em></p>
  2275. <blockquote>
  2276. <p>Example responses</p>
  2277. </blockquote>
  2278. <blockquote>
  2279. <p>200 Response</p>
  2280. </blockquote>
  2281. <pre class="highlight tab tab-json"><code>[
  2282. {
  2283. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2284. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  2285. }
  2286. ]
  2287. </code></pre>
  2288. <h3 id="get_public_boards-responses">Responses</h3>
  2289. <table>
  2290. <thead>
  2291. <tr>
  2292. <th>Status</th>
  2293. <th>Meaning</th>
  2294. <th>Description</th>
  2295. <th>Schema</th>
  2296. </tr>
  2297. </thead>
  2298. <tbody>
  2299. <tr>
  2300. <td>200</td>
  2301. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2302. <td>200 response</td>
  2303. <td>Inline</td>
  2304. </tr>
  2305. </tbody>
  2306. </table>
  2307. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2308. <p>Status Code <strong>200</strong></p>
  2309. <table>
  2310. <thead>
  2311. <tr>
  2312. <th>Name</th>
  2313. <th>Type</th>
  2314. <th>Required</th>
  2315. <th>Restrictions</th>
  2316. <th>Description</th>
  2317. </tr>
  2318. </thead>
  2319. <tbody>
  2320. <tr>
  2321. <td>» _id</td>
  2322. <td>string</td>
  2323. <td>false</td>
  2324. <td>none</td>
  2325. <td>none</td>
  2326. </tr>
  2327. <tr>
  2328. <td>» title</td>
  2329. <td>string</td>
  2330. <td>false</td>
  2331. <td>none</td>
  2332. <td>none</td>
  2333. </tr>
  2334. </tbody>
  2335. </table>
  2336. <aside class="warning">
  2337. To perform this operation, you must be authenticated by means of one of the following methods:
  2338. UserSecurity
  2339. </aside>
  2340. <h2 id="new_board">new_board</h2>
  2341. <p><a id="opIdnew_board"></a></p>
  2342. <blockquote>
  2343. <p>Code samples</p>
  2344. </blockquote>
  2345. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2346. curl -X POST /api/boards \
  2347. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  2348. -H <span class="hljs-string">'Accept: application/json'</span> \
  2349. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2350. </code></pre>
  2351. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards</span> HTTP/1.1
  2352. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2353. Accept: application/json
  2354. </span></code></pre>
  2355. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2356. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2357. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2358. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2359. };
  2360. $.ajax({
  2361. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards'</span>,
  2362. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  2363. <span class="hljs-attr">headers</span>: headers,
  2364. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2365. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2366. }
  2367. })
  2368. </code></pre>
  2369. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2370. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  2371. "title": "string",
  2372. "owner": "string",
  2373. "isAdmin": true,
  2374. "isActive": true,
  2375. "isNoComments": true,
  2376. "isCommentOnly": true,
  2377. "isWorker": true,
  2378. "permission": "string",
  2379. "color": "string"
  2380. }'</span>;
  2381. <span class="hljs-keyword">const</span> headers = {
  2382. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2383. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2384. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2385. };
  2386. fetch(<span class="hljs-string">'/api/boards'</span>,
  2387. {
  2388. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  2389. <span class="hljs-attr">body</span>: inputBody,
  2390. <span class="hljs-attr">headers</span>: headers
  2391. })
  2392. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2393. <span class="hljs-keyword">return</span> res.json();
  2394. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2395. <span class="hljs-built_in">console</span>.log(body);
  2396. });
  2397. </code></pre>
  2398. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2399. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2400. headers = {
  2401. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  2402. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2403. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2404. }
  2405. result = RestClient.post <span class="hljs-string">'/api/boards'</span>,
  2406. <span class="hljs-symbol">params:</span> {
  2407. }, <span class="hljs-symbol">headers:</span> headers
  2408. p JSON.parse(result)
  2409. </code></pre>
  2410. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2411. headers = {
  2412. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  2413. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2414. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2415. }
  2416. r = requests.post(<span class="hljs-string">'/api/boards'</span>, params={
  2417. }, headers = headers)
  2418. <span class="hljs-keyword">print</span> r.json()
  2419. </code></pre>
  2420. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards"</span>);
  2421. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2422. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  2423. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2424. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2425. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2426. String inputLine;
  2427. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2428. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2429. response.append(inputLine);
  2430. }
  2431. in.close();
  2432. System.out.println(response.toString());
  2433. </code></pre>
  2434. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2435. <span class="hljs-keyword">import</span> (
  2436. <span class="hljs-string">"bytes"</span>
  2437. <span class="hljs-string">"net/http"</span>
  2438. )
  2439. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2440. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2441. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  2442. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2443. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2444. }
  2445. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2446. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards"</span>, data)
  2447. req.Header = headers
  2448. client := &amp;http.Client{}
  2449. resp, err := client.Do(req)
  2450. <span class="hljs-comment">// ...</span>
  2451. }
  2452. </code></pre>
  2453. <p><code>POST /api/boards</code></p>
  2454. <p><em>Create a board</em></p>
  2455. <p>This allows to create a board.</p>
  2456. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2457. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2458. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2459. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2460. <blockquote>
  2461. <p>Body parameter</p>
  2462. </blockquote>
  2463. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2464. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2465. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2466. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2467. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2468. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2469. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2470. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2471. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2472. </code></pre>
  2473. <h3 id="new_board-parameters">Parameters</h3>
  2474. <table>
  2475. <thead>
  2476. <tr>
  2477. <th>Name</th>
  2478. <th>In</th>
  2479. <th>Type</th>
  2480. <th>Required</th>
  2481. <th>Description</th>
  2482. </tr>
  2483. </thead>
  2484. <tbody>
  2485. <tr>
  2486. <td>body</td>
  2487. <td>body</td>
  2488. <td>object</td>
  2489. <td>false</td>
  2490. <td>none</td>
  2491. </tr>
  2492. <tr>
  2493. <td>» title</td>
  2494. <td>body</td>
  2495. <td>string</td>
  2496. <td>true</td>
  2497. <td>the new title of the board</td>
  2498. </tr>
  2499. <tr>
  2500. <td>» owner</td>
  2501. <td>body</td>
  2502. <td>string</td>
  2503. <td>true</td>
  2504. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2505. </tr>
  2506. <tr>
  2507. <td>» isAdmin</td>
  2508. <td>body</td>
  2509. <td>boolean</td>
  2510. <td>false</td>
  2511. <td>is the owner an admin of the board (default true)</td>
  2512. </tr>
  2513. <tr>
  2514. <td>» isActive</td>
  2515. <td>body</td>
  2516. <td>boolean</td>
  2517. <td>false</td>
  2518. <td>is the board active (default true)</td>
  2519. </tr>
  2520. <tr>
  2521. <td>» isNoComments</td>
  2522. <td>body</td>
  2523. <td>boolean</td>
  2524. <td>false</td>
  2525. <td>disable comments (default false)</td>
  2526. </tr>
  2527. <tr>
  2528. <td>» isCommentOnly</td>
  2529. <td>body</td>
  2530. <td>boolean</td>
  2531. <td>false</td>
  2532. <td>only enable comments (default false)</td>
  2533. </tr>
  2534. <tr>
  2535. <td>» isWorker</td>
  2536. <td>body</td>
  2537. <td>boolean</td>
  2538. <td>false</td>
  2539. <td>only move cards, assign himself to card and comment (default false)</td>
  2540. </tr>
  2541. <tr>
  2542. <td>» permission</td>
  2543. <td>body</td>
  2544. <td>string</td>
  2545. <td>false</td>
  2546. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2547. </tr>
  2548. <tr>
  2549. <td>» color</td>
  2550. <td>body</td>
  2551. <td>string</td>
  2552. <td>false</td>
  2553. <td>the color of the board</td>
  2554. </tr>
  2555. </tbody>
  2556. </table>
  2557. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2558. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2559. (Not username or email)</p>
  2560. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2561. want public Wekan board</p>
  2562. <blockquote>
  2563. <p>Example responses</p>
  2564. </blockquote>
  2565. <blockquote>
  2566. <p>200 Response</p>
  2567. </blockquote>
  2568. <pre class="highlight tab tab-json"><code>{
  2569. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2570. <span class="hljs-attr">"defaultSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  2571. }
  2572. </code></pre>
  2573. <h3 id="new_board-responses">Responses</h3>
  2574. <table>
  2575. <thead>
  2576. <tr>
  2577. <th>Status</th>
  2578. <th>Meaning</th>
  2579. <th>Description</th>
  2580. <th>Schema</th>
  2581. </tr>
  2582. </thead>
  2583. <tbody>
  2584. <tr>
  2585. <td>200</td>
  2586. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2587. <td>200 response</td>
  2588. <td>Inline</td>
  2589. </tr>
  2590. </tbody>
  2591. </table>
  2592. <h3 id="new_board-responseschema">Response Schema</h3>
  2593. <p>Status Code <strong>200</strong></p>
  2594. <table>
  2595. <thead>
  2596. <tr>
  2597. <th>Name</th>
  2598. <th>Type</th>
  2599. <th>Required</th>
  2600. <th>Restrictions</th>
  2601. <th>Description</th>
  2602. </tr>
  2603. </thead>
  2604. <tbody>
  2605. <tr>
  2606. <td>» _id</td>
  2607. <td>string</td>
  2608. <td>false</td>
  2609. <td>none</td>
  2610. <td>none</td>
  2611. </tr>
  2612. <tr>
  2613. <td>» defaultSwimlaneId</td>
  2614. <td>string</td>
  2615. <td>false</td>
  2616. <td>none</td>
  2617. <td>none</td>
  2618. </tr>
  2619. </tbody>
  2620. </table>
  2621. <aside class="warning">
  2622. To perform this operation, you must be authenticated by means of one of the following methods:
  2623. UserSecurity
  2624. </aside>
  2625. <h2 id="get_board">get_board</h2>
  2626. <p><a id="opIdget_board"></a></p>
  2627. <blockquote>
  2628. <p>Code samples</p>
  2629. </blockquote>
  2630. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2631. curl -X GET /api/boards/{board} \
  2632. -H <span class="hljs-string">'Accept: application/json'</span> \
  2633. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2634. </code></pre>
  2635. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}</span> HTTP/1.1
  2636. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2637. <span class="undefined"></span></span></code></pre>
  2638. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2639. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2640. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2641. };
  2642. $.ajax({
  2643. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}'</span>,
  2644. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2645. <span class="hljs-attr">headers</span>: headers,
  2646. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2647. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2648. }
  2649. })
  2650. </code></pre>
  2651. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2652. <span class="hljs-keyword">const</span> headers = {
  2653. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2654. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2655. };
  2656. fetch(<span class="hljs-string">'/api/boards/{board}'</span>,
  2657. {
  2658. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2659. <span class="hljs-attr">headers</span>: headers
  2660. })
  2661. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2662. <span class="hljs-keyword">return</span> res.json();
  2663. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2664. <span class="hljs-built_in">console</span>.log(body);
  2665. });
  2666. </code></pre>
  2667. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2668. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2669. headers = {
  2670. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2671. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2672. }
  2673. result = RestClient.get <span class="hljs-string">'/api/boards/{board}'</span>,
  2674. <span class="hljs-symbol">params:</span> {
  2675. }, <span class="hljs-symbol">headers:</span> headers
  2676. p JSON.parse(result)
  2677. </code></pre>
  2678. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2679. headers = {
  2680. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2681. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2682. }
  2683. r = requests.get(<span class="hljs-string">'/api/boards/{board}'</span>, params={
  2684. }, headers = headers)
  2685. <span class="hljs-keyword">print</span> r.json()
  2686. </code></pre>
  2687. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}"</span>);
  2688. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2689. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2690. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2691. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2692. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2693. String inputLine;
  2694. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2695. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2696. response.append(inputLine);
  2697. }
  2698. in.close();
  2699. System.out.println(response.toString());
  2700. </code></pre>
  2701. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2702. <span class="hljs-keyword">import</span> (
  2703. <span class="hljs-string">"bytes"</span>
  2704. <span class="hljs-string">"net/http"</span>
  2705. )
  2706. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2707. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2708. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2709. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2710. }
  2711. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2712. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}"</span>, data)
  2713. req.Header = headers
  2714. client := &amp;http.Client{}
  2715. resp, err := client.Do(req)
  2716. <span class="hljs-comment">// ...</span>
  2717. }
  2718. </code></pre>
  2719. <p><code>GET /api/boards/{board}</code></p>
  2720. <p><em>Get the board with that particular ID</em></p>
  2721. <h3 id="get_board-parameters">Parameters</h3>
  2722. <table>
  2723. <thead>
  2724. <tr>
  2725. <th>Name</th>
  2726. <th>In</th>
  2727. <th>Type</th>
  2728. <th>Required</th>
  2729. <th>Description</th>
  2730. </tr>
  2731. </thead>
  2732. <tbody>
  2733. <tr>
  2734. <td>board</td>
  2735. <td>path</td>
  2736. <td>string</td>
  2737. <td>true</td>
  2738. <td>the ID of the board to retrieve the data</td>
  2739. </tr>
  2740. </tbody>
  2741. </table>
  2742. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2743. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2744. <blockquote>
  2745. <p>Example responses</p>
  2746. </blockquote>
  2747. <blockquote>
  2748. <p>200 Response</p>
  2749. </blockquote>
  2750. <pre class="highlight tab tab-json"><code>{
  2751. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  2752. <span class="hljs-attr">"slug"</span>: <span class="hljs-string">"string"</span>,
  2753. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  2754. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  2755. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  2756. <span class="hljs-attr">"stars"</span>: <span class="hljs-number">0</span>,
  2757. <span class="hljs-attr">"labels"</span>: [
  2758. {
  2759. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2760. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  2761. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"green"</span>
  2762. }
  2763. ],
  2764. <span class="hljs-attr">"members"</span>: [
  2765. {
  2766. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  2767. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  2768. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  2769. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  2770. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  2771. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  2772. }
  2773. ],
  2774. <span class="hljs-attr">"permission"</span>: <span class="hljs-string">"public"</span>,
  2775. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"belize"</span>,
  2776. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  2777. <span class="hljs-attr">"subtasksDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  2778. <span class="hljs-attr">"subtasksDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  2779. <span class="hljs-attr">"dateSettingsDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  2780. <span class="hljs-attr">"dateSettingsDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  2781. <span class="hljs-attr">"allowsSubtasks"</span>: <span class="hljs-literal">true</span>,
  2782. <span class="hljs-attr">"allowsAttachments"</span>: <span class="hljs-literal">true</span>,
  2783. <span class="hljs-attr">"allowsChecklists"</span>: <span class="hljs-literal">true</span>,
  2784. <span class="hljs-attr">"allowsComments"</span>: <span class="hljs-literal">true</span>,
  2785. <span class="hljs-attr">"allowsDescriptionTitle"</span>: <span class="hljs-literal">true</span>,
  2786. <span class="hljs-attr">"allowsDescriptionText"</span>: <span class="hljs-literal">true</span>,
  2787. <span class="hljs-attr">"allowsActivities"</span>: <span class="hljs-literal">true</span>,
  2788. <span class="hljs-attr">"allowsLabels"</span>: <span class="hljs-literal">true</span>,
  2789. <span class="hljs-attr">"allowsAssignee"</span>: <span class="hljs-literal">true</span>,
  2790. <span class="hljs-attr">"allowsMembers"</span>: <span class="hljs-literal">true</span>,
  2791. <span class="hljs-attr">"allowsRequestedBy"</span>: <span class="hljs-literal">true</span>,
  2792. <span class="hljs-attr">"allowsAssignedBy"</span>: <span class="hljs-literal">true</span>,
  2793. <span class="hljs-attr">"allowsReceivedDate"</span>: <span class="hljs-literal">true</span>,
  2794. <span class="hljs-attr">"allowsStartDate"</span>: <span class="hljs-literal">true</span>,
  2795. <span class="hljs-attr">"allowsEndDate"</span>: <span class="hljs-literal">true</span>,
  2796. <span class="hljs-attr">"allowsDueDate"</span>: <span class="hljs-literal">true</span>,
  2797. <span class="hljs-attr">"presentParentTask"</span>: <span class="hljs-string">"prefix-with-full-path"</span>,
  2798. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  2799. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  2800. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  2801. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  2802. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  2803. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  2804. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>
  2805. }
  2806. </code></pre>
  2807. <h3 id="get_board-responses">Responses</h3>
  2808. <table>
  2809. <thead>
  2810. <tr>
  2811. <th>Status</th>
  2812. <th>Meaning</th>
  2813. <th>Description</th>
  2814. <th>Schema</th>
  2815. </tr>
  2816. </thead>
  2817. <tbody>
  2818. <tr>
  2819. <td>200</td>
  2820. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2821. <td>200 response</td>
  2822. <td><a href="#schemaboards">Boards</a></td>
  2823. </tr>
  2824. </tbody>
  2825. </table>
  2826. <aside class="warning">
  2827. To perform this operation, you must be authenticated by means of one of the following methods:
  2828. UserSecurity
  2829. </aside>
  2830. <h2 id="delete_board">delete_board</h2>
  2831. <p><a id="opIddelete_board"></a></p>
  2832. <blockquote>
  2833. <p>Code samples</p>
  2834. </blockquote>
  2835. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2836. curl -X DELETE /api/boards/{board} \
  2837. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2838. </code></pre>
  2839. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}</span> HTTP/1.1
  2840. <span class="undefined"></span></code></pre>
  2841. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2842. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2843. };
  2844. $.ajax({
  2845. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}'</span>,
  2846. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  2847. <span class="hljs-attr">headers</span>: headers,
  2848. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2849. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2850. }
  2851. })
  2852. </code></pre>
  2853. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2854. <span class="hljs-keyword">const</span> headers = {
  2855. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2856. };
  2857. fetch(<span class="hljs-string">'/api/boards/{board}'</span>,
  2858. {
  2859. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  2860. <span class="hljs-attr">headers</span>: headers
  2861. })
  2862. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2863. <span class="hljs-keyword">return</span> res.json();
  2864. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2865. <span class="hljs-built_in">console</span>.log(body);
  2866. });
  2867. </code></pre>
  2868. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2869. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2870. headers = {
  2871. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2872. }
  2873. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}'</span>,
  2874. <span class="hljs-symbol">params:</span> {
  2875. }, <span class="hljs-symbol">headers:</span> headers
  2876. p JSON.parse(result)
  2877. </code></pre>
  2878. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2879. headers = {
  2880. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2881. }
  2882. r = requests.delete(<span class="hljs-string">'/api/boards/{board}'</span>, params={
  2883. }, headers = headers)
  2884. <span class="hljs-keyword">print</span> r.json()
  2885. </code></pre>
  2886. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}"</span>);
  2887. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2888. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  2889. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2890. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2891. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2892. String inputLine;
  2893. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2894. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2895. response.append(inputLine);
  2896. }
  2897. in.close();
  2898. System.out.println(response.toString());
  2899. </code></pre>
  2900. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2901. <span class="hljs-keyword">import</span> (
  2902. <span class="hljs-string">"bytes"</span>
  2903. <span class="hljs-string">"net/http"</span>
  2904. )
  2905. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2906. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2907. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2908. }
  2909. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2910. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}"</span>, data)
  2911. req.Header = headers
  2912. client := &amp;http.Client{}
  2913. resp, err := client.Do(req)
  2914. <span class="hljs-comment">// ...</span>
  2915. }
  2916. </code></pre>
  2917. <p><code>DELETE /api/boards/{board}</code></p>
  2918. <p><em>Delete a board</em></p>
  2919. <h3 id="delete_board-parameters">Parameters</h3>
  2920. <table>
  2921. <thead>
  2922. <tr>
  2923. <th>Name</th>
  2924. <th>In</th>
  2925. <th>Type</th>
  2926. <th>Required</th>
  2927. <th>Description</th>
  2928. </tr>
  2929. </thead>
  2930. <tbody>
  2931. <tr>
  2932. <td>board</td>
  2933. <td>path</td>
  2934. <td>string</td>
  2935. <td>true</td>
  2936. <td>the ID of the board</td>
  2937. </tr>
  2938. </tbody>
  2939. </table>
  2940. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2941. <p><strong>board</strong>: the ID of the board</p>
  2942. <h3 id="delete_board-responses">Responses</h3>
  2943. <table>
  2944. <thead>
  2945. <tr>
  2946. <th>Status</th>
  2947. <th>Meaning</th>
  2948. <th>Description</th>
  2949. <th>Schema</th>
  2950. </tr>
  2951. </thead>
  2952. <tbody>
  2953. <tr>
  2954. <td>200</td>
  2955. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2956. <td>200 response</td>
  2957. <td>None</td>
  2958. </tr>
  2959. </tbody>
  2960. </table>
  2961. <aside class="warning">
  2962. To perform this operation, you must be authenticated by means of one of the following methods:
  2963. UserSecurity
  2964. </aside>
  2965. <h2 id="get_board_attachments">get_board_attachments</h2>
  2966. <p><a id="opIdget_board_attachments"></a></p>
  2967. <blockquote>
  2968. <p>Code samples</p>
  2969. </blockquote>
  2970. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2971. curl -X GET /api/boards/{board}/attachments \
  2972. -H <span class="hljs-string">'Accept: application/json'</span> \
  2973. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2974. </code></pre>
  2975. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/attachments</span> HTTP/1.1
  2976. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2977. <span class="undefined"></span></span></code></pre>
  2978. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2979. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2980. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2981. };
  2982. $.ajax({
  2983. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  2984. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2985. <span class="hljs-attr">headers</span>: headers,
  2986. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2987. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2988. }
  2989. })
  2990. </code></pre>
  2991. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2992. <span class="hljs-keyword">const</span> headers = {
  2993. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2994. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2995. };
  2996. fetch(<span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  2997. {
  2998. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2999. <span class="hljs-attr">headers</span>: headers
  3000. })
  3001. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3002. <span class="hljs-keyword">return</span> res.json();
  3003. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3004. <span class="hljs-built_in">console</span>.log(body);
  3005. });
  3006. </code></pre>
  3007. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3008. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3009. headers = {
  3010. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3011. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3012. }
  3013. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  3014. <span class="hljs-symbol">params:</span> {
  3015. }, <span class="hljs-symbol">headers:</span> headers
  3016. p JSON.parse(result)
  3017. </code></pre>
  3018. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3019. headers = {
  3020. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3021. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3022. }
  3023. r = requests.get(<span class="hljs-string">'/api/boards/{board}/attachments'</span>, params={
  3024. }, headers = headers)
  3025. <span class="hljs-keyword">print</span> r.json()
  3026. </code></pre>
  3027. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/attachments"</span>);
  3028. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3029. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3030. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3031. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3032. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3033. String inputLine;
  3034. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3035. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3036. response.append(inputLine);
  3037. }
  3038. in.close();
  3039. System.out.println(response.toString());
  3040. </code></pre>
  3041. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3042. <span class="hljs-keyword">import</span> (
  3043. <span class="hljs-string">"bytes"</span>
  3044. <span class="hljs-string">"net/http"</span>
  3045. )
  3046. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3047. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3048. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3049. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3050. }
  3051. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3052. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/attachments"</span>, data)
  3053. req.Header = headers
  3054. client := &amp;http.Client{}
  3055. resp, err := client.Do(req)
  3056. <span class="hljs-comment">// ...</span>
  3057. }
  3058. </code></pre>
  3059. <p><code>GET /api/boards/{board}/attachments</code></p>
  3060. <p><em>Get the list of attachments of a board</em></p>
  3061. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3062. <table>
  3063. <thead>
  3064. <tr>
  3065. <th>Name</th>
  3066. <th>In</th>
  3067. <th>Type</th>
  3068. <th>Required</th>
  3069. <th>Description</th>
  3070. </tr>
  3071. </thead>
  3072. <tbody>
  3073. <tr>
  3074. <td>board</td>
  3075. <td>path</td>
  3076. <td>string</td>
  3077. <td>true</td>
  3078. <td>the board ID</td>
  3079. </tr>
  3080. </tbody>
  3081. </table>
  3082. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3083. <p><strong>board</strong>: the board ID</p>
  3084. <blockquote>
  3085. <p>Example responses</p>
  3086. </blockquote>
  3087. <blockquote>
  3088. <p>200 Response</p>
  3089. </blockquote>
  3090. <pre class="highlight tab tab-json"><code>[
  3091. {
  3092. <span class="hljs-attr">"attachmentId"</span>: <span class="hljs-string">"string"</span>,
  3093. <span class="hljs-attr">"attachmentName"</span>: <span class="hljs-string">"string"</span>,
  3094. <span class="hljs-attr">"attachmentType"</span>: <span class="hljs-string">"string"</span>,
  3095. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  3096. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  3097. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>
  3098. }
  3099. ]
  3100. </code></pre>
  3101. <h3 id="get_board_attachments-responses">Responses</h3>
  3102. <table>
  3103. <thead>
  3104. <tr>
  3105. <th>Status</th>
  3106. <th>Meaning</th>
  3107. <th>Description</th>
  3108. <th>Schema</th>
  3109. </tr>
  3110. </thead>
  3111. <tbody>
  3112. <tr>
  3113. <td>200</td>
  3114. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3115. <td>200 response</td>
  3116. <td>Inline</td>
  3117. </tr>
  3118. </tbody>
  3119. </table>
  3120. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3121. <p>Status Code <strong>200</strong></p>
  3122. <table>
  3123. <thead>
  3124. <tr>
  3125. <th>Name</th>
  3126. <th>Type</th>
  3127. <th>Required</th>
  3128. <th>Restrictions</th>
  3129. <th>Description</th>
  3130. </tr>
  3131. </thead>
  3132. <tbody>
  3133. <tr>
  3134. <td>» attachmentId</td>
  3135. <td>string</td>
  3136. <td>false</td>
  3137. <td>none</td>
  3138. <td>none</td>
  3139. </tr>
  3140. <tr>
  3141. <td>» attachmentName</td>
  3142. <td>string</td>
  3143. <td>false</td>
  3144. <td>none</td>
  3145. <td>none</td>
  3146. </tr>
  3147. <tr>
  3148. <td>» attachmentType</td>
  3149. <td>string</td>
  3150. <td>false</td>
  3151. <td>none</td>
  3152. <td>none</td>
  3153. </tr>
  3154. <tr>
  3155. <td>» cardId</td>
  3156. <td>string</td>
  3157. <td>false</td>
  3158. <td>none</td>
  3159. <td>none</td>
  3160. </tr>
  3161. <tr>
  3162. <td>» listId</td>
  3163. <td>string</td>
  3164. <td>false</td>
  3165. <td>none</td>
  3166. <td>none</td>
  3167. </tr>
  3168. <tr>
  3169. <td>» swimlaneId</td>
  3170. <td>string</td>
  3171. <td>false</td>
  3172. <td>none</td>
  3173. <td>none</td>
  3174. </tr>
  3175. </tbody>
  3176. </table>
  3177. <aside class="warning">
  3178. To perform this operation, you must be authenticated by means of one of the following methods:
  3179. UserSecurity
  3180. </aside>
  3181. <h2 id="exportjson">exportJson</h2>
  3182. <p><a id="opIdexportJson"></a></p>
  3183. <blockquote>
  3184. <p>Code samples</p>
  3185. </blockquote>
  3186. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3187. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3188. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3189. </code></pre>
  3190. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/export</span> HTTP/1.1
  3191. <span class="undefined"></span></code></pre>
  3192. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3193. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3194. };
  3195. $.ajax({
  3196. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/export'</span>,
  3197. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3198. <span class="hljs-attr">headers</span>: headers,
  3199. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3200. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3201. }
  3202. })
  3203. </code></pre>
  3204. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3205. <span class="hljs-keyword">const</span> headers = {
  3206. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3207. };
  3208. fetch(<span class="hljs-string">'/api/boards/{board}/export'</span>,
  3209. {
  3210. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3211. <span class="hljs-attr">headers</span>: headers
  3212. })
  3213. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3214. <span class="hljs-keyword">return</span> res.json();
  3215. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3216. <span class="hljs-built_in">console</span>.log(body);
  3217. });
  3218. </code></pre>
  3219. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3220. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3221. headers = {
  3222. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3223. }
  3224. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/export'</span>,
  3225. <span class="hljs-symbol">params:</span> {
  3226. }, <span class="hljs-symbol">headers:</span> headers
  3227. p JSON.parse(result)
  3228. </code></pre>
  3229. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3230. headers = {
  3231. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3232. }
  3233. r = requests.get(<span class="hljs-string">'/api/boards/{board}/export'</span>, params={
  3234. }, headers = headers)
  3235. <span class="hljs-keyword">print</span> r.json()
  3236. </code></pre>
  3237. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/export"</span>);
  3238. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3239. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3240. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3241. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3242. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3243. String inputLine;
  3244. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3245. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3246. response.append(inputLine);
  3247. }
  3248. in.close();
  3249. System.out.println(response.toString());
  3250. </code></pre>
  3251. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3252. <span class="hljs-keyword">import</span> (
  3253. <span class="hljs-string">"bytes"</span>
  3254. <span class="hljs-string">"net/http"</span>
  3255. )
  3256. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3257. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3258. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3259. }
  3260. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3261. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/export"</span>, data)
  3262. req.Header = headers
  3263. client := &amp;http.Client{}
  3264. resp, err := client.Do(req)
  3265. <span class="hljs-comment">// ...</span>
  3266. }
  3267. </code></pre>
  3268. <p><code>GET /api/boards/{board}/export</code></p>
  3269. <p><em>This route is used to export the board to a json file format.</em></p>
  3270. <p>If user is already logged-in, pass loginToken as param
  3271. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3272. <p>See <a href="https://blog.kayla.com.au/server-side-route-authentication-in-meteor/">https://blog.kayla.com.au/server-side-route-authentication-in-meteor/</a>
  3273. for detailed explanations</p>
  3274. <h3 id="exportjson-parameters">Parameters</h3>
  3275. <table>
  3276. <thead>
  3277. <tr>
  3278. <th>Name</th>
  3279. <th>In</th>
  3280. <th>Type</th>
  3281. <th>Required</th>
  3282. <th>Description</th>
  3283. </tr>
  3284. </thead>
  3285. <tbody>
  3286. <tr>
  3287. <td>board</td>
  3288. <td>path</td>
  3289. <td>string</td>
  3290. <td>true</td>
  3291. <td>the ID of the board we are exporting</td>
  3292. </tr>
  3293. </tbody>
  3294. </table>
  3295. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3296. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3297. <h3 id="exportjson-responses">Responses</h3>
  3298. <table>
  3299. <thead>
  3300. <tr>
  3301. <th>Status</th>
  3302. <th>Meaning</th>
  3303. <th>Description</th>
  3304. <th>Schema</th>
  3305. </tr>
  3306. </thead>
  3307. <tbody>
  3308. <tr>
  3309. <td>200</td>
  3310. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3311. <td>200 response</td>
  3312. <td>None</td>
  3313. </tr>
  3314. </tbody>
  3315. </table>
  3316. <aside class="warning">
  3317. To perform this operation, you must be authenticated by means of one of the following methods:
  3318. UserSecurity
  3319. </aside>
  3320. <h2 id="add_board_label">add_board_label</h2>
  3321. <p><a id="opIdadd_board_label"></a></p>
  3322. <blockquote>
  3323. <p>Code samples</p>
  3324. </blockquote>
  3325. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3326. curl -X PUT /api/boards/{board}/labels \
  3327. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3328. -H <span class="hljs-string">'Accept: application/json'</span> \
  3329. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3330. </code></pre>
  3331. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/labels</span> HTTP/1.1
  3332. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3333. Accept: application/json
  3334. </span></code></pre>
  3335. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3336. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3337. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3338. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3339. };
  3340. $.ajax({
  3341. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3342. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  3343. <span class="hljs-attr">headers</span>: headers,
  3344. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3345. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3346. }
  3347. })
  3348. </code></pre>
  3349. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3350. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3351. "label": "string"
  3352. }'</span>;
  3353. <span class="hljs-keyword">const</span> headers = {
  3354. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3355. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3356. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3357. };
  3358. fetch(<span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3359. {
  3360. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  3361. <span class="hljs-attr">body</span>: inputBody,
  3362. <span class="hljs-attr">headers</span>: headers
  3363. })
  3364. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3365. <span class="hljs-keyword">return</span> res.json();
  3366. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3367. <span class="hljs-built_in">console</span>.log(body);
  3368. });
  3369. </code></pre>
  3370. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3371. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3372. headers = {
  3373. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3374. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3375. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3376. }
  3377. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3378. <span class="hljs-symbol">params:</span> {
  3379. }, <span class="hljs-symbol">headers:</span> headers
  3380. p JSON.parse(result)
  3381. </code></pre>
  3382. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3383. headers = {
  3384. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3385. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3386. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3387. }
  3388. r = requests.put(<span class="hljs-string">'/api/boards/{board}/labels'</span>, params={
  3389. }, headers = headers)
  3390. <span class="hljs-keyword">print</span> r.json()
  3391. </code></pre>
  3392. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/labels"</span>);
  3393. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3394. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  3395. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3396. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3397. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3398. String inputLine;
  3399. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3400. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3401. response.append(inputLine);
  3402. }
  3403. in.close();
  3404. System.out.println(response.toString());
  3405. </code></pre>
  3406. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3407. <span class="hljs-keyword">import</span> (
  3408. <span class="hljs-string">"bytes"</span>
  3409. <span class="hljs-string">"net/http"</span>
  3410. )
  3411. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3412. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3413. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3414. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3415. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3416. }
  3417. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3418. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/labels"</span>, data)
  3419. req.Header = headers
  3420. client := &amp;http.Client{}
  3421. resp, err := client.Do(req)
  3422. <span class="hljs-comment">// ...</span>
  3423. }
  3424. </code></pre>
  3425. <p><code>PUT /api/boards/{board}/labels</code></p>
  3426. <p><em>Add a label to a board</em></p>
  3427. <p>If the board doesn't have the name/color label, this function
  3428. adds the label to the board.</p>
  3429. <blockquote>
  3430. <p>Body parameter</p>
  3431. </blockquote>
  3432. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3433. </code></pre>
  3434. <h3 id="add_board_label-parameters">Parameters</h3>
  3435. <table>
  3436. <thead>
  3437. <tr>
  3438. <th>Name</th>
  3439. <th>In</th>
  3440. <th>Type</th>
  3441. <th>Required</th>
  3442. <th>Description</th>
  3443. </tr>
  3444. </thead>
  3445. <tbody>
  3446. <tr>
  3447. <td>board</td>
  3448. <td>path</td>
  3449. <td>string</td>
  3450. <td>true</td>
  3451. <td>the board</td>
  3452. </tr>
  3453. <tr>
  3454. <td>body</td>
  3455. <td>body</td>
  3456. <td>object</td>
  3457. <td>false</td>
  3458. <td>none</td>
  3459. </tr>
  3460. <tr>
  3461. <td>» label</td>
  3462. <td>body</td>
  3463. <td>string</td>
  3464. <td>true</td>
  3465. <td>the label value</td>
  3466. </tr>
  3467. </tbody>
  3468. </table>
  3469. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3470. <p><strong>board</strong>: the board</p>
  3471. <blockquote>
  3472. <p>Example responses</p>
  3473. </blockquote>
  3474. <blockquote>
  3475. <p>200 Response</p>
  3476. </blockquote>
  3477. <pre class="highlight tab tab-json"><code><span class="hljs-string">"string"</span>
  3478. </code></pre>
  3479. <h3 id="add_board_label-responses">Responses</h3>
  3480. <table>
  3481. <thead>
  3482. <tr>
  3483. <th>Status</th>
  3484. <th>Meaning</th>
  3485. <th>Description</th>
  3486. <th>Schema</th>
  3487. </tr>
  3488. </thead>
  3489. <tbody>
  3490. <tr>
  3491. <td>200</td>
  3492. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3493. <td>200 response</td>
  3494. <td>string</td>
  3495. </tr>
  3496. </tbody>
  3497. </table>
  3498. <aside class="warning">
  3499. To perform this operation, you must be authenticated by means of one of the following methods:
  3500. UserSecurity
  3501. </aside>
  3502. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3503. <p><a id="opIdset_board_member_permission"></a></p>
  3504. <blockquote>
  3505. <p>Code samples</p>
  3506. </blockquote>
  3507. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3508. curl -X POST /api/boards/{board}/members/{member} \
  3509. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3510. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3511. </code></pre>
  3512. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{member}</span> HTTP/1.1
  3513. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3514. </span></code></pre>
  3515. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3516. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3517. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3518. };
  3519. $.ajax({
  3520. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3521. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3522. <span class="hljs-attr">headers</span>: headers,
  3523. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3524. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3525. }
  3526. })
  3527. </code></pre>
  3528. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3529. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3530. "isAdmin": true,
  3531. "isNoComments": true,
  3532. "isCommentOnly": true,
  3533. "isWorker": true
  3534. }'</span>;
  3535. <span class="hljs-keyword">const</span> headers = {
  3536. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3537. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3538. };
  3539. fetch(<span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3540. {
  3541. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3542. <span class="hljs-attr">body</span>: inputBody,
  3543. <span class="hljs-attr">headers</span>: headers
  3544. })
  3545. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3546. <span class="hljs-keyword">return</span> res.json();
  3547. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3548. <span class="hljs-built_in">console</span>.log(body);
  3549. });
  3550. </code></pre>
  3551. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3552. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3553. headers = {
  3554. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3555. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3556. }
  3557. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3558. <span class="hljs-symbol">params:</span> {
  3559. }, <span class="hljs-symbol">headers:</span> headers
  3560. p JSON.parse(result)
  3561. </code></pre>
  3562. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3563. headers = {
  3564. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3565. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3566. }
  3567. r = requests.post(<span class="hljs-string">'/api/boards/{board}/members/{member}'</span>, params={
  3568. }, headers = headers)
  3569. <span class="hljs-keyword">print</span> r.json()
  3570. </code></pre>
  3571. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/members/{member}"</span>);
  3572. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3573. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3574. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3575. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3576. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3577. String inputLine;
  3578. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3579. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3580. response.append(inputLine);
  3581. }
  3582. in.close();
  3583. System.out.println(response.toString());
  3584. </code></pre>
  3585. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3586. <span class="hljs-keyword">import</span> (
  3587. <span class="hljs-string">"bytes"</span>
  3588. <span class="hljs-string">"net/http"</span>
  3589. )
  3590. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3591. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3592. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3593. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3594. }
  3595. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3596. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/members/{member}"</span>, data)
  3597. req.Header = headers
  3598. client := &amp;http.Client{}
  3599. resp, err := client.Do(req)
  3600. <span class="hljs-comment">// ...</span>
  3601. }
  3602. </code></pre>
  3603. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3604. <p><em>Change the permission of a member of a board</em></p>
  3605. <blockquote>
  3606. <p>Body parameter</p>
  3607. </blockquote>
  3608. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3609. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3610. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3611. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3612. </code></pre>
  3613. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3614. <table>
  3615. <thead>
  3616. <tr>
  3617. <th>Name</th>
  3618. <th>In</th>
  3619. <th>Type</th>
  3620. <th>Required</th>
  3621. <th>Description</th>
  3622. </tr>
  3623. </thead>
  3624. <tbody>
  3625. <tr>
  3626. <td>board</td>
  3627. <td>path</td>
  3628. <td>string</td>
  3629. <td>true</td>
  3630. <td>the ID of the board that we are changing</td>
  3631. </tr>
  3632. <tr>
  3633. <td>member</td>
  3634. <td>path</td>
  3635. <td>string</td>
  3636. <td>true</td>
  3637. <td>the ID of the user to change permissions</td>
  3638. </tr>
  3639. <tr>
  3640. <td>body</td>
  3641. <td>body</td>
  3642. <td>object</td>
  3643. <td>false</td>
  3644. <td>none</td>
  3645. </tr>
  3646. <tr>
  3647. <td>» isAdmin</td>
  3648. <td>body</td>
  3649. <td>boolean</td>
  3650. <td>true</td>
  3651. <td>admin capability</td>
  3652. </tr>
  3653. <tr>
  3654. <td>» isNoComments</td>
  3655. <td>body</td>
  3656. <td>boolean</td>
  3657. <td>true</td>
  3658. <td>NoComments capability</td>
  3659. </tr>
  3660. <tr>
  3661. <td>» isCommentOnly</td>
  3662. <td>body</td>
  3663. <td>boolean</td>
  3664. <td>true</td>
  3665. <td>CommentsOnly capability</td>
  3666. </tr>
  3667. <tr>
  3668. <td>» isWorker</td>
  3669. <td>body</td>
  3670. <td>boolean</td>
  3671. <td>true</td>
  3672. <td>Worker capability</td>
  3673. </tr>
  3674. </tbody>
  3675. </table>
  3676. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3677. <p><strong>board</strong>: the ID of the board that we are changing</p>
  3678. <p><strong>member</strong>: the ID of the user to change permissions</p>
  3679. <h3 id="set_board_member_permission-responses">Responses</h3>
  3680. <table>
  3681. <thead>
  3682. <tr>
  3683. <th>Status</th>
  3684. <th>Meaning</th>
  3685. <th>Description</th>
  3686. <th>Schema</th>
  3687. </tr>
  3688. </thead>
  3689. <tbody>
  3690. <tr>
  3691. <td>200</td>
  3692. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3693. <td>200 response</td>
  3694. <td>None</td>
  3695. </tr>
  3696. </tbody>
  3697. </table>
  3698. <aside class="warning">
  3699. To perform this operation, you must be authenticated by means of one of the following methods:
  3700. UserSecurity
  3701. </aside>
  3702. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  3703. <p><a id="opIdget_boards_from_user"></a></p>
  3704. <blockquote>
  3705. <p>Code samples</p>
  3706. </blockquote>
  3707. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3708. curl -X GET /api/users/{user}/boards \
  3709. -H <span class="hljs-string">'Accept: application/json'</span> \
  3710. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3711. </code></pre>
  3712. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users/{user}/boards</span> HTTP/1.1
  3713. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3714. <span class="undefined"></span></span></code></pre>
  3715. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3716. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3717. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3718. };
  3719. $.ajax({
  3720. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}/boards'</span>,
  3721. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3722. <span class="hljs-attr">headers</span>: headers,
  3723. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3724. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3725. }
  3726. })
  3727. </code></pre>
  3728. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3729. <span class="hljs-keyword">const</span> headers = {
  3730. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3731. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3732. };
  3733. fetch(<span class="hljs-string">'/api/users/{user}/boards'</span>,
  3734. {
  3735. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3736. <span class="hljs-attr">headers</span>: headers
  3737. })
  3738. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3739. <span class="hljs-keyword">return</span> res.json();
  3740. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3741. <span class="hljs-built_in">console</span>.log(body);
  3742. });
  3743. </code></pre>
  3744. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3745. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3746. headers = {
  3747. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3748. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3749. }
  3750. result = RestClient.get <span class="hljs-string">'/api/users/{user}/boards'</span>,
  3751. <span class="hljs-symbol">params:</span> {
  3752. }, <span class="hljs-symbol">headers:</span> headers
  3753. p JSON.parse(result)
  3754. </code></pre>
  3755. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3756. headers = {
  3757. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3758. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3759. }
  3760. r = requests.get(<span class="hljs-string">'/api/users/{user}/boards'</span>, params={
  3761. }, headers = headers)
  3762. <span class="hljs-keyword">print</span> r.json()
  3763. </code></pre>
  3764. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}/boards"</span>);
  3765. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3766. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3767. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3768. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3769. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3770. String inputLine;
  3771. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3772. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3773. response.append(inputLine);
  3774. }
  3775. in.close();
  3776. System.out.println(response.toString());
  3777. </code></pre>
  3778. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3779. <span class="hljs-keyword">import</span> (
  3780. <span class="hljs-string">"bytes"</span>
  3781. <span class="hljs-string">"net/http"</span>
  3782. )
  3783. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3784. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3785. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3786. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3787. }
  3788. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3789. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/users/{user}/boards"</span>, data)
  3790. req.Header = headers
  3791. client := &amp;http.Client{}
  3792. resp, err := client.Do(req)
  3793. <span class="hljs-comment">// ...</span>
  3794. }
  3795. </code></pre>
  3796. <p><code>GET /api/users/{user}/boards</code></p>
  3797. <p><em>Get all boards attached to a user</em></p>
  3798. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  3799. <table>
  3800. <thead>
  3801. <tr>
  3802. <th>Name</th>
  3803. <th>In</th>
  3804. <th>Type</th>
  3805. <th>Required</th>
  3806. <th>Description</th>
  3807. </tr>
  3808. </thead>
  3809. <tbody>
  3810. <tr>
  3811. <td>user</td>
  3812. <td>path</td>
  3813. <td>string</td>
  3814. <td>true</td>
  3815. <td>the ID of the user to retrieve the data</td>
  3816. </tr>
  3817. </tbody>
  3818. </table>
  3819. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3820. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  3821. <blockquote>
  3822. <p>Example responses</p>
  3823. </blockquote>
  3824. <blockquote>
  3825. <p>200 Response</p>
  3826. </blockquote>
  3827. <pre class="highlight tab tab-json"><code>[
  3828. {
  3829. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  3830. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  3831. }
  3832. ]
  3833. </code></pre>
  3834. <h3 id="get_boards_from_user-responses">Responses</h3>
  3835. <table>
  3836. <thead>
  3837. <tr>
  3838. <th>Status</th>
  3839. <th>Meaning</th>
  3840. <th>Description</th>
  3841. <th>Schema</th>
  3842. </tr>
  3843. </thead>
  3844. <tbody>
  3845. <tr>
  3846. <td>200</td>
  3847. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3848. <td>200 response</td>
  3849. <td>Inline</td>
  3850. </tr>
  3851. </tbody>
  3852. </table>
  3853. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  3854. <p>Status Code <strong>200</strong></p>
  3855. <table>
  3856. <thead>
  3857. <tr>
  3858. <th>Name</th>
  3859. <th>Type</th>
  3860. <th>Required</th>
  3861. <th>Restrictions</th>
  3862. <th>Description</th>
  3863. </tr>
  3864. </thead>
  3865. <tbody>
  3866. <tr>
  3867. <td>» _id</td>
  3868. <td>string</td>
  3869. <td>false</td>
  3870. <td>none</td>
  3871. <td>none</td>
  3872. </tr>
  3873. <tr>
  3874. <td>» title</td>
  3875. <td>string</td>
  3876. <td>false</td>
  3877. <td>none</td>
  3878. <td>none</td>
  3879. </tr>
  3880. </tbody>
  3881. </table>
  3882. <aside class="warning">
  3883. To perform this operation, you must be authenticated by means of one of the following methods:
  3884. UserSecurity
  3885. </aside>
  3886. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  3887. <h2 id="get_all_checklists">get_all_checklists</h2>
  3888. <p><a id="opIdget_all_checklists"></a></p>
  3889. <blockquote>
  3890. <p>Code samples</p>
  3891. </blockquote>
  3892. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3893. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  3894. -H <span class="hljs-string">'Accept: application/json'</span> \
  3895. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3896. </code></pre>
  3897. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> HTTP/1.1
  3898. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3899. <span class="undefined"></span></span></code></pre>
  3900. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3901. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3902. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3903. };
  3904. $.ajax({
  3905. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3906. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3907. <span class="hljs-attr">headers</span>: headers,
  3908. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3909. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3910. }
  3911. })
  3912. </code></pre>
  3913. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3914. <span class="hljs-keyword">const</span> headers = {
  3915. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3916. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3917. };
  3918. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3919. {
  3920. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3921. <span class="hljs-attr">headers</span>: headers
  3922. })
  3923. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3924. <span class="hljs-keyword">return</span> res.json();
  3925. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3926. <span class="hljs-built_in">console</span>.log(body);
  3927. });
  3928. </code></pre>
  3929. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3930. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3931. headers = {
  3932. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3933. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3934. }
  3935. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  3936. <span class="hljs-symbol">params:</span> {
  3937. }, <span class="hljs-symbol">headers:</span> headers
  3938. p JSON.parse(result)
  3939. </code></pre>
  3940. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3941. headers = {
  3942. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3943. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3944. }
  3945. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  3946. }, headers = headers)
  3947. <span class="hljs-keyword">print</span> r.json()
  3948. </code></pre>
  3949. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>);
  3950. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3951. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3952. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3953. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3954. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3955. String inputLine;
  3956. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3957. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3958. response.append(inputLine);
  3959. }
  3960. in.close();
  3961. System.out.println(response.toString());
  3962. </code></pre>
  3963. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3964. <span class="hljs-keyword">import</span> (
  3965. <span class="hljs-string">"bytes"</span>
  3966. <span class="hljs-string">"net/http"</span>
  3967. )
  3968. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3969. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3970. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3971. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3972. }
  3973. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3974. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  3975. req.Header = headers
  3976. client := &amp;http.Client{}
  3977. resp, err := client.Do(req)
  3978. <span class="hljs-comment">// ...</span>
  3979. }
  3980. </code></pre>
  3981. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  3982. <p><em>Get the list of checklists attached to a card</em></p>
  3983. <h3 id="get_all_checklists-parameters">Parameters</h3>
  3984. <table>
  3985. <thead>
  3986. <tr>
  3987. <th>Name</th>
  3988. <th>In</th>
  3989. <th>Type</th>
  3990. <th>Required</th>
  3991. <th>Description</th>
  3992. </tr>
  3993. </thead>
  3994. <tbody>
  3995. <tr>
  3996. <td>board</td>
  3997. <td>path</td>
  3998. <td>string</td>
  3999. <td>true</td>
  4000. <td>the board ID</td>
  4001. </tr>
  4002. <tr>
  4003. <td>card</td>
  4004. <td>path</td>
  4005. <td>string</td>
  4006. <td>true</td>
  4007. <td>the card ID</td>
  4008. </tr>
  4009. </tbody>
  4010. </table>
  4011. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4012. <p><strong>board</strong>: the board ID</p>
  4013. <p><strong>card</strong>: the card ID</p>
  4014. <blockquote>
  4015. <p>Example responses</p>
  4016. </blockquote>
  4017. <blockquote>
  4018. <p>200 Response</p>
  4019. </blockquote>
  4020. <pre class="highlight tab tab-json"><code>[
  4021. {
  4022. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4023. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  4024. }
  4025. ]
  4026. </code></pre>
  4027. <h3 id="get_all_checklists-responses">Responses</h3>
  4028. <table>
  4029. <thead>
  4030. <tr>
  4031. <th>Status</th>
  4032. <th>Meaning</th>
  4033. <th>Description</th>
  4034. <th>Schema</th>
  4035. </tr>
  4036. </thead>
  4037. <tbody>
  4038. <tr>
  4039. <td>200</td>
  4040. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4041. <td>200 response</td>
  4042. <td>Inline</td>
  4043. </tr>
  4044. </tbody>
  4045. </table>
  4046. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4047. <p>Status Code <strong>200</strong></p>
  4048. <table>
  4049. <thead>
  4050. <tr>
  4051. <th>Name</th>
  4052. <th>Type</th>
  4053. <th>Required</th>
  4054. <th>Restrictions</th>
  4055. <th>Description</th>
  4056. </tr>
  4057. </thead>
  4058. <tbody>
  4059. <tr>
  4060. <td>» _id</td>
  4061. <td>string</td>
  4062. <td>false</td>
  4063. <td>none</td>
  4064. <td>none</td>
  4065. </tr>
  4066. <tr>
  4067. <td>» title</td>
  4068. <td>string</td>
  4069. <td>false</td>
  4070. <td>none</td>
  4071. <td>none</td>
  4072. </tr>
  4073. </tbody>
  4074. </table>
  4075. <aside class="warning">
  4076. To perform this operation, you must be authenticated by means of one of the following methods:
  4077. UserSecurity
  4078. </aside>
  4079. <h2 id="new_checklist">new_checklist</h2>
  4080. <p><a id="opIdnew_checklist"></a></p>
  4081. <blockquote>
  4082. <p>Code samples</p>
  4083. </blockquote>
  4084. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4085. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4086. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  4087. -H <span class="hljs-string">'Accept: application/json'</span> \
  4088. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4089. </code></pre>
  4090. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> HTTP/1.1
  4091. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4092. Accept: application/json
  4093. </span></code></pre>
  4094. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4095. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4096. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4097. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4098. };
  4099. $.ajax({
  4100. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4101. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  4102. <span class="hljs-attr">headers</span>: headers,
  4103. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4104. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4105. }
  4106. })
  4107. </code></pre>
  4108. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4109. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  4110. "title": "string",
  4111. "items": "string"
  4112. }'</span>;
  4113. <span class="hljs-keyword">const</span> headers = {
  4114. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4115. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4116. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4117. };
  4118. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4119. {
  4120. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  4121. <span class="hljs-attr">body</span>: inputBody,
  4122. <span class="hljs-attr">headers</span>: headers
  4123. })
  4124. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4125. <span class="hljs-keyword">return</span> res.json();
  4126. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4127. <span class="hljs-built_in">console</span>.log(body);
  4128. });
  4129. </code></pre>
  4130. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4131. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4132. headers = {
  4133. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4134. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4135. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4136. }
  4137. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4138. <span class="hljs-symbol">params:</span> {
  4139. }, <span class="hljs-symbol">headers:</span> headers
  4140. p JSON.parse(result)
  4141. </code></pre>
  4142. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4143. headers = {
  4144. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4145. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4146. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4147. }
  4148. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  4149. }, headers = headers)
  4150. <span class="hljs-keyword">print</span> r.json()
  4151. </code></pre>
  4152. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>);
  4153. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4154. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  4155. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4156. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4157. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4158. String inputLine;
  4159. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4160. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4161. response.append(inputLine);
  4162. }
  4163. in.close();
  4164. System.out.println(response.toString());
  4165. </code></pre>
  4166. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4167. <span class="hljs-keyword">import</span> (
  4168. <span class="hljs-string">"bytes"</span>
  4169. <span class="hljs-string">"net/http"</span>
  4170. )
  4171. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4172. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4173. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  4174. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4175. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4176. }
  4177. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4178. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  4179. req.Header = headers
  4180. client := &amp;http.Client{}
  4181. resp, err := client.Do(req)
  4182. <span class="hljs-comment">// ...</span>
  4183. }
  4184. </code></pre>
  4185. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4186. <p><em>create a new checklist</em></p>
  4187. <blockquote>
  4188. <p>Body parameter</p>
  4189. </blockquote>
  4190. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4191. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4192. </code></pre>
  4193. <h3 id="new_checklist-parameters">Parameters</h3>
  4194. <table>
  4195. <thead>
  4196. <tr>
  4197. <th>Name</th>
  4198. <th>In</th>
  4199. <th>Type</th>
  4200. <th>Required</th>
  4201. <th>Description</th>
  4202. </tr>
  4203. </thead>
  4204. <tbody>
  4205. <tr>
  4206. <td>board</td>
  4207. <td>path</td>
  4208. <td>string</td>
  4209. <td>true</td>
  4210. <td>the board ID</td>
  4211. </tr>
  4212. <tr>
  4213. <td>card</td>
  4214. <td>path</td>
  4215. <td>string</td>
  4216. <td>true</td>
  4217. <td>the card ID</td>
  4218. </tr>
  4219. <tr>
  4220. <td>body</td>
  4221. <td>body</td>
  4222. <td>object</td>
  4223. <td>false</td>
  4224. <td>none</td>
  4225. </tr>
  4226. <tr>
  4227. <td>» title</td>
  4228. <td>body</td>
  4229. <td>string</td>
  4230. <td>true</td>
  4231. <td>the title of the new checklist</td>
  4232. </tr>
  4233. <tr>
  4234. <td>» items</td>
  4235. <td>body</td>
  4236. <td>string</td>
  4237. <td>false</td>
  4238. <td>the list of items on the new checklist</td>
  4239. </tr>
  4240. </tbody>
  4241. </table>
  4242. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4243. <p><strong>board</strong>: the board ID</p>
  4244. <p><strong>card</strong>: the card ID</p>
  4245. <blockquote>
  4246. <p>Example responses</p>
  4247. </blockquote>
  4248. <blockquote>
  4249. <p>200 Response</p>
  4250. </blockquote>
  4251. <pre class="highlight tab tab-json"><code>{
  4252. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  4253. }
  4254. </code></pre>
  4255. <h3 id="new_checklist-responses">Responses</h3>
  4256. <table>
  4257. <thead>
  4258. <tr>
  4259. <th>Status</th>
  4260. <th>Meaning</th>
  4261. <th>Description</th>
  4262. <th>Schema</th>
  4263. </tr>
  4264. </thead>
  4265. <tbody>
  4266. <tr>
  4267. <td>200</td>
  4268. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4269. <td>200 response</td>
  4270. <td>Inline</td>
  4271. </tr>
  4272. </tbody>
  4273. </table>
  4274. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4275. <p>Status Code <strong>200</strong></p>
  4276. <table>
  4277. <thead>
  4278. <tr>
  4279. <th>Name</th>
  4280. <th>Type</th>
  4281. <th>Required</th>
  4282. <th>Restrictions</th>
  4283. <th>Description</th>
  4284. </tr>
  4285. </thead>
  4286. <tbody>
  4287. <tr>
  4288. <td>» _id</td>
  4289. <td>string</td>
  4290. <td>false</td>
  4291. <td>none</td>
  4292. <td>none</td>
  4293. </tr>
  4294. </tbody>
  4295. </table>
  4296. <aside class="warning">
  4297. To perform this operation, you must be authenticated by means of one of the following methods:
  4298. UserSecurity
  4299. </aside>
  4300. <h2 id="get_checklist">get_checklist</h2>
  4301. <p><a id="opIdget_checklist"></a></p>
  4302. <blockquote>
  4303. <p>Code samples</p>
  4304. </blockquote>
  4305. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4306. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4307. -H <span class="hljs-string">'Accept: application/json'</span> \
  4308. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4309. </code></pre>
  4310. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}</span> HTTP/1.1
  4311. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4312. <span class="undefined"></span></span></code></pre>
  4313. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4314. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4315. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4316. };
  4317. $.ajax({
  4318. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4319. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4320. <span class="hljs-attr">headers</span>: headers,
  4321. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4322. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4323. }
  4324. })
  4325. </code></pre>
  4326. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4327. <span class="hljs-keyword">const</span> headers = {
  4328. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4329. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4330. };
  4331. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4332. {
  4333. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4334. <span class="hljs-attr">headers</span>: headers
  4335. })
  4336. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4337. <span class="hljs-keyword">return</span> res.json();
  4338. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4339. <span class="hljs-built_in">console</span>.log(body);
  4340. });
  4341. </code></pre>
  4342. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4343. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4344. headers = {
  4345. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4346. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4347. }
  4348. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4349. <span class="hljs-symbol">params:</span> {
  4350. }, <span class="hljs-symbol">headers:</span> headers
  4351. p JSON.parse(result)
  4352. </code></pre>
  4353. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4354. headers = {
  4355. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4356. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4357. }
  4358. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  4359. }, headers = headers)
  4360. <span class="hljs-keyword">print</span> r.json()
  4361. </code></pre>
  4362. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>);
  4363. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4364. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4365. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4366. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4367. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4368. String inputLine;
  4369. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4370. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4371. response.append(inputLine);
  4372. }
  4373. in.close();
  4374. System.out.println(response.toString());
  4375. </code></pre>
  4376. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4377. <span class="hljs-keyword">import</span> (
  4378. <span class="hljs-string">"bytes"</span>
  4379. <span class="hljs-string">"net/http"</span>
  4380. )
  4381. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4382. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4383. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4384. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4385. }
  4386. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4387. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  4388. req.Header = headers
  4389. client := &amp;http.Client{}
  4390. resp, err := client.Do(req)
  4391. <span class="hljs-comment">// ...</span>
  4392. }
  4393. </code></pre>
  4394. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  4395. <p><em>Get a checklist</em></p>
  4396. <h3 id="get_checklist-parameters">Parameters</h3>
  4397. <table>
  4398. <thead>
  4399. <tr>
  4400. <th>Name</th>
  4401. <th>In</th>
  4402. <th>Type</th>
  4403. <th>Required</th>
  4404. <th>Description</th>
  4405. </tr>
  4406. </thead>
  4407. <tbody>
  4408. <tr>
  4409. <td>board</td>
  4410. <td>path</td>
  4411. <td>string</td>
  4412. <td>true</td>
  4413. <td>the board ID</td>
  4414. </tr>
  4415. <tr>
  4416. <td>card</td>
  4417. <td>path</td>
  4418. <td>string</td>
  4419. <td>true</td>
  4420. <td>the card ID</td>
  4421. </tr>
  4422. <tr>
  4423. <td>checklist</td>
  4424. <td>path</td>
  4425. <td>string</td>
  4426. <td>true</td>
  4427. <td>the ID of the checklist</td>
  4428. </tr>
  4429. </tbody>
  4430. </table>
  4431. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4432. <p><strong>board</strong>: the board ID</p>
  4433. <p><strong>card</strong>: the card ID</p>
  4434. <p><strong>checklist</strong>: the ID of the checklist</p>
  4435. <blockquote>
  4436. <p>Example responses</p>
  4437. </blockquote>
  4438. <blockquote>
  4439. <p>200 Response</p>
  4440. </blockquote>
  4441. <pre class="highlight tab tab-json"><code>{
  4442. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  4443. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  4444. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  4445. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  4446. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  4447. <span class="hljs-attr">"items"</span>: [
  4448. {
  4449. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4450. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  4451. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>
  4452. }
  4453. ]
  4454. }
  4455. </code></pre>
  4456. <h3 id="get_checklist-responses">Responses</h3>
  4457. <table>
  4458. <thead>
  4459. <tr>
  4460. <th>Status</th>
  4461. <th>Meaning</th>
  4462. <th>Description</th>
  4463. <th>Schema</th>
  4464. </tr>
  4465. </thead>
  4466. <tbody>
  4467. <tr>
  4468. <td>200</td>
  4469. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4470. <td>200 response</td>
  4471. <td>Inline</td>
  4472. </tr>
  4473. </tbody>
  4474. </table>
  4475. <h3 id="get_checklist-responseschema">Response Schema</h3>
  4476. <p>Status Code <strong>200</strong></p>
  4477. <table>
  4478. <thead>
  4479. <tr>
  4480. <th>Name</th>
  4481. <th>Type</th>
  4482. <th>Required</th>
  4483. <th>Restrictions</th>
  4484. <th>Description</th>
  4485. </tr>
  4486. </thead>
  4487. <tbody>
  4488. <tr>
  4489. <td>» cardId</td>
  4490. <td>string</td>
  4491. <td>false</td>
  4492. <td>none</td>
  4493. <td>none</td>
  4494. </tr>
  4495. <tr>
  4496. <td>» title</td>
  4497. <td>string</td>
  4498. <td>false</td>
  4499. <td>none</td>
  4500. <td>none</td>
  4501. </tr>
  4502. <tr>
  4503. <td>» finishedAt</td>
  4504. <td>string</td>
  4505. <td>false</td>
  4506. <td>none</td>
  4507. <td>none</td>
  4508. </tr>
  4509. <tr>
  4510. <td>» createdAt</td>
  4511. <td>string</td>
  4512. <td>false</td>
  4513. <td>none</td>
  4514. <td>none</td>
  4515. </tr>
  4516. <tr>
  4517. <td>» sort</td>
  4518. <td>number</td>
  4519. <td>false</td>
  4520. <td>none</td>
  4521. <td>none</td>
  4522. </tr>
  4523. <tr>
  4524. <td>» items</td>
  4525. <td>[object]</td>
  4526. <td>false</td>
  4527. <td>none</td>
  4528. <td>none</td>
  4529. </tr>
  4530. <tr>
  4531. <td>»» _id</td>
  4532. <td>string</td>
  4533. <td>false</td>
  4534. <td>none</td>
  4535. <td>none</td>
  4536. </tr>
  4537. <tr>
  4538. <td>»» title</td>
  4539. <td>string</td>
  4540. <td>false</td>
  4541. <td>none</td>
  4542. <td>none</td>
  4543. </tr>
  4544. <tr>
  4545. <td>»» isFinished</td>
  4546. <td>boolean</td>
  4547. <td>false</td>
  4548. <td>none</td>
  4549. <td>none</td>
  4550. </tr>
  4551. </tbody>
  4552. </table>
  4553. <aside class="warning">
  4554. To perform this operation, you must be authenticated by means of one of the following methods:
  4555. UserSecurity
  4556. </aside>
  4557. <h2 id="delete_checklist">delete_checklist</h2>
  4558. <p><a id="opIddelete_checklist"></a></p>
  4559. <blockquote>
  4560. <p>Code samples</p>
  4561. </blockquote>
  4562. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4563. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4564. -H <span class="hljs-string">'Accept: application/json'</span> \
  4565. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4566. </code></pre>
  4567. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}</span> HTTP/1.1
  4568. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4569. <span class="undefined"></span></span></code></pre>
  4570. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4571. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4572. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4573. };
  4574. $.ajax({
  4575. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4576. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  4577. <span class="hljs-attr">headers</span>: headers,
  4578. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4579. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4580. }
  4581. })
  4582. </code></pre>
  4583. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4584. <span class="hljs-keyword">const</span> headers = {
  4585. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4586. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4587. };
  4588. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4589. {
  4590. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  4591. <span class="hljs-attr">headers</span>: headers
  4592. })
  4593. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4594. <span class="hljs-keyword">return</span> res.json();
  4595. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4596. <span class="hljs-built_in">console</span>.log(body);
  4597. });
  4598. </code></pre>
  4599. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4600. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4601. headers = {
  4602. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4603. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4604. }
  4605. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4606. <span class="hljs-symbol">params:</span> {
  4607. }, <span class="hljs-symbol">headers:</span> headers
  4608. p JSON.parse(result)
  4609. </code></pre>
  4610. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4611. headers = {
  4612. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4613. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4614. }
  4615. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  4616. }, headers = headers)
  4617. <span class="hljs-keyword">print</span> r.json()
  4618. </code></pre>
  4619. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>);
  4620. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4621. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  4622. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4623. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4624. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4625. String inputLine;
  4626. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4627. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4628. response.append(inputLine);
  4629. }
  4630. in.close();
  4631. System.out.println(response.toString());
  4632. </code></pre>
  4633. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4634. <span class="hljs-keyword">import</span> (
  4635. <span class="hljs-string">"bytes"</span>
  4636. <span class="hljs-string">"net/http"</span>
  4637. )
  4638. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4639. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4640. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4641. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4642. }
  4643. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4644. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  4645. req.Header = headers
  4646. client := &amp;http.Client{}
  4647. resp, err := client.Do(req)
  4648. <span class="hljs-comment">// ...</span>
  4649. }
  4650. </code></pre>
  4651. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  4652. <p><em>Delete a checklist</em></p>
  4653. <p>The checklist will be removed, not put in the recycle bin.</p>
  4654. <h3 id="delete_checklist-parameters">Parameters</h3>
  4655. <table>
  4656. <thead>
  4657. <tr>
  4658. <th>Name</th>
  4659. <th>In</th>
  4660. <th>Type</th>
  4661. <th>Required</th>
  4662. <th>Description</th>
  4663. </tr>
  4664. </thead>
  4665. <tbody>
  4666. <tr>
  4667. <td>board</td>
  4668. <td>path</td>
  4669. <td>string</td>
  4670. <td>true</td>
  4671. <td>the board ID</td>
  4672. </tr>
  4673. <tr>
  4674. <td>card</td>
  4675. <td>path</td>
  4676. <td>string</td>
  4677. <td>true</td>
  4678. <td>the card ID</td>
  4679. </tr>
  4680. <tr>
  4681. <td>checklist</td>
  4682. <td>path</td>
  4683. <td>string</td>
  4684. <td>true</td>
  4685. <td>the ID of the checklist to remove</td>
  4686. </tr>
  4687. </tbody>
  4688. </table>
  4689. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4690. <p><strong>board</strong>: the board ID</p>
  4691. <p><strong>card</strong>: the card ID</p>
  4692. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  4693. <blockquote>
  4694. <p>Example responses</p>
  4695. </blockquote>
  4696. <blockquote>
  4697. <p>200 Response</p>
  4698. </blockquote>
  4699. <pre class="highlight tab tab-json"><code>{
  4700. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  4701. }
  4702. </code></pre>
  4703. <h3 id="delete_checklist-responses">Responses</h3>
  4704. <table>
  4705. <thead>
  4706. <tr>
  4707. <th>Status</th>
  4708. <th>Meaning</th>
  4709. <th>Description</th>
  4710. <th>Schema</th>
  4711. </tr>
  4712. </thead>
  4713. <tbody>
  4714. <tr>
  4715. <td>200</td>
  4716. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4717. <td>200 response</td>
  4718. <td>Inline</td>
  4719. </tr>
  4720. </tbody>
  4721. </table>
  4722. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  4723. <p>Status Code <strong>200</strong></p>
  4724. <table>
  4725. <thead>
  4726. <tr>
  4727. <th>Name</th>
  4728. <th>Type</th>
  4729. <th>Required</th>
  4730. <th>Restrictions</th>
  4731. <th>Description</th>
  4732. </tr>
  4733. </thead>
  4734. <tbody>
  4735. <tr>
  4736. <td>» _id</td>
  4737. <td>string</td>
  4738. <td>false</td>
  4739. <td>none</td>
  4740. <td>none</td>
  4741. </tr>
  4742. </tbody>
  4743. </table>
  4744. <aside class="warning">
  4745. To perform this operation, you must be authenticated by means of one of the following methods:
  4746. UserSecurity
  4747. </aside>
  4748. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  4749. <h2 id="get_checklist_item">get_checklist_item</h2>
  4750. <p><a id="opIdget_checklist_item"></a></p>
  4751. <blockquote>
  4752. <p>Code samples</p>
  4753. </blockquote>
  4754. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4755. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  4756. -H <span class="hljs-string">'Accept: application/json'</span> \
  4757. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4758. </code></pre>
  4759. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  4760. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4761. <span class="undefined"></span></span></code></pre>
  4762. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4763. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4764. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4765. };
  4766. $.ajax({
  4767. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4768. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4769. <span class="hljs-attr">headers</span>: headers,
  4770. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4771. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4772. }
  4773. })
  4774. </code></pre>
  4775. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4776. <span class="hljs-keyword">const</span> headers = {
  4777. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4778. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4779. };
  4780. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4781. {
  4782. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4783. <span class="hljs-attr">headers</span>: headers
  4784. })
  4785. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4786. <span class="hljs-keyword">return</span> res.json();
  4787. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4788. <span class="hljs-built_in">console</span>.log(body);
  4789. });
  4790. </code></pre>
  4791. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4792. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4793. headers = {
  4794. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4795. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4796. }
  4797. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4798. <span class="hljs-symbol">params:</span> {
  4799. }, <span class="hljs-symbol">headers:</span> headers
  4800. p JSON.parse(result)
  4801. </code></pre>
  4802. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4803. headers = {
  4804. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4805. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4806. }
  4807. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  4808. }, headers = headers)
  4809. <span class="hljs-keyword">print</span> r.json()
  4810. </code></pre>
  4811. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  4812. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4813. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4814. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4815. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4816. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4817. String inputLine;
  4818. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4819. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4820. response.append(inputLine);
  4821. }
  4822. in.close();
  4823. System.out.println(response.toString());
  4824. </code></pre>
  4825. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4826. <span class="hljs-keyword">import</span> (
  4827. <span class="hljs-string">"bytes"</span>
  4828. <span class="hljs-string">"net/http"</span>
  4829. )
  4830. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4831. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4832. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4833. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4834. }
  4835. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4836. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  4837. req.Header = headers
  4838. client := &amp;http.Client{}
  4839. resp, err := client.Do(req)
  4840. <span class="hljs-comment">// ...</span>
  4841. }
  4842. </code></pre>
  4843. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  4844. <p><em>Get a checklist item</em></p>
  4845. <h3 id="get_checklist_item-parameters">Parameters</h3>
  4846. <table>
  4847. <thead>
  4848. <tr>
  4849. <th>Name</th>
  4850. <th>In</th>
  4851. <th>Type</th>
  4852. <th>Required</th>
  4853. <th>Description</th>
  4854. </tr>
  4855. </thead>
  4856. <tbody>
  4857. <tr>
  4858. <td>board</td>
  4859. <td>path</td>
  4860. <td>string</td>
  4861. <td>true</td>
  4862. <td>the board ID</td>
  4863. </tr>
  4864. <tr>
  4865. <td>card</td>
  4866. <td>path</td>
  4867. <td>string</td>
  4868. <td>true</td>
  4869. <td>the card ID</td>
  4870. </tr>
  4871. <tr>
  4872. <td>checklist</td>
  4873. <td>path</td>
  4874. <td>string</td>
  4875. <td>true</td>
  4876. <td>the checklist ID</td>
  4877. </tr>
  4878. <tr>
  4879. <td>item</td>
  4880. <td>path</td>
  4881. <td>string</td>
  4882. <td>true</td>
  4883. <td>the ID of the item</td>
  4884. </tr>
  4885. </tbody>
  4886. </table>
  4887. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4888. <p><strong>board</strong>: the board ID</p>
  4889. <p><strong>card</strong>: the card ID</p>
  4890. <p><strong>checklist</strong>: the checklist ID</p>
  4891. <p><strong>item</strong>: the ID of the item</p>
  4892. <blockquote>
  4893. <p>Example responses</p>
  4894. </blockquote>
  4895. <blockquote>
  4896. <p>200 Response</p>
  4897. </blockquote>
  4898. <pre class="highlight tab tab-json"><code>{
  4899. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  4900. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  4901. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  4902. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  4903. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  4904. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  4905. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  4906. }
  4907. </code></pre>
  4908. <h3 id="get_checklist_item-responses">Responses</h3>
  4909. <table>
  4910. <thead>
  4911. <tr>
  4912. <th>Status</th>
  4913. <th>Meaning</th>
  4914. <th>Description</th>
  4915. <th>Schema</th>
  4916. </tr>
  4917. </thead>
  4918. <tbody>
  4919. <tr>
  4920. <td>200</td>
  4921. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4922. <td>200 response</td>
  4923. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  4924. </tr>
  4925. </tbody>
  4926. </table>
  4927. <aside class="warning">
  4928. To perform this operation, you must be authenticated by means of one of the following methods:
  4929. UserSecurity
  4930. </aside>
  4931. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  4932. <p><a id="opIdedit_checklist_item"></a></p>
  4933. <blockquote>
  4934. <p>Code samples</p>
  4935. </blockquote>
  4936. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4937. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  4938. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  4939. -H <span class="hljs-string">'Accept: application/json'</span> \
  4940. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4941. </code></pre>
  4942. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  4943. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4944. Accept: application/json
  4945. </span></code></pre>
  4946. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4947. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4948. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4949. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4950. };
  4951. $.ajax({
  4952. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4953. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  4954. <span class="hljs-attr">headers</span>: headers,
  4955. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4956. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4957. }
  4958. })
  4959. </code></pre>
  4960. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4961. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  4962. "isFinished": "string",
  4963. "title": "string"
  4964. }'</span>;
  4965. <span class="hljs-keyword">const</span> headers = {
  4966. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4967. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4968. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4969. };
  4970. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4971. {
  4972. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  4973. <span class="hljs-attr">body</span>: inputBody,
  4974. <span class="hljs-attr">headers</span>: headers
  4975. })
  4976. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4977. <span class="hljs-keyword">return</span> res.json();
  4978. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4979. <span class="hljs-built_in">console</span>.log(body);
  4980. });
  4981. </code></pre>
  4982. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4983. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4984. headers = {
  4985. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4986. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4987. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4988. }
  4989. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  4990. <span class="hljs-symbol">params:</span> {
  4991. }, <span class="hljs-symbol">headers:</span> headers
  4992. p JSON.parse(result)
  4993. </code></pre>
  4994. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4995. headers = {
  4996. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4997. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4998. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4999. }
  5000. r = requests.put(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  5001. }, headers = headers)
  5002. <span class="hljs-keyword">print</span> r.json()
  5003. </code></pre>
  5004. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  5005. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5006. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  5007. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5008. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5009. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5010. String inputLine;
  5011. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5012. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5013. response.append(inputLine);
  5014. }
  5015. in.close();
  5016. System.out.println(response.toString());
  5017. </code></pre>
  5018. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5019. <span class="hljs-keyword">import</span> (
  5020. <span class="hljs-string">"bytes"</span>
  5021. <span class="hljs-string">"net/http"</span>
  5022. )
  5023. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5024. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5025. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5026. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5027. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5028. }
  5029. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5030. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  5031. req.Header = headers
  5032. client := &amp;http.Client{}
  5033. resp, err := client.Do(req)
  5034. <span class="hljs-comment">// ...</span>
  5035. }
  5036. </code></pre>
  5037. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5038. <p><em>Edit a checklist item</em></p>
  5039. <blockquote>
  5040. <p>Body parameter</p>
  5041. </blockquote>
  5042. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5043. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5044. </code></pre>
  5045. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5046. <table>
  5047. <thead>
  5048. <tr>
  5049. <th>Name</th>
  5050. <th>In</th>
  5051. <th>Type</th>
  5052. <th>Required</th>
  5053. <th>Description</th>
  5054. </tr>
  5055. </thead>
  5056. <tbody>
  5057. <tr>
  5058. <td>board</td>
  5059. <td>path</td>
  5060. <td>string</td>
  5061. <td>true</td>
  5062. <td>the board ID</td>
  5063. </tr>
  5064. <tr>
  5065. <td>card</td>
  5066. <td>path</td>
  5067. <td>string</td>
  5068. <td>true</td>
  5069. <td>the card ID</td>
  5070. </tr>
  5071. <tr>
  5072. <td>checklist</td>
  5073. <td>path</td>
  5074. <td>string</td>
  5075. <td>true</td>
  5076. <td>the checklist ID</td>
  5077. </tr>
  5078. <tr>
  5079. <td>item</td>
  5080. <td>path</td>
  5081. <td>string</td>
  5082. <td>true</td>
  5083. <td>the ID of the item</td>
  5084. </tr>
  5085. <tr>
  5086. <td>body</td>
  5087. <td>body</td>
  5088. <td>object</td>
  5089. <td>false</td>
  5090. <td>none</td>
  5091. </tr>
  5092. <tr>
  5093. <td>» isFinished</td>
  5094. <td>body</td>
  5095. <td>string</td>
  5096. <td>false</td>
  5097. <td>is the item checked?</td>
  5098. </tr>
  5099. <tr>
  5100. <td>» title</td>
  5101. <td>body</td>
  5102. <td>string</td>
  5103. <td>false</td>
  5104. <td>the new text of the item</td>
  5105. </tr>
  5106. </tbody>
  5107. </table>
  5108. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5109. <p><strong>board</strong>: the board ID</p>
  5110. <p><strong>card</strong>: the card ID</p>
  5111. <p><strong>checklist</strong>: the checklist ID</p>
  5112. <p><strong>item</strong>: the ID of the item</p>
  5113. <blockquote>
  5114. <p>Example responses</p>
  5115. </blockquote>
  5116. <blockquote>
  5117. <p>200 Response</p>
  5118. </blockquote>
  5119. <pre class="highlight tab tab-json"><code>{
  5120. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5121. }
  5122. </code></pre>
  5123. <h3 id="edit_checklist_item-responses">Responses</h3>
  5124. <table>
  5125. <thead>
  5126. <tr>
  5127. <th>Status</th>
  5128. <th>Meaning</th>
  5129. <th>Description</th>
  5130. <th>Schema</th>
  5131. </tr>
  5132. </thead>
  5133. <tbody>
  5134. <tr>
  5135. <td>200</td>
  5136. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5137. <td>200 response</td>
  5138. <td>Inline</td>
  5139. </tr>
  5140. </tbody>
  5141. </table>
  5142. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5143. <p>Status Code <strong>200</strong></p>
  5144. <table>
  5145. <thead>
  5146. <tr>
  5147. <th>Name</th>
  5148. <th>Type</th>
  5149. <th>Required</th>
  5150. <th>Restrictions</th>
  5151. <th>Description</th>
  5152. </tr>
  5153. </thead>
  5154. <tbody>
  5155. <tr>
  5156. <td>» _id</td>
  5157. <td>string</td>
  5158. <td>false</td>
  5159. <td>none</td>
  5160. <td>none</td>
  5161. </tr>
  5162. </tbody>
  5163. </table>
  5164. <aside class="warning">
  5165. To perform this operation, you must be authenticated by means of one of the following methods:
  5166. UserSecurity
  5167. </aside>
  5168. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5169. <p><a id="opIddelete_checklist_item"></a></p>
  5170. <blockquote>
  5171. <p>Code samples</p>
  5172. </blockquote>
  5173. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5174. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5175. -H <span class="hljs-string">'Accept: application/json'</span> \
  5176. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5177. </code></pre>
  5178. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  5179. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5180. <span class="undefined"></span></span></code></pre>
  5181. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5182. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5183. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5184. };
  5185. $.ajax({
  5186. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5187. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  5188. <span class="hljs-attr">headers</span>: headers,
  5189. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5190. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5191. }
  5192. })
  5193. </code></pre>
  5194. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5195. <span class="hljs-keyword">const</span> headers = {
  5196. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5197. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5198. };
  5199. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5200. {
  5201. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  5202. <span class="hljs-attr">headers</span>: headers
  5203. })
  5204. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5205. <span class="hljs-keyword">return</span> res.json();
  5206. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5207. <span class="hljs-built_in">console</span>.log(body);
  5208. });
  5209. </code></pre>
  5210. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5211. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5212. headers = {
  5213. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5214. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5215. }
  5216. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5217. <span class="hljs-symbol">params:</span> {
  5218. }, <span class="hljs-symbol">headers:</span> headers
  5219. p JSON.parse(result)
  5220. </code></pre>
  5221. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5222. headers = {
  5223. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5224. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5225. }
  5226. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  5227. }, headers = headers)
  5228. <span class="hljs-keyword">print</span> r.json()
  5229. </code></pre>
  5230. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  5231. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5232. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  5233. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5234. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5235. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5236. String inputLine;
  5237. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5238. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5239. response.append(inputLine);
  5240. }
  5241. in.close();
  5242. System.out.println(response.toString());
  5243. </code></pre>
  5244. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5245. <span class="hljs-keyword">import</span> (
  5246. <span class="hljs-string">"bytes"</span>
  5247. <span class="hljs-string">"net/http"</span>
  5248. )
  5249. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5250. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5251. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5252. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5253. }
  5254. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5255. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  5256. req.Header = headers
  5257. client := &amp;http.Client{}
  5258. resp, err := client.Do(req)
  5259. <span class="hljs-comment">// ...</span>
  5260. }
  5261. </code></pre>
  5262. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5263. <p><em>Delete a checklist item</em></p>
  5264. <p>Note: this operation can't be reverted.</p>
  5265. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  5266. <table>
  5267. <thead>
  5268. <tr>
  5269. <th>Name</th>
  5270. <th>In</th>
  5271. <th>Type</th>
  5272. <th>Required</th>
  5273. <th>Description</th>
  5274. </tr>
  5275. </thead>
  5276. <tbody>
  5277. <tr>
  5278. <td>board</td>
  5279. <td>path</td>
  5280. <td>string</td>
  5281. <td>true</td>
  5282. <td>the board ID</td>
  5283. </tr>
  5284. <tr>
  5285. <td>card</td>
  5286. <td>path</td>
  5287. <td>string</td>
  5288. <td>true</td>
  5289. <td>the card ID</td>
  5290. </tr>
  5291. <tr>
  5292. <td>checklist</td>
  5293. <td>path</td>
  5294. <td>string</td>
  5295. <td>true</td>
  5296. <td>the checklist ID</td>
  5297. </tr>
  5298. <tr>
  5299. <td>item</td>
  5300. <td>path</td>
  5301. <td>string</td>
  5302. <td>true</td>
  5303. <td>the ID of the item to be removed</td>
  5304. </tr>
  5305. </tbody>
  5306. </table>
  5307. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5308. <p><strong>board</strong>: the board ID</p>
  5309. <p><strong>card</strong>: the card ID</p>
  5310. <p><strong>checklist</strong>: the checklist ID</p>
  5311. <p><strong>item</strong>: the ID of the item to be removed</p>
  5312. <blockquote>
  5313. <p>Example responses</p>
  5314. </blockquote>
  5315. <blockquote>
  5316. <p>200 Response</p>
  5317. </blockquote>
  5318. <pre class="highlight tab tab-json"><code>{
  5319. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5320. }
  5321. </code></pre>
  5322. <h3 id="delete_checklist_item-responses">Responses</h3>
  5323. <table>
  5324. <thead>
  5325. <tr>
  5326. <th>Status</th>
  5327. <th>Meaning</th>
  5328. <th>Description</th>
  5329. <th>Schema</th>
  5330. </tr>
  5331. </thead>
  5332. <tbody>
  5333. <tr>
  5334. <td>200</td>
  5335. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5336. <td>200 response</td>
  5337. <td>Inline</td>
  5338. </tr>
  5339. </tbody>
  5340. </table>
  5341. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  5342. <p>Status Code <strong>200</strong></p>
  5343. <table>
  5344. <thead>
  5345. <tr>
  5346. <th>Name</th>
  5347. <th>Type</th>
  5348. <th>Required</th>
  5349. <th>Restrictions</th>
  5350. <th>Description</th>
  5351. </tr>
  5352. </thead>
  5353. <tbody>
  5354. <tr>
  5355. <td>» _id</td>
  5356. <td>string</td>
  5357. <td>false</td>
  5358. <td>none</td>
  5359. <td>none</td>
  5360. </tr>
  5361. </tbody>
  5362. </table>
  5363. <aside class="warning">
  5364. To perform this operation, you must be authenticated by means of one of the following methods:
  5365. UserSecurity
  5366. </aside>
  5367. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  5368. <h2 id="get_all_comments">get_all_comments</h2>
  5369. <p><a id="opIdget_all_comments"></a></p>
  5370. <blockquote>
  5371. <p>Code samples</p>
  5372. </blockquote>
  5373. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5374. curl -X GET /api/boards/{board}/cards/{card}/comments \
  5375. -H <span class="hljs-string">'Accept: application/json'</span> \
  5376. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5377. </code></pre>
  5378. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> HTTP/1.1
  5379. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5380. <span class="undefined"></span></span></code></pre>
  5381. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5382. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5383. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5384. };
  5385. $.ajax({
  5386. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  5387. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5388. <span class="hljs-attr">headers</span>: headers,
  5389. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5390. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5391. }
  5392. })
  5393. </code></pre>
  5394. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5395. <span class="hljs-keyword">const</span> headers = {
  5396. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5397. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5398. };
  5399. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  5400. {
  5401. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5402. <span class="hljs-attr">headers</span>: headers
  5403. })
  5404. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5405. <span class="hljs-keyword">return</span> res.json();
  5406. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5407. <span class="hljs-built_in">console</span>.log(body);
  5408. });
  5409. </code></pre>
  5410. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5411. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5412. headers = {
  5413. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5414. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5415. }
  5416. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  5417. <span class="hljs-symbol">params:</span> {
  5418. }, <span class="hljs-symbol">headers:</span> headers
  5419. p JSON.parse(result)
  5420. </code></pre>
  5421. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5422. headers = {
  5423. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5424. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5425. }
  5426. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  5427. }, headers = headers)
  5428. <span class="hljs-keyword">print</span> r.json()
  5429. </code></pre>
  5430. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>);
  5431. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5432. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5433. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5434. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5435. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5436. String inputLine;
  5437. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5438. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5439. response.append(inputLine);
  5440. }
  5441. in.close();
  5442. System.out.println(response.toString());
  5443. </code></pre>
  5444. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5445. <span class="hljs-keyword">import</span> (
  5446. <span class="hljs-string">"bytes"</span>
  5447. <span class="hljs-string">"net/http"</span>
  5448. )
  5449. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5450. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5451. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5452. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5453. }
  5454. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5455. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  5456. req.Header = headers
  5457. client := &amp;http.Client{}
  5458. resp, err := client.Do(req)
  5459. <span class="hljs-comment">// ...</span>
  5460. }
  5461. </code></pre>
  5462. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  5463. <p><em>Get all comments attached to a card</em></p>
  5464. <h3 id="get_all_comments-parameters">Parameters</h3>
  5465. <table>
  5466. <thead>
  5467. <tr>
  5468. <th>Name</th>
  5469. <th>In</th>
  5470. <th>Type</th>
  5471. <th>Required</th>
  5472. <th>Description</th>
  5473. </tr>
  5474. </thead>
  5475. <tbody>
  5476. <tr>
  5477. <td>board</td>
  5478. <td>path</td>
  5479. <td>string</td>
  5480. <td>true</td>
  5481. <td>the board ID of the card</td>
  5482. </tr>
  5483. <tr>
  5484. <td>card</td>
  5485. <td>path</td>
  5486. <td>string</td>
  5487. <td>true</td>
  5488. <td>the ID of the card</td>
  5489. </tr>
  5490. </tbody>
  5491. </table>
  5492. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5493. <p><strong>board</strong>: the board ID of the card</p>
  5494. <p><strong>card</strong>: the ID of the card</p>
  5495. <blockquote>
  5496. <p>Example responses</p>
  5497. </blockquote>
  5498. <blockquote>
  5499. <p>200 Response</p>
  5500. </blockquote>
  5501. <pre class="highlight tab tab-json"><code>[
  5502. {
  5503. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  5504. <span class="hljs-attr">"comment"</span>: <span class="hljs-string">"string"</span>,
  5505. <span class="hljs-attr">"authorId"</span>: <span class="hljs-string">"string"</span>
  5506. }
  5507. ]
  5508. </code></pre>
  5509. <h3 id="get_all_comments-responses">Responses</h3>
  5510. <table>
  5511. <thead>
  5512. <tr>
  5513. <th>Status</th>
  5514. <th>Meaning</th>
  5515. <th>Description</th>
  5516. <th>Schema</th>
  5517. </tr>
  5518. </thead>
  5519. <tbody>
  5520. <tr>
  5521. <td>200</td>
  5522. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5523. <td>200 response</td>
  5524. <td>Inline</td>
  5525. </tr>
  5526. </tbody>
  5527. </table>
  5528. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  5529. <p>Status Code <strong>200</strong></p>
  5530. <table>
  5531. <thead>
  5532. <tr>
  5533. <th>Name</th>
  5534. <th>Type</th>
  5535. <th>Required</th>
  5536. <th>Restrictions</th>
  5537. <th>Description</th>
  5538. </tr>
  5539. </thead>
  5540. <tbody>
  5541. <tr>
  5542. <td>» _id</td>
  5543. <td>string</td>
  5544. <td>false</td>
  5545. <td>none</td>
  5546. <td>none</td>
  5547. </tr>
  5548. <tr>
  5549. <td>» comment</td>
  5550. <td>string</td>
  5551. <td>false</td>
  5552. <td>none</td>
  5553. <td>none</td>
  5554. </tr>
  5555. <tr>
  5556. <td>» authorId</td>
  5557. <td>string</td>
  5558. <td>false</td>
  5559. <td>none</td>
  5560. <td>none</td>
  5561. </tr>
  5562. </tbody>
  5563. </table>
  5564. <aside class="warning">
  5565. To perform this operation, you must be authenticated by means of one of the following methods:
  5566. UserSecurity
  5567. </aside>
  5568. <h2 id="new_comment">new_comment</h2>
  5569. <p><a id="opIdnew_comment"></a></p>
  5570. <blockquote>
  5571. <p>Code samples</p>
  5572. </blockquote>
  5573. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5574. curl -X POST /api/boards/{board}/cards/{card}/comments \
  5575. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5576. -H <span class="hljs-string">'Accept: application/json'</span> \
  5577. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5578. </code></pre>
  5579. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> HTTP/1.1
  5580. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5581. Accept: application/json
  5582. </span></code></pre>
  5583. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5584. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5585. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5586. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5587. };
  5588. $.ajax({
  5589. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  5590. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  5591. <span class="hljs-attr">headers</span>: headers,
  5592. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5593. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5594. }
  5595. })
  5596. </code></pre>
  5597. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5598. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5599. "authorId": "string",
  5600. "comment": "string"
  5601. }'</span>;
  5602. <span class="hljs-keyword">const</span> headers = {
  5603. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5604. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5605. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5606. };
  5607. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  5608. {
  5609. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  5610. <span class="hljs-attr">body</span>: inputBody,
  5611. <span class="hljs-attr">headers</span>: headers
  5612. })
  5613. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5614. <span class="hljs-keyword">return</span> res.json();
  5615. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5616. <span class="hljs-built_in">console</span>.log(body);
  5617. });
  5618. </code></pre>
  5619. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5620. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5621. headers = {
  5622. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5623. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5624. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5625. }
  5626. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  5627. <span class="hljs-symbol">params:</span> {
  5628. }, <span class="hljs-symbol">headers:</span> headers
  5629. p JSON.parse(result)
  5630. </code></pre>
  5631. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5632. headers = {
  5633. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5634. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5635. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5636. }
  5637. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  5638. }, headers = headers)
  5639. <span class="hljs-keyword">print</span> r.json()
  5640. </code></pre>
  5641. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>);
  5642. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5643. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  5644. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5645. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5646. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5647. String inputLine;
  5648. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5649. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5650. response.append(inputLine);
  5651. }
  5652. in.close();
  5653. System.out.println(response.toString());
  5654. </code></pre>
  5655. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5656. <span class="hljs-keyword">import</span> (
  5657. <span class="hljs-string">"bytes"</span>
  5658. <span class="hljs-string">"net/http"</span>
  5659. )
  5660. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5661. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5662. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5663. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5664. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5665. }
  5666. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5667. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  5668. req.Header = headers
  5669. client := &amp;http.Client{}
  5670. resp, err := client.Do(req)
  5671. <span class="hljs-comment">// ...</span>
  5672. }
  5673. </code></pre>
  5674. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  5675. <p><em>Add a comment on a card</em></p>
  5676. <blockquote>
  5677. <p>Body parameter</p>
  5678. </blockquote>
  5679. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  5680. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  5681. </code></pre>
  5682. <h3 id="new_comment-parameters">Parameters</h3>
  5683. <table>
  5684. <thead>
  5685. <tr>
  5686. <th>Name</th>
  5687. <th>In</th>
  5688. <th>Type</th>
  5689. <th>Required</th>
  5690. <th>Description</th>
  5691. </tr>
  5692. </thead>
  5693. <tbody>
  5694. <tr>
  5695. <td>board</td>
  5696. <td>path</td>
  5697. <td>string</td>
  5698. <td>true</td>
  5699. <td>the board ID of the card</td>
  5700. </tr>
  5701. <tr>
  5702. <td>card</td>
  5703. <td>path</td>
  5704. <td>string</td>
  5705. <td>true</td>
  5706. <td>the ID of the card</td>
  5707. </tr>
  5708. <tr>
  5709. <td>body</td>
  5710. <td>body</td>
  5711. <td>object</td>
  5712. <td>false</td>
  5713. <td>none</td>
  5714. </tr>
  5715. <tr>
  5716. <td>» authorId</td>
  5717. <td>body</td>
  5718. <td>string</td>
  5719. <td>true</td>
  5720. <td>the user who 'posted' the comment</td>
  5721. </tr>
  5722. <tr>
  5723. <td>» comment</td>
  5724. <td>body</td>
  5725. <td>string</td>
  5726. <td>true</td>
  5727. <td>the comment value</td>
  5728. </tr>
  5729. </tbody>
  5730. </table>
  5731. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5732. <p><strong>board</strong>: the board ID of the card</p>
  5733. <p><strong>card</strong>: the ID of the card</p>
  5734. <blockquote>
  5735. <p>Example responses</p>
  5736. </blockquote>
  5737. <blockquote>
  5738. <p>200 Response</p>
  5739. </blockquote>
  5740. <pre class="highlight tab tab-json"><code>{
  5741. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5742. }
  5743. </code></pre>
  5744. <h3 id="new_comment-responses">Responses</h3>
  5745. <table>
  5746. <thead>
  5747. <tr>
  5748. <th>Status</th>
  5749. <th>Meaning</th>
  5750. <th>Description</th>
  5751. <th>Schema</th>
  5752. </tr>
  5753. </thead>
  5754. <tbody>
  5755. <tr>
  5756. <td>200</td>
  5757. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5758. <td>200 response</td>
  5759. <td>Inline</td>
  5760. </tr>
  5761. </tbody>
  5762. </table>
  5763. <h3 id="new_comment-responseschema">Response Schema</h3>
  5764. <p>Status Code <strong>200</strong></p>
  5765. <table>
  5766. <thead>
  5767. <tr>
  5768. <th>Name</th>
  5769. <th>Type</th>
  5770. <th>Required</th>
  5771. <th>Restrictions</th>
  5772. <th>Description</th>
  5773. </tr>
  5774. </thead>
  5775. <tbody>
  5776. <tr>
  5777. <td>» _id</td>
  5778. <td>string</td>
  5779. <td>false</td>
  5780. <td>none</td>
  5781. <td>none</td>
  5782. </tr>
  5783. </tbody>
  5784. </table>
  5785. <aside class="warning">
  5786. To perform this operation, you must be authenticated by means of one of the following methods:
  5787. UserSecurity
  5788. </aside>
  5789. <h2 id="get_comment">get_comment</h2>
  5790. <p><a id="opIdget_comment"></a></p>
  5791. <blockquote>
  5792. <p>Code samples</p>
  5793. </blockquote>
  5794. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5795. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  5796. -H <span class="hljs-string">'Accept: application/json'</span> \
  5797. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5798. </code></pre>
  5799. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments/{comment}</span> HTTP/1.1
  5800. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5801. <span class="undefined"></span></span></code></pre>
  5802. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5803. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5804. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5805. };
  5806. $.ajax({
  5807. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5808. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5809. <span class="hljs-attr">headers</span>: headers,
  5810. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5811. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5812. }
  5813. })
  5814. </code></pre>
  5815. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5816. <span class="hljs-keyword">const</span> headers = {
  5817. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5818. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5819. };
  5820. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5821. {
  5822. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5823. <span class="hljs-attr">headers</span>: headers
  5824. })
  5825. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5826. <span class="hljs-keyword">return</span> res.json();
  5827. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5828. <span class="hljs-built_in">console</span>.log(body);
  5829. });
  5830. </code></pre>
  5831. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5832. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5833. headers = {
  5834. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5835. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5836. }
  5837. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5838. <span class="hljs-symbol">params:</span> {
  5839. }, <span class="hljs-symbol">headers:</span> headers
  5840. p JSON.parse(result)
  5841. </code></pre>
  5842. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5843. headers = {
  5844. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5845. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5846. }
  5847. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  5848. }, headers = headers)
  5849. <span class="hljs-keyword">print</span> r.json()
  5850. </code></pre>
  5851. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>);
  5852. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5853. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5854. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5855. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5856. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5857. String inputLine;
  5858. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5859. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5860. response.append(inputLine);
  5861. }
  5862. in.close();
  5863. System.out.println(response.toString());
  5864. </code></pre>
  5865. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5866. <span class="hljs-keyword">import</span> (
  5867. <span class="hljs-string">"bytes"</span>
  5868. <span class="hljs-string">"net/http"</span>
  5869. )
  5870. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5871. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5872. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5873. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5874. }
  5875. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5876. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  5877. req.Header = headers
  5878. client := &amp;http.Client{}
  5879. resp, err := client.Do(req)
  5880. <span class="hljs-comment">// ...</span>
  5881. }
  5882. </code></pre>
  5883. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  5884. <p><em>Get a comment on a card</em></p>
  5885. <h3 id="get_comment-parameters">Parameters</h3>
  5886. <table>
  5887. <thead>
  5888. <tr>
  5889. <th>Name</th>
  5890. <th>In</th>
  5891. <th>Type</th>
  5892. <th>Required</th>
  5893. <th>Description</th>
  5894. </tr>
  5895. </thead>
  5896. <tbody>
  5897. <tr>
  5898. <td>board</td>
  5899. <td>path</td>
  5900. <td>string</td>
  5901. <td>true</td>
  5902. <td>the board ID of the card</td>
  5903. </tr>
  5904. <tr>
  5905. <td>card</td>
  5906. <td>path</td>
  5907. <td>string</td>
  5908. <td>true</td>
  5909. <td>the ID of the card</td>
  5910. </tr>
  5911. <tr>
  5912. <td>comment</td>
  5913. <td>path</td>
  5914. <td>string</td>
  5915. <td>true</td>
  5916. <td>the ID of the comment to retrieve</td>
  5917. </tr>
  5918. </tbody>
  5919. </table>
  5920. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5921. <p><strong>board</strong>: the board ID of the card</p>
  5922. <p><strong>card</strong>: the ID of the card</p>
  5923. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  5924. <blockquote>
  5925. <p>Example responses</p>
  5926. </blockquote>
  5927. <blockquote>
  5928. <p>200 Response</p>
  5929. </blockquote>
  5930. <pre class="highlight tab tab-json"><code>{
  5931. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  5932. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  5933. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  5934. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  5935. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  5936. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  5937. }
  5938. </code></pre>
  5939. <h3 id="get_comment-responses">Responses</h3>
  5940. <table>
  5941. <thead>
  5942. <tr>
  5943. <th>Status</th>
  5944. <th>Meaning</th>
  5945. <th>Description</th>
  5946. <th>Schema</th>
  5947. </tr>
  5948. </thead>
  5949. <tbody>
  5950. <tr>
  5951. <td>200</td>
  5952. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5953. <td>200 response</td>
  5954. <td><a href="#schemacardcomments">CardComments</a></td>
  5955. </tr>
  5956. </tbody>
  5957. </table>
  5958. <aside class="warning">
  5959. To perform this operation, you must be authenticated by means of one of the following methods:
  5960. UserSecurity
  5961. </aside>
  5962. <h2 id="delete_comment">delete_comment</h2>
  5963. <p><a id="opIddelete_comment"></a></p>
  5964. <blockquote>
  5965. <p>Code samples</p>
  5966. </blockquote>
  5967. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5968. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  5969. -H <span class="hljs-string">'Accept: application/json'</span> \
  5970. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5971. </code></pre>
  5972. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments/{comment}</span> HTTP/1.1
  5973. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5974. <span class="undefined"></span></span></code></pre>
  5975. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5976. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5977. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5978. };
  5979. $.ajax({
  5980. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5981. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  5982. <span class="hljs-attr">headers</span>: headers,
  5983. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5984. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5985. }
  5986. })
  5987. </code></pre>
  5988. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5989. <span class="hljs-keyword">const</span> headers = {
  5990. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5991. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5992. };
  5993. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  5994. {
  5995. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  5996. <span class="hljs-attr">headers</span>: headers
  5997. })
  5998. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5999. <span class="hljs-keyword">return</span> res.json();
  6000. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6001. <span class="hljs-built_in">console</span>.log(body);
  6002. });
  6003. </code></pre>
  6004. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6005. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6006. headers = {
  6007. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6008. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6009. }
  6010. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6011. <span class="hljs-symbol">params:</span> {
  6012. }, <span class="hljs-symbol">headers:</span> headers
  6013. p JSON.parse(result)
  6014. </code></pre>
  6015. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6016. headers = {
  6017. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6018. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6019. }
  6020. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  6021. }, headers = headers)
  6022. <span class="hljs-keyword">print</span> r.json()
  6023. </code></pre>
  6024. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>);
  6025. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6026. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  6027. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6028. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6029. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6030. String inputLine;
  6031. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6032. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6033. response.append(inputLine);
  6034. }
  6035. in.close();
  6036. System.out.println(response.toString());
  6037. </code></pre>
  6038. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6039. <span class="hljs-keyword">import</span> (
  6040. <span class="hljs-string">"bytes"</span>
  6041. <span class="hljs-string">"net/http"</span>
  6042. )
  6043. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6044. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6045. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6046. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6047. }
  6048. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6049. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  6050. req.Header = headers
  6051. client := &amp;http.Client{}
  6052. resp, err := client.Do(req)
  6053. <span class="hljs-comment">// ...</span>
  6054. }
  6055. </code></pre>
  6056. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6057. <p><em>Delete a comment on a card</em></p>
  6058. <h3 id="delete_comment-parameters">Parameters</h3>
  6059. <table>
  6060. <thead>
  6061. <tr>
  6062. <th>Name</th>
  6063. <th>In</th>
  6064. <th>Type</th>
  6065. <th>Required</th>
  6066. <th>Description</th>
  6067. </tr>
  6068. </thead>
  6069. <tbody>
  6070. <tr>
  6071. <td>board</td>
  6072. <td>path</td>
  6073. <td>string</td>
  6074. <td>true</td>
  6075. <td>the board ID of the card</td>
  6076. </tr>
  6077. <tr>
  6078. <td>card</td>
  6079. <td>path</td>
  6080. <td>string</td>
  6081. <td>true</td>
  6082. <td>the ID of the card</td>
  6083. </tr>
  6084. <tr>
  6085. <td>comment</td>
  6086. <td>path</td>
  6087. <td>string</td>
  6088. <td>true</td>
  6089. <td>the ID of the comment to delete</td>
  6090. </tr>
  6091. </tbody>
  6092. </table>
  6093. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6094. <p><strong>board</strong>: the board ID of the card</p>
  6095. <p><strong>card</strong>: the ID of the card</p>
  6096. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6097. <blockquote>
  6098. <p>Example responses</p>
  6099. </blockquote>
  6100. <blockquote>
  6101. <p>200 Response</p>
  6102. </blockquote>
  6103. <pre class="highlight tab tab-json"><code>{
  6104. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6105. }
  6106. </code></pre>
  6107. <h3 id="delete_comment-responses">Responses</h3>
  6108. <table>
  6109. <thead>
  6110. <tr>
  6111. <th>Status</th>
  6112. <th>Meaning</th>
  6113. <th>Description</th>
  6114. <th>Schema</th>
  6115. </tr>
  6116. </thead>
  6117. <tbody>
  6118. <tr>
  6119. <td>200</td>
  6120. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6121. <td>200 response</td>
  6122. <td>Inline</td>
  6123. </tr>
  6124. </tbody>
  6125. </table>
  6126. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6127. <p>Status Code <strong>200</strong></p>
  6128. <table>
  6129. <thead>
  6130. <tr>
  6131. <th>Name</th>
  6132. <th>Type</th>
  6133. <th>Required</th>
  6134. <th>Restrictions</th>
  6135. <th>Description</th>
  6136. </tr>
  6137. </thead>
  6138. <tbody>
  6139. <tr>
  6140. <td>» _id</td>
  6141. <td>string</td>
  6142. <td>false</td>
  6143. <td>none</td>
  6144. <td>none</td>
  6145. </tr>
  6146. </tbody>
  6147. </table>
  6148. <aside class="warning">
  6149. To perform this operation, you must be authenticated by means of one of the following methods:
  6150. UserSecurity
  6151. </aside>
  6152. <h1 id="wekan-rest-api-cards">Cards</h1>
  6153. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6154. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6155. <blockquote>
  6156. <p>Code samples</p>
  6157. </blockquote>
  6158. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6159. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6160. -H <span class="hljs-string">'Accept: application/json'</span> \
  6161. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6162. </code></pre>
  6163. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</span> HTTP/1.1
  6164. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6165. <span class="undefined"></span></span></code></pre>
  6166. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6167. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6168. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6169. };
  6170. $.ajax({
  6171. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  6172. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6173. <span class="hljs-attr">headers</span>: headers,
  6174. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6175. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6176. }
  6177. })
  6178. </code></pre>
  6179. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6180. <span class="hljs-keyword">const</span> headers = {
  6181. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6182. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6183. };
  6184. fetch(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  6185. {
  6186. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6187. <span class="hljs-attr">headers</span>: headers
  6188. })
  6189. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6190. <span class="hljs-keyword">return</span> res.json();
  6191. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6192. <span class="hljs-built_in">console</span>.log(body);
  6193. });
  6194. </code></pre>
  6195. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6196. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6197. headers = {
  6198. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6199. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6200. }
  6201. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  6202. <span class="hljs-symbol">params:</span> {
  6203. }, <span class="hljs-symbol">headers:</span> headers
  6204. p JSON.parse(result)
  6205. </code></pre>
  6206. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6207. headers = {
  6208. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6209. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6210. }
  6211. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>, params={
  6212. }, headers = headers)
  6213. <span class="hljs-keyword">print</span> r.json()
  6214. </code></pre>
  6215. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}"</span>);
  6216. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6217. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6218. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6219. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6220. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6221. String inputLine;
  6222. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6223. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6224. response.append(inputLine);
  6225. }
  6226. in.close();
  6227. System.out.println(response.toString());
  6228. </code></pre>
  6229. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6230. <span class="hljs-keyword">import</span> (
  6231. <span class="hljs-string">"bytes"</span>
  6232. <span class="hljs-string">"net/http"</span>
  6233. )
  6234. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6235. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6236. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6237. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6238. }
  6239. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6240. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}"</span>, data)
  6241. req.Header = headers
  6242. client := &amp;http.Client{}
  6243. resp, err := client.Do(req)
  6244. <span class="hljs-comment">// ...</span>
  6245. }
  6246. </code></pre>
  6247. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  6248. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  6249. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  6250. <table>
  6251. <thead>
  6252. <tr>
  6253. <th>Name</th>
  6254. <th>In</th>
  6255. <th>Type</th>
  6256. <th>Required</th>
  6257. <th>Description</th>
  6258. </tr>
  6259. </thead>
  6260. <tbody>
  6261. <tr>
  6262. <td>board</td>
  6263. <td>path</td>
  6264. <td>string</td>
  6265. <td>true</td>
  6266. <td>the board ID</td>
  6267. </tr>
  6268. <tr>
  6269. <td>customField</td>
  6270. <td>path</td>
  6271. <td>string</td>
  6272. <td>true</td>
  6273. <td>the list ID</td>
  6274. </tr>
  6275. <tr>
  6276. <td>customFieldValue</td>
  6277. <td>path</td>
  6278. <td>string</td>
  6279. <td>true</td>
  6280. <td>the value to look for</td>
  6281. </tr>
  6282. </tbody>
  6283. </table>
  6284. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6285. <p><strong>board</strong>: the board ID</p>
  6286. <p><strong>customField</strong>: the list ID</p>
  6287. <p><strong>customFieldValue</strong>: the value to look for</p>
  6288. <blockquote>
  6289. <p>Example responses</p>
  6290. </blockquote>
  6291. <blockquote>
  6292. <p>200 Response</p>
  6293. </blockquote>
  6294. <pre class="highlight tab tab-json"><code>[
  6295. {
  6296. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  6297. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  6298. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  6299. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  6300. <span class="hljs-attr">"swinlaneId"</span>: <span class="hljs-string">"string"</span>
  6301. }
  6302. ]
  6303. </code></pre>
  6304. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  6305. <table>
  6306. <thead>
  6307. <tr>
  6308. <th>Status</th>
  6309. <th>Meaning</th>
  6310. <th>Description</th>
  6311. <th>Schema</th>
  6312. </tr>
  6313. </thead>
  6314. <tbody>
  6315. <tr>
  6316. <td>200</td>
  6317. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6318. <td>200 response</td>
  6319. <td>Inline</td>
  6320. </tr>
  6321. </tbody>
  6322. </table>
  6323. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  6324. <p>Status Code <strong>200</strong></p>
  6325. <table>
  6326. <thead>
  6327. <tr>
  6328. <th>Name</th>
  6329. <th>Type</th>
  6330. <th>Required</th>
  6331. <th>Restrictions</th>
  6332. <th>Description</th>
  6333. </tr>
  6334. </thead>
  6335. <tbody>
  6336. <tr>
  6337. <td>» _id</td>
  6338. <td>string</td>
  6339. <td>false</td>
  6340. <td>none</td>
  6341. <td>none</td>
  6342. </tr>
  6343. <tr>
  6344. <td>» title</td>
  6345. <td>string</td>
  6346. <td>false</td>
  6347. <td>none</td>
  6348. <td>none</td>
  6349. </tr>
  6350. <tr>
  6351. <td>» description</td>
  6352. <td>string</td>
  6353. <td>false</td>
  6354. <td>none</td>
  6355. <td>none</td>
  6356. </tr>
  6357. <tr>
  6358. <td>» listId</td>
  6359. <td>string</td>
  6360. <td>false</td>
  6361. <td>none</td>
  6362. <td>none</td>
  6363. </tr>
  6364. <tr>
  6365. <td>» swinlaneId</td>
  6366. <td>string</td>
  6367. <td>false</td>
  6368. <td>none</td>
  6369. <td>none</td>
  6370. </tr>
  6371. </tbody>
  6372. </table>
  6373. <aside class="warning">
  6374. To perform this operation, you must be authenticated by means of one of the following methods:
  6375. UserSecurity
  6376. </aside>
  6377. <h2 id="get_all_cards">get_all_cards</h2>
  6378. <p><a id="opIdget_all_cards"></a></p>
  6379. <blockquote>
  6380. <p>Code samples</p>
  6381. </blockquote>
  6382. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6383. curl -X GET /api/boards/{board}/lists/{list}/cards \
  6384. -H <span class="hljs-string">'Accept: application/json'</span> \
  6385. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6386. </code></pre>
  6387. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> HTTP/1.1
  6388. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6389. <span class="undefined"></span></span></code></pre>
  6390. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6391. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6392. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6393. };
  6394. $.ajax({
  6395. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  6396. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6397. <span class="hljs-attr">headers</span>: headers,
  6398. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6399. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6400. }
  6401. })
  6402. </code></pre>
  6403. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6404. <span class="hljs-keyword">const</span> headers = {
  6405. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6406. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6407. };
  6408. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  6409. {
  6410. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6411. <span class="hljs-attr">headers</span>: headers
  6412. })
  6413. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6414. <span class="hljs-keyword">return</span> res.json();
  6415. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6416. <span class="hljs-built_in">console</span>.log(body);
  6417. });
  6418. </code></pre>
  6419. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6420. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6421. headers = {
  6422. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6423. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6424. }
  6425. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  6426. <span class="hljs-symbol">params:</span> {
  6427. }, <span class="hljs-symbol">headers:</span> headers
  6428. p JSON.parse(result)
  6429. </code></pre>
  6430. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6431. headers = {
  6432. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6433. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6434. }
  6435. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  6436. }, headers = headers)
  6437. <span class="hljs-keyword">print</span> r.json()
  6438. </code></pre>
  6439. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>);
  6440. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6441. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6442. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6443. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6444. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6445. String inputLine;
  6446. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6447. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6448. response.append(inputLine);
  6449. }
  6450. in.close();
  6451. System.out.println(response.toString());
  6452. </code></pre>
  6453. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6454. <span class="hljs-keyword">import</span> (
  6455. <span class="hljs-string">"bytes"</span>
  6456. <span class="hljs-string">"net/http"</span>
  6457. )
  6458. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6459. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6460. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6461. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6462. }
  6463. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6464. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  6465. req.Header = headers
  6466. client := &amp;http.Client{}
  6467. resp, err := client.Do(req)
  6468. <span class="hljs-comment">// ...</span>
  6469. }
  6470. </code></pre>
  6471. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  6472. <p><em>Get all Cards attached to a List</em></p>
  6473. <h3 id="get_all_cards-parameters">Parameters</h3>
  6474. <table>
  6475. <thead>
  6476. <tr>
  6477. <th>Name</th>
  6478. <th>In</th>
  6479. <th>Type</th>
  6480. <th>Required</th>
  6481. <th>Description</th>
  6482. </tr>
  6483. </thead>
  6484. <tbody>
  6485. <tr>
  6486. <td>board</td>
  6487. <td>path</td>
  6488. <td>string</td>
  6489. <td>true</td>
  6490. <td>the board ID</td>
  6491. </tr>
  6492. <tr>
  6493. <td>list</td>
  6494. <td>path</td>
  6495. <td>string</td>
  6496. <td>true</td>
  6497. <td>the list ID</td>
  6498. </tr>
  6499. </tbody>
  6500. </table>
  6501. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6502. <p><strong>board</strong>: the board ID</p>
  6503. <p><strong>list</strong>: the list ID</p>
  6504. <blockquote>
  6505. <p>Example responses</p>
  6506. </blockquote>
  6507. <blockquote>
  6508. <p>200 Response</p>
  6509. </blockquote>
  6510. <pre class="highlight tab tab-json"><code>[
  6511. {
  6512. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  6513. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  6514. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>
  6515. }
  6516. ]
  6517. </code></pre>
  6518. <h3 id="get_all_cards-responses">Responses</h3>
  6519. <table>
  6520. <thead>
  6521. <tr>
  6522. <th>Status</th>
  6523. <th>Meaning</th>
  6524. <th>Description</th>
  6525. <th>Schema</th>
  6526. </tr>
  6527. </thead>
  6528. <tbody>
  6529. <tr>
  6530. <td>200</td>
  6531. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6532. <td>200 response</td>
  6533. <td>Inline</td>
  6534. </tr>
  6535. </tbody>
  6536. </table>
  6537. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  6538. <p>Status Code <strong>200</strong></p>
  6539. <table>
  6540. <thead>
  6541. <tr>
  6542. <th>Name</th>
  6543. <th>Type</th>
  6544. <th>Required</th>
  6545. <th>Restrictions</th>
  6546. <th>Description</th>
  6547. </tr>
  6548. </thead>
  6549. <tbody>
  6550. <tr>
  6551. <td>» _id</td>
  6552. <td>string</td>
  6553. <td>false</td>
  6554. <td>none</td>
  6555. <td>none</td>
  6556. </tr>
  6557. <tr>
  6558. <td>» title</td>
  6559. <td>string</td>
  6560. <td>false</td>
  6561. <td>none</td>
  6562. <td>none</td>
  6563. </tr>
  6564. <tr>
  6565. <td>» description</td>
  6566. <td>string</td>
  6567. <td>false</td>
  6568. <td>none</td>
  6569. <td>none</td>
  6570. </tr>
  6571. </tbody>
  6572. </table>
  6573. <aside class="warning">
  6574. To perform this operation, you must be authenticated by means of one of the following methods:
  6575. UserSecurity
  6576. </aside>
  6577. <h2 id="new_card">new_card</h2>
  6578. <p><a id="opIdnew_card"></a></p>
  6579. <blockquote>
  6580. <p>Code samples</p>
  6581. </blockquote>
  6582. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6583. curl -X POST /api/boards/{board}/lists/{list}/cards \
  6584. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  6585. -H <span class="hljs-string">'Accept: application/json'</span> \
  6586. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6587. </code></pre>
  6588. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> HTTP/1.1
  6589. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6590. Accept: application/json
  6591. </span></code></pre>
  6592. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6593. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6594. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6595. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6596. };
  6597. $.ajax({
  6598. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  6599. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  6600. <span class="hljs-attr">headers</span>: headers,
  6601. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6602. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6603. }
  6604. })
  6605. </code></pre>
  6606. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6607. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  6608. "authorId": "string",
  6609. "members": "string",
  6610. "assignees": "string",
  6611. "title": "string",
  6612. "description": "string",
  6613. "swimlaneId": "string"
  6614. }'</span>;
  6615. <span class="hljs-keyword">const</span> headers = {
  6616. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6617. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6618. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6619. };
  6620. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  6621. {
  6622. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  6623. <span class="hljs-attr">body</span>: inputBody,
  6624. <span class="hljs-attr">headers</span>: headers
  6625. })
  6626. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6627. <span class="hljs-keyword">return</span> res.json();
  6628. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6629. <span class="hljs-built_in">console</span>.log(body);
  6630. });
  6631. </code></pre>
  6632. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6633. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6634. headers = {
  6635. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  6636. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6637. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6638. }
  6639. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  6640. <span class="hljs-symbol">params:</span> {
  6641. }, <span class="hljs-symbol">headers:</span> headers
  6642. p JSON.parse(result)
  6643. </code></pre>
  6644. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6645. headers = {
  6646. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  6647. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6648. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6649. }
  6650. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  6651. }, headers = headers)
  6652. <span class="hljs-keyword">print</span> r.json()
  6653. </code></pre>
  6654. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>);
  6655. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6656. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  6657. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6658. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6659. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6660. String inputLine;
  6661. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6662. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6663. response.append(inputLine);
  6664. }
  6665. in.close();
  6666. System.out.println(response.toString());
  6667. </code></pre>
  6668. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6669. <span class="hljs-keyword">import</span> (
  6670. <span class="hljs-string">"bytes"</span>
  6671. <span class="hljs-string">"net/http"</span>
  6672. )
  6673. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6674. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6675. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6676. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6677. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6678. }
  6679. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6680. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  6681. req.Header = headers
  6682. client := &amp;http.Client{}
  6683. resp, err := client.Do(req)
  6684. <span class="hljs-comment">// ...</span>
  6685. }
  6686. </code></pre>
  6687. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  6688. <p><em>Create a new Card</em></p>
  6689. <blockquote>
  6690. <p>Body parameter</p>
  6691. </blockquote>
  6692. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6693. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  6694. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  6695. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  6696. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  6697. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  6698. </code></pre>
  6699. <h3 id="new_card-parameters">Parameters</h3>
  6700. <table>
  6701. <thead>
  6702. <tr>
  6703. <th>Name</th>
  6704. <th>In</th>
  6705. <th>Type</th>
  6706. <th>Required</th>
  6707. <th>Description</th>
  6708. </tr>
  6709. </thead>
  6710. <tbody>
  6711. <tr>
  6712. <td>board</td>
  6713. <td>path</td>
  6714. <td>string</td>
  6715. <td>true</td>
  6716. <td>the board ID of the new card</td>
  6717. </tr>
  6718. <tr>
  6719. <td>list</td>
  6720. <td>path</td>
  6721. <td>string</td>
  6722. <td>true</td>
  6723. <td>the list ID of the new card</td>
  6724. </tr>
  6725. <tr>
  6726. <td>body</td>
  6727. <td>body</td>
  6728. <td>object</td>
  6729. <td>false</td>
  6730. <td>none</td>
  6731. </tr>
  6732. <tr>
  6733. <td>» authorId</td>
  6734. <td>body</td>
  6735. <td>string</td>
  6736. <td>true</td>
  6737. <td>the authorId value</td>
  6738. </tr>
  6739. <tr>
  6740. <td>» members</td>
  6741. <td>body</td>
  6742. <td>string</td>
  6743. <td>false</td>
  6744. <td>the member IDs list of the new card</td>
  6745. </tr>
  6746. <tr>
  6747. <td>» assignees</td>
  6748. <td>body</td>
  6749. <td>string</td>
  6750. <td>false</td>
  6751. <td>the array of maximum one ID of assignee of the new card</td>
  6752. </tr>
  6753. <tr>
  6754. <td>» title</td>
  6755. <td>body</td>
  6756. <td>string</td>
  6757. <td>true</td>
  6758. <td>the title of the new card</td>
  6759. </tr>
  6760. <tr>
  6761. <td>» description</td>
  6762. <td>body</td>
  6763. <td>string</td>
  6764. <td>true</td>
  6765. <td>the description of the new card</td>
  6766. </tr>
  6767. <tr>
  6768. <td>» swimlaneId</td>
  6769. <td>body</td>
  6770. <td>string</td>
  6771. <td>true</td>
  6772. <td>the swimlane ID of the new card</td>
  6773. </tr>
  6774. </tbody>
  6775. </table>
  6776. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6777. <p><strong>board</strong>: the board ID of the new card</p>
  6778. <p><strong>list</strong>: the list ID of the new card</p>
  6779. <blockquote>
  6780. <p>Example responses</p>
  6781. </blockquote>
  6782. <blockquote>
  6783. <p>200 Response</p>
  6784. </blockquote>
  6785. <pre class="highlight tab tab-json"><code>{
  6786. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6787. }
  6788. </code></pre>
  6789. <h3 id="new_card-responses">Responses</h3>
  6790. <table>
  6791. <thead>
  6792. <tr>
  6793. <th>Status</th>
  6794. <th>Meaning</th>
  6795. <th>Description</th>
  6796. <th>Schema</th>
  6797. </tr>
  6798. </thead>
  6799. <tbody>
  6800. <tr>
  6801. <td>200</td>
  6802. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6803. <td>200 response</td>
  6804. <td>Inline</td>
  6805. </tr>
  6806. </tbody>
  6807. </table>
  6808. <h3 id="new_card-responseschema">Response Schema</h3>
  6809. <p>Status Code <strong>200</strong></p>
  6810. <table>
  6811. <thead>
  6812. <tr>
  6813. <th>Name</th>
  6814. <th>Type</th>
  6815. <th>Required</th>
  6816. <th>Restrictions</th>
  6817. <th>Description</th>
  6818. </tr>
  6819. </thead>
  6820. <tbody>
  6821. <tr>
  6822. <td>» _id</td>
  6823. <td>string</td>
  6824. <td>false</td>
  6825. <td>none</td>
  6826. <td>none</td>
  6827. </tr>
  6828. </tbody>
  6829. </table>
  6830. <aside class="warning">
  6831. To perform this operation, you must be authenticated by means of one of the following methods:
  6832. UserSecurity
  6833. </aside>
  6834. <h2 id="get_card">get_card</h2>
  6835. <p><a id="opIdget_card"></a></p>
  6836. <blockquote>
  6837. <p>Code samples</p>
  6838. </blockquote>
  6839. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6840. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  6841. -H <span class="hljs-string">'Accept: application/json'</span> \
  6842. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6843. </code></pre>
  6844. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> HTTP/1.1
  6845. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6846. <span class="undefined"></span></span></code></pre>
  6847. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6848. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6849. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6850. };
  6851. $.ajax({
  6852. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6853. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6854. <span class="hljs-attr">headers</span>: headers,
  6855. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6856. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6857. }
  6858. })
  6859. </code></pre>
  6860. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6861. <span class="hljs-keyword">const</span> headers = {
  6862. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6863. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6864. };
  6865. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6866. {
  6867. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6868. <span class="hljs-attr">headers</span>: headers
  6869. })
  6870. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6871. <span class="hljs-keyword">return</span> res.json();
  6872. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6873. <span class="hljs-built_in">console</span>.log(body);
  6874. });
  6875. </code></pre>
  6876. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6877. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6878. headers = {
  6879. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6880. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6881. }
  6882. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6883. <span class="hljs-symbol">params:</span> {
  6884. }, <span class="hljs-symbol">headers:</span> headers
  6885. p JSON.parse(result)
  6886. </code></pre>
  6887. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6888. headers = {
  6889. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6890. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6891. }
  6892. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  6893. }, headers = headers)
  6894. <span class="hljs-keyword">print</span> r.json()
  6895. </code></pre>
  6896. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>);
  6897. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6898. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6899. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6900. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6901. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6902. String inputLine;
  6903. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6904. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6905. response.append(inputLine);
  6906. }
  6907. in.close();
  6908. System.out.println(response.toString());
  6909. </code></pre>
  6910. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6911. <span class="hljs-keyword">import</span> (
  6912. <span class="hljs-string">"bytes"</span>
  6913. <span class="hljs-string">"net/http"</span>
  6914. )
  6915. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6916. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6917. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6918. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6919. }
  6920. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6921. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  6922. req.Header = headers
  6923. client := &amp;http.Client{}
  6924. resp, err := client.Do(req)
  6925. <span class="hljs-comment">// ...</span>
  6926. }
  6927. </code></pre>
  6928. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  6929. <p><em>Get a Card</em></p>
  6930. <h3 id="get_card-parameters">Parameters</h3>
  6931. <table>
  6932. <thead>
  6933. <tr>
  6934. <th>Name</th>
  6935. <th>In</th>
  6936. <th>Type</th>
  6937. <th>Required</th>
  6938. <th>Description</th>
  6939. </tr>
  6940. </thead>
  6941. <tbody>
  6942. <tr>
  6943. <td>board</td>
  6944. <td>path</td>
  6945. <td>string</td>
  6946. <td>true</td>
  6947. <td>the board ID</td>
  6948. </tr>
  6949. <tr>
  6950. <td>list</td>
  6951. <td>path</td>
  6952. <td>string</td>
  6953. <td>true</td>
  6954. <td>the list ID of the card</td>
  6955. </tr>
  6956. <tr>
  6957. <td>card</td>
  6958. <td>path</td>
  6959. <td>string</td>
  6960. <td>true</td>
  6961. <td>the card ID</td>
  6962. </tr>
  6963. </tbody>
  6964. </table>
  6965. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6966. <p><strong>board</strong>: the board ID</p>
  6967. <p><strong>list</strong>: the list ID of the card</p>
  6968. <p><strong>card</strong>: the card ID</p>
  6969. <blockquote>
  6970. <p>Example responses</p>
  6971. </blockquote>
  6972. <blockquote>
  6973. <p>200 Response</p>
  6974. </blockquote>
  6975. <pre class="highlight tab tab-json"><code>{
  6976. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  6977. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  6978. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  6979. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  6980. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  6981. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  6982. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  6983. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  6984. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  6985. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  6986. <span class="hljs-attr">"customFields"</span>: [
  6987. {}
  6988. ],
  6989. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  6990. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  6991. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  6992. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  6993. <span class="hljs-attr">"labelIds"</span>: [
  6994. <span class="hljs-string">"string"</span>
  6995. ],
  6996. <span class="hljs-attr">"members"</span>: [
  6997. <span class="hljs-string">"string"</span>
  6998. ],
  6999. <span class="hljs-attr">"assignees"</span>: [
  7000. <span class="hljs-string">"string"</span>
  7001. ],
  7002. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  7003. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  7004. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  7005. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  7006. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  7007. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  7008. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  7009. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  7010. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  7011. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  7012. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  7013. <span class="hljs-attr">"vote"</span>: {
  7014. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  7015. <span class="hljs-attr">"positive"</span>: [
  7016. <span class="hljs-string">"string"</span>
  7017. ],
  7018. <span class="hljs-attr">"negative"</span>: [
  7019. <span class="hljs-string">"string"</span>
  7020. ],
  7021. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  7022. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  7023. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  7024. }
  7025. }
  7026. </code></pre>
  7027. <h3 id="get_card-responses">Responses</h3>
  7028. <table>
  7029. <thead>
  7030. <tr>
  7031. <th>Status</th>
  7032. <th>Meaning</th>
  7033. <th>Description</th>
  7034. <th>Schema</th>
  7035. </tr>
  7036. </thead>
  7037. <tbody>
  7038. <tr>
  7039. <td>200</td>
  7040. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7041. <td>200 response</td>
  7042. <td><a href="#schemacards">Cards</a></td>
  7043. </tr>
  7044. </tbody>
  7045. </table>
  7046. <aside class="warning">
  7047. To perform this operation, you must be authenticated by means of one of the following methods:
  7048. UserSecurity
  7049. </aside>
  7050. <h2 id="edit_card">edit_card</h2>
  7051. <p><a id="opIdedit_card"></a></p>
  7052. <blockquote>
  7053. <p>Code samples</p>
  7054. </blockquote>
  7055. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7056. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  7057. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7058. -H <span class="hljs-string">'Accept: application/json'</span> \
  7059. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7060. </code></pre>
  7061. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> HTTP/1.1
  7062. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7063. Accept: application/json
  7064. </span></code></pre>
  7065. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7066. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7067. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7068. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7069. };
  7070. $.ajax({
  7071. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7072. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  7073. <span class="hljs-attr">headers</span>: headers,
  7074. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7075. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7076. }
  7077. })
  7078. </code></pre>
  7079. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7080. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7081. "title": "string",
  7082. "parentId": "string",
  7083. "description": "string",
  7084. "color": "string",
  7085. "vote": {},
  7086. "labelIds": "string",
  7087. "requestedBy": "string",
  7088. "assignedBy": "string",
  7089. "receivedAt": "string",
  7090. "startAt": "string",
  7091. "dueAt": "string",
  7092. "endAt": "string",
  7093. "spentTime": "string",
  7094. "isOverTime": true,
  7095. "customFields": "string",
  7096. "members": "string",
  7097. "assignees": "string",
  7098. "swimlaneId": "string",
  7099. "listId": "string",
  7100. "authorId": "string"
  7101. }'</span>;
  7102. <span class="hljs-keyword">const</span> headers = {
  7103. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7104. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7105. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7106. };
  7107. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7108. {
  7109. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  7110. <span class="hljs-attr">body</span>: inputBody,
  7111. <span class="hljs-attr">headers</span>: headers
  7112. })
  7113. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7114. <span class="hljs-keyword">return</span> res.json();
  7115. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7116. <span class="hljs-built_in">console</span>.log(body);
  7117. });
  7118. </code></pre>
  7119. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7120. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7121. headers = {
  7122. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7123. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7124. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7125. }
  7126. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7127. <span class="hljs-symbol">params:</span> {
  7128. }, <span class="hljs-symbol">headers:</span> headers
  7129. p JSON.parse(result)
  7130. </code></pre>
  7131. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7132. headers = {
  7133. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7134. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7135. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7136. }
  7137. r = requests.put(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  7138. }, headers = headers)
  7139. <span class="hljs-keyword">print</span> r.json()
  7140. </code></pre>
  7141. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>);
  7142. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7143. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  7144. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7145. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7146. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7147. String inputLine;
  7148. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7149. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7150. response.append(inputLine);
  7151. }
  7152. in.close();
  7153. System.out.println(response.toString());
  7154. </code></pre>
  7155. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7156. <span class="hljs-keyword">import</span> (
  7157. <span class="hljs-string">"bytes"</span>
  7158. <span class="hljs-string">"net/http"</span>
  7159. )
  7160. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7161. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7162. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7163. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7164. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7165. }
  7166. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7167. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  7168. req.Header = headers
  7169. client := &amp;http.Client{}
  7170. resp, err := client.Do(req)
  7171. <span class="hljs-comment">// ...</span>
  7172. }
  7173. </code></pre>
  7174. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7175. <p><em>Edit Fields in a Card</em></p>
  7176. <p>Edit a card</p>
  7177. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  7178. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  7179. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  7180. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  7181. <code>indigo</code>:</p>
  7182. <img src="/card-colors.png" alt="Wekan card colors" />
  7183. <p>Note: setting the color to white has the same effect than removing it.</p>
  7184. <blockquote>
  7185. <p>Body parameter</p>
  7186. </blockquote>
  7187. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7188. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  7189. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7190. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  7191. <span class="hljs-attr">vote:</span> <span class="hljs-string">{}</span>
  7192. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  7193. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  7194. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  7195. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  7196. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  7197. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  7198. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  7199. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  7200. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  7201. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  7202. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7203. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7204. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7205. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  7206. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7207. </code></pre>
  7208. <h3 id="edit_card-parameters">Parameters</h3>
  7209. <table>
  7210. <thead>
  7211. <tr>
  7212. <th>Name</th>
  7213. <th>In</th>
  7214. <th>Type</th>
  7215. <th>Required</th>
  7216. <th>Description</th>
  7217. </tr>
  7218. </thead>
  7219. <tbody>
  7220. <tr>
  7221. <td>board</td>
  7222. <td>path</td>
  7223. <td>string</td>
  7224. <td>true</td>
  7225. <td>the board ID of the card</td>
  7226. </tr>
  7227. <tr>
  7228. <td>list</td>
  7229. <td>path</td>
  7230. <td>string</td>
  7231. <td>true</td>
  7232. <td>the list ID of the card</td>
  7233. </tr>
  7234. <tr>
  7235. <td>card</td>
  7236. <td>path</td>
  7237. <td>string</td>
  7238. <td>true</td>
  7239. <td>the ID of the card</td>
  7240. </tr>
  7241. <tr>
  7242. <td>body</td>
  7243. <td>body</td>
  7244. <td>object</td>
  7245. <td>false</td>
  7246. <td>none</td>
  7247. </tr>
  7248. <tr>
  7249. <td>» title</td>
  7250. <td>body</td>
  7251. <td>string</td>
  7252. <td>false</td>
  7253. <td>the new title of the card</td>
  7254. </tr>
  7255. <tr>
  7256. <td>» parentId</td>
  7257. <td>body</td>
  7258. <td>string</td>
  7259. <td>false</td>
  7260. <td>change the parent of the card</td>
  7261. </tr>
  7262. <tr>
  7263. <td>» description</td>
  7264. <td>body</td>
  7265. <td>string</td>
  7266. <td>false</td>
  7267. <td>the new description of the card</td>
  7268. </tr>
  7269. <tr>
  7270. <td>» color</td>
  7271. <td>body</td>
  7272. <td>string</td>
  7273. <td>false</td>
  7274. <td>the new color of the card</td>
  7275. </tr>
  7276. <tr>
  7277. <td>» vote</td>
  7278. <td>body</td>
  7279. <td>object</td>
  7280. <td>false</td>
  7281. <td>the vote object</td>
  7282. </tr>
  7283. <tr>
  7284. <td>» labelIds</td>
  7285. <td>body</td>
  7286. <td>string</td>
  7287. <td>false</td>
  7288. <td>the new list of label IDs attached to the card</td>
  7289. </tr>
  7290. <tr>
  7291. <td>» requestedBy</td>
  7292. <td>body</td>
  7293. <td>string</td>
  7294. <td>false</td>
  7295. <td>the new requestedBy field of the card</td>
  7296. </tr>
  7297. <tr>
  7298. <td>» assignedBy</td>
  7299. <td>body</td>
  7300. <td>string</td>
  7301. <td>false</td>
  7302. <td>the new assignedBy field of the card</td>
  7303. </tr>
  7304. <tr>
  7305. <td>» receivedAt</td>
  7306. <td>body</td>
  7307. <td>string</td>
  7308. <td>false</td>
  7309. <td>the new receivedAt field of the card</td>
  7310. </tr>
  7311. <tr>
  7312. <td>» startAt</td>
  7313. <td>body</td>
  7314. <td>string</td>
  7315. <td>false</td>
  7316. <td>the new startAt field of the card</td>
  7317. </tr>
  7318. <tr>
  7319. <td>» dueAt</td>
  7320. <td>body</td>
  7321. <td>string</td>
  7322. <td>false</td>
  7323. <td>the new dueAt field of the card</td>
  7324. </tr>
  7325. <tr>
  7326. <td>» endAt</td>
  7327. <td>body</td>
  7328. <td>string</td>
  7329. <td>false</td>
  7330. <td>the new endAt field of the card</td>
  7331. </tr>
  7332. <tr>
  7333. <td>» spentTime</td>
  7334. <td>body</td>
  7335. <td>string</td>
  7336. <td>false</td>
  7337. <td>the new spentTime field of the card</td>
  7338. </tr>
  7339. <tr>
  7340. <td>» isOverTime</td>
  7341. <td>body</td>
  7342. <td>boolean</td>
  7343. <td>false</td>
  7344. <td>the new isOverTime field of the card</td>
  7345. </tr>
  7346. <tr>
  7347. <td>» customFields</td>
  7348. <td>body</td>
  7349. <td>string</td>
  7350. <td>false</td>
  7351. <td>the new customFields value of the card</td>
  7352. </tr>
  7353. <tr>
  7354. <td>» members</td>
  7355. <td>body</td>
  7356. <td>string</td>
  7357. <td>false</td>
  7358. <td>the new list of member IDs attached to the card</td>
  7359. </tr>
  7360. <tr>
  7361. <td>» assignees</td>
  7362. <td>body</td>
  7363. <td>string</td>
  7364. <td>false</td>
  7365. <td>the array of maximum one ID of assignee attached to the card</td>
  7366. </tr>
  7367. <tr>
  7368. <td>» swimlaneId</td>
  7369. <td>body</td>
  7370. <td>string</td>
  7371. <td>false</td>
  7372. <td>the new swimlane ID of the card</td>
  7373. </tr>
  7374. <tr>
  7375. <td>» listId</td>
  7376. <td>body</td>
  7377. <td>string</td>
  7378. <td>false</td>
  7379. <td>the new list ID of the card (move operation)</td>
  7380. </tr>
  7381. <tr>
  7382. <td>» authorId</td>
  7383. <td>body</td>
  7384. <td>string</td>
  7385. <td>false</td>
  7386. <td>change the owner of the card</td>
  7387. </tr>
  7388. </tbody>
  7389. </table>
  7390. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7391. <p><strong>board</strong>: the board ID of the card</p>
  7392. <p><strong>list</strong>: the list ID of the card</p>
  7393. <p><strong>card</strong>: the ID of the card</p>
  7394. <blockquote>
  7395. <p>Example responses</p>
  7396. </blockquote>
  7397. <blockquote>
  7398. <p>200 Response</p>
  7399. </blockquote>
  7400. <pre class="highlight tab tab-json"><code>{
  7401. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  7402. }
  7403. </code></pre>
  7404. <h3 id="edit_card-responses">Responses</h3>
  7405. <table>
  7406. <thead>
  7407. <tr>
  7408. <th>Status</th>
  7409. <th>Meaning</th>
  7410. <th>Description</th>
  7411. <th>Schema</th>
  7412. </tr>
  7413. </thead>
  7414. <tbody>
  7415. <tr>
  7416. <td>200</td>
  7417. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7418. <td>200 response</td>
  7419. <td>Inline</td>
  7420. </tr>
  7421. </tbody>
  7422. </table>
  7423. <h3 id="edit_card-responseschema">Response Schema</h3>
  7424. <p>Status Code <strong>200</strong></p>
  7425. <table>
  7426. <thead>
  7427. <tr>
  7428. <th>Name</th>
  7429. <th>Type</th>
  7430. <th>Required</th>
  7431. <th>Restrictions</th>
  7432. <th>Description</th>
  7433. </tr>
  7434. </thead>
  7435. <tbody>
  7436. <tr>
  7437. <td>» _id</td>
  7438. <td>string</td>
  7439. <td>false</td>
  7440. <td>none</td>
  7441. <td>none</td>
  7442. </tr>
  7443. </tbody>
  7444. </table>
  7445. <aside class="warning">
  7446. To perform this operation, you must be authenticated by means of one of the following methods:
  7447. UserSecurity
  7448. </aside>
  7449. <h2 id="delete_card">delete_card</h2>
  7450. <p><a id="opIddelete_card"></a></p>
  7451. <blockquote>
  7452. <p>Code samples</p>
  7453. </blockquote>
  7454. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7455. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  7456. -H <span class="hljs-string">'Accept: application/json'</span> \
  7457. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7458. </code></pre>
  7459. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> HTTP/1.1
  7460. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7461. <span class="undefined"></span></span></code></pre>
  7462. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7463. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7464. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7465. };
  7466. $.ajax({
  7467. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7468. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  7469. <span class="hljs-attr">headers</span>: headers,
  7470. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7471. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7472. }
  7473. })
  7474. </code></pre>
  7475. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7476. <span class="hljs-keyword">const</span> headers = {
  7477. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7478. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7479. };
  7480. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7481. {
  7482. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  7483. <span class="hljs-attr">headers</span>: headers
  7484. })
  7485. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7486. <span class="hljs-keyword">return</span> res.json();
  7487. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7488. <span class="hljs-built_in">console</span>.log(body);
  7489. });
  7490. </code></pre>
  7491. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7492. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7493. headers = {
  7494. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7495. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7496. }
  7497. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7498. <span class="hljs-symbol">params:</span> {
  7499. }, <span class="hljs-symbol">headers:</span> headers
  7500. p JSON.parse(result)
  7501. </code></pre>
  7502. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7503. headers = {
  7504. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7505. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7506. }
  7507. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  7508. }, headers = headers)
  7509. <span class="hljs-keyword">print</span> r.json()
  7510. </code></pre>
  7511. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>);
  7512. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7513. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  7514. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7515. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7516. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7517. String inputLine;
  7518. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7519. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7520. response.append(inputLine);
  7521. }
  7522. in.close();
  7523. System.out.println(response.toString());
  7524. </code></pre>
  7525. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7526. <span class="hljs-keyword">import</span> (
  7527. <span class="hljs-string">"bytes"</span>
  7528. <span class="hljs-string">"net/http"</span>
  7529. )
  7530. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7531. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7532. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7533. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7534. }
  7535. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7536. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  7537. req.Header = headers
  7538. client := &amp;http.Client{}
  7539. resp, err := client.Do(req)
  7540. <span class="hljs-comment">// ...</span>
  7541. }
  7542. </code></pre>
  7543. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7544. <p><em>Delete a card from a board</em></p>
  7545. <p>This operation <strong>deletes</strong> a card, and therefore the card
  7546. is not put in the recycle bin.</p>
  7547. <h3 id="delete_card-parameters">Parameters</h3>
  7548. <table>
  7549. <thead>
  7550. <tr>
  7551. <th>Name</th>
  7552. <th>In</th>
  7553. <th>Type</th>
  7554. <th>Required</th>
  7555. <th>Description</th>
  7556. </tr>
  7557. </thead>
  7558. <tbody>
  7559. <tr>
  7560. <td>board</td>
  7561. <td>path</td>
  7562. <td>string</td>
  7563. <td>true</td>
  7564. <td>the board ID of the card</td>
  7565. </tr>
  7566. <tr>
  7567. <td>list</td>
  7568. <td>path</td>
  7569. <td>string</td>
  7570. <td>true</td>
  7571. <td>the list ID of the card</td>
  7572. </tr>
  7573. <tr>
  7574. <td>card</td>
  7575. <td>path</td>
  7576. <td>string</td>
  7577. <td>true</td>
  7578. <td>the ID of the card</td>
  7579. </tr>
  7580. </tbody>
  7581. </table>
  7582. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7583. <p><strong>board</strong>: the board ID of the card</p>
  7584. <p><strong>list</strong>: the list ID of the card</p>
  7585. <p><strong>card</strong>: the ID of the card</p>
  7586. <blockquote>
  7587. <p>Example responses</p>
  7588. </blockquote>
  7589. <blockquote>
  7590. <p>200 Response</p>
  7591. </blockquote>
  7592. <pre class="highlight tab tab-json"><code>{
  7593. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  7594. }
  7595. </code></pre>
  7596. <h3 id="delete_card-responses">Responses</h3>
  7597. <table>
  7598. <thead>
  7599. <tr>
  7600. <th>Status</th>
  7601. <th>Meaning</th>
  7602. <th>Description</th>
  7603. <th>Schema</th>
  7604. </tr>
  7605. </thead>
  7606. <tbody>
  7607. <tr>
  7608. <td>200</td>
  7609. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7610. <td>200 response</td>
  7611. <td>Inline</td>
  7612. </tr>
  7613. </tbody>
  7614. </table>
  7615. <h3 id="delete_card-responseschema">Response Schema</h3>
  7616. <p>Status Code <strong>200</strong></p>
  7617. <table>
  7618. <thead>
  7619. <tr>
  7620. <th>Name</th>
  7621. <th>Type</th>
  7622. <th>Required</th>
  7623. <th>Restrictions</th>
  7624. <th>Description</th>
  7625. </tr>
  7626. </thead>
  7627. <tbody>
  7628. <tr>
  7629. <td>» _id</td>
  7630. <td>string</td>
  7631. <td>false</td>
  7632. <td>none</td>
  7633. <td>none</td>
  7634. </tr>
  7635. </tbody>
  7636. </table>
  7637. <aside class="warning">
  7638. To perform this operation, you must be authenticated by means of one of the following methods:
  7639. UserSecurity
  7640. </aside>
  7641. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  7642. <p><a id="opIdget_swimlane_cards"></a></p>
  7643. <blockquote>
  7644. <p>Code samples</p>
  7645. </blockquote>
  7646. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7647. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  7648. -H <span class="hljs-string">'Accept: application/json'</span> \
  7649. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7650. </code></pre>
  7651. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}/cards</span> HTTP/1.1
  7652. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7653. <span class="undefined"></span></span></code></pre>
  7654. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7655. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7656. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7657. };
  7658. $.ajax({
  7659. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  7660. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7661. <span class="hljs-attr">headers</span>: headers,
  7662. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7663. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7664. }
  7665. })
  7666. </code></pre>
  7667. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7668. <span class="hljs-keyword">const</span> headers = {
  7669. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7670. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7671. };
  7672. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  7673. {
  7674. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7675. <span class="hljs-attr">headers</span>: headers
  7676. })
  7677. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7678. <span class="hljs-keyword">return</span> res.json();
  7679. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7680. <span class="hljs-built_in">console</span>.log(body);
  7681. });
  7682. </code></pre>
  7683. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7684. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7685. headers = {
  7686. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7687. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7688. }
  7689. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  7690. <span class="hljs-symbol">params:</span> {
  7691. }, <span class="hljs-symbol">headers:</span> headers
  7692. p JSON.parse(result)
  7693. </code></pre>
  7694. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7695. headers = {
  7696. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7697. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7698. }
  7699. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>, params={
  7700. }, headers = headers)
  7701. <span class="hljs-keyword">print</span> r.json()
  7702. </code></pre>
  7703. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}/cards"</span>);
  7704. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7705. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7706. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7707. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7708. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7709. String inputLine;
  7710. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7711. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7712. response.append(inputLine);
  7713. }
  7714. in.close();
  7715. System.out.println(response.toString());
  7716. </code></pre>
  7717. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7718. <span class="hljs-keyword">import</span> (
  7719. <span class="hljs-string">"bytes"</span>
  7720. <span class="hljs-string">"net/http"</span>
  7721. )
  7722. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7723. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7724. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7725. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7726. }
  7727. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7728. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}/cards"</span>, data)
  7729. req.Header = headers
  7730. client := &amp;http.Client{}
  7731. resp, err := client.Do(req)
  7732. <span class="hljs-comment">// ...</span>
  7733. }
  7734. </code></pre>
  7735. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  7736. <p><em>get all cards attached to a swimlane</em></p>
  7737. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  7738. <table>
  7739. <thead>
  7740. <tr>
  7741. <th>Name</th>
  7742. <th>In</th>
  7743. <th>Type</th>
  7744. <th>Required</th>
  7745. <th>Description</th>
  7746. </tr>
  7747. </thead>
  7748. <tbody>
  7749. <tr>
  7750. <td>board</td>
  7751. <td>path</td>
  7752. <td>string</td>
  7753. <td>true</td>
  7754. <td>the board ID</td>
  7755. </tr>
  7756. <tr>
  7757. <td>swimlane</td>
  7758. <td>path</td>
  7759. <td>string</td>
  7760. <td>true</td>
  7761. <td>the swimlane ID</td>
  7762. </tr>
  7763. </tbody>
  7764. </table>
  7765. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7766. <p><strong>board</strong>: the board ID</p>
  7767. <p><strong>swimlane</strong>: the swimlane ID</p>
  7768. <blockquote>
  7769. <p>Example responses</p>
  7770. </blockquote>
  7771. <blockquote>
  7772. <p>200 Response</p>
  7773. </blockquote>
  7774. <pre class="highlight tab tab-json"><code>[
  7775. {
  7776. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7777. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7778. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  7779. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>
  7780. }
  7781. ]
  7782. </code></pre>
  7783. <h3 id="get_swimlane_cards-responses">Responses</h3>
  7784. <table>
  7785. <thead>
  7786. <tr>
  7787. <th>Status</th>
  7788. <th>Meaning</th>
  7789. <th>Description</th>
  7790. <th>Schema</th>
  7791. </tr>
  7792. </thead>
  7793. <tbody>
  7794. <tr>
  7795. <td>200</td>
  7796. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7797. <td>200 response</td>
  7798. <td>Inline</td>
  7799. </tr>
  7800. </tbody>
  7801. </table>
  7802. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  7803. <p>Status Code <strong>200</strong></p>
  7804. <table>
  7805. <thead>
  7806. <tr>
  7807. <th>Name</th>
  7808. <th>Type</th>
  7809. <th>Required</th>
  7810. <th>Restrictions</th>
  7811. <th>Description</th>
  7812. </tr>
  7813. </thead>
  7814. <tbody>
  7815. <tr>
  7816. <td>» _id</td>
  7817. <td>string</td>
  7818. <td>false</td>
  7819. <td>none</td>
  7820. <td>none</td>
  7821. </tr>
  7822. <tr>
  7823. <td>» title</td>
  7824. <td>string</td>
  7825. <td>false</td>
  7826. <td>none</td>
  7827. <td>none</td>
  7828. </tr>
  7829. <tr>
  7830. <td>» description</td>
  7831. <td>string</td>
  7832. <td>false</td>
  7833. <td>none</td>
  7834. <td>none</td>
  7835. </tr>
  7836. <tr>
  7837. <td>» listId</td>
  7838. <td>string</td>
  7839. <td>false</td>
  7840. <td>none</td>
  7841. <td>none</td>
  7842. </tr>
  7843. </tbody>
  7844. </table>
  7845. <aside class="warning">
  7846. To perform this operation, you must be authenticated by means of one of the following methods:
  7847. UserSecurity
  7848. </aside>
  7849. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  7850. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  7851. <p><a id="opIdget_all_custom_fields"></a></p>
  7852. <blockquote>
  7853. <p>Code samples</p>
  7854. </blockquote>
  7855. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7856. curl -X GET /api/boards/{board}/custom-fields \
  7857. -H <span class="hljs-string">'Accept: application/json'</span> \
  7858. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7859. </code></pre>
  7860. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> HTTP/1.1
  7861. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7862. <span class="undefined"></span></span></code></pre>
  7863. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7864. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7865. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7866. };
  7867. $.ajax({
  7868. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7869. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7870. <span class="hljs-attr">headers</span>: headers,
  7871. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7872. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7873. }
  7874. })
  7875. </code></pre>
  7876. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7877. <span class="hljs-keyword">const</span> headers = {
  7878. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7879. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7880. };
  7881. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7882. {
  7883. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7884. <span class="hljs-attr">headers</span>: headers
  7885. })
  7886. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7887. <span class="hljs-keyword">return</span> res.json();
  7888. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7889. <span class="hljs-built_in">console</span>.log(body);
  7890. });
  7891. </code></pre>
  7892. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7893. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7894. headers = {
  7895. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7896. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7897. }
  7898. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7899. <span class="hljs-symbol">params:</span> {
  7900. }, <span class="hljs-symbol">headers:</span> headers
  7901. p JSON.parse(result)
  7902. </code></pre>
  7903. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7904. headers = {
  7905. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7906. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7907. }
  7908. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  7909. }, headers = headers)
  7910. <span class="hljs-keyword">print</span> r.json()
  7911. </code></pre>
  7912. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields"</span>);
  7913. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7914. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7915. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7916. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7917. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7918. String inputLine;
  7919. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7920. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7921. response.append(inputLine);
  7922. }
  7923. in.close();
  7924. System.out.println(response.toString());
  7925. </code></pre>
  7926. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7927. <span class="hljs-keyword">import</span> (
  7928. <span class="hljs-string">"bytes"</span>
  7929. <span class="hljs-string">"net/http"</span>
  7930. )
  7931. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7932. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7933. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7934. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7935. }
  7936. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7937. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  7938. req.Header = headers
  7939. client := &amp;http.Client{}
  7940. resp, err := client.Do(req)
  7941. <span class="hljs-comment">// ...</span>
  7942. }
  7943. </code></pre>
  7944. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  7945. <p><em>Get the list of Custom Fields attached to a board</em></p>
  7946. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  7947. <table>
  7948. <thead>
  7949. <tr>
  7950. <th>Name</th>
  7951. <th>In</th>
  7952. <th>Type</th>
  7953. <th>Required</th>
  7954. <th>Description</th>
  7955. </tr>
  7956. </thead>
  7957. <tbody>
  7958. <tr>
  7959. <td>board</td>
  7960. <td>path</td>
  7961. <td>string</td>
  7962. <td>true</td>
  7963. <td>the board value</td>
  7964. </tr>
  7965. </tbody>
  7966. </table>
  7967. <blockquote>
  7968. <p>Example responses</p>
  7969. </blockquote>
  7970. <blockquote>
  7971. <p>200 Response</p>
  7972. </blockquote>
  7973. <pre class="highlight tab tab-json"><code>[
  7974. {
  7975. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7976. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  7977. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  7978. }
  7979. ]
  7980. </code></pre>
  7981. <h3 id="get_all_custom_fields-responses">Responses</h3>
  7982. <table>
  7983. <thead>
  7984. <tr>
  7985. <th>Status</th>
  7986. <th>Meaning</th>
  7987. <th>Description</th>
  7988. <th>Schema</th>
  7989. </tr>
  7990. </thead>
  7991. <tbody>
  7992. <tr>
  7993. <td>200</td>
  7994. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7995. <td>200 response</td>
  7996. <td>Inline</td>
  7997. </tr>
  7998. </tbody>
  7999. </table>
  8000. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  8001. <p>Status Code <strong>200</strong></p>
  8002. <table>
  8003. <thead>
  8004. <tr>
  8005. <th>Name</th>
  8006. <th>Type</th>
  8007. <th>Required</th>
  8008. <th>Restrictions</th>
  8009. <th>Description</th>
  8010. </tr>
  8011. </thead>
  8012. <tbody>
  8013. <tr>
  8014. <td>» _id</td>
  8015. <td>string</td>
  8016. <td>false</td>
  8017. <td>none</td>
  8018. <td>none</td>
  8019. </tr>
  8020. <tr>
  8021. <td>» name</td>
  8022. <td>string</td>
  8023. <td>false</td>
  8024. <td>none</td>
  8025. <td>none</td>
  8026. </tr>
  8027. <tr>
  8028. <td>» type</td>
  8029. <td>string</td>
  8030. <td>false</td>
  8031. <td>none</td>
  8032. <td>none</td>
  8033. </tr>
  8034. </tbody>
  8035. </table>
  8036. <aside class="warning">
  8037. To perform this operation, you must be authenticated by means of one of the following methods:
  8038. UserSecurity
  8039. </aside>
  8040. <h2 id="new_custom_field">new_custom_field</h2>
  8041. <p><a id="opIdnew_custom_field"></a></p>
  8042. <blockquote>
  8043. <p>Code samples</p>
  8044. </blockquote>
  8045. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8046. curl -X POST /api/boards/{board}/custom-fields \
  8047. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8048. -H <span class="hljs-string">'Accept: application/json'</span> \
  8049. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8050. </code></pre>
  8051. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> HTTP/1.1
  8052. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8053. Accept: application/json
  8054. </span></code></pre>
  8055. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8056. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8057. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8058. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8059. };
  8060. $.ajax({
  8061. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  8062. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  8063. <span class="hljs-attr">headers</span>: headers,
  8064. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8065. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8066. }
  8067. })
  8068. </code></pre>
  8069. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8070. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8071. "name": "string",
  8072. "type": "string",
  8073. "settings": "string",
  8074. "showOnCard": true,
  8075. "automaticallyOnCard": true,
  8076. "showLabelOnMiniCard": true,
  8077. "authorId": "string"
  8078. }'</span>;
  8079. <span class="hljs-keyword">const</span> headers = {
  8080. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8081. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8082. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8083. };
  8084. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  8085. {
  8086. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  8087. <span class="hljs-attr">body</span>: inputBody,
  8088. <span class="hljs-attr">headers</span>: headers
  8089. })
  8090. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8091. <span class="hljs-keyword">return</span> res.json();
  8092. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8093. <span class="hljs-built_in">console</span>.log(body);
  8094. });
  8095. </code></pre>
  8096. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8097. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8098. headers = {
  8099. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8100. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8101. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8102. }
  8103. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  8104. <span class="hljs-symbol">params:</span> {
  8105. }, <span class="hljs-symbol">headers:</span> headers
  8106. p JSON.parse(result)
  8107. </code></pre>
  8108. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8109. headers = {
  8110. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8111. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8112. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8113. }
  8114. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  8115. }, headers = headers)
  8116. <span class="hljs-keyword">print</span> r.json()
  8117. </code></pre>
  8118. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields"</span>);
  8119. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8120. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  8121. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8122. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8123. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8124. String inputLine;
  8125. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8126. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8127. response.append(inputLine);
  8128. }
  8129. in.close();
  8130. System.out.println(response.toString());
  8131. </code></pre>
  8132. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8133. <span class="hljs-keyword">import</span> (
  8134. <span class="hljs-string">"bytes"</span>
  8135. <span class="hljs-string">"net/http"</span>
  8136. )
  8137. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8138. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8139. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8140. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8141. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8142. }
  8143. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8144. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  8145. req.Header = headers
  8146. client := &amp;http.Client{}
  8147. resp, err := client.Do(req)
  8148. <span class="hljs-comment">// ...</span>
  8149. }
  8150. </code></pre>
  8151. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  8152. <p><em>Create a Custom Field</em></p>
  8153. <blockquote>
  8154. <p>Body parameter</p>
  8155. </blockquote>
  8156. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  8157. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  8158. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  8159. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  8160. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  8161. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  8162. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8163. </code></pre>
  8164. <h3 id="new_custom_field-parameters">Parameters</h3>
  8165. <table>
  8166. <thead>
  8167. <tr>
  8168. <th>Name</th>
  8169. <th>In</th>
  8170. <th>Type</th>
  8171. <th>Required</th>
  8172. <th>Description</th>
  8173. </tr>
  8174. </thead>
  8175. <tbody>
  8176. <tr>
  8177. <td>board</td>
  8178. <td>path</td>
  8179. <td>string</td>
  8180. <td>true</td>
  8181. <td>the board value</td>
  8182. </tr>
  8183. <tr>
  8184. <td>body</td>
  8185. <td>body</td>
  8186. <td>object</td>
  8187. <td>false</td>
  8188. <td>none</td>
  8189. </tr>
  8190. <tr>
  8191. <td>» name</td>
  8192. <td>body</td>
  8193. <td>string</td>
  8194. <td>true</td>
  8195. <td>the name of the custom field</td>
  8196. </tr>
  8197. <tr>
  8198. <td>» type</td>
  8199. <td>body</td>
  8200. <td>string</td>
  8201. <td>true</td>
  8202. <td>the type of the custom field</td>
  8203. </tr>
  8204. <tr>
  8205. <td>» settings</td>
  8206. <td>body</td>
  8207. <td>string</td>
  8208. <td>true</td>
  8209. <td>the settings object of the custom field</td>
  8210. </tr>
  8211. <tr>
  8212. <td>» showOnCard</td>
  8213. <td>body</td>
  8214. <td>boolean</td>
  8215. <td>true</td>
  8216. <td>should we show the custom field on cards?</td>
  8217. </tr>
  8218. <tr>
  8219. <td>» automaticallyOnCard</td>
  8220. <td>body</td>
  8221. <td>boolean</td>
  8222. <td>true</td>
  8223. <td>should the custom fields automatically be added on cards?</td>
  8224. </tr>
  8225. <tr>
  8226. <td>» showLabelOnMiniCard</td>
  8227. <td>body</td>
  8228. <td>boolean</td>
  8229. <td>true</td>
  8230. <td>should the label of the custom field be shown on minicards?</td>
  8231. </tr>
  8232. <tr>
  8233. <td>» authorId</td>
  8234. <td>body</td>
  8235. <td>string</td>
  8236. <td>true</td>
  8237. <td>the authorId value</td>
  8238. </tr>
  8239. </tbody>
  8240. </table>
  8241. <blockquote>
  8242. <p>Example responses</p>
  8243. </blockquote>
  8244. <blockquote>
  8245. <p>200 Response</p>
  8246. </blockquote>
  8247. <pre class="highlight tab tab-json"><code>{
  8248. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8249. }
  8250. </code></pre>
  8251. <h3 id="new_custom_field-responses">Responses</h3>
  8252. <table>
  8253. <thead>
  8254. <tr>
  8255. <th>Status</th>
  8256. <th>Meaning</th>
  8257. <th>Description</th>
  8258. <th>Schema</th>
  8259. </tr>
  8260. </thead>
  8261. <tbody>
  8262. <tr>
  8263. <td>200</td>
  8264. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8265. <td>200 response</td>
  8266. <td>Inline</td>
  8267. </tr>
  8268. </tbody>
  8269. </table>
  8270. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  8271. <p>Status Code <strong>200</strong></p>
  8272. <table>
  8273. <thead>
  8274. <tr>
  8275. <th>Name</th>
  8276. <th>Type</th>
  8277. <th>Required</th>
  8278. <th>Restrictions</th>
  8279. <th>Description</th>
  8280. </tr>
  8281. </thead>
  8282. <tbody>
  8283. <tr>
  8284. <td>» _id</td>
  8285. <td>string</td>
  8286. <td>false</td>
  8287. <td>none</td>
  8288. <td>none</td>
  8289. </tr>
  8290. </tbody>
  8291. </table>
  8292. <aside class="warning">
  8293. To perform this operation, you must be authenticated by means of one of the following methods:
  8294. UserSecurity
  8295. </aside>
  8296. <h2 id="get_custom_field">get_custom_field</h2>
  8297. <p><a id="opIdget_custom_field"></a></p>
  8298. <blockquote>
  8299. <p>Code samples</p>
  8300. </blockquote>
  8301. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8302. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  8303. -H <span class="hljs-string">'Accept: application/json'</span> \
  8304. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8305. </code></pre>
  8306. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> HTTP/1.1
  8307. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8308. <span class="undefined"></span></span></code></pre>
  8309. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8310. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8311. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8312. };
  8313. $.ajax({
  8314. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8315. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  8316. <span class="hljs-attr">headers</span>: headers,
  8317. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8318. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8319. }
  8320. })
  8321. </code></pre>
  8322. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8323. <span class="hljs-keyword">const</span> headers = {
  8324. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8325. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8326. };
  8327. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8328. {
  8329. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  8330. <span class="hljs-attr">headers</span>: headers
  8331. })
  8332. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8333. <span class="hljs-keyword">return</span> res.json();
  8334. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8335. <span class="hljs-built_in">console</span>.log(body);
  8336. });
  8337. </code></pre>
  8338. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8339. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8340. headers = {
  8341. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8342. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8343. }
  8344. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8345. <span class="hljs-symbol">params:</span> {
  8346. }, <span class="hljs-symbol">headers:</span> headers
  8347. p JSON.parse(result)
  8348. </code></pre>
  8349. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8350. headers = {
  8351. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8352. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8353. }
  8354. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  8355. }, headers = headers)
  8356. <span class="hljs-keyword">print</span> r.json()
  8357. </code></pre>
  8358. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>);
  8359. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8360. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  8361. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8362. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8363. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8364. String inputLine;
  8365. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8366. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8367. response.append(inputLine);
  8368. }
  8369. in.close();
  8370. System.out.println(response.toString());
  8371. </code></pre>
  8372. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8373. <span class="hljs-keyword">import</span> (
  8374. <span class="hljs-string">"bytes"</span>
  8375. <span class="hljs-string">"net/http"</span>
  8376. )
  8377. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8378. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8379. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8380. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8381. }
  8382. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8383. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  8384. req.Header = headers
  8385. client := &amp;http.Client{}
  8386. resp, err := client.Do(req)
  8387. <span class="hljs-comment">// ...</span>
  8388. }
  8389. </code></pre>
  8390. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  8391. <p><em>Get a Custom Fields attached to a board</em></p>
  8392. <h3 id="get_custom_field-parameters">Parameters</h3>
  8393. <table>
  8394. <thead>
  8395. <tr>
  8396. <th>Name</th>
  8397. <th>In</th>
  8398. <th>Type</th>
  8399. <th>Required</th>
  8400. <th>Description</th>
  8401. </tr>
  8402. </thead>
  8403. <tbody>
  8404. <tr>
  8405. <td>board</td>
  8406. <td>path</td>
  8407. <td>string</td>
  8408. <td>true</td>
  8409. <td>the board value</td>
  8410. </tr>
  8411. <tr>
  8412. <td>customField</td>
  8413. <td>path</td>
  8414. <td>string</td>
  8415. <td>true</td>
  8416. <td>the ID of the custom field</td>
  8417. </tr>
  8418. </tbody>
  8419. </table>
  8420. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8421. <p><strong>customField</strong>: the ID of the custom field</p>
  8422. <blockquote>
  8423. <p>Example responses</p>
  8424. </blockquote>
  8425. <blockquote>
  8426. <p>200 Response</p>
  8427. </blockquote>
  8428. <pre class="highlight tab tab-json"><code>{
  8429. <span class="hljs-attr">"boardIds"</span>: [
  8430. <span class="hljs-string">"string"</span>
  8431. ],
  8432. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  8433. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"text"</span>,
  8434. <span class="hljs-attr">"settings"</span>: {
  8435. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  8436. <span class="hljs-attr">"dropdownItems"</span>: [
  8437. {}
  8438. ]
  8439. },
  8440. <span class="hljs-attr">"showOnCard"</span>: <span class="hljs-literal">true</span>,
  8441. <span class="hljs-attr">"automaticallyOnCard"</span>: <span class="hljs-literal">true</span>,
  8442. <span class="hljs-attr">"showLabelOnMiniCard"</span>: <span class="hljs-literal">true</span>,
  8443. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  8444. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  8445. }
  8446. </code></pre>
  8447. <h3 id="get_custom_field-responses">Responses</h3>
  8448. <table>
  8449. <thead>
  8450. <tr>
  8451. <th>Status</th>
  8452. <th>Meaning</th>
  8453. <th>Description</th>
  8454. <th>Schema</th>
  8455. </tr>
  8456. </thead>
  8457. <tbody>
  8458. <tr>
  8459. <td>200</td>
  8460. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8461. <td>200 response</td>
  8462. <td><a href="#schemacustomfields">CustomFields</a></td>
  8463. </tr>
  8464. </tbody>
  8465. </table>
  8466. <aside class="warning">
  8467. To perform this operation, you must be authenticated by means of one of the following methods:
  8468. UserSecurity
  8469. </aside>
  8470. <h2 id="delete_custom_field">delete_custom_field</h2>
  8471. <p><a id="opIddelete_custom_field"></a></p>
  8472. <blockquote>
  8473. <p>Code samples</p>
  8474. </blockquote>
  8475. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8476. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  8477. -H <span class="hljs-string">'Accept: application/json'</span> \
  8478. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8479. </code></pre>
  8480. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> HTTP/1.1
  8481. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8482. <span class="undefined"></span></span></code></pre>
  8483. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8484. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8485. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8486. };
  8487. $.ajax({
  8488. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8489. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  8490. <span class="hljs-attr">headers</span>: headers,
  8491. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8492. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8493. }
  8494. })
  8495. </code></pre>
  8496. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8497. <span class="hljs-keyword">const</span> headers = {
  8498. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8499. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8500. };
  8501. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8502. {
  8503. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  8504. <span class="hljs-attr">headers</span>: headers
  8505. })
  8506. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8507. <span class="hljs-keyword">return</span> res.json();
  8508. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8509. <span class="hljs-built_in">console</span>.log(body);
  8510. });
  8511. </code></pre>
  8512. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8513. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8514. headers = {
  8515. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8516. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8517. }
  8518. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8519. <span class="hljs-symbol">params:</span> {
  8520. }, <span class="hljs-symbol">headers:</span> headers
  8521. p JSON.parse(result)
  8522. </code></pre>
  8523. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8524. headers = {
  8525. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8526. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8527. }
  8528. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  8529. }, headers = headers)
  8530. <span class="hljs-keyword">print</span> r.json()
  8531. </code></pre>
  8532. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>);
  8533. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8534. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  8535. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8536. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8537. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8538. String inputLine;
  8539. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8540. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8541. response.append(inputLine);
  8542. }
  8543. in.close();
  8544. System.out.println(response.toString());
  8545. </code></pre>
  8546. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8547. <span class="hljs-keyword">import</span> (
  8548. <span class="hljs-string">"bytes"</span>
  8549. <span class="hljs-string">"net/http"</span>
  8550. )
  8551. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8552. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8553. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8554. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8555. }
  8556. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8557. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  8558. req.Header = headers
  8559. client := &amp;http.Client{}
  8560. resp, err := client.Do(req)
  8561. <span class="hljs-comment">// ...</span>
  8562. }
  8563. </code></pre>
  8564. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  8565. <p><em>Delete a Custom Fields attached to a board</em></p>
  8566. <p>The Custom Field can't be retrieved after this operation</p>
  8567. <h3 id="delete_custom_field-parameters">Parameters</h3>
  8568. <table>
  8569. <thead>
  8570. <tr>
  8571. <th>Name</th>
  8572. <th>In</th>
  8573. <th>Type</th>
  8574. <th>Required</th>
  8575. <th>Description</th>
  8576. </tr>
  8577. </thead>
  8578. <tbody>
  8579. <tr>
  8580. <td>board</td>
  8581. <td>path</td>
  8582. <td>string</td>
  8583. <td>true</td>
  8584. <td>the board value</td>
  8585. </tr>
  8586. <tr>
  8587. <td>customField</td>
  8588. <td>path</td>
  8589. <td>string</td>
  8590. <td>true</td>
  8591. <td>the ID of the custom field</td>
  8592. </tr>
  8593. </tbody>
  8594. </table>
  8595. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8596. <p><strong>customField</strong>: the ID of the custom field</p>
  8597. <blockquote>
  8598. <p>Example responses</p>
  8599. </blockquote>
  8600. <blockquote>
  8601. <p>200 Response</p>
  8602. </blockquote>
  8603. <pre class="highlight tab tab-json"><code>{
  8604. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8605. }
  8606. </code></pre>
  8607. <h3 id="delete_custom_field-responses">Responses</h3>
  8608. <table>
  8609. <thead>
  8610. <tr>
  8611. <th>Status</th>
  8612. <th>Meaning</th>
  8613. <th>Description</th>
  8614. <th>Schema</th>
  8615. </tr>
  8616. </thead>
  8617. <tbody>
  8618. <tr>
  8619. <td>200</td>
  8620. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8621. <td>200 response</td>
  8622. <td>Inline</td>
  8623. </tr>
  8624. </tbody>
  8625. </table>
  8626. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  8627. <p>Status Code <strong>200</strong></p>
  8628. <table>
  8629. <thead>
  8630. <tr>
  8631. <th>Name</th>
  8632. <th>Type</th>
  8633. <th>Required</th>
  8634. <th>Restrictions</th>
  8635. <th>Description</th>
  8636. </tr>
  8637. </thead>
  8638. <tbody>
  8639. <tr>
  8640. <td>» _id</td>
  8641. <td>string</td>
  8642. <td>false</td>
  8643. <td>none</td>
  8644. <td>none</td>
  8645. </tr>
  8646. </tbody>
  8647. </table>
  8648. <aside class="warning">
  8649. To perform this operation, you must be authenticated by means of one of the following methods:
  8650. UserSecurity
  8651. </aside>
  8652. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  8653. <h2 id="get_all_integrations">get_all_integrations</h2>
  8654. <p><a id="opIdget_all_integrations"></a></p>
  8655. <blockquote>
  8656. <p>Code samples</p>
  8657. </blockquote>
  8658. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8659. curl -X GET /api/boards/{board}/integrations \
  8660. -H <span class="hljs-string">'Accept: application/json'</span> \
  8661. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8662. </code></pre>
  8663. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations</span> HTTP/1.1
  8664. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8665. <span class="undefined"></span></span></code></pre>
  8666. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8667. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8668. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8669. };
  8670. $.ajax({
  8671. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8672. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  8673. <span class="hljs-attr">headers</span>: headers,
  8674. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8675. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8676. }
  8677. })
  8678. </code></pre>
  8679. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8680. <span class="hljs-keyword">const</span> headers = {
  8681. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8682. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8683. };
  8684. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8685. {
  8686. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  8687. <span class="hljs-attr">headers</span>: headers
  8688. })
  8689. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8690. <span class="hljs-keyword">return</span> res.json();
  8691. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8692. <span class="hljs-built_in">console</span>.log(body);
  8693. });
  8694. </code></pre>
  8695. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8696. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8697. headers = {
  8698. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8699. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8700. }
  8701. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8702. <span class="hljs-symbol">params:</span> {
  8703. }, <span class="hljs-symbol">headers:</span> headers
  8704. p JSON.parse(result)
  8705. </code></pre>
  8706. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8707. headers = {
  8708. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8709. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8710. }
  8711. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  8712. }, headers = headers)
  8713. <span class="hljs-keyword">print</span> r.json()
  8714. </code></pre>
  8715. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations"</span>);
  8716. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8717. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  8718. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8719. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8720. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8721. String inputLine;
  8722. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8723. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8724. response.append(inputLine);
  8725. }
  8726. in.close();
  8727. System.out.println(response.toString());
  8728. </code></pre>
  8729. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8730. <span class="hljs-keyword">import</span> (
  8731. <span class="hljs-string">"bytes"</span>
  8732. <span class="hljs-string">"net/http"</span>
  8733. )
  8734. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8735. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8736. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8737. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8738. }
  8739. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8740. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  8741. req.Header = headers
  8742. client := &amp;http.Client{}
  8743. resp, err := client.Do(req)
  8744. <span class="hljs-comment">// ...</span>
  8745. }
  8746. </code></pre>
  8747. <p><code>GET /api/boards/{board}/integrations</code></p>
  8748. <p><em>Get all integrations in board</em></p>
  8749. <h3 id="get_all_integrations-parameters">Parameters</h3>
  8750. <table>
  8751. <thead>
  8752. <tr>
  8753. <th>Name</th>
  8754. <th>In</th>
  8755. <th>Type</th>
  8756. <th>Required</th>
  8757. <th>Description</th>
  8758. </tr>
  8759. </thead>
  8760. <tbody>
  8761. <tr>
  8762. <td>board</td>
  8763. <td>path</td>
  8764. <td>string</td>
  8765. <td>true</td>
  8766. <td>the board ID</td>
  8767. </tr>
  8768. </tbody>
  8769. </table>
  8770. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8771. <p><strong>board</strong>: the board ID</p>
  8772. <blockquote>
  8773. <p>Example responses</p>
  8774. </blockquote>
  8775. <blockquote>
  8776. <p>200 Response</p>
  8777. </blockquote>
  8778. <pre class="highlight tab tab-json"><code>[
  8779. {
  8780. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  8781. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  8782. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  8783. <span class="hljs-attr">"activities"</span>: [
  8784. <span class="hljs-string">"string"</span>
  8785. ],
  8786. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  8787. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  8788. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  8789. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  8790. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  8791. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  8792. }
  8793. ]
  8794. </code></pre>
  8795. <h3 id="get_all_integrations-responses">Responses</h3>
  8796. <table>
  8797. <thead>
  8798. <tr>
  8799. <th>Status</th>
  8800. <th>Meaning</th>
  8801. <th>Description</th>
  8802. <th>Schema</th>
  8803. </tr>
  8804. </thead>
  8805. <tbody>
  8806. <tr>
  8807. <td>200</td>
  8808. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8809. <td>200 response</td>
  8810. <td>Inline</td>
  8811. </tr>
  8812. </tbody>
  8813. </table>
  8814. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  8815. <p>Status Code <strong>200</strong></p>
  8816. <table>
  8817. <thead>
  8818. <tr>
  8819. <th>Name</th>
  8820. <th>Type</th>
  8821. <th>Required</th>
  8822. <th>Restrictions</th>
  8823. <th>Description</th>
  8824. </tr>
  8825. </thead>
  8826. <tbody>
  8827. <tr>
  8828. <td><em>anonymous</em></td>
  8829. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  8830. <td>false</td>
  8831. <td>none</td>
  8832. <td>[Integration with third-party applications]</td>
  8833. </tr>
  8834. <tr>
  8835. <td>» enabled</td>
  8836. <td>boolean</td>
  8837. <td>true</td>
  8838. <td>none</td>
  8839. <td>is the integration enabled?</td>
  8840. </tr>
  8841. <tr>
  8842. <td>» title</td>
  8843. <td>string|null</td>
  8844. <td>false</td>
  8845. <td>none</td>
  8846. <td>name of the integration</td>
  8847. </tr>
  8848. <tr>
  8849. <td>» type</td>
  8850. <td>string</td>
  8851. <td>true</td>
  8852. <td>none</td>
  8853. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  8854. </tr>
  8855. <tr>
  8856. <td>» activities</td>
  8857. <td>[string]</td>
  8858. <td>true</td>
  8859. <td>none</td>
  8860. <td>activities the integration gets triggered (list)</td>
  8861. </tr>
  8862. <tr>
  8863. <td>» url</td>
  8864. <td>string</td>
  8865. <td>true</td>
  8866. <td>none</td>
  8867. <td>none</td>
  8868. </tr>
  8869. <tr>
  8870. <td>» token</td>
  8871. <td>string|null</td>
  8872. <td>false</td>
  8873. <td>none</td>
  8874. <td>token of the integration</td>
  8875. </tr>
  8876. <tr>
  8877. <td>» boardId</td>
  8878. <td>string</td>
  8879. <td>true</td>
  8880. <td>none</td>
  8881. <td>Board ID of the integration</td>
  8882. </tr>
  8883. <tr>
  8884. <td>» createdAt</td>
  8885. <td>string</td>
  8886. <td>true</td>
  8887. <td>none</td>
  8888. <td>Creation date of the integration</td>
  8889. </tr>
  8890. <tr>
  8891. <td>» modifiedAt</td>
  8892. <td>string</td>
  8893. <td>true</td>
  8894. <td>none</td>
  8895. <td>none</td>
  8896. </tr>
  8897. <tr>
  8898. <td>» userId</td>
  8899. <td>string</td>
  8900. <td>true</td>
  8901. <td>none</td>
  8902. <td>user ID who created the interation</td>
  8903. </tr>
  8904. </tbody>
  8905. </table>
  8906. <aside class="warning">
  8907. To perform this operation, you must be authenticated by means of one of the following methods:
  8908. UserSecurity
  8909. </aside>
  8910. <h2 id="new_integration">new_integration</h2>
  8911. <p><a id="opIdnew_integration"></a></p>
  8912. <blockquote>
  8913. <p>Code samples</p>
  8914. </blockquote>
  8915. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8916. curl -X POST /api/boards/{board}/integrations \
  8917. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8918. -H <span class="hljs-string">'Accept: application/json'</span> \
  8919. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8920. </code></pre>
  8921. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations</span> HTTP/1.1
  8922. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8923. Accept: application/json
  8924. </span></code></pre>
  8925. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8926. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8927. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8928. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8929. };
  8930. $.ajax({
  8931. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8932. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  8933. <span class="hljs-attr">headers</span>: headers,
  8934. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8935. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8936. }
  8937. })
  8938. </code></pre>
  8939. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8940. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8941. "url": "string"
  8942. }'</span>;
  8943. <span class="hljs-keyword">const</span> headers = {
  8944. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8945. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8946. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8947. };
  8948. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8949. {
  8950. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  8951. <span class="hljs-attr">body</span>: inputBody,
  8952. <span class="hljs-attr">headers</span>: headers
  8953. })
  8954. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8955. <span class="hljs-keyword">return</span> res.json();
  8956. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8957. <span class="hljs-built_in">console</span>.log(body);
  8958. });
  8959. </code></pre>
  8960. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8961. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8962. headers = {
  8963. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8964. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8965. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8966. }
  8967. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8968. <span class="hljs-symbol">params:</span> {
  8969. }, <span class="hljs-symbol">headers:</span> headers
  8970. p JSON.parse(result)
  8971. </code></pre>
  8972. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8973. headers = {
  8974. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8975. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8976. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8977. }
  8978. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  8979. }, headers = headers)
  8980. <span class="hljs-keyword">print</span> r.json()
  8981. </code></pre>
  8982. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations"</span>);
  8983. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8984. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  8985. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8986. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8987. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8988. String inputLine;
  8989. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8990. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8991. response.append(inputLine);
  8992. }
  8993. in.close();
  8994. System.out.println(response.toString());
  8995. </code></pre>
  8996. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8997. <span class="hljs-keyword">import</span> (
  8998. <span class="hljs-string">"bytes"</span>
  8999. <span class="hljs-string">"net/http"</span>
  9000. )
  9001. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9002. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9003. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9004. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9005. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9006. }
  9007. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9008. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  9009. req.Header = headers
  9010. client := &amp;http.Client{}
  9011. resp, err := client.Do(req)
  9012. <span class="hljs-comment">// ...</span>
  9013. }
  9014. </code></pre>
  9015. <p><code>POST /api/boards/{board}/integrations</code></p>
  9016. <p><em>Create a new integration</em></p>
  9017. <blockquote>
  9018. <p>Body parameter</p>
  9019. </blockquote>
  9020. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  9021. </code></pre>
  9022. <h3 id="new_integration-parameters">Parameters</h3>
  9023. <table>
  9024. <thead>
  9025. <tr>
  9026. <th>Name</th>
  9027. <th>In</th>
  9028. <th>Type</th>
  9029. <th>Required</th>
  9030. <th>Description</th>
  9031. </tr>
  9032. </thead>
  9033. <tbody>
  9034. <tr>
  9035. <td>board</td>
  9036. <td>path</td>
  9037. <td>string</td>
  9038. <td>true</td>
  9039. <td>the board ID</td>
  9040. </tr>
  9041. <tr>
  9042. <td>body</td>
  9043. <td>body</td>
  9044. <td>object</td>
  9045. <td>false</td>
  9046. <td>none</td>
  9047. </tr>
  9048. <tr>
  9049. <td>» url</td>
  9050. <td>body</td>
  9051. <td>string</td>
  9052. <td>true</td>
  9053. <td>the URL of the integration</td>
  9054. </tr>
  9055. </tbody>
  9056. </table>
  9057. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9058. <p><strong>board</strong>: the board ID</p>
  9059. <blockquote>
  9060. <p>Example responses</p>
  9061. </blockquote>
  9062. <blockquote>
  9063. <p>200 Response</p>
  9064. </blockquote>
  9065. <pre class="highlight tab tab-json"><code>{
  9066. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9067. }
  9068. </code></pre>
  9069. <h3 id="new_integration-responses">Responses</h3>
  9070. <table>
  9071. <thead>
  9072. <tr>
  9073. <th>Status</th>
  9074. <th>Meaning</th>
  9075. <th>Description</th>
  9076. <th>Schema</th>
  9077. </tr>
  9078. </thead>
  9079. <tbody>
  9080. <tr>
  9081. <td>200</td>
  9082. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9083. <td>200 response</td>
  9084. <td>Inline</td>
  9085. </tr>
  9086. </tbody>
  9087. </table>
  9088. <h3 id="new_integration-responseschema">Response Schema</h3>
  9089. <p>Status Code <strong>200</strong></p>
  9090. <table>
  9091. <thead>
  9092. <tr>
  9093. <th>Name</th>
  9094. <th>Type</th>
  9095. <th>Required</th>
  9096. <th>Restrictions</th>
  9097. <th>Description</th>
  9098. </tr>
  9099. </thead>
  9100. <tbody>
  9101. <tr>
  9102. <td>» _id</td>
  9103. <td>string</td>
  9104. <td>false</td>
  9105. <td>none</td>
  9106. <td>none</td>
  9107. </tr>
  9108. </tbody>
  9109. </table>
  9110. <aside class="warning">
  9111. To perform this operation, you must be authenticated by means of one of the following methods:
  9112. UserSecurity
  9113. </aside>
  9114. <h2 id="get_integration">get_integration</h2>
  9115. <p><a id="opIdget_integration"></a></p>
  9116. <blockquote>
  9117. <p>Code samples</p>
  9118. </blockquote>
  9119. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9120. curl -X GET /api/boards/{board}/integrations/{int} \
  9121. -H <span class="hljs-string">'Accept: application/json'</span> \
  9122. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9123. </code></pre>
  9124. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  9125. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9126. <span class="undefined"></span></span></code></pre>
  9127. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9128. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9129. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9130. };
  9131. $.ajax({
  9132. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9133. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9134. <span class="hljs-attr">headers</span>: headers,
  9135. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9136. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9137. }
  9138. })
  9139. </code></pre>
  9140. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9141. <span class="hljs-keyword">const</span> headers = {
  9142. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9143. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9144. };
  9145. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9146. {
  9147. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9148. <span class="hljs-attr">headers</span>: headers
  9149. })
  9150. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9151. <span class="hljs-keyword">return</span> res.json();
  9152. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9153. <span class="hljs-built_in">console</span>.log(body);
  9154. });
  9155. </code></pre>
  9156. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9157. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9158. headers = {
  9159. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9160. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9161. }
  9162. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9163. <span class="hljs-symbol">params:</span> {
  9164. }, <span class="hljs-symbol">headers:</span> headers
  9165. p JSON.parse(result)
  9166. </code></pre>
  9167. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9168. headers = {
  9169. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9170. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9171. }
  9172. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9173. }, headers = headers)
  9174. <span class="hljs-keyword">print</span> r.json()
  9175. </code></pre>
  9176. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  9177. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9178. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9179. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9180. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9181. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9182. String inputLine;
  9183. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9184. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9185. response.append(inputLine);
  9186. }
  9187. in.close();
  9188. System.out.println(response.toString());
  9189. </code></pre>
  9190. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9191. <span class="hljs-keyword">import</span> (
  9192. <span class="hljs-string">"bytes"</span>
  9193. <span class="hljs-string">"net/http"</span>
  9194. )
  9195. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9196. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9197. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9198. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9199. }
  9200. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9201. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9202. req.Header = headers
  9203. client := &amp;http.Client{}
  9204. resp, err := client.Do(req)
  9205. <span class="hljs-comment">// ...</span>
  9206. }
  9207. </code></pre>
  9208. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  9209. <p><em>Get a single integration in board</em></p>
  9210. <h3 id="get_integration-parameters">Parameters</h3>
  9211. <table>
  9212. <thead>
  9213. <tr>
  9214. <th>Name</th>
  9215. <th>In</th>
  9216. <th>Type</th>
  9217. <th>Required</th>
  9218. <th>Description</th>
  9219. </tr>
  9220. </thead>
  9221. <tbody>
  9222. <tr>
  9223. <td>board</td>
  9224. <td>path</td>
  9225. <td>string</td>
  9226. <td>true</td>
  9227. <td>the board ID</td>
  9228. </tr>
  9229. <tr>
  9230. <td>int</td>
  9231. <td>path</td>
  9232. <td>string</td>
  9233. <td>true</td>
  9234. <td>the integration ID</td>
  9235. </tr>
  9236. </tbody>
  9237. </table>
  9238. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9239. <p><strong>board</strong>: the board ID</p>
  9240. <p><strong>int</strong>: the integration ID</p>
  9241. <blockquote>
  9242. <p>Example responses</p>
  9243. </blockquote>
  9244. <blockquote>
  9245. <p>200 Response</p>
  9246. </blockquote>
  9247. <pre class="highlight tab tab-json"><code>{
  9248. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  9249. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9250. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  9251. <span class="hljs-attr">"activities"</span>: [
  9252. <span class="hljs-string">"string"</span>
  9253. ],
  9254. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  9255. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  9256. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  9257. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9258. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9259. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  9260. }
  9261. </code></pre>
  9262. <h3 id="get_integration-responses">Responses</h3>
  9263. <table>
  9264. <thead>
  9265. <tr>
  9266. <th>Status</th>
  9267. <th>Meaning</th>
  9268. <th>Description</th>
  9269. <th>Schema</th>
  9270. </tr>
  9271. </thead>
  9272. <tbody>
  9273. <tr>
  9274. <td>200</td>
  9275. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9276. <td>200 response</td>
  9277. <td><a href="#schemaintegrations">Integrations</a></td>
  9278. </tr>
  9279. </tbody>
  9280. </table>
  9281. <aside class="warning">
  9282. To perform this operation, you must be authenticated by means of one of the following methods:
  9283. UserSecurity
  9284. </aside>
  9285. <h2 id="edit_integration">edit_integration</h2>
  9286. <p><a id="opIdedit_integration"></a></p>
  9287. <blockquote>
  9288. <p>Code samples</p>
  9289. </blockquote>
  9290. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9291. curl -X PUT /api/boards/{board}/integrations/{int} \
  9292. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9293. -H <span class="hljs-string">'Accept: application/json'</span> \
  9294. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9295. </code></pre>
  9296. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  9297. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9298. Accept: application/json
  9299. </span></code></pre>
  9300. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9301. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9302. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9303. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9304. };
  9305. $.ajax({
  9306. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9307. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  9308. <span class="hljs-attr">headers</span>: headers,
  9309. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9310. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9311. }
  9312. })
  9313. </code></pre>
  9314. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9315. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9316. "enabled": "string",
  9317. "title": "string",
  9318. "url": "string",
  9319. "token": "string",
  9320. "activities": "string"
  9321. }'</span>;
  9322. <span class="hljs-keyword">const</span> headers = {
  9323. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9324. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9325. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9326. };
  9327. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9328. {
  9329. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  9330. <span class="hljs-attr">body</span>: inputBody,
  9331. <span class="hljs-attr">headers</span>: headers
  9332. })
  9333. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9334. <span class="hljs-keyword">return</span> res.json();
  9335. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9336. <span class="hljs-built_in">console</span>.log(body);
  9337. });
  9338. </code></pre>
  9339. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9340. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9341. headers = {
  9342. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9343. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9344. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9345. }
  9346. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9347. <span class="hljs-symbol">params:</span> {
  9348. }, <span class="hljs-symbol">headers:</span> headers
  9349. p JSON.parse(result)
  9350. </code></pre>
  9351. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9352. headers = {
  9353. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9354. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9355. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9356. }
  9357. r = requests.put(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9358. }, headers = headers)
  9359. <span class="hljs-keyword">print</span> r.json()
  9360. </code></pre>
  9361. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  9362. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9363. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  9364. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9365. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9366. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9367. String inputLine;
  9368. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9369. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9370. response.append(inputLine);
  9371. }
  9372. in.close();
  9373. System.out.println(response.toString());
  9374. </code></pre>
  9375. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9376. <span class="hljs-keyword">import</span> (
  9377. <span class="hljs-string">"bytes"</span>
  9378. <span class="hljs-string">"net/http"</span>
  9379. )
  9380. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9381. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9382. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9383. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9384. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9385. }
  9386. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9387. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9388. req.Header = headers
  9389. client := &amp;http.Client{}
  9390. resp, err := client.Do(req)
  9391. <span class="hljs-comment">// ...</span>
  9392. }
  9393. </code></pre>
  9394. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  9395. <p><em>Edit integration data</em></p>
  9396. <blockquote>
  9397. <p>Body parameter</p>
  9398. </blockquote>
  9399. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  9400. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  9401. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  9402. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  9403. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  9404. </code></pre>
  9405. <h3 id="edit_integration-parameters">Parameters</h3>
  9406. <table>
  9407. <thead>
  9408. <tr>
  9409. <th>Name</th>
  9410. <th>In</th>
  9411. <th>Type</th>
  9412. <th>Required</th>
  9413. <th>Description</th>
  9414. </tr>
  9415. </thead>
  9416. <tbody>
  9417. <tr>
  9418. <td>board</td>
  9419. <td>path</td>
  9420. <td>string</td>
  9421. <td>true</td>
  9422. <td>the board ID</td>
  9423. </tr>
  9424. <tr>
  9425. <td>int</td>
  9426. <td>path</td>
  9427. <td>string</td>
  9428. <td>true</td>
  9429. <td>the integration ID</td>
  9430. </tr>
  9431. <tr>
  9432. <td>body</td>
  9433. <td>body</td>
  9434. <td>object</td>
  9435. <td>false</td>
  9436. <td>none</td>
  9437. </tr>
  9438. <tr>
  9439. <td>» enabled</td>
  9440. <td>body</td>
  9441. <td>string</td>
  9442. <td>false</td>
  9443. <td>is the integration enabled?</td>
  9444. </tr>
  9445. <tr>
  9446. <td>» title</td>
  9447. <td>body</td>
  9448. <td>string</td>
  9449. <td>false</td>
  9450. <td>new name of the integration</td>
  9451. </tr>
  9452. <tr>
  9453. <td>» url</td>
  9454. <td>body</td>
  9455. <td>string</td>
  9456. <td>false</td>
  9457. <td>new URL of the integration</td>
  9458. </tr>
  9459. <tr>
  9460. <td>» token</td>
  9461. <td>body</td>
  9462. <td>string</td>
  9463. <td>false</td>
  9464. <td>new token of the integration</td>
  9465. </tr>
  9466. <tr>
  9467. <td>» activities</td>
  9468. <td>body</td>
  9469. <td>string</td>
  9470. <td>false</td>
  9471. <td>new list of activities of the integration</td>
  9472. </tr>
  9473. </tbody>
  9474. </table>
  9475. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9476. <p><strong>board</strong>: the board ID</p>
  9477. <p><strong>int</strong>: the integration ID</p>
  9478. <blockquote>
  9479. <p>Example responses</p>
  9480. </blockquote>
  9481. <blockquote>
  9482. <p>200 Response</p>
  9483. </blockquote>
  9484. <pre class="highlight tab tab-json"><code>{
  9485. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9486. }
  9487. </code></pre>
  9488. <h3 id="edit_integration-responses">Responses</h3>
  9489. <table>
  9490. <thead>
  9491. <tr>
  9492. <th>Status</th>
  9493. <th>Meaning</th>
  9494. <th>Description</th>
  9495. <th>Schema</th>
  9496. </tr>
  9497. </thead>
  9498. <tbody>
  9499. <tr>
  9500. <td>200</td>
  9501. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9502. <td>200 response</td>
  9503. <td>Inline</td>
  9504. </tr>
  9505. </tbody>
  9506. </table>
  9507. <h3 id="edit_integration-responseschema">Response Schema</h3>
  9508. <p>Status Code <strong>200</strong></p>
  9509. <table>
  9510. <thead>
  9511. <tr>
  9512. <th>Name</th>
  9513. <th>Type</th>
  9514. <th>Required</th>
  9515. <th>Restrictions</th>
  9516. <th>Description</th>
  9517. </tr>
  9518. </thead>
  9519. <tbody>
  9520. <tr>
  9521. <td>» _id</td>
  9522. <td>string</td>
  9523. <td>false</td>
  9524. <td>none</td>
  9525. <td>none</td>
  9526. </tr>
  9527. </tbody>
  9528. </table>
  9529. <aside class="warning">
  9530. To perform this operation, you must be authenticated by means of one of the following methods:
  9531. UserSecurity
  9532. </aside>
  9533. <h2 id="delete_integration">delete_integration</h2>
  9534. <p><a id="opIddelete_integration"></a></p>
  9535. <blockquote>
  9536. <p>Code samples</p>
  9537. </blockquote>
  9538. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9539. curl -X DELETE /api/boards/{board}/integrations/{int} \
  9540. -H <span class="hljs-string">'Accept: application/json'</span> \
  9541. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9542. </code></pre>
  9543. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  9544. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9545. <span class="undefined"></span></span></code></pre>
  9546. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9547. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9548. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9549. };
  9550. $.ajax({
  9551. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9552. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  9553. <span class="hljs-attr">headers</span>: headers,
  9554. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9555. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9556. }
  9557. })
  9558. </code></pre>
  9559. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9560. <span class="hljs-keyword">const</span> headers = {
  9561. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9562. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9563. };
  9564. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9565. {
  9566. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  9567. <span class="hljs-attr">headers</span>: headers
  9568. })
  9569. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9570. <span class="hljs-keyword">return</span> res.json();
  9571. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9572. <span class="hljs-built_in">console</span>.log(body);
  9573. });
  9574. </code></pre>
  9575. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9576. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9577. headers = {
  9578. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9579. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9580. }
  9581. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9582. <span class="hljs-symbol">params:</span> {
  9583. }, <span class="hljs-symbol">headers:</span> headers
  9584. p JSON.parse(result)
  9585. </code></pre>
  9586. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9587. headers = {
  9588. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9589. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9590. }
  9591. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9592. }, headers = headers)
  9593. <span class="hljs-keyword">print</span> r.json()
  9594. </code></pre>
  9595. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  9596. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9597. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  9598. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9599. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9600. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9601. String inputLine;
  9602. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9603. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9604. response.append(inputLine);
  9605. }
  9606. in.close();
  9607. System.out.println(response.toString());
  9608. </code></pre>
  9609. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9610. <span class="hljs-keyword">import</span> (
  9611. <span class="hljs-string">"bytes"</span>
  9612. <span class="hljs-string">"net/http"</span>
  9613. )
  9614. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9615. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9616. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9617. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9618. }
  9619. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9620. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9621. req.Header = headers
  9622. client := &amp;http.Client{}
  9623. resp, err := client.Do(req)
  9624. <span class="hljs-comment">// ...</span>
  9625. }
  9626. </code></pre>
  9627. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  9628. <p><em>Delete integration</em></p>
  9629. <h3 id="delete_integration-parameters">Parameters</h3>
  9630. <table>
  9631. <thead>
  9632. <tr>
  9633. <th>Name</th>
  9634. <th>In</th>
  9635. <th>Type</th>
  9636. <th>Required</th>
  9637. <th>Description</th>
  9638. </tr>
  9639. </thead>
  9640. <tbody>
  9641. <tr>
  9642. <td>board</td>
  9643. <td>path</td>
  9644. <td>string</td>
  9645. <td>true</td>
  9646. <td>the board ID</td>
  9647. </tr>
  9648. <tr>
  9649. <td>int</td>
  9650. <td>path</td>
  9651. <td>string</td>
  9652. <td>true</td>
  9653. <td>the integration ID</td>
  9654. </tr>
  9655. </tbody>
  9656. </table>
  9657. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9658. <p><strong>board</strong>: the board ID</p>
  9659. <p><strong>int</strong>: the integration ID</p>
  9660. <blockquote>
  9661. <p>Example responses</p>
  9662. </blockquote>
  9663. <blockquote>
  9664. <p>200 Response</p>
  9665. </blockquote>
  9666. <pre class="highlight tab tab-json"><code>{
  9667. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9668. }
  9669. </code></pre>
  9670. <h3 id="delete_integration-responses">Responses</h3>
  9671. <table>
  9672. <thead>
  9673. <tr>
  9674. <th>Status</th>
  9675. <th>Meaning</th>
  9676. <th>Description</th>
  9677. <th>Schema</th>
  9678. </tr>
  9679. </thead>
  9680. <tbody>
  9681. <tr>
  9682. <td>200</td>
  9683. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9684. <td>200 response</td>
  9685. <td>Inline</td>
  9686. </tr>
  9687. </tbody>
  9688. </table>
  9689. <h3 id="delete_integration-responseschema">Response Schema</h3>
  9690. <p>Status Code <strong>200</strong></p>
  9691. <table>
  9692. <thead>
  9693. <tr>
  9694. <th>Name</th>
  9695. <th>Type</th>
  9696. <th>Required</th>
  9697. <th>Restrictions</th>
  9698. <th>Description</th>
  9699. </tr>
  9700. </thead>
  9701. <tbody>
  9702. <tr>
  9703. <td>» _id</td>
  9704. <td>string</td>
  9705. <td>false</td>
  9706. <td>none</td>
  9707. <td>none</td>
  9708. </tr>
  9709. </tbody>
  9710. </table>
  9711. <aside class="warning">
  9712. To perform this operation, you must be authenticated by means of one of the following methods:
  9713. UserSecurity
  9714. </aside>
  9715. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  9716. <p><a id="opIddelete_integration_activities"></a></p>
  9717. <blockquote>
  9718. <p>Code samples</p>
  9719. </blockquote>
  9720. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9721. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  9722. -H <span class="hljs-string">'Accept: application/json'</span> \
  9723. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9724. </code></pre>
  9725. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> HTTP/1.1
  9726. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9727. <span class="undefined"></span></span></code></pre>
  9728. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9729. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9730. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9731. };
  9732. $.ajax({
  9733. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9734. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  9735. <span class="hljs-attr">headers</span>: headers,
  9736. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9737. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9738. }
  9739. })
  9740. </code></pre>
  9741. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9742. <span class="hljs-keyword">const</span> headers = {
  9743. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9744. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9745. };
  9746. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9747. {
  9748. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  9749. <span class="hljs-attr">headers</span>: headers
  9750. })
  9751. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9752. <span class="hljs-keyword">return</span> res.json();
  9753. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9754. <span class="hljs-built_in">console</span>.log(body);
  9755. });
  9756. </code></pre>
  9757. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9758. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9759. headers = {
  9760. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9761. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9762. }
  9763. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9764. <span class="hljs-symbol">params:</span> {
  9765. }, <span class="hljs-symbol">headers:</span> headers
  9766. p JSON.parse(result)
  9767. </code></pre>
  9768. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9769. headers = {
  9770. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9771. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9772. }
  9773. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  9774. }, headers = headers)
  9775. <span class="hljs-keyword">print</span> r.json()
  9776. </code></pre>
  9777. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>);
  9778. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9779. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  9780. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9781. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9782. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9783. String inputLine;
  9784. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9785. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9786. response.append(inputLine);
  9787. }
  9788. in.close();
  9789. System.out.println(response.toString());
  9790. </code></pre>
  9791. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9792. <span class="hljs-keyword">import</span> (
  9793. <span class="hljs-string">"bytes"</span>
  9794. <span class="hljs-string">"net/http"</span>
  9795. )
  9796. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9797. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9798. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9799. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9800. }
  9801. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9802. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  9803. req.Header = headers
  9804. client := &amp;http.Client{}
  9805. resp, err := client.Do(req)
  9806. <span class="hljs-comment">// ...</span>
  9807. }
  9808. </code></pre>
  9809. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  9810. <p><em>Delete subscribed activities</em></p>
  9811. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  9812. <table>
  9813. <thead>
  9814. <tr>
  9815. <th>Name</th>
  9816. <th>In</th>
  9817. <th>Type</th>
  9818. <th>Required</th>
  9819. <th>Description</th>
  9820. </tr>
  9821. </thead>
  9822. <tbody>
  9823. <tr>
  9824. <td>board</td>
  9825. <td>path</td>
  9826. <td>string</td>
  9827. <td>true</td>
  9828. <td>the board ID</td>
  9829. </tr>
  9830. <tr>
  9831. <td>int</td>
  9832. <td>path</td>
  9833. <td>string</td>
  9834. <td>true</td>
  9835. <td>the integration ID</td>
  9836. </tr>
  9837. </tbody>
  9838. </table>
  9839. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9840. <p><strong>board</strong>: the board ID</p>
  9841. <p><strong>int</strong>: the integration ID</p>
  9842. <blockquote>
  9843. <p>Example responses</p>
  9844. </blockquote>
  9845. <blockquote>
  9846. <p>200 Response</p>
  9847. </blockquote>
  9848. <pre class="highlight tab tab-json"><code>{
  9849. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  9850. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9851. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  9852. <span class="hljs-attr">"activities"</span>: [
  9853. <span class="hljs-string">"string"</span>
  9854. ],
  9855. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  9856. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  9857. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  9858. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9859. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9860. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  9861. }
  9862. </code></pre>
  9863. <h3 id="delete_integration_activities-responses">Responses</h3>
  9864. <table>
  9865. <thead>
  9866. <tr>
  9867. <th>Status</th>
  9868. <th>Meaning</th>
  9869. <th>Description</th>
  9870. <th>Schema</th>
  9871. </tr>
  9872. </thead>
  9873. <tbody>
  9874. <tr>
  9875. <td>200</td>
  9876. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9877. <td>200 response</td>
  9878. <td><a href="#schemaintegrations">Integrations</a></td>
  9879. </tr>
  9880. </tbody>
  9881. </table>
  9882. <aside class="warning">
  9883. To perform this operation, you must be authenticated by means of one of the following methods:
  9884. UserSecurity
  9885. </aside>
  9886. <h2 id="new_integration_activities">new_integration_activities</h2>
  9887. <p><a id="opIdnew_integration_activities"></a></p>
  9888. <blockquote>
  9889. <p>Code samples</p>
  9890. </blockquote>
  9891. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9892. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  9893. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9894. -H <span class="hljs-string">'Accept: application/json'</span> \
  9895. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9896. </code></pre>
  9897. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> HTTP/1.1
  9898. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9899. Accept: application/json
  9900. </span></code></pre>
  9901. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9902. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9903. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9904. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9905. };
  9906. $.ajax({
  9907. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9908. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  9909. <span class="hljs-attr">headers</span>: headers,
  9910. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9911. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9912. }
  9913. })
  9914. </code></pre>
  9915. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9916. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9917. "activities": "string"
  9918. }'</span>;
  9919. <span class="hljs-keyword">const</span> headers = {
  9920. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9921. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9922. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9923. };
  9924. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9925. {
  9926. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  9927. <span class="hljs-attr">body</span>: inputBody,
  9928. <span class="hljs-attr">headers</span>: headers
  9929. })
  9930. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9931. <span class="hljs-keyword">return</span> res.json();
  9932. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9933. <span class="hljs-built_in">console</span>.log(body);
  9934. });
  9935. </code></pre>
  9936. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9937. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9938. headers = {
  9939. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9940. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9941. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9942. }
  9943. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9944. <span class="hljs-symbol">params:</span> {
  9945. }, <span class="hljs-symbol">headers:</span> headers
  9946. p JSON.parse(result)
  9947. </code></pre>
  9948. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9949. headers = {
  9950. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9951. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9952. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9953. }
  9954. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  9955. }, headers = headers)
  9956. <span class="hljs-keyword">print</span> r.json()
  9957. </code></pre>
  9958. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>);
  9959. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9960. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  9961. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9962. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9963. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9964. String inputLine;
  9965. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9966. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9967. response.append(inputLine);
  9968. }
  9969. in.close();
  9970. System.out.println(response.toString());
  9971. </code></pre>
  9972. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9973. <span class="hljs-keyword">import</span> (
  9974. <span class="hljs-string">"bytes"</span>
  9975. <span class="hljs-string">"net/http"</span>
  9976. )
  9977. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9978. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9979. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9980. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9981. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9982. }
  9983. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9984. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  9985. req.Header = headers
  9986. client := &amp;http.Client{}
  9987. resp, err := client.Do(req)
  9988. <span class="hljs-comment">// ...</span>
  9989. }
  9990. </code></pre>
  9991. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  9992. <p><em>Add subscribed activities</em></p>
  9993. <blockquote>
  9994. <p>Body parameter</p>
  9995. </blockquote>
  9996. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  9997. </code></pre>
  9998. <h3 id="new_integration_activities-parameters">Parameters</h3>
  9999. <table>
  10000. <thead>
  10001. <tr>
  10002. <th>Name</th>
  10003. <th>In</th>
  10004. <th>Type</th>
  10005. <th>Required</th>
  10006. <th>Description</th>
  10007. </tr>
  10008. </thead>
  10009. <tbody>
  10010. <tr>
  10011. <td>board</td>
  10012. <td>path</td>
  10013. <td>string</td>
  10014. <td>true</td>
  10015. <td>the board ID</td>
  10016. </tr>
  10017. <tr>
  10018. <td>int</td>
  10019. <td>path</td>
  10020. <td>string</td>
  10021. <td>true</td>
  10022. <td>the integration ID</td>
  10023. </tr>
  10024. <tr>
  10025. <td>body</td>
  10026. <td>body</td>
  10027. <td>object</td>
  10028. <td>false</td>
  10029. <td>none</td>
  10030. </tr>
  10031. <tr>
  10032. <td>» activities</td>
  10033. <td>body</td>
  10034. <td>string</td>
  10035. <td>true</td>
  10036. <td>the activities value</td>
  10037. </tr>
  10038. </tbody>
  10039. </table>
  10040. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10041. <p><strong>board</strong>: the board ID</p>
  10042. <p><strong>int</strong>: the integration ID</p>
  10043. <blockquote>
  10044. <p>Example responses</p>
  10045. </blockquote>
  10046. <blockquote>
  10047. <p>200 Response</p>
  10048. </blockquote>
  10049. <pre class="highlight tab tab-json"><code>{
  10050. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  10051. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10052. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  10053. <span class="hljs-attr">"activities"</span>: [
  10054. <span class="hljs-string">"string"</span>
  10055. ],
  10056. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  10057. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  10058. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10059. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10060. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10061. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  10062. }
  10063. </code></pre>
  10064. <h3 id="new_integration_activities-responses">Responses</h3>
  10065. <table>
  10066. <thead>
  10067. <tr>
  10068. <th>Status</th>
  10069. <th>Meaning</th>
  10070. <th>Description</th>
  10071. <th>Schema</th>
  10072. </tr>
  10073. </thead>
  10074. <tbody>
  10075. <tr>
  10076. <td>200</td>
  10077. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10078. <td>200 response</td>
  10079. <td><a href="#schemaintegrations">Integrations</a></td>
  10080. </tr>
  10081. </tbody>
  10082. </table>
  10083. <aside class="warning">
  10084. To perform this operation, you must be authenticated by means of one of the following methods:
  10085. UserSecurity
  10086. </aside>
  10087. <h1 id="wekan-rest-api-lists">Lists</h1>
  10088. <h2 id="get_all_lists">get_all_lists</h2>
  10089. <p><a id="opIdget_all_lists"></a></p>
  10090. <blockquote>
  10091. <p>Code samples</p>
  10092. </blockquote>
  10093. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10094. curl -X GET /api/boards/{board}/lists \
  10095. -H <span class="hljs-string">'Accept: application/json'</span> \
  10096. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10097. </code></pre>
  10098. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists</span> HTTP/1.1
  10099. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10100. <span class="undefined"></span></span></code></pre>
  10101. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10102. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10103. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10104. };
  10105. $.ajax({
  10106. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10107. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10108. <span class="hljs-attr">headers</span>: headers,
  10109. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10110. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10111. }
  10112. })
  10113. </code></pre>
  10114. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10115. <span class="hljs-keyword">const</span> headers = {
  10116. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10117. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10118. };
  10119. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10120. {
  10121. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10122. <span class="hljs-attr">headers</span>: headers
  10123. })
  10124. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10125. <span class="hljs-keyword">return</span> res.json();
  10126. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10127. <span class="hljs-built_in">console</span>.log(body);
  10128. });
  10129. </code></pre>
  10130. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10131. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10132. headers = {
  10133. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10134. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10135. }
  10136. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10137. <span class="hljs-symbol">params:</span> {
  10138. }, <span class="hljs-symbol">headers:</span> headers
  10139. p JSON.parse(result)
  10140. </code></pre>
  10141. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10142. headers = {
  10143. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10144. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10145. }
  10146. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  10147. }, headers = headers)
  10148. <span class="hljs-keyword">print</span> r.json()
  10149. </code></pre>
  10150. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists"</span>);
  10151. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10152. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10153. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10154. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10155. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10156. String inputLine;
  10157. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10158. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10159. response.append(inputLine);
  10160. }
  10161. in.close();
  10162. System.out.println(response.toString());
  10163. </code></pre>
  10164. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10165. <span class="hljs-keyword">import</span> (
  10166. <span class="hljs-string">"bytes"</span>
  10167. <span class="hljs-string">"net/http"</span>
  10168. )
  10169. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10170. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10171. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10172. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10173. }
  10174. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10175. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  10176. req.Header = headers
  10177. client := &amp;http.Client{}
  10178. resp, err := client.Do(req)
  10179. <span class="hljs-comment">// ...</span>
  10180. }
  10181. </code></pre>
  10182. <p><code>GET /api/boards/{board}/lists</code></p>
  10183. <p><em>Get the list of Lists attached to a board</em></p>
  10184. <h3 id="get_all_lists-parameters">Parameters</h3>
  10185. <table>
  10186. <thead>
  10187. <tr>
  10188. <th>Name</th>
  10189. <th>In</th>
  10190. <th>Type</th>
  10191. <th>Required</th>
  10192. <th>Description</th>
  10193. </tr>
  10194. </thead>
  10195. <tbody>
  10196. <tr>
  10197. <td>board</td>
  10198. <td>path</td>
  10199. <td>string</td>
  10200. <td>true</td>
  10201. <td>the board ID</td>
  10202. </tr>
  10203. </tbody>
  10204. </table>
  10205. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10206. <p><strong>board</strong>: the board ID</p>
  10207. <blockquote>
  10208. <p>Example responses</p>
  10209. </blockquote>
  10210. <blockquote>
  10211. <p>200 Response</p>
  10212. </blockquote>
  10213. <pre class="highlight tab tab-json"><code>[
  10214. {
  10215. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  10216. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  10217. }
  10218. ]
  10219. </code></pre>
  10220. <h3 id="get_all_lists-responses">Responses</h3>
  10221. <table>
  10222. <thead>
  10223. <tr>
  10224. <th>Status</th>
  10225. <th>Meaning</th>
  10226. <th>Description</th>
  10227. <th>Schema</th>
  10228. </tr>
  10229. </thead>
  10230. <tbody>
  10231. <tr>
  10232. <td>200</td>
  10233. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10234. <td>200 response</td>
  10235. <td>Inline</td>
  10236. </tr>
  10237. </tbody>
  10238. </table>
  10239. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  10240. <p>Status Code <strong>200</strong></p>
  10241. <table>
  10242. <thead>
  10243. <tr>
  10244. <th>Name</th>
  10245. <th>Type</th>
  10246. <th>Required</th>
  10247. <th>Restrictions</th>
  10248. <th>Description</th>
  10249. </tr>
  10250. </thead>
  10251. <tbody>
  10252. <tr>
  10253. <td>» _id</td>
  10254. <td>string</td>
  10255. <td>false</td>
  10256. <td>none</td>
  10257. <td>none</td>
  10258. </tr>
  10259. <tr>
  10260. <td>» title</td>
  10261. <td>string</td>
  10262. <td>false</td>
  10263. <td>none</td>
  10264. <td>none</td>
  10265. </tr>
  10266. </tbody>
  10267. </table>
  10268. <aside class="warning">
  10269. To perform this operation, you must be authenticated by means of one of the following methods:
  10270. UserSecurity
  10271. </aside>
  10272. <h2 id="new_list">new_list</h2>
  10273. <p><a id="opIdnew_list"></a></p>
  10274. <blockquote>
  10275. <p>Code samples</p>
  10276. </blockquote>
  10277. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10278. curl -X POST /api/boards/{board}/lists \
  10279. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10280. -H <span class="hljs-string">'Accept: application/json'</span> \
  10281. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10282. </code></pre>
  10283. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists</span> HTTP/1.1
  10284. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10285. Accept: application/json
  10286. </span></code></pre>
  10287. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10288. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10289. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10290. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10291. };
  10292. $.ajax({
  10293. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10294. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10295. <span class="hljs-attr">headers</span>: headers,
  10296. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10297. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10298. }
  10299. })
  10300. </code></pre>
  10301. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10302. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10303. "title": "string"
  10304. }'</span>;
  10305. <span class="hljs-keyword">const</span> headers = {
  10306. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10307. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10308. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10309. };
  10310. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10311. {
  10312. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10313. <span class="hljs-attr">body</span>: inputBody,
  10314. <span class="hljs-attr">headers</span>: headers
  10315. })
  10316. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10317. <span class="hljs-keyword">return</span> res.json();
  10318. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10319. <span class="hljs-built_in">console</span>.log(body);
  10320. });
  10321. </code></pre>
  10322. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10323. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10324. headers = {
  10325. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10326. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10327. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10328. }
  10329. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10330. <span class="hljs-symbol">params:</span> {
  10331. }, <span class="hljs-symbol">headers:</span> headers
  10332. p JSON.parse(result)
  10333. </code></pre>
  10334. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10335. headers = {
  10336. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10337. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10338. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10339. }
  10340. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  10341. }, headers = headers)
  10342. <span class="hljs-keyword">print</span> r.json()
  10343. </code></pre>
  10344. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists"</span>);
  10345. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10346. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10347. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10348. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10349. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10350. String inputLine;
  10351. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10352. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10353. response.append(inputLine);
  10354. }
  10355. in.close();
  10356. System.out.println(response.toString());
  10357. </code></pre>
  10358. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10359. <span class="hljs-keyword">import</span> (
  10360. <span class="hljs-string">"bytes"</span>
  10361. <span class="hljs-string">"net/http"</span>
  10362. )
  10363. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10364. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10365. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10366. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10367. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10368. }
  10369. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10370. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  10371. req.Header = headers
  10372. client := &amp;http.Client{}
  10373. resp, err := client.Do(req)
  10374. <span class="hljs-comment">// ...</span>
  10375. }
  10376. </code></pre>
  10377. <p><code>POST /api/boards/{board}/lists</code></p>
  10378. <p><em>Add a List to a board</em></p>
  10379. <blockquote>
  10380. <p>Body parameter</p>
  10381. </blockquote>
  10382. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  10383. </code></pre>
  10384. <h3 id="new_list-parameters">Parameters</h3>
  10385. <table>
  10386. <thead>
  10387. <tr>
  10388. <th>Name</th>
  10389. <th>In</th>
  10390. <th>Type</th>
  10391. <th>Required</th>
  10392. <th>Description</th>
  10393. </tr>
  10394. </thead>
  10395. <tbody>
  10396. <tr>
  10397. <td>board</td>
  10398. <td>path</td>
  10399. <td>string</td>
  10400. <td>true</td>
  10401. <td>the board ID</td>
  10402. </tr>
  10403. <tr>
  10404. <td>body</td>
  10405. <td>body</td>
  10406. <td>object</td>
  10407. <td>false</td>
  10408. <td>none</td>
  10409. </tr>
  10410. <tr>
  10411. <td>» title</td>
  10412. <td>body</td>
  10413. <td>string</td>
  10414. <td>true</td>
  10415. <td>the title of the List</td>
  10416. </tr>
  10417. </tbody>
  10418. </table>
  10419. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10420. <p><strong>board</strong>: the board ID</p>
  10421. <blockquote>
  10422. <p>Example responses</p>
  10423. </blockquote>
  10424. <blockquote>
  10425. <p>200 Response</p>
  10426. </blockquote>
  10427. <pre class="highlight tab tab-json"><code>{
  10428. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10429. }
  10430. </code></pre>
  10431. <h3 id="new_list-responses">Responses</h3>
  10432. <table>
  10433. <thead>
  10434. <tr>
  10435. <th>Status</th>
  10436. <th>Meaning</th>
  10437. <th>Description</th>
  10438. <th>Schema</th>
  10439. </tr>
  10440. </thead>
  10441. <tbody>
  10442. <tr>
  10443. <td>200</td>
  10444. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10445. <td>200 response</td>
  10446. <td>Inline</td>
  10447. </tr>
  10448. </tbody>
  10449. </table>
  10450. <h3 id="new_list-responseschema">Response Schema</h3>
  10451. <p>Status Code <strong>200</strong></p>
  10452. <table>
  10453. <thead>
  10454. <tr>
  10455. <th>Name</th>
  10456. <th>Type</th>
  10457. <th>Required</th>
  10458. <th>Restrictions</th>
  10459. <th>Description</th>
  10460. </tr>
  10461. </thead>
  10462. <tbody>
  10463. <tr>
  10464. <td>» _id</td>
  10465. <td>string</td>
  10466. <td>false</td>
  10467. <td>none</td>
  10468. <td>none</td>
  10469. </tr>
  10470. </tbody>
  10471. </table>
  10472. <aside class="warning">
  10473. To perform this operation, you must be authenticated by means of one of the following methods:
  10474. UserSecurity
  10475. </aside>
  10476. <h2 id="get_list">get_list</h2>
  10477. <p><a id="opIdget_list"></a></p>
  10478. <blockquote>
  10479. <p>Code samples</p>
  10480. </blockquote>
  10481. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10482. curl -X GET /api/boards/{board}/lists/{list} \
  10483. -H <span class="hljs-string">'Accept: application/json'</span> \
  10484. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10485. </code></pre>
  10486. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> HTTP/1.1
  10487. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10488. <span class="undefined"></span></span></code></pre>
  10489. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10490. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10491. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10492. };
  10493. $.ajax({
  10494. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10495. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10496. <span class="hljs-attr">headers</span>: headers,
  10497. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10498. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10499. }
  10500. })
  10501. </code></pre>
  10502. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10503. <span class="hljs-keyword">const</span> headers = {
  10504. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10505. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10506. };
  10507. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10508. {
  10509. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10510. <span class="hljs-attr">headers</span>: headers
  10511. })
  10512. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10513. <span class="hljs-keyword">return</span> res.json();
  10514. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10515. <span class="hljs-built_in">console</span>.log(body);
  10516. });
  10517. </code></pre>
  10518. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10519. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10520. headers = {
  10521. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10522. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10523. }
  10524. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10525. <span class="hljs-symbol">params:</span> {
  10526. }, <span class="hljs-symbol">headers:</span> headers
  10527. p JSON.parse(result)
  10528. </code></pre>
  10529. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10530. headers = {
  10531. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10532. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10533. }
  10534. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  10535. }, headers = headers)
  10536. <span class="hljs-keyword">print</span> r.json()
  10537. </code></pre>
  10538. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>);
  10539. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10540. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10541. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10542. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10543. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10544. String inputLine;
  10545. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10546. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10547. response.append(inputLine);
  10548. }
  10549. in.close();
  10550. System.out.println(response.toString());
  10551. </code></pre>
  10552. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10553. <span class="hljs-keyword">import</span> (
  10554. <span class="hljs-string">"bytes"</span>
  10555. <span class="hljs-string">"net/http"</span>
  10556. )
  10557. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10558. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10559. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10560. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10561. }
  10562. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10563. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  10564. req.Header = headers
  10565. client := &amp;http.Client{}
  10566. resp, err := client.Do(req)
  10567. <span class="hljs-comment">// ...</span>
  10568. }
  10569. </code></pre>
  10570. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  10571. <p><em>Get a List attached to a board</em></p>
  10572. <h3 id="get_list-parameters">Parameters</h3>
  10573. <table>
  10574. <thead>
  10575. <tr>
  10576. <th>Name</th>
  10577. <th>In</th>
  10578. <th>Type</th>
  10579. <th>Required</th>
  10580. <th>Description</th>
  10581. </tr>
  10582. </thead>
  10583. <tbody>
  10584. <tr>
  10585. <td>board</td>
  10586. <td>path</td>
  10587. <td>string</td>
  10588. <td>true</td>
  10589. <td>the board ID</td>
  10590. </tr>
  10591. <tr>
  10592. <td>list</td>
  10593. <td>path</td>
  10594. <td>string</td>
  10595. <td>true</td>
  10596. <td>the List ID</td>
  10597. </tr>
  10598. </tbody>
  10599. </table>
  10600. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10601. <p><strong>board</strong>: the board ID</p>
  10602. <p><strong>list</strong>: the List ID</p>
  10603. <blockquote>
  10604. <p>Example responses</p>
  10605. </blockquote>
  10606. <blockquote>
  10607. <p>200 Response</p>
  10608. </blockquote>
  10609. <pre class="highlight tab tab-json"><code>{
  10610. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10611. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  10612. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  10613. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10614. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  10615. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10616. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  10617. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  10618. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10619. <span class="hljs-attr">"wipLimit"</span>: {
  10620. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  10621. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  10622. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  10623. },
  10624. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  10625. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  10626. }
  10627. </code></pre>
  10628. <h3 id="get_list-responses">Responses</h3>
  10629. <table>
  10630. <thead>
  10631. <tr>
  10632. <th>Status</th>
  10633. <th>Meaning</th>
  10634. <th>Description</th>
  10635. <th>Schema</th>
  10636. </tr>
  10637. </thead>
  10638. <tbody>
  10639. <tr>
  10640. <td>200</td>
  10641. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10642. <td>200 response</td>
  10643. <td><a href="#schemalists">Lists</a></td>
  10644. </tr>
  10645. </tbody>
  10646. </table>
  10647. <aside class="warning">
  10648. To perform this operation, you must be authenticated by means of one of the following methods:
  10649. UserSecurity
  10650. </aside>
  10651. <h2 id="delete_list">delete_list</h2>
  10652. <p><a id="opIddelete_list"></a></p>
  10653. <blockquote>
  10654. <p>Code samples</p>
  10655. </blockquote>
  10656. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10657. curl -X DELETE /api/boards/{board}/lists/{list} \
  10658. -H <span class="hljs-string">'Accept: application/json'</span> \
  10659. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10660. </code></pre>
  10661. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> HTTP/1.1
  10662. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10663. <span class="undefined"></span></span></code></pre>
  10664. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10665. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10666. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10667. };
  10668. $.ajax({
  10669. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10670. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  10671. <span class="hljs-attr">headers</span>: headers,
  10672. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10673. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10674. }
  10675. })
  10676. </code></pre>
  10677. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10678. <span class="hljs-keyword">const</span> headers = {
  10679. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10680. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10681. };
  10682. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10683. {
  10684. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  10685. <span class="hljs-attr">headers</span>: headers
  10686. })
  10687. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10688. <span class="hljs-keyword">return</span> res.json();
  10689. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10690. <span class="hljs-built_in">console</span>.log(body);
  10691. });
  10692. </code></pre>
  10693. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10694. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10695. headers = {
  10696. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10697. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10698. }
  10699. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10700. <span class="hljs-symbol">params:</span> {
  10701. }, <span class="hljs-symbol">headers:</span> headers
  10702. p JSON.parse(result)
  10703. </code></pre>
  10704. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10705. headers = {
  10706. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10707. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10708. }
  10709. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  10710. }, headers = headers)
  10711. <span class="hljs-keyword">print</span> r.json()
  10712. </code></pre>
  10713. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>);
  10714. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10715. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  10716. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10717. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10718. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10719. String inputLine;
  10720. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10721. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10722. response.append(inputLine);
  10723. }
  10724. in.close();
  10725. System.out.println(response.toString());
  10726. </code></pre>
  10727. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10728. <span class="hljs-keyword">import</span> (
  10729. <span class="hljs-string">"bytes"</span>
  10730. <span class="hljs-string">"net/http"</span>
  10731. )
  10732. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10733. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10734. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10735. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10736. }
  10737. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10738. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  10739. req.Header = headers
  10740. client := &amp;http.Client{}
  10741. resp, err := client.Do(req)
  10742. <span class="hljs-comment">// ...</span>
  10743. }
  10744. </code></pre>
  10745. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  10746. <p><em>Delete a List</em></p>
  10747. <p>This <strong>deletes</strong> a list from a board.
  10748. The list is not put in the recycle bin.</p>
  10749. <h3 id="delete_list-parameters">Parameters</h3>
  10750. <table>
  10751. <thead>
  10752. <tr>
  10753. <th>Name</th>
  10754. <th>In</th>
  10755. <th>Type</th>
  10756. <th>Required</th>
  10757. <th>Description</th>
  10758. </tr>
  10759. </thead>
  10760. <tbody>
  10761. <tr>
  10762. <td>board</td>
  10763. <td>path</td>
  10764. <td>string</td>
  10765. <td>true</td>
  10766. <td>the board ID</td>
  10767. </tr>
  10768. <tr>
  10769. <td>list</td>
  10770. <td>path</td>
  10771. <td>string</td>
  10772. <td>true</td>
  10773. <td>the ID of the list to remove</td>
  10774. </tr>
  10775. </tbody>
  10776. </table>
  10777. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10778. <p><strong>board</strong>: the board ID</p>
  10779. <p><strong>list</strong>: the ID of the list to remove</p>
  10780. <blockquote>
  10781. <p>Example responses</p>
  10782. </blockquote>
  10783. <blockquote>
  10784. <p>200 Response</p>
  10785. </blockquote>
  10786. <pre class="highlight tab tab-json"><code>{
  10787. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10788. }
  10789. </code></pre>
  10790. <h3 id="delete_list-responses">Responses</h3>
  10791. <table>
  10792. <thead>
  10793. <tr>
  10794. <th>Status</th>
  10795. <th>Meaning</th>
  10796. <th>Description</th>
  10797. <th>Schema</th>
  10798. </tr>
  10799. </thead>
  10800. <tbody>
  10801. <tr>
  10802. <td>200</td>
  10803. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10804. <td>200 response</td>
  10805. <td>Inline</td>
  10806. </tr>
  10807. </tbody>
  10808. </table>
  10809. <h3 id="delete_list-responseschema">Response Schema</h3>
  10810. <p>Status Code <strong>200</strong></p>
  10811. <table>
  10812. <thead>
  10813. <tr>
  10814. <th>Name</th>
  10815. <th>Type</th>
  10816. <th>Required</th>
  10817. <th>Restrictions</th>
  10818. <th>Description</th>
  10819. </tr>
  10820. </thead>
  10821. <tbody>
  10822. <tr>
  10823. <td>» _id</td>
  10824. <td>string</td>
  10825. <td>false</td>
  10826. <td>none</td>
  10827. <td>none</td>
  10828. </tr>
  10829. </tbody>
  10830. </table>
  10831. <aside class="warning">
  10832. To perform this operation, you must be authenticated by means of one of the following methods:
  10833. UserSecurity
  10834. </aside>
  10835. <h1 id="wekan-rest-api-users">Users</h1>
  10836. <h2 id="add_board_member">add_board_member</h2>
  10837. <p><a id="opIdadd_board_member"></a></p>
  10838. <blockquote>
  10839. <p>Code samples</p>
  10840. </blockquote>
  10841. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10842. curl -X POST /api/boards/{board}/members/{user}/add \
  10843. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10844. -H <span class="hljs-string">'Accept: application/json'</span> \
  10845. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10846. </code></pre>
  10847. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{user}/add</span> HTTP/1.1
  10848. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10849. Accept: application/json
  10850. </span></code></pre>
  10851. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10852. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10853. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10854. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10855. };
  10856. $.ajax({
  10857. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/members/{user}/add'</span>,
  10858. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10859. <span class="hljs-attr">headers</span>: headers,
  10860. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10861. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10862. }
  10863. })
  10864. </code></pre>
  10865. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10866. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10867. "action": "string",
  10868. "isAdmin": true,
  10869. "isNoComments": true,
  10870. "isCommentOnly": true
  10871. }'</span>;
  10872. <span class="hljs-keyword">const</span> headers = {
  10873. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10874. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10875. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10876. };
  10877. fetch(<span class="hljs-string">'/api/boards/{board}/members/{user}/add'</span>,
  10878. {
  10879. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10880. <span class="hljs-attr">body</span>: inputBody,
  10881. <span class="hljs-attr">headers</span>: headers
  10882. })
  10883. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10884. <span class="hljs-keyword">return</span> res.json();
  10885. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10886. <span class="hljs-built_in">console</span>.log(body);
  10887. });
  10888. </code></pre>
  10889. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10890. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10891. headers = {
  10892. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10893. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10894. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10895. }
  10896. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/members/{user}/add'</span>,
  10897. <span class="hljs-symbol">params:</span> {
  10898. }, <span class="hljs-symbol">headers:</span> headers
  10899. p JSON.parse(result)
  10900. </code></pre>
  10901. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10902. headers = {
  10903. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10904. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10905. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10906. }
  10907. r = requests.post(<span class="hljs-string">'/api/boards/{board}/members/{user}/add'</span>, params={
  10908. }, headers = headers)
  10909. <span class="hljs-keyword">print</span> r.json()
  10910. </code></pre>
  10911. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/members/{user}/add"</span>);
  10912. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10913. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10914. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10915. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10916. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10917. String inputLine;
  10918. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10919. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10920. response.append(inputLine);
  10921. }
  10922. in.close();
  10923. System.out.println(response.toString());
  10924. </code></pre>
  10925. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10926. <span class="hljs-keyword">import</span> (
  10927. <span class="hljs-string">"bytes"</span>
  10928. <span class="hljs-string">"net/http"</span>
  10929. )
  10930. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10931. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10932. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10933. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10934. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10935. }
  10936. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10937. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/members/{user}/add"</span>, data)
  10938. req.Header = headers
  10939. client := &amp;http.Client{}
  10940. resp, err := client.Do(req)
  10941. <span class="hljs-comment">// ...</span>
  10942. }
  10943. </code></pre>
  10944. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  10945. <p><em>Add New Board Member with Role</em></p>
  10946. <p>Only the admin user (the first user) can call the REST API.</p>
  10947. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  10948. to later change the permissions.</p>
  10949. <blockquote>
  10950. <p>Body parameter</p>
  10951. </blockquote>
  10952. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  10953. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  10954. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  10955. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  10956. </code></pre>
  10957. <h3 id="add_board_member-parameters">Parameters</h3>
  10958. <table>
  10959. <thead>
  10960. <tr>
  10961. <th>Name</th>
  10962. <th>In</th>
  10963. <th>Type</th>
  10964. <th>Required</th>
  10965. <th>Description</th>
  10966. </tr>
  10967. </thead>
  10968. <tbody>
  10969. <tr>
  10970. <td>board</td>
  10971. <td>path</td>
  10972. <td>string</td>
  10973. <td>true</td>
  10974. <td>the board ID</td>
  10975. </tr>
  10976. <tr>
  10977. <td>user</td>
  10978. <td>path</td>
  10979. <td>string</td>
  10980. <td>true</td>
  10981. <td>the user ID</td>
  10982. </tr>
  10983. <tr>
  10984. <td>body</td>
  10985. <td>body</td>
  10986. <td>object</td>
  10987. <td>false</td>
  10988. <td>none</td>
  10989. </tr>
  10990. <tr>
  10991. <td>» action</td>
  10992. <td>body</td>
  10993. <td>string</td>
  10994. <td>true</td>
  10995. <td>the action value</td>
  10996. </tr>
  10997. <tr>
  10998. <td>» isAdmin</td>
  10999. <td>body</td>
  11000. <td>boolean</td>
  11001. <td>true</td>
  11002. <td>is the user an admin of the board</td>
  11003. </tr>
  11004. <tr>
  11005. <td>» isNoComments</td>
  11006. <td>body</td>
  11007. <td>boolean</td>
  11008. <td>true</td>
  11009. <td>disable comments</td>
  11010. </tr>
  11011. <tr>
  11012. <td>» isCommentOnly</td>
  11013. <td>body</td>
  11014. <td>boolean</td>
  11015. <td>true</td>
  11016. <td>only enable comments</td>
  11017. </tr>
  11018. </tbody>
  11019. </table>
  11020. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11021. <p><strong>board</strong>: the board ID</p>
  11022. <p><strong>user</strong>: the user ID</p>
  11023. <blockquote>
  11024. <p>Example responses</p>
  11025. </blockquote>
  11026. <blockquote>
  11027. <p>200 Response</p>
  11028. </blockquote>
  11029. <pre class="highlight tab tab-json"><code>{
  11030. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  11031. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  11032. }
  11033. </code></pre>
  11034. <h3 id="add_board_member-responses">Responses</h3>
  11035. <table>
  11036. <thead>
  11037. <tr>
  11038. <th>Status</th>
  11039. <th>Meaning</th>
  11040. <th>Description</th>
  11041. <th>Schema</th>
  11042. </tr>
  11043. </thead>
  11044. <tbody>
  11045. <tr>
  11046. <td>200</td>
  11047. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11048. <td>200 response</td>
  11049. <td>Inline</td>
  11050. </tr>
  11051. </tbody>
  11052. </table>
  11053. <h3 id="add_board_member-responseschema">Response Schema</h3>
  11054. <p>Status Code <strong>200</strong></p>
  11055. <table>
  11056. <thead>
  11057. <tr>
  11058. <th>Name</th>
  11059. <th>Type</th>
  11060. <th>Required</th>
  11061. <th>Restrictions</th>
  11062. <th>Description</th>
  11063. </tr>
  11064. </thead>
  11065. <tbody>
  11066. <tr>
  11067. <td>» _id</td>
  11068. <td>string</td>
  11069. <td>false</td>
  11070. <td>none</td>
  11071. <td>none</td>
  11072. </tr>
  11073. <tr>
  11074. <td>» title</td>
  11075. <td>string</td>
  11076. <td>false</td>
  11077. <td>none</td>
  11078. <td>none</td>
  11079. </tr>
  11080. </tbody>
  11081. </table>
  11082. <aside class="warning">
  11083. To perform this operation, you must be authenticated by means of one of the following methods:
  11084. UserSecurity
  11085. </aside>
  11086. <h2 id="remove_board_member">remove_board_member</h2>
  11087. <p><a id="opIdremove_board_member"></a></p>
  11088. <blockquote>
  11089. <p>Code samples</p>
  11090. </blockquote>
  11091. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11092. curl -X POST /api/boards/{board}/members/{user}/remove \
  11093. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11094. -H <span class="hljs-string">'Accept: application/json'</span> \
  11095. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11096. </code></pre>
  11097. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{user}/remove</span> HTTP/1.1
  11098. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11099. Accept: application/json
  11100. </span></code></pre>
  11101. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11102. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11103. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11104. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11105. };
  11106. $.ajax({
  11107. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/members/{user}/remove'</span>,
  11108. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  11109. <span class="hljs-attr">headers</span>: headers,
  11110. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11111. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11112. }
  11113. })
  11114. </code></pre>
  11115. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11116. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11117. "action": "string"
  11118. }'</span>;
  11119. <span class="hljs-keyword">const</span> headers = {
  11120. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11121. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11122. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11123. };
  11124. fetch(<span class="hljs-string">'/api/boards/{board}/members/{user}/remove'</span>,
  11125. {
  11126. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  11127. <span class="hljs-attr">body</span>: inputBody,
  11128. <span class="hljs-attr">headers</span>: headers
  11129. })
  11130. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11131. <span class="hljs-keyword">return</span> res.json();
  11132. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11133. <span class="hljs-built_in">console</span>.log(body);
  11134. });
  11135. </code></pre>
  11136. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11137. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11138. headers = {
  11139. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  11140. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11141. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11142. }
  11143. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/members/{user}/remove'</span>,
  11144. <span class="hljs-symbol">params:</span> {
  11145. }, <span class="hljs-symbol">headers:</span> headers
  11146. p JSON.parse(result)
  11147. </code></pre>
  11148. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11149. headers = {
  11150. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  11151. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11152. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11153. }
  11154. r = requests.post(<span class="hljs-string">'/api/boards/{board}/members/{user}/remove'</span>, params={
  11155. }, headers = headers)
  11156. <span class="hljs-keyword">print</span> r.json()
  11157. </code></pre>
  11158. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/members/{user}/remove"</span>);
  11159. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11160. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  11161. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11162. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11163. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11164. String inputLine;
  11165. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11166. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11167. response.append(inputLine);
  11168. }
  11169. in.close();
  11170. System.out.println(response.toString());
  11171. </code></pre>
  11172. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11173. <span class="hljs-keyword">import</span> (
  11174. <span class="hljs-string">"bytes"</span>
  11175. <span class="hljs-string">"net/http"</span>
  11176. )
  11177. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11178. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11179. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11180. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11181. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11182. }
  11183. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11184. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/members/{user}/remove"</span>, data)
  11185. req.Header = headers
  11186. client := &amp;http.Client{}
  11187. resp, err := client.Do(req)
  11188. <span class="hljs-comment">// ...</span>
  11189. }
  11190. </code></pre>
  11191. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  11192. <p><em>Remove Member from Board</em></p>
  11193. <p>Only the admin user (the first user) can call the REST API.</p>
  11194. <blockquote>
  11195. <p>Body parameter</p>
  11196. </blockquote>
  11197. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  11198. </code></pre>
  11199. <h3 id="remove_board_member-parameters">Parameters</h3>
  11200. <table>
  11201. <thead>
  11202. <tr>
  11203. <th>Name</th>
  11204. <th>In</th>
  11205. <th>Type</th>
  11206. <th>Required</th>
  11207. <th>Description</th>
  11208. </tr>
  11209. </thead>
  11210. <tbody>
  11211. <tr>
  11212. <td>board</td>
  11213. <td>path</td>
  11214. <td>string</td>
  11215. <td>true</td>
  11216. <td>the board ID</td>
  11217. </tr>
  11218. <tr>
  11219. <td>user</td>
  11220. <td>path</td>
  11221. <td>string</td>
  11222. <td>true</td>
  11223. <td>the user ID</td>
  11224. </tr>
  11225. <tr>
  11226. <td>body</td>
  11227. <td>body</td>
  11228. <td>object</td>
  11229. <td>false</td>
  11230. <td>none</td>
  11231. </tr>
  11232. <tr>
  11233. <td>» action</td>
  11234. <td>body</td>
  11235. <td>string</td>
  11236. <td>true</td>
  11237. <td>the action (needs to be <code>remove</code>)</td>
  11238. </tr>
  11239. </tbody>
  11240. </table>
  11241. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11242. <p><strong>board</strong>: the board ID</p>
  11243. <p><strong>user</strong>: the user ID</p>
  11244. <blockquote>
  11245. <p>Example responses</p>
  11246. </blockquote>
  11247. <blockquote>
  11248. <p>200 Response</p>
  11249. </blockquote>
  11250. <pre class="highlight tab tab-json"><code>{
  11251. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  11252. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  11253. }
  11254. </code></pre>
  11255. <h3 id="remove_board_member-responses">Responses</h3>
  11256. <table>
  11257. <thead>
  11258. <tr>
  11259. <th>Status</th>
  11260. <th>Meaning</th>
  11261. <th>Description</th>
  11262. <th>Schema</th>
  11263. </tr>
  11264. </thead>
  11265. <tbody>
  11266. <tr>
  11267. <td>200</td>
  11268. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11269. <td>200 response</td>
  11270. <td>Inline</td>
  11271. </tr>
  11272. </tbody>
  11273. </table>
  11274. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  11275. <p>Status Code <strong>200</strong></p>
  11276. <table>
  11277. <thead>
  11278. <tr>
  11279. <th>Name</th>
  11280. <th>Type</th>
  11281. <th>Required</th>
  11282. <th>Restrictions</th>
  11283. <th>Description</th>
  11284. </tr>
  11285. </thead>
  11286. <tbody>
  11287. <tr>
  11288. <td>» _id</td>
  11289. <td>string</td>
  11290. <td>false</td>
  11291. <td>none</td>
  11292. <td>none</td>
  11293. </tr>
  11294. <tr>
  11295. <td>» title</td>
  11296. <td>string</td>
  11297. <td>false</td>
  11298. <td>none</td>
  11299. <td>none</td>
  11300. </tr>
  11301. </tbody>
  11302. </table>
  11303. <aside class="warning">
  11304. To perform this operation, you must be authenticated by means of one of the following methods:
  11305. UserSecurity
  11306. </aside>
  11307. <h2 id="get_current_user">get_current_user</h2>
  11308. <p><a id="opIdget_current_user"></a></p>
  11309. <blockquote>
  11310. <p>Code samples</p>
  11311. </blockquote>
  11312. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11313. curl -X GET /api/user \
  11314. -H <span class="hljs-string">'Accept: application/json'</span> \
  11315. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11316. </code></pre>
  11317. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/user</span> HTTP/1.1
  11318. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11319. <span class="undefined"></span></span></code></pre>
  11320. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11321. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11322. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11323. };
  11324. $.ajax({
  11325. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/user'</span>,
  11326. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11327. <span class="hljs-attr">headers</span>: headers,
  11328. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11329. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11330. }
  11331. })
  11332. </code></pre>
  11333. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11334. <span class="hljs-keyword">const</span> headers = {
  11335. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11336. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11337. };
  11338. fetch(<span class="hljs-string">'/api/user'</span>,
  11339. {
  11340. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11341. <span class="hljs-attr">headers</span>: headers
  11342. })
  11343. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11344. <span class="hljs-keyword">return</span> res.json();
  11345. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11346. <span class="hljs-built_in">console</span>.log(body);
  11347. });
  11348. </code></pre>
  11349. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11350. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11351. headers = {
  11352. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11353. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11354. }
  11355. result = RestClient.get <span class="hljs-string">'/api/user'</span>,
  11356. <span class="hljs-symbol">params:</span> {
  11357. }, <span class="hljs-symbol">headers:</span> headers
  11358. p JSON.parse(result)
  11359. </code></pre>
  11360. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11361. headers = {
  11362. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11363. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11364. }
  11365. r = requests.get(<span class="hljs-string">'/api/user'</span>, params={
  11366. }, headers = headers)
  11367. <span class="hljs-keyword">print</span> r.json()
  11368. </code></pre>
  11369. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/user"</span>);
  11370. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11371. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11372. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11373. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11374. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11375. String inputLine;
  11376. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11377. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11378. response.append(inputLine);
  11379. }
  11380. in.close();
  11381. System.out.println(response.toString());
  11382. </code></pre>
  11383. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11384. <span class="hljs-keyword">import</span> (
  11385. <span class="hljs-string">"bytes"</span>
  11386. <span class="hljs-string">"net/http"</span>
  11387. )
  11388. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11389. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11390. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11391. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11392. }
  11393. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11394. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/user"</span>, data)
  11395. req.Header = headers
  11396. client := &amp;http.Client{}
  11397. resp, err := client.Do(req)
  11398. <span class="hljs-comment">// ...</span>
  11399. }
  11400. </code></pre>
  11401. <p><code>GET /api/user</code></p>
  11402. <p><em>returns the current user</em></p>
  11403. <blockquote>
  11404. <p>Example responses</p>
  11405. </blockquote>
  11406. <blockquote>
  11407. <p>200 Response</p>
  11408. </blockquote>
  11409. <pre class="highlight tab tab-json"><code>{
  11410. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>,
  11411. <span class="hljs-attr">"emails"</span>: [
  11412. {
  11413. <span class="hljs-attr">"address"</span>: <span class="hljs-string">"string"</span>,
  11414. <span class="hljs-attr">"verified"</span>: <span class="hljs-literal">true</span>
  11415. }
  11416. ],
  11417. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11418. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11419. <span class="hljs-attr">"profile"</span>: {
  11420. <span class="hljs-attr">"avatarUrl"</span>: <span class="hljs-string">"string"</span>,
  11421. <span class="hljs-attr">"emailBuffer"</span>: [
  11422. <span class="hljs-string">"string"</span>
  11423. ],
  11424. <span class="hljs-attr">"fullname"</span>: <span class="hljs-string">"string"</span>,
  11425. <span class="hljs-attr">"showDesktopDragHandles"</span>: <span class="hljs-literal">true</span>,
  11426. <span class="hljs-attr">"hideCheckedItems"</span>: <span class="hljs-literal">true</span>,
  11427. <span class="hljs-attr">"hiddenSystemMessages"</span>: <span class="hljs-literal">true</span>,
  11428. <span class="hljs-attr">"hiddenMinicardLabelText"</span>: <span class="hljs-literal">true</span>,
  11429. <span class="hljs-attr">"initials"</span>: <span class="hljs-string">"string"</span>,
  11430. <span class="hljs-attr">"invitedBoards"</span>: [
  11431. <span class="hljs-string">"string"</span>
  11432. ],
  11433. <span class="hljs-attr">"language"</span>: <span class="hljs-string">"string"</span>,
  11434. <span class="hljs-attr">"notifications"</span>: [],
  11435. <span class="hljs-attr">"activity"</span>: <span class="hljs-string">"string"</span>,
  11436. <span class="hljs-attr">"read"</span>: <span class="hljs-string">"string"</span>,
  11437. <span class="hljs-attr">"showCardsCountAt"</span>: <span class="hljs-number">0</span>,
  11438. <span class="hljs-attr">"startDayOfWeek"</span>: <span class="hljs-number">0</span>,
  11439. <span class="hljs-attr">"starredBoards"</span>: [
  11440. <span class="hljs-string">"string"</span>
  11441. ],
  11442. <span class="hljs-attr">"icode"</span>: <span class="hljs-string">"string"</span>,
  11443. <span class="hljs-attr">"boardView"</span>: <span class="hljs-string">"board-view-swimlanes"</span>,
  11444. <span class="hljs-attr">"listSortBy"</span>: <span class="hljs-string">"-modifiedat"</span>,
  11445. <span class="hljs-attr">"templatesBoardId"</span>: <span class="hljs-string">"string"</span>,
  11446. <span class="hljs-attr">"cardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  11447. <span class="hljs-attr">"listTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  11448. <span class="hljs-attr">"boardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  11449. },
  11450. <span class="hljs-attr">"services"</span>: {},
  11451. <span class="hljs-attr">"heartbeat"</span>: <span class="hljs-string">"string"</span>,
  11452. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  11453. <span class="hljs-attr">"createdThroughApi"</span>: <span class="hljs-literal">true</span>,
  11454. <span class="hljs-attr">"loginDisabled"</span>: <span class="hljs-literal">true</span>,
  11455. <span class="hljs-attr">"authenticationMethod"</span>: <span class="hljs-string">"string"</span>
  11456. }
  11457. </code></pre>
  11458. <h3 id="get_current_user-responses">Responses</h3>
  11459. <table>
  11460. <thead>
  11461. <tr>
  11462. <th>Status</th>
  11463. <th>Meaning</th>
  11464. <th>Description</th>
  11465. <th>Schema</th>
  11466. </tr>
  11467. </thead>
  11468. <tbody>
  11469. <tr>
  11470. <td>200</td>
  11471. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11472. <td>200 response</td>
  11473. <td><a href="#schemausers">Users</a></td>
  11474. </tr>
  11475. </tbody>
  11476. </table>
  11477. <aside class="warning">
  11478. To perform this operation, you must be authenticated by means of one of the following methods:
  11479. UserSecurity
  11480. </aside>
  11481. <h2 id="get_all_users">get_all_users</h2>
  11482. <p><a id="opIdget_all_users"></a></p>
  11483. <blockquote>
  11484. <p>Code samples</p>
  11485. </blockquote>
  11486. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11487. curl -X GET /api/users \
  11488. -H <span class="hljs-string">'Accept: application/json'</span> \
  11489. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11490. </code></pre>
  11491. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users</span> HTTP/1.1
  11492. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11493. <span class="undefined"></span></span></code></pre>
  11494. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11495. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11496. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11497. };
  11498. $.ajax({
  11499. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users'</span>,
  11500. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11501. <span class="hljs-attr">headers</span>: headers,
  11502. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11503. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11504. }
  11505. })
  11506. </code></pre>
  11507. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11508. <span class="hljs-keyword">const</span> headers = {
  11509. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11510. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11511. };
  11512. fetch(<span class="hljs-string">'/api/users'</span>,
  11513. {
  11514. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11515. <span class="hljs-attr">headers</span>: headers
  11516. })
  11517. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11518. <span class="hljs-keyword">return</span> res.json();
  11519. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11520. <span class="hljs-built_in">console</span>.log(body);
  11521. });
  11522. </code></pre>
  11523. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11524. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11525. headers = {
  11526. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11527. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11528. }
  11529. result = RestClient.get <span class="hljs-string">'/api/users'</span>,
  11530. <span class="hljs-symbol">params:</span> {
  11531. }, <span class="hljs-symbol">headers:</span> headers
  11532. p JSON.parse(result)
  11533. </code></pre>
  11534. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11535. headers = {
  11536. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11537. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11538. }
  11539. r = requests.get(<span class="hljs-string">'/api/users'</span>, params={
  11540. }, headers = headers)
  11541. <span class="hljs-keyword">print</span> r.json()
  11542. </code></pre>
  11543. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users"</span>);
  11544. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11545. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11546. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11547. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11548. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11549. String inputLine;
  11550. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11551. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11552. response.append(inputLine);
  11553. }
  11554. in.close();
  11555. System.out.println(response.toString());
  11556. </code></pre>
  11557. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11558. <span class="hljs-keyword">import</span> (
  11559. <span class="hljs-string">"bytes"</span>
  11560. <span class="hljs-string">"net/http"</span>
  11561. )
  11562. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11563. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11564. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11565. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11566. }
  11567. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11568. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/users"</span>, data)
  11569. req.Header = headers
  11570. client := &amp;http.Client{}
  11571. resp, err := client.Do(req)
  11572. <span class="hljs-comment">// ...</span>
  11573. }
  11574. </code></pre>
  11575. <p><code>GET /api/users</code></p>
  11576. <p><em>return all the users</em></p>
  11577. <p>Only the admin user (the first user) can call the REST API.</p>
  11578. <blockquote>
  11579. <p>Example responses</p>
  11580. </blockquote>
  11581. <blockquote>
  11582. <p>200 Response</p>
  11583. </blockquote>
  11584. <pre class="highlight tab tab-json"><code>[
  11585. {
  11586. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  11587. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>
  11588. }
  11589. ]
  11590. </code></pre>
  11591. <h3 id="get_all_users-responses">Responses</h3>
  11592. <table>
  11593. <thead>
  11594. <tr>
  11595. <th>Status</th>
  11596. <th>Meaning</th>
  11597. <th>Description</th>
  11598. <th>Schema</th>
  11599. </tr>
  11600. </thead>
  11601. <tbody>
  11602. <tr>
  11603. <td>200</td>
  11604. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11605. <td>200 response</td>
  11606. <td>Inline</td>
  11607. </tr>
  11608. </tbody>
  11609. </table>
  11610. <h3 id="get_all_users-responseschema">Response Schema</h3>
  11611. <p>Status Code <strong>200</strong></p>
  11612. <table>
  11613. <thead>
  11614. <tr>
  11615. <th>Name</th>
  11616. <th>Type</th>
  11617. <th>Required</th>
  11618. <th>Restrictions</th>
  11619. <th>Description</th>
  11620. </tr>
  11621. </thead>
  11622. <tbody>
  11623. <tr>
  11624. <td>» _id</td>
  11625. <td>string</td>
  11626. <td>false</td>
  11627. <td>none</td>
  11628. <td>none</td>
  11629. </tr>
  11630. <tr>
  11631. <td>» username</td>
  11632. <td>string</td>
  11633. <td>false</td>
  11634. <td>none</td>
  11635. <td>none</td>
  11636. </tr>
  11637. </tbody>
  11638. </table>
  11639. <aside class="warning">
  11640. To perform this operation, you must be authenticated by means of one of the following methods:
  11641. UserSecurity
  11642. </aside>
  11643. <h2 id="new_user">new_user</h2>
  11644. <p><a id="opIdnew_user"></a></p>
  11645. <blockquote>
  11646. <p>Code samples</p>
  11647. </blockquote>
  11648. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11649. curl -X POST /api/users \
  11650. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11651. -H <span class="hljs-string">'Accept: application/json'</span> \
  11652. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11653. </code></pre>
  11654. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/users</span> HTTP/1.1
  11655. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11656. Accept: application/json
  11657. </span></code></pre>
  11658. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11659. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11660. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11661. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11662. };
  11663. $.ajax({
  11664. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users'</span>,
  11665. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  11666. <span class="hljs-attr">headers</span>: headers,
  11667. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11668. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11669. }
  11670. })
  11671. </code></pre>
  11672. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11673. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11674. "username": "string",
  11675. "email": "string",
  11676. "password": "string"
  11677. }'</span>;
  11678. <span class="hljs-keyword">const</span> headers = {
  11679. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11680. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11681. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11682. };
  11683. fetch(<span class="hljs-string">'/api/users'</span>,
  11684. {
  11685. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  11686. <span class="hljs-attr">body</span>: inputBody,
  11687. <span class="hljs-attr">headers</span>: headers
  11688. })
  11689. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11690. <span class="hljs-keyword">return</span> res.json();
  11691. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11692. <span class="hljs-built_in">console</span>.log(body);
  11693. });
  11694. </code></pre>
  11695. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11696. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11697. headers = {
  11698. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  11699. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11700. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11701. }
  11702. result = RestClient.post <span class="hljs-string">'/api/users'</span>,
  11703. <span class="hljs-symbol">params:</span> {
  11704. }, <span class="hljs-symbol">headers:</span> headers
  11705. p JSON.parse(result)
  11706. </code></pre>
  11707. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11708. headers = {
  11709. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  11710. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11711. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11712. }
  11713. r = requests.post(<span class="hljs-string">'/api/users'</span>, params={
  11714. }, headers = headers)
  11715. <span class="hljs-keyword">print</span> r.json()
  11716. </code></pre>
  11717. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users"</span>);
  11718. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11719. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  11720. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11721. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11722. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11723. String inputLine;
  11724. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11725. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11726. response.append(inputLine);
  11727. }
  11728. in.close();
  11729. System.out.println(response.toString());
  11730. </code></pre>
  11731. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11732. <span class="hljs-keyword">import</span> (
  11733. <span class="hljs-string">"bytes"</span>
  11734. <span class="hljs-string">"net/http"</span>
  11735. )
  11736. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11737. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11738. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11739. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11740. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11741. }
  11742. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11743. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/users"</span>, data)
  11744. req.Header = headers
  11745. client := &amp;http.Client{}
  11746. resp, err := client.Do(req)
  11747. <span class="hljs-comment">// ...</span>
  11748. }
  11749. </code></pre>
  11750. <p><code>POST /api/users</code></p>
  11751. <p><em>Create a new user</em></p>
  11752. <p>Only the admin user (the first user) can call the REST API.</p>
  11753. <blockquote>
  11754. <p>Body parameter</p>
  11755. </blockquote>
  11756. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  11757. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  11758. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  11759. </code></pre>
  11760. <h3 id="new_user-parameters">Parameters</h3>
  11761. <table>
  11762. <thead>
  11763. <tr>
  11764. <th>Name</th>
  11765. <th>In</th>
  11766. <th>Type</th>
  11767. <th>Required</th>
  11768. <th>Description</th>
  11769. </tr>
  11770. </thead>
  11771. <tbody>
  11772. <tr>
  11773. <td>body</td>
  11774. <td>body</td>
  11775. <td>object</td>
  11776. <td>false</td>
  11777. <td>none</td>
  11778. </tr>
  11779. <tr>
  11780. <td>» username</td>
  11781. <td>body</td>
  11782. <td>string</td>
  11783. <td>true</td>
  11784. <td>the new username</td>
  11785. </tr>
  11786. <tr>
  11787. <td>» email</td>
  11788. <td>body</td>
  11789. <td>string</td>
  11790. <td>true</td>
  11791. <td>the email of the new user</td>
  11792. </tr>
  11793. <tr>
  11794. <td>» password</td>
  11795. <td>body</td>
  11796. <td>string</td>
  11797. <td>true</td>
  11798. <td>the password of the new user</td>
  11799. </tr>
  11800. </tbody>
  11801. </table>
  11802. <blockquote>
  11803. <p>Example responses</p>
  11804. </blockquote>
  11805. <blockquote>
  11806. <p>200 Response</p>
  11807. </blockquote>
  11808. <pre class="highlight tab tab-json"><code>{
  11809. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11810. }
  11811. </code></pre>
  11812. <h3 id="new_user-responses">Responses</h3>
  11813. <table>
  11814. <thead>
  11815. <tr>
  11816. <th>Status</th>
  11817. <th>Meaning</th>
  11818. <th>Description</th>
  11819. <th>Schema</th>
  11820. </tr>
  11821. </thead>
  11822. <tbody>
  11823. <tr>
  11824. <td>200</td>
  11825. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11826. <td>200 response</td>
  11827. <td>Inline</td>
  11828. </tr>
  11829. </tbody>
  11830. </table>
  11831. <h3 id="new_user-responseschema">Response Schema</h3>
  11832. <p>Status Code <strong>200</strong></p>
  11833. <table>
  11834. <thead>
  11835. <tr>
  11836. <th>Name</th>
  11837. <th>Type</th>
  11838. <th>Required</th>
  11839. <th>Restrictions</th>
  11840. <th>Description</th>
  11841. </tr>
  11842. </thead>
  11843. <tbody>
  11844. <tr>
  11845. <td>» _id</td>
  11846. <td>string</td>
  11847. <td>false</td>
  11848. <td>none</td>
  11849. <td>none</td>
  11850. </tr>
  11851. </tbody>
  11852. </table>
  11853. <aside class="warning">
  11854. To perform this operation, you must be authenticated by means of one of the following methods:
  11855. UserSecurity
  11856. </aside>
  11857. <h2 id="get_user">get_user</h2>
  11858. <p><a id="opIdget_user"></a></p>
  11859. <blockquote>
  11860. <p>Code samples</p>
  11861. </blockquote>
  11862. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11863. curl -X GET /api/users/{user} \
  11864. -H <span class="hljs-string">'Accept: application/json'</span> \
  11865. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11866. </code></pre>
  11867. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users/{user}</span> HTTP/1.1
  11868. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11869. <span class="undefined"></span></span></code></pre>
  11870. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11871. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11872. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11873. };
  11874. $.ajax({
  11875. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}'</span>,
  11876. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11877. <span class="hljs-attr">headers</span>: headers,
  11878. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11879. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11880. }
  11881. })
  11882. </code></pre>
  11883. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11884. <span class="hljs-keyword">const</span> headers = {
  11885. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11886. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11887. };
  11888. fetch(<span class="hljs-string">'/api/users/{user}'</span>,
  11889. {
  11890. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11891. <span class="hljs-attr">headers</span>: headers
  11892. })
  11893. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11894. <span class="hljs-keyword">return</span> res.json();
  11895. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11896. <span class="hljs-built_in">console</span>.log(body);
  11897. });
  11898. </code></pre>
  11899. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11900. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11901. headers = {
  11902. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11903. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11904. }
  11905. result = RestClient.get <span class="hljs-string">'/api/users/{user}'</span>,
  11906. <span class="hljs-symbol">params:</span> {
  11907. }, <span class="hljs-symbol">headers:</span> headers
  11908. p JSON.parse(result)
  11909. </code></pre>
  11910. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11911. headers = {
  11912. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11913. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11914. }
  11915. r = requests.get(<span class="hljs-string">'/api/users/{user}'</span>, params={
  11916. }, headers = headers)
  11917. <span class="hljs-keyword">print</span> r.json()
  11918. </code></pre>
  11919. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}"</span>);
  11920. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11921. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11922. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11923. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11924. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11925. String inputLine;
  11926. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11927. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11928. response.append(inputLine);
  11929. }
  11930. in.close();
  11931. System.out.println(response.toString());
  11932. </code></pre>
  11933. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11934. <span class="hljs-keyword">import</span> (
  11935. <span class="hljs-string">"bytes"</span>
  11936. <span class="hljs-string">"net/http"</span>
  11937. )
  11938. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11939. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11940. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11941. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11942. }
  11943. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11944. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/users/{user}"</span>, data)
  11945. req.Header = headers
  11946. client := &amp;http.Client{}
  11947. resp, err := client.Do(req)
  11948. <span class="hljs-comment">// ...</span>
  11949. }
  11950. </code></pre>
  11951. <p><code>GET /api/users/{user}</code></p>
  11952. <p><em>get a given user</em></p>
  11953. <p>Only the admin user (the first user) can call the REST API.</p>
  11954. <h3 id="get_user-parameters">Parameters</h3>
  11955. <table>
  11956. <thead>
  11957. <tr>
  11958. <th>Name</th>
  11959. <th>In</th>
  11960. <th>Type</th>
  11961. <th>Required</th>
  11962. <th>Description</th>
  11963. </tr>
  11964. </thead>
  11965. <tbody>
  11966. <tr>
  11967. <td>user</td>
  11968. <td>path</td>
  11969. <td>string</td>
  11970. <td>true</td>
  11971. <td>the user ID</td>
  11972. </tr>
  11973. </tbody>
  11974. </table>
  11975. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11976. <p><strong>user</strong>: the user ID</p>
  11977. <blockquote>
  11978. <p>Example responses</p>
  11979. </blockquote>
  11980. <blockquote>
  11981. <p>200 Response</p>
  11982. </blockquote>
  11983. <pre class="highlight tab tab-json"><code>{
  11984. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>,
  11985. <span class="hljs-attr">"emails"</span>: [
  11986. {
  11987. <span class="hljs-attr">"address"</span>: <span class="hljs-string">"string"</span>,
  11988. <span class="hljs-attr">"verified"</span>: <span class="hljs-literal">true</span>
  11989. }
  11990. ],
  11991. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11992. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11993. <span class="hljs-attr">"profile"</span>: {
  11994. <span class="hljs-attr">"avatarUrl"</span>: <span class="hljs-string">"string"</span>,
  11995. <span class="hljs-attr">"emailBuffer"</span>: [
  11996. <span class="hljs-string">"string"</span>
  11997. ],
  11998. <span class="hljs-attr">"fullname"</span>: <span class="hljs-string">"string"</span>,
  11999. <span class="hljs-attr">"showDesktopDragHandles"</span>: <span class="hljs-literal">true</span>,
  12000. <span class="hljs-attr">"hideCheckedItems"</span>: <span class="hljs-literal">true</span>,
  12001. <span class="hljs-attr">"hiddenSystemMessages"</span>: <span class="hljs-literal">true</span>,
  12002. <span class="hljs-attr">"hiddenMinicardLabelText"</span>: <span class="hljs-literal">true</span>,
  12003. <span class="hljs-attr">"initials"</span>: <span class="hljs-string">"string"</span>,
  12004. <span class="hljs-attr">"invitedBoards"</span>: [
  12005. <span class="hljs-string">"string"</span>
  12006. ],
  12007. <span class="hljs-attr">"language"</span>: <span class="hljs-string">"string"</span>,
  12008. <span class="hljs-attr">"notifications"</span>: [],
  12009. <span class="hljs-attr">"activity"</span>: <span class="hljs-string">"string"</span>,
  12010. <span class="hljs-attr">"read"</span>: <span class="hljs-string">"string"</span>,
  12011. <span class="hljs-attr">"showCardsCountAt"</span>: <span class="hljs-number">0</span>,
  12012. <span class="hljs-attr">"startDayOfWeek"</span>: <span class="hljs-number">0</span>,
  12013. <span class="hljs-attr">"starredBoards"</span>: [
  12014. <span class="hljs-string">"string"</span>
  12015. ],
  12016. <span class="hljs-attr">"icode"</span>: <span class="hljs-string">"string"</span>,
  12017. <span class="hljs-attr">"boardView"</span>: <span class="hljs-string">"board-view-swimlanes"</span>,
  12018. <span class="hljs-attr">"listSortBy"</span>: <span class="hljs-string">"-modifiedat"</span>,
  12019. <span class="hljs-attr">"templatesBoardId"</span>: <span class="hljs-string">"string"</span>,
  12020. <span class="hljs-attr">"cardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  12021. <span class="hljs-attr">"listTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  12022. <span class="hljs-attr">"boardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  12023. },
  12024. <span class="hljs-attr">"services"</span>: {},
  12025. <span class="hljs-attr">"heartbeat"</span>: <span class="hljs-string">"string"</span>,
  12026. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  12027. <span class="hljs-attr">"createdThroughApi"</span>: <span class="hljs-literal">true</span>,
  12028. <span class="hljs-attr">"loginDisabled"</span>: <span class="hljs-literal">true</span>,
  12029. <span class="hljs-attr">"authenticationMethod"</span>: <span class="hljs-string">"string"</span>
  12030. }
  12031. </code></pre>
  12032. <h3 id="get_user-responses">Responses</h3>
  12033. <table>
  12034. <thead>
  12035. <tr>
  12036. <th>Status</th>
  12037. <th>Meaning</th>
  12038. <th>Description</th>
  12039. <th>Schema</th>
  12040. </tr>
  12041. </thead>
  12042. <tbody>
  12043. <tr>
  12044. <td>200</td>
  12045. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12046. <td>200 response</td>
  12047. <td><a href="#schemausers">Users</a></td>
  12048. </tr>
  12049. </tbody>
  12050. </table>
  12051. <aside class="warning">
  12052. To perform this operation, you must be authenticated by means of one of the following methods:
  12053. UserSecurity
  12054. </aside>
  12055. <h2 id="edit_user">edit_user</h2>
  12056. <p><a id="opIdedit_user"></a></p>
  12057. <blockquote>
  12058. <p>Code samples</p>
  12059. </blockquote>
  12060. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12061. curl -X PUT /api/users/{user} \
  12062. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  12063. -H <span class="hljs-string">'Accept: application/json'</span> \
  12064. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12065. </code></pre>
  12066. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/users/{user}</span> HTTP/1.1
  12067. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12068. Accept: application/json
  12069. </span></code></pre>
  12070. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12071. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12072. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12073. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12074. };
  12075. $.ajax({
  12076. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}'</span>,
  12077. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  12078. <span class="hljs-attr">headers</span>: headers,
  12079. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12080. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12081. }
  12082. })
  12083. </code></pre>
  12084. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12085. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  12086. "action": "string"
  12087. }'</span>;
  12088. <span class="hljs-keyword">const</span> headers = {
  12089. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12090. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12091. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12092. };
  12093. fetch(<span class="hljs-string">'/api/users/{user}'</span>,
  12094. {
  12095. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  12096. <span class="hljs-attr">body</span>: inputBody,
  12097. <span class="hljs-attr">headers</span>: headers
  12098. })
  12099. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12100. <span class="hljs-keyword">return</span> res.json();
  12101. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12102. <span class="hljs-built_in">console</span>.log(body);
  12103. });
  12104. </code></pre>
  12105. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12106. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12107. headers = {
  12108. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  12109. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12110. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12111. }
  12112. result = RestClient.put <span class="hljs-string">'/api/users/{user}'</span>,
  12113. <span class="hljs-symbol">params:</span> {
  12114. }, <span class="hljs-symbol">headers:</span> headers
  12115. p JSON.parse(result)
  12116. </code></pre>
  12117. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12118. headers = {
  12119. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  12120. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12121. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12122. }
  12123. r = requests.put(<span class="hljs-string">'/api/users/{user}'</span>, params={
  12124. }, headers = headers)
  12125. <span class="hljs-keyword">print</span> r.json()
  12126. </code></pre>
  12127. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}"</span>);
  12128. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12129. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  12130. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12131. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12132. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12133. String inputLine;
  12134. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12135. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12136. response.append(inputLine);
  12137. }
  12138. in.close();
  12139. System.out.println(response.toString());
  12140. </code></pre>
  12141. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12142. <span class="hljs-keyword">import</span> (
  12143. <span class="hljs-string">"bytes"</span>
  12144. <span class="hljs-string">"net/http"</span>
  12145. )
  12146. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12147. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12148. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  12149. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12150. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12151. }
  12152. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12153. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/users/{user}"</span>, data)
  12154. req.Header = headers
  12155. client := &amp;http.Client{}
  12156. resp, err := client.Do(req)
  12157. <span class="hljs-comment">// ...</span>
  12158. }
  12159. </code></pre>
  12160. <p><code>PUT /api/users/{user}</code></p>
  12161. <p><em>edit a given user</em></p>
  12162. <p>Only the admin user (the first user) can call the REST API.</p>
  12163. <p>Possible values for <em>action</em>:</p>
  12164. <ul>
  12165. <li><code>takeOwnership</code>: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.</li>
  12166. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  12167. <li><code>enableLogin</code>: Enable a user</li>
  12168. </ul>
  12169. <blockquote>
  12170. <p>Body parameter</p>
  12171. </blockquote>
  12172. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  12173. </code></pre>
  12174. <h3 id="edit_user-parameters">Parameters</h3>
  12175. <table>
  12176. <thead>
  12177. <tr>
  12178. <th>Name</th>
  12179. <th>In</th>
  12180. <th>Type</th>
  12181. <th>Required</th>
  12182. <th>Description</th>
  12183. </tr>
  12184. </thead>
  12185. <tbody>
  12186. <tr>
  12187. <td>user</td>
  12188. <td>path</td>
  12189. <td>string</td>
  12190. <td>true</td>
  12191. <td>the user ID</td>
  12192. </tr>
  12193. <tr>
  12194. <td>body</td>
  12195. <td>body</td>
  12196. <td>object</td>
  12197. <td>false</td>
  12198. <td>none</td>
  12199. </tr>
  12200. <tr>
  12201. <td>» action</td>
  12202. <td>body</td>
  12203. <td>string</td>
  12204. <td>true</td>
  12205. <td>the action</td>
  12206. </tr>
  12207. </tbody>
  12208. </table>
  12209. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12210. <p><strong>user</strong>: the user ID</p>
  12211. <blockquote>
  12212. <p>Example responses</p>
  12213. </blockquote>
  12214. <blockquote>
  12215. <p>200 Response</p>
  12216. </blockquote>
  12217. <pre class="highlight tab tab-json"><code>{
  12218. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  12219. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  12220. }
  12221. </code></pre>
  12222. <h3 id="edit_user-responses">Responses</h3>
  12223. <table>
  12224. <thead>
  12225. <tr>
  12226. <th>Status</th>
  12227. <th>Meaning</th>
  12228. <th>Description</th>
  12229. <th>Schema</th>
  12230. </tr>
  12231. </thead>
  12232. <tbody>
  12233. <tr>
  12234. <td>200</td>
  12235. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12236. <td>200 response</td>
  12237. <td>Inline</td>
  12238. </tr>
  12239. </tbody>
  12240. </table>
  12241. <h3 id="edit_user-responseschema">Response Schema</h3>
  12242. <p>Status Code <strong>200</strong></p>
  12243. <table>
  12244. <thead>
  12245. <tr>
  12246. <th>Name</th>
  12247. <th>Type</th>
  12248. <th>Required</th>
  12249. <th>Restrictions</th>
  12250. <th>Description</th>
  12251. </tr>
  12252. </thead>
  12253. <tbody>
  12254. <tr>
  12255. <td>» _id</td>
  12256. <td>string</td>
  12257. <td>false</td>
  12258. <td>none</td>
  12259. <td>none</td>
  12260. </tr>
  12261. <tr>
  12262. <td>» title</td>
  12263. <td>string</td>
  12264. <td>false</td>
  12265. <td>none</td>
  12266. <td>none</td>
  12267. </tr>
  12268. </tbody>
  12269. </table>
  12270. <aside class="warning">
  12271. To perform this operation, you must be authenticated by means of one of the following methods:
  12272. UserSecurity
  12273. </aside>
  12274. <h2 id="delete_user">delete_user</h2>
  12275. <p><a id="opIddelete_user"></a></p>
  12276. <blockquote>
  12277. <p>Code samples</p>
  12278. </blockquote>
  12279. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12280. curl -X DELETE /api/users/{user} \
  12281. -H <span class="hljs-string">'Accept: application/json'</span> \
  12282. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12283. </code></pre>
  12284. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/users/{user}</span> HTTP/1.1
  12285. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12286. <span class="undefined"></span></span></code></pre>
  12287. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12288. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12289. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12290. };
  12291. $.ajax({
  12292. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}'</span>,
  12293. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  12294. <span class="hljs-attr">headers</span>: headers,
  12295. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12296. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12297. }
  12298. })
  12299. </code></pre>
  12300. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12301. <span class="hljs-keyword">const</span> headers = {
  12302. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12303. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12304. };
  12305. fetch(<span class="hljs-string">'/api/users/{user}'</span>,
  12306. {
  12307. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  12308. <span class="hljs-attr">headers</span>: headers
  12309. })
  12310. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12311. <span class="hljs-keyword">return</span> res.json();
  12312. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12313. <span class="hljs-built_in">console</span>.log(body);
  12314. });
  12315. </code></pre>
  12316. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12317. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12318. headers = {
  12319. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12320. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12321. }
  12322. result = RestClient.delete <span class="hljs-string">'/api/users/{user}'</span>,
  12323. <span class="hljs-symbol">params:</span> {
  12324. }, <span class="hljs-symbol">headers:</span> headers
  12325. p JSON.parse(result)
  12326. </code></pre>
  12327. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12328. headers = {
  12329. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12330. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12331. }
  12332. r = requests.delete(<span class="hljs-string">'/api/users/{user}'</span>, params={
  12333. }, headers = headers)
  12334. <span class="hljs-keyword">print</span> r.json()
  12335. </code></pre>
  12336. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}"</span>);
  12337. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12338. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  12339. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12340. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12341. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12342. String inputLine;
  12343. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12344. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12345. response.append(inputLine);
  12346. }
  12347. in.close();
  12348. System.out.println(response.toString());
  12349. </code></pre>
  12350. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12351. <span class="hljs-keyword">import</span> (
  12352. <span class="hljs-string">"bytes"</span>
  12353. <span class="hljs-string">"net/http"</span>
  12354. )
  12355. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12356. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12357. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12358. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12359. }
  12360. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12361. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/users/{user}"</span>, data)
  12362. req.Header = headers
  12363. client := &amp;http.Client{}
  12364. resp, err := client.Do(req)
  12365. <span class="hljs-comment">// ...</span>
  12366. }
  12367. </code></pre>
  12368. <p><code>DELETE /api/users/{user}</code></p>
  12369. <p><em>Delete a user</em></p>
  12370. <p>Only the admin user (the first user) can call the REST API.</p>
  12371. <h3 id="delete_user-parameters">Parameters</h3>
  12372. <table>
  12373. <thead>
  12374. <tr>
  12375. <th>Name</th>
  12376. <th>In</th>
  12377. <th>Type</th>
  12378. <th>Required</th>
  12379. <th>Description</th>
  12380. </tr>
  12381. </thead>
  12382. <tbody>
  12383. <tr>
  12384. <td>user</td>
  12385. <td>path</td>
  12386. <td>string</td>
  12387. <td>true</td>
  12388. <td>the ID of the user to delete</td>
  12389. </tr>
  12390. </tbody>
  12391. </table>
  12392. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12393. <p><strong>user</strong>: the ID of the user to delete</p>
  12394. <blockquote>
  12395. <p>Example responses</p>
  12396. </blockquote>
  12397. <blockquote>
  12398. <p>200 Response</p>
  12399. </blockquote>
  12400. <pre class="highlight tab tab-json"><code>{
  12401. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  12402. }
  12403. </code></pre>
  12404. <h3 id="delete_user-responses">Responses</h3>
  12405. <table>
  12406. <thead>
  12407. <tr>
  12408. <th>Status</th>
  12409. <th>Meaning</th>
  12410. <th>Description</th>
  12411. <th>Schema</th>
  12412. </tr>
  12413. </thead>
  12414. <tbody>
  12415. <tr>
  12416. <td>200</td>
  12417. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12418. <td>200 response</td>
  12419. <td>Inline</td>
  12420. </tr>
  12421. </tbody>
  12422. </table>
  12423. <h3 id="delete_user-responseschema">Response Schema</h3>
  12424. <p>Status Code <strong>200</strong></p>
  12425. <table>
  12426. <thead>
  12427. <tr>
  12428. <th>Name</th>
  12429. <th>Type</th>
  12430. <th>Required</th>
  12431. <th>Restrictions</th>
  12432. <th>Description</th>
  12433. </tr>
  12434. </thead>
  12435. <tbody>
  12436. <tr>
  12437. <td>» _id</td>
  12438. <td>string</td>
  12439. <td>false</td>
  12440. <td>none</td>
  12441. <td>none</td>
  12442. </tr>
  12443. </tbody>
  12444. </table>
  12445. <aside class="warning">
  12446. To perform this operation, you must be authenticated by means of one of the following methods:
  12447. UserSecurity
  12448. </aside>
  12449. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  12450. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  12451. <p><a id="opIdget_all_swimlanes"></a></p>
  12452. <blockquote>
  12453. <p>Code samples</p>
  12454. </blockquote>
  12455. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12456. curl -X GET /api/boards/{board}/swimlanes \
  12457. -H <span class="hljs-string">'Accept: application/json'</span> \
  12458. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12459. </code></pre>
  12460. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> HTTP/1.1
  12461. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12462. <span class="undefined"></span></span></code></pre>
  12463. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12464. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12465. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12466. };
  12467. $.ajax({
  12468. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  12469. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  12470. <span class="hljs-attr">headers</span>: headers,
  12471. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12472. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12473. }
  12474. })
  12475. </code></pre>
  12476. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12477. <span class="hljs-keyword">const</span> headers = {
  12478. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12479. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12480. };
  12481. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  12482. {
  12483. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  12484. <span class="hljs-attr">headers</span>: headers
  12485. })
  12486. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12487. <span class="hljs-keyword">return</span> res.json();
  12488. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12489. <span class="hljs-built_in">console</span>.log(body);
  12490. });
  12491. </code></pre>
  12492. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12493. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12494. headers = {
  12495. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12496. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12497. }
  12498. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  12499. <span class="hljs-symbol">params:</span> {
  12500. }, <span class="hljs-symbol">headers:</span> headers
  12501. p JSON.parse(result)
  12502. </code></pre>
  12503. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12504. headers = {
  12505. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12506. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12507. }
  12508. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  12509. }, headers = headers)
  12510. <span class="hljs-keyword">print</span> r.json()
  12511. </code></pre>
  12512. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes"</span>);
  12513. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12514. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  12515. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12516. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12517. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12518. String inputLine;
  12519. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12520. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12521. response.append(inputLine);
  12522. }
  12523. in.close();
  12524. System.out.println(response.toString());
  12525. </code></pre>
  12526. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12527. <span class="hljs-keyword">import</span> (
  12528. <span class="hljs-string">"bytes"</span>
  12529. <span class="hljs-string">"net/http"</span>
  12530. )
  12531. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12532. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12533. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12534. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12535. }
  12536. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12537. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  12538. req.Header = headers
  12539. client := &amp;http.Client{}
  12540. resp, err := client.Do(req)
  12541. <span class="hljs-comment">// ...</span>
  12542. }
  12543. </code></pre>
  12544. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  12545. <p><em>Get the list of swimlanes attached to a board</em></p>
  12546. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  12547. <table>
  12548. <thead>
  12549. <tr>
  12550. <th>Name</th>
  12551. <th>In</th>
  12552. <th>Type</th>
  12553. <th>Required</th>
  12554. <th>Description</th>
  12555. </tr>
  12556. </thead>
  12557. <tbody>
  12558. <tr>
  12559. <td>board</td>
  12560. <td>path</td>
  12561. <td>string</td>
  12562. <td>true</td>
  12563. <td>the ID of the board</td>
  12564. </tr>
  12565. </tbody>
  12566. </table>
  12567. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12568. <p><strong>board</strong>: the ID of the board</p>
  12569. <blockquote>
  12570. <p>Example responses</p>
  12571. </blockquote>
  12572. <blockquote>
  12573. <p>200 Response</p>
  12574. </blockquote>
  12575. <pre class="highlight tab tab-json"><code>[
  12576. {
  12577. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  12578. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  12579. }
  12580. ]
  12581. </code></pre>
  12582. <h3 id="get_all_swimlanes-responses">Responses</h3>
  12583. <table>
  12584. <thead>
  12585. <tr>
  12586. <th>Status</th>
  12587. <th>Meaning</th>
  12588. <th>Description</th>
  12589. <th>Schema</th>
  12590. </tr>
  12591. </thead>
  12592. <tbody>
  12593. <tr>
  12594. <td>200</td>
  12595. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12596. <td>200 response</td>
  12597. <td>Inline</td>
  12598. </tr>
  12599. </tbody>
  12600. </table>
  12601. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  12602. <p>Status Code <strong>200</strong></p>
  12603. <table>
  12604. <thead>
  12605. <tr>
  12606. <th>Name</th>
  12607. <th>Type</th>
  12608. <th>Required</th>
  12609. <th>Restrictions</th>
  12610. <th>Description</th>
  12611. </tr>
  12612. </thead>
  12613. <tbody>
  12614. <tr>
  12615. <td>» _id</td>
  12616. <td>string</td>
  12617. <td>false</td>
  12618. <td>none</td>
  12619. <td>none</td>
  12620. </tr>
  12621. <tr>
  12622. <td>» title</td>
  12623. <td>string</td>
  12624. <td>false</td>
  12625. <td>none</td>
  12626. <td>none</td>
  12627. </tr>
  12628. </tbody>
  12629. </table>
  12630. <aside class="warning">
  12631. To perform this operation, you must be authenticated by means of one of the following methods:
  12632. UserSecurity
  12633. </aside>
  12634. <h2 id="new_swimlane">new_swimlane</h2>
  12635. <p><a id="opIdnew_swimlane"></a></p>
  12636. <blockquote>
  12637. <p>Code samples</p>
  12638. </blockquote>
  12639. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12640. curl -X POST /api/boards/{board}/swimlanes \
  12641. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  12642. -H <span class="hljs-string">'Accept: application/json'</span> \
  12643. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12644. </code></pre>
  12645. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> HTTP/1.1
  12646. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12647. Accept: application/json
  12648. </span></code></pre>
  12649. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12650. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12651. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12652. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12653. };
  12654. $.ajax({
  12655. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  12656. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  12657. <span class="hljs-attr">headers</span>: headers,
  12658. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12659. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12660. }
  12661. })
  12662. </code></pre>
  12663. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12664. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  12665. "title": "string"
  12666. }'</span>;
  12667. <span class="hljs-keyword">const</span> headers = {
  12668. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12669. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12670. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12671. };
  12672. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  12673. {
  12674. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  12675. <span class="hljs-attr">body</span>: inputBody,
  12676. <span class="hljs-attr">headers</span>: headers
  12677. })
  12678. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12679. <span class="hljs-keyword">return</span> res.json();
  12680. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12681. <span class="hljs-built_in">console</span>.log(body);
  12682. });
  12683. </code></pre>
  12684. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12685. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12686. headers = {
  12687. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  12688. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12689. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12690. }
  12691. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  12692. <span class="hljs-symbol">params:</span> {
  12693. }, <span class="hljs-symbol">headers:</span> headers
  12694. p JSON.parse(result)
  12695. </code></pre>
  12696. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12697. headers = {
  12698. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  12699. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12700. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12701. }
  12702. r = requests.post(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  12703. }, headers = headers)
  12704. <span class="hljs-keyword">print</span> r.json()
  12705. </code></pre>
  12706. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes"</span>);
  12707. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12708. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  12709. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12710. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12711. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12712. String inputLine;
  12713. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12714. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12715. response.append(inputLine);
  12716. }
  12717. in.close();
  12718. System.out.println(response.toString());
  12719. </code></pre>
  12720. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12721. <span class="hljs-keyword">import</span> (
  12722. <span class="hljs-string">"bytes"</span>
  12723. <span class="hljs-string">"net/http"</span>
  12724. )
  12725. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12726. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12727. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  12728. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12729. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12730. }
  12731. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12732. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  12733. req.Header = headers
  12734. client := &amp;http.Client{}
  12735. resp, err := client.Do(req)
  12736. <span class="hljs-comment">// ...</span>
  12737. }
  12738. </code></pre>
  12739. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  12740. <p><em>Add a swimlane to a board</em></p>
  12741. <blockquote>
  12742. <p>Body parameter</p>
  12743. </blockquote>
  12744. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12745. </code></pre>
  12746. <h3 id="new_swimlane-parameters">Parameters</h3>
  12747. <table>
  12748. <thead>
  12749. <tr>
  12750. <th>Name</th>
  12751. <th>In</th>
  12752. <th>Type</th>
  12753. <th>Required</th>
  12754. <th>Description</th>
  12755. </tr>
  12756. </thead>
  12757. <tbody>
  12758. <tr>
  12759. <td>board</td>
  12760. <td>path</td>
  12761. <td>string</td>
  12762. <td>true</td>
  12763. <td>the ID of the board</td>
  12764. </tr>
  12765. <tr>
  12766. <td>body</td>
  12767. <td>body</td>
  12768. <td>object</td>
  12769. <td>false</td>
  12770. <td>none</td>
  12771. </tr>
  12772. <tr>
  12773. <td>» title</td>
  12774. <td>body</td>
  12775. <td>string</td>
  12776. <td>true</td>
  12777. <td>the new title of the swimlane</td>
  12778. </tr>
  12779. </tbody>
  12780. </table>
  12781. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12782. <p><strong>board</strong>: the ID of the board</p>
  12783. <blockquote>
  12784. <p>Example responses</p>
  12785. </blockquote>
  12786. <blockquote>
  12787. <p>200 Response</p>
  12788. </blockquote>
  12789. <pre class="highlight tab tab-json"><code>{
  12790. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  12791. }
  12792. </code></pre>
  12793. <h3 id="new_swimlane-responses">Responses</h3>
  12794. <table>
  12795. <thead>
  12796. <tr>
  12797. <th>Status</th>
  12798. <th>Meaning</th>
  12799. <th>Description</th>
  12800. <th>Schema</th>
  12801. </tr>
  12802. </thead>
  12803. <tbody>
  12804. <tr>
  12805. <td>200</td>
  12806. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12807. <td>200 response</td>
  12808. <td>Inline</td>
  12809. </tr>
  12810. </tbody>
  12811. </table>
  12812. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  12813. <p>Status Code <strong>200</strong></p>
  12814. <table>
  12815. <thead>
  12816. <tr>
  12817. <th>Name</th>
  12818. <th>Type</th>
  12819. <th>Required</th>
  12820. <th>Restrictions</th>
  12821. <th>Description</th>
  12822. </tr>
  12823. </thead>
  12824. <tbody>
  12825. <tr>
  12826. <td>» _id</td>
  12827. <td>string</td>
  12828. <td>false</td>
  12829. <td>none</td>
  12830. <td>none</td>
  12831. </tr>
  12832. </tbody>
  12833. </table>
  12834. <aside class="warning">
  12835. To perform this operation, you must be authenticated by means of one of the following methods:
  12836. UserSecurity
  12837. </aside>
  12838. <h2 id="get_swimlane">get_swimlane</h2>
  12839. <p><a id="opIdget_swimlane"></a></p>
  12840. <blockquote>
  12841. <p>Code samples</p>
  12842. </blockquote>
  12843. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12844. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  12845. -H <span class="hljs-string">'Accept: application/json'</span> \
  12846. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12847. </code></pre>
  12848. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> HTTP/1.1
  12849. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12850. <span class="undefined"></span></span></code></pre>
  12851. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12852. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12853. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12854. };
  12855. $.ajax({
  12856. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  12857. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  12858. <span class="hljs-attr">headers</span>: headers,
  12859. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12860. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12861. }
  12862. })
  12863. </code></pre>
  12864. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12865. <span class="hljs-keyword">const</span> headers = {
  12866. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12867. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12868. };
  12869. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  12870. {
  12871. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  12872. <span class="hljs-attr">headers</span>: headers
  12873. })
  12874. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12875. <span class="hljs-keyword">return</span> res.json();
  12876. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12877. <span class="hljs-built_in">console</span>.log(body);
  12878. });
  12879. </code></pre>
  12880. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12881. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12882. headers = {
  12883. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12884. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12885. }
  12886. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  12887. <span class="hljs-symbol">params:</span> {
  12888. }, <span class="hljs-symbol">headers:</span> headers
  12889. p JSON.parse(result)
  12890. </code></pre>
  12891. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12892. headers = {
  12893. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12894. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12895. }
  12896. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  12897. }, headers = headers)
  12898. <span class="hljs-keyword">print</span> r.json()
  12899. </code></pre>
  12900. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>);
  12901. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12902. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  12903. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12904. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12905. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12906. String inputLine;
  12907. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12908. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12909. response.append(inputLine);
  12910. }
  12911. in.close();
  12912. System.out.println(response.toString());
  12913. </code></pre>
  12914. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12915. <span class="hljs-keyword">import</span> (
  12916. <span class="hljs-string">"bytes"</span>
  12917. <span class="hljs-string">"net/http"</span>
  12918. )
  12919. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12920. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12921. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12922. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12923. }
  12924. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12925. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  12926. req.Header = headers
  12927. client := &amp;http.Client{}
  12928. resp, err := client.Do(req)
  12929. <span class="hljs-comment">// ...</span>
  12930. }
  12931. </code></pre>
  12932. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  12933. <p><em>Get a swimlane</em></p>
  12934. <h3 id="get_swimlane-parameters">Parameters</h3>
  12935. <table>
  12936. <thead>
  12937. <tr>
  12938. <th>Name</th>
  12939. <th>In</th>
  12940. <th>Type</th>
  12941. <th>Required</th>
  12942. <th>Description</th>
  12943. </tr>
  12944. </thead>
  12945. <tbody>
  12946. <tr>
  12947. <td>board</td>
  12948. <td>path</td>
  12949. <td>string</td>
  12950. <td>true</td>
  12951. <td>the ID of the board</td>
  12952. </tr>
  12953. <tr>
  12954. <td>swimlane</td>
  12955. <td>path</td>
  12956. <td>string</td>
  12957. <td>true</td>
  12958. <td>the ID of the swimlane</td>
  12959. </tr>
  12960. </tbody>
  12961. </table>
  12962. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12963. <p><strong>board</strong>: the ID of the board</p>
  12964. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  12965. <blockquote>
  12966. <p>Example responses</p>
  12967. </blockquote>
  12968. <blockquote>
  12969. <p>200 Response</p>
  12970. </blockquote>
  12971. <pre class="highlight tab tab-json"><code>{
  12972. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12973. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  12974. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12975. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12976. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  12977. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  12978. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  12979. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12980. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  12981. }
  12982. </code></pre>
  12983. <h3 id="get_swimlane-responses">Responses</h3>
  12984. <table>
  12985. <thead>
  12986. <tr>
  12987. <th>Status</th>
  12988. <th>Meaning</th>
  12989. <th>Description</th>
  12990. <th>Schema</th>
  12991. </tr>
  12992. </thead>
  12993. <tbody>
  12994. <tr>
  12995. <td>200</td>
  12996. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12997. <td>200 response</td>
  12998. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  12999. </tr>
  13000. </tbody>
  13001. </table>
  13002. <aside class="warning">
  13003. To perform this operation, you must be authenticated by means of one of the following methods:
  13004. UserSecurity
  13005. </aside>
  13006. <h2 id="delete_swimlane">delete_swimlane</h2>
  13007. <p><a id="opIddelete_swimlane"></a></p>
  13008. <blockquote>
  13009. <p>Code samples</p>
  13010. </blockquote>
  13011. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13012. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  13013. -H <span class="hljs-string">'Accept: application/json'</span> \
  13014. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13015. </code></pre>
  13016. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> HTTP/1.1
  13017. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  13018. <span class="undefined"></span></span></code></pre>
  13019. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13020. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13021. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13022. };
  13023. $.ajax({
  13024. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  13025. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  13026. <span class="hljs-attr">headers</span>: headers,
  13027. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13028. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13029. }
  13030. })
  13031. </code></pre>
  13032. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  13033. <span class="hljs-keyword">const</span> headers = {
  13034. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13035. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13036. };
  13037. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  13038. {
  13039. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  13040. <span class="hljs-attr">headers</span>: headers
  13041. })
  13042. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13043. <span class="hljs-keyword">return</span> res.json();
  13044. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13045. <span class="hljs-built_in">console</span>.log(body);
  13046. });
  13047. </code></pre>
  13048. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13049. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13050. headers = {
  13051. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13052. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13053. }
  13054. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  13055. <span class="hljs-symbol">params:</span> {
  13056. }, <span class="hljs-symbol">headers:</span> headers
  13057. p JSON.parse(result)
  13058. </code></pre>
  13059. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13060. headers = {
  13061. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13062. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13063. }
  13064. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  13065. }, headers = headers)
  13066. <span class="hljs-keyword">print</span> r.json()
  13067. </code></pre>
  13068. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>);
  13069. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13070. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  13071. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13072. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13073. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13074. String inputLine;
  13075. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13076. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13077. response.append(inputLine);
  13078. }
  13079. in.close();
  13080. System.out.println(response.toString());
  13081. </code></pre>
  13082. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13083. <span class="hljs-keyword">import</span> (
  13084. <span class="hljs-string">"bytes"</span>
  13085. <span class="hljs-string">"net/http"</span>
  13086. )
  13087. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13088. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13089. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13090. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13091. }
  13092. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13093. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  13094. req.Header = headers
  13095. client := &amp;http.Client{}
  13096. resp, err := client.Do(req)
  13097. <span class="hljs-comment">// ...</span>
  13098. }
  13099. </code></pre>
  13100. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  13101. <p><em>Delete a swimlane</em></p>
  13102. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  13103. <h3 id="delete_swimlane-parameters">Parameters</h3>
  13104. <table>
  13105. <thead>
  13106. <tr>
  13107. <th>Name</th>
  13108. <th>In</th>
  13109. <th>Type</th>
  13110. <th>Required</th>
  13111. <th>Description</th>
  13112. </tr>
  13113. </thead>
  13114. <tbody>
  13115. <tr>
  13116. <td>board</td>
  13117. <td>path</td>
  13118. <td>string</td>
  13119. <td>true</td>
  13120. <td>the ID of the board</td>
  13121. </tr>
  13122. <tr>
  13123. <td>swimlane</td>
  13124. <td>path</td>
  13125. <td>string</td>
  13126. <td>true</td>
  13127. <td>the ID of the swimlane</td>
  13128. </tr>
  13129. </tbody>
  13130. </table>
  13131. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13132. <p><strong>board</strong>: the ID of the board</p>
  13133. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  13134. <blockquote>
  13135. <p>Example responses</p>
  13136. </blockquote>
  13137. <blockquote>
  13138. <p>200 Response</p>
  13139. </blockquote>
  13140. <pre class="highlight tab tab-json"><code>{
  13141. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  13142. }
  13143. </code></pre>
  13144. <h3 id="delete_swimlane-responses">Responses</h3>
  13145. <table>
  13146. <thead>
  13147. <tr>
  13148. <th>Status</th>
  13149. <th>Meaning</th>
  13150. <th>Description</th>
  13151. <th>Schema</th>
  13152. </tr>
  13153. </thead>
  13154. <tbody>
  13155. <tr>
  13156. <td>200</td>
  13157. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13158. <td>200 response</td>
  13159. <td>Inline</td>
  13160. </tr>
  13161. </tbody>
  13162. </table>
  13163. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  13164. <p>Status Code <strong>200</strong></p>
  13165. <table>
  13166. <thead>
  13167. <tr>
  13168. <th>Name</th>
  13169. <th>Type</th>
  13170. <th>Required</th>
  13171. <th>Restrictions</th>
  13172. <th>Description</th>
  13173. </tr>
  13174. </thead>
  13175. <tbody>
  13176. <tr>
  13177. <td>» _id</td>
  13178. <td>string</td>
  13179. <td>false</td>
  13180. <td>none</td>
  13181. <td>none</td>
  13182. </tr>
  13183. </tbody>
  13184. </table>
  13185. <aside class="warning">
  13186. To perform this operation, you must be authenticated by means of one of the following methods:
  13187. UserSecurity
  13188. </aside>
  13189. <h1 id="schemas">Schemas</h1>
  13190. <h2 id="tocsboards">Boards</h2>
  13191. <p><a id="schemaboards"></a></p>
  13192. <pre class="highlight tab tab-json"><code>{
  13193. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13194. <span class="hljs-attr">"slug"</span>: <span class="hljs-string">"string"</span>,
  13195. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  13196. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13197. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13198. <span class="hljs-attr">"stars"</span>: <span class="hljs-number">0</span>,
  13199. <span class="hljs-attr">"labels"</span>: [
  13200. {
  13201. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  13202. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  13203. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"green"</span>
  13204. }
  13205. ],
  13206. <span class="hljs-attr">"members"</span>: [
  13207. {
  13208. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  13209. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  13210. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  13211. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  13212. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  13213. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  13214. }
  13215. ],
  13216. <span class="hljs-attr">"permission"</span>: <span class="hljs-string">"public"</span>,
  13217. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"belize"</span>,
  13218. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  13219. <span class="hljs-attr">"subtasksDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  13220. <span class="hljs-attr">"subtasksDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  13221. <span class="hljs-attr">"dateSettingsDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  13222. <span class="hljs-attr">"dateSettingsDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  13223. <span class="hljs-attr">"allowsSubtasks"</span>: <span class="hljs-literal">true</span>,
  13224. <span class="hljs-attr">"allowsAttachments"</span>: <span class="hljs-literal">true</span>,
  13225. <span class="hljs-attr">"allowsChecklists"</span>: <span class="hljs-literal">true</span>,
  13226. <span class="hljs-attr">"allowsComments"</span>: <span class="hljs-literal">true</span>,
  13227. <span class="hljs-attr">"allowsDescriptionTitle"</span>: <span class="hljs-literal">true</span>,
  13228. <span class="hljs-attr">"allowsDescriptionText"</span>: <span class="hljs-literal">true</span>,
  13229. <span class="hljs-attr">"allowsActivities"</span>: <span class="hljs-literal">true</span>,
  13230. <span class="hljs-attr">"allowsLabels"</span>: <span class="hljs-literal">true</span>,
  13231. <span class="hljs-attr">"allowsAssignee"</span>: <span class="hljs-literal">true</span>,
  13232. <span class="hljs-attr">"allowsMembers"</span>: <span class="hljs-literal">true</span>,
  13233. <span class="hljs-attr">"allowsRequestedBy"</span>: <span class="hljs-literal">true</span>,
  13234. <span class="hljs-attr">"allowsAssignedBy"</span>: <span class="hljs-literal">true</span>,
  13235. <span class="hljs-attr">"allowsReceivedDate"</span>: <span class="hljs-literal">true</span>,
  13236. <span class="hljs-attr">"allowsStartDate"</span>: <span class="hljs-literal">true</span>,
  13237. <span class="hljs-attr">"allowsEndDate"</span>: <span class="hljs-literal">true</span>,
  13238. <span class="hljs-attr">"allowsDueDate"</span>: <span class="hljs-literal">true</span>,
  13239. <span class="hljs-attr">"presentParentTask"</span>: <span class="hljs-string">"prefix-with-full-path"</span>,
  13240. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  13241. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  13242. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  13243. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  13244. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  13245. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13246. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>
  13247. }
  13248. </code></pre>
  13249. <p><em>This is a Board.</em></p>
  13250. <h3 id="properties">Properties</h3>
  13251. <table>
  13252. <thead>
  13253. <tr>
  13254. <th>Name</th>
  13255. <th>Type</th>
  13256. <th>Required</th>
  13257. <th>Restrictions</th>
  13258. <th>Description</th>
  13259. </tr>
  13260. </thead>
  13261. <tbody>
  13262. <tr>
  13263. <td>title</td>
  13264. <td>string</td>
  13265. <td>true</td>
  13266. <td>none</td>
  13267. <td>The title of the board</td>
  13268. </tr>
  13269. <tr>
  13270. <td>slug</td>
  13271. <td>string</td>
  13272. <td>true</td>
  13273. <td>none</td>
  13274. <td>The title slugified.</td>
  13275. </tr>
  13276. <tr>
  13277. <td>archived</td>
  13278. <td>boolean</td>
  13279. <td>true</td>
  13280. <td>none</td>
  13281. <td>Is the board archived?</td>
  13282. </tr>
  13283. <tr>
  13284. <td>createdAt</td>
  13285. <td>string</td>
  13286. <td>true</td>
  13287. <td>none</td>
  13288. <td>Creation time of the board</td>
  13289. </tr>
  13290. <tr>
  13291. <td>modifiedAt</td>
  13292. <td>string|null</td>
  13293. <td>false</td>
  13294. <td>none</td>
  13295. <td>Last modification time of the board</td>
  13296. </tr>
  13297. <tr>
  13298. <td>stars</td>
  13299. <td>number</td>
  13300. <td>true</td>
  13301. <td>none</td>
  13302. <td>How many stars the board has</td>
  13303. </tr>
  13304. <tr>
  13305. <td>labels</td>
  13306. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]</td>
  13307. <td>true</td>
  13308. <td>none</td>
  13309. <td>List of labels attached to a board</td>
  13310. </tr>
  13311. <tr>
  13312. <td>members</td>
  13313. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  13314. <td>true</td>
  13315. <td>none</td>
  13316. <td>List of members of a board</td>
  13317. </tr>
  13318. <tr>
  13319. <td>permission</td>
  13320. <td>string</td>
  13321. <td>true</td>
  13322. <td>none</td>
  13323. <td>visibility of the board</td>
  13324. </tr>
  13325. <tr>
  13326. <td>color</td>
  13327. <td>string</td>
  13328. <td>true</td>
  13329. <td>none</td>
  13330. <td>The color of the board.</td>
  13331. </tr>
  13332. <tr>
  13333. <td>description</td>
  13334. <td>string|null</td>
  13335. <td>false</td>
  13336. <td>none</td>
  13337. <td>The description of the board</td>
  13338. </tr>
  13339. <tr>
  13340. <td>subtasksDefaultBoardId</td>
  13341. <td>string|null</td>
  13342. <td>false</td>
  13343. <td>none</td>
  13344. <td>The default board ID assigned to subtasks.</td>
  13345. </tr>
  13346. <tr>
  13347. <td>subtasksDefaultListId</td>
  13348. <td>string|null</td>
  13349. <td>false</td>
  13350. <td>none</td>
  13351. <td>The default List ID assigned to subtasks.</td>
  13352. </tr>
  13353. <tr>
  13354. <td>dateSettingsDefaultBoardId</td>
  13355. <td>string|null</td>
  13356. <td>false</td>
  13357. <td>none</td>
  13358. <td>none</td>
  13359. </tr>
  13360. <tr>
  13361. <td>dateSettingsDefaultListId</td>
  13362. <td>string|null</td>
  13363. <td>false</td>
  13364. <td>none</td>
  13365. <td>none</td>
  13366. </tr>
  13367. <tr>
  13368. <td>allowsSubtasks</td>
  13369. <td>boolean</td>
  13370. <td>true</td>
  13371. <td>none</td>
  13372. <td>Does the board allows subtasks?</td>
  13373. </tr>
  13374. <tr>
  13375. <td>allowsAttachments</td>
  13376. <td>boolean</td>
  13377. <td>true</td>
  13378. <td>none</td>
  13379. <td>Does the board allows attachments?</td>
  13380. </tr>
  13381. <tr>
  13382. <td>allowsChecklists</td>
  13383. <td>boolean</td>
  13384. <td>true</td>
  13385. <td>none</td>
  13386. <td>Does the board allows checklists?</td>
  13387. </tr>
  13388. <tr>
  13389. <td>allowsComments</td>
  13390. <td>boolean</td>
  13391. <td>true</td>
  13392. <td>none</td>
  13393. <td>Does the board allows comments?</td>
  13394. </tr>
  13395. <tr>
  13396. <td>allowsDescriptionTitle</td>
  13397. <td>boolean</td>
  13398. <td>true</td>
  13399. <td>none</td>
  13400. <td>Does the board allows description title?</td>
  13401. </tr>
  13402. <tr>
  13403. <td>allowsDescriptionText</td>
  13404. <td>boolean</td>
  13405. <td>true</td>
  13406. <td>none</td>
  13407. <td>Does the board allows description text?</td>
  13408. </tr>
  13409. <tr>
  13410. <td>allowsActivities</td>
  13411. <td>boolean</td>
  13412. <td>true</td>
  13413. <td>none</td>
  13414. <td>Does the board allows comments?</td>
  13415. </tr>
  13416. <tr>
  13417. <td>allowsLabels</td>
  13418. <td>boolean</td>
  13419. <td>true</td>
  13420. <td>none</td>
  13421. <td>Does the board allows labels?</td>
  13422. </tr>
  13423. <tr>
  13424. <td>allowsAssignee</td>
  13425. <td>boolean</td>
  13426. <td>true</td>
  13427. <td>none</td>
  13428. <td>Does the board allows assignee?</td>
  13429. </tr>
  13430. <tr>
  13431. <td>allowsMembers</td>
  13432. <td>boolean</td>
  13433. <td>true</td>
  13434. <td>none</td>
  13435. <td>Does the board allows members?</td>
  13436. </tr>
  13437. <tr>
  13438. <td>allowsRequestedBy</td>
  13439. <td>boolean</td>
  13440. <td>true</td>
  13441. <td>none</td>
  13442. <td>Does the board allows requested by?</td>
  13443. </tr>
  13444. <tr>
  13445. <td>allowsAssignedBy</td>
  13446. <td>boolean</td>
  13447. <td>true</td>
  13448. <td>none</td>
  13449. <td>Does the board allows requested by?</td>
  13450. </tr>
  13451. <tr>
  13452. <td>allowsReceivedDate</td>
  13453. <td>boolean</td>
  13454. <td>true</td>
  13455. <td>none</td>
  13456. <td>Does the board allows received date?</td>
  13457. </tr>
  13458. <tr>
  13459. <td>allowsStartDate</td>
  13460. <td>boolean</td>
  13461. <td>true</td>
  13462. <td>none</td>
  13463. <td>Does the board allows start date?</td>
  13464. </tr>
  13465. <tr>
  13466. <td>allowsEndDate</td>
  13467. <td>boolean</td>
  13468. <td>true</td>
  13469. <td>none</td>
  13470. <td>Does the board allows end date?</td>
  13471. </tr>
  13472. <tr>
  13473. <td>allowsDueDate</td>
  13474. <td>boolean</td>
  13475. <td>true</td>
  13476. <td>none</td>
  13477. <td>Does the board allows due date?</td>
  13478. </tr>
  13479. <tr>
  13480. <td>presentParentTask</td>
  13481. <td>string|null</td>
  13482. <td>false</td>
  13483. <td>none</td>
  13484. <td>Controls how to present the parent task: - <code>prefix-with-full-path</code>: add a prefix with the full path - <code>prefix-with-parent</code>: add a prefisx with the parent name - <code>subtext-with-full-path</code>: add a subtext with the full path - <code>subtext-with-parent</code>: add a subtext with the parent name - <code>no-parent</code>: does not show the parent at all</td>
  13485. </tr>
  13486. <tr>
  13487. <td>startAt</td>
  13488. <td>string|null</td>
  13489. <td>false</td>
  13490. <td>none</td>
  13491. <td>Starting date of the board.</td>
  13492. </tr>
  13493. <tr>
  13494. <td>dueAt</td>
  13495. <td>string|null</td>
  13496. <td>false</td>
  13497. <td>none</td>
  13498. <td>Due date of the board.</td>
  13499. </tr>
  13500. <tr>
  13501. <td>endAt</td>
  13502. <td>string|null</td>
  13503. <td>false</td>
  13504. <td>none</td>
  13505. <td>End date of the board.</td>
  13506. </tr>
  13507. <tr>
  13508. <td>spentTime</td>
  13509. <td>number|null</td>
  13510. <td>false</td>
  13511. <td>none</td>
  13512. <td>Time spent in the board.</td>
  13513. </tr>
  13514. <tr>
  13515. <td>isOvertime</td>
  13516. <td>boolean|null</td>
  13517. <td>false</td>
  13518. <td>none</td>
  13519. <td>Is the board overtimed?</td>
  13520. </tr>
  13521. <tr>
  13522. <td>type</td>
  13523. <td>string</td>
  13524. <td>true</td>
  13525. <td>none</td>
  13526. <td>The type of board</td>
  13527. </tr>
  13528. <tr>
  13529. <td>sort</td>
  13530. <td>number</td>
  13531. <td>true</td>
  13532. <td>none</td>
  13533. <td>Sort value</td>
  13534. </tr>
  13535. </tbody>
  13536. </table>
  13537. <h4 id="enumerated-values">Enumerated Values</h4>
  13538. <table>
  13539. <thead>
  13540. <tr>
  13541. <th>Property</th>
  13542. <th>Value</th>
  13543. </tr>
  13544. </thead>
  13545. <tbody>
  13546. <tr>
  13547. <td>permission</td>
  13548. <td>public</td>
  13549. </tr>
  13550. <tr>
  13551. <td>permission</td>
  13552. <td>private</td>
  13553. </tr>
  13554. <tr>
  13555. <td>color</td>
  13556. <td>belize</td>
  13557. </tr>
  13558. <tr>
  13559. <td>color</td>
  13560. <td>nephritis</td>
  13561. </tr>
  13562. <tr>
  13563. <td>color</td>
  13564. <td>pomegranate</td>
  13565. </tr>
  13566. <tr>
  13567. <td>color</td>
  13568. <td>pumpkin</td>
  13569. </tr>
  13570. <tr>
  13571. <td>color</td>
  13572. <td>wisteria</td>
  13573. </tr>
  13574. <tr>
  13575. <td>color</td>
  13576. <td>moderatepink</td>
  13577. </tr>
  13578. <tr>
  13579. <td>color</td>
  13580. <td>strongcyan</td>
  13581. </tr>
  13582. <tr>
  13583. <td>color</td>
  13584. <td>limegreen</td>
  13585. </tr>
  13586. <tr>
  13587. <td>color</td>
  13588. <td>midnight</td>
  13589. </tr>
  13590. <tr>
  13591. <td>color</td>
  13592. <td>dark</td>
  13593. </tr>
  13594. <tr>
  13595. <td>color</td>
  13596. <td>relax</td>
  13597. </tr>
  13598. <tr>
  13599. <td>color</td>
  13600. <td>corteza</td>
  13601. </tr>
  13602. <tr>
  13603. <td>color</td>
  13604. <td>clearblue</td>
  13605. </tr>
  13606. <tr>
  13607. <td>color</td>
  13608. <td>natural</td>
  13609. </tr>
  13610. <tr>
  13611. <td>color</td>
  13612. <td>modern</td>
  13613. </tr>
  13614. <tr>
  13615. <td>color</td>
  13616. <td>moderndark</td>
  13617. </tr>
  13618. <tr>
  13619. <td>presentParentTask</td>
  13620. <td>prefix-with-full-path</td>
  13621. </tr>
  13622. <tr>
  13623. <td>presentParentTask</td>
  13624. <td>prefix-with-parent</td>
  13625. </tr>
  13626. <tr>
  13627. <td>presentParentTask</td>
  13628. <td>subtext-with-full-path</td>
  13629. </tr>
  13630. <tr>
  13631. <td>presentParentTask</td>
  13632. <td>subtext-with-parent</td>
  13633. </tr>
  13634. <tr>
  13635. <td>presentParentTask</td>
  13636. <td>no-parent</td>
  13637. </tr>
  13638. </tbody>
  13639. </table>
  13640. <h2 id="tocsboardslabels">BoardsLabels</h2>
  13641. <p><a id="schemaboardslabels"></a></p>
  13642. <pre class="highlight tab tab-json"><code>{
  13643. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  13644. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  13645. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"green"</span>
  13646. }
  13647. </code></pre>
  13648. <h3 id="properties">Properties</h3>
  13649. <table>
  13650. <thead>
  13651. <tr>
  13652. <th>Name</th>
  13653. <th>Type</th>
  13654. <th>Required</th>
  13655. <th>Restrictions</th>
  13656. <th>Description</th>
  13657. </tr>
  13658. </thead>
  13659. <tbody>
  13660. <tr>
  13661. <td>_id</td>
  13662. <td>string</td>
  13663. <td>true</td>
  13664. <td>none</td>
  13665. <td>Unique id of a label</td>
  13666. </tr>
  13667. <tr>
  13668. <td>name</td>
  13669. <td>string</td>
  13670. <td>false</td>
  13671. <td>none</td>
  13672. <td>Name of a label</td>
  13673. </tr>
  13674. <tr>
  13675. <td>color</td>
  13676. <td>string</td>
  13677. <td>true</td>
  13678. <td>none</td>
  13679. <td>color of a label. Can be amongst <code>green</code>, <code>yellow</code>, <code>orange</code>, <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>, <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>, <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>, <code>indigo</code></td>
  13680. </tr>
  13681. </tbody>
  13682. </table>
  13683. <h4 id="enumerated-values">Enumerated Values</h4>
  13684. <table>
  13685. <thead>
  13686. <tr>
  13687. <th>Property</th>
  13688. <th>Value</th>
  13689. </tr>
  13690. </thead>
  13691. <tbody>
  13692. <tr>
  13693. <td>color</td>
  13694. <td>green</td>
  13695. </tr>
  13696. <tr>
  13697. <td>color</td>
  13698. <td>yellow</td>
  13699. </tr>
  13700. <tr>
  13701. <td>color</td>
  13702. <td>orange</td>
  13703. </tr>
  13704. <tr>
  13705. <td>color</td>
  13706. <td>red</td>
  13707. </tr>
  13708. <tr>
  13709. <td>color</td>
  13710. <td>purple</td>
  13711. </tr>
  13712. <tr>
  13713. <td>color</td>
  13714. <td>blue</td>
  13715. </tr>
  13716. <tr>
  13717. <td>color</td>
  13718. <td>sky</td>
  13719. </tr>
  13720. <tr>
  13721. <td>color</td>
  13722. <td>lime</td>
  13723. </tr>
  13724. <tr>
  13725. <td>color</td>
  13726. <td>pink</td>
  13727. </tr>
  13728. <tr>
  13729. <td>color</td>
  13730. <td>black</td>
  13731. </tr>
  13732. <tr>
  13733. <td>color</td>
  13734. <td>silver</td>
  13735. </tr>
  13736. <tr>
  13737. <td>color</td>
  13738. <td>peachpuff</td>
  13739. </tr>
  13740. <tr>
  13741. <td>color</td>
  13742. <td>crimson</td>
  13743. </tr>
  13744. <tr>
  13745. <td>color</td>
  13746. <td>plum</td>
  13747. </tr>
  13748. <tr>
  13749. <td>color</td>
  13750. <td>darkgreen</td>
  13751. </tr>
  13752. <tr>
  13753. <td>color</td>
  13754. <td>slateblue</td>
  13755. </tr>
  13756. <tr>
  13757. <td>color</td>
  13758. <td>magenta</td>
  13759. </tr>
  13760. <tr>
  13761. <td>color</td>
  13762. <td>gold</td>
  13763. </tr>
  13764. <tr>
  13765. <td>color</td>
  13766. <td>navy</td>
  13767. </tr>
  13768. <tr>
  13769. <td>color</td>
  13770. <td>gray</td>
  13771. </tr>
  13772. <tr>
  13773. <td>color</td>
  13774. <td>saddlebrown</td>
  13775. </tr>
  13776. <tr>
  13777. <td>color</td>
  13778. <td>paleturquoise</td>
  13779. </tr>
  13780. <tr>
  13781. <td>color</td>
  13782. <td>mistyrose</td>
  13783. </tr>
  13784. <tr>
  13785. <td>color</td>
  13786. <td>indigo</td>
  13787. </tr>
  13788. </tbody>
  13789. </table>
  13790. <h2 id="tocsboardsmembers">BoardsMembers</h2>
  13791. <p><a id="schemaboardsmembers"></a></p>
  13792. <pre class="highlight tab tab-json"><code>{
  13793. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  13794. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  13795. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  13796. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  13797. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  13798. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  13799. }
  13800. </code></pre>
  13801. <h3 id="properties">Properties</h3>
  13802. <table>
  13803. <thead>
  13804. <tr>
  13805. <th>Name</th>
  13806. <th>Type</th>
  13807. <th>Required</th>
  13808. <th>Restrictions</th>
  13809. <th>Description</th>
  13810. </tr>
  13811. </thead>
  13812. <tbody>
  13813. <tr>
  13814. <td>userId</td>
  13815. <td>string</td>
  13816. <td>true</td>
  13817. <td>none</td>
  13818. <td>The uniq ID of the member</td>
  13819. </tr>
  13820. <tr>
  13821. <td>isAdmin</td>
  13822. <td>boolean</td>
  13823. <td>true</td>
  13824. <td>none</td>
  13825. <td>Is the member an admin of the board?</td>
  13826. </tr>
  13827. <tr>
  13828. <td>isActive</td>
  13829. <td>boolean</td>
  13830. <td>true</td>
  13831. <td>none</td>
  13832. <td>Is the member active?</td>
  13833. </tr>
  13834. <tr>
  13835. <td>isNoComments</td>
  13836. <td>boolean</td>
  13837. <td>false</td>
  13838. <td>none</td>
  13839. <td>Is the member not allowed to make comments</td>
  13840. </tr>
  13841. <tr>
  13842. <td>isCommentOnly</td>
  13843. <td>boolean</td>
  13844. <td>false</td>
  13845. <td>none</td>
  13846. <td>Is the member only allowed to comment on the board</td>
  13847. </tr>
  13848. <tr>
  13849. <td>isWorker</td>
  13850. <td>boolean</td>
  13851. <td>false</td>
  13852. <td>none</td>
  13853. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  13854. </tr>
  13855. </tbody>
  13856. </table>
  13857. <h2 id="tocscardcomments">CardComments</h2>
  13858. <p><a id="schemacardcomments"></a></p>
  13859. <pre class="highlight tab tab-json"><code>{
  13860. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13861. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  13862. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  13863. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13864. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13865. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  13866. }
  13867. </code></pre>
  13868. <p><em>A comment on a card</em></p>
  13869. <h3 id="properties">Properties</h3>
  13870. <table>
  13871. <thead>
  13872. <tr>
  13873. <th>Name</th>
  13874. <th>Type</th>
  13875. <th>Required</th>
  13876. <th>Restrictions</th>
  13877. <th>Description</th>
  13878. </tr>
  13879. </thead>
  13880. <tbody>
  13881. <tr>
  13882. <td>boardId</td>
  13883. <td>string</td>
  13884. <td>true</td>
  13885. <td>none</td>
  13886. <td>the board ID</td>
  13887. </tr>
  13888. <tr>
  13889. <td>cardId</td>
  13890. <td>string</td>
  13891. <td>true</td>
  13892. <td>none</td>
  13893. <td>the card ID</td>
  13894. </tr>
  13895. <tr>
  13896. <td>text</td>
  13897. <td>string</td>
  13898. <td>true</td>
  13899. <td>none</td>
  13900. <td>the text of the comment</td>
  13901. </tr>
  13902. <tr>
  13903. <td>createdAt</td>
  13904. <td>string</td>
  13905. <td>true</td>
  13906. <td>none</td>
  13907. <td>when was the comment created</td>
  13908. </tr>
  13909. <tr>
  13910. <td>modifiedAt</td>
  13911. <td>string</td>
  13912. <td>true</td>
  13913. <td>none</td>
  13914. <td>none</td>
  13915. </tr>
  13916. <tr>
  13917. <td>userId</td>
  13918. <td>string</td>
  13919. <td>true</td>
  13920. <td>none</td>
  13921. <td>the author ID of the comment</td>
  13922. </tr>
  13923. </tbody>
  13924. </table>
  13925. <h2 id="tocscards">Cards</h2>
  13926. <p><a id="schemacards"></a></p>
  13927. <pre class="highlight tab tab-json"><code>{
  13928. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13929. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  13930. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  13931. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  13932. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  13933. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13934. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  13935. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  13936. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13937. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13938. <span class="hljs-attr">"customFields"</span>: [
  13939. {}
  13940. ],
  13941. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  13942. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  13943. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  13944. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  13945. <span class="hljs-attr">"labelIds"</span>: [
  13946. <span class="hljs-string">"string"</span>
  13947. ],
  13948. <span class="hljs-attr">"members"</span>: [
  13949. <span class="hljs-string">"string"</span>
  13950. ],
  13951. <span class="hljs-attr">"assignees"</span>: [
  13952. <span class="hljs-string">"string"</span>
  13953. ],
  13954. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  13955. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  13956. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  13957. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  13958. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  13959. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  13960. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  13961. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  13962. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  13963. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13964. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  13965. <span class="hljs-attr">"vote"</span>: {
  13966. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  13967. <span class="hljs-attr">"positive"</span>: [
  13968. <span class="hljs-string">"string"</span>
  13969. ],
  13970. <span class="hljs-attr">"negative"</span>: [
  13971. <span class="hljs-string">"string"</span>
  13972. ],
  13973. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  13974. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  13975. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  13976. }
  13977. }
  13978. </code></pre>
  13979. <h3 id="properties">Properties</h3>
  13980. <table>
  13981. <thead>
  13982. <tr>
  13983. <th>Name</th>
  13984. <th>Type</th>
  13985. <th>Required</th>
  13986. <th>Restrictions</th>
  13987. <th>Description</th>
  13988. </tr>
  13989. </thead>
  13990. <tbody>
  13991. <tr>
  13992. <td>title</td>
  13993. <td>string|null</td>
  13994. <td>false</td>
  13995. <td>none</td>
  13996. <td>the title of the card</td>
  13997. </tr>
  13998. <tr>
  13999. <td>archived</td>
  14000. <td>boolean</td>
  14001. <td>true</td>
  14002. <td>none</td>
  14003. <td>is the card archived</td>
  14004. </tr>
  14005. <tr>
  14006. <td>parentId</td>
  14007. <td>string|null</td>
  14008. <td>false</td>
  14009. <td>none</td>
  14010. <td>ID of the parent card</td>
  14011. </tr>
  14012. <tr>
  14013. <td>listId</td>
  14014. <td>string|null</td>
  14015. <td>false</td>
  14016. <td>none</td>
  14017. <td>List ID where the card is</td>
  14018. </tr>
  14019. <tr>
  14020. <td>swimlaneId</td>
  14021. <td>string</td>
  14022. <td>true</td>
  14023. <td>none</td>
  14024. <td>Swimlane ID where the card is</td>
  14025. </tr>
  14026. <tr>
  14027. <td>boardId</td>
  14028. <td>string|null</td>
  14029. <td>false</td>
  14030. <td>none</td>
  14031. <td>Board ID of the card</td>
  14032. </tr>
  14033. <tr>
  14034. <td>coverId</td>
  14035. <td>string|null</td>
  14036. <td>false</td>
  14037. <td>none</td>
  14038. <td>Cover ID of the card</td>
  14039. </tr>
  14040. <tr>
  14041. <td>color</td>
  14042. <td>string|null</td>
  14043. <td>false</td>
  14044. <td>none</td>
  14045. <td>none</td>
  14046. </tr>
  14047. <tr>
  14048. <td>createdAt</td>
  14049. <td>string</td>
  14050. <td>true</td>
  14051. <td>none</td>
  14052. <td>creation date</td>
  14053. </tr>
  14054. <tr>
  14055. <td>modifiedAt</td>
  14056. <td>string</td>
  14057. <td>true</td>
  14058. <td>none</td>
  14059. <td>none</td>
  14060. </tr>
  14061. <tr>
  14062. <td>customFields</td>
  14063. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]|null</td>
  14064. <td>false</td>
  14065. <td>none</td>
  14066. <td>list of custom fields</td>
  14067. </tr>
  14068. <tr>
  14069. <td>dateLastActivity</td>
  14070. <td>string</td>
  14071. <td>true</td>
  14072. <td>none</td>
  14073. <td>Date of last activity</td>
  14074. </tr>
  14075. <tr>
  14076. <td>description</td>
  14077. <td>string|null</td>
  14078. <td>false</td>
  14079. <td>none</td>
  14080. <td>description of the card</td>
  14081. </tr>
  14082. <tr>
  14083. <td>requestedBy</td>
  14084. <td>string|null</td>
  14085. <td>false</td>
  14086. <td>none</td>
  14087. <td>who requested the card (ID of the user)</td>
  14088. </tr>
  14089. <tr>
  14090. <td>assignedBy</td>
  14091. <td>string|null</td>
  14092. <td>false</td>
  14093. <td>none</td>
  14094. <td>who assigned the card (ID of the user)</td>
  14095. </tr>
  14096. <tr>
  14097. <td>labelIds</td>
  14098. <td>[string]|null</td>
  14099. <td>false</td>
  14100. <td>none</td>
  14101. <td>list of labels ID the card has</td>
  14102. </tr>
  14103. <tr>
  14104. <td>members</td>
  14105. <td>[string]|null</td>
  14106. <td>false</td>
  14107. <td>none</td>
  14108. <td>list of members (user IDs)</td>
  14109. </tr>
  14110. <tr>
  14111. <td>assignees</td>
  14112. <td>[string]|null</td>
  14113. <td>false</td>
  14114. <td>none</td>
  14115. <td>who is assignee of the card (user ID), maximum one ID of assignee in array.</td>
  14116. </tr>
  14117. <tr>
  14118. <td>receivedAt</td>
  14119. <td>string|null</td>
  14120. <td>false</td>
  14121. <td>none</td>
  14122. <td>Date the card was received</td>
  14123. </tr>
  14124. <tr>
  14125. <td>startAt</td>
  14126. <td>string|null</td>
  14127. <td>false</td>
  14128. <td>none</td>
  14129. <td>Date the card was started to be worked on</td>
  14130. </tr>
  14131. <tr>
  14132. <td>dueAt</td>
  14133. <td>string|null</td>
  14134. <td>false</td>
  14135. <td>none</td>
  14136. <td>Date the card is due</td>
  14137. </tr>
  14138. <tr>
  14139. <td>endAt</td>
  14140. <td>string|null</td>
  14141. <td>false</td>
  14142. <td>none</td>
  14143. <td>Date the card ended</td>
  14144. </tr>
  14145. <tr>
  14146. <td>spentTime</td>
  14147. <td>number|null</td>
  14148. <td>false</td>
  14149. <td>none</td>
  14150. <td>How much time has been spent on this</td>
  14151. </tr>
  14152. <tr>
  14153. <td>isOvertime</td>
  14154. <td>boolean|null</td>
  14155. <td>false</td>
  14156. <td>none</td>
  14157. <td>is the card over time?</td>
  14158. </tr>
  14159. <tr>
  14160. <td>userId</td>
  14161. <td>string</td>
  14162. <td>true</td>
  14163. <td>none</td>
  14164. <td>user ID of the author of the card</td>
  14165. </tr>
  14166. <tr>
  14167. <td>sort</td>
  14168. <td>number</td>
  14169. <td>true</td>
  14170. <td>none</td>
  14171. <td>Sort value</td>
  14172. </tr>
  14173. <tr>
  14174. <td>subtaskSort</td>
  14175. <td>number|null</td>
  14176. <td>false</td>
  14177. <td>none</td>
  14178. <td>subtask sort value</td>
  14179. </tr>
  14180. <tr>
  14181. <td>type</td>
  14182. <td>string</td>
  14183. <td>true</td>
  14184. <td>none</td>
  14185. <td>type of the card</td>
  14186. </tr>
  14187. <tr>
  14188. <td>linkedId</td>
  14189. <td>string|null</td>
  14190. <td>false</td>
  14191. <td>none</td>
  14192. <td>ID of the linked card</td>
  14193. </tr>
  14194. <tr>
  14195. <td>vote</td>
  14196. <td><a href="#schemacardsvote">CardsVote</a></td>
  14197. <td>false</td>
  14198. <td>none</td>
  14199. <td>vote object, see below</td>
  14200. </tr>
  14201. </tbody>
  14202. </table>
  14203. <h4 id="enumerated-values">Enumerated Values</h4>
  14204. <table>
  14205. <thead>
  14206. <tr>
  14207. <th>Property</th>
  14208. <th>Value</th>
  14209. </tr>
  14210. </thead>
  14211. <tbody>
  14212. <tr>
  14213. <td>color</td>
  14214. <td>white</td>
  14215. </tr>
  14216. <tr>
  14217. <td>color</td>
  14218. <td>green</td>
  14219. </tr>
  14220. <tr>
  14221. <td>color</td>
  14222. <td>yellow</td>
  14223. </tr>
  14224. <tr>
  14225. <td>color</td>
  14226. <td>orange</td>
  14227. </tr>
  14228. <tr>
  14229. <td>color</td>
  14230. <td>red</td>
  14231. </tr>
  14232. <tr>
  14233. <td>color</td>
  14234. <td>purple</td>
  14235. </tr>
  14236. <tr>
  14237. <td>color</td>
  14238. <td>blue</td>
  14239. </tr>
  14240. <tr>
  14241. <td>color</td>
  14242. <td>sky</td>
  14243. </tr>
  14244. <tr>
  14245. <td>color</td>
  14246. <td>lime</td>
  14247. </tr>
  14248. <tr>
  14249. <td>color</td>
  14250. <td>pink</td>
  14251. </tr>
  14252. <tr>
  14253. <td>color</td>
  14254. <td>black</td>
  14255. </tr>
  14256. <tr>
  14257. <td>color</td>
  14258. <td>silver</td>
  14259. </tr>
  14260. <tr>
  14261. <td>color</td>
  14262. <td>peachpuff</td>
  14263. </tr>
  14264. <tr>
  14265. <td>color</td>
  14266. <td>crimson</td>
  14267. </tr>
  14268. <tr>
  14269. <td>color</td>
  14270. <td>plum</td>
  14271. </tr>
  14272. <tr>
  14273. <td>color</td>
  14274. <td>darkgreen</td>
  14275. </tr>
  14276. <tr>
  14277. <td>color</td>
  14278. <td>slateblue</td>
  14279. </tr>
  14280. <tr>
  14281. <td>color</td>
  14282. <td>magenta</td>
  14283. </tr>
  14284. <tr>
  14285. <td>color</td>
  14286. <td>gold</td>
  14287. </tr>
  14288. <tr>
  14289. <td>color</td>
  14290. <td>navy</td>
  14291. </tr>
  14292. <tr>
  14293. <td>color</td>
  14294. <td>gray</td>
  14295. </tr>
  14296. <tr>
  14297. <td>color</td>
  14298. <td>saddlebrown</td>
  14299. </tr>
  14300. <tr>
  14301. <td>color</td>
  14302. <td>paleturquoise</td>
  14303. </tr>
  14304. <tr>
  14305. <td>color</td>
  14306. <td>mistyrose</td>
  14307. </tr>
  14308. <tr>
  14309. <td>color</td>
  14310. <td>indigo</td>
  14311. </tr>
  14312. </tbody>
  14313. </table>
  14314. <h2 id="tocscardsvote">CardsVote</h2>
  14315. <p><a id="schemacardsvote"></a></p>
  14316. <pre class="highlight tab tab-json"><code>{
  14317. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  14318. <span class="hljs-attr">"positive"</span>: [
  14319. <span class="hljs-string">"string"</span>
  14320. ],
  14321. <span class="hljs-attr">"negative"</span>: [
  14322. <span class="hljs-string">"string"</span>
  14323. ],
  14324. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  14325. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  14326. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  14327. }
  14328. </code></pre>
  14329. <h3 id="properties">Properties</h3>
  14330. <table>
  14331. <thead>
  14332. <tr>
  14333. <th>Name</th>
  14334. <th>Type</th>
  14335. <th>Required</th>
  14336. <th>Restrictions</th>
  14337. <th>Description</th>
  14338. </tr>
  14339. </thead>
  14340. <tbody>
  14341. <tr>
  14342. <td>question</td>
  14343. <td>string</td>
  14344. <td>true</td>
  14345. <td>none</td>
  14346. <td>none</td>
  14347. </tr>
  14348. <tr>
  14349. <td>positive</td>
  14350. <td>[string]</td>
  14351. <td>false</td>
  14352. <td>none</td>
  14353. <td>list of members (user IDs)</td>
  14354. </tr>
  14355. <tr>
  14356. <td>negative</td>
  14357. <td>[string]</td>
  14358. <td>false</td>
  14359. <td>none</td>
  14360. <td>list of members (user IDs)</td>
  14361. </tr>
  14362. <tr>
  14363. <td>end</td>
  14364. <td>string</td>
  14365. <td>false</td>
  14366. <td>none</td>
  14367. <td>none</td>
  14368. </tr>
  14369. <tr>
  14370. <td>public</td>
  14371. <td>boolean</td>
  14372. <td>true</td>
  14373. <td>none</td>
  14374. <td>none</td>
  14375. </tr>
  14376. <tr>
  14377. <td>allowNonBoardMembers</td>
  14378. <td>boolean</td>
  14379. <td>true</td>
  14380. <td>none</td>
  14381. <td>none</td>
  14382. </tr>
  14383. </tbody>
  14384. </table>
  14385. <h2 id="tocscardscustomfields">CardsCustomfields</h2>
  14386. <p><a id="schemacardscustomfields"></a></p>
  14387. <pre class="highlight tab tab-json"><code>{}
  14388. </code></pre>
  14389. <h3 id="properties">Properties</h3>
  14390. <p><em>None</em></p>
  14391. <h2 id="tocschecklistitems">ChecklistItems</h2>
  14392. <p><a id="schemachecklistitems"></a></p>
  14393. <pre class="highlight tab tab-json"><code>{
  14394. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  14395. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  14396. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  14397. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  14398. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  14399. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14400. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  14401. }
  14402. </code></pre>
  14403. <p><em>An item in a checklist</em></p>
  14404. <h3 id="properties">Properties</h3>
  14405. <table>
  14406. <thead>
  14407. <tr>
  14408. <th>Name</th>
  14409. <th>Type</th>
  14410. <th>Required</th>
  14411. <th>Restrictions</th>
  14412. <th>Description</th>
  14413. </tr>
  14414. </thead>
  14415. <tbody>
  14416. <tr>
  14417. <td>title</td>
  14418. <td>string</td>
  14419. <td>true</td>
  14420. <td>none</td>
  14421. <td>the text of the item</td>
  14422. </tr>
  14423. <tr>
  14424. <td>sort</td>
  14425. <td>number</td>
  14426. <td>true</td>
  14427. <td>none</td>
  14428. <td>the sorting field of the item</td>
  14429. </tr>
  14430. <tr>
  14431. <td>isFinished</td>
  14432. <td>boolean</td>
  14433. <td>true</td>
  14434. <td>none</td>
  14435. <td>Is the item checked?</td>
  14436. </tr>
  14437. <tr>
  14438. <td>checklistId</td>
  14439. <td>string</td>
  14440. <td>true</td>
  14441. <td>none</td>
  14442. <td>the checklist ID the item is attached to</td>
  14443. </tr>
  14444. <tr>
  14445. <td>cardId</td>
  14446. <td>string</td>
  14447. <td>true</td>
  14448. <td>none</td>
  14449. <td>the card ID the item is attached to</td>
  14450. </tr>
  14451. <tr>
  14452. <td>createdAt</td>
  14453. <td>string|null</td>
  14454. <td>false</td>
  14455. <td>none</td>
  14456. <td>none</td>
  14457. </tr>
  14458. <tr>
  14459. <td>modifiedAt</td>
  14460. <td>string</td>
  14461. <td>true</td>
  14462. <td>none</td>
  14463. <td>none</td>
  14464. </tr>
  14465. </tbody>
  14466. </table>
  14467. <h2 id="tocschecklists">Checklists</h2>
  14468. <p><a id="schemachecklists"></a></p>
  14469. <pre class="highlight tab tab-json"><code>{
  14470. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  14471. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  14472. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  14473. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14474. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  14475. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>
  14476. }
  14477. </code></pre>
  14478. <p><em>A Checklist</em></p>
  14479. <h3 id="properties">Properties</h3>
  14480. <table>
  14481. <thead>
  14482. <tr>
  14483. <th>Name</th>
  14484. <th>Type</th>
  14485. <th>Required</th>
  14486. <th>Restrictions</th>
  14487. <th>Description</th>
  14488. </tr>
  14489. </thead>
  14490. <tbody>
  14491. <tr>
  14492. <td>cardId</td>
  14493. <td>string</td>
  14494. <td>true</td>
  14495. <td>none</td>
  14496. <td>The ID of the card the checklist is in</td>
  14497. </tr>
  14498. <tr>
  14499. <td>title</td>
  14500. <td>string</td>
  14501. <td>true</td>
  14502. <td>none</td>
  14503. <td>the title of the checklist</td>
  14504. </tr>
  14505. <tr>
  14506. <td>finishedAt</td>
  14507. <td>string|null</td>
  14508. <td>false</td>
  14509. <td>none</td>
  14510. <td>When was the checklist finished</td>
  14511. </tr>
  14512. <tr>
  14513. <td>createdAt</td>
  14514. <td>string</td>
  14515. <td>true</td>
  14516. <td>none</td>
  14517. <td>Creation date of the checklist</td>
  14518. </tr>
  14519. <tr>
  14520. <td>modifiedAt</td>
  14521. <td>string</td>
  14522. <td>true</td>
  14523. <td>none</td>
  14524. <td>none</td>
  14525. </tr>
  14526. <tr>
  14527. <td>sort</td>
  14528. <td>number</td>
  14529. <td>true</td>
  14530. <td>none</td>
  14531. <td>sorting value of the checklist</td>
  14532. </tr>
  14533. </tbody>
  14534. </table>
  14535. <h2 id="tocscustomfields">CustomFields</h2>
  14536. <p><a id="schemacustomfields"></a></p>
  14537. <pre class="highlight tab tab-json"><code>{
  14538. <span class="hljs-attr">"boardIds"</span>: [
  14539. <span class="hljs-string">"string"</span>
  14540. ],
  14541. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  14542. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"text"</span>,
  14543. <span class="hljs-attr">"settings"</span>: {
  14544. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  14545. <span class="hljs-attr">"dropdownItems"</span>: [
  14546. {}
  14547. ]
  14548. },
  14549. <span class="hljs-attr">"showOnCard"</span>: <span class="hljs-literal">true</span>,
  14550. <span class="hljs-attr">"automaticallyOnCard"</span>: <span class="hljs-literal">true</span>,
  14551. <span class="hljs-attr">"showLabelOnMiniCard"</span>: <span class="hljs-literal">true</span>,
  14552. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14553. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  14554. }
  14555. </code></pre>
  14556. <p><em>A custom field on a card in the board</em></p>
  14557. <h3 id="properties">Properties</h3>
  14558. <table>
  14559. <thead>
  14560. <tr>
  14561. <th>Name</th>
  14562. <th>Type</th>
  14563. <th>Required</th>
  14564. <th>Restrictions</th>
  14565. <th>Description</th>
  14566. </tr>
  14567. </thead>
  14568. <tbody>
  14569. <tr>
  14570. <td>boardIds</td>
  14571. <td>[string]</td>
  14572. <td>true</td>
  14573. <td>none</td>
  14574. <td>the ID of the board</td>
  14575. </tr>
  14576. <tr>
  14577. <td>name</td>
  14578. <td>string</td>
  14579. <td>true</td>
  14580. <td>none</td>
  14581. <td>name of the custom field</td>
  14582. </tr>
  14583. <tr>
  14584. <td>type</td>
  14585. <td>string</td>
  14586. <td>true</td>
  14587. <td>none</td>
  14588. <td>type of the custom field</td>
  14589. </tr>
  14590. <tr>
  14591. <td>settings</td>
  14592. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  14593. <td>true</td>
  14594. <td>none</td>
  14595. <td>settings of the custom field</td>
  14596. </tr>
  14597. <tr>
  14598. <td>showOnCard</td>
  14599. <td>boolean</td>
  14600. <td>true</td>
  14601. <td>none</td>
  14602. <td>should we show on the cards this custom field</td>
  14603. </tr>
  14604. <tr>
  14605. <td>automaticallyOnCard</td>
  14606. <td>boolean</td>
  14607. <td>true</td>
  14608. <td>none</td>
  14609. <td>should the custom fields automatically be added on cards?</td>
  14610. </tr>
  14611. <tr>
  14612. <td>showLabelOnMiniCard</td>
  14613. <td>boolean</td>
  14614. <td>true</td>
  14615. <td>none</td>
  14616. <td>should the label of the custom field be shown on minicards?</td>
  14617. </tr>
  14618. <tr>
  14619. <td>createdAt</td>
  14620. <td>string|null</td>
  14621. <td>false</td>
  14622. <td>none</td>
  14623. <td>none</td>
  14624. </tr>
  14625. <tr>
  14626. <td>modifiedAt</td>
  14627. <td>string</td>
  14628. <td>true</td>
  14629. <td>none</td>
  14630. <td>none</td>
  14631. </tr>
  14632. </tbody>
  14633. </table>
  14634. <h4 id="enumerated-values">Enumerated Values</h4>
  14635. <table>
  14636. <thead>
  14637. <tr>
  14638. <th>Property</th>
  14639. <th>Value</th>
  14640. </tr>
  14641. </thead>
  14642. <tbody>
  14643. <tr>
  14644. <td>type</td>
  14645. <td>text</td>
  14646. </tr>
  14647. <tr>
  14648. <td>type</td>
  14649. <td>number</td>
  14650. </tr>
  14651. <tr>
  14652. <td>type</td>
  14653. <td>date</td>
  14654. </tr>
  14655. <tr>
  14656. <td>type</td>
  14657. <td>dropdown</td>
  14658. </tr>
  14659. <tr>
  14660. <td>type</td>
  14661. <td>currency</td>
  14662. </tr>
  14663. </tbody>
  14664. </table>
  14665. <h2 id="tocscustomfieldssettings">CustomFieldsSettings</h2>
  14666. <p><a id="schemacustomfieldssettings"></a></p>
  14667. <pre class="highlight tab tab-json"><code>{
  14668. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  14669. <span class="hljs-attr">"dropdownItems"</span>: [
  14670. {}
  14671. ]
  14672. }
  14673. </code></pre>
  14674. <h3 id="properties">Properties</h3>
  14675. <table>
  14676. <thead>
  14677. <tr>
  14678. <th>Name</th>
  14679. <th>Type</th>
  14680. <th>Required</th>
  14681. <th>Restrictions</th>
  14682. <th>Description</th>
  14683. </tr>
  14684. </thead>
  14685. <tbody>
  14686. <tr>
  14687. <td>currencyCode</td>
  14688. <td>string</td>
  14689. <td>false</td>
  14690. <td>none</td>
  14691. <td>none</td>
  14692. </tr>
  14693. <tr>
  14694. <td>dropdownItems</td>
  14695. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  14696. <td>false</td>
  14697. <td>none</td>
  14698. <td>list of drop down items objects</td>
  14699. </tr>
  14700. </tbody>
  14701. </table>
  14702. <h2 id="tocscustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  14703. <p><a id="schemacustomfieldssettingsdropdownitems"></a></p>
  14704. <pre class="highlight tab tab-json"><code>{}
  14705. </code></pre>
  14706. <h3 id="properties">Properties</h3>
  14707. <p><em>None</em></p>
  14708. <h2 id="tocsintegrations">Integrations</h2>
  14709. <p><a id="schemaintegrations"></a></p>
  14710. <pre class="highlight tab tab-json"><code>{
  14711. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  14712. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  14713. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  14714. <span class="hljs-attr">"activities"</span>: [
  14715. <span class="hljs-string">"string"</span>
  14716. ],
  14717. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  14718. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  14719. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  14720. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14721. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  14722. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  14723. }
  14724. </code></pre>
  14725. <p><em>Integration with third-party applications</em></p>
  14726. <h3 id="properties">Properties</h3>
  14727. <table>
  14728. <thead>
  14729. <tr>
  14730. <th>Name</th>
  14731. <th>Type</th>
  14732. <th>Required</th>
  14733. <th>Restrictions</th>
  14734. <th>Description</th>
  14735. </tr>
  14736. </thead>
  14737. <tbody>
  14738. <tr>
  14739. <td>enabled</td>
  14740. <td>boolean</td>
  14741. <td>true</td>
  14742. <td>none</td>
  14743. <td>is the integration enabled?</td>
  14744. </tr>
  14745. <tr>
  14746. <td>title</td>
  14747. <td>string|null</td>
  14748. <td>false</td>
  14749. <td>none</td>
  14750. <td>name of the integration</td>
  14751. </tr>
  14752. <tr>
  14753. <td>type</td>
  14754. <td>string</td>
  14755. <td>true</td>
  14756. <td>none</td>
  14757. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  14758. </tr>
  14759. <tr>
  14760. <td>activities</td>
  14761. <td>[string]</td>
  14762. <td>true</td>
  14763. <td>none</td>
  14764. <td>activities the integration gets triggered (list)</td>
  14765. </tr>
  14766. <tr>
  14767. <td>url</td>
  14768. <td>string</td>
  14769. <td>true</td>
  14770. <td>none</td>
  14771. <td>none</td>
  14772. </tr>
  14773. <tr>
  14774. <td>token</td>
  14775. <td>string|null</td>
  14776. <td>false</td>
  14777. <td>none</td>
  14778. <td>token of the integration</td>
  14779. </tr>
  14780. <tr>
  14781. <td>boardId</td>
  14782. <td>string</td>
  14783. <td>true</td>
  14784. <td>none</td>
  14785. <td>Board ID of the integration</td>
  14786. </tr>
  14787. <tr>
  14788. <td>createdAt</td>
  14789. <td>string</td>
  14790. <td>true</td>
  14791. <td>none</td>
  14792. <td>Creation date of the integration</td>
  14793. </tr>
  14794. <tr>
  14795. <td>modifiedAt</td>
  14796. <td>string</td>
  14797. <td>true</td>
  14798. <td>none</td>
  14799. <td>none</td>
  14800. </tr>
  14801. <tr>
  14802. <td>userId</td>
  14803. <td>string</td>
  14804. <td>true</td>
  14805. <td>none</td>
  14806. <td>user ID who created the interation</td>
  14807. </tr>
  14808. </tbody>
  14809. </table>
  14810. <h2 id="tocslists">Lists</h2>
  14811. <p><a id="schemalists"></a></p>
  14812. <pre class="highlight tab tab-json"><code>{
  14813. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  14814. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  14815. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  14816. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  14817. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  14818. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14819. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  14820. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  14821. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  14822. <span class="hljs-attr">"wipLimit"</span>: {
  14823. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  14824. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  14825. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  14826. },
  14827. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  14828. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  14829. }
  14830. </code></pre>
  14831. <p><em>A list (column) in the Wekan board.</em></p>
  14832. <h3 id="properties">Properties</h3>
  14833. <table>
  14834. <thead>
  14835. <tr>
  14836. <th>Name</th>
  14837. <th>Type</th>
  14838. <th>Required</th>
  14839. <th>Restrictions</th>
  14840. <th>Description</th>
  14841. </tr>
  14842. </thead>
  14843. <tbody>
  14844. <tr>
  14845. <td>title</td>
  14846. <td>string</td>
  14847. <td>true</td>
  14848. <td>none</td>
  14849. <td>the title of the list</td>
  14850. </tr>
  14851. <tr>
  14852. <td>starred</td>
  14853. <td>boolean|null</td>
  14854. <td>false</td>
  14855. <td>none</td>
  14856. <td>if a list is stared then we put it on the top</td>
  14857. </tr>
  14858. <tr>
  14859. <td>archived</td>
  14860. <td>boolean</td>
  14861. <td>true</td>
  14862. <td>none</td>
  14863. <td>is the list archived</td>
  14864. </tr>
  14865. <tr>
  14866. <td>boardId</td>
  14867. <td>string</td>
  14868. <td>true</td>
  14869. <td>none</td>
  14870. <td>the board associated to this list</td>
  14871. </tr>
  14872. <tr>
  14873. <td>swimlaneId</td>
  14874. <td>string</td>
  14875. <td>true</td>
  14876. <td>none</td>
  14877. <td>the swimlane associated to this list. Used for templates</td>
  14878. </tr>
  14879. <tr>
  14880. <td>createdAt</td>
  14881. <td>string</td>
  14882. <td>true</td>
  14883. <td>none</td>
  14884. <td>creation date</td>
  14885. </tr>
  14886. <tr>
  14887. <td>sort</td>
  14888. <td>number|null</td>
  14889. <td>false</td>
  14890. <td>none</td>
  14891. <td>is the list sorted</td>
  14892. </tr>
  14893. <tr>
  14894. <td>updatedAt</td>
  14895. <td>string|null</td>
  14896. <td>false</td>
  14897. <td>none</td>
  14898. <td>last update of the list</td>
  14899. </tr>
  14900. <tr>
  14901. <td>modifiedAt</td>
  14902. <td>string</td>
  14903. <td>true</td>
  14904. <td>none</td>
  14905. <td>none</td>
  14906. </tr>
  14907. <tr>
  14908. <td>wipLimit</td>
  14909. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  14910. <td>false</td>
  14911. <td>none</td>
  14912. <td>WIP object, see below</td>
  14913. </tr>
  14914. <tr>
  14915. <td>color</td>
  14916. <td>string|null</td>
  14917. <td>false</td>
  14918. <td>none</td>
  14919. <td>the color of the list</td>
  14920. </tr>
  14921. <tr>
  14922. <td>type</td>
  14923. <td>string</td>
  14924. <td>true</td>
  14925. <td>none</td>
  14926. <td>The type of list</td>
  14927. </tr>
  14928. </tbody>
  14929. </table>
  14930. <h4 id="enumerated-values">Enumerated Values</h4>
  14931. <table>
  14932. <thead>
  14933. <tr>
  14934. <th>Property</th>
  14935. <th>Value</th>
  14936. </tr>
  14937. </thead>
  14938. <tbody>
  14939. <tr>
  14940. <td>color</td>
  14941. <td>white</td>
  14942. </tr>
  14943. <tr>
  14944. <td>color</td>
  14945. <td>green</td>
  14946. </tr>
  14947. <tr>
  14948. <td>color</td>
  14949. <td>yellow</td>
  14950. </tr>
  14951. <tr>
  14952. <td>color</td>
  14953. <td>orange</td>
  14954. </tr>
  14955. <tr>
  14956. <td>color</td>
  14957. <td>red</td>
  14958. </tr>
  14959. <tr>
  14960. <td>color</td>
  14961. <td>purple</td>
  14962. </tr>
  14963. <tr>
  14964. <td>color</td>
  14965. <td>blue</td>
  14966. </tr>
  14967. <tr>
  14968. <td>color</td>
  14969. <td>sky</td>
  14970. </tr>
  14971. <tr>
  14972. <td>color</td>
  14973. <td>lime</td>
  14974. </tr>
  14975. <tr>
  14976. <td>color</td>
  14977. <td>pink</td>
  14978. </tr>
  14979. <tr>
  14980. <td>color</td>
  14981. <td>black</td>
  14982. </tr>
  14983. <tr>
  14984. <td>color</td>
  14985. <td>peachpuff</td>
  14986. </tr>
  14987. <tr>
  14988. <td>color</td>
  14989. <td>crimson</td>
  14990. </tr>
  14991. <tr>
  14992. <td>color</td>
  14993. <td>plum</td>
  14994. </tr>
  14995. <tr>
  14996. <td>color</td>
  14997. <td>darkgreen</td>
  14998. </tr>
  14999. <tr>
  15000. <td>color</td>
  15001. <td>slateblue</td>
  15002. </tr>
  15003. <tr>
  15004. <td>color</td>
  15005. <td>magenta</td>
  15006. </tr>
  15007. <tr>
  15008. <td>color</td>
  15009. <td>gold</td>
  15010. </tr>
  15011. <tr>
  15012. <td>color</td>
  15013. <td>navy</td>
  15014. </tr>
  15015. <tr>
  15016. <td>color</td>
  15017. <td>gray</td>
  15018. </tr>
  15019. <tr>
  15020. <td>color</td>
  15021. <td>saddlebrown</td>
  15022. </tr>
  15023. <tr>
  15024. <td>color</td>
  15025. <td>paleturquoise</td>
  15026. </tr>
  15027. <tr>
  15028. <td>color</td>
  15029. <td>mistyrose</td>
  15030. </tr>
  15031. <tr>
  15032. <td>color</td>
  15033. <td>indigo</td>
  15034. </tr>
  15035. </tbody>
  15036. </table>
  15037. <h2 id="tocslistswiplimit">ListsWiplimit</h2>
  15038. <p><a id="schemalistswiplimit"></a></p>
  15039. <pre class="highlight tab tab-json"><code>{
  15040. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  15041. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  15042. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  15043. }
  15044. </code></pre>
  15045. <h3 id="properties">Properties</h3>
  15046. <table>
  15047. <thead>
  15048. <tr>
  15049. <th>Name</th>
  15050. <th>Type</th>
  15051. <th>Required</th>
  15052. <th>Restrictions</th>
  15053. <th>Description</th>
  15054. </tr>
  15055. </thead>
  15056. <tbody>
  15057. <tr>
  15058. <td>value</td>
  15059. <td>number</td>
  15060. <td>true</td>
  15061. <td>none</td>
  15062. <td>value of the WIP</td>
  15063. </tr>
  15064. <tr>
  15065. <td>enabled</td>
  15066. <td>boolean</td>
  15067. <td>true</td>
  15068. <td>none</td>
  15069. <td>is the WIP enabled</td>
  15070. </tr>
  15071. <tr>
  15072. <td>soft</td>
  15073. <td>boolean</td>
  15074. <td>true</td>
  15075. <td>none</td>
  15076. <td>is the WIP a soft or hard requirement</td>
  15077. </tr>
  15078. </tbody>
  15079. </table>
  15080. <h2 id="tocsswimlanes">Swimlanes</h2>
  15081. <p><a id="schemaswimlanes"></a></p>
  15082. <pre class="highlight tab tab-json"><code>{
  15083. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  15084. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  15085. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  15086. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  15087. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  15088. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  15089. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  15090. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  15091. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  15092. }
  15093. </code></pre>
  15094. <p><em>A swimlane is an line in the kaban board.</em></p>
  15095. <h3 id="properties">Properties</h3>
  15096. <table>
  15097. <thead>
  15098. <tr>
  15099. <th>Name</th>
  15100. <th>Type</th>
  15101. <th>Required</th>
  15102. <th>Restrictions</th>
  15103. <th>Description</th>
  15104. </tr>
  15105. </thead>
  15106. <tbody>
  15107. <tr>
  15108. <td>title</td>
  15109. <td>string</td>
  15110. <td>true</td>
  15111. <td>none</td>
  15112. <td>the title of the swimlane</td>
  15113. </tr>
  15114. <tr>
  15115. <td>archived</td>
  15116. <td>boolean</td>
  15117. <td>true</td>
  15118. <td>none</td>
  15119. <td>is the swimlane archived?</td>
  15120. </tr>
  15121. <tr>
  15122. <td>boardId</td>
  15123. <td>string</td>
  15124. <td>true</td>
  15125. <td>none</td>
  15126. <td>the ID of the board the swimlane is attached to</td>
  15127. </tr>
  15128. <tr>
  15129. <td>createdAt</td>
  15130. <td>string</td>
  15131. <td>true</td>
  15132. <td>none</td>
  15133. <td>creation date of the swimlane</td>
  15134. </tr>
  15135. <tr>
  15136. <td>sort</td>
  15137. <td>number|null</td>
  15138. <td>false</td>
  15139. <td>none</td>
  15140. <td>the sort value of the swimlane</td>
  15141. </tr>
  15142. <tr>
  15143. <td>color</td>
  15144. <td>string|null</td>
  15145. <td>false</td>
  15146. <td>none</td>
  15147. <td>the color of the swimlane</td>
  15148. </tr>
  15149. <tr>
  15150. <td>updatedAt</td>
  15151. <td>string|null</td>
  15152. <td>false</td>
  15153. <td>none</td>
  15154. <td>when was the swimlane last edited</td>
  15155. </tr>
  15156. <tr>
  15157. <td>modifiedAt</td>
  15158. <td>string</td>
  15159. <td>true</td>
  15160. <td>none</td>
  15161. <td>none</td>
  15162. </tr>
  15163. <tr>
  15164. <td>type</td>
  15165. <td>string</td>
  15166. <td>true</td>
  15167. <td>none</td>
  15168. <td>The type of swimlane</td>
  15169. </tr>
  15170. </tbody>
  15171. </table>
  15172. <h4 id="enumerated-values">Enumerated Values</h4>
  15173. <table>
  15174. <thead>
  15175. <tr>
  15176. <th>Property</th>
  15177. <th>Value</th>
  15178. </tr>
  15179. </thead>
  15180. <tbody>
  15181. <tr>
  15182. <td>color</td>
  15183. <td>white</td>
  15184. </tr>
  15185. <tr>
  15186. <td>color</td>
  15187. <td>green</td>
  15188. </tr>
  15189. <tr>
  15190. <td>color</td>
  15191. <td>yellow</td>
  15192. </tr>
  15193. <tr>
  15194. <td>color</td>
  15195. <td>orange</td>
  15196. </tr>
  15197. <tr>
  15198. <td>color</td>
  15199. <td>red</td>
  15200. </tr>
  15201. <tr>
  15202. <td>color</td>
  15203. <td>purple</td>
  15204. </tr>
  15205. <tr>
  15206. <td>color</td>
  15207. <td>blue</td>
  15208. </tr>
  15209. <tr>
  15210. <td>color</td>
  15211. <td>sky</td>
  15212. </tr>
  15213. <tr>
  15214. <td>color</td>
  15215. <td>lime</td>
  15216. </tr>
  15217. <tr>
  15218. <td>color</td>
  15219. <td>pink</td>
  15220. </tr>
  15221. <tr>
  15222. <td>color</td>
  15223. <td>black</td>
  15224. </tr>
  15225. <tr>
  15226. <td>color</td>
  15227. <td>peachpuff</td>
  15228. </tr>
  15229. <tr>
  15230. <td>color</td>
  15231. <td>crimson</td>
  15232. </tr>
  15233. <tr>
  15234. <td>color</td>
  15235. <td>plum</td>
  15236. </tr>
  15237. <tr>
  15238. <td>color</td>
  15239. <td>darkgreen</td>
  15240. </tr>
  15241. <tr>
  15242. <td>color</td>
  15243. <td>slateblue</td>
  15244. </tr>
  15245. <tr>
  15246. <td>color</td>
  15247. <td>magenta</td>
  15248. </tr>
  15249. <tr>
  15250. <td>color</td>
  15251. <td>gold</td>
  15252. </tr>
  15253. <tr>
  15254. <td>color</td>
  15255. <td>navy</td>
  15256. </tr>
  15257. <tr>
  15258. <td>color</td>
  15259. <td>gray</td>
  15260. </tr>
  15261. <tr>
  15262. <td>color</td>
  15263. <td>saddlebrown</td>
  15264. </tr>
  15265. <tr>
  15266. <td>color</td>
  15267. <td>paleturquoise</td>
  15268. </tr>
  15269. <tr>
  15270. <td>color</td>
  15271. <td>mistyrose</td>
  15272. </tr>
  15273. <tr>
  15274. <td>color</td>
  15275. <td>indigo</td>
  15276. </tr>
  15277. </tbody>
  15278. </table>
  15279. <h2 id="tocsusers">Users</h2>
  15280. <p><a id="schemausers"></a></p>
  15281. <pre class="highlight tab tab-json"><code>{
  15282. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>,
  15283. <span class="hljs-attr">"emails"</span>: [
  15284. {
  15285. <span class="hljs-attr">"address"</span>: <span class="hljs-string">"string"</span>,
  15286. <span class="hljs-attr">"verified"</span>: <span class="hljs-literal">true</span>
  15287. }
  15288. ],
  15289. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  15290. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  15291. <span class="hljs-attr">"profile"</span>: {
  15292. <span class="hljs-attr">"avatarUrl"</span>: <span class="hljs-string">"string"</span>,
  15293. <span class="hljs-attr">"emailBuffer"</span>: [
  15294. <span class="hljs-string">"string"</span>
  15295. ],
  15296. <span class="hljs-attr">"fullname"</span>: <span class="hljs-string">"string"</span>,
  15297. <span class="hljs-attr">"showDesktopDragHandles"</span>: <span class="hljs-literal">true</span>,
  15298. <span class="hljs-attr">"hideCheckedItems"</span>: <span class="hljs-literal">true</span>,
  15299. <span class="hljs-attr">"hiddenSystemMessages"</span>: <span class="hljs-literal">true</span>,
  15300. <span class="hljs-attr">"hiddenMinicardLabelText"</span>: <span class="hljs-literal">true</span>,
  15301. <span class="hljs-attr">"initials"</span>: <span class="hljs-string">"string"</span>,
  15302. <span class="hljs-attr">"invitedBoards"</span>: [
  15303. <span class="hljs-string">"string"</span>
  15304. ],
  15305. <span class="hljs-attr">"language"</span>: <span class="hljs-string">"string"</span>,
  15306. <span class="hljs-attr">"notifications"</span>: [],
  15307. <span class="hljs-attr">"activity"</span>: <span class="hljs-string">"string"</span>,
  15308. <span class="hljs-attr">"read"</span>: <span class="hljs-string">"string"</span>,
  15309. <span class="hljs-attr">"showCardsCountAt"</span>: <span class="hljs-number">0</span>,
  15310. <span class="hljs-attr">"startDayOfWeek"</span>: <span class="hljs-number">0</span>,
  15311. <span class="hljs-attr">"starredBoards"</span>: [
  15312. <span class="hljs-string">"string"</span>
  15313. ],
  15314. <span class="hljs-attr">"icode"</span>: <span class="hljs-string">"string"</span>,
  15315. <span class="hljs-attr">"boardView"</span>: <span class="hljs-string">"board-view-swimlanes"</span>,
  15316. <span class="hljs-attr">"listSortBy"</span>: <span class="hljs-string">"-modifiedat"</span>,
  15317. <span class="hljs-attr">"templatesBoardId"</span>: <span class="hljs-string">"string"</span>,
  15318. <span class="hljs-attr">"cardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  15319. <span class="hljs-attr">"listTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  15320. <span class="hljs-attr">"boardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  15321. },
  15322. <span class="hljs-attr">"services"</span>: {},
  15323. <span class="hljs-attr">"heartbeat"</span>: <span class="hljs-string">"string"</span>,
  15324. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  15325. <span class="hljs-attr">"createdThroughApi"</span>: <span class="hljs-literal">true</span>,
  15326. <span class="hljs-attr">"loginDisabled"</span>: <span class="hljs-literal">true</span>,
  15327. <span class="hljs-attr">"authenticationMethod"</span>: <span class="hljs-string">"string"</span>
  15328. }
  15329. </code></pre>
  15330. <p><em>A User in wekan</em></p>
  15331. <h3 id="properties">Properties</h3>
  15332. <table>
  15333. <thead>
  15334. <tr>
  15335. <th>Name</th>
  15336. <th>Type</th>
  15337. <th>Required</th>
  15338. <th>Restrictions</th>
  15339. <th>Description</th>
  15340. </tr>
  15341. </thead>
  15342. <tbody>
  15343. <tr>
  15344. <td>username</td>
  15345. <td>string|null</td>
  15346. <td>false</td>
  15347. <td>none</td>
  15348. <td>the username of the user</td>
  15349. </tr>
  15350. <tr>
  15351. <td>emails</td>
  15352. <td>[<a href="#schemausersemails">UsersEmails</a>]|null</td>
  15353. <td>false</td>
  15354. <td>none</td>
  15355. <td>the list of emails attached to a user</td>
  15356. </tr>
  15357. <tr>
  15358. <td>createdAt</td>
  15359. <td>string</td>
  15360. <td>true</td>
  15361. <td>none</td>
  15362. <td>creation date of the user</td>
  15363. </tr>
  15364. <tr>
  15365. <td>modifiedAt</td>
  15366. <td>string</td>
  15367. <td>true</td>
  15368. <td>none</td>
  15369. <td>none</td>
  15370. </tr>
  15371. <tr>
  15372. <td>profile</td>
  15373. <td><a href="#schemausersprofile">UsersProfile</a></td>
  15374. <td>false</td>
  15375. <td>none</td>
  15376. <td>profile settings</td>
  15377. </tr>
  15378. <tr>
  15379. <td>services</td>
  15380. <td>object|null</td>
  15381. <td>false</td>
  15382. <td>none</td>
  15383. <td>services field of the user</td>
  15384. </tr>
  15385. <tr>
  15386. <td>heartbeat</td>
  15387. <td>string|null</td>
  15388. <td>false</td>
  15389. <td>none</td>
  15390. <td>last time the user has been seen</td>
  15391. </tr>
  15392. <tr>
  15393. <td>isAdmin</td>
  15394. <td>boolean|null</td>
  15395. <td>false</td>
  15396. <td>none</td>
  15397. <td>is the user an admin of the board?</td>
  15398. </tr>
  15399. <tr>
  15400. <td>createdThroughApi</td>
  15401. <td>boolean|null</td>
  15402. <td>false</td>
  15403. <td>none</td>
  15404. <td>was the user created through the API?</td>
  15405. </tr>
  15406. <tr>
  15407. <td>loginDisabled</td>
  15408. <td>boolean|null</td>
  15409. <td>false</td>
  15410. <td>none</td>
  15411. <td>loginDisabled field of the user</td>
  15412. </tr>
  15413. <tr>
  15414. <td>authenticationMethod</td>
  15415. <td>string</td>
  15416. <td>true</td>
  15417. <td>none</td>
  15418. <td>authentication method of the user</td>
  15419. </tr>
  15420. </tbody>
  15421. </table>
  15422. <h2 id="tocsusersemails">UsersEmails</h2>
  15423. <p><a id="schemausersemails"></a></p>
  15424. <pre class="highlight tab tab-json"><code>{
  15425. <span class="hljs-attr">"address"</span>: <span class="hljs-string">"string"</span>,
  15426. <span class="hljs-attr">"verified"</span>: <span class="hljs-literal">true</span>
  15427. }
  15428. </code></pre>
  15429. <h3 id="properties">Properties</h3>
  15430. <table>
  15431. <thead>
  15432. <tr>
  15433. <th>Name</th>
  15434. <th>Type</th>
  15435. <th>Required</th>
  15436. <th>Restrictions</th>
  15437. <th>Description</th>
  15438. </tr>
  15439. </thead>
  15440. <tbody>
  15441. <tr>
  15442. <td>address</td>
  15443. <td>string</td>
  15444. <td>true</td>
  15445. <td>none</td>
  15446. <td>The email address</td>
  15447. </tr>
  15448. <tr>
  15449. <td>verified</td>
  15450. <td>boolean</td>
  15451. <td>true</td>
  15452. <td>none</td>
  15453. <td>Has the email been verified</td>
  15454. </tr>
  15455. </tbody>
  15456. </table>
  15457. <h2 id="tocsusersprofile">UsersProfile</h2>
  15458. <p><a id="schemausersprofile"></a></p>
  15459. <pre class="highlight tab tab-json"><code>{
  15460. <span class="hljs-attr">"avatarUrl"</span>: <span class="hljs-string">"string"</span>,
  15461. <span class="hljs-attr">"emailBuffer"</span>: [
  15462. <span class="hljs-string">"string"</span>
  15463. ],
  15464. <span class="hljs-attr">"fullname"</span>: <span class="hljs-string">"string"</span>,
  15465. <span class="hljs-attr">"showDesktopDragHandles"</span>: <span class="hljs-literal">true</span>,
  15466. <span class="hljs-attr">"hideCheckedItems"</span>: <span class="hljs-literal">true</span>,
  15467. <span class="hljs-attr">"hiddenSystemMessages"</span>: <span class="hljs-literal">true</span>,
  15468. <span class="hljs-attr">"hiddenMinicardLabelText"</span>: <span class="hljs-literal">true</span>,
  15469. <span class="hljs-attr">"initials"</span>: <span class="hljs-string">"string"</span>,
  15470. <span class="hljs-attr">"invitedBoards"</span>: [
  15471. <span class="hljs-string">"string"</span>
  15472. ],
  15473. <span class="hljs-attr">"language"</span>: <span class="hljs-string">"string"</span>,
  15474. <span class="hljs-attr">"notifications"</span>: [],
  15475. <span class="hljs-attr">"activity"</span>: <span class="hljs-string">"string"</span>,
  15476. <span class="hljs-attr">"read"</span>: <span class="hljs-string">"string"</span>,
  15477. <span class="hljs-attr">"showCardsCountAt"</span>: <span class="hljs-number">0</span>,
  15478. <span class="hljs-attr">"startDayOfWeek"</span>: <span class="hljs-number">0</span>,
  15479. <span class="hljs-attr">"starredBoards"</span>: [
  15480. <span class="hljs-string">"string"</span>
  15481. ],
  15482. <span class="hljs-attr">"icode"</span>: <span class="hljs-string">"string"</span>,
  15483. <span class="hljs-attr">"boardView"</span>: <span class="hljs-string">"board-view-swimlanes"</span>,
  15484. <span class="hljs-attr">"listSortBy"</span>: <span class="hljs-string">"-modifiedat"</span>,
  15485. <span class="hljs-attr">"templatesBoardId"</span>: <span class="hljs-string">"string"</span>,
  15486. <span class="hljs-attr">"cardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  15487. <span class="hljs-attr">"listTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>,
  15488. <span class="hljs-attr">"boardTemplatesSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  15489. }
  15490. </code></pre>
  15491. <h3 id="properties">Properties</h3>
  15492. <table>
  15493. <thead>
  15494. <tr>
  15495. <th>Name</th>
  15496. <th>Type</th>
  15497. <th>Required</th>
  15498. <th>Restrictions</th>
  15499. <th>Description</th>
  15500. </tr>
  15501. </thead>
  15502. <tbody>
  15503. <tr>
  15504. <td>avatarUrl</td>
  15505. <td>string</td>
  15506. <td>false</td>
  15507. <td>none</td>
  15508. <td>URL of the avatar of the user</td>
  15509. </tr>
  15510. <tr>
  15511. <td>emailBuffer</td>
  15512. <td>[string]</td>
  15513. <td>false</td>
  15514. <td>none</td>
  15515. <td>list of email buffers of the user</td>
  15516. </tr>
  15517. <tr>
  15518. <td>fullname</td>
  15519. <td>string</td>
  15520. <td>false</td>
  15521. <td>none</td>
  15522. <td>full name of the user</td>
  15523. </tr>
  15524. <tr>
  15525. <td>showDesktopDragHandles</td>
  15526. <td>boolean</td>
  15527. <td>false</td>
  15528. <td>none</td>
  15529. <td>does the user want to hide system messages?</td>
  15530. </tr>
  15531. <tr>
  15532. <td>hideCheckedItems</td>
  15533. <td>boolean</td>
  15534. <td>false</td>
  15535. <td>none</td>
  15536. <td>does the user want to hide checked checklist items?</td>
  15537. </tr>
  15538. <tr>
  15539. <td>hiddenSystemMessages</td>
  15540. <td>boolean</td>
  15541. <td>false</td>
  15542. <td>none</td>
  15543. <td>does the user want to hide system messages?</td>
  15544. </tr>
  15545. <tr>
  15546. <td>hiddenMinicardLabelText</td>
  15547. <td>boolean</td>
  15548. <td>false</td>
  15549. <td>none</td>
  15550. <td>does the user want to hide minicard label texts?</td>
  15551. </tr>
  15552. <tr>
  15553. <td>initials</td>
  15554. <td>string</td>
  15555. <td>false</td>
  15556. <td>none</td>
  15557. <td>initials of the user</td>
  15558. </tr>
  15559. <tr>
  15560. <td>invitedBoards</td>
  15561. <td>[string]</td>
  15562. <td>false</td>
  15563. <td>none</td>
  15564. <td>board IDs the user has been invited to</td>
  15565. </tr>
  15566. <tr>
  15567. <td>language</td>
  15568. <td>string</td>
  15569. <td>false</td>
  15570. <td>none</td>
  15571. <td>language of the user</td>
  15572. </tr>
  15573. <tr>
  15574. <td>notifications</td>
  15575. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  15576. <td>false</td>
  15577. <td>none</td>
  15578. <td>enabled notifications for the user</td>
  15579. </tr>
  15580. <tr>
  15581. <td>activity</td>
  15582. <td>string</td>
  15583. <td>true</td>
  15584. <td>none</td>
  15585. <td>The id of the activity this notification references</td>
  15586. </tr>
  15587. <tr>
  15588. <td>read</td>
  15589. <td>string</td>
  15590. <td>false</td>
  15591. <td>none</td>
  15592. <td>the date on which this notification was read</td>
  15593. </tr>
  15594. <tr>
  15595. <td>showCardsCountAt</td>
  15596. <td>number</td>
  15597. <td>false</td>
  15598. <td>none</td>
  15599. <td>showCardCountAt field of the user</td>
  15600. </tr>
  15601. <tr>
  15602. <td>startDayOfWeek</td>
  15603. <td>number</td>
  15604. <td>false</td>
  15605. <td>none</td>
  15606. <td>startDayOfWeek field of the user</td>
  15607. </tr>
  15608. <tr>
  15609. <td>starredBoards</td>
  15610. <td>[string]</td>
  15611. <td>false</td>
  15612. <td>none</td>
  15613. <td>list of starred board IDs</td>
  15614. </tr>
  15615. <tr>
  15616. <td>icode</td>
  15617. <td>string</td>
  15618. <td>false</td>
  15619. <td>none</td>
  15620. <td>icode</td>
  15621. </tr>
  15622. <tr>
  15623. <td>boardView</td>
  15624. <td>string</td>
  15625. <td>false</td>
  15626. <td>none</td>
  15627. <td>boardView field of the user</td>
  15628. </tr>
  15629. <tr>
  15630. <td>listSortBy</td>
  15631. <td>string</td>
  15632. <td>false</td>
  15633. <td>none</td>
  15634. <td>default sort list for user</td>
  15635. </tr>
  15636. <tr>
  15637. <td>templatesBoardId</td>
  15638. <td>string</td>
  15639. <td>true</td>
  15640. <td>none</td>
  15641. <td>Reference to the templates board</td>
  15642. </tr>
  15643. <tr>
  15644. <td>cardTemplatesSwimlaneId</td>
  15645. <td>string</td>
  15646. <td>true</td>
  15647. <td>none</td>
  15648. <td>Reference to the card templates swimlane Id</td>
  15649. </tr>
  15650. <tr>
  15651. <td>listTemplatesSwimlaneId</td>
  15652. <td>string</td>
  15653. <td>true</td>
  15654. <td>none</td>
  15655. <td>Reference to the list templates swimlane Id</td>
  15656. </tr>
  15657. <tr>
  15658. <td>boardTemplatesSwimlaneId</td>
  15659. <td>string</td>
  15660. <td>true</td>
  15661. <td>none</td>
  15662. <td>Reference to the board templates swimlane Id</td>
  15663. </tr>
  15664. </tbody>
  15665. </table>
  15666. <h4 id="enumerated-values">Enumerated Values</h4>
  15667. <table>
  15668. <thead>
  15669. <tr>
  15670. <th>Property</th>
  15671. <th>Value</th>
  15672. </tr>
  15673. </thead>
  15674. <tbody>
  15675. <tr>
  15676. <td>boardView</td>
  15677. <td>board-view-swimlanes</td>
  15678. </tr>
  15679. <tr>
  15680. <td>boardView</td>
  15681. <td>board-view-lists</td>
  15682. </tr>
  15683. <tr>
  15684. <td>boardView</td>
  15685. <td>board-view-cal</td>
  15686. </tr>
  15687. <tr>
  15688. <td>listSortBy</td>
  15689. <td>-modifiedat</td>
  15690. </tr>
  15691. <tr>
  15692. <td>listSortBy</td>
  15693. <td>modifiedat</td>
  15694. </tr>
  15695. <tr>
  15696. <td>listSortBy</td>
  15697. <td>-title</td>
  15698. </tr>
  15699. <tr>
  15700. <td>listSortBy</td>
  15701. <td>title</td>
  15702. </tr>
  15703. <tr>
  15704. <td>listSortBy</td>
  15705. <td>-sort</td>
  15706. </tr>
  15707. <tr>
  15708. <td>listSortBy</td>
  15709. <td>sort</td>
  15710. </tr>
  15711. </tbody>
  15712. </table>
  15713. </div>
  15714. <div class="dark-box">
  15715. <div class="lang-selector">
  15716. <a href="#" data-language-name="shell">Shell</a>
  15717. <a href="#" data-language-name="http">HTTP</a>
  15718. <a href="#" data-language-name="javascript">JavaScript</a>
  15719. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  15720. <a href="#" data-language-name="ruby">Ruby</a>
  15721. <a href="#" data-language-name="python">Python</a>
  15722. <a href="#" data-language-name="java">Java</a>
  15723. <a href="#" data-language-name="go">Go</a>
  15724. </div>
  15725. </div>
  15726. </div>
  15727. </body>
  15728. </html>