wekan.html 622 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554
  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,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAQAAADbsxk3AAAGF0lEQVR42r3XA5AkexIH4Fx7n23btm3btm3btm3btm2uvTuzs4PvLjK6Kjq6n9/cfRUYT2dnVv5/Fe1FV+d61oFm0zNSLadocnq0Ax10101eOkd70cGmpJctFHXMqVGrC6MdWNVtbsrrRkdH+zGZlyXPmjhqOFWLcXaKduBpVeKPmMDxPnC3af7iKN0oGWXZSAV9PI9GS/0fSzCfuxSaHKnLXxilqxTWjVSwpF8xxlTRDjz1JyWY2MrlDw3VRLpFr6iwprX0jRq6uEFhzSgku4BREf/zEkxsJ8+SfnS+XXxDetEkUeFLPGo9HWvG7lHSIItHFT1cDb6P32VCC1rTlna0Wn4+rT3tZnc71+8cz6sS1Wznda2g1enmibC2RtK5xZ+ygFGg0ZE6RMmMPiK9bqqoYlIfgqeiXuhua3d4y/eGGYd3TRhhH4Vpo4b9DPCzn/J6LAqm8YpWyWcW0Smn+zhJo82jwplaJK9U98HimiSXRiGZSXJF1HG4fppU+9ZcEQ5TmDnC7O70nOe84AlT6KxPefXIP6OjfRWa3aFTJON7RPKlOcpRe1PhAmUXdLS7ZIT1opBsJjk8quhodYPU+8bs1SWYJcIOmhTWiFomd7vCYPtEyXQGS56OCusarbB+lHQty/2wdnpdLNksSqZwlXptGjyjV4SdNRlhpEZT5Yg3KKwepaS3ZxR+LCtMVpa0ODmSbi5WGGv2KJlMYe+o4QPJElFhNq+r1t/jLnCgraxv/srtvXZuvtV0+LMSTlUYbpkoJGdJGoqjylQGKLxtiig5SPJL1FGYOpJZ9VMY6SLLmdYEusbvsr3GuoVdMFBh06jhQ8mQSJX2DpfcoGeU9K8droJ5JMrFMUzyuS3iL7Gmwdq0aiO7VE2D5MaoYXyFuyPp4F3vGSo5LEo2lTwfdewqacjPJvIB2rxvi/gbdNFdV12jnlslE0UNWylsXt4bDa6SjLZhlLwLBlnI9JaygAmj5ErJZ3nTX4ERjjV+faSxoXWtZLZyFa9gI1tYtXxLV7e1yaOWWYzIP1/H3Qq9InnPK86WfGPeqh6MBV971sd28aiPXKp3JO9IHo+wDr6sD3s286xvnelbg3ztMj3s4SsDjNbi2vyJbb1lGDaPepY3zFtRxxjJm5Esi+3K1fmGPmV8eFrShr31cjfafCFL1yi5Qic/+MKskQr6etBYPK+3XySLu1NhqwgHawRjsif1TG3bqGFuhSMjedwvxvOd5IGosIlGhWE6mMhLoNkBeeq0SA5xgFG1HTCRx8A4B5jKEMmyXlKY0SpaJZ+aPf4qeykskJ8vrcnOppG0OLEMdy8quUQH0xkF2uySvWuV7GaYfeoC+lmS/iazg0YwzrS+UOjtc2Mlj+kRf5XbJYONl2HgSr/qZgnJWBtHcqBq60XYSPKsHhF20ip5UkPt0rAAFBHQLZKXdTVc8p6jfOJR0Oa8yo2/cPw5H0ge1DPCvJrsGGEb0hhzVg6pNtXmjfAxuFzuHA8pjNPqLl2iinsVtjG5j0hnRmgiPWyUtb0LRtsy/svbf2GcTF3O/LE66+JSn5kiwnGkEflTnfyIZi2kAaZ2Kj60dCRL6Idq5+oaJUq9reN9TRhpA72NIzW43hxawcBMrct4K/6chfWrGo25tdkuv34B6ds8bO7FQCf5jPSTY11alYR6uVyLWofpHMkFVJ0ZZzjDYHxpWjMbpzCj9UlfVNbKcvHnzKUfGGVRXbzjUd2rk5DXI1yOETbX1etVg1TFcU70JanJKIXTTJKb/nGFi/Vxjx0MxXO56JtJ70bYkXRThFVdF3+Nx8Bwa7tPP1OWAa0/+NE9GCzjny0UrokKPd3uJNP4XGFt/RTe87ynTelN0gG2dL6FDNfq4jxW25QxxiqkI3RwqRnjr9HX++V4TB0lqxlKesNMVTGskXSBmczpBP1tkY+c3yhMazLPKHyRz2ZT+BqM9kauje/wghOdR8pQZ0afgxddZL34O+zlHofrWPeIdLK77aBDTQw70odGg4EuKM/uo7zqBwMMkjvM1t432M0mLrt1uHudpHOly5/7zPI628nFbneRjClW87kG31g/6vwHQzOUbn+MgQEAAAAASUVORK5CYII=" 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 v7.91">Wekan REST API v7.91</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="#exportjson" class="toc-h2 toc-link" data-title="exportJson">exportJson</a>
  1369. </li>
  1370. </ul>
  1371. </li>
  1372. <li>
  1373. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1374. <ul class="toc-list-h2">
  1375. <li>
  1376. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="get_all_checklists">get_all_checklists</a>
  1377. </li>
  1378. <li>
  1379. <a href="#new_checklist" class="toc-h2 toc-link" data-title="new_checklist">new_checklist</a>
  1380. </li>
  1381. <li>
  1382. <a href="#get_checklist" class="toc-h2 toc-link" data-title="get_checklist">get_checklist</a>
  1383. </li>
  1384. <li>
  1385. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="delete_checklist">delete_checklist</a>
  1386. </li>
  1387. </ul>
  1388. </li>
  1389. <li>
  1390. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1391. <ul class="toc-list-h2">
  1392. <li>
  1393. <a href="#new_checklist_item" class="toc-h2 toc-link" data-title="new_checklist_item">new_checklist_item</a>
  1394. </li>
  1395. <li>
  1396. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="get_checklist_item">get_checklist_item</a>
  1397. </li>
  1398. <li>
  1399. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="edit_checklist_item">edit_checklist_item</a>
  1400. </li>
  1401. <li>
  1402. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="delete_checklist_item">delete_checklist_item</a>
  1403. </li>
  1404. </ul>
  1405. </li>
  1406. <li>
  1407. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1408. <ul class="toc-list-h2">
  1409. <li>
  1410. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="get_all_comments">get_all_comments</a>
  1411. </li>
  1412. <li>
  1413. <a href="#new_comment" class="toc-h2 toc-link" data-title="new_comment">new_comment</a>
  1414. </li>
  1415. <li>
  1416. <a href="#get_comment" class="toc-h2 toc-link" data-title="get_comment">get_comment</a>
  1417. </li>
  1418. <li>
  1419. <a href="#delete_comment" class="toc-h2 toc-link" data-title="delete_comment">delete_comment</a>
  1420. </li>
  1421. </ul>
  1422. </li>
  1423. <li>
  1424. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1425. <ul class="toc-list-h2">
  1426. <li>
  1427. <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>
  1428. </li>
  1429. <li>
  1430. <a href="#get_board_cards_count" class="toc-h2 toc-link" data-title="get_board_cards_count">get_board_cards_count</a>
  1431. </li>
  1432. <li>
  1433. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="get_all_cards">get_all_cards</a>
  1434. </li>
  1435. <li>
  1436. <a href="#new_card" class="toc-h2 toc-link" data-title="new_card">new_card</a>
  1437. </li>
  1438. <li>
  1439. <a href="#get_card" class="toc-h2 toc-link" data-title="get_card">get_card</a>
  1440. </li>
  1441. <li>
  1442. <a href="#edit_card" class="toc-h2 toc-link" data-title="edit_card">edit_card</a>
  1443. </li>
  1444. <li>
  1445. <a href="#delete_card" class="toc-h2 toc-link" data-title="delete_card">delete_card</a>
  1446. </li>
  1447. <li>
  1448. <a href="#edit_card_custom_field" class="toc-h2 toc-link" data-title="edit_card_custom_field">edit_card_custom_field</a>
  1449. </li>
  1450. <li>
  1451. <a href="#get_list_cards_count" class="toc-h2 toc-link" data-title="get_list_cards_count">get_list_cards_count</a>
  1452. </li>
  1453. <li>
  1454. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="get_swimlane_cards">get_swimlane_cards</a>
  1455. </li>
  1456. </ul>
  1457. </li>
  1458. <li>
  1459. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1460. <ul class="toc-list-h2">
  1461. <li>
  1462. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="get_all_custom_fields">get_all_custom_fields</a>
  1463. </li>
  1464. <li>
  1465. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="new_custom_field">new_custom_field</a>
  1466. </li>
  1467. <li>
  1468. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="get_custom_field">get_custom_field</a>
  1469. </li>
  1470. <li>
  1471. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="edit_custom_field">edit_custom_field</a>
  1472. </li>
  1473. <li>
  1474. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="delete_custom_field">delete_custom_field</a>
  1475. </li>
  1476. <li>
  1477. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="add_custom_field_dropdown_items">add_custom_field_dropdown_items</a>
  1478. </li>
  1479. <li>
  1480. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</a>
  1481. </li>
  1482. <li>
  1483. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</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-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1532. <ul class="toc-list-h2">
  1533. <li>
  1534. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="get_all_swimlanes">get_all_swimlanes</a>
  1535. </li>
  1536. <li>
  1537. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="new_swimlane">new_swimlane</a>
  1538. </li>
  1539. <li>
  1540. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="get_swimlane">get_swimlane</a>
  1541. </li>
  1542. <li>
  1543. <a href="#edit_swimlane" class="toc-h2 toc-link" data-title="edit_swimlane">edit_swimlane</a>
  1544. </li>
  1545. <li>
  1546. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="delete_swimlane">delete_swimlane</a>
  1547. </li>
  1548. </ul>
  1549. </li>
  1550. <li>
  1551. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1552. <ul class="toc-list-h2">
  1553. <li>
  1554. <a href="#tocscardcomments" class="toc-h2 toc-link" data-title="CardComments">CardComments</a>
  1555. </li>
  1556. <li>
  1557. <a href="#tocscards" class="toc-h2 toc-link" data-title="Cards">Cards</a>
  1558. </li>
  1559. <li>
  1560. <a href="#tocscardsvote" class="toc-h2 toc-link" data-title="CardsVote">CardsVote</a>
  1561. </li>
  1562. <li>
  1563. <a href="#tocscardspoker" class="toc-h2 toc-link" data-title="CardsPoker">CardsPoker</a>
  1564. </li>
  1565. <li>
  1566. <a href="#tocscardscustomfields" class="toc-h2 toc-link" data-title="CardsCustomfields">CardsCustomfields</a>
  1567. </li>
  1568. <li>
  1569. <a href="#tocschecklistitems" class="toc-h2 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1570. </li>
  1571. <li>
  1572. <a href="#tocschecklists" class="toc-h2 toc-link" data-title="Checklists">Checklists</a>
  1573. </li>
  1574. <li>
  1575. <a href="#tocscustomfields" class="toc-h2 toc-link" data-title="CustomFields">CustomFields</a>
  1576. </li>
  1577. <li>
  1578. <a href="#tocscustomfieldssettings" class="toc-h2 toc-link" data-title="CustomFieldsSettings">CustomFieldsSettings</a>
  1579. </li>
  1580. <li>
  1581. <a href="#tocscustomfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="CustomFieldsSettingsDropdownitems">CustomFieldsSettingsDropdownitems</a>
  1582. </li>
  1583. <li>
  1584. <a href="#tocsintegrations" class="toc-h2 toc-link" data-title="Integrations">Integrations</a>
  1585. </li>
  1586. <li>
  1587. <a href="#tocslists" class="toc-h2 toc-link" data-title="Lists">Lists</a>
  1588. </li>
  1589. <li>
  1590. <a href="#tocslistswiplimit" class="toc-h2 toc-link" data-title="ListsWiplimit">ListsWiplimit</a>
  1591. </li>
  1592. <li>
  1593. <a href="#tocsswimlanes" class="toc-h2 toc-link" data-title="Swimlanes">Swimlanes</a>
  1594. </li>
  1595. </ul>
  1596. </li>
  1597. </ul>
  1598. </div>
  1599. <ul class="toc-footer">
  1600. </ul>
  1601. </div>
  1602. <div class="page-wrapper">
  1603. <div class="dark-box"></div>
  1604. <div class="content">
  1605. <h1 id="wekan-rest-api">Wekan REST API v7.91</h1>
  1606. <blockquote>
  1607. <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>
  1608. </blockquote>
  1609. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1610. <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>
  1611. <blockquote>
  1612. <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>
  1613. </blockquote>
  1614. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1615. <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>
  1616. <ul>
  1617. <li>Only call via HTTPS</li>
  1618. <li>Implement a timed authorization token expiration strategy</li>
  1619. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1620. </ul>
  1621. <h1 id="authentication">Authentication</h1>
  1622. <ul>
  1623. <li>API Key (UserSecurity)
  1624. <ul>
  1625. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1626. </ul>
  1627. </li>
  1628. </ul>
  1629. <h1 id="wekan-rest-api-login">Login</h1>
  1630. <h2 id="login">login</h2>
  1631. <p><a id="opIdlogin"></a></p>
  1632. <blockquote>
  1633. <p>Code samples</p>
  1634. </blockquote>
  1635. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1636. curl -X POST /users/login \
  1637. -H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
  1638. -H <span class="hljs-string">'Accept: */*'</span>
  1639. </code></pre>
  1640. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/login</span> HTTP/1.1
  1641. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/x-www-form-urlencoded
  1642. <span class="hljs-attribute">Accept</span>: */*
  1643. <span class="undefined"></span></span></code></pre>
  1644. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1645. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1646. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1647. };
  1648. $.ajax({
  1649. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/login'</span>,
  1650. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1651. <span class="hljs-attr">headers</span>: headers,
  1652. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1653. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1654. }
  1655. })
  1656. </code></pre>
  1657. <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>);
  1658. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1659. "username": "string",
  1660. "password": "pa$$word"
  1661. }'</span>;
  1662. <span class="hljs-keyword">const</span> headers = {
  1663. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1664. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1665. };
  1666. fetch(<span class="hljs-string">'/users/login'</span>,
  1667. {
  1668. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1669. <span class="hljs-attr">body</span>: inputBody,
  1670. <span class="hljs-attr">headers</span>: headers
  1671. })
  1672. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1673. <span class="hljs-keyword">return</span> res.json();
  1674. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1675. <span class="hljs-built_in">console</span>.log(body);
  1676. });
  1677. </code></pre>
  1678. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1679. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1680. headers = {
  1681. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1682. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1683. }
  1684. result = RestClient.post <span class="hljs-string">'/users/login'</span>,
  1685. <span class="hljs-symbol">params:</span> {
  1686. }, <span class="hljs-symbol">headers:</span> headers
  1687. p JSON.parse(result)
  1688. </code></pre>
  1689. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1690. headers = {
  1691. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1692. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  1693. }
  1694. r = requests.post(<span class="hljs-string">'/users/login'</span>, params={
  1695. }, headers = headers)
  1696. <span class="hljs-keyword">print</span> r.json()
  1697. </code></pre>
  1698. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/login"</span>);
  1699. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1700. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  1701. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1702. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1703. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1704. String inputLine;
  1705. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1706. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1707. response.append(inputLine);
  1708. }
  1709. in.close();
  1710. System.out.println(response.toString());
  1711. </code></pre>
  1712. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1713. <span class="hljs-keyword">import</span> (
  1714. <span class="hljs-string">"bytes"</span>
  1715. <span class="hljs-string">"net/http"</span>
  1716. )
  1717. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1718. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1719. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/x-www-form-urlencoded"</span>},
  1720. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  1721. }
  1722. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1723. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/login"</span>, data)
  1724. req.Header = headers
  1725. client := &amp;http.Client{}
  1726. resp, err := client.Do(req)
  1727. <span class="hljs-comment">// ...</span>
  1728. }
  1729. </code></pre>
  1730. <p><code>POST /users/login</code></p>
  1731. <p><em>Login with REST API</em></p>
  1732. <blockquote>
  1733. <p>Body parameter</p>
  1734. </blockquote>
  1735. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1736. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1737. </code></pre>
  1738. <h3 id="login-parameters">Parameters</h3>
  1739. <table>
  1740. <thead>
  1741. <tr>
  1742. <th>Name</th>
  1743. <th>In</th>
  1744. <th>Type</th>
  1745. <th>Required</th>
  1746. <th>Description</th>
  1747. </tr>
  1748. </thead>
  1749. <tbody>
  1750. <tr>
  1751. <td>body</td>
  1752. <td>body</td>
  1753. <td>object</td>
  1754. <td>false</td>
  1755. <td>none</td>
  1756. </tr>
  1757. <tr>
  1758. <td>» username</td>
  1759. <td>body</td>
  1760. <td>string</td>
  1761. <td>true</td>
  1762. <td>Your username</td>
  1763. </tr>
  1764. <tr>
  1765. <td>» password</td>
  1766. <td>body</td>
  1767. <td>string(password)</td>
  1768. <td>true</td>
  1769. <td>Your password</td>
  1770. </tr>
  1771. </tbody>
  1772. </table>
  1773. <blockquote>
  1774. <p>Example responses</p>
  1775. </blockquote>
  1776. <blockquote>
  1777. <p>200 Response</p>
  1778. </blockquote>
  1779. <h3 id="login-responses">Responses</h3>
  1780. <table>
  1781. <thead>
  1782. <tr>
  1783. <th>Status</th>
  1784. <th>Meaning</th>
  1785. <th>Description</th>
  1786. <th>Schema</th>
  1787. </tr>
  1788. </thead>
  1789. <tbody>
  1790. <tr>
  1791. <td>200</td>
  1792. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1793. <td>Successful authentication</td>
  1794. <td>Inline</td>
  1795. </tr>
  1796. <tr>
  1797. <td>400</td>
  1798. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1799. <td>Error in authentication</td>
  1800. <td>Inline</td>
  1801. </tr>
  1802. <tr>
  1803. <td>default</td>
  1804. <td>Default</td>
  1805. <td>Error in authentication</td>
  1806. <td>None</td>
  1807. </tr>
  1808. </tbody>
  1809. </table>
  1810. <h3 id="login-responseschema">Response Schema</h3>
  1811. <p>Status Code <strong>200</strong></p>
  1812. <table>
  1813. <thead>
  1814. <tr>
  1815. <th>Name</th>
  1816. <th>Type</th>
  1817. <th>Required</th>
  1818. <th>Restrictions</th>
  1819. <th>Description</th>
  1820. </tr>
  1821. </thead>
  1822. <tbody>
  1823. <tr>
  1824. <td>» id</td>
  1825. <td>string</td>
  1826. <td>false</td>
  1827. <td>none</td>
  1828. <td>none</td>
  1829. </tr>
  1830. <tr>
  1831. <td>» token</td>
  1832. <td>string</td>
  1833. <td>false</td>
  1834. <td>none</td>
  1835. <td>none</td>
  1836. </tr>
  1837. <tr>
  1838. <td>» tokenExpires</td>
  1839. <td>string</td>
  1840. <td>false</td>
  1841. <td>none</td>
  1842. <td>none</td>
  1843. </tr>
  1844. </tbody>
  1845. </table>
  1846. <p>Status Code <strong>400</strong></p>
  1847. <table>
  1848. <thead>
  1849. <tr>
  1850. <th>Name</th>
  1851. <th>Type</th>
  1852. <th>Required</th>
  1853. <th>Restrictions</th>
  1854. <th>Description</th>
  1855. </tr>
  1856. </thead>
  1857. <tbody>
  1858. <tr>
  1859. <td>» error</td>
  1860. <td>number</td>
  1861. <td>false</td>
  1862. <td>none</td>
  1863. <td>none</td>
  1864. </tr>
  1865. <tr>
  1866. <td>» reason</td>
  1867. <td>string</td>
  1868. <td>false</td>
  1869. <td>none</td>
  1870. <td>none</td>
  1871. </tr>
  1872. </tbody>
  1873. </table>
  1874. <aside class="success">
  1875. This operation does not require authentication
  1876. </aside>
  1877. <h2 id="register">register</h2>
  1878. <p><a id="opIdregister"></a></p>
  1879. <blockquote>
  1880. <p>Code samples</p>
  1881. </blockquote>
  1882. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1883. curl -X POST /users/register \
  1884. -H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
  1885. -H <span class="hljs-string">'Accept: */*'</span>
  1886. </code></pre>
  1887. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/register</span> HTTP/1.1
  1888. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/x-www-form-urlencoded
  1889. <span class="hljs-attribute">Accept</span>: */*
  1890. <span class="undefined"></span></span></code></pre>
  1891. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1892. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1893. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1894. };
  1895. $.ajax({
  1896. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/register'</span>,
  1897. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1898. <span class="hljs-attr">headers</span>: headers,
  1899. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1900. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1901. }
  1902. })
  1903. </code></pre>
  1904. <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>);
  1905. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1906. "username": "string",
  1907. "password": "pa$$word",
  1908. "email": "string"
  1909. }'</span>;
  1910. <span class="hljs-keyword">const</span> headers = {
  1911. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1912. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1913. };
  1914. fetch(<span class="hljs-string">'/users/register'</span>,
  1915. {
  1916. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1917. <span class="hljs-attr">body</span>: inputBody,
  1918. <span class="hljs-attr">headers</span>: headers
  1919. })
  1920. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1921. <span class="hljs-keyword">return</span> res.json();
  1922. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1923. <span class="hljs-built_in">console</span>.log(body);
  1924. });
  1925. </code></pre>
  1926. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1927. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1928. headers = {
  1929. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1930. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1931. }
  1932. result = RestClient.post <span class="hljs-string">'/users/register'</span>,
  1933. <span class="hljs-symbol">params:</span> {
  1934. }, <span class="hljs-symbol">headers:</span> headers
  1935. p JSON.parse(result)
  1936. </code></pre>
  1937. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1938. headers = {
  1939. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1940. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  1941. }
  1942. r = requests.post(<span class="hljs-string">'/users/register'</span>, params={
  1943. }, headers = headers)
  1944. <span class="hljs-keyword">print</span> r.json()
  1945. </code></pre>
  1946. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/register"</span>);
  1947. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1948. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  1949. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1950. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1951. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1952. String inputLine;
  1953. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1954. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1955. response.append(inputLine);
  1956. }
  1957. in.close();
  1958. System.out.println(response.toString());
  1959. </code></pre>
  1960. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1961. <span class="hljs-keyword">import</span> (
  1962. <span class="hljs-string">"bytes"</span>
  1963. <span class="hljs-string">"net/http"</span>
  1964. )
  1965. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1966. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1967. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/x-www-form-urlencoded"</span>},
  1968. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  1969. }
  1970. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1971. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/register"</span>, data)
  1972. req.Header = headers
  1973. client := &amp;http.Client{}
  1974. resp, err := client.Do(req)
  1975. <span class="hljs-comment">// ...</span>
  1976. }
  1977. </code></pre>
  1978. <p><code>POST /users/register</code></p>
  1979. <p><em>Register with REST API</em></p>
  1980. <p>Notes:</p>
  1981. <ul>
  1982. <li>You will need to provide the token for any of the authenticated methods.</li>
  1983. </ul>
  1984. <blockquote>
  1985. <p>Body parameter</p>
  1986. </blockquote>
  1987. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1988. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1989. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  1990. </code></pre>
  1991. <h3 id="register-parameters">Parameters</h3>
  1992. <table>
  1993. <thead>
  1994. <tr>
  1995. <th>Name</th>
  1996. <th>In</th>
  1997. <th>Type</th>
  1998. <th>Required</th>
  1999. <th>Description</th>
  2000. </tr>
  2001. </thead>
  2002. <tbody>
  2003. <tr>
  2004. <td>body</td>
  2005. <td>body</td>
  2006. <td>object</td>
  2007. <td>false</td>
  2008. <td>none</td>
  2009. </tr>
  2010. <tr>
  2011. <td>» username</td>
  2012. <td>body</td>
  2013. <td>string</td>
  2014. <td>true</td>
  2015. <td>Your username</td>
  2016. </tr>
  2017. <tr>
  2018. <td>» password</td>
  2019. <td>body</td>
  2020. <td>string(password)</td>
  2021. <td>true</td>
  2022. <td>Your password</td>
  2023. </tr>
  2024. <tr>
  2025. <td>» email</td>
  2026. <td>body</td>
  2027. <td>string</td>
  2028. <td>true</td>
  2029. <td>Your email</td>
  2030. </tr>
  2031. </tbody>
  2032. </table>
  2033. <blockquote>
  2034. <p>Example responses</p>
  2035. </blockquote>
  2036. <blockquote>
  2037. <p>200 Response</p>
  2038. </blockquote>
  2039. <h3 id="register-responses">Responses</h3>
  2040. <table>
  2041. <thead>
  2042. <tr>
  2043. <th>Status</th>
  2044. <th>Meaning</th>
  2045. <th>Description</th>
  2046. <th>Schema</th>
  2047. </tr>
  2048. </thead>
  2049. <tbody>
  2050. <tr>
  2051. <td>200</td>
  2052. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2053. <td>Successful registration</td>
  2054. <td>Inline</td>
  2055. </tr>
  2056. <tr>
  2057. <td>400</td>
  2058. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2059. <td>Error in registration</td>
  2060. <td>Inline</td>
  2061. </tr>
  2062. <tr>
  2063. <td>default</td>
  2064. <td>Default</td>
  2065. <td>Error in registration</td>
  2066. <td>None</td>
  2067. </tr>
  2068. </tbody>
  2069. </table>
  2070. <h3 id="register-responseschema">Response Schema</h3>
  2071. <p>Status Code <strong>200</strong></p>
  2072. <table>
  2073. <thead>
  2074. <tr>
  2075. <th>Name</th>
  2076. <th>Type</th>
  2077. <th>Required</th>
  2078. <th>Restrictions</th>
  2079. <th>Description</th>
  2080. </tr>
  2081. </thead>
  2082. <tbody>
  2083. <tr>
  2084. <td>» id</td>
  2085. <td>string</td>
  2086. <td>false</td>
  2087. <td>none</td>
  2088. <td>none</td>
  2089. </tr>
  2090. <tr>
  2091. <td>» token</td>
  2092. <td>string</td>
  2093. <td>false</td>
  2094. <td>none</td>
  2095. <td>none</td>
  2096. </tr>
  2097. <tr>
  2098. <td>» tokenExpires</td>
  2099. <td>string</td>
  2100. <td>false</td>
  2101. <td>none</td>
  2102. <td>none</td>
  2103. </tr>
  2104. </tbody>
  2105. </table>
  2106. <p>Status Code <strong>400</strong></p>
  2107. <table>
  2108. <thead>
  2109. <tr>
  2110. <th>Name</th>
  2111. <th>Type</th>
  2112. <th>Required</th>
  2113. <th>Restrictions</th>
  2114. <th>Description</th>
  2115. </tr>
  2116. </thead>
  2117. <tbody>
  2118. <tr>
  2119. <td>» error</td>
  2120. <td>number</td>
  2121. <td>false</td>
  2122. <td>none</td>
  2123. <td>none</td>
  2124. </tr>
  2125. <tr>
  2126. <td>» reason</td>
  2127. <td>string</td>
  2128. <td>false</td>
  2129. <td>none</td>
  2130. <td>none</td>
  2131. </tr>
  2132. </tbody>
  2133. </table>
  2134. <aside class="success">
  2135. This operation does not require authentication
  2136. </aside>
  2137. <h1 id="wekan-rest-api-boards">Boards</h1>
  2138. <h2 id="exportjson">exportJson</h2>
  2139. <p><a id="opIdexportJson"></a></p>
  2140. <blockquote>
  2141. <p>Code samples</p>
  2142. </blockquote>
  2143. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2144. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  2145. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2146. </code></pre>
  2147. <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
  2148. <span class="undefined"></span></code></pre>
  2149. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2150. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2151. };
  2152. $.ajax({
  2153. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/export'</span>,
  2154. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2155. <span class="hljs-attr">headers</span>: headers,
  2156. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2157. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2158. }
  2159. })
  2160. </code></pre>
  2161. <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>);
  2162. <span class="hljs-keyword">const</span> headers = {
  2163. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2164. };
  2165. fetch(<span class="hljs-string">'/api/boards/{board}/export'</span>,
  2166. {
  2167. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2168. <span class="hljs-attr">headers</span>: headers
  2169. })
  2170. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2171. <span class="hljs-keyword">return</span> res.json();
  2172. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2173. <span class="hljs-built_in">console</span>.log(body);
  2174. });
  2175. </code></pre>
  2176. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2177. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2178. headers = {
  2179. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2180. }
  2181. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/export'</span>,
  2182. <span class="hljs-symbol">params:</span> {
  2183. }, <span class="hljs-symbol">headers:</span> headers
  2184. p JSON.parse(result)
  2185. </code></pre>
  2186. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2187. headers = {
  2188. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2189. }
  2190. r = requests.get(<span class="hljs-string">'/api/boards/{board}/export'</span>, params={
  2191. }, headers = headers)
  2192. <span class="hljs-keyword">print</span> r.json()
  2193. </code></pre>
  2194. <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>);
  2195. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2196. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2197. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2198. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2199. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2200. String inputLine;
  2201. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2202. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2203. response.append(inputLine);
  2204. }
  2205. in.close();
  2206. System.out.println(response.toString());
  2207. </code></pre>
  2208. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2209. <span class="hljs-keyword">import</span> (
  2210. <span class="hljs-string">"bytes"</span>
  2211. <span class="hljs-string">"net/http"</span>
  2212. )
  2213. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2214. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2215. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2216. }
  2217. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2218. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/export"</span>, data)
  2219. req.Header = headers
  2220. client := &amp;http.Client{}
  2221. resp, err := client.Do(req)
  2222. <span class="hljs-comment">// ...</span>
  2223. }
  2224. </code></pre>
  2225. <p><code>GET /api/boards/{board}/export</code></p>
  2226. <p><em>This route is used to export the board to a json file format.</em></p>
  2227. <p>If user is already logged-in, pass loginToken as param
  2228. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  2229. <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>
  2230. for detailed explanations</p>
  2231. <h3 id="exportjson-parameters">Parameters</h3>
  2232. <table>
  2233. <thead>
  2234. <tr>
  2235. <th>Name</th>
  2236. <th>In</th>
  2237. <th>Type</th>
  2238. <th>Required</th>
  2239. <th>Description</th>
  2240. </tr>
  2241. </thead>
  2242. <tbody>
  2243. <tr>
  2244. <td>board</td>
  2245. <td>path</td>
  2246. <td>string</td>
  2247. <td>true</td>
  2248. <td>the ID of the board we are exporting</td>
  2249. </tr>
  2250. </tbody>
  2251. </table>
  2252. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2253. <p><strong>board</strong>: the ID of the board we are exporting</p>
  2254. <h3 id="exportjson-responses">Responses</h3>
  2255. <table>
  2256. <thead>
  2257. <tr>
  2258. <th>Status</th>
  2259. <th>Meaning</th>
  2260. <th>Description</th>
  2261. <th>Schema</th>
  2262. </tr>
  2263. </thead>
  2264. <tbody>
  2265. <tr>
  2266. <td>200</td>
  2267. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2268. <td>200 response</td>
  2269. <td>None</td>
  2270. </tr>
  2271. </tbody>
  2272. </table>
  2273. <aside class="warning">
  2274. To perform this operation, you must be authenticated by means of one of the following methods:
  2275. UserSecurity
  2276. </aside>
  2277. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  2278. <h2 id="get_all_checklists">get_all_checklists</h2>
  2279. <p><a id="opIdget_all_checklists"></a></p>
  2280. <blockquote>
  2281. <p>Code samples</p>
  2282. </blockquote>
  2283. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2284. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  2285. -H <span class="hljs-string">'Accept: application/json'</span> \
  2286. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2287. </code></pre>
  2288. <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
  2289. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2290. <span class="undefined"></span></span></code></pre>
  2291. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2292. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2293. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2294. };
  2295. $.ajax({
  2296. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2297. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2298. <span class="hljs-attr">headers</span>: headers,
  2299. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2300. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2301. }
  2302. })
  2303. </code></pre>
  2304. <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>);
  2305. <span class="hljs-keyword">const</span> headers = {
  2306. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2307. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2308. };
  2309. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2310. {
  2311. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2312. <span class="hljs-attr">headers</span>: headers
  2313. })
  2314. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2315. <span class="hljs-keyword">return</span> res.json();
  2316. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2317. <span class="hljs-built_in">console</span>.log(body);
  2318. });
  2319. </code></pre>
  2320. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2321. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2322. headers = {
  2323. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2324. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2325. }
  2326. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2327. <span class="hljs-symbol">params:</span> {
  2328. }, <span class="hljs-symbol">headers:</span> headers
  2329. p JSON.parse(result)
  2330. </code></pre>
  2331. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2332. headers = {
  2333. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2334. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2335. }
  2336. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  2337. }, headers = headers)
  2338. <span class="hljs-keyword">print</span> r.json()
  2339. </code></pre>
  2340. <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>);
  2341. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2342. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2343. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2344. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2345. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2346. String inputLine;
  2347. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2348. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2349. response.append(inputLine);
  2350. }
  2351. in.close();
  2352. System.out.println(response.toString());
  2353. </code></pre>
  2354. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2355. <span class="hljs-keyword">import</span> (
  2356. <span class="hljs-string">"bytes"</span>
  2357. <span class="hljs-string">"net/http"</span>
  2358. )
  2359. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2360. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2361. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2362. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2363. }
  2364. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2365. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  2366. req.Header = headers
  2367. client := &amp;http.Client{}
  2368. resp, err := client.Do(req)
  2369. <span class="hljs-comment">// ...</span>
  2370. }
  2371. </code></pre>
  2372. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  2373. <p><em>Get the list of checklists attached to a card</em></p>
  2374. <h3 id="get_all_checklists-parameters">Parameters</h3>
  2375. <table>
  2376. <thead>
  2377. <tr>
  2378. <th>Name</th>
  2379. <th>In</th>
  2380. <th>Type</th>
  2381. <th>Required</th>
  2382. <th>Description</th>
  2383. </tr>
  2384. </thead>
  2385. <tbody>
  2386. <tr>
  2387. <td>board</td>
  2388. <td>path</td>
  2389. <td>string</td>
  2390. <td>true</td>
  2391. <td>the board ID</td>
  2392. </tr>
  2393. <tr>
  2394. <td>card</td>
  2395. <td>path</td>
  2396. <td>string</td>
  2397. <td>true</td>
  2398. <td>the card ID</td>
  2399. </tr>
  2400. </tbody>
  2401. </table>
  2402. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2403. <p><strong>board</strong>: the board ID</p>
  2404. <p><strong>card</strong>: the card ID</p>
  2405. <blockquote>
  2406. <p>Example responses</p>
  2407. </blockquote>
  2408. <blockquote>
  2409. <p>200 Response</p>
  2410. </blockquote>
  2411. <pre class="highlight tab tab-json"><code>[
  2412. {
  2413. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2414. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  2415. }
  2416. ]
  2417. </code></pre>
  2418. <h3 id="get_all_checklists-responses">Responses</h3>
  2419. <table>
  2420. <thead>
  2421. <tr>
  2422. <th>Status</th>
  2423. <th>Meaning</th>
  2424. <th>Description</th>
  2425. <th>Schema</th>
  2426. </tr>
  2427. </thead>
  2428. <tbody>
  2429. <tr>
  2430. <td>200</td>
  2431. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2432. <td>200 response</td>
  2433. <td>Inline</td>
  2434. </tr>
  2435. </tbody>
  2436. </table>
  2437. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  2438. <p>Status Code <strong>200</strong></p>
  2439. <table>
  2440. <thead>
  2441. <tr>
  2442. <th>Name</th>
  2443. <th>Type</th>
  2444. <th>Required</th>
  2445. <th>Restrictions</th>
  2446. <th>Description</th>
  2447. </tr>
  2448. </thead>
  2449. <tbody>
  2450. <tr>
  2451. <td>» _id</td>
  2452. <td>string</td>
  2453. <td>false</td>
  2454. <td>none</td>
  2455. <td>none</td>
  2456. </tr>
  2457. <tr>
  2458. <td>» title</td>
  2459. <td>string</td>
  2460. <td>false</td>
  2461. <td>none</td>
  2462. <td>none</td>
  2463. </tr>
  2464. </tbody>
  2465. </table>
  2466. <aside class="warning">
  2467. To perform this operation, you must be authenticated by means of one of the following methods:
  2468. UserSecurity
  2469. </aside>
  2470. <h2 id="new_checklist">new_checklist</h2>
  2471. <p><a id="opIdnew_checklist"></a></p>
  2472. <blockquote>
  2473. <p>Code samples</p>
  2474. </blockquote>
  2475. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2476. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  2477. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  2478. -H <span class="hljs-string">'Accept: application/json'</span> \
  2479. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2480. </code></pre>
  2481. <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
  2482. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2483. Accept: application/json
  2484. </span></code></pre>
  2485. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2486. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2487. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2488. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2489. };
  2490. $.ajax({
  2491. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2492. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  2493. <span class="hljs-attr">headers</span>: headers,
  2494. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2495. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2496. }
  2497. })
  2498. </code></pre>
  2499. <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>);
  2500. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  2501. "title": "string",
  2502. "items": "string"
  2503. }'</span>;
  2504. <span class="hljs-keyword">const</span> headers = {
  2505. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2506. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2507. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2508. };
  2509. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2510. {
  2511. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  2512. <span class="hljs-attr">body</span>: inputBody,
  2513. <span class="hljs-attr">headers</span>: headers
  2514. })
  2515. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2516. <span class="hljs-keyword">return</span> res.json();
  2517. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2518. <span class="hljs-built_in">console</span>.log(body);
  2519. });
  2520. </code></pre>
  2521. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2522. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2523. headers = {
  2524. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  2525. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2526. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2527. }
  2528. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2529. <span class="hljs-symbol">params:</span> {
  2530. }, <span class="hljs-symbol">headers:</span> headers
  2531. p JSON.parse(result)
  2532. </code></pre>
  2533. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2534. headers = {
  2535. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  2536. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2537. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2538. }
  2539. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  2540. }, headers = headers)
  2541. <span class="hljs-keyword">print</span> r.json()
  2542. </code></pre>
  2543. <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>);
  2544. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2545. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  2546. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2547. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2548. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2549. String inputLine;
  2550. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2551. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2552. response.append(inputLine);
  2553. }
  2554. in.close();
  2555. System.out.println(response.toString());
  2556. </code></pre>
  2557. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2558. <span class="hljs-keyword">import</span> (
  2559. <span class="hljs-string">"bytes"</span>
  2560. <span class="hljs-string">"net/http"</span>
  2561. )
  2562. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2563. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2564. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  2565. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2566. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2567. }
  2568. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2569. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  2570. req.Header = headers
  2571. client := &amp;http.Client{}
  2572. resp, err := client.Do(req)
  2573. <span class="hljs-comment">// ...</span>
  2574. }
  2575. </code></pre>
  2576. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  2577. <p><em>create a new checklist</em></p>
  2578. <blockquote>
  2579. <p>Body parameter</p>
  2580. </blockquote>
  2581. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2582. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  2583. </code></pre>
  2584. <h3 id="new_checklist-parameters">Parameters</h3>
  2585. <table>
  2586. <thead>
  2587. <tr>
  2588. <th>Name</th>
  2589. <th>In</th>
  2590. <th>Type</th>
  2591. <th>Required</th>
  2592. <th>Description</th>
  2593. </tr>
  2594. </thead>
  2595. <tbody>
  2596. <tr>
  2597. <td>board</td>
  2598. <td>path</td>
  2599. <td>string</td>
  2600. <td>true</td>
  2601. <td>the board ID</td>
  2602. </tr>
  2603. <tr>
  2604. <td>card</td>
  2605. <td>path</td>
  2606. <td>string</td>
  2607. <td>true</td>
  2608. <td>the card ID</td>
  2609. </tr>
  2610. <tr>
  2611. <td>body</td>
  2612. <td>body</td>
  2613. <td>object</td>
  2614. <td>false</td>
  2615. <td>none</td>
  2616. </tr>
  2617. <tr>
  2618. <td>» title</td>
  2619. <td>body</td>
  2620. <td>string</td>
  2621. <td>true</td>
  2622. <td>the title of the new checklist</td>
  2623. </tr>
  2624. <tr>
  2625. <td>» items</td>
  2626. <td>body</td>
  2627. <td>string</td>
  2628. <td>false</td>
  2629. <td>the list of items on the new checklist</td>
  2630. </tr>
  2631. </tbody>
  2632. </table>
  2633. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2634. <p><strong>board</strong>: the board ID</p>
  2635. <p><strong>card</strong>: the card ID</p>
  2636. <blockquote>
  2637. <p>Example responses</p>
  2638. </blockquote>
  2639. <blockquote>
  2640. <p>200 Response</p>
  2641. </blockquote>
  2642. <pre class="highlight tab tab-json"><code>{
  2643. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  2644. }
  2645. </code></pre>
  2646. <h3 id="new_checklist-responses">Responses</h3>
  2647. <table>
  2648. <thead>
  2649. <tr>
  2650. <th>Status</th>
  2651. <th>Meaning</th>
  2652. <th>Description</th>
  2653. <th>Schema</th>
  2654. </tr>
  2655. </thead>
  2656. <tbody>
  2657. <tr>
  2658. <td>200</td>
  2659. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2660. <td>200 response</td>
  2661. <td>Inline</td>
  2662. </tr>
  2663. </tbody>
  2664. </table>
  2665. <h3 id="new_checklist-responseschema">Response Schema</h3>
  2666. <p>Status Code <strong>200</strong></p>
  2667. <table>
  2668. <thead>
  2669. <tr>
  2670. <th>Name</th>
  2671. <th>Type</th>
  2672. <th>Required</th>
  2673. <th>Restrictions</th>
  2674. <th>Description</th>
  2675. </tr>
  2676. </thead>
  2677. <tbody>
  2678. <tr>
  2679. <td>» _id</td>
  2680. <td>string</td>
  2681. <td>false</td>
  2682. <td>none</td>
  2683. <td>none</td>
  2684. </tr>
  2685. </tbody>
  2686. </table>
  2687. <aside class="warning">
  2688. To perform this operation, you must be authenticated by means of one of the following methods:
  2689. UserSecurity
  2690. </aside>
  2691. <h2 id="get_checklist">get_checklist</h2>
  2692. <p><a id="opIdget_checklist"></a></p>
  2693. <blockquote>
  2694. <p>Code samples</p>
  2695. </blockquote>
  2696. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2697. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  2698. -H <span class="hljs-string">'Accept: application/json'</span> \
  2699. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2700. </code></pre>
  2701. <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
  2702. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2703. <span class="undefined"></span></span></code></pre>
  2704. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2705. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2706. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2707. };
  2708. $.ajax({
  2709. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2710. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2711. <span class="hljs-attr">headers</span>: headers,
  2712. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2713. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2714. }
  2715. })
  2716. </code></pre>
  2717. <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>);
  2718. <span class="hljs-keyword">const</span> headers = {
  2719. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2720. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2721. };
  2722. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2723. {
  2724. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2725. <span class="hljs-attr">headers</span>: headers
  2726. })
  2727. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2728. <span class="hljs-keyword">return</span> res.json();
  2729. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2730. <span class="hljs-built_in">console</span>.log(body);
  2731. });
  2732. </code></pre>
  2733. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2734. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2735. headers = {
  2736. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2737. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2738. }
  2739. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2740. <span class="hljs-symbol">params:</span> {
  2741. }, <span class="hljs-symbol">headers:</span> headers
  2742. p JSON.parse(result)
  2743. </code></pre>
  2744. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2745. headers = {
  2746. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2747. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2748. }
  2749. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  2750. }, headers = headers)
  2751. <span class="hljs-keyword">print</span> r.json()
  2752. </code></pre>
  2753. <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>);
  2754. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2755. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2756. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2757. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2758. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2759. String inputLine;
  2760. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2761. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2762. response.append(inputLine);
  2763. }
  2764. in.close();
  2765. System.out.println(response.toString());
  2766. </code></pre>
  2767. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2768. <span class="hljs-keyword">import</span> (
  2769. <span class="hljs-string">"bytes"</span>
  2770. <span class="hljs-string">"net/http"</span>
  2771. )
  2772. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2773. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2774. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2775. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2776. }
  2777. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2778. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  2779. req.Header = headers
  2780. client := &amp;http.Client{}
  2781. resp, err := client.Do(req)
  2782. <span class="hljs-comment">// ...</span>
  2783. }
  2784. </code></pre>
  2785. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  2786. <p><em>Get a checklist</em></p>
  2787. <h3 id="get_checklist-parameters">Parameters</h3>
  2788. <table>
  2789. <thead>
  2790. <tr>
  2791. <th>Name</th>
  2792. <th>In</th>
  2793. <th>Type</th>
  2794. <th>Required</th>
  2795. <th>Description</th>
  2796. </tr>
  2797. </thead>
  2798. <tbody>
  2799. <tr>
  2800. <td>board</td>
  2801. <td>path</td>
  2802. <td>string</td>
  2803. <td>true</td>
  2804. <td>the board ID</td>
  2805. </tr>
  2806. <tr>
  2807. <td>card</td>
  2808. <td>path</td>
  2809. <td>string</td>
  2810. <td>true</td>
  2811. <td>the card ID</td>
  2812. </tr>
  2813. <tr>
  2814. <td>checklist</td>
  2815. <td>path</td>
  2816. <td>string</td>
  2817. <td>true</td>
  2818. <td>the ID of the checklist</td>
  2819. </tr>
  2820. </tbody>
  2821. </table>
  2822. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2823. <p><strong>board</strong>: the board ID</p>
  2824. <p><strong>card</strong>: the card ID</p>
  2825. <p><strong>checklist</strong>: the ID of the checklist</p>
  2826. <blockquote>
  2827. <p>Example responses</p>
  2828. </blockquote>
  2829. <blockquote>
  2830. <p>200 Response</p>
  2831. </blockquote>
  2832. <pre class="highlight tab tab-json"><code>{
  2833. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  2834. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  2835. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  2836. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  2837. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  2838. <span class="hljs-attr">"items"</span>: [
  2839. {
  2840. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2841. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  2842. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>
  2843. }
  2844. ]
  2845. }
  2846. </code></pre>
  2847. <h3 id="get_checklist-responses">Responses</h3>
  2848. <table>
  2849. <thead>
  2850. <tr>
  2851. <th>Status</th>
  2852. <th>Meaning</th>
  2853. <th>Description</th>
  2854. <th>Schema</th>
  2855. </tr>
  2856. </thead>
  2857. <tbody>
  2858. <tr>
  2859. <td>200</td>
  2860. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2861. <td>200 response</td>
  2862. <td>Inline</td>
  2863. </tr>
  2864. </tbody>
  2865. </table>
  2866. <h3 id="get_checklist-responseschema">Response Schema</h3>
  2867. <p>Status Code <strong>200</strong></p>
  2868. <table>
  2869. <thead>
  2870. <tr>
  2871. <th>Name</th>
  2872. <th>Type</th>
  2873. <th>Required</th>
  2874. <th>Restrictions</th>
  2875. <th>Description</th>
  2876. </tr>
  2877. </thead>
  2878. <tbody>
  2879. <tr>
  2880. <td>» cardId</td>
  2881. <td>string</td>
  2882. <td>false</td>
  2883. <td>none</td>
  2884. <td>none</td>
  2885. </tr>
  2886. <tr>
  2887. <td>» title</td>
  2888. <td>string</td>
  2889. <td>false</td>
  2890. <td>none</td>
  2891. <td>none</td>
  2892. </tr>
  2893. <tr>
  2894. <td>» finishedAt</td>
  2895. <td>string</td>
  2896. <td>false</td>
  2897. <td>none</td>
  2898. <td>none</td>
  2899. </tr>
  2900. <tr>
  2901. <td>» createdAt</td>
  2902. <td>string</td>
  2903. <td>false</td>
  2904. <td>none</td>
  2905. <td>none</td>
  2906. </tr>
  2907. <tr>
  2908. <td>» sort</td>
  2909. <td>number</td>
  2910. <td>false</td>
  2911. <td>none</td>
  2912. <td>none</td>
  2913. </tr>
  2914. <tr>
  2915. <td>» items</td>
  2916. <td>[object]</td>
  2917. <td>false</td>
  2918. <td>none</td>
  2919. <td>none</td>
  2920. </tr>
  2921. <tr>
  2922. <td>»» _id</td>
  2923. <td>string</td>
  2924. <td>false</td>
  2925. <td>none</td>
  2926. <td>none</td>
  2927. </tr>
  2928. <tr>
  2929. <td>»» title</td>
  2930. <td>string</td>
  2931. <td>false</td>
  2932. <td>none</td>
  2933. <td>none</td>
  2934. </tr>
  2935. <tr>
  2936. <td>»» isFinished</td>
  2937. <td>boolean</td>
  2938. <td>false</td>
  2939. <td>none</td>
  2940. <td>none</td>
  2941. </tr>
  2942. </tbody>
  2943. </table>
  2944. <aside class="warning">
  2945. To perform this operation, you must be authenticated by means of one of the following methods:
  2946. UserSecurity
  2947. </aside>
  2948. <h2 id="delete_checklist">delete_checklist</h2>
  2949. <p><a id="opIddelete_checklist"></a></p>
  2950. <blockquote>
  2951. <p>Code samples</p>
  2952. </blockquote>
  2953. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2954. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  2955. -H <span class="hljs-string">'Accept: application/json'</span> \
  2956. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2957. </code></pre>
  2958. <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
  2959. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2960. <span class="undefined"></span></span></code></pre>
  2961. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2962. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2963. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2964. };
  2965. $.ajax({
  2966. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2967. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  2968. <span class="hljs-attr">headers</span>: headers,
  2969. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2970. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2971. }
  2972. })
  2973. </code></pre>
  2974. <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>);
  2975. <span class="hljs-keyword">const</span> headers = {
  2976. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2977. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2978. };
  2979. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2980. {
  2981. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  2982. <span class="hljs-attr">headers</span>: headers
  2983. })
  2984. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2985. <span class="hljs-keyword">return</span> res.json();
  2986. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2987. <span class="hljs-built_in">console</span>.log(body);
  2988. });
  2989. </code></pre>
  2990. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2991. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2992. headers = {
  2993. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2994. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2995. }
  2996. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2997. <span class="hljs-symbol">params:</span> {
  2998. }, <span class="hljs-symbol">headers:</span> headers
  2999. p JSON.parse(result)
  3000. </code></pre>
  3001. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3002. headers = {
  3003. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3004. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3005. }
  3006. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  3007. }, headers = headers)
  3008. <span class="hljs-keyword">print</span> r.json()
  3009. </code></pre>
  3010. <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>);
  3011. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3012. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  3013. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3014. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3015. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3016. String inputLine;
  3017. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3018. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3019. response.append(inputLine);
  3020. }
  3021. in.close();
  3022. System.out.println(response.toString());
  3023. </code></pre>
  3024. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3025. <span class="hljs-keyword">import</span> (
  3026. <span class="hljs-string">"bytes"</span>
  3027. <span class="hljs-string">"net/http"</span>
  3028. )
  3029. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3030. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3031. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3032. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3033. }
  3034. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3035. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  3036. req.Header = headers
  3037. client := &amp;http.Client{}
  3038. resp, err := client.Do(req)
  3039. <span class="hljs-comment">// ...</span>
  3040. }
  3041. </code></pre>
  3042. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  3043. <p><em>Delete a checklist</em></p>
  3044. <p>The checklist will be removed, not put in the recycle bin.</p>
  3045. <h3 id="delete_checklist-parameters">Parameters</h3>
  3046. <table>
  3047. <thead>
  3048. <tr>
  3049. <th>Name</th>
  3050. <th>In</th>
  3051. <th>Type</th>
  3052. <th>Required</th>
  3053. <th>Description</th>
  3054. </tr>
  3055. </thead>
  3056. <tbody>
  3057. <tr>
  3058. <td>board</td>
  3059. <td>path</td>
  3060. <td>string</td>
  3061. <td>true</td>
  3062. <td>the board ID</td>
  3063. </tr>
  3064. <tr>
  3065. <td>card</td>
  3066. <td>path</td>
  3067. <td>string</td>
  3068. <td>true</td>
  3069. <td>the card ID</td>
  3070. </tr>
  3071. <tr>
  3072. <td>checklist</td>
  3073. <td>path</td>
  3074. <td>string</td>
  3075. <td>true</td>
  3076. <td>the ID of the checklist to remove</td>
  3077. </tr>
  3078. </tbody>
  3079. </table>
  3080. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3081. <p><strong>board</strong>: the board ID</p>
  3082. <p><strong>card</strong>: the card ID</p>
  3083. <p><strong>checklist</strong>: the ID of the checklist to remove</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. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  3092. }
  3093. </code></pre>
  3094. <h3 id="delete_checklist-responses">Responses</h3>
  3095. <table>
  3096. <thead>
  3097. <tr>
  3098. <th>Status</th>
  3099. <th>Meaning</th>
  3100. <th>Description</th>
  3101. <th>Schema</th>
  3102. </tr>
  3103. </thead>
  3104. <tbody>
  3105. <tr>
  3106. <td>200</td>
  3107. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3108. <td>200 response</td>
  3109. <td>Inline</td>
  3110. </tr>
  3111. </tbody>
  3112. </table>
  3113. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  3114. <p>Status Code <strong>200</strong></p>
  3115. <table>
  3116. <thead>
  3117. <tr>
  3118. <th>Name</th>
  3119. <th>Type</th>
  3120. <th>Required</th>
  3121. <th>Restrictions</th>
  3122. <th>Description</th>
  3123. </tr>
  3124. </thead>
  3125. <tbody>
  3126. <tr>
  3127. <td>» _id</td>
  3128. <td>string</td>
  3129. <td>false</td>
  3130. <td>none</td>
  3131. <td>none</td>
  3132. </tr>
  3133. </tbody>
  3134. </table>
  3135. <aside class="warning">
  3136. To perform this operation, you must be authenticated by means of one of the following methods:
  3137. UserSecurity
  3138. </aside>
  3139. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  3140. <h2 id="new_checklist_item">new_checklist_item</h2>
  3141. <p><a id="opIdnew_checklist_item"></a></p>
  3142. <blockquote>
  3143. <p>Code samples</p>
  3144. </blockquote>
  3145. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3146. curl -X POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items \
  3147. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3148. -H <span class="hljs-string">'Accept: application/json'</span> \
  3149. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3150. </code></pre>
  3151. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items</span> HTTP/1.1
  3152. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3153. Accept: application/json
  3154. </span></code></pre>
  3155. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3156. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3157. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3158. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3159. };
  3160. $.ajax({
  3161. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  3162. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3163. <span class="hljs-attr">headers</span>: headers,
  3164. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3165. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3166. }
  3167. })
  3168. </code></pre>
  3169. <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>);
  3170. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3171. "title": "string"
  3172. }'</span>;
  3173. <span class="hljs-keyword">const</span> headers = {
  3174. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3175. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3176. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3177. };
  3178. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  3179. {
  3180. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3181. <span class="hljs-attr">body</span>: inputBody,
  3182. <span class="hljs-attr">headers</span>: headers
  3183. })
  3184. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3185. <span class="hljs-keyword">return</span> res.json();
  3186. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3187. <span class="hljs-built_in">console</span>.log(body);
  3188. });
  3189. </code></pre>
  3190. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3191. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3192. headers = {
  3193. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3194. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3195. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3196. }
  3197. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  3198. <span class="hljs-symbol">params:</span> {
  3199. }, <span class="hljs-symbol">headers:</span> headers
  3200. p JSON.parse(result)
  3201. </code></pre>
  3202. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3203. headers = {
  3204. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3205. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3206. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3207. }
  3208. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>, params={
  3209. }, headers = headers)
  3210. <span class="hljs-keyword">print</span> r.json()
  3211. </code></pre>
  3212. <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"</span>);
  3213. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3214. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3215. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3216. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3217. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3218. String inputLine;
  3219. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3220. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3221. response.append(inputLine);
  3222. }
  3223. in.close();
  3224. System.out.println(response.toString());
  3225. </code></pre>
  3226. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3227. <span class="hljs-keyword">import</span> (
  3228. <span class="hljs-string">"bytes"</span>
  3229. <span class="hljs-string">"net/http"</span>
  3230. )
  3231. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3232. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3233. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3234. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3235. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3236. }
  3237. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3238. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items"</span>, data)
  3239. req.Header = headers
  3240. client := &amp;http.Client{}
  3241. resp, err := client.Do(req)
  3242. <span class="hljs-comment">// ...</span>
  3243. }
  3244. </code></pre>
  3245. <p><code>POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items</code></p>
  3246. <p><em>add a new item to a checklist</em></p>
  3247. <blockquote>
  3248. <p>Body parameter</p>
  3249. </blockquote>
  3250. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  3251. </code></pre>
  3252. <h3 id="new_checklist_item-parameters">Parameters</h3>
  3253. <table>
  3254. <thead>
  3255. <tr>
  3256. <th>Name</th>
  3257. <th>In</th>
  3258. <th>Type</th>
  3259. <th>Required</th>
  3260. <th>Description</th>
  3261. </tr>
  3262. </thead>
  3263. <tbody>
  3264. <tr>
  3265. <td>board</td>
  3266. <td>path</td>
  3267. <td>string</td>
  3268. <td>true</td>
  3269. <td>the board ID</td>
  3270. </tr>
  3271. <tr>
  3272. <td>card</td>
  3273. <td>path</td>
  3274. <td>string</td>
  3275. <td>true</td>
  3276. <td>the card ID</td>
  3277. </tr>
  3278. <tr>
  3279. <td>checklist</td>
  3280. <td>path</td>
  3281. <td>string</td>
  3282. <td>true</td>
  3283. <td>the ID of the checklist</td>
  3284. </tr>
  3285. <tr>
  3286. <td>body</td>
  3287. <td>body</td>
  3288. <td>object</td>
  3289. <td>false</td>
  3290. <td>none</td>
  3291. </tr>
  3292. <tr>
  3293. <td>» title</td>
  3294. <td>body</td>
  3295. <td>string</td>
  3296. <td>true</td>
  3297. <td>the title of the new item</td>
  3298. </tr>
  3299. </tbody>
  3300. </table>
  3301. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3302. <p><strong>board</strong>: the board ID</p>
  3303. <p><strong>card</strong>: the card ID</p>
  3304. <p><strong>checklist</strong>: the ID of the checklist</p>
  3305. <blockquote>
  3306. <p>Example responses</p>
  3307. </blockquote>
  3308. <blockquote>
  3309. <p>200 Response</p>
  3310. </blockquote>
  3311. <pre class="highlight tab tab-json"><code>{
  3312. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  3313. }
  3314. </code></pre>
  3315. <h3 id="new_checklist_item-responses">Responses</h3>
  3316. <table>
  3317. <thead>
  3318. <tr>
  3319. <th>Status</th>
  3320. <th>Meaning</th>
  3321. <th>Description</th>
  3322. <th>Schema</th>
  3323. </tr>
  3324. </thead>
  3325. <tbody>
  3326. <tr>
  3327. <td>200</td>
  3328. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3329. <td>200 response</td>
  3330. <td>Inline</td>
  3331. </tr>
  3332. </tbody>
  3333. </table>
  3334. <h3 id="new_checklist_item-responseschema">Response Schema</h3>
  3335. <p>Status Code <strong>200</strong></p>
  3336. <table>
  3337. <thead>
  3338. <tr>
  3339. <th>Name</th>
  3340. <th>Type</th>
  3341. <th>Required</th>
  3342. <th>Restrictions</th>
  3343. <th>Description</th>
  3344. </tr>
  3345. </thead>
  3346. <tbody>
  3347. <tr>
  3348. <td>» _id</td>
  3349. <td>string</td>
  3350. <td>false</td>
  3351. <td>none</td>
  3352. <td>none</td>
  3353. </tr>
  3354. </tbody>
  3355. </table>
  3356. <aside class="warning">
  3357. To perform this operation, you must be authenticated by means of one of the following methods:
  3358. UserSecurity
  3359. </aside>
  3360. <h2 id="get_checklist_item">get_checklist_item</h2>
  3361. <p><a id="opIdget_checklist_item"></a></p>
  3362. <blockquote>
  3363. <p>Code samples</p>
  3364. </blockquote>
  3365. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3366. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  3367. -H <span class="hljs-string">'Accept: application/json'</span> \
  3368. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3369. </code></pre>
  3370. <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
  3371. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3372. <span class="undefined"></span></span></code></pre>
  3373. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3374. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3375. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3376. };
  3377. $.ajax({
  3378. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3379. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3380. <span class="hljs-attr">headers</span>: headers,
  3381. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3382. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3383. }
  3384. })
  3385. </code></pre>
  3386. <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>);
  3387. <span class="hljs-keyword">const</span> headers = {
  3388. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3389. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3390. };
  3391. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3392. {
  3393. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3394. <span class="hljs-attr">headers</span>: headers
  3395. })
  3396. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3397. <span class="hljs-keyword">return</span> res.json();
  3398. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3399. <span class="hljs-built_in">console</span>.log(body);
  3400. });
  3401. </code></pre>
  3402. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3403. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3404. headers = {
  3405. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3406. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3407. }
  3408. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3409. <span class="hljs-symbol">params:</span> {
  3410. }, <span class="hljs-symbol">headers:</span> headers
  3411. p JSON.parse(result)
  3412. </code></pre>
  3413. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3414. headers = {
  3415. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3416. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3417. }
  3418. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  3419. }, headers = headers)
  3420. <span class="hljs-keyword">print</span> r.json()
  3421. </code></pre>
  3422. <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>);
  3423. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3424. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3425. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3426. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3427. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3428. String inputLine;
  3429. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3430. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3431. response.append(inputLine);
  3432. }
  3433. in.close();
  3434. System.out.println(response.toString());
  3435. </code></pre>
  3436. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3437. <span class="hljs-keyword">import</span> (
  3438. <span class="hljs-string">"bytes"</span>
  3439. <span class="hljs-string">"net/http"</span>
  3440. )
  3441. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3442. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3443. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3444. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3445. }
  3446. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3447. 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)
  3448. req.Header = headers
  3449. client := &amp;http.Client{}
  3450. resp, err := client.Do(req)
  3451. <span class="hljs-comment">// ...</span>
  3452. }
  3453. </code></pre>
  3454. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  3455. <p><em>Get a checklist item</em></p>
  3456. <h3 id="get_checklist_item-parameters">Parameters</h3>
  3457. <table>
  3458. <thead>
  3459. <tr>
  3460. <th>Name</th>
  3461. <th>In</th>
  3462. <th>Type</th>
  3463. <th>Required</th>
  3464. <th>Description</th>
  3465. </tr>
  3466. </thead>
  3467. <tbody>
  3468. <tr>
  3469. <td>board</td>
  3470. <td>path</td>
  3471. <td>string</td>
  3472. <td>true</td>
  3473. <td>the board ID</td>
  3474. </tr>
  3475. <tr>
  3476. <td>card</td>
  3477. <td>path</td>
  3478. <td>string</td>
  3479. <td>true</td>
  3480. <td>the card ID</td>
  3481. </tr>
  3482. <tr>
  3483. <td>checklist</td>
  3484. <td>path</td>
  3485. <td>string</td>
  3486. <td>true</td>
  3487. <td>the checklist ID</td>
  3488. </tr>
  3489. <tr>
  3490. <td>item</td>
  3491. <td>path</td>
  3492. <td>string</td>
  3493. <td>true</td>
  3494. <td>the ID of the item</td>
  3495. </tr>
  3496. </tbody>
  3497. </table>
  3498. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3499. <p><strong>board</strong>: the board ID</p>
  3500. <p><strong>card</strong>: the card ID</p>
  3501. <p><strong>checklist</strong>: the checklist ID</p>
  3502. <p><strong>item</strong>: the ID of the item</p>
  3503. <blockquote>
  3504. <p>Example responses</p>
  3505. </blockquote>
  3506. <blockquote>
  3507. <p>200 Response</p>
  3508. </blockquote>
  3509. <pre class="highlight tab tab-json"><code>{
  3510. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  3511. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  3512. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  3513. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  3514. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  3515. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  3516. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  3517. }
  3518. </code></pre>
  3519. <h3 id="get_checklist_item-responses">Responses</h3>
  3520. <table>
  3521. <thead>
  3522. <tr>
  3523. <th>Status</th>
  3524. <th>Meaning</th>
  3525. <th>Description</th>
  3526. <th>Schema</th>
  3527. </tr>
  3528. </thead>
  3529. <tbody>
  3530. <tr>
  3531. <td>200</td>
  3532. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3533. <td>200 response</td>
  3534. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  3535. </tr>
  3536. </tbody>
  3537. </table>
  3538. <aside class="warning">
  3539. To perform this operation, you must be authenticated by means of one of the following methods:
  3540. UserSecurity
  3541. </aside>
  3542. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  3543. <p><a id="opIdedit_checklist_item"></a></p>
  3544. <blockquote>
  3545. <p>Code samples</p>
  3546. </blockquote>
  3547. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3548. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  3549. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3550. -H <span class="hljs-string">'Accept: application/json'</span> \
  3551. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3552. </code></pre>
  3553. <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
  3554. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3555. Accept: application/json
  3556. </span></code></pre>
  3557. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3558. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3559. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3560. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3561. };
  3562. $.ajax({
  3563. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3564. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  3565. <span class="hljs-attr">headers</span>: headers,
  3566. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3567. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3568. }
  3569. })
  3570. </code></pre>
  3571. <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>);
  3572. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3573. "isFinished": "string",
  3574. "title": "string"
  3575. }'</span>;
  3576. <span class="hljs-keyword">const</span> headers = {
  3577. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3578. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3579. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3580. };
  3581. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3582. {
  3583. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  3584. <span class="hljs-attr">body</span>: inputBody,
  3585. <span class="hljs-attr">headers</span>: headers
  3586. })
  3587. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3588. <span class="hljs-keyword">return</span> res.json();
  3589. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3590. <span class="hljs-built_in">console</span>.log(body);
  3591. });
  3592. </code></pre>
  3593. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3594. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3595. headers = {
  3596. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3597. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3598. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3599. }
  3600. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3601. <span class="hljs-symbol">params:</span> {
  3602. }, <span class="hljs-symbol">headers:</span> headers
  3603. p JSON.parse(result)
  3604. </code></pre>
  3605. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3606. headers = {
  3607. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3608. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3609. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3610. }
  3611. r = requests.put(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  3612. }, headers = headers)
  3613. <span class="hljs-keyword">print</span> r.json()
  3614. </code></pre>
  3615. <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>);
  3616. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3617. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  3618. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3619. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3620. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3621. String inputLine;
  3622. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3623. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3624. response.append(inputLine);
  3625. }
  3626. in.close();
  3627. System.out.println(response.toString());
  3628. </code></pre>
  3629. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3630. <span class="hljs-keyword">import</span> (
  3631. <span class="hljs-string">"bytes"</span>
  3632. <span class="hljs-string">"net/http"</span>
  3633. )
  3634. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3635. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3636. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3637. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3638. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3639. }
  3640. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3641. 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)
  3642. req.Header = headers
  3643. client := &amp;http.Client{}
  3644. resp, err := client.Do(req)
  3645. <span class="hljs-comment">// ...</span>
  3646. }
  3647. </code></pre>
  3648. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  3649. <p><em>Edit a checklist item</em></p>
  3650. <blockquote>
  3651. <p>Body parameter</p>
  3652. </blockquote>
  3653. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  3654. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  3655. </code></pre>
  3656. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  3657. <table>
  3658. <thead>
  3659. <tr>
  3660. <th>Name</th>
  3661. <th>In</th>
  3662. <th>Type</th>
  3663. <th>Required</th>
  3664. <th>Description</th>
  3665. </tr>
  3666. </thead>
  3667. <tbody>
  3668. <tr>
  3669. <td>board</td>
  3670. <td>path</td>
  3671. <td>string</td>
  3672. <td>true</td>
  3673. <td>the board ID</td>
  3674. </tr>
  3675. <tr>
  3676. <td>card</td>
  3677. <td>path</td>
  3678. <td>string</td>
  3679. <td>true</td>
  3680. <td>the card ID</td>
  3681. </tr>
  3682. <tr>
  3683. <td>checklist</td>
  3684. <td>path</td>
  3685. <td>string</td>
  3686. <td>true</td>
  3687. <td>the checklist ID</td>
  3688. </tr>
  3689. <tr>
  3690. <td>item</td>
  3691. <td>path</td>
  3692. <td>string</td>
  3693. <td>true</td>
  3694. <td>the ID of the item</td>
  3695. </tr>
  3696. <tr>
  3697. <td>body</td>
  3698. <td>body</td>
  3699. <td>object</td>
  3700. <td>false</td>
  3701. <td>none</td>
  3702. </tr>
  3703. <tr>
  3704. <td>» isFinished</td>
  3705. <td>body</td>
  3706. <td>string</td>
  3707. <td>false</td>
  3708. <td>is the item checked?</td>
  3709. </tr>
  3710. <tr>
  3711. <td>» title</td>
  3712. <td>body</td>
  3713. <td>string</td>
  3714. <td>false</td>
  3715. <td>the new text of the item</td>
  3716. </tr>
  3717. </tbody>
  3718. </table>
  3719. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3720. <p><strong>board</strong>: the board ID</p>
  3721. <p><strong>card</strong>: the card ID</p>
  3722. <p><strong>checklist</strong>: the checklist ID</p>
  3723. <p><strong>item</strong>: the ID of the item</p>
  3724. <blockquote>
  3725. <p>Example responses</p>
  3726. </blockquote>
  3727. <blockquote>
  3728. <p>200 Response</p>
  3729. </blockquote>
  3730. <pre class="highlight tab tab-json"><code>{
  3731. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  3732. }
  3733. </code></pre>
  3734. <h3 id="edit_checklist_item-responses">Responses</h3>
  3735. <table>
  3736. <thead>
  3737. <tr>
  3738. <th>Status</th>
  3739. <th>Meaning</th>
  3740. <th>Description</th>
  3741. <th>Schema</th>
  3742. </tr>
  3743. </thead>
  3744. <tbody>
  3745. <tr>
  3746. <td>200</td>
  3747. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3748. <td>200 response</td>
  3749. <td>Inline</td>
  3750. </tr>
  3751. </tbody>
  3752. </table>
  3753. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  3754. <p>Status Code <strong>200</strong></p>
  3755. <table>
  3756. <thead>
  3757. <tr>
  3758. <th>Name</th>
  3759. <th>Type</th>
  3760. <th>Required</th>
  3761. <th>Restrictions</th>
  3762. <th>Description</th>
  3763. </tr>
  3764. </thead>
  3765. <tbody>
  3766. <tr>
  3767. <td>» _id</td>
  3768. <td>string</td>
  3769. <td>false</td>
  3770. <td>none</td>
  3771. <td>none</td>
  3772. </tr>
  3773. </tbody>
  3774. </table>
  3775. <aside class="warning">
  3776. To perform this operation, you must be authenticated by means of one of the following methods:
  3777. UserSecurity
  3778. </aside>
  3779. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  3780. <p><a id="opIddelete_checklist_item"></a></p>
  3781. <blockquote>
  3782. <p>Code samples</p>
  3783. </blockquote>
  3784. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3785. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  3786. -H <span class="hljs-string">'Accept: application/json'</span> \
  3787. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3788. </code></pre>
  3789. <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
  3790. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3791. <span class="undefined"></span></span></code></pre>
  3792. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3793. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3794. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3795. };
  3796. $.ajax({
  3797. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3798. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  3799. <span class="hljs-attr">headers</span>: headers,
  3800. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3801. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3802. }
  3803. })
  3804. </code></pre>
  3805. <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>);
  3806. <span class="hljs-keyword">const</span> headers = {
  3807. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3808. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3809. };
  3810. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3811. {
  3812. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  3813. <span class="hljs-attr">headers</span>: headers
  3814. })
  3815. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3816. <span class="hljs-keyword">return</span> res.json();
  3817. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3818. <span class="hljs-built_in">console</span>.log(body);
  3819. });
  3820. </code></pre>
  3821. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3822. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3823. headers = {
  3824. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3825. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3826. }
  3827. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3828. <span class="hljs-symbol">params:</span> {
  3829. }, <span class="hljs-symbol">headers:</span> headers
  3830. p JSON.parse(result)
  3831. </code></pre>
  3832. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3833. headers = {
  3834. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3835. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3836. }
  3837. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  3838. }, headers = headers)
  3839. <span class="hljs-keyword">print</span> r.json()
  3840. </code></pre>
  3841. <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>);
  3842. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3843. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  3844. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3845. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3846. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3847. String inputLine;
  3848. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3849. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3850. response.append(inputLine);
  3851. }
  3852. in.close();
  3853. System.out.println(response.toString());
  3854. </code></pre>
  3855. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3856. <span class="hljs-keyword">import</span> (
  3857. <span class="hljs-string">"bytes"</span>
  3858. <span class="hljs-string">"net/http"</span>
  3859. )
  3860. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3861. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3862. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3863. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3864. }
  3865. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3866. 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)
  3867. req.Header = headers
  3868. client := &amp;http.Client{}
  3869. resp, err := client.Do(req)
  3870. <span class="hljs-comment">// ...</span>
  3871. }
  3872. </code></pre>
  3873. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  3874. <p><em>Delete a checklist item</em></p>
  3875. <p>Note: this operation can't be reverted.</p>
  3876. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  3877. <table>
  3878. <thead>
  3879. <tr>
  3880. <th>Name</th>
  3881. <th>In</th>
  3882. <th>Type</th>
  3883. <th>Required</th>
  3884. <th>Description</th>
  3885. </tr>
  3886. </thead>
  3887. <tbody>
  3888. <tr>
  3889. <td>board</td>
  3890. <td>path</td>
  3891. <td>string</td>
  3892. <td>true</td>
  3893. <td>the board ID</td>
  3894. </tr>
  3895. <tr>
  3896. <td>card</td>
  3897. <td>path</td>
  3898. <td>string</td>
  3899. <td>true</td>
  3900. <td>the card ID</td>
  3901. </tr>
  3902. <tr>
  3903. <td>checklist</td>
  3904. <td>path</td>
  3905. <td>string</td>
  3906. <td>true</td>
  3907. <td>the checklist ID</td>
  3908. </tr>
  3909. <tr>
  3910. <td>item</td>
  3911. <td>path</td>
  3912. <td>string</td>
  3913. <td>true</td>
  3914. <td>the ID of the item to be removed</td>
  3915. </tr>
  3916. </tbody>
  3917. </table>
  3918. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3919. <p><strong>board</strong>: the board ID</p>
  3920. <p><strong>card</strong>: the card ID</p>
  3921. <p><strong>checklist</strong>: the checklist ID</p>
  3922. <p><strong>item</strong>: the ID of the item to be removed</p>
  3923. <blockquote>
  3924. <p>Example responses</p>
  3925. </blockquote>
  3926. <blockquote>
  3927. <p>200 Response</p>
  3928. </blockquote>
  3929. <pre class="highlight tab tab-json"><code>{
  3930. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  3931. }
  3932. </code></pre>
  3933. <h3 id="delete_checklist_item-responses">Responses</h3>
  3934. <table>
  3935. <thead>
  3936. <tr>
  3937. <th>Status</th>
  3938. <th>Meaning</th>
  3939. <th>Description</th>
  3940. <th>Schema</th>
  3941. </tr>
  3942. </thead>
  3943. <tbody>
  3944. <tr>
  3945. <td>200</td>
  3946. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3947. <td>200 response</td>
  3948. <td>Inline</td>
  3949. </tr>
  3950. </tbody>
  3951. </table>
  3952. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  3953. <p>Status Code <strong>200</strong></p>
  3954. <table>
  3955. <thead>
  3956. <tr>
  3957. <th>Name</th>
  3958. <th>Type</th>
  3959. <th>Required</th>
  3960. <th>Restrictions</th>
  3961. <th>Description</th>
  3962. </tr>
  3963. </thead>
  3964. <tbody>
  3965. <tr>
  3966. <td>» _id</td>
  3967. <td>string</td>
  3968. <td>false</td>
  3969. <td>none</td>
  3970. <td>none</td>
  3971. </tr>
  3972. </tbody>
  3973. </table>
  3974. <aside class="warning">
  3975. To perform this operation, you must be authenticated by means of one of the following methods:
  3976. UserSecurity
  3977. </aside>
  3978. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  3979. <h2 id="get_all_comments">get_all_comments</h2>
  3980. <p><a id="opIdget_all_comments"></a></p>
  3981. <blockquote>
  3982. <p>Code samples</p>
  3983. </blockquote>
  3984. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3985. curl -X GET /api/boards/{board}/cards/{card}/comments \
  3986. -H <span class="hljs-string">'Accept: application/json'</span> \
  3987. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3988. </code></pre>
  3989. <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
  3990. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3991. <span class="undefined"></span></span></code></pre>
  3992. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3993. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3994. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3995. };
  3996. $.ajax({
  3997. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  3998. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3999. <span class="hljs-attr">headers</span>: headers,
  4000. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4001. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4002. }
  4003. })
  4004. </code></pre>
  4005. <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>);
  4006. <span class="hljs-keyword">const</span> headers = {
  4007. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4008. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4009. };
  4010. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4011. {
  4012. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4013. <span class="hljs-attr">headers</span>: headers
  4014. })
  4015. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4016. <span class="hljs-keyword">return</span> res.json();
  4017. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4018. <span class="hljs-built_in">console</span>.log(body);
  4019. });
  4020. </code></pre>
  4021. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4022. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4023. headers = {
  4024. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4025. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4026. }
  4027. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4028. <span class="hljs-symbol">params:</span> {
  4029. }, <span class="hljs-symbol">headers:</span> headers
  4030. p JSON.parse(result)
  4031. </code></pre>
  4032. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4033. headers = {
  4034. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4035. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4036. }
  4037. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  4038. }, headers = headers)
  4039. <span class="hljs-keyword">print</span> r.json()
  4040. </code></pre>
  4041. <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>);
  4042. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4043. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4044. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4045. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4046. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4047. String inputLine;
  4048. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4049. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4050. response.append(inputLine);
  4051. }
  4052. in.close();
  4053. System.out.println(response.toString());
  4054. </code></pre>
  4055. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4056. <span class="hljs-keyword">import</span> (
  4057. <span class="hljs-string">"bytes"</span>
  4058. <span class="hljs-string">"net/http"</span>
  4059. )
  4060. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4061. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4062. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4063. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4064. }
  4065. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4066. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  4067. req.Header = headers
  4068. client := &amp;http.Client{}
  4069. resp, err := client.Do(req)
  4070. <span class="hljs-comment">// ...</span>
  4071. }
  4072. </code></pre>
  4073. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  4074. <p><em>Get all comments attached to a card</em></p>
  4075. <h3 id="get_all_comments-parameters">Parameters</h3>
  4076. <table>
  4077. <thead>
  4078. <tr>
  4079. <th>Name</th>
  4080. <th>In</th>
  4081. <th>Type</th>
  4082. <th>Required</th>
  4083. <th>Description</th>
  4084. </tr>
  4085. </thead>
  4086. <tbody>
  4087. <tr>
  4088. <td>board</td>
  4089. <td>path</td>
  4090. <td>string</td>
  4091. <td>true</td>
  4092. <td>the board ID of the card</td>
  4093. </tr>
  4094. <tr>
  4095. <td>card</td>
  4096. <td>path</td>
  4097. <td>string</td>
  4098. <td>true</td>
  4099. <td>the ID of the card</td>
  4100. </tr>
  4101. </tbody>
  4102. </table>
  4103. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4104. <p><strong>board</strong>: the board ID of the card</p>
  4105. <p><strong>card</strong>: the ID of the card</p>
  4106. <blockquote>
  4107. <p>Example responses</p>
  4108. </blockquote>
  4109. <blockquote>
  4110. <p>200 Response</p>
  4111. </blockquote>
  4112. <pre class="highlight tab tab-json"><code>[
  4113. {
  4114. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4115. <span class="hljs-attr">"comment"</span>: <span class="hljs-string">"string"</span>,
  4116. <span class="hljs-attr">"authorId"</span>: <span class="hljs-string">"string"</span>
  4117. }
  4118. ]
  4119. </code></pre>
  4120. <h3 id="get_all_comments-responses">Responses</h3>
  4121. <table>
  4122. <thead>
  4123. <tr>
  4124. <th>Status</th>
  4125. <th>Meaning</th>
  4126. <th>Description</th>
  4127. <th>Schema</th>
  4128. </tr>
  4129. </thead>
  4130. <tbody>
  4131. <tr>
  4132. <td>200</td>
  4133. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4134. <td>200 response</td>
  4135. <td>Inline</td>
  4136. </tr>
  4137. </tbody>
  4138. </table>
  4139. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  4140. <p>Status Code <strong>200</strong></p>
  4141. <table>
  4142. <thead>
  4143. <tr>
  4144. <th>Name</th>
  4145. <th>Type</th>
  4146. <th>Required</th>
  4147. <th>Restrictions</th>
  4148. <th>Description</th>
  4149. </tr>
  4150. </thead>
  4151. <tbody>
  4152. <tr>
  4153. <td>» _id</td>
  4154. <td>string</td>
  4155. <td>false</td>
  4156. <td>none</td>
  4157. <td>none</td>
  4158. </tr>
  4159. <tr>
  4160. <td>» comment</td>
  4161. <td>string</td>
  4162. <td>false</td>
  4163. <td>none</td>
  4164. <td>none</td>
  4165. </tr>
  4166. <tr>
  4167. <td>» authorId</td>
  4168. <td>string</td>
  4169. <td>false</td>
  4170. <td>none</td>
  4171. <td>none</td>
  4172. </tr>
  4173. </tbody>
  4174. </table>
  4175. <aside class="warning">
  4176. To perform this operation, you must be authenticated by means of one of the following methods:
  4177. UserSecurity
  4178. </aside>
  4179. <h2 id="new_comment">new_comment</h2>
  4180. <p><a id="opIdnew_comment"></a></p>
  4181. <blockquote>
  4182. <p>Code samples</p>
  4183. </blockquote>
  4184. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4185. curl -X POST /api/boards/{board}/cards/{card}/comments \
  4186. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  4187. -H <span class="hljs-string">'Accept: application/json'</span> \
  4188. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4189. </code></pre>
  4190. <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
  4191. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4192. Accept: application/json
  4193. </span></code></pre>
  4194. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4195. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4196. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4197. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4198. };
  4199. $.ajax({
  4200. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4201. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  4202. <span class="hljs-attr">headers</span>: headers,
  4203. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4204. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4205. }
  4206. })
  4207. </code></pre>
  4208. <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>);
  4209. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  4210. "authorId": "string",
  4211. "comment": "string"
  4212. }'</span>;
  4213. <span class="hljs-keyword">const</span> headers = {
  4214. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4215. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4216. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4217. };
  4218. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4219. {
  4220. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  4221. <span class="hljs-attr">body</span>: inputBody,
  4222. <span class="hljs-attr">headers</span>: headers
  4223. })
  4224. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4225. <span class="hljs-keyword">return</span> res.json();
  4226. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4227. <span class="hljs-built_in">console</span>.log(body);
  4228. });
  4229. </code></pre>
  4230. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4231. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4232. headers = {
  4233. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4234. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4235. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4236. }
  4237. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4238. <span class="hljs-symbol">params:</span> {
  4239. }, <span class="hljs-symbol">headers:</span> headers
  4240. p JSON.parse(result)
  4241. </code></pre>
  4242. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4243. headers = {
  4244. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4245. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4246. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4247. }
  4248. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  4249. }, headers = headers)
  4250. <span class="hljs-keyword">print</span> r.json()
  4251. </code></pre>
  4252. <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>);
  4253. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4254. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  4255. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4256. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4257. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4258. String inputLine;
  4259. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4260. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4261. response.append(inputLine);
  4262. }
  4263. in.close();
  4264. System.out.println(response.toString());
  4265. </code></pre>
  4266. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4267. <span class="hljs-keyword">import</span> (
  4268. <span class="hljs-string">"bytes"</span>
  4269. <span class="hljs-string">"net/http"</span>
  4270. )
  4271. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4272. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4273. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  4274. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4275. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4276. }
  4277. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4278. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  4279. req.Header = headers
  4280. client := &amp;http.Client{}
  4281. resp, err := client.Do(req)
  4282. <span class="hljs-comment">// ...</span>
  4283. }
  4284. </code></pre>
  4285. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  4286. <p><em>Add a comment on a card</em></p>
  4287. <blockquote>
  4288. <p>Body parameter</p>
  4289. </blockquote>
  4290. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  4291. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  4292. </code></pre>
  4293. <h3 id="new_comment-parameters">Parameters</h3>
  4294. <table>
  4295. <thead>
  4296. <tr>
  4297. <th>Name</th>
  4298. <th>In</th>
  4299. <th>Type</th>
  4300. <th>Required</th>
  4301. <th>Description</th>
  4302. </tr>
  4303. </thead>
  4304. <tbody>
  4305. <tr>
  4306. <td>board</td>
  4307. <td>path</td>
  4308. <td>string</td>
  4309. <td>true</td>
  4310. <td>the board ID of the card</td>
  4311. </tr>
  4312. <tr>
  4313. <td>card</td>
  4314. <td>path</td>
  4315. <td>string</td>
  4316. <td>true</td>
  4317. <td>the ID of the card</td>
  4318. </tr>
  4319. <tr>
  4320. <td>body</td>
  4321. <td>body</td>
  4322. <td>object</td>
  4323. <td>false</td>
  4324. <td>none</td>
  4325. </tr>
  4326. <tr>
  4327. <td>» authorId</td>
  4328. <td>body</td>
  4329. <td>string</td>
  4330. <td>true</td>
  4331. <td>the user who 'posted' the comment</td>
  4332. </tr>
  4333. <tr>
  4334. <td>» comment</td>
  4335. <td>body</td>
  4336. <td>string</td>
  4337. <td>true</td>
  4338. <td>the comment value</td>
  4339. </tr>
  4340. </tbody>
  4341. </table>
  4342. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4343. <p><strong>board</strong>: the board ID of the card</p>
  4344. <p><strong>card</strong>: the ID of the card</p>
  4345. <blockquote>
  4346. <p>Example responses</p>
  4347. </blockquote>
  4348. <blockquote>
  4349. <p>200 Response</p>
  4350. </blockquote>
  4351. <pre class="highlight tab tab-json"><code>{
  4352. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  4353. }
  4354. </code></pre>
  4355. <h3 id="new_comment-responses">Responses</h3>
  4356. <table>
  4357. <thead>
  4358. <tr>
  4359. <th>Status</th>
  4360. <th>Meaning</th>
  4361. <th>Description</th>
  4362. <th>Schema</th>
  4363. </tr>
  4364. </thead>
  4365. <tbody>
  4366. <tr>
  4367. <td>200</td>
  4368. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4369. <td>200 response</td>
  4370. <td>Inline</td>
  4371. </tr>
  4372. </tbody>
  4373. </table>
  4374. <h3 id="new_comment-responseschema">Response Schema</h3>
  4375. <p>Status Code <strong>200</strong></p>
  4376. <table>
  4377. <thead>
  4378. <tr>
  4379. <th>Name</th>
  4380. <th>Type</th>
  4381. <th>Required</th>
  4382. <th>Restrictions</th>
  4383. <th>Description</th>
  4384. </tr>
  4385. </thead>
  4386. <tbody>
  4387. <tr>
  4388. <td>» _id</td>
  4389. <td>string</td>
  4390. <td>false</td>
  4391. <td>none</td>
  4392. <td>none</td>
  4393. </tr>
  4394. </tbody>
  4395. </table>
  4396. <aside class="warning">
  4397. To perform this operation, you must be authenticated by means of one of the following methods:
  4398. UserSecurity
  4399. </aside>
  4400. <h2 id="get_comment">get_comment</h2>
  4401. <p><a id="opIdget_comment"></a></p>
  4402. <blockquote>
  4403. <p>Code samples</p>
  4404. </blockquote>
  4405. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4406. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  4407. -H <span class="hljs-string">'Accept: application/json'</span> \
  4408. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4409. </code></pre>
  4410. <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
  4411. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4412. <span class="undefined"></span></span></code></pre>
  4413. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4414. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4415. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4416. };
  4417. $.ajax({
  4418. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4419. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4420. <span class="hljs-attr">headers</span>: headers,
  4421. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4422. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4423. }
  4424. })
  4425. </code></pre>
  4426. <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>);
  4427. <span class="hljs-keyword">const</span> headers = {
  4428. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4429. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4430. };
  4431. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4432. {
  4433. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4434. <span class="hljs-attr">headers</span>: headers
  4435. })
  4436. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4437. <span class="hljs-keyword">return</span> res.json();
  4438. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4439. <span class="hljs-built_in">console</span>.log(body);
  4440. });
  4441. </code></pre>
  4442. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4443. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4444. headers = {
  4445. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4446. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4447. }
  4448. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4449. <span class="hljs-symbol">params:</span> {
  4450. }, <span class="hljs-symbol">headers:</span> headers
  4451. p JSON.parse(result)
  4452. </code></pre>
  4453. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4454. headers = {
  4455. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4456. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4457. }
  4458. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  4459. }, headers = headers)
  4460. <span class="hljs-keyword">print</span> r.json()
  4461. </code></pre>
  4462. <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>);
  4463. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4464. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4465. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4466. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4467. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4468. String inputLine;
  4469. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4470. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4471. response.append(inputLine);
  4472. }
  4473. in.close();
  4474. System.out.println(response.toString());
  4475. </code></pre>
  4476. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4477. <span class="hljs-keyword">import</span> (
  4478. <span class="hljs-string">"bytes"</span>
  4479. <span class="hljs-string">"net/http"</span>
  4480. )
  4481. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4482. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4483. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4484. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4485. }
  4486. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4487. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  4488. req.Header = headers
  4489. client := &amp;http.Client{}
  4490. resp, err := client.Do(req)
  4491. <span class="hljs-comment">// ...</span>
  4492. }
  4493. </code></pre>
  4494. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  4495. <p><em>Get a comment on a card</em></p>
  4496. <h3 id="get_comment-parameters">Parameters</h3>
  4497. <table>
  4498. <thead>
  4499. <tr>
  4500. <th>Name</th>
  4501. <th>In</th>
  4502. <th>Type</th>
  4503. <th>Required</th>
  4504. <th>Description</th>
  4505. </tr>
  4506. </thead>
  4507. <tbody>
  4508. <tr>
  4509. <td>board</td>
  4510. <td>path</td>
  4511. <td>string</td>
  4512. <td>true</td>
  4513. <td>the board ID of the card</td>
  4514. </tr>
  4515. <tr>
  4516. <td>card</td>
  4517. <td>path</td>
  4518. <td>string</td>
  4519. <td>true</td>
  4520. <td>the ID of the card</td>
  4521. </tr>
  4522. <tr>
  4523. <td>comment</td>
  4524. <td>path</td>
  4525. <td>string</td>
  4526. <td>true</td>
  4527. <td>the ID of the comment to retrieve</td>
  4528. </tr>
  4529. </tbody>
  4530. </table>
  4531. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4532. <p><strong>board</strong>: the board ID of the card</p>
  4533. <p><strong>card</strong>: the ID of the card</p>
  4534. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  4535. <blockquote>
  4536. <p>Example responses</p>
  4537. </blockquote>
  4538. <blockquote>
  4539. <p>200 Response</p>
  4540. </blockquote>
  4541. <pre class="highlight tab tab-json"><code>{
  4542. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  4543. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  4544. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  4545. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  4546. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  4547. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  4548. }
  4549. </code></pre>
  4550. <h3 id="get_comment-responses">Responses</h3>
  4551. <table>
  4552. <thead>
  4553. <tr>
  4554. <th>Status</th>
  4555. <th>Meaning</th>
  4556. <th>Description</th>
  4557. <th>Schema</th>
  4558. </tr>
  4559. </thead>
  4560. <tbody>
  4561. <tr>
  4562. <td>200</td>
  4563. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4564. <td>200 response</td>
  4565. <td><a href="#schemacardcomments">CardComments</a></td>
  4566. </tr>
  4567. </tbody>
  4568. </table>
  4569. <aside class="warning">
  4570. To perform this operation, you must be authenticated by means of one of the following methods:
  4571. UserSecurity
  4572. </aside>
  4573. <h2 id="delete_comment">delete_comment</h2>
  4574. <p><a id="opIddelete_comment"></a></p>
  4575. <blockquote>
  4576. <p>Code samples</p>
  4577. </blockquote>
  4578. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4579. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  4580. -H <span class="hljs-string">'Accept: application/json'</span> \
  4581. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4582. </code></pre>
  4583. <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
  4584. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4585. <span class="undefined"></span></span></code></pre>
  4586. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4587. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4588. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4589. };
  4590. $.ajax({
  4591. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4592. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  4593. <span class="hljs-attr">headers</span>: headers,
  4594. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4595. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4596. }
  4597. })
  4598. </code></pre>
  4599. <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>);
  4600. <span class="hljs-keyword">const</span> headers = {
  4601. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4602. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4603. };
  4604. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4605. {
  4606. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  4607. <span class="hljs-attr">headers</span>: headers
  4608. })
  4609. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4610. <span class="hljs-keyword">return</span> res.json();
  4611. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4612. <span class="hljs-built_in">console</span>.log(body);
  4613. });
  4614. </code></pre>
  4615. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4616. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4617. headers = {
  4618. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4619. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4620. }
  4621. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4622. <span class="hljs-symbol">params:</span> {
  4623. }, <span class="hljs-symbol">headers:</span> headers
  4624. p JSON.parse(result)
  4625. </code></pre>
  4626. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4627. headers = {
  4628. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4629. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4630. }
  4631. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  4632. }, headers = headers)
  4633. <span class="hljs-keyword">print</span> r.json()
  4634. </code></pre>
  4635. <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>);
  4636. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4637. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  4638. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4639. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4640. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4641. String inputLine;
  4642. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4643. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4644. response.append(inputLine);
  4645. }
  4646. in.close();
  4647. System.out.println(response.toString());
  4648. </code></pre>
  4649. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4650. <span class="hljs-keyword">import</span> (
  4651. <span class="hljs-string">"bytes"</span>
  4652. <span class="hljs-string">"net/http"</span>
  4653. )
  4654. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4655. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4656. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4657. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4658. }
  4659. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4660. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  4661. req.Header = headers
  4662. client := &amp;http.Client{}
  4663. resp, err := client.Do(req)
  4664. <span class="hljs-comment">// ...</span>
  4665. }
  4666. </code></pre>
  4667. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  4668. <p><em>Delete a comment on a card</em></p>
  4669. <h3 id="delete_comment-parameters">Parameters</h3>
  4670. <table>
  4671. <thead>
  4672. <tr>
  4673. <th>Name</th>
  4674. <th>In</th>
  4675. <th>Type</th>
  4676. <th>Required</th>
  4677. <th>Description</th>
  4678. </tr>
  4679. </thead>
  4680. <tbody>
  4681. <tr>
  4682. <td>board</td>
  4683. <td>path</td>
  4684. <td>string</td>
  4685. <td>true</td>
  4686. <td>the board ID of the card</td>
  4687. </tr>
  4688. <tr>
  4689. <td>card</td>
  4690. <td>path</td>
  4691. <td>string</td>
  4692. <td>true</td>
  4693. <td>the ID of the card</td>
  4694. </tr>
  4695. <tr>
  4696. <td>comment</td>
  4697. <td>path</td>
  4698. <td>string</td>
  4699. <td>true</td>
  4700. <td>the ID of the comment to delete</td>
  4701. </tr>
  4702. </tbody>
  4703. </table>
  4704. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4705. <p><strong>board</strong>: the board ID of the card</p>
  4706. <p><strong>card</strong>: the ID of the card</p>
  4707. <p><strong>comment</strong>: the ID of the comment to delete</p>
  4708. <blockquote>
  4709. <p>Example responses</p>
  4710. </blockquote>
  4711. <blockquote>
  4712. <p>200 Response</p>
  4713. </blockquote>
  4714. <pre class="highlight tab tab-json"><code>{
  4715. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  4716. }
  4717. </code></pre>
  4718. <h3 id="delete_comment-responses">Responses</h3>
  4719. <table>
  4720. <thead>
  4721. <tr>
  4722. <th>Status</th>
  4723. <th>Meaning</th>
  4724. <th>Description</th>
  4725. <th>Schema</th>
  4726. </tr>
  4727. </thead>
  4728. <tbody>
  4729. <tr>
  4730. <td>200</td>
  4731. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4732. <td>200 response</td>
  4733. <td>Inline</td>
  4734. </tr>
  4735. </tbody>
  4736. </table>
  4737. <h3 id="delete_comment-responseschema">Response Schema</h3>
  4738. <p>Status Code <strong>200</strong></p>
  4739. <table>
  4740. <thead>
  4741. <tr>
  4742. <th>Name</th>
  4743. <th>Type</th>
  4744. <th>Required</th>
  4745. <th>Restrictions</th>
  4746. <th>Description</th>
  4747. </tr>
  4748. </thead>
  4749. <tbody>
  4750. <tr>
  4751. <td>» _id</td>
  4752. <td>string</td>
  4753. <td>false</td>
  4754. <td>none</td>
  4755. <td>none</td>
  4756. </tr>
  4757. </tbody>
  4758. </table>
  4759. <aside class="warning">
  4760. To perform this operation, you must be authenticated by means of one of the following methods:
  4761. UserSecurity
  4762. </aside>
  4763. <h1 id="wekan-rest-api-cards">Cards</h1>
  4764. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  4765. <p><a id="opIdget_cards_by_custom_field"></a></p>
  4766. <blockquote>
  4767. <p>Code samples</p>
  4768. </blockquote>
  4769. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4770. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  4771. -H <span class="hljs-string">'Accept: application/json'</span> \
  4772. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4773. </code></pre>
  4774. <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
  4775. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4776. <span class="undefined"></span></span></code></pre>
  4777. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4778. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4779. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4780. };
  4781. $.ajax({
  4782. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  4783. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4784. <span class="hljs-attr">headers</span>: headers,
  4785. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4786. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4787. }
  4788. })
  4789. </code></pre>
  4790. <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>);
  4791. <span class="hljs-keyword">const</span> headers = {
  4792. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4793. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4794. };
  4795. fetch(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  4796. {
  4797. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4798. <span class="hljs-attr">headers</span>: headers
  4799. })
  4800. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4801. <span class="hljs-keyword">return</span> res.json();
  4802. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4803. <span class="hljs-built_in">console</span>.log(body);
  4804. });
  4805. </code></pre>
  4806. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4807. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4808. headers = {
  4809. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4810. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4811. }
  4812. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  4813. <span class="hljs-symbol">params:</span> {
  4814. }, <span class="hljs-symbol">headers:</span> headers
  4815. p JSON.parse(result)
  4816. </code></pre>
  4817. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4818. headers = {
  4819. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4820. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4821. }
  4822. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>, params={
  4823. }, headers = headers)
  4824. <span class="hljs-keyword">print</span> r.json()
  4825. </code></pre>
  4826. <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>);
  4827. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4828. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4829. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4830. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4831. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4832. String inputLine;
  4833. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4834. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4835. response.append(inputLine);
  4836. }
  4837. in.close();
  4838. System.out.println(response.toString());
  4839. </code></pre>
  4840. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4841. <span class="hljs-keyword">import</span> (
  4842. <span class="hljs-string">"bytes"</span>
  4843. <span class="hljs-string">"net/http"</span>
  4844. )
  4845. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4846. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4847. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4848. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4849. }
  4850. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4851. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}"</span>, data)
  4852. req.Header = headers
  4853. client := &amp;http.Client{}
  4854. resp, err := client.Do(req)
  4855. <span class="hljs-comment">// ...</span>
  4856. }
  4857. </code></pre>
  4858. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  4859. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  4860. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  4861. <table>
  4862. <thead>
  4863. <tr>
  4864. <th>Name</th>
  4865. <th>In</th>
  4866. <th>Type</th>
  4867. <th>Required</th>
  4868. <th>Description</th>
  4869. </tr>
  4870. </thead>
  4871. <tbody>
  4872. <tr>
  4873. <td>board</td>
  4874. <td>path</td>
  4875. <td>string</td>
  4876. <td>true</td>
  4877. <td>the board ID</td>
  4878. </tr>
  4879. <tr>
  4880. <td>customField</td>
  4881. <td>path</td>
  4882. <td>string</td>
  4883. <td>true</td>
  4884. <td>the list ID</td>
  4885. </tr>
  4886. <tr>
  4887. <td>customFieldValue</td>
  4888. <td>path</td>
  4889. <td>string</td>
  4890. <td>true</td>
  4891. <td>the value to look for</td>
  4892. </tr>
  4893. </tbody>
  4894. </table>
  4895. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4896. <p><strong>board</strong>: the board ID</p>
  4897. <p><strong>customField</strong>: the list ID</p>
  4898. <p><strong>customFieldValue</strong>: the value to look for</p>
  4899. <blockquote>
  4900. <p>Example responses</p>
  4901. </blockquote>
  4902. <blockquote>
  4903. <p>200 Response</p>
  4904. </blockquote>
  4905. <pre class="highlight tab tab-json"><code>[
  4906. {
  4907. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4908. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  4909. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  4910. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  4911. <span class="hljs-attr">"swinlaneId"</span>: <span class="hljs-string">"string"</span>
  4912. }
  4913. ]
  4914. </code></pre>
  4915. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  4916. <table>
  4917. <thead>
  4918. <tr>
  4919. <th>Status</th>
  4920. <th>Meaning</th>
  4921. <th>Description</th>
  4922. <th>Schema</th>
  4923. </tr>
  4924. </thead>
  4925. <tbody>
  4926. <tr>
  4927. <td>200</td>
  4928. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4929. <td>200 response</td>
  4930. <td>Inline</td>
  4931. </tr>
  4932. </tbody>
  4933. </table>
  4934. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  4935. <p>Status Code <strong>200</strong></p>
  4936. <table>
  4937. <thead>
  4938. <tr>
  4939. <th>Name</th>
  4940. <th>Type</th>
  4941. <th>Required</th>
  4942. <th>Restrictions</th>
  4943. <th>Description</th>
  4944. </tr>
  4945. </thead>
  4946. <tbody>
  4947. <tr>
  4948. <td>» _id</td>
  4949. <td>string</td>
  4950. <td>false</td>
  4951. <td>none</td>
  4952. <td>none</td>
  4953. </tr>
  4954. <tr>
  4955. <td>» title</td>
  4956. <td>string</td>
  4957. <td>false</td>
  4958. <td>none</td>
  4959. <td>none</td>
  4960. </tr>
  4961. <tr>
  4962. <td>» description</td>
  4963. <td>string</td>
  4964. <td>false</td>
  4965. <td>none</td>
  4966. <td>none</td>
  4967. </tr>
  4968. <tr>
  4969. <td>» listId</td>
  4970. <td>string</td>
  4971. <td>false</td>
  4972. <td>none</td>
  4973. <td>none</td>
  4974. </tr>
  4975. <tr>
  4976. <td>» swinlaneId</td>
  4977. <td>string</td>
  4978. <td>false</td>
  4979. <td>none</td>
  4980. <td>none</td>
  4981. </tr>
  4982. </tbody>
  4983. </table>
  4984. <aside class="warning">
  4985. To perform this operation, you must be authenticated by means of one of the following methods:
  4986. UserSecurity
  4987. </aside>
  4988. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  4989. <p><a id="opIdget_board_cards_count"></a></p>
  4990. <blockquote>
  4991. <p>Code samples</p>
  4992. </blockquote>
  4993. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4994. curl -X GET /api/boards/{board}/cards_count \
  4995. -H <span class="hljs-string">'Accept: application/json'</span> \
  4996. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4997. </code></pre>
  4998. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards_count</span> HTTP/1.1
  4999. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5000. <span class="undefined"></span></span></code></pre>
  5001. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5002. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5003. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5004. };
  5005. $.ajax({
  5006. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  5007. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5008. <span class="hljs-attr">headers</span>: headers,
  5009. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5010. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5011. }
  5012. })
  5013. </code></pre>
  5014. <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>);
  5015. <span class="hljs-keyword">const</span> headers = {
  5016. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5017. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5018. };
  5019. fetch(<span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  5020. {
  5021. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5022. <span class="hljs-attr">headers</span>: headers
  5023. })
  5024. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5025. <span class="hljs-keyword">return</span> res.json();
  5026. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5027. <span class="hljs-built_in">console</span>.log(body);
  5028. });
  5029. </code></pre>
  5030. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5031. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5032. headers = {
  5033. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5034. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5035. }
  5036. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  5037. <span class="hljs-symbol">params:</span> {
  5038. }, <span class="hljs-symbol">headers:</span> headers
  5039. p JSON.parse(result)
  5040. </code></pre>
  5041. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5042. headers = {
  5043. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5044. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5045. }
  5046. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards_count'</span>, params={
  5047. }, headers = headers)
  5048. <span class="hljs-keyword">print</span> r.json()
  5049. </code></pre>
  5050. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards_count"</span>);
  5051. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5052. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5053. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5054. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5055. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5056. String inputLine;
  5057. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5058. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5059. response.append(inputLine);
  5060. }
  5061. in.close();
  5062. System.out.println(response.toString());
  5063. </code></pre>
  5064. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5065. <span class="hljs-keyword">import</span> (
  5066. <span class="hljs-string">"bytes"</span>
  5067. <span class="hljs-string">"net/http"</span>
  5068. )
  5069. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5070. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5071. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5072. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5073. }
  5074. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5075. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards_count"</span>, data)
  5076. req.Header = headers
  5077. client := &amp;http.Client{}
  5078. resp, err := client.Do(req)
  5079. <span class="hljs-comment">// ...</span>
  5080. }
  5081. </code></pre>
  5082. <p><code>GET /api/boards/{board}/cards_count</code></p>
  5083. <p><em>Get a cards count to a board</em></p>
  5084. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  5085. <table>
  5086. <thead>
  5087. <tr>
  5088. <th>Name</th>
  5089. <th>In</th>
  5090. <th>Type</th>
  5091. <th>Required</th>
  5092. <th>Description</th>
  5093. </tr>
  5094. </thead>
  5095. <tbody>
  5096. <tr>
  5097. <td>board</td>
  5098. <td>path</td>
  5099. <td>string</td>
  5100. <td>true</td>
  5101. <td>the board ID</td>
  5102. </tr>
  5103. </tbody>
  5104. </table>
  5105. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5106. <p><strong>board</strong>: the board ID</p>
  5107. <blockquote>
  5108. <p>Example responses</p>
  5109. </blockquote>
  5110. <blockquote>
  5111. <p>200 Response</p>
  5112. </blockquote>
  5113. <pre class="highlight tab tab-json"><code>{
  5114. <span class="hljs-attr">"board_cards_count"</span>: <span class="hljs-number">0</span>
  5115. }
  5116. </code></pre>
  5117. <h3 id="get_board_cards_count-responses">Responses</h3>
  5118. <table>
  5119. <thead>
  5120. <tr>
  5121. <th>Status</th>
  5122. <th>Meaning</th>
  5123. <th>Description</th>
  5124. <th>Schema</th>
  5125. </tr>
  5126. </thead>
  5127. <tbody>
  5128. <tr>
  5129. <td>200</td>
  5130. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5131. <td>200 response</td>
  5132. <td>Inline</td>
  5133. </tr>
  5134. </tbody>
  5135. </table>
  5136. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  5137. <p>Status Code <strong>200</strong></p>
  5138. <table>
  5139. <thead>
  5140. <tr>
  5141. <th>Name</th>
  5142. <th>Type</th>
  5143. <th>Required</th>
  5144. <th>Restrictions</th>
  5145. <th>Description</th>
  5146. </tr>
  5147. </thead>
  5148. <tbody>
  5149. <tr>
  5150. <td>» board_cards_count</td>
  5151. <td>integer</td>
  5152. <td>false</td>
  5153. <td>none</td>
  5154. <td>none</td>
  5155. </tr>
  5156. </tbody>
  5157. </table>
  5158. <aside class="warning">
  5159. To perform this operation, you must be authenticated by means of one of the following methods:
  5160. UserSecurity
  5161. </aside>
  5162. <h2 id="get_all_cards">get_all_cards</h2>
  5163. <p><a id="opIdget_all_cards"></a></p>
  5164. <blockquote>
  5165. <p>Code samples</p>
  5166. </blockquote>
  5167. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5168. curl -X GET /api/boards/{board}/lists/{list}/cards \
  5169. -H <span class="hljs-string">'Accept: application/json'</span> \
  5170. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5171. </code></pre>
  5172. <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
  5173. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5174. <span class="undefined"></span></span></code></pre>
  5175. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5176. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5177. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5178. };
  5179. $.ajax({
  5180. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5181. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5182. <span class="hljs-attr">headers</span>: headers,
  5183. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5184. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5185. }
  5186. })
  5187. </code></pre>
  5188. <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>);
  5189. <span class="hljs-keyword">const</span> headers = {
  5190. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5191. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5192. };
  5193. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5194. {
  5195. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5196. <span class="hljs-attr">headers</span>: headers
  5197. })
  5198. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5199. <span class="hljs-keyword">return</span> res.json();
  5200. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5201. <span class="hljs-built_in">console</span>.log(body);
  5202. });
  5203. </code></pre>
  5204. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5205. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5206. headers = {
  5207. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5208. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5209. }
  5210. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5211. <span class="hljs-symbol">params:</span> {
  5212. }, <span class="hljs-symbol">headers:</span> headers
  5213. p JSON.parse(result)
  5214. </code></pre>
  5215. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5216. headers = {
  5217. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5218. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5219. }
  5220. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  5221. }, headers = headers)
  5222. <span class="hljs-keyword">print</span> r.json()
  5223. </code></pre>
  5224. <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>);
  5225. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5226. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5227. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5228. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5229. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5230. String inputLine;
  5231. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5232. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5233. response.append(inputLine);
  5234. }
  5235. in.close();
  5236. System.out.println(response.toString());
  5237. </code></pre>
  5238. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5239. <span class="hljs-keyword">import</span> (
  5240. <span class="hljs-string">"bytes"</span>
  5241. <span class="hljs-string">"net/http"</span>
  5242. )
  5243. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5244. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5245. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5246. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5247. }
  5248. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5249. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  5250. req.Header = headers
  5251. client := &amp;http.Client{}
  5252. resp, err := client.Do(req)
  5253. <span class="hljs-comment">// ...</span>
  5254. }
  5255. </code></pre>
  5256. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  5257. <p><em>Get all Cards attached to a List</em></p>
  5258. <h3 id="get_all_cards-parameters">Parameters</h3>
  5259. <table>
  5260. <thead>
  5261. <tr>
  5262. <th>Name</th>
  5263. <th>In</th>
  5264. <th>Type</th>
  5265. <th>Required</th>
  5266. <th>Description</th>
  5267. </tr>
  5268. </thead>
  5269. <tbody>
  5270. <tr>
  5271. <td>board</td>
  5272. <td>path</td>
  5273. <td>string</td>
  5274. <td>true</td>
  5275. <td>the board ID</td>
  5276. </tr>
  5277. <tr>
  5278. <td>list</td>
  5279. <td>path</td>
  5280. <td>string</td>
  5281. <td>true</td>
  5282. <td>the list ID</td>
  5283. </tr>
  5284. </tbody>
  5285. </table>
  5286. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5287. <p><strong>board</strong>: the board ID</p>
  5288. <p><strong>list</strong>: the list ID</p>
  5289. <blockquote>
  5290. <p>Example responses</p>
  5291. </blockquote>
  5292. <blockquote>
  5293. <p>200 Response</p>
  5294. </blockquote>
  5295. <pre class="highlight tab tab-json"><code>[
  5296. {
  5297. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  5298. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5299. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>
  5300. }
  5301. ]
  5302. </code></pre>
  5303. <h3 id="get_all_cards-responses">Responses</h3>
  5304. <table>
  5305. <thead>
  5306. <tr>
  5307. <th>Status</th>
  5308. <th>Meaning</th>
  5309. <th>Description</th>
  5310. <th>Schema</th>
  5311. </tr>
  5312. </thead>
  5313. <tbody>
  5314. <tr>
  5315. <td>200</td>
  5316. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5317. <td>200 response</td>
  5318. <td>Inline</td>
  5319. </tr>
  5320. </tbody>
  5321. </table>
  5322. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  5323. <p>Status Code <strong>200</strong></p>
  5324. <table>
  5325. <thead>
  5326. <tr>
  5327. <th>Name</th>
  5328. <th>Type</th>
  5329. <th>Required</th>
  5330. <th>Restrictions</th>
  5331. <th>Description</th>
  5332. </tr>
  5333. </thead>
  5334. <tbody>
  5335. <tr>
  5336. <td>» _id</td>
  5337. <td>string</td>
  5338. <td>false</td>
  5339. <td>none</td>
  5340. <td>none</td>
  5341. </tr>
  5342. <tr>
  5343. <td>» title</td>
  5344. <td>string</td>
  5345. <td>false</td>
  5346. <td>none</td>
  5347. <td>none</td>
  5348. </tr>
  5349. <tr>
  5350. <td>» description</td>
  5351. <td>string</td>
  5352. <td>false</td>
  5353. <td>none</td>
  5354. <td>none</td>
  5355. </tr>
  5356. </tbody>
  5357. </table>
  5358. <aside class="warning">
  5359. To perform this operation, you must be authenticated by means of one of the following methods:
  5360. UserSecurity
  5361. </aside>
  5362. <h2 id="new_card">new_card</h2>
  5363. <p><a id="opIdnew_card"></a></p>
  5364. <blockquote>
  5365. <p>Code samples</p>
  5366. </blockquote>
  5367. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5368. curl -X POST /api/boards/{board}/lists/{list}/cards \
  5369. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5370. -H <span class="hljs-string">'Accept: application/json'</span> \
  5371. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5372. </code></pre>
  5373. <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
  5374. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5375. Accept: application/json
  5376. </span></code></pre>
  5377. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5378. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5379. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5380. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5381. };
  5382. $.ajax({
  5383. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5384. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  5385. <span class="hljs-attr">headers</span>: headers,
  5386. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5387. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5388. }
  5389. })
  5390. </code></pre>
  5391. <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>);
  5392. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5393. "authorId": "string",
  5394. "members": "string",
  5395. "assignees": "string",
  5396. "title": "string",
  5397. "description": "string",
  5398. "swimlaneId": "string"
  5399. }'</span>;
  5400. <span class="hljs-keyword">const</span> headers = {
  5401. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5402. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5403. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5404. };
  5405. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5406. {
  5407. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  5408. <span class="hljs-attr">body</span>: inputBody,
  5409. <span class="hljs-attr">headers</span>: headers
  5410. })
  5411. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5412. <span class="hljs-keyword">return</span> res.json();
  5413. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5414. <span class="hljs-built_in">console</span>.log(body);
  5415. });
  5416. </code></pre>
  5417. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5418. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5419. headers = {
  5420. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5421. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5422. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5423. }
  5424. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5425. <span class="hljs-symbol">params:</span> {
  5426. }, <span class="hljs-symbol">headers:</span> headers
  5427. p JSON.parse(result)
  5428. </code></pre>
  5429. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5430. headers = {
  5431. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5432. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5433. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5434. }
  5435. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  5436. }, headers = headers)
  5437. <span class="hljs-keyword">print</span> r.json()
  5438. </code></pre>
  5439. <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>);
  5440. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5441. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  5442. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5443. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5444. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5445. String inputLine;
  5446. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5447. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5448. response.append(inputLine);
  5449. }
  5450. in.close();
  5451. System.out.println(response.toString());
  5452. </code></pre>
  5453. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5454. <span class="hljs-keyword">import</span> (
  5455. <span class="hljs-string">"bytes"</span>
  5456. <span class="hljs-string">"net/http"</span>
  5457. )
  5458. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5459. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5460. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5461. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5462. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5463. }
  5464. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5465. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  5466. req.Header = headers
  5467. client := &amp;http.Client{}
  5468. resp, err := client.Do(req)
  5469. <span class="hljs-comment">// ...</span>
  5470. }
  5471. </code></pre>
  5472. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  5473. <p><em>Create a new Card</em></p>
  5474. <blockquote>
  5475. <p>Body parameter</p>
  5476. </blockquote>
  5477. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  5478. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  5479. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  5480. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5481. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  5482. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  5483. </code></pre>
  5484. <h3 id="new_card-parameters">Parameters</h3>
  5485. <table>
  5486. <thead>
  5487. <tr>
  5488. <th>Name</th>
  5489. <th>In</th>
  5490. <th>Type</th>
  5491. <th>Required</th>
  5492. <th>Description</th>
  5493. </tr>
  5494. </thead>
  5495. <tbody>
  5496. <tr>
  5497. <td>board</td>
  5498. <td>path</td>
  5499. <td>string</td>
  5500. <td>true</td>
  5501. <td>the board ID of the new card</td>
  5502. </tr>
  5503. <tr>
  5504. <td>list</td>
  5505. <td>path</td>
  5506. <td>string</td>
  5507. <td>true</td>
  5508. <td>the list ID of the new card</td>
  5509. </tr>
  5510. <tr>
  5511. <td>body</td>
  5512. <td>body</td>
  5513. <td>object</td>
  5514. <td>false</td>
  5515. <td>none</td>
  5516. </tr>
  5517. <tr>
  5518. <td>» authorId</td>
  5519. <td>body</td>
  5520. <td>string</td>
  5521. <td>true</td>
  5522. <td>the authorId value</td>
  5523. </tr>
  5524. <tr>
  5525. <td>» members</td>
  5526. <td>body</td>
  5527. <td>string</td>
  5528. <td>false</td>
  5529. <td>the member IDs list of the new card</td>
  5530. </tr>
  5531. <tr>
  5532. <td>» assignees</td>
  5533. <td>body</td>
  5534. <td>string</td>
  5535. <td>false</td>
  5536. <td>the assignee IDs list of the new card</td>
  5537. </tr>
  5538. <tr>
  5539. <td>» title</td>
  5540. <td>body</td>
  5541. <td>string</td>
  5542. <td>true</td>
  5543. <td>the title of the new card</td>
  5544. </tr>
  5545. <tr>
  5546. <td>» description</td>
  5547. <td>body</td>
  5548. <td>string</td>
  5549. <td>true</td>
  5550. <td>the description of the new card</td>
  5551. </tr>
  5552. <tr>
  5553. <td>» swimlaneId</td>
  5554. <td>body</td>
  5555. <td>string</td>
  5556. <td>true</td>
  5557. <td>the swimlane ID of the new card</td>
  5558. </tr>
  5559. </tbody>
  5560. </table>
  5561. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5562. <p><strong>board</strong>: the board ID of the new card</p>
  5563. <p><strong>list</strong>: the list ID of the new card</p>
  5564. <blockquote>
  5565. <p>Example responses</p>
  5566. </blockquote>
  5567. <blockquote>
  5568. <p>200 Response</p>
  5569. </blockquote>
  5570. <pre class="highlight tab tab-json"><code>{
  5571. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5572. }
  5573. </code></pre>
  5574. <h3 id="new_card-responses">Responses</h3>
  5575. <table>
  5576. <thead>
  5577. <tr>
  5578. <th>Status</th>
  5579. <th>Meaning</th>
  5580. <th>Description</th>
  5581. <th>Schema</th>
  5582. </tr>
  5583. </thead>
  5584. <tbody>
  5585. <tr>
  5586. <td>200</td>
  5587. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5588. <td>200 response</td>
  5589. <td>Inline</td>
  5590. </tr>
  5591. </tbody>
  5592. </table>
  5593. <h3 id="new_card-responseschema">Response Schema</h3>
  5594. <p>Status Code <strong>200</strong></p>
  5595. <table>
  5596. <thead>
  5597. <tr>
  5598. <th>Name</th>
  5599. <th>Type</th>
  5600. <th>Required</th>
  5601. <th>Restrictions</th>
  5602. <th>Description</th>
  5603. </tr>
  5604. </thead>
  5605. <tbody>
  5606. <tr>
  5607. <td>» _id</td>
  5608. <td>string</td>
  5609. <td>false</td>
  5610. <td>none</td>
  5611. <td>none</td>
  5612. </tr>
  5613. </tbody>
  5614. </table>
  5615. <aside class="warning">
  5616. To perform this operation, you must be authenticated by means of one of the following methods:
  5617. UserSecurity
  5618. </aside>
  5619. <h2 id="get_card">get_card</h2>
  5620. <p><a id="opIdget_card"></a></p>
  5621. <blockquote>
  5622. <p>Code samples</p>
  5623. </blockquote>
  5624. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5625. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  5626. -H <span class="hljs-string">'Accept: application/json'</span> \
  5627. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5628. </code></pre>
  5629. <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
  5630. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5631. <span class="undefined"></span></span></code></pre>
  5632. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5633. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5634. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5635. };
  5636. $.ajax({
  5637. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5638. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5639. <span class="hljs-attr">headers</span>: headers,
  5640. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5641. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5642. }
  5643. })
  5644. </code></pre>
  5645. <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>);
  5646. <span class="hljs-keyword">const</span> headers = {
  5647. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5648. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5649. };
  5650. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5651. {
  5652. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5653. <span class="hljs-attr">headers</span>: headers
  5654. })
  5655. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5656. <span class="hljs-keyword">return</span> res.json();
  5657. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5658. <span class="hljs-built_in">console</span>.log(body);
  5659. });
  5660. </code></pre>
  5661. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5662. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5663. headers = {
  5664. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5665. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5666. }
  5667. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5668. <span class="hljs-symbol">params:</span> {
  5669. }, <span class="hljs-symbol">headers:</span> headers
  5670. p JSON.parse(result)
  5671. </code></pre>
  5672. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5673. headers = {
  5674. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5675. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5676. }
  5677. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  5678. }, headers = headers)
  5679. <span class="hljs-keyword">print</span> r.json()
  5680. </code></pre>
  5681. <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>);
  5682. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5683. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5684. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5685. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5686. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5687. String inputLine;
  5688. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5689. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5690. response.append(inputLine);
  5691. }
  5692. in.close();
  5693. System.out.println(response.toString());
  5694. </code></pre>
  5695. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5696. <span class="hljs-keyword">import</span> (
  5697. <span class="hljs-string">"bytes"</span>
  5698. <span class="hljs-string">"net/http"</span>
  5699. )
  5700. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5701. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5702. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5703. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5704. }
  5705. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5706. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  5707. req.Header = headers
  5708. client := &amp;http.Client{}
  5709. resp, err := client.Do(req)
  5710. <span class="hljs-comment">// ...</span>
  5711. }
  5712. </code></pre>
  5713. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  5714. <p><em>Get a Card</em></p>
  5715. <h3 id="get_card-parameters">Parameters</h3>
  5716. <table>
  5717. <thead>
  5718. <tr>
  5719. <th>Name</th>
  5720. <th>In</th>
  5721. <th>Type</th>
  5722. <th>Required</th>
  5723. <th>Description</th>
  5724. </tr>
  5725. </thead>
  5726. <tbody>
  5727. <tr>
  5728. <td>board</td>
  5729. <td>path</td>
  5730. <td>string</td>
  5731. <td>true</td>
  5732. <td>the board ID</td>
  5733. </tr>
  5734. <tr>
  5735. <td>list</td>
  5736. <td>path</td>
  5737. <td>string</td>
  5738. <td>true</td>
  5739. <td>the list ID of the card</td>
  5740. </tr>
  5741. <tr>
  5742. <td>card</td>
  5743. <td>path</td>
  5744. <td>string</td>
  5745. <td>true</td>
  5746. <td>the card ID</td>
  5747. </tr>
  5748. </tbody>
  5749. </table>
  5750. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5751. <p><strong>board</strong>: the board ID</p>
  5752. <p><strong>list</strong>: the list ID of the card</p>
  5753. <p><strong>card</strong>: the card ID</p>
  5754. <blockquote>
  5755. <p>Example responses</p>
  5756. </blockquote>
  5757. <blockquote>
  5758. <p>200 Response</p>
  5759. </blockquote>
  5760. <pre class="highlight tab tab-json"><code>{
  5761. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5762. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  5763. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  5764. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  5765. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  5766. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  5767. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  5768. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  5769. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  5770. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  5771. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  5772. <span class="hljs-attr">"customFields"</span>: [
  5773. {}
  5774. ],
  5775. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  5776. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  5777. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  5778. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  5779. <span class="hljs-attr">"labelIds"</span>: [
  5780. <span class="hljs-string">"string"</span>
  5781. ],
  5782. <span class="hljs-attr">"members"</span>: [
  5783. <span class="hljs-string">"string"</span>
  5784. ],
  5785. <span class="hljs-attr">"assignees"</span>: [
  5786. <span class="hljs-string">"string"</span>
  5787. ],
  5788. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  5789. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  5790. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  5791. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  5792. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  5793. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  5794. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  5795. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  5796. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  5797. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  5798. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  5799. <span class="hljs-attr">"vote"</span>: {
  5800. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  5801. <span class="hljs-attr">"positive"</span>: [
  5802. <span class="hljs-string">"string"</span>
  5803. ],
  5804. <span class="hljs-attr">"negative"</span>: [
  5805. <span class="hljs-string">"string"</span>
  5806. ],
  5807. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  5808. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  5809. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  5810. },
  5811. <span class="hljs-attr">"poker"</span>: {
  5812. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  5813. <span class="hljs-attr">"one"</span>: [
  5814. <span class="hljs-string">"string"</span>
  5815. ],
  5816. <span class="hljs-attr">"two"</span>: [
  5817. <span class="hljs-string">"string"</span>
  5818. ],
  5819. <span class="hljs-attr">"three"</span>: [
  5820. <span class="hljs-string">"string"</span>
  5821. ],
  5822. <span class="hljs-attr">"five"</span>: [
  5823. <span class="hljs-string">"string"</span>
  5824. ],
  5825. <span class="hljs-attr">"eight"</span>: [
  5826. <span class="hljs-string">"string"</span>
  5827. ],
  5828. <span class="hljs-attr">"thirteen"</span>: [
  5829. <span class="hljs-string">"string"</span>
  5830. ],
  5831. <span class="hljs-attr">"twenty"</span>: [
  5832. <span class="hljs-string">"string"</span>
  5833. ],
  5834. <span class="hljs-attr">"forty"</span>: [
  5835. <span class="hljs-string">"string"</span>
  5836. ],
  5837. <span class="hljs-attr">"oneHundred"</span>: [
  5838. <span class="hljs-string">"string"</span>
  5839. ],
  5840. <span class="hljs-attr">"unsure"</span>: [
  5841. <span class="hljs-string">"string"</span>
  5842. ],
  5843. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  5844. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  5845. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  5846. },
  5847. <span class="hljs-attr">"targetId_gantt"</span>: [
  5848. <span class="hljs-string">"string"</span>
  5849. ],
  5850. <span class="hljs-attr">"linkType_gantt"</span>: [
  5851. <span class="hljs-number">0</span>
  5852. ],
  5853. <span class="hljs-attr">"linkId_gantt"</span>: [
  5854. <span class="hljs-string">"string"</span>
  5855. ],
  5856. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  5857. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  5858. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>
  5859. }
  5860. </code></pre>
  5861. <h3 id="get_card-responses">Responses</h3>
  5862. <table>
  5863. <thead>
  5864. <tr>
  5865. <th>Status</th>
  5866. <th>Meaning</th>
  5867. <th>Description</th>
  5868. <th>Schema</th>
  5869. </tr>
  5870. </thead>
  5871. <tbody>
  5872. <tr>
  5873. <td>200</td>
  5874. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5875. <td>200 response</td>
  5876. <td><a href="#schemacards">Cards</a></td>
  5877. </tr>
  5878. </tbody>
  5879. </table>
  5880. <aside class="warning">
  5881. To perform this operation, you must be authenticated by means of one of the following methods:
  5882. UserSecurity
  5883. </aside>
  5884. <h2 id="edit_card">edit_card</h2>
  5885. <p><a id="opIdedit_card"></a></p>
  5886. <blockquote>
  5887. <p>Code samples</p>
  5888. </blockquote>
  5889. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5890. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  5891. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5892. -H <span class="hljs-string">'Accept: application/json'</span> \
  5893. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5894. </code></pre>
  5895. <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
  5896. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5897. Accept: application/json
  5898. </span></code></pre>
  5899. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5900. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5901. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5902. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5903. };
  5904. $.ajax({
  5905. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5906. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  5907. <span class="hljs-attr">headers</span>: headers,
  5908. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5909. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5910. }
  5911. })
  5912. </code></pre>
  5913. <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>);
  5914. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5915. "newBoardId": "string",
  5916. "newSwimlaneId": "string",
  5917. "newListId": "string",
  5918. "title": "string",
  5919. "sort": "string",
  5920. "parentId": "string",
  5921. "description": "string",
  5922. "color": "string",
  5923. "vote": {},
  5924. "poker": {},
  5925. "labelIds": "string",
  5926. "requestedBy": "string",
  5927. "assignedBy": "string",
  5928. "receivedAt": "string",
  5929. "startAt": "string",
  5930. "dueAt": "string",
  5931. "endAt": "string",
  5932. "spentTime": "string",
  5933. "isOverTime": true,
  5934. "customFields": "string",
  5935. "members": "string",
  5936. "assignees": "string",
  5937. "swimlaneId": "string",
  5938. "listId": "string",
  5939. "authorId": "string",
  5940. "archive": "string"
  5941. }'</span>;
  5942. <span class="hljs-keyword">const</span> headers = {
  5943. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5944. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5945. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5946. };
  5947. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5948. {
  5949. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  5950. <span class="hljs-attr">body</span>: inputBody,
  5951. <span class="hljs-attr">headers</span>: headers
  5952. })
  5953. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5954. <span class="hljs-keyword">return</span> res.json();
  5955. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5956. <span class="hljs-built_in">console</span>.log(body);
  5957. });
  5958. </code></pre>
  5959. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5960. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5961. headers = {
  5962. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5963. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5964. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5965. }
  5966. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5967. <span class="hljs-symbol">params:</span> {
  5968. }, <span class="hljs-symbol">headers:</span> headers
  5969. p JSON.parse(result)
  5970. </code></pre>
  5971. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5972. headers = {
  5973. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5974. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5975. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5976. }
  5977. r = requests.put(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  5978. }, headers = headers)
  5979. <span class="hljs-keyword">print</span> r.json()
  5980. </code></pre>
  5981. <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>);
  5982. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5983. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  5984. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5985. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5986. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5987. String inputLine;
  5988. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5989. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5990. response.append(inputLine);
  5991. }
  5992. in.close();
  5993. System.out.println(response.toString());
  5994. </code></pre>
  5995. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5996. <span class="hljs-keyword">import</span> (
  5997. <span class="hljs-string">"bytes"</span>
  5998. <span class="hljs-string">"net/http"</span>
  5999. )
  6000. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6001. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6002. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6003. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6004. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6005. }
  6006. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6007. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  6008. req.Header = headers
  6009. client := &amp;http.Client{}
  6010. resp, err := client.Do(req)
  6011. <span class="hljs-comment">// ...</span>
  6012. }
  6013. </code></pre>
  6014. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  6015. <p><em>Edit Fields in a Card</em></p>
  6016. <p>Edit a card</p>
  6017. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  6018. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  6019. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  6020. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  6021. <code>indigo</code>:</p>
  6022. <img src="/card-colors.png" alt="Wekan card colors" />
  6023. <p>Note: setting the color to white has the same effect than removing it.</p>
  6024. <blockquote>
  6025. <p>Body parameter</p>
  6026. </blockquote>
  6027. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">newBoardId:</span> <span class="hljs-string">string</span>
  6028. <span class="hljs-attr">newSwimlaneId:</span> <span class="hljs-string">string</span>
  6029. <span class="hljs-attr">newListId:</span> <span class="hljs-string">string</span>
  6030. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  6031. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  6032. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  6033. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  6034. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  6035. <span class="hljs-attr">vote:</span> <span class="hljs-string">{}</span>
  6036. <span class="hljs-attr">poker:</span> <span class="hljs-string">{}</span>
  6037. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  6038. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  6039. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  6040. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  6041. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  6042. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  6043. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  6044. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  6045. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  6046. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  6047. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  6048. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  6049. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  6050. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  6051. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6052. <span class="hljs-attr">archive:</span> <span class="hljs-string">string</span>
  6053. </code></pre>
  6054. <h3 id="edit_card-parameters">Parameters</h3>
  6055. <table>
  6056. <thead>
  6057. <tr>
  6058. <th>Name</th>
  6059. <th>In</th>
  6060. <th>Type</th>
  6061. <th>Required</th>
  6062. <th>Description</th>
  6063. </tr>
  6064. </thead>
  6065. <tbody>
  6066. <tr>
  6067. <td>board</td>
  6068. <td>path</td>
  6069. <td>string</td>
  6070. <td>true</td>
  6071. <td>the board ID of the card</td>
  6072. </tr>
  6073. <tr>
  6074. <td>list</td>
  6075. <td>path</td>
  6076. <td>string</td>
  6077. <td>true</td>
  6078. <td>the list ID of the card</td>
  6079. </tr>
  6080. <tr>
  6081. <td>card</td>
  6082. <td>path</td>
  6083. <td>string</td>
  6084. <td>true</td>
  6085. <td>the ID of the card</td>
  6086. </tr>
  6087. <tr>
  6088. <td>body</td>
  6089. <td>body</td>
  6090. <td>object</td>
  6091. <td>false</td>
  6092. <td>none</td>
  6093. </tr>
  6094. <tr>
  6095. <td>» newBoardId</td>
  6096. <td>body</td>
  6097. <td>string</td>
  6098. <td>true</td>
  6099. <td>the newBoardId value</td>
  6100. </tr>
  6101. <tr>
  6102. <td>» newSwimlaneId</td>
  6103. <td>body</td>
  6104. <td>string</td>
  6105. <td>true</td>
  6106. <td>the newSwimlaneId value</td>
  6107. </tr>
  6108. <tr>
  6109. <td>» newListId</td>
  6110. <td>body</td>
  6111. <td>string</td>
  6112. <td>true</td>
  6113. <td>the newListId value</td>
  6114. </tr>
  6115. <tr>
  6116. <td>» title</td>
  6117. <td>body</td>
  6118. <td>string</td>
  6119. <td>false</td>
  6120. <td>the new title of the card</td>
  6121. </tr>
  6122. <tr>
  6123. <td>» sort</td>
  6124. <td>body</td>
  6125. <td>string</td>
  6126. <td>false</td>
  6127. <td>the new sort value of the card</td>
  6128. </tr>
  6129. <tr>
  6130. <td>» parentId</td>
  6131. <td>body</td>
  6132. <td>string</td>
  6133. <td>false</td>
  6134. <td>change the parent of the card</td>
  6135. </tr>
  6136. <tr>
  6137. <td>» description</td>
  6138. <td>body</td>
  6139. <td>string</td>
  6140. <td>false</td>
  6141. <td>the new description of the card</td>
  6142. </tr>
  6143. <tr>
  6144. <td>» color</td>
  6145. <td>body</td>
  6146. <td>string</td>
  6147. <td>false</td>
  6148. <td>the new color of the card</td>
  6149. </tr>
  6150. <tr>
  6151. <td>» vote</td>
  6152. <td>body</td>
  6153. <td>object</td>
  6154. <td>false</td>
  6155. <td>the vote object</td>
  6156. </tr>
  6157. <tr>
  6158. <td>» poker</td>
  6159. <td>body</td>
  6160. <td>object</td>
  6161. <td>false</td>
  6162. <td>the poker object</td>
  6163. </tr>
  6164. <tr>
  6165. <td>» labelIds</td>
  6166. <td>body</td>
  6167. <td>string</td>
  6168. <td>false</td>
  6169. <td>the new list of label IDs attached to the card</td>
  6170. </tr>
  6171. <tr>
  6172. <td>» requestedBy</td>
  6173. <td>body</td>
  6174. <td>string</td>
  6175. <td>false</td>
  6176. <td>the new requestedBy field of the card</td>
  6177. </tr>
  6178. <tr>
  6179. <td>» assignedBy</td>
  6180. <td>body</td>
  6181. <td>string</td>
  6182. <td>false</td>
  6183. <td>the new assignedBy field of the card</td>
  6184. </tr>
  6185. <tr>
  6186. <td>» receivedAt</td>
  6187. <td>body</td>
  6188. <td>string</td>
  6189. <td>false</td>
  6190. <td>the new receivedAt field of the card</td>
  6191. </tr>
  6192. <tr>
  6193. <td>» startAt</td>
  6194. <td>body</td>
  6195. <td>string</td>
  6196. <td>false</td>
  6197. <td>the new startAt field of the card</td>
  6198. </tr>
  6199. <tr>
  6200. <td>» dueAt</td>
  6201. <td>body</td>
  6202. <td>string</td>
  6203. <td>false</td>
  6204. <td>the new dueAt field of the card</td>
  6205. </tr>
  6206. <tr>
  6207. <td>» endAt</td>
  6208. <td>body</td>
  6209. <td>string</td>
  6210. <td>false</td>
  6211. <td>the new endAt field of the card</td>
  6212. </tr>
  6213. <tr>
  6214. <td>» spentTime</td>
  6215. <td>body</td>
  6216. <td>string</td>
  6217. <td>false</td>
  6218. <td>the new spentTime field of the card</td>
  6219. </tr>
  6220. <tr>
  6221. <td>» isOverTime</td>
  6222. <td>body</td>
  6223. <td>boolean</td>
  6224. <td>false</td>
  6225. <td>the new isOverTime field of the card</td>
  6226. </tr>
  6227. <tr>
  6228. <td>» customFields</td>
  6229. <td>body</td>
  6230. <td>string</td>
  6231. <td>false</td>
  6232. <td>the new customFields value of the card</td>
  6233. </tr>
  6234. <tr>
  6235. <td>» members</td>
  6236. <td>body</td>
  6237. <td>string</td>
  6238. <td>false</td>
  6239. <td>the new list of member IDs attached to the card</td>
  6240. </tr>
  6241. <tr>
  6242. <td>» assignees</td>
  6243. <td>body</td>
  6244. <td>string</td>
  6245. <td>false</td>
  6246. <td>the array of maximum one ID of assignee attached to the card</td>
  6247. </tr>
  6248. <tr>
  6249. <td>» swimlaneId</td>
  6250. <td>body</td>
  6251. <td>string</td>
  6252. <td>false</td>
  6253. <td>the new swimlane ID of the card</td>
  6254. </tr>
  6255. <tr>
  6256. <td>» listId</td>
  6257. <td>body</td>
  6258. <td>string</td>
  6259. <td>false</td>
  6260. <td>the new list ID of the card (move operation)</td>
  6261. </tr>
  6262. <tr>
  6263. <td>» authorId</td>
  6264. <td>body</td>
  6265. <td>string</td>
  6266. <td>false</td>
  6267. <td>change the owner of the card</td>
  6268. </tr>
  6269. <tr>
  6270. <td>» archive</td>
  6271. <td>body</td>
  6272. <td>string</td>
  6273. <td>true</td>
  6274. <td>the archive value</td>
  6275. </tr>
  6276. </tbody>
  6277. </table>
  6278. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6279. <p><strong>board</strong>: the board ID of the card</p>
  6280. <p><strong>list</strong>: the list ID of the card</p>
  6281. <p><strong>card</strong>: the ID of the card</p>
  6282. <blockquote>
  6283. <p>Example responses</p>
  6284. </blockquote>
  6285. <blockquote>
  6286. <p>200 Response</p>
  6287. </blockquote>
  6288. <pre class="highlight tab tab-json"><code>{
  6289. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6290. }
  6291. </code></pre>
  6292. <h3 id="edit_card-responses">Responses</h3>
  6293. <table>
  6294. <thead>
  6295. <tr>
  6296. <th>Status</th>
  6297. <th>Meaning</th>
  6298. <th>Description</th>
  6299. <th>Schema</th>
  6300. </tr>
  6301. </thead>
  6302. <tbody>
  6303. <tr>
  6304. <td>200</td>
  6305. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6306. <td>200 response</td>
  6307. <td>Inline</td>
  6308. </tr>
  6309. </tbody>
  6310. </table>
  6311. <h3 id="edit_card-responseschema">Response Schema</h3>
  6312. <p>Status Code <strong>200</strong></p>
  6313. <table>
  6314. <thead>
  6315. <tr>
  6316. <th>Name</th>
  6317. <th>Type</th>
  6318. <th>Required</th>
  6319. <th>Restrictions</th>
  6320. <th>Description</th>
  6321. </tr>
  6322. </thead>
  6323. <tbody>
  6324. <tr>
  6325. <td>» _id</td>
  6326. <td>string</td>
  6327. <td>false</td>
  6328. <td>none</td>
  6329. <td>none</td>
  6330. </tr>
  6331. </tbody>
  6332. </table>
  6333. <aside class="warning">
  6334. To perform this operation, you must be authenticated by means of one of the following methods:
  6335. UserSecurity
  6336. </aside>
  6337. <h2 id="delete_card">delete_card</h2>
  6338. <p><a id="opIddelete_card"></a></p>
  6339. <blockquote>
  6340. <p>Code samples</p>
  6341. </blockquote>
  6342. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6343. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  6344. -H <span class="hljs-string">'Accept: application/json'</span> \
  6345. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6346. </code></pre>
  6347. <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
  6348. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6349. <span class="undefined"></span></span></code></pre>
  6350. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6351. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6352. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6353. };
  6354. $.ajax({
  6355. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6356. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  6357. <span class="hljs-attr">headers</span>: headers,
  6358. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6359. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6360. }
  6361. })
  6362. </code></pre>
  6363. <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>);
  6364. <span class="hljs-keyword">const</span> headers = {
  6365. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6366. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6367. };
  6368. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6369. {
  6370. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  6371. <span class="hljs-attr">headers</span>: headers
  6372. })
  6373. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6374. <span class="hljs-keyword">return</span> res.json();
  6375. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6376. <span class="hljs-built_in">console</span>.log(body);
  6377. });
  6378. </code></pre>
  6379. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6380. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6381. headers = {
  6382. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6383. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6384. }
  6385. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6386. <span class="hljs-symbol">params:</span> {
  6387. }, <span class="hljs-symbol">headers:</span> headers
  6388. p JSON.parse(result)
  6389. </code></pre>
  6390. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6391. headers = {
  6392. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6393. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6394. }
  6395. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  6396. }, headers = headers)
  6397. <span class="hljs-keyword">print</span> r.json()
  6398. </code></pre>
  6399. <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>);
  6400. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6401. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  6402. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6403. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6404. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6405. String inputLine;
  6406. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6407. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6408. response.append(inputLine);
  6409. }
  6410. in.close();
  6411. System.out.println(response.toString());
  6412. </code></pre>
  6413. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6414. <span class="hljs-keyword">import</span> (
  6415. <span class="hljs-string">"bytes"</span>
  6416. <span class="hljs-string">"net/http"</span>
  6417. )
  6418. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6419. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6420. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6421. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6422. }
  6423. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6424. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  6425. req.Header = headers
  6426. client := &amp;http.Client{}
  6427. resp, err := client.Do(req)
  6428. <span class="hljs-comment">// ...</span>
  6429. }
  6430. </code></pre>
  6431. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  6432. <p><em>Delete a card from a board</em></p>
  6433. <p>This operation <strong>deletes</strong> a card, and therefore the card
  6434. is not put in the recycle bin.</p>
  6435. <h3 id="delete_card-parameters">Parameters</h3>
  6436. <table>
  6437. <thead>
  6438. <tr>
  6439. <th>Name</th>
  6440. <th>In</th>
  6441. <th>Type</th>
  6442. <th>Required</th>
  6443. <th>Description</th>
  6444. </tr>
  6445. </thead>
  6446. <tbody>
  6447. <tr>
  6448. <td>board</td>
  6449. <td>path</td>
  6450. <td>string</td>
  6451. <td>true</td>
  6452. <td>the board ID of the card</td>
  6453. </tr>
  6454. <tr>
  6455. <td>list</td>
  6456. <td>path</td>
  6457. <td>string</td>
  6458. <td>true</td>
  6459. <td>the list ID of the card</td>
  6460. </tr>
  6461. <tr>
  6462. <td>card</td>
  6463. <td>path</td>
  6464. <td>string</td>
  6465. <td>true</td>
  6466. <td>the ID of the card</td>
  6467. </tr>
  6468. </tbody>
  6469. </table>
  6470. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6471. <p><strong>board</strong>: the board ID of the card</p>
  6472. <p><strong>list</strong>: the list ID of the card</p>
  6473. <p><strong>card</strong>: the ID of the card</p>
  6474. <blockquote>
  6475. <p>Example responses</p>
  6476. </blockquote>
  6477. <blockquote>
  6478. <p>200 Response</p>
  6479. </blockquote>
  6480. <pre class="highlight tab tab-json"><code>{
  6481. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6482. }
  6483. </code></pre>
  6484. <h3 id="delete_card-responses">Responses</h3>
  6485. <table>
  6486. <thead>
  6487. <tr>
  6488. <th>Status</th>
  6489. <th>Meaning</th>
  6490. <th>Description</th>
  6491. <th>Schema</th>
  6492. </tr>
  6493. </thead>
  6494. <tbody>
  6495. <tr>
  6496. <td>200</td>
  6497. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6498. <td>200 response</td>
  6499. <td>Inline</td>
  6500. </tr>
  6501. </tbody>
  6502. </table>
  6503. <h3 id="delete_card-responseschema">Response Schema</h3>
  6504. <p>Status Code <strong>200</strong></p>
  6505. <table>
  6506. <thead>
  6507. <tr>
  6508. <th>Name</th>
  6509. <th>Type</th>
  6510. <th>Required</th>
  6511. <th>Restrictions</th>
  6512. <th>Description</th>
  6513. </tr>
  6514. </thead>
  6515. <tbody>
  6516. <tr>
  6517. <td>» _id</td>
  6518. <td>string</td>
  6519. <td>false</td>
  6520. <td>none</td>
  6521. <td>none</td>
  6522. </tr>
  6523. </tbody>
  6524. </table>
  6525. <aside class="warning">
  6526. To perform this operation, you must be authenticated by means of one of the following methods:
  6527. UserSecurity
  6528. </aside>
  6529. <h2 id="edit_card_custom_field">edit_card_custom_field</h2>
  6530. <p><a id="opIdedit_card_custom_field"></a></p>
  6531. <blockquote>
  6532. <p>Code samples</p>
  6533. </blockquote>
  6534. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6535. curl -X POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField} \
  6536. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  6537. -H <span class="hljs-string">'Accept: application/json'</span> \
  6538. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6539. </code></pre>
  6540. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</span> HTTP/1.1
  6541. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6542. Accept: application/json
  6543. </span></code></pre>
  6544. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6545. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6546. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6547. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6548. };
  6549. $.ajax({
  6550. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  6551. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  6552. <span class="hljs-attr">headers</span>: headers,
  6553. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6554. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6555. }
  6556. })
  6557. </code></pre>
  6558. <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>);
  6559. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  6560. "value": "string"
  6561. }'</span>;
  6562. <span class="hljs-keyword">const</span> headers = {
  6563. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6564. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6565. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6566. };
  6567. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  6568. {
  6569. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  6570. <span class="hljs-attr">body</span>: inputBody,
  6571. <span class="hljs-attr">headers</span>: headers
  6572. })
  6573. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6574. <span class="hljs-keyword">return</span> res.json();
  6575. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6576. <span class="hljs-built_in">console</span>.log(body);
  6577. });
  6578. </code></pre>
  6579. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6580. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6581. headers = {
  6582. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  6583. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6584. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6585. }
  6586. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  6587. <span class="hljs-symbol">params:</span> {
  6588. }, <span class="hljs-symbol">headers:</span> headers
  6589. p JSON.parse(result)
  6590. </code></pre>
  6591. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6592. 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. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>, params={
  6598. }, headers = headers)
  6599. <span class="hljs-keyword">print</span> r.json()
  6600. </code></pre>
  6601. <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}/customFields/{customField}"</span>);
  6602. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6603. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  6604. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6605. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6606. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6607. String inputLine;
  6608. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6609. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6610. response.append(inputLine);
  6611. }
  6612. in.close();
  6613. System.out.println(response.toString());
  6614. </code></pre>
  6615. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6616. <span class="hljs-keyword">import</span> (
  6617. <span class="hljs-string">"bytes"</span>
  6618. <span class="hljs-string">"net/http"</span>
  6619. )
  6620. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6621. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6622. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6623. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6624. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6625. }
  6626. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6627. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}"</span>, data)
  6628. req.Header = headers
  6629. client := &amp;http.Client{}
  6630. resp, err := client.Do(req)
  6631. <span class="hljs-comment">// ...</span>
  6632. }
  6633. </code></pre>
  6634. <p><code>POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</code></p>
  6635. <p><em>Edit Custom Field in a Card</em></p>
  6636. <p>Edit a custom field value in a card</p>
  6637. <blockquote>
  6638. <p>Body parameter</p>
  6639. </blockquote>
  6640. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">value:</span> <span class="hljs-string">string</span>
  6641. </code></pre>
  6642. <h3 id="edit_card_custom_field-parameters">Parameters</h3>
  6643. <table>
  6644. <thead>
  6645. <tr>
  6646. <th>Name</th>
  6647. <th>In</th>
  6648. <th>Type</th>
  6649. <th>Required</th>
  6650. <th>Description</th>
  6651. </tr>
  6652. </thead>
  6653. <tbody>
  6654. <tr>
  6655. <td>board</td>
  6656. <td>path</td>
  6657. <td>string</td>
  6658. <td>true</td>
  6659. <td>the board ID of the card</td>
  6660. </tr>
  6661. <tr>
  6662. <td>list</td>
  6663. <td>path</td>
  6664. <td>string</td>
  6665. <td>true</td>
  6666. <td>the list ID of the card</td>
  6667. </tr>
  6668. <tr>
  6669. <td>card</td>
  6670. <td>path</td>
  6671. <td>string</td>
  6672. <td>true</td>
  6673. <td>the ID of the card</td>
  6674. </tr>
  6675. <tr>
  6676. <td>customField</td>
  6677. <td>path</td>
  6678. <td>string</td>
  6679. <td>true</td>
  6680. <td>the ID of the custom field</td>
  6681. </tr>
  6682. <tr>
  6683. <td>body</td>
  6684. <td>body</td>
  6685. <td>object</td>
  6686. <td>false</td>
  6687. <td>none</td>
  6688. </tr>
  6689. <tr>
  6690. <td>» value</td>
  6691. <td>body</td>
  6692. <td>string</td>
  6693. <td>true</td>
  6694. <td>the new custom field value</td>
  6695. </tr>
  6696. </tbody>
  6697. </table>
  6698. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6699. <p><strong>board</strong>: the board ID of the card</p>
  6700. <p><strong>list</strong>: the list ID of the card</p>
  6701. <p><strong>card</strong>: the ID of the card</p>
  6702. <p><strong>customField</strong>: the ID of the custom field</p>
  6703. <blockquote>
  6704. <p>Example responses</p>
  6705. </blockquote>
  6706. <blockquote>
  6707. <p>200 Response</p>
  6708. </blockquote>
  6709. <pre class="highlight tab tab-json"><code>{
  6710. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  6711. <span class="hljs-attr">"customFields"</span>: {}
  6712. }
  6713. </code></pre>
  6714. <h3 id="edit_card_custom_field-responses">Responses</h3>
  6715. <table>
  6716. <thead>
  6717. <tr>
  6718. <th>Status</th>
  6719. <th>Meaning</th>
  6720. <th>Description</th>
  6721. <th>Schema</th>
  6722. </tr>
  6723. </thead>
  6724. <tbody>
  6725. <tr>
  6726. <td>200</td>
  6727. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6728. <td>200 response</td>
  6729. <td>Inline</td>
  6730. </tr>
  6731. </tbody>
  6732. </table>
  6733. <h3 id="edit_card_custom_field-responseschema">Response Schema</h3>
  6734. <p>Status Code <strong>200</strong></p>
  6735. <table>
  6736. <thead>
  6737. <tr>
  6738. <th>Name</th>
  6739. <th>Type</th>
  6740. <th>Required</th>
  6741. <th>Restrictions</th>
  6742. <th>Description</th>
  6743. </tr>
  6744. </thead>
  6745. <tbody>
  6746. <tr>
  6747. <td>» _id</td>
  6748. <td>string</td>
  6749. <td>false</td>
  6750. <td>none</td>
  6751. <td>none</td>
  6752. </tr>
  6753. <tr>
  6754. <td>» customFields</td>
  6755. <td>object</td>
  6756. <td>false</td>
  6757. <td>none</td>
  6758. <td>none</td>
  6759. </tr>
  6760. </tbody>
  6761. </table>
  6762. <aside class="warning">
  6763. To perform this operation, you must be authenticated by means of one of the following methods:
  6764. UserSecurity
  6765. </aside>
  6766. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  6767. <p><a id="opIdget_list_cards_count"></a></p>
  6768. <blockquote>
  6769. <p>Code samples</p>
  6770. </blockquote>
  6771. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6772. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  6773. -H <span class="hljs-string">'Accept: application/json'</span> \
  6774. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6775. </code></pre>
  6776. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards_count</span> HTTP/1.1
  6777. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6778. <span class="undefined"></span></span></code></pre>
  6779. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6780. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6781. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6782. };
  6783. $.ajax({
  6784. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  6785. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6786. <span class="hljs-attr">headers</span>: headers,
  6787. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6788. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6789. }
  6790. })
  6791. </code></pre>
  6792. <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>);
  6793. <span class="hljs-keyword">const</span> headers = {
  6794. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6795. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6796. };
  6797. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  6798. {
  6799. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6800. <span class="hljs-attr">headers</span>: headers
  6801. })
  6802. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6803. <span class="hljs-keyword">return</span> res.json();
  6804. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6805. <span class="hljs-built_in">console</span>.log(body);
  6806. });
  6807. </code></pre>
  6808. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6809. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6810. headers = {
  6811. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6812. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6813. }
  6814. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  6815. <span class="hljs-symbol">params:</span> {
  6816. }, <span class="hljs-symbol">headers:</span> headers
  6817. p JSON.parse(result)
  6818. </code></pre>
  6819. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6820. headers = {
  6821. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6822. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6823. }
  6824. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>, params={
  6825. }, headers = headers)
  6826. <span class="hljs-keyword">print</span> r.json()
  6827. </code></pre>
  6828. <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_count"</span>);
  6829. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6830. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6831. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6832. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6833. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6834. String inputLine;
  6835. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6836. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6837. response.append(inputLine);
  6838. }
  6839. in.close();
  6840. System.out.println(response.toString());
  6841. </code></pre>
  6842. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6843. <span class="hljs-keyword">import</span> (
  6844. <span class="hljs-string">"bytes"</span>
  6845. <span class="hljs-string">"net/http"</span>
  6846. )
  6847. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6848. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6849. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6850. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6851. }
  6852. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6853. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards_count"</span>, data)
  6854. req.Header = headers
  6855. client := &amp;http.Client{}
  6856. resp, err := client.Do(req)
  6857. <span class="hljs-comment">// ...</span>
  6858. }
  6859. </code></pre>
  6860. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  6861. <p><em>Get a cards count to a list</em></p>
  6862. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  6863. <table>
  6864. <thead>
  6865. <tr>
  6866. <th>Name</th>
  6867. <th>In</th>
  6868. <th>Type</th>
  6869. <th>Required</th>
  6870. <th>Description</th>
  6871. </tr>
  6872. </thead>
  6873. <tbody>
  6874. <tr>
  6875. <td>board</td>
  6876. <td>path</td>
  6877. <td>string</td>
  6878. <td>true</td>
  6879. <td>the board ID</td>
  6880. </tr>
  6881. <tr>
  6882. <td>list</td>
  6883. <td>path</td>
  6884. <td>string</td>
  6885. <td>true</td>
  6886. <td>the List ID</td>
  6887. </tr>
  6888. </tbody>
  6889. </table>
  6890. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6891. <p><strong>board</strong>: the board ID</p>
  6892. <p><strong>list</strong>: the List ID</p>
  6893. <blockquote>
  6894. <p>Example responses</p>
  6895. </blockquote>
  6896. <blockquote>
  6897. <p>200 Response</p>
  6898. </blockquote>
  6899. <pre class="highlight tab tab-json"><code>{
  6900. <span class="hljs-attr">"list_cards_count"</span>: <span class="hljs-number">0</span>
  6901. }
  6902. </code></pre>
  6903. <h3 id="get_list_cards_count-responses">Responses</h3>
  6904. <table>
  6905. <thead>
  6906. <tr>
  6907. <th>Status</th>
  6908. <th>Meaning</th>
  6909. <th>Description</th>
  6910. <th>Schema</th>
  6911. </tr>
  6912. </thead>
  6913. <tbody>
  6914. <tr>
  6915. <td>200</td>
  6916. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6917. <td>200 response</td>
  6918. <td>Inline</td>
  6919. </tr>
  6920. </tbody>
  6921. </table>
  6922. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  6923. <p>Status Code <strong>200</strong></p>
  6924. <table>
  6925. <thead>
  6926. <tr>
  6927. <th>Name</th>
  6928. <th>Type</th>
  6929. <th>Required</th>
  6930. <th>Restrictions</th>
  6931. <th>Description</th>
  6932. </tr>
  6933. </thead>
  6934. <tbody>
  6935. <tr>
  6936. <td>» list_cards_count</td>
  6937. <td>integer</td>
  6938. <td>false</td>
  6939. <td>none</td>
  6940. <td>none</td>
  6941. </tr>
  6942. </tbody>
  6943. </table>
  6944. <aside class="warning">
  6945. To perform this operation, you must be authenticated by means of one of the following methods:
  6946. UserSecurity
  6947. </aside>
  6948. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  6949. <p><a id="opIdget_swimlane_cards"></a></p>
  6950. <blockquote>
  6951. <p>Code samples</p>
  6952. </blockquote>
  6953. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6954. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  6955. -H <span class="hljs-string">'Accept: application/json'</span> \
  6956. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6957. </code></pre>
  6958. <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
  6959. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6960. <span class="undefined"></span></span></code></pre>
  6961. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6962. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6963. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6964. };
  6965. $.ajax({
  6966. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  6967. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6968. <span class="hljs-attr">headers</span>: headers,
  6969. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6970. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6971. }
  6972. })
  6973. </code></pre>
  6974. <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>);
  6975. <span class="hljs-keyword">const</span> headers = {
  6976. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6977. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6978. };
  6979. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  6980. {
  6981. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6982. <span class="hljs-attr">headers</span>: headers
  6983. })
  6984. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6985. <span class="hljs-keyword">return</span> res.json();
  6986. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6987. <span class="hljs-built_in">console</span>.log(body);
  6988. });
  6989. </code></pre>
  6990. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6991. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6992. headers = {
  6993. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6994. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6995. }
  6996. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  6997. <span class="hljs-symbol">params:</span> {
  6998. }, <span class="hljs-symbol">headers:</span> headers
  6999. p JSON.parse(result)
  7000. </code></pre>
  7001. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7002. headers = {
  7003. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7004. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7005. }
  7006. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>, params={
  7007. }, headers = headers)
  7008. <span class="hljs-keyword">print</span> r.json()
  7009. </code></pre>
  7010. <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>);
  7011. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7012. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7013. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7014. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7015. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7016. String inputLine;
  7017. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7018. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7019. response.append(inputLine);
  7020. }
  7021. in.close();
  7022. System.out.println(response.toString());
  7023. </code></pre>
  7024. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7025. <span class="hljs-keyword">import</span> (
  7026. <span class="hljs-string">"bytes"</span>
  7027. <span class="hljs-string">"net/http"</span>
  7028. )
  7029. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7030. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7031. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7032. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7033. }
  7034. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7035. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}/cards"</span>, data)
  7036. req.Header = headers
  7037. client := &amp;http.Client{}
  7038. resp, err := client.Do(req)
  7039. <span class="hljs-comment">// ...</span>
  7040. }
  7041. </code></pre>
  7042. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  7043. <p><em>get all cards attached to a swimlane</em></p>
  7044. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  7045. <table>
  7046. <thead>
  7047. <tr>
  7048. <th>Name</th>
  7049. <th>In</th>
  7050. <th>Type</th>
  7051. <th>Required</th>
  7052. <th>Description</th>
  7053. </tr>
  7054. </thead>
  7055. <tbody>
  7056. <tr>
  7057. <td>board</td>
  7058. <td>path</td>
  7059. <td>string</td>
  7060. <td>true</td>
  7061. <td>the board ID</td>
  7062. </tr>
  7063. <tr>
  7064. <td>swimlane</td>
  7065. <td>path</td>
  7066. <td>string</td>
  7067. <td>true</td>
  7068. <td>the swimlane ID</td>
  7069. </tr>
  7070. </tbody>
  7071. </table>
  7072. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7073. <p><strong>board</strong>: the board ID</p>
  7074. <p><strong>swimlane</strong>: the swimlane ID</p>
  7075. <blockquote>
  7076. <p>Example responses</p>
  7077. </blockquote>
  7078. <blockquote>
  7079. <p>200 Response</p>
  7080. </blockquote>
  7081. <pre class="highlight tab tab-json"><code>[
  7082. {
  7083. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7084. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7085. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  7086. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>
  7087. }
  7088. ]
  7089. </code></pre>
  7090. <h3 id="get_swimlane_cards-responses">Responses</h3>
  7091. <table>
  7092. <thead>
  7093. <tr>
  7094. <th>Status</th>
  7095. <th>Meaning</th>
  7096. <th>Description</th>
  7097. <th>Schema</th>
  7098. </tr>
  7099. </thead>
  7100. <tbody>
  7101. <tr>
  7102. <td>200</td>
  7103. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7104. <td>200 response</td>
  7105. <td>Inline</td>
  7106. </tr>
  7107. </tbody>
  7108. </table>
  7109. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  7110. <p>Status Code <strong>200</strong></p>
  7111. <table>
  7112. <thead>
  7113. <tr>
  7114. <th>Name</th>
  7115. <th>Type</th>
  7116. <th>Required</th>
  7117. <th>Restrictions</th>
  7118. <th>Description</th>
  7119. </tr>
  7120. </thead>
  7121. <tbody>
  7122. <tr>
  7123. <td>» _id</td>
  7124. <td>string</td>
  7125. <td>false</td>
  7126. <td>none</td>
  7127. <td>none</td>
  7128. </tr>
  7129. <tr>
  7130. <td>» title</td>
  7131. <td>string</td>
  7132. <td>false</td>
  7133. <td>none</td>
  7134. <td>none</td>
  7135. </tr>
  7136. <tr>
  7137. <td>» description</td>
  7138. <td>string</td>
  7139. <td>false</td>
  7140. <td>none</td>
  7141. <td>none</td>
  7142. </tr>
  7143. <tr>
  7144. <td>» listId</td>
  7145. <td>string</td>
  7146. <td>false</td>
  7147. <td>none</td>
  7148. <td>none</td>
  7149. </tr>
  7150. </tbody>
  7151. </table>
  7152. <aside class="warning">
  7153. To perform this operation, you must be authenticated by means of one of the following methods:
  7154. UserSecurity
  7155. </aside>
  7156. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  7157. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  7158. <p><a id="opIdget_all_custom_fields"></a></p>
  7159. <blockquote>
  7160. <p>Code samples</p>
  7161. </blockquote>
  7162. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7163. curl -X GET /api/boards/{board}/custom-fields \
  7164. -H <span class="hljs-string">'Accept: application/json'</span> \
  7165. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7166. </code></pre>
  7167. <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
  7168. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7169. <span class="undefined"></span></span></code></pre>
  7170. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7171. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7172. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7173. };
  7174. $.ajax({
  7175. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7176. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7177. <span class="hljs-attr">headers</span>: headers,
  7178. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7179. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7180. }
  7181. })
  7182. </code></pre>
  7183. <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>);
  7184. <span class="hljs-keyword">const</span> headers = {
  7185. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7186. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7187. };
  7188. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7189. {
  7190. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7191. <span class="hljs-attr">headers</span>: headers
  7192. })
  7193. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7194. <span class="hljs-keyword">return</span> res.json();
  7195. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7196. <span class="hljs-built_in">console</span>.log(body);
  7197. });
  7198. </code></pre>
  7199. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7200. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7201. headers = {
  7202. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7203. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7204. }
  7205. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7206. <span class="hljs-symbol">params:</span> {
  7207. }, <span class="hljs-symbol">headers:</span> headers
  7208. p JSON.parse(result)
  7209. </code></pre>
  7210. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7211. headers = {
  7212. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7213. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7214. }
  7215. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  7216. }, headers = headers)
  7217. <span class="hljs-keyword">print</span> r.json()
  7218. </code></pre>
  7219. <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>);
  7220. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7221. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7222. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7223. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7224. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7225. String inputLine;
  7226. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7227. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7228. response.append(inputLine);
  7229. }
  7230. in.close();
  7231. System.out.println(response.toString());
  7232. </code></pre>
  7233. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7234. <span class="hljs-keyword">import</span> (
  7235. <span class="hljs-string">"bytes"</span>
  7236. <span class="hljs-string">"net/http"</span>
  7237. )
  7238. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7239. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7240. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7241. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7242. }
  7243. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7244. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  7245. req.Header = headers
  7246. client := &amp;http.Client{}
  7247. resp, err := client.Do(req)
  7248. <span class="hljs-comment">// ...</span>
  7249. }
  7250. </code></pre>
  7251. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  7252. <p><em>Get the list of Custom Fields attached to a board</em></p>
  7253. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  7254. <table>
  7255. <thead>
  7256. <tr>
  7257. <th>Name</th>
  7258. <th>In</th>
  7259. <th>Type</th>
  7260. <th>Required</th>
  7261. <th>Description</th>
  7262. </tr>
  7263. </thead>
  7264. <tbody>
  7265. <tr>
  7266. <td>board</td>
  7267. <td>path</td>
  7268. <td>string</td>
  7269. <td>true</td>
  7270. <td>the board value</td>
  7271. </tr>
  7272. </tbody>
  7273. </table>
  7274. <blockquote>
  7275. <p>Example responses</p>
  7276. </blockquote>
  7277. <blockquote>
  7278. <p>200 Response</p>
  7279. </blockquote>
  7280. <pre class="highlight tab tab-json"><code>[
  7281. {
  7282. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7283. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  7284. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  7285. }
  7286. ]
  7287. </code></pre>
  7288. <h3 id="get_all_custom_fields-responses">Responses</h3>
  7289. <table>
  7290. <thead>
  7291. <tr>
  7292. <th>Status</th>
  7293. <th>Meaning</th>
  7294. <th>Description</th>
  7295. <th>Schema</th>
  7296. </tr>
  7297. </thead>
  7298. <tbody>
  7299. <tr>
  7300. <td>200</td>
  7301. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7302. <td>200 response</td>
  7303. <td>Inline</td>
  7304. </tr>
  7305. </tbody>
  7306. </table>
  7307. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  7308. <p>Status Code <strong>200</strong></p>
  7309. <table>
  7310. <thead>
  7311. <tr>
  7312. <th>Name</th>
  7313. <th>Type</th>
  7314. <th>Required</th>
  7315. <th>Restrictions</th>
  7316. <th>Description</th>
  7317. </tr>
  7318. </thead>
  7319. <tbody>
  7320. <tr>
  7321. <td>» _id</td>
  7322. <td>string</td>
  7323. <td>false</td>
  7324. <td>none</td>
  7325. <td>none</td>
  7326. </tr>
  7327. <tr>
  7328. <td>» name</td>
  7329. <td>string</td>
  7330. <td>false</td>
  7331. <td>none</td>
  7332. <td>none</td>
  7333. </tr>
  7334. <tr>
  7335. <td>» type</td>
  7336. <td>string</td>
  7337. <td>false</td>
  7338. <td>none</td>
  7339. <td>none</td>
  7340. </tr>
  7341. </tbody>
  7342. </table>
  7343. <aside class="warning">
  7344. To perform this operation, you must be authenticated by means of one of the following methods:
  7345. UserSecurity
  7346. </aside>
  7347. <h2 id="new_custom_field">new_custom_field</h2>
  7348. <p><a id="opIdnew_custom_field"></a></p>
  7349. <blockquote>
  7350. <p>Code samples</p>
  7351. </blockquote>
  7352. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7353. curl -X POST /api/boards/{board}/custom-fields \
  7354. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7355. -H <span class="hljs-string">'Accept: application/json'</span> \
  7356. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7357. </code></pre>
  7358. <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
  7359. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7360. Accept: application/json
  7361. </span></code></pre>
  7362. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7363. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7364. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7365. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7366. };
  7367. $.ajax({
  7368. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7369. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  7370. <span class="hljs-attr">headers</span>: headers,
  7371. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7372. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7373. }
  7374. })
  7375. </code></pre>
  7376. <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>);
  7377. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7378. "name": "string",
  7379. "type": "string",
  7380. "settings": "string",
  7381. "showOnCard": true,
  7382. "automaticallyOnCard": true,
  7383. "showLabelOnMiniCard": true,
  7384. "showSumAtTopOfList": true,
  7385. "authorId": "string"
  7386. }'</span>;
  7387. <span class="hljs-keyword">const</span> headers = {
  7388. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7389. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7390. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7391. };
  7392. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7393. {
  7394. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  7395. <span class="hljs-attr">body</span>: inputBody,
  7396. <span class="hljs-attr">headers</span>: headers
  7397. })
  7398. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7399. <span class="hljs-keyword">return</span> res.json();
  7400. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7401. <span class="hljs-built_in">console</span>.log(body);
  7402. });
  7403. </code></pre>
  7404. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7405. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7406. headers = {
  7407. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7408. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7409. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7410. }
  7411. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7412. <span class="hljs-symbol">params:</span> {
  7413. }, <span class="hljs-symbol">headers:</span> headers
  7414. p JSON.parse(result)
  7415. </code></pre>
  7416. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7417. headers = {
  7418. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7419. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7420. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7421. }
  7422. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  7423. }, headers = headers)
  7424. <span class="hljs-keyword">print</span> r.json()
  7425. </code></pre>
  7426. <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>);
  7427. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7428. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  7429. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7430. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7431. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7432. String inputLine;
  7433. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7434. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7435. response.append(inputLine);
  7436. }
  7437. in.close();
  7438. System.out.println(response.toString());
  7439. </code></pre>
  7440. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7441. <span class="hljs-keyword">import</span> (
  7442. <span class="hljs-string">"bytes"</span>
  7443. <span class="hljs-string">"net/http"</span>
  7444. )
  7445. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7446. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7447. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7448. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7449. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7450. }
  7451. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7452. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  7453. req.Header = headers
  7454. client := &amp;http.Client{}
  7455. resp, err := client.Do(req)
  7456. <span class="hljs-comment">// ...</span>
  7457. }
  7458. </code></pre>
  7459. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  7460. <p><em>Create a Custom Field</em></p>
  7461. <blockquote>
  7462. <p>Body parameter</p>
  7463. </blockquote>
  7464. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  7465. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  7466. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  7467. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  7468. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  7469. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  7470. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  7471. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7472. </code></pre>
  7473. <h3 id="new_custom_field-parameters">Parameters</h3>
  7474. <table>
  7475. <thead>
  7476. <tr>
  7477. <th>Name</th>
  7478. <th>In</th>
  7479. <th>Type</th>
  7480. <th>Required</th>
  7481. <th>Description</th>
  7482. </tr>
  7483. </thead>
  7484. <tbody>
  7485. <tr>
  7486. <td>board</td>
  7487. <td>path</td>
  7488. <td>string</td>
  7489. <td>true</td>
  7490. <td>the board value</td>
  7491. </tr>
  7492. <tr>
  7493. <td>body</td>
  7494. <td>body</td>
  7495. <td>object</td>
  7496. <td>false</td>
  7497. <td>none</td>
  7498. </tr>
  7499. <tr>
  7500. <td>» name</td>
  7501. <td>body</td>
  7502. <td>string</td>
  7503. <td>true</td>
  7504. <td>the name of the custom field</td>
  7505. </tr>
  7506. <tr>
  7507. <td>» type</td>
  7508. <td>body</td>
  7509. <td>string</td>
  7510. <td>true</td>
  7511. <td>the type of the custom field</td>
  7512. </tr>
  7513. <tr>
  7514. <td>» settings</td>
  7515. <td>body</td>
  7516. <td>string</td>
  7517. <td>true</td>
  7518. <td>the settings object of the custom field</td>
  7519. </tr>
  7520. <tr>
  7521. <td>» showOnCard</td>
  7522. <td>body</td>
  7523. <td>boolean</td>
  7524. <td>true</td>
  7525. <td>should we show the custom field on cards?</td>
  7526. </tr>
  7527. <tr>
  7528. <td>» automaticallyOnCard</td>
  7529. <td>body</td>
  7530. <td>boolean</td>
  7531. <td>true</td>
  7532. <td>should the custom fields automatically be added on cards?</td>
  7533. </tr>
  7534. <tr>
  7535. <td>» showLabelOnMiniCard</td>
  7536. <td>body</td>
  7537. <td>boolean</td>
  7538. <td>true</td>
  7539. <td>should the label of the custom field be shown on minicards?</td>
  7540. </tr>
  7541. <tr>
  7542. <td>» showSumAtTopOfList</td>
  7543. <td>body</td>
  7544. <td>boolean</td>
  7545. <td>true</td>
  7546. <td>should the sum of the custom fields be shown at top of list?</td>
  7547. </tr>
  7548. <tr>
  7549. <td>» authorId</td>
  7550. <td>body</td>
  7551. <td>string</td>
  7552. <td>true</td>
  7553. <td>the authorId value</td>
  7554. </tr>
  7555. </tbody>
  7556. </table>
  7557. <blockquote>
  7558. <p>Example responses</p>
  7559. </blockquote>
  7560. <blockquote>
  7561. <p>200 Response</p>
  7562. </blockquote>
  7563. <pre class="highlight tab tab-json"><code>{
  7564. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  7565. }
  7566. </code></pre>
  7567. <h3 id="new_custom_field-responses">Responses</h3>
  7568. <table>
  7569. <thead>
  7570. <tr>
  7571. <th>Status</th>
  7572. <th>Meaning</th>
  7573. <th>Description</th>
  7574. <th>Schema</th>
  7575. </tr>
  7576. </thead>
  7577. <tbody>
  7578. <tr>
  7579. <td>200</td>
  7580. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7581. <td>200 response</td>
  7582. <td>Inline</td>
  7583. </tr>
  7584. </tbody>
  7585. </table>
  7586. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  7587. <p>Status Code <strong>200</strong></p>
  7588. <table>
  7589. <thead>
  7590. <tr>
  7591. <th>Name</th>
  7592. <th>Type</th>
  7593. <th>Required</th>
  7594. <th>Restrictions</th>
  7595. <th>Description</th>
  7596. </tr>
  7597. </thead>
  7598. <tbody>
  7599. <tr>
  7600. <td>» _id</td>
  7601. <td>string</td>
  7602. <td>false</td>
  7603. <td>none</td>
  7604. <td>none</td>
  7605. </tr>
  7606. </tbody>
  7607. </table>
  7608. <aside class="warning">
  7609. To perform this operation, you must be authenticated by means of one of the following methods:
  7610. UserSecurity
  7611. </aside>
  7612. <h2 id="get_custom_field">get_custom_field</h2>
  7613. <p><a id="opIdget_custom_field"></a></p>
  7614. <blockquote>
  7615. <p>Code samples</p>
  7616. </blockquote>
  7617. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7618. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  7619. -H <span class="hljs-string">'Accept: application/json'</span> \
  7620. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7621. </code></pre>
  7622. <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
  7623. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7624. <span class="undefined"></span></span></code></pre>
  7625. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7626. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7627. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7628. };
  7629. $.ajax({
  7630. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7631. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7632. <span class="hljs-attr">headers</span>: headers,
  7633. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7634. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7635. }
  7636. })
  7637. </code></pre>
  7638. <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>);
  7639. <span class="hljs-keyword">const</span> headers = {
  7640. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7641. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7642. };
  7643. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7644. {
  7645. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7646. <span class="hljs-attr">headers</span>: headers
  7647. })
  7648. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7649. <span class="hljs-keyword">return</span> res.json();
  7650. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7651. <span class="hljs-built_in">console</span>.log(body);
  7652. });
  7653. </code></pre>
  7654. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7655. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7656. headers = {
  7657. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7658. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7659. }
  7660. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7661. <span class="hljs-symbol">params:</span> {
  7662. }, <span class="hljs-symbol">headers:</span> headers
  7663. p JSON.parse(result)
  7664. </code></pre>
  7665. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7666. headers = {
  7667. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7668. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7669. }
  7670. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  7671. }, headers = headers)
  7672. <span class="hljs-keyword">print</span> r.json()
  7673. </code></pre>
  7674. <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>);
  7675. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7676. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7677. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7678. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7679. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7680. String inputLine;
  7681. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7682. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7683. response.append(inputLine);
  7684. }
  7685. in.close();
  7686. System.out.println(response.toString());
  7687. </code></pre>
  7688. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7689. <span class="hljs-keyword">import</span> (
  7690. <span class="hljs-string">"bytes"</span>
  7691. <span class="hljs-string">"net/http"</span>
  7692. )
  7693. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7694. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7695. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7696. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7697. }
  7698. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7699. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  7700. req.Header = headers
  7701. client := &amp;http.Client{}
  7702. resp, err := client.Do(req)
  7703. <span class="hljs-comment">// ...</span>
  7704. }
  7705. </code></pre>
  7706. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  7707. <p><em>Get a Custom Fields attached to a board</em></p>
  7708. <h3 id="get_custom_field-parameters">Parameters</h3>
  7709. <table>
  7710. <thead>
  7711. <tr>
  7712. <th>Name</th>
  7713. <th>In</th>
  7714. <th>Type</th>
  7715. <th>Required</th>
  7716. <th>Description</th>
  7717. </tr>
  7718. </thead>
  7719. <tbody>
  7720. <tr>
  7721. <td>board</td>
  7722. <td>path</td>
  7723. <td>string</td>
  7724. <td>true</td>
  7725. <td>the board value</td>
  7726. </tr>
  7727. <tr>
  7728. <td>customField</td>
  7729. <td>path</td>
  7730. <td>string</td>
  7731. <td>true</td>
  7732. <td>the ID of the custom field</td>
  7733. </tr>
  7734. </tbody>
  7735. </table>
  7736. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7737. <p><strong>customField</strong>: the ID of the custom field</p>
  7738. <blockquote>
  7739. <p>Example responses</p>
  7740. </blockquote>
  7741. <blockquote>
  7742. <p>200 Response</p>
  7743. </blockquote>
  7744. <pre class="highlight tab tab-json"><code>[
  7745. {
  7746. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7747. <span class="hljs-attr">"boardIds"</span>: <span class="hljs-string">"string"</span>
  7748. }
  7749. ]
  7750. </code></pre>
  7751. <h3 id="get_custom_field-responses">Responses</h3>
  7752. <table>
  7753. <thead>
  7754. <tr>
  7755. <th>Status</th>
  7756. <th>Meaning</th>
  7757. <th>Description</th>
  7758. <th>Schema</th>
  7759. </tr>
  7760. </thead>
  7761. <tbody>
  7762. <tr>
  7763. <td>200</td>
  7764. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7765. <td>200 response</td>
  7766. <td>Inline</td>
  7767. </tr>
  7768. </tbody>
  7769. </table>
  7770. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  7771. <p>Status Code <strong>200</strong></p>
  7772. <table>
  7773. <thead>
  7774. <tr>
  7775. <th>Name</th>
  7776. <th>Type</th>
  7777. <th>Required</th>
  7778. <th>Restrictions</th>
  7779. <th>Description</th>
  7780. </tr>
  7781. </thead>
  7782. <tbody>
  7783. <tr>
  7784. <td>» _id</td>
  7785. <td>string</td>
  7786. <td>false</td>
  7787. <td>none</td>
  7788. <td>none</td>
  7789. </tr>
  7790. <tr>
  7791. <td>» boardIds</td>
  7792. <td>string</td>
  7793. <td>false</td>
  7794. <td>none</td>
  7795. <td>none</td>
  7796. </tr>
  7797. </tbody>
  7798. </table>
  7799. <aside class="warning">
  7800. To perform this operation, you must be authenticated by means of one of the following methods:
  7801. UserSecurity
  7802. </aside>
  7803. <h2 id="edit_custom_field">edit_custom_field</h2>
  7804. <p><a id="opIdedit_custom_field"></a></p>
  7805. <blockquote>
  7806. <p>Code samples</p>
  7807. </blockquote>
  7808. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7809. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  7810. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7811. -H <span class="hljs-string">'Accept: application/json'</span> \
  7812. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7813. </code></pre>
  7814. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> HTTP/1.1
  7815. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7816. Accept: application/json
  7817. </span></code></pre>
  7818. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7819. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7820. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7821. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7822. };
  7823. $.ajax({
  7824. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7825. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  7826. <span class="hljs-attr">headers</span>: headers,
  7827. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7828. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7829. }
  7830. })
  7831. </code></pre>
  7832. <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>);
  7833. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7834. "name": "string",
  7835. "type": "string",
  7836. "settings": "string",
  7837. "showOnCard": true,
  7838. "automaticallyOnCard": true,
  7839. "alwaysOnCard": "string",
  7840. "showLabelOnMiniCard": true,
  7841. "showSumAtTopOfList": true
  7842. }'</span>;
  7843. <span class="hljs-keyword">const</span> headers = {
  7844. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7845. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7846. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7847. };
  7848. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7849. {
  7850. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  7851. <span class="hljs-attr">body</span>: inputBody,
  7852. <span class="hljs-attr">headers</span>: headers
  7853. })
  7854. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7855. <span class="hljs-keyword">return</span> res.json();
  7856. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7857. <span class="hljs-built_in">console</span>.log(body);
  7858. });
  7859. </code></pre>
  7860. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7861. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7862. headers = {
  7863. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7864. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7865. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7866. }
  7867. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7868. <span class="hljs-symbol">params:</span> {
  7869. }, <span class="hljs-symbol">headers:</span> headers
  7870. p JSON.parse(result)
  7871. </code></pre>
  7872. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7873. headers = {
  7874. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7875. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7876. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7877. }
  7878. r = requests.put(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  7879. }, headers = headers)
  7880. <span class="hljs-keyword">print</span> r.json()
  7881. </code></pre>
  7882. <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>);
  7883. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7884. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  7885. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7886. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7887. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7888. String inputLine;
  7889. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7890. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7891. response.append(inputLine);
  7892. }
  7893. in.close();
  7894. System.out.println(response.toString());
  7895. </code></pre>
  7896. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7897. <span class="hljs-keyword">import</span> (
  7898. <span class="hljs-string">"bytes"</span>
  7899. <span class="hljs-string">"net/http"</span>
  7900. )
  7901. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7902. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7903. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7904. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7905. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7906. }
  7907. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7908. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  7909. req.Header = headers
  7910. client := &amp;http.Client{}
  7911. resp, err := client.Do(req)
  7912. <span class="hljs-comment">// ...</span>
  7913. }
  7914. </code></pre>
  7915. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  7916. <p><em>Update a Custom Field</em></p>
  7917. <blockquote>
  7918. <p>Body parameter</p>
  7919. </blockquote>
  7920. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  7921. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  7922. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  7923. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  7924. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  7925. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  7926. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  7927. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  7928. </code></pre>
  7929. <h3 id="edit_custom_field-parameters">Parameters</h3>
  7930. <table>
  7931. <thead>
  7932. <tr>
  7933. <th>Name</th>
  7934. <th>In</th>
  7935. <th>Type</th>
  7936. <th>Required</th>
  7937. <th>Description</th>
  7938. </tr>
  7939. </thead>
  7940. <tbody>
  7941. <tr>
  7942. <td>board</td>
  7943. <td>path</td>
  7944. <td>string</td>
  7945. <td>true</td>
  7946. <td>the board value</td>
  7947. </tr>
  7948. <tr>
  7949. <td>customField</td>
  7950. <td>path</td>
  7951. <td>string</td>
  7952. <td>true</td>
  7953. <td>the customField value</td>
  7954. </tr>
  7955. <tr>
  7956. <td>body</td>
  7957. <td>body</td>
  7958. <td>object</td>
  7959. <td>false</td>
  7960. <td>none</td>
  7961. </tr>
  7962. <tr>
  7963. <td>» name</td>
  7964. <td>body</td>
  7965. <td>string</td>
  7966. <td>true</td>
  7967. <td>the name of the custom field</td>
  7968. </tr>
  7969. <tr>
  7970. <td>» type</td>
  7971. <td>body</td>
  7972. <td>string</td>
  7973. <td>true</td>
  7974. <td>the type of the custom field</td>
  7975. </tr>
  7976. <tr>
  7977. <td>» settings</td>
  7978. <td>body</td>
  7979. <td>string</td>
  7980. <td>true</td>
  7981. <td>the settings object of the custom field</td>
  7982. </tr>
  7983. <tr>
  7984. <td>» showOnCard</td>
  7985. <td>body</td>
  7986. <td>boolean</td>
  7987. <td>true</td>
  7988. <td>should we show the custom field on cards</td>
  7989. </tr>
  7990. <tr>
  7991. <td>» automaticallyOnCard</td>
  7992. <td>body</td>
  7993. <td>boolean</td>
  7994. <td>true</td>
  7995. <td>should the custom fields automatically be added on cards</td>
  7996. </tr>
  7997. <tr>
  7998. <td>» alwaysOnCard</td>
  7999. <td>body</td>
  8000. <td>string</td>
  8001. <td>true</td>
  8002. <td>the alwaysOnCard value</td>
  8003. </tr>
  8004. <tr>
  8005. <td>» showLabelOnMiniCard</td>
  8006. <td>body</td>
  8007. <td>boolean</td>
  8008. <td>true</td>
  8009. <td>should the label of the custom field be shown on minicards</td>
  8010. </tr>
  8011. <tr>
  8012. <td>» showSumAtTopOfList</td>
  8013. <td>body</td>
  8014. <td>boolean</td>
  8015. <td>true</td>
  8016. <td>should the sum of the custom fields be shown at top of list</td>
  8017. </tr>
  8018. </tbody>
  8019. </table>
  8020. <blockquote>
  8021. <p>Example responses</p>
  8022. </blockquote>
  8023. <blockquote>
  8024. <p>200 Response</p>
  8025. </blockquote>
  8026. <pre class="highlight tab tab-json"><code>{
  8027. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8028. }
  8029. </code></pre>
  8030. <h3 id="edit_custom_field-responses">Responses</h3>
  8031. <table>
  8032. <thead>
  8033. <tr>
  8034. <th>Status</th>
  8035. <th>Meaning</th>
  8036. <th>Description</th>
  8037. <th>Schema</th>
  8038. </tr>
  8039. </thead>
  8040. <tbody>
  8041. <tr>
  8042. <td>200</td>
  8043. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8044. <td>200 response</td>
  8045. <td>Inline</td>
  8046. </tr>
  8047. </tbody>
  8048. </table>
  8049. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  8050. <p>Status Code <strong>200</strong></p>
  8051. <table>
  8052. <thead>
  8053. <tr>
  8054. <th>Name</th>
  8055. <th>Type</th>
  8056. <th>Required</th>
  8057. <th>Restrictions</th>
  8058. <th>Description</th>
  8059. </tr>
  8060. </thead>
  8061. <tbody>
  8062. <tr>
  8063. <td>» _id</td>
  8064. <td>string</td>
  8065. <td>false</td>
  8066. <td>none</td>
  8067. <td>none</td>
  8068. </tr>
  8069. </tbody>
  8070. </table>
  8071. <aside class="warning">
  8072. To perform this operation, you must be authenticated by means of one of the following methods:
  8073. UserSecurity
  8074. </aside>
  8075. <h2 id="delete_custom_field">delete_custom_field</h2>
  8076. <p><a id="opIddelete_custom_field"></a></p>
  8077. <blockquote>
  8078. <p>Code samples</p>
  8079. </blockquote>
  8080. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8081. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  8082. -H <span class="hljs-string">'Accept: application/json'</span> \
  8083. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8084. </code></pre>
  8085. <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
  8086. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8087. <span class="undefined"></span></span></code></pre>
  8088. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8089. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8090. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8091. };
  8092. $.ajax({
  8093. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8094. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  8095. <span class="hljs-attr">headers</span>: headers,
  8096. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8097. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8098. }
  8099. })
  8100. </code></pre>
  8101. <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>);
  8102. <span class="hljs-keyword">const</span> headers = {
  8103. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8104. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8105. };
  8106. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8107. {
  8108. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  8109. <span class="hljs-attr">headers</span>: headers
  8110. })
  8111. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8112. <span class="hljs-keyword">return</span> res.json();
  8113. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8114. <span class="hljs-built_in">console</span>.log(body);
  8115. });
  8116. </code></pre>
  8117. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8118. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8119. headers = {
  8120. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8121. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8122. }
  8123. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8124. <span class="hljs-symbol">params:</span> {
  8125. }, <span class="hljs-symbol">headers:</span> headers
  8126. p JSON.parse(result)
  8127. </code></pre>
  8128. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8129. headers = {
  8130. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8131. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8132. }
  8133. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  8134. }, headers = headers)
  8135. <span class="hljs-keyword">print</span> r.json()
  8136. </code></pre>
  8137. <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>);
  8138. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8139. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  8140. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8141. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8142. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8143. String inputLine;
  8144. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8145. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8146. response.append(inputLine);
  8147. }
  8148. in.close();
  8149. System.out.println(response.toString());
  8150. </code></pre>
  8151. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8152. <span class="hljs-keyword">import</span> (
  8153. <span class="hljs-string">"bytes"</span>
  8154. <span class="hljs-string">"net/http"</span>
  8155. )
  8156. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8157. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8158. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8159. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8160. }
  8161. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8162. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  8163. req.Header = headers
  8164. client := &amp;http.Client{}
  8165. resp, err := client.Do(req)
  8166. <span class="hljs-comment">// ...</span>
  8167. }
  8168. </code></pre>
  8169. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  8170. <p><em>Delete a Custom Fields attached to a board</em></p>
  8171. <p>The Custom Field can't be retrieved after this operation</p>
  8172. <h3 id="delete_custom_field-parameters">Parameters</h3>
  8173. <table>
  8174. <thead>
  8175. <tr>
  8176. <th>Name</th>
  8177. <th>In</th>
  8178. <th>Type</th>
  8179. <th>Required</th>
  8180. <th>Description</th>
  8181. </tr>
  8182. </thead>
  8183. <tbody>
  8184. <tr>
  8185. <td>board</td>
  8186. <td>path</td>
  8187. <td>string</td>
  8188. <td>true</td>
  8189. <td>the board value</td>
  8190. </tr>
  8191. <tr>
  8192. <td>customField</td>
  8193. <td>path</td>
  8194. <td>string</td>
  8195. <td>true</td>
  8196. <td>the ID of the custom field</td>
  8197. </tr>
  8198. </tbody>
  8199. </table>
  8200. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8201. <p><strong>customField</strong>: the ID of the custom field</p>
  8202. <blockquote>
  8203. <p>Example responses</p>
  8204. </blockquote>
  8205. <blockquote>
  8206. <p>200 Response</p>
  8207. </blockquote>
  8208. <pre class="highlight tab tab-json"><code>{
  8209. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8210. }
  8211. </code></pre>
  8212. <h3 id="delete_custom_field-responses">Responses</h3>
  8213. <table>
  8214. <thead>
  8215. <tr>
  8216. <th>Status</th>
  8217. <th>Meaning</th>
  8218. <th>Description</th>
  8219. <th>Schema</th>
  8220. </tr>
  8221. </thead>
  8222. <tbody>
  8223. <tr>
  8224. <td>200</td>
  8225. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8226. <td>200 response</td>
  8227. <td>Inline</td>
  8228. </tr>
  8229. </tbody>
  8230. </table>
  8231. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  8232. <p>Status Code <strong>200</strong></p>
  8233. <table>
  8234. <thead>
  8235. <tr>
  8236. <th>Name</th>
  8237. <th>Type</th>
  8238. <th>Required</th>
  8239. <th>Restrictions</th>
  8240. <th>Description</th>
  8241. </tr>
  8242. </thead>
  8243. <tbody>
  8244. <tr>
  8245. <td>» _id</td>
  8246. <td>string</td>
  8247. <td>false</td>
  8248. <td>none</td>
  8249. <td>none</td>
  8250. </tr>
  8251. </tbody>
  8252. </table>
  8253. <aside class="warning">
  8254. To perform this operation, you must be authenticated by means of one of the following methods:
  8255. UserSecurity
  8256. </aside>
  8257. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  8258. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  8259. <blockquote>
  8260. <p>Code samples</p>
  8261. </blockquote>
  8262. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8263. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  8264. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8265. -H <span class="hljs-string">'Accept: application/json'</span> \
  8266. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8267. </code></pre>
  8268. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items</span> HTTP/1.1
  8269. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8270. Accept: application/json
  8271. </span></code></pre>
  8272. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8273. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8274. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8275. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8276. };
  8277. $.ajax({
  8278. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  8279. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  8280. <span class="hljs-attr">headers</span>: headers,
  8281. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8282. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8283. }
  8284. })
  8285. </code></pre>
  8286. <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>);
  8287. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8288. "items": "string"
  8289. }'</span>;
  8290. <span class="hljs-keyword">const</span> headers = {
  8291. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8292. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8293. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8294. };
  8295. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  8296. {
  8297. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  8298. <span class="hljs-attr">body</span>: inputBody,
  8299. <span class="hljs-attr">headers</span>: headers
  8300. })
  8301. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8302. <span class="hljs-keyword">return</span> res.json();
  8303. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8304. <span class="hljs-built_in">console</span>.log(body);
  8305. });
  8306. </code></pre>
  8307. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8308. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8309. headers = {
  8310. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8311. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8312. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8313. }
  8314. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  8315. <span class="hljs-symbol">params:</span> {
  8316. }, <span class="hljs-symbol">headers:</span> headers
  8317. p JSON.parse(result)
  8318. </code></pre>
  8319. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8320. headers = {
  8321. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8322. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8323. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8324. }
  8325. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>, params={
  8326. }, headers = headers)
  8327. <span class="hljs-keyword">print</span> r.json()
  8328. </code></pre>
  8329. <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}/dropdown-items"</span>);
  8330. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8331. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  8332. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8333. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8334. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8335. String inputLine;
  8336. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8337. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8338. response.append(inputLine);
  8339. }
  8340. in.close();
  8341. System.out.println(response.toString());
  8342. </code></pre>
  8343. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8344. <span class="hljs-keyword">import</span> (
  8345. <span class="hljs-string">"bytes"</span>
  8346. <span class="hljs-string">"net/http"</span>
  8347. )
  8348. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8349. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8350. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8351. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8352. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8353. }
  8354. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8355. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items"</span>, data)
  8356. req.Header = headers
  8357. client := &amp;http.Client{}
  8358. resp, err := client.Do(req)
  8359. <span class="hljs-comment">// ...</span>
  8360. }
  8361. </code></pre>
  8362. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  8363. <p><em>Update a Custom Field's dropdown items</em></p>
  8364. <blockquote>
  8365. <p>Body parameter</p>
  8366. </blockquote>
  8367. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  8368. </code></pre>
  8369. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  8370. <table>
  8371. <thead>
  8372. <tr>
  8373. <th>Name</th>
  8374. <th>In</th>
  8375. <th>Type</th>
  8376. <th>Required</th>
  8377. <th>Description</th>
  8378. </tr>
  8379. </thead>
  8380. <tbody>
  8381. <tr>
  8382. <td>board</td>
  8383. <td>path</td>
  8384. <td>string</td>
  8385. <td>true</td>
  8386. <td>the board value</td>
  8387. </tr>
  8388. <tr>
  8389. <td>customField</td>
  8390. <td>path</td>
  8391. <td>string</td>
  8392. <td>true</td>
  8393. <td>the customField value</td>
  8394. </tr>
  8395. <tr>
  8396. <td>body</td>
  8397. <td>body</td>
  8398. <td>object</td>
  8399. <td>false</td>
  8400. <td>none</td>
  8401. </tr>
  8402. <tr>
  8403. <td>» items</td>
  8404. <td>body</td>
  8405. <td>string</td>
  8406. <td>false</td>
  8407. <td>names of the custom field</td>
  8408. </tr>
  8409. </tbody>
  8410. </table>
  8411. <blockquote>
  8412. <p>Example responses</p>
  8413. </blockquote>
  8414. <blockquote>
  8415. <p>200 Response</p>
  8416. </blockquote>
  8417. <pre class="highlight tab tab-json"><code>{
  8418. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8419. }
  8420. </code></pre>
  8421. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  8422. <table>
  8423. <thead>
  8424. <tr>
  8425. <th>Status</th>
  8426. <th>Meaning</th>
  8427. <th>Description</th>
  8428. <th>Schema</th>
  8429. </tr>
  8430. </thead>
  8431. <tbody>
  8432. <tr>
  8433. <td>200</td>
  8434. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8435. <td>200 response</td>
  8436. <td>Inline</td>
  8437. </tr>
  8438. </tbody>
  8439. </table>
  8440. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  8441. <p>Status Code <strong>200</strong></p>
  8442. <table>
  8443. <thead>
  8444. <tr>
  8445. <th>Name</th>
  8446. <th>Type</th>
  8447. <th>Required</th>
  8448. <th>Restrictions</th>
  8449. <th>Description</th>
  8450. </tr>
  8451. </thead>
  8452. <tbody>
  8453. <tr>
  8454. <td>» _id</td>
  8455. <td>string</td>
  8456. <td>false</td>
  8457. <td>none</td>
  8458. <td>none</td>
  8459. </tr>
  8460. </tbody>
  8461. </table>
  8462. <aside class="warning">
  8463. To perform this operation, you must be authenticated by means of one of the following methods:
  8464. UserSecurity
  8465. </aside>
  8466. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  8467. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  8468. <blockquote>
  8469. <p>Code samples</p>
  8470. </blockquote>
  8471. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8472. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  8473. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8474. -H <span class="hljs-string">'Accept: application/json'</span> \
  8475. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8476. </code></pre>
  8477. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</span> HTTP/1.1
  8478. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8479. Accept: application/json
  8480. </span></code></pre>
  8481. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8482. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8483. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8484. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8485. };
  8486. $.ajax({
  8487. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8488. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  8489. <span class="hljs-attr">headers</span>: headers,
  8490. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8491. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8492. }
  8493. })
  8494. </code></pre>
  8495. <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>);
  8496. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8497. "name": "string"
  8498. }'</span>;
  8499. <span class="hljs-keyword">const</span> headers = {
  8500. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8501. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8502. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8503. };
  8504. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8505. {
  8506. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  8507. <span class="hljs-attr">body</span>: inputBody,
  8508. <span class="hljs-attr">headers</span>: headers
  8509. })
  8510. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8511. <span class="hljs-keyword">return</span> res.json();
  8512. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8513. <span class="hljs-built_in">console</span>.log(body);
  8514. });
  8515. </code></pre>
  8516. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8517. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8518. headers = {
  8519. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8520. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8521. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8522. }
  8523. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8524. <span class="hljs-symbol">params:</span> {
  8525. }, <span class="hljs-symbol">headers:</span> headers
  8526. p JSON.parse(result)
  8527. </code></pre>
  8528. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8529. headers = {
  8530. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8531. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8532. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8533. }
  8534. r = requests.put(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>, params={
  8535. }, headers = headers)
  8536. <span class="hljs-keyword">print</span> r.json()
  8537. </code></pre>
  8538. <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}/dropdown-items/{dropdownItem}"</span>);
  8539. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8540. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  8541. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8542. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8543. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8544. String inputLine;
  8545. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8546. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8547. response.append(inputLine);
  8548. }
  8549. in.close();
  8550. System.out.println(response.toString());
  8551. </code></pre>
  8552. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8553. <span class="hljs-keyword">import</span> (
  8554. <span class="hljs-string">"bytes"</span>
  8555. <span class="hljs-string">"net/http"</span>
  8556. )
  8557. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8558. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8559. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8560. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8561. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8562. }
  8563. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8564. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}"</span>, data)
  8565. req.Header = headers
  8566. client := &amp;http.Client{}
  8567. resp, err := client.Do(req)
  8568. <span class="hljs-comment">// ...</span>
  8569. }
  8570. </code></pre>
  8571. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  8572. <p><em>Update a Custom Field's dropdown item</em></p>
  8573. <blockquote>
  8574. <p>Body parameter</p>
  8575. </blockquote>
  8576. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  8577. </code></pre>
  8578. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  8579. <table>
  8580. <thead>
  8581. <tr>
  8582. <th>Name</th>
  8583. <th>In</th>
  8584. <th>Type</th>
  8585. <th>Required</th>
  8586. <th>Description</th>
  8587. </tr>
  8588. </thead>
  8589. <tbody>
  8590. <tr>
  8591. <td>board</td>
  8592. <td>path</td>
  8593. <td>string</td>
  8594. <td>true</td>
  8595. <td>the board value</td>
  8596. </tr>
  8597. <tr>
  8598. <td>customField</td>
  8599. <td>path</td>
  8600. <td>string</td>
  8601. <td>true</td>
  8602. <td>the customField value</td>
  8603. </tr>
  8604. <tr>
  8605. <td>dropdownItem</td>
  8606. <td>path</td>
  8607. <td>string</td>
  8608. <td>true</td>
  8609. <td>the dropdownItem value</td>
  8610. </tr>
  8611. <tr>
  8612. <td>body</td>
  8613. <td>body</td>
  8614. <td>object</td>
  8615. <td>false</td>
  8616. <td>none</td>
  8617. </tr>
  8618. <tr>
  8619. <td>» name</td>
  8620. <td>body</td>
  8621. <td>string</td>
  8622. <td>true</td>
  8623. <td>names of the custom field</td>
  8624. </tr>
  8625. </tbody>
  8626. </table>
  8627. <blockquote>
  8628. <p>Example responses</p>
  8629. </blockquote>
  8630. <blockquote>
  8631. <p>200 Response</p>
  8632. </blockquote>
  8633. <pre class="highlight tab tab-json"><code>{
  8634. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8635. }
  8636. </code></pre>
  8637. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  8638. <table>
  8639. <thead>
  8640. <tr>
  8641. <th>Status</th>
  8642. <th>Meaning</th>
  8643. <th>Description</th>
  8644. <th>Schema</th>
  8645. </tr>
  8646. </thead>
  8647. <tbody>
  8648. <tr>
  8649. <td>200</td>
  8650. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8651. <td>200 response</td>
  8652. <td>Inline</td>
  8653. </tr>
  8654. </tbody>
  8655. </table>
  8656. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  8657. <p>Status Code <strong>200</strong></p>
  8658. <table>
  8659. <thead>
  8660. <tr>
  8661. <th>Name</th>
  8662. <th>Type</th>
  8663. <th>Required</th>
  8664. <th>Restrictions</th>
  8665. <th>Description</th>
  8666. </tr>
  8667. </thead>
  8668. <tbody>
  8669. <tr>
  8670. <td>» _id</td>
  8671. <td>string</td>
  8672. <td>false</td>
  8673. <td>none</td>
  8674. <td>none</td>
  8675. </tr>
  8676. </tbody>
  8677. </table>
  8678. <aside class="warning">
  8679. To perform this operation, you must be authenticated by means of one of the following methods:
  8680. UserSecurity
  8681. </aside>
  8682. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  8683. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  8684. <blockquote>
  8685. <p>Code samples</p>
  8686. </blockquote>
  8687. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8688. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  8689. -H <span class="hljs-string">'Accept: application/json'</span> \
  8690. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8691. </code></pre>
  8692. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</span> HTTP/1.1
  8693. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8694. <span class="undefined"></span></span></code></pre>
  8695. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8696. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8697. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8698. };
  8699. $.ajax({
  8700. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8701. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  8702. <span class="hljs-attr">headers</span>: headers,
  8703. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8704. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8705. }
  8706. })
  8707. </code></pre>
  8708. <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>);
  8709. <span class="hljs-keyword">const</span> headers = {
  8710. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8711. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8712. };
  8713. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8714. {
  8715. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  8716. <span class="hljs-attr">headers</span>: headers
  8717. })
  8718. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8719. <span class="hljs-keyword">return</span> res.json();
  8720. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8721. <span class="hljs-built_in">console</span>.log(body);
  8722. });
  8723. </code></pre>
  8724. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8725. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8726. headers = {
  8727. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8728. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8729. }
  8730. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8731. <span class="hljs-symbol">params:</span> {
  8732. }, <span class="hljs-symbol">headers:</span> headers
  8733. p JSON.parse(result)
  8734. </code></pre>
  8735. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8736. headers = {
  8737. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8738. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8739. }
  8740. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>, params={
  8741. }, headers = headers)
  8742. <span class="hljs-keyword">print</span> r.json()
  8743. </code></pre>
  8744. <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}/dropdown-items/{dropdownItem}"</span>);
  8745. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8746. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  8747. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8748. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8749. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8750. String inputLine;
  8751. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8752. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8753. response.append(inputLine);
  8754. }
  8755. in.close();
  8756. System.out.println(response.toString());
  8757. </code></pre>
  8758. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8759. <span class="hljs-keyword">import</span> (
  8760. <span class="hljs-string">"bytes"</span>
  8761. <span class="hljs-string">"net/http"</span>
  8762. )
  8763. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8764. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8765. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8766. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8767. }
  8768. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8769. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}"</span>, data)
  8770. req.Header = headers
  8771. client := &amp;http.Client{}
  8772. resp, err := client.Do(req)
  8773. <span class="hljs-comment">// ...</span>
  8774. }
  8775. </code></pre>
  8776. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  8777. <p><em>Update a Custom Field's dropdown items</em></p>
  8778. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  8779. <table>
  8780. <thead>
  8781. <tr>
  8782. <th>Name</th>
  8783. <th>In</th>
  8784. <th>Type</th>
  8785. <th>Required</th>
  8786. <th>Description</th>
  8787. </tr>
  8788. </thead>
  8789. <tbody>
  8790. <tr>
  8791. <td>board</td>
  8792. <td>path</td>
  8793. <td>string</td>
  8794. <td>true</td>
  8795. <td>the board value</td>
  8796. </tr>
  8797. <tr>
  8798. <td>customField</td>
  8799. <td>path</td>
  8800. <td>string</td>
  8801. <td>true</td>
  8802. <td>the customField value</td>
  8803. </tr>
  8804. <tr>
  8805. <td>dropdownItem</td>
  8806. <td>path</td>
  8807. <td>string</td>
  8808. <td>true</td>
  8809. <td>the dropdownItem value</td>
  8810. </tr>
  8811. </tbody>
  8812. </table>
  8813. <blockquote>
  8814. <p>Example responses</p>
  8815. </blockquote>
  8816. <blockquote>
  8817. <p>200 Response</p>
  8818. </blockquote>
  8819. <pre class="highlight tab tab-json"><code>{
  8820. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8821. }
  8822. </code></pre>
  8823. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  8824. <table>
  8825. <thead>
  8826. <tr>
  8827. <th>Status</th>
  8828. <th>Meaning</th>
  8829. <th>Description</th>
  8830. <th>Schema</th>
  8831. </tr>
  8832. </thead>
  8833. <tbody>
  8834. <tr>
  8835. <td>200</td>
  8836. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8837. <td>200 response</td>
  8838. <td>Inline</td>
  8839. </tr>
  8840. </tbody>
  8841. </table>
  8842. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  8843. <p>Status Code <strong>200</strong></p>
  8844. <table>
  8845. <thead>
  8846. <tr>
  8847. <th>Name</th>
  8848. <th>Type</th>
  8849. <th>Required</th>
  8850. <th>Restrictions</th>
  8851. <th>Description</th>
  8852. </tr>
  8853. </thead>
  8854. <tbody>
  8855. <tr>
  8856. <td>» _id</td>
  8857. <td>string</td>
  8858. <td>false</td>
  8859. <td>none</td>
  8860. <td>none</td>
  8861. </tr>
  8862. </tbody>
  8863. </table>
  8864. <aside class="warning">
  8865. To perform this operation, you must be authenticated by means of one of the following methods:
  8866. UserSecurity
  8867. </aside>
  8868. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  8869. <h2 id="get_all_integrations">get_all_integrations</h2>
  8870. <p><a id="opIdget_all_integrations"></a></p>
  8871. <blockquote>
  8872. <p>Code samples</p>
  8873. </blockquote>
  8874. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8875. curl -X GET /api/boards/{board}/integrations \
  8876. -H <span class="hljs-string">'Accept: application/json'</span> \
  8877. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8878. </code></pre>
  8879. <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
  8880. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8881. <span class="undefined"></span></span></code></pre>
  8882. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8883. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8884. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8885. };
  8886. $.ajax({
  8887. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8888. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  8889. <span class="hljs-attr">headers</span>: headers,
  8890. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8891. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8892. }
  8893. })
  8894. </code></pre>
  8895. <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>);
  8896. <span class="hljs-keyword">const</span> headers = {
  8897. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8898. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8899. };
  8900. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8901. {
  8902. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  8903. <span class="hljs-attr">headers</span>: headers
  8904. })
  8905. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8906. <span class="hljs-keyword">return</span> res.json();
  8907. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8908. <span class="hljs-built_in">console</span>.log(body);
  8909. });
  8910. </code></pre>
  8911. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8912. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8913. headers = {
  8914. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8915. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8916. }
  8917. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8918. <span class="hljs-symbol">params:</span> {
  8919. }, <span class="hljs-symbol">headers:</span> headers
  8920. p JSON.parse(result)
  8921. </code></pre>
  8922. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8923. headers = {
  8924. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8925. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8926. }
  8927. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  8928. }, headers = headers)
  8929. <span class="hljs-keyword">print</span> r.json()
  8930. </code></pre>
  8931. <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>);
  8932. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8933. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  8934. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8935. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8936. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8937. String inputLine;
  8938. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8939. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8940. response.append(inputLine);
  8941. }
  8942. in.close();
  8943. System.out.println(response.toString());
  8944. </code></pre>
  8945. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8946. <span class="hljs-keyword">import</span> (
  8947. <span class="hljs-string">"bytes"</span>
  8948. <span class="hljs-string">"net/http"</span>
  8949. )
  8950. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8951. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8952. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8953. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8954. }
  8955. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8956. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  8957. req.Header = headers
  8958. client := &amp;http.Client{}
  8959. resp, err := client.Do(req)
  8960. <span class="hljs-comment">// ...</span>
  8961. }
  8962. </code></pre>
  8963. <p><code>GET /api/boards/{board}/integrations</code></p>
  8964. <p><em>Get all integrations in board</em></p>
  8965. <h3 id="get_all_integrations-parameters">Parameters</h3>
  8966. <table>
  8967. <thead>
  8968. <tr>
  8969. <th>Name</th>
  8970. <th>In</th>
  8971. <th>Type</th>
  8972. <th>Required</th>
  8973. <th>Description</th>
  8974. </tr>
  8975. </thead>
  8976. <tbody>
  8977. <tr>
  8978. <td>board</td>
  8979. <td>path</td>
  8980. <td>string</td>
  8981. <td>true</td>
  8982. <td>the board ID</td>
  8983. </tr>
  8984. </tbody>
  8985. </table>
  8986. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8987. <p><strong>board</strong>: the board ID</p>
  8988. <blockquote>
  8989. <p>Example responses</p>
  8990. </blockquote>
  8991. <blockquote>
  8992. <p>200 Response</p>
  8993. </blockquote>
  8994. <pre class="highlight tab tab-json"><code>[
  8995. {
  8996. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  8997. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  8998. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  8999. <span class="hljs-attr">"activities"</span>: [
  9000. <span class="hljs-string">"string"</span>
  9001. ],
  9002. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  9003. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  9004. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  9005. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9006. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9007. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  9008. }
  9009. ]
  9010. </code></pre>
  9011. <h3 id="get_all_integrations-responses">Responses</h3>
  9012. <table>
  9013. <thead>
  9014. <tr>
  9015. <th>Status</th>
  9016. <th>Meaning</th>
  9017. <th>Description</th>
  9018. <th>Schema</th>
  9019. </tr>
  9020. </thead>
  9021. <tbody>
  9022. <tr>
  9023. <td>200</td>
  9024. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9025. <td>200 response</td>
  9026. <td>Inline</td>
  9027. </tr>
  9028. </tbody>
  9029. </table>
  9030. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  9031. <p>Status Code <strong>200</strong></p>
  9032. <table>
  9033. <thead>
  9034. <tr>
  9035. <th>Name</th>
  9036. <th>Type</th>
  9037. <th>Required</th>
  9038. <th>Restrictions</th>
  9039. <th>Description</th>
  9040. </tr>
  9041. </thead>
  9042. <tbody>
  9043. <tr>
  9044. <td><em>anonymous</em></td>
  9045. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  9046. <td>false</td>
  9047. <td>none</td>
  9048. <td>[Integration with third-party applications]</td>
  9049. </tr>
  9050. <tr>
  9051. <td>» enabled</td>
  9052. <td>boolean</td>
  9053. <td>true</td>
  9054. <td>none</td>
  9055. <td>is the integration enabled?</td>
  9056. </tr>
  9057. <tr>
  9058. <td>» title</td>
  9059. <td>string|null</td>
  9060. <td>false</td>
  9061. <td>none</td>
  9062. <td>name of the integration</td>
  9063. </tr>
  9064. <tr>
  9065. <td>» type</td>
  9066. <td>string</td>
  9067. <td>true</td>
  9068. <td>none</td>
  9069. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  9070. </tr>
  9071. <tr>
  9072. <td>» activities</td>
  9073. <td>[string]</td>
  9074. <td>true</td>
  9075. <td>none</td>
  9076. <td>activities the integration gets triggered (list)</td>
  9077. </tr>
  9078. <tr>
  9079. <td>» url</td>
  9080. <td>string</td>
  9081. <td>true</td>
  9082. <td>none</td>
  9083. <td>none</td>
  9084. </tr>
  9085. <tr>
  9086. <td>» token</td>
  9087. <td>string|null</td>
  9088. <td>false</td>
  9089. <td>none</td>
  9090. <td>token of the integration</td>
  9091. </tr>
  9092. <tr>
  9093. <td>» boardId</td>
  9094. <td>string</td>
  9095. <td>true</td>
  9096. <td>none</td>
  9097. <td>Board ID of the integration</td>
  9098. </tr>
  9099. <tr>
  9100. <td>» createdAt</td>
  9101. <td>string</td>
  9102. <td>true</td>
  9103. <td>none</td>
  9104. <td>Creation date of the integration</td>
  9105. </tr>
  9106. <tr>
  9107. <td>» modifiedAt</td>
  9108. <td>string</td>
  9109. <td>true</td>
  9110. <td>none</td>
  9111. <td>none</td>
  9112. </tr>
  9113. <tr>
  9114. <td>» userId</td>
  9115. <td>string</td>
  9116. <td>true</td>
  9117. <td>none</td>
  9118. <td>user ID who created the interation</td>
  9119. </tr>
  9120. </tbody>
  9121. </table>
  9122. <aside class="warning">
  9123. To perform this operation, you must be authenticated by means of one of the following methods:
  9124. UserSecurity
  9125. </aside>
  9126. <h2 id="new_integration">new_integration</h2>
  9127. <p><a id="opIdnew_integration"></a></p>
  9128. <blockquote>
  9129. <p>Code samples</p>
  9130. </blockquote>
  9131. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9132. curl -X POST /api/boards/{board}/integrations \
  9133. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9134. -H <span class="hljs-string">'Accept: application/json'</span> \
  9135. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9136. </code></pre>
  9137. <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
  9138. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9139. Accept: application/json
  9140. </span></code></pre>
  9141. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9142. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9143. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9144. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9145. };
  9146. $.ajax({
  9147. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  9148. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  9149. <span class="hljs-attr">headers</span>: headers,
  9150. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9151. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9152. }
  9153. })
  9154. </code></pre>
  9155. <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>);
  9156. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9157. "url": "string"
  9158. }'</span>;
  9159. <span class="hljs-keyword">const</span> headers = {
  9160. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9161. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9162. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9163. };
  9164. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  9165. {
  9166. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  9167. <span class="hljs-attr">body</span>: inputBody,
  9168. <span class="hljs-attr">headers</span>: headers
  9169. })
  9170. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9171. <span class="hljs-keyword">return</span> res.json();
  9172. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9173. <span class="hljs-built_in">console</span>.log(body);
  9174. });
  9175. </code></pre>
  9176. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9177. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9178. headers = {
  9179. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9180. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9181. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9182. }
  9183. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  9184. <span class="hljs-symbol">params:</span> {
  9185. }, <span class="hljs-symbol">headers:</span> headers
  9186. p JSON.parse(result)
  9187. </code></pre>
  9188. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9189. headers = {
  9190. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9191. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9192. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9193. }
  9194. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  9195. }, headers = headers)
  9196. <span class="hljs-keyword">print</span> r.json()
  9197. </code></pre>
  9198. <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>);
  9199. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9200. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  9201. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9202. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9203. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9204. String inputLine;
  9205. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9206. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9207. response.append(inputLine);
  9208. }
  9209. in.close();
  9210. System.out.println(response.toString());
  9211. </code></pre>
  9212. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9213. <span class="hljs-keyword">import</span> (
  9214. <span class="hljs-string">"bytes"</span>
  9215. <span class="hljs-string">"net/http"</span>
  9216. )
  9217. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9218. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9219. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9220. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9221. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9222. }
  9223. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9224. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  9225. req.Header = headers
  9226. client := &amp;http.Client{}
  9227. resp, err := client.Do(req)
  9228. <span class="hljs-comment">// ...</span>
  9229. }
  9230. </code></pre>
  9231. <p><code>POST /api/boards/{board}/integrations</code></p>
  9232. <p><em>Create a new integration</em></p>
  9233. <blockquote>
  9234. <p>Body parameter</p>
  9235. </blockquote>
  9236. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  9237. </code></pre>
  9238. <h3 id="new_integration-parameters">Parameters</h3>
  9239. <table>
  9240. <thead>
  9241. <tr>
  9242. <th>Name</th>
  9243. <th>In</th>
  9244. <th>Type</th>
  9245. <th>Required</th>
  9246. <th>Description</th>
  9247. </tr>
  9248. </thead>
  9249. <tbody>
  9250. <tr>
  9251. <td>board</td>
  9252. <td>path</td>
  9253. <td>string</td>
  9254. <td>true</td>
  9255. <td>the board ID</td>
  9256. </tr>
  9257. <tr>
  9258. <td>body</td>
  9259. <td>body</td>
  9260. <td>object</td>
  9261. <td>false</td>
  9262. <td>none</td>
  9263. </tr>
  9264. <tr>
  9265. <td>» url</td>
  9266. <td>body</td>
  9267. <td>string</td>
  9268. <td>true</td>
  9269. <td>the URL of the integration</td>
  9270. </tr>
  9271. </tbody>
  9272. </table>
  9273. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9274. <p><strong>board</strong>: the board ID</p>
  9275. <blockquote>
  9276. <p>Example responses</p>
  9277. </blockquote>
  9278. <blockquote>
  9279. <p>200 Response</p>
  9280. </blockquote>
  9281. <pre class="highlight tab tab-json"><code>{
  9282. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9283. }
  9284. </code></pre>
  9285. <h3 id="new_integration-responses">Responses</h3>
  9286. <table>
  9287. <thead>
  9288. <tr>
  9289. <th>Status</th>
  9290. <th>Meaning</th>
  9291. <th>Description</th>
  9292. <th>Schema</th>
  9293. </tr>
  9294. </thead>
  9295. <tbody>
  9296. <tr>
  9297. <td>200</td>
  9298. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9299. <td>200 response</td>
  9300. <td>Inline</td>
  9301. </tr>
  9302. </tbody>
  9303. </table>
  9304. <h3 id="new_integration-responseschema">Response Schema</h3>
  9305. <p>Status Code <strong>200</strong></p>
  9306. <table>
  9307. <thead>
  9308. <tr>
  9309. <th>Name</th>
  9310. <th>Type</th>
  9311. <th>Required</th>
  9312. <th>Restrictions</th>
  9313. <th>Description</th>
  9314. </tr>
  9315. </thead>
  9316. <tbody>
  9317. <tr>
  9318. <td>» _id</td>
  9319. <td>string</td>
  9320. <td>false</td>
  9321. <td>none</td>
  9322. <td>none</td>
  9323. </tr>
  9324. </tbody>
  9325. </table>
  9326. <aside class="warning">
  9327. To perform this operation, you must be authenticated by means of one of the following methods:
  9328. UserSecurity
  9329. </aside>
  9330. <h2 id="get_integration">get_integration</h2>
  9331. <p><a id="opIdget_integration"></a></p>
  9332. <blockquote>
  9333. <p>Code samples</p>
  9334. </blockquote>
  9335. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9336. curl -X GET /api/boards/{board}/integrations/{int} \
  9337. -H <span class="hljs-string">'Accept: application/json'</span> \
  9338. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9339. </code></pre>
  9340. <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
  9341. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9342. <span class="undefined"></span></span></code></pre>
  9343. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9344. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9345. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9346. };
  9347. $.ajax({
  9348. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9349. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9350. <span class="hljs-attr">headers</span>: headers,
  9351. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9352. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9353. }
  9354. })
  9355. </code></pre>
  9356. <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>);
  9357. <span class="hljs-keyword">const</span> headers = {
  9358. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9359. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9360. };
  9361. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9362. {
  9363. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9364. <span class="hljs-attr">headers</span>: headers
  9365. })
  9366. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9367. <span class="hljs-keyword">return</span> res.json();
  9368. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9369. <span class="hljs-built_in">console</span>.log(body);
  9370. });
  9371. </code></pre>
  9372. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9373. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9374. headers = {
  9375. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9376. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9377. }
  9378. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9379. <span class="hljs-symbol">params:</span> {
  9380. }, <span class="hljs-symbol">headers:</span> headers
  9381. p JSON.parse(result)
  9382. </code></pre>
  9383. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9384. headers = {
  9385. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9386. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9387. }
  9388. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9389. }, headers = headers)
  9390. <span class="hljs-keyword">print</span> r.json()
  9391. </code></pre>
  9392. <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>);
  9393. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9394. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9395. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9396. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9397. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9398. String inputLine;
  9399. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9400. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9401. response.append(inputLine);
  9402. }
  9403. in.close();
  9404. System.out.println(response.toString());
  9405. </code></pre>
  9406. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9407. <span class="hljs-keyword">import</span> (
  9408. <span class="hljs-string">"bytes"</span>
  9409. <span class="hljs-string">"net/http"</span>
  9410. )
  9411. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9412. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9413. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9414. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9415. }
  9416. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9417. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9418. req.Header = headers
  9419. client := &amp;http.Client{}
  9420. resp, err := client.Do(req)
  9421. <span class="hljs-comment">// ...</span>
  9422. }
  9423. </code></pre>
  9424. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  9425. <p><em>Get a single integration in board</em></p>
  9426. <h3 id="get_integration-parameters">Parameters</h3>
  9427. <table>
  9428. <thead>
  9429. <tr>
  9430. <th>Name</th>
  9431. <th>In</th>
  9432. <th>Type</th>
  9433. <th>Required</th>
  9434. <th>Description</th>
  9435. </tr>
  9436. </thead>
  9437. <tbody>
  9438. <tr>
  9439. <td>board</td>
  9440. <td>path</td>
  9441. <td>string</td>
  9442. <td>true</td>
  9443. <td>the board ID</td>
  9444. </tr>
  9445. <tr>
  9446. <td>int</td>
  9447. <td>path</td>
  9448. <td>string</td>
  9449. <td>true</td>
  9450. <td>the integration ID</td>
  9451. </tr>
  9452. </tbody>
  9453. </table>
  9454. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9455. <p><strong>board</strong>: the board ID</p>
  9456. <p><strong>int</strong>: the integration ID</p>
  9457. <blockquote>
  9458. <p>Example responses</p>
  9459. </blockquote>
  9460. <blockquote>
  9461. <p>200 Response</p>
  9462. </blockquote>
  9463. <pre class="highlight tab tab-json"><code>{
  9464. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  9465. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9466. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  9467. <span class="hljs-attr">"activities"</span>: [
  9468. <span class="hljs-string">"string"</span>
  9469. ],
  9470. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  9471. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  9472. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  9473. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9474. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9475. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  9476. }
  9477. </code></pre>
  9478. <h3 id="get_integration-responses">Responses</h3>
  9479. <table>
  9480. <thead>
  9481. <tr>
  9482. <th>Status</th>
  9483. <th>Meaning</th>
  9484. <th>Description</th>
  9485. <th>Schema</th>
  9486. </tr>
  9487. </thead>
  9488. <tbody>
  9489. <tr>
  9490. <td>200</td>
  9491. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9492. <td>200 response</td>
  9493. <td><a href="#schemaintegrations">Integrations</a></td>
  9494. </tr>
  9495. </tbody>
  9496. </table>
  9497. <aside class="warning">
  9498. To perform this operation, you must be authenticated by means of one of the following methods:
  9499. UserSecurity
  9500. </aside>
  9501. <h2 id="edit_integration">edit_integration</h2>
  9502. <p><a id="opIdedit_integration"></a></p>
  9503. <blockquote>
  9504. <p>Code samples</p>
  9505. </blockquote>
  9506. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9507. curl -X PUT /api/boards/{board}/integrations/{int} \
  9508. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9509. -H <span class="hljs-string">'Accept: application/json'</span> \
  9510. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9511. </code></pre>
  9512. <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
  9513. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9514. Accept: application/json
  9515. </span></code></pre>
  9516. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9517. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9518. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9519. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9520. };
  9521. $.ajax({
  9522. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9523. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  9524. <span class="hljs-attr">headers</span>: headers,
  9525. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9526. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9527. }
  9528. })
  9529. </code></pre>
  9530. <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>);
  9531. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9532. "enabled": "string",
  9533. "title": "string",
  9534. "url": "string",
  9535. "token": "string",
  9536. "activities": "string"
  9537. }'</span>;
  9538. <span class="hljs-keyword">const</span> headers = {
  9539. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9540. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9541. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9542. };
  9543. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9544. {
  9545. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  9546. <span class="hljs-attr">body</span>: inputBody,
  9547. <span class="hljs-attr">headers</span>: headers
  9548. })
  9549. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9550. <span class="hljs-keyword">return</span> res.json();
  9551. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9552. <span class="hljs-built_in">console</span>.log(body);
  9553. });
  9554. </code></pre>
  9555. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9556. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9557. headers = {
  9558. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9559. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9560. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9561. }
  9562. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9563. <span class="hljs-symbol">params:</span> {
  9564. }, <span class="hljs-symbol">headers:</span> headers
  9565. p JSON.parse(result)
  9566. </code></pre>
  9567. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9568. headers = {
  9569. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9570. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9571. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9572. }
  9573. r = requests.put(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9574. }, headers = headers)
  9575. <span class="hljs-keyword">print</span> r.json()
  9576. </code></pre>
  9577. <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>);
  9578. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9579. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  9580. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9581. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9582. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9583. String inputLine;
  9584. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9585. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9586. response.append(inputLine);
  9587. }
  9588. in.close();
  9589. System.out.println(response.toString());
  9590. </code></pre>
  9591. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9592. <span class="hljs-keyword">import</span> (
  9593. <span class="hljs-string">"bytes"</span>
  9594. <span class="hljs-string">"net/http"</span>
  9595. )
  9596. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9597. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9598. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9599. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9600. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9601. }
  9602. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9603. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9604. req.Header = headers
  9605. client := &amp;http.Client{}
  9606. resp, err := client.Do(req)
  9607. <span class="hljs-comment">// ...</span>
  9608. }
  9609. </code></pre>
  9610. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  9611. <p><em>Edit integration data</em></p>
  9612. <blockquote>
  9613. <p>Body parameter</p>
  9614. </blockquote>
  9615. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  9616. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  9617. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  9618. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  9619. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  9620. </code></pre>
  9621. <h3 id="edit_integration-parameters">Parameters</h3>
  9622. <table>
  9623. <thead>
  9624. <tr>
  9625. <th>Name</th>
  9626. <th>In</th>
  9627. <th>Type</th>
  9628. <th>Required</th>
  9629. <th>Description</th>
  9630. </tr>
  9631. </thead>
  9632. <tbody>
  9633. <tr>
  9634. <td>board</td>
  9635. <td>path</td>
  9636. <td>string</td>
  9637. <td>true</td>
  9638. <td>the board ID</td>
  9639. </tr>
  9640. <tr>
  9641. <td>int</td>
  9642. <td>path</td>
  9643. <td>string</td>
  9644. <td>true</td>
  9645. <td>the integration ID</td>
  9646. </tr>
  9647. <tr>
  9648. <td>body</td>
  9649. <td>body</td>
  9650. <td>object</td>
  9651. <td>false</td>
  9652. <td>none</td>
  9653. </tr>
  9654. <tr>
  9655. <td>» enabled</td>
  9656. <td>body</td>
  9657. <td>string</td>
  9658. <td>false</td>
  9659. <td>is the integration enabled?</td>
  9660. </tr>
  9661. <tr>
  9662. <td>» title</td>
  9663. <td>body</td>
  9664. <td>string</td>
  9665. <td>false</td>
  9666. <td>new name of the integration</td>
  9667. </tr>
  9668. <tr>
  9669. <td>» url</td>
  9670. <td>body</td>
  9671. <td>string</td>
  9672. <td>false</td>
  9673. <td>new URL of the integration</td>
  9674. </tr>
  9675. <tr>
  9676. <td>» token</td>
  9677. <td>body</td>
  9678. <td>string</td>
  9679. <td>false</td>
  9680. <td>new token of the integration</td>
  9681. </tr>
  9682. <tr>
  9683. <td>» activities</td>
  9684. <td>body</td>
  9685. <td>string</td>
  9686. <td>false</td>
  9687. <td>new list of activities of the integration</td>
  9688. </tr>
  9689. </tbody>
  9690. </table>
  9691. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9692. <p><strong>board</strong>: the board ID</p>
  9693. <p><strong>int</strong>: the integration ID</p>
  9694. <blockquote>
  9695. <p>Example responses</p>
  9696. </blockquote>
  9697. <blockquote>
  9698. <p>200 Response</p>
  9699. </blockquote>
  9700. <pre class="highlight tab tab-json"><code>{
  9701. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9702. }
  9703. </code></pre>
  9704. <h3 id="edit_integration-responses">Responses</h3>
  9705. <table>
  9706. <thead>
  9707. <tr>
  9708. <th>Status</th>
  9709. <th>Meaning</th>
  9710. <th>Description</th>
  9711. <th>Schema</th>
  9712. </tr>
  9713. </thead>
  9714. <tbody>
  9715. <tr>
  9716. <td>200</td>
  9717. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9718. <td>200 response</td>
  9719. <td>Inline</td>
  9720. </tr>
  9721. </tbody>
  9722. </table>
  9723. <h3 id="edit_integration-responseschema">Response Schema</h3>
  9724. <p>Status Code <strong>200</strong></p>
  9725. <table>
  9726. <thead>
  9727. <tr>
  9728. <th>Name</th>
  9729. <th>Type</th>
  9730. <th>Required</th>
  9731. <th>Restrictions</th>
  9732. <th>Description</th>
  9733. </tr>
  9734. </thead>
  9735. <tbody>
  9736. <tr>
  9737. <td>» _id</td>
  9738. <td>string</td>
  9739. <td>false</td>
  9740. <td>none</td>
  9741. <td>none</td>
  9742. </tr>
  9743. </tbody>
  9744. </table>
  9745. <aside class="warning">
  9746. To perform this operation, you must be authenticated by means of one of the following methods:
  9747. UserSecurity
  9748. </aside>
  9749. <h2 id="delete_integration">delete_integration</h2>
  9750. <p><a id="opIddelete_integration"></a></p>
  9751. <blockquote>
  9752. <p>Code samples</p>
  9753. </blockquote>
  9754. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9755. curl -X DELETE /api/boards/{board}/integrations/{int} \
  9756. -H <span class="hljs-string">'Accept: application/json'</span> \
  9757. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9758. </code></pre>
  9759. <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
  9760. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9761. <span class="undefined"></span></span></code></pre>
  9762. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9763. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9764. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9765. };
  9766. $.ajax({
  9767. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9768. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  9769. <span class="hljs-attr">headers</span>: headers,
  9770. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9771. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9772. }
  9773. })
  9774. </code></pre>
  9775. <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>);
  9776. <span class="hljs-keyword">const</span> headers = {
  9777. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9778. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9779. };
  9780. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9781. {
  9782. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  9783. <span class="hljs-attr">headers</span>: headers
  9784. })
  9785. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9786. <span class="hljs-keyword">return</span> res.json();
  9787. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9788. <span class="hljs-built_in">console</span>.log(body);
  9789. });
  9790. </code></pre>
  9791. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9792. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9793. headers = {
  9794. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9795. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9796. }
  9797. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9798. <span class="hljs-symbol">params:</span> {
  9799. }, <span class="hljs-symbol">headers:</span> headers
  9800. p JSON.parse(result)
  9801. </code></pre>
  9802. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9803. headers = {
  9804. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9805. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9806. }
  9807. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9808. }, headers = headers)
  9809. <span class="hljs-keyword">print</span> r.json()
  9810. </code></pre>
  9811. <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>);
  9812. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9813. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  9814. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9815. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9816. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9817. String inputLine;
  9818. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9819. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9820. response.append(inputLine);
  9821. }
  9822. in.close();
  9823. System.out.println(response.toString());
  9824. </code></pre>
  9825. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9826. <span class="hljs-keyword">import</span> (
  9827. <span class="hljs-string">"bytes"</span>
  9828. <span class="hljs-string">"net/http"</span>
  9829. )
  9830. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9831. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9832. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9833. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9834. }
  9835. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9836. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9837. req.Header = headers
  9838. client := &amp;http.Client{}
  9839. resp, err := client.Do(req)
  9840. <span class="hljs-comment">// ...</span>
  9841. }
  9842. </code></pre>
  9843. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  9844. <p><em>Delete integration</em></p>
  9845. <h3 id="delete_integration-parameters">Parameters</h3>
  9846. <table>
  9847. <thead>
  9848. <tr>
  9849. <th>Name</th>
  9850. <th>In</th>
  9851. <th>Type</th>
  9852. <th>Required</th>
  9853. <th>Description</th>
  9854. </tr>
  9855. </thead>
  9856. <tbody>
  9857. <tr>
  9858. <td>board</td>
  9859. <td>path</td>
  9860. <td>string</td>
  9861. <td>true</td>
  9862. <td>the board ID</td>
  9863. </tr>
  9864. <tr>
  9865. <td>int</td>
  9866. <td>path</td>
  9867. <td>string</td>
  9868. <td>true</td>
  9869. <td>the integration ID</td>
  9870. </tr>
  9871. </tbody>
  9872. </table>
  9873. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9874. <p><strong>board</strong>: the board ID</p>
  9875. <p><strong>int</strong>: the integration ID</p>
  9876. <blockquote>
  9877. <p>Example responses</p>
  9878. </blockquote>
  9879. <blockquote>
  9880. <p>200 Response</p>
  9881. </blockquote>
  9882. <pre class="highlight tab tab-json"><code>{
  9883. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9884. }
  9885. </code></pre>
  9886. <h3 id="delete_integration-responses">Responses</h3>
  9887. <table>
  9888. <thead>
  9889. <tr>
  9890. <th>Status</th>
  9891. <th>Meaning</th>
  9892. <th>Description</th>
  9893. <th>Schema</th>
  9894. </tr>
  9895. </thead>
  9896. <tbody>
  9897. <tr>
  9898. <td>200</td>
  9899. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9900. <td>200 response</td>
  9901. <td>Inline</td>
  9902. </tr>
  9903. </tbody>
  9904. </table>
  9905. <h3 id="delete_integration-responseschema">Response Schema</h3>
  9906. <p>Status Code <strong>200</strong></p>
  9907. <table>
  9908. <thead>
  9909. <tr>
  9910. <th>Name</th>
  9911. <th>Type</th>
  9912. <th>Required</th>
  9913. <th>Restrictions</th>
  9914. <th>Description</th>
  9915. </tr>
  9916. </thead>
  9917. <tbody>
  9918. <tr>
  9919. <td>» _id</td>
  9920. <td>string</td>
  9921. <td>false</td>
  9922. <td>none</td>
  9923. <td>none</td>
  9924. </tr>
  9925. </tbody>
  9926. </table>
  9927. <aside class="warning">
  9928. To perform this operation, you must be authenticated by means of one of the following methods:
  9929. UserSecurity
  9930. </aside>
  9931. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  9932. <p><a id="opIddelete_integration_activities"></a></p>
  9933. <blockquote>
  9934. <p>Code samples</p>
  9935. </blockquote>
  9936. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9937. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  9938. -H <span class="hljs-string">'Accept: application/json'</span> \
  9939. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9940. </code></pre>
  9941. <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
  9942. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9943. <span class="undefined"></span></span></code></pre>
  9944. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9945. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9946. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9947. };
  9948. $.ajax({
  9949. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9950. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  9951. <span class="hljs-attr">headers</span>: headers,
  9952. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9953. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9954. }
  9955. })
  9956. </code></pre>
  9957. <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>);
  9958. <span class="hljs-keyword">const</span> headers = {
  9959. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9960. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9961. };
  9962. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9963. {
  9964. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  9965. <span class="hljs-attr">headers</span>: headers
  9966. })
  9967. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9968. <span class="hljs-keyword">return</span> res.json();
  9969. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9970. <span class="hljs-built_in">console</span>.log(body);
  9971. });
  9972. </code></pre>
  9973. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9974. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9975. headers = {
  9976. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9977. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9978. }
  9979. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9980. <span class="hljs-symbol">params:</span> {
  9981. }, <span class="hljs-symbol">headers:</span> headers
  9982. p JSON.parse(result)
  9983. </code></pre>
  9984. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9985. headers = {
  9986. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9987. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9988. }
  9989. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  9990. }, headers = headers)
  9991. <span class="hljs-keyword">print</span> r.json()
  9992. </code></pre>
  9993. <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>);
  9994. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9995. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  9996. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9997. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9998. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9999. String inputLine;
  10000. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10001. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10002. response.append(inputLine);
  10003. }
  10004. in.close();
  10005. System.out.println(response.toString());
  10006. </code></pre>
  10007. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10008. <span class="hljs-keyword">import</span> (
  10009. <span class="hljs-string">"bytes"</span>
  10010. <span class="hljs-string">"net/http"</span>
  10011. )
  10012. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10013. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10014. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10015. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10016. }
  10017. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10018. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  10019. req.Header = headers
  10020. client := &amp;http.Client{}
  10021. resp, err := client.Do(req)
  10022. <span class="hljs-comment">// ...</span>
  10023. }
  10024. </code></pre>
  10025. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  10026. <p><em>Delete subscribed activities</em></p>
  10027. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  10028. <table>
  10029. <thead>
  10030. <tr>
  10031. <th>Name</th>
  10032. <th>In</th>
  10033. <th>Type</th>
  10034. <th>Required</th>
  10035. <th>Description</th>
  10036. </tr>
  10037. </thead>
  10038. <tbody>
  10039. <tr>
  10040. <td>board</td>
  10041. <td>path</td>
  10042. <td>string</td>
  10043. <td>true</td>
  10044. <td>the board ID</td>
  10045. </tr>
  10046. <tr>
  10047. <td>int</td>
  10048. <td>path</td>
  10049. <td>string</td>
  10050. <td>true</td>
  10051. <td>the integration ID</td>
  10052. </tr>
  10053. </tbody>
  10054. </table>
  10055. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10056. <p><strong>board</strong>: the board ID</p>
  10057. <p><strong>int</strong>: the integration ID</p>
  10058. <blockquote>
  10059. <p>Example responses</p>
  10060. </blockquote>
  10061. <blockquote>
  10062. <p>200 Response</p>
  10063. </blockquote>
  10064. <pre class="highlight tab tab-json"><code>{
  10065. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  10066. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10067. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  10068. <span class="hljs-attr">"activities"</span>: [
  10069. <span class="hljs-string">"string"</span>
  10070. ],
  10071. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  10072. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  10073. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10074. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10075. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10076. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  10077. }
  10078. </code></pre>
  10079. <h3 id="delete_integration_activities-responses">Responses</h3>
  10080. <table>
  10081. <thead>
  10082. <tr>
  10083. <th>Status</th>
  10084. <th>Meaning</th>
  10085. <th>Description</th>
  10086. <th>Schema</th>
  10087. </tr>
  10088. </thead>
  10089. <tbody>
  10090. <tr>
  10091. <td>200</td>
  10092. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10093. <td>200 response</td>
  10094. <td><a href="#schemaintegrations">Integrations</a></td>
  10095. </tr>
  10096. </tbody>
  10097. </table>
  10098. <aside class="warning">
  10099. To perform this operation, you must be authenticated by means of one of the following methods:
  10100. UserSecurity
  10101. </aside>
  10102. <h2 id="new_integration_activities">new_integration_activities</h2>
  10103. <p><a id="opIdnew_integration_activities"></a></p>
  10104. <blockquote>
  10105. <p>Code samples</p>
  10106. </blockquote>
  10107. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10108. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  10109. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10110. -H <span class="hljs-string">'Accept: application/json'</span> \
  10111. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10112. </code></pre>
  10113. <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
  10114. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10115. Accept: application/json
  10116. </span></code></pre>
  10117. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10118. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10119. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10120. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10121. };
  10122. $.ajax({
  10123. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  10124. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10125. <span class="hljs-attr">headers</span>: headers,
  10126. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10127. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10128. }
  10129. })
  10130. </code></pre>
  10131. <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>);
  10132. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10133. "activities": "string"
  10134. }'</span>;
  10135. <span class="hljs-keyword">const</span> headers = {
  10136. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10137. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10138. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10139. };
  10140. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  10141. {
  10142. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10143. <span class="hljs-attr">body</span>: inputBody,
  10144. <span class="hljs-attr">headers</span>: headers
  10145. })
  10146. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10147. <span class="hljs-keyword">return</span> res.json();
  10148. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10149. <span class="hljs-built_in">console</span>.log(body);
  10150. });
  10151. </code></pre>
  10152. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10153. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10154. headers = {
  10155. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10156. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10157. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10158. }
  10159. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  10160. <span class="hljs-symbol">params:</span> {
  10161. }, <span class="hljs-symbol">headers:</span> headers
  10162. p JSON.parse(result)
  10163. </code></pre>
  10164. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10165. headers = {
  10166. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10167. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10168. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10169. }
  10170. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  10171. }, headers = headers)
  10172. <span class="hljs-keyword">print</span> r.json()
  10173. </code></pre>
  10174. <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>);
  10175. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10176. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10177. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10178. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10179. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10180. String inputLine;
  10181. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10182. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10183. response.append(inputLine);
  10184. }
  10185. in.close();
  10186. System.out.println(response.toString());
  10187. </code></pre>
  10188. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10189. <span class="hljs-keyword">import</span> (
  10190. <span class="hljs-string">"bytes"</span>
  10191. <span class="hljs-string">"net/http"</span>
  10192. )
  10193. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10194. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10195. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10196. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10197. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10198. }
  10199. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10200. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  10201. req.Header = headers
  10202. client := &amp;http.Client{}
  10203. resp, err := client.Do(req)
  10204. <span class="hljs-comment">// ...</span>
  10205. }
  10206. </code></pre>
  10207. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  10208. <p><em>Add subscribed activities</em></p>
  10209. <blockquote>
  10210. <p>Body parameter</p>
  10211. </blockquote>
  10212. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  10213. </code></pre>
  10214. <h3 id="new_integration_activities-parameters">Parameters</h3>
  10215. <table>
  10216. <thead>
  10217. <tr>
  10218. <th>Name</th>
  10219. <th>In</th>
  10220. <th>Type</th>
  10221. <th>Required</th>
  10222. <th>Description</th>
  10223. </tr>
  10224. </thead>
  10225. <tbody>
  10226. <tr>
  10227. <td>board</td>
  10228. <td>path</td>
  10229. <td>string</td>
  10230. <td>true</td>
  10231. <td>the board ID</td>
  10232. </tr>
  10233. <tr>
  10234. <td>int</td>
  10235. <td>path</td>
  10236. <td>string</td>
  10237. <td>true</td>
  10238. <td>the integration ID</td>
  10239. </tr>
  10240. <tr>
  10241. <td>body</td>
  10242. <td>body</td>
  10243. <td>object</td>
  10244. <td>false</td>
  10245. <td>none</td>
  10246. </tr>
  10247. <tr>
  10248. <td>» activities</td>
  10249. <td>body</td>
  10250. <td>string</td>
  10251. <td>true</td>
  10252. <td>the activities value</td>
  10253. </tr>
  10254. </tbody>
  10255. </table>
  10256. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10257. <p><strong>board</strong>: the board ID</p>
  10258. <p><strong>int</strong>: the integration ID</p>
  10259. <blockquote>
  10260. <p>Example responses</p>
  10261. </blockquote>
  10262. <blockquote>
  10263. <p>200 Response</p>
  10264. </blockquote>
  10265. <pre class="highlight tab tab-json"><code>{
  10266. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  10267. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10268. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  10269. <span class="hljs-attr">"activities"</span>: [
  10270. <span class="hljs-string">"string"</span>
  10271. ],
  10272. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  10273. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  10274. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10275. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10276. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10277. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  10278. }
  10279. </code></pre>
  10280. <h3 id="new_integration_activities-responses">Responses</h3>
  10281. <table>
  10282. <thead>
  10283. <tr>
  10284. <th>Status</th>
  10285. <th>Meaning</th>
  10286. <th>Description</th>
  10287. <th>Schema</th>
  10288. </tr>
  10289. </thead>
  10290. <tbody>
  10291. <tr>
  10292. <td>200</td>
  10293. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10294. <td>200 response</td>
  10295. <td><a href="#schemaintegrations">Integrations</a></td>
  10296. </tr>
  10297. </tbody>
  10298. </table>
  10299. <aside class="warning">
  10300. To perform this operation, you must be authenticated by means of one of the following methods:
  10301. UserSecurity
  10302. </aside>
  10303. <h1 id="wekan-rest-api-lists">Lists</h1>
  10304. <h2 id="get_all_lists">get_all_lists</h2>
  10305. <p><a id="opIdget_all_lists"></a></p>
  10306. <blockquote>
  10307. <p>Code samples</p>
  10308. </blockquote>
  10309. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10310. curl -X GET /api/boards/{board}/lists \
  10311. -H <span class="hljs-string">'Accept: application/json'</span> \
  10312. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10313. </code></pre>
  10314. <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
  10315. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10316. <span class="undefined"></span></span></code></pre>
  10317. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10318. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10319. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10320. };
  10321. $.ajax({
  10322. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10323. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10324. <span class="hljs-attr">headers</span>: headers,
  10325. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10326. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10327. }
  10328. })
  10329. </code></pre>
  10330. <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>);
  10331. <span class="hljs-keyword">const</span> headers = {
  10332. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10333. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10334. };
  10335. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10336. {
  10337. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10338. <span class="hljs-attr">headers</span>: headers
  10339. })
  10340. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10341. <span class="hljs-keyword">return</span> res.json();
  10342. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10343. <span class="hljs-built_in">console</span>.log(body);
  10344. });
  10345. </code></pre>
  10346. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10347. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10348. headers = {
  10349. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10350. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10351. }
  10352. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10353. <span class="hljs-symbol">params:</span> {
  10354. }, <span class="hljs-symbol">headers:</span> headers
  10355. p JSON.parse(result)
  10356. </code></pre>
  10357. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10358. headers = {
  10359. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10360. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10361. }
  10362. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  10363. }, headers = headers)
  10364. <span class="hljs-keyword">print</span> r.json()
  10365. </code></pre>
  10366. <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>);
  10367. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10368. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10369. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10370. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10371. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10372. String inputLine;
  10373. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10374. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10375. response.append(inputLine);
  10376. }
  10377. in.close();
  10378. System.out.println(response.toString());
  10379. </code></pre>
  10380. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10381. <span class="hljs-keyword">import</span> (
  10382. <span class="hljs-string">"bytes"</span>
  10383. <span class="hljs-string">"net/http"</span>
  10384. )
  10385. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10386. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10387. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10388. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10389. }
  10390. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10391. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  10392. req.Header = headers
  10393. client := &amp;http.Client{}
  10394. resp, err := client.Do(req)
  10395. <span class="hljs-comment">// ...</span>
  10396. }
  10397. </code></pre>
  10398. <p><code>GET /api/boards/{board}/lists</code></p>
  10399. <p><em>Get the list of Lists attached to a board</em></p>
  10400. <h3 id="get_all_lists-parameters">Parameters</h3>
  10401. <table>
  10402. <thead>
  10403. <tr>
  10404. <th>Name</th>
  10405. <th>In</th>
  10406. <th>Type</th>
  10407. <th>Required</th>
  10408. <th>Description</th>
  10409. </tr>
  10410. </thead>
  10411. <tbody>
  10412. <tr>
  10413. <td>board</td>
  10414. <td>path</td>
  10415. <td>string</td>
  10416. <td>true</td>
  10417. <td>the board ID</td>
  10418. </tr>
  10419. </tbody>
  10420. </table>
  10421. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10422. <p><strong>board</strong>: the board ID</p>
  10423. <blockquote>
  10424. <p>Example responses</p>
  10425. </blockquote>
  10426. <blockquote>
  10427. <p>200 Response</p>
  10428. </blockquote>
  10429. <pre class="highlight tab tab-json"><code>[
  10430. {
  10431. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  10432. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  10433. }
  10434. ]
  10435. </code></pre>
  10436. <h3 id="get_all_lists-responses">Responses</h3>
  10437. <table>
  10438. <thead>
  10439. <tr>
  10440. <th>Status</th>
  10441. <th>Meaning</th>
  10442. <th>Description</th>
  10443. <th>Schema</th>
  10444. </tr>
  10445. </thead>
  10446. <tbody>
  10447. <tr>
  10448. <td>200</td>
  10449. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10450. <td>200 response</td>
  10451. <td>Inline</td>
  10452. </tr>
  10453. </tbody>
  10454. </table>
  10455. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  10456. <p>Status Code <strong>200</strong></p>
  10457. <table>
  10458. <thead>
  10459. <tr>
  10460. <th>Name</th>
  10461. <th>Type</th>
  10462. <th>Required</th>
  10463. <th>Restrictions</th>
  10464. <th>Description</th>
  10465. </tr>
  10466. </thead>
  10467. <tbody>
  10468. <tr>
  10469. <td>» _id</td>
  10470. <td>string</td>
  10471. <td>false</td>
  10472. <td>none</td>
  10473. <td>none</td>
  10474. </tr>
  10475. <tr>
  10476. <td>» title</td>
  10477. <td>string</td>
  10478. <td>false</td>
  10479. <td>none</td>
  10480. <td>none</td>
  10481. </tr>
  10482. </tbody>
  10483. </table>
  10484. <aside class="warning">
  10485. To perform this operation, you must be authenticated by means of one of the following methods:
  10486. UserSecurity
  10487. </aside>
  10488. <h2 id="new_list">new_list</h2>
  10489. <p><a id="opIdnew_list"></a></p>
  10490. <blockquote>
  10491. <p>Code samples</p>
  10492. </blockquote>
  10493. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10494. curl -X POST /api/boards/{board}/lists \
  10495. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10496. -H <span class="hljs-string">'Accept: application/json'</span> \
  10497. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10498. </code></pre>
  10499. <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
  10500. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10501. Accept: application/json
  10502. </span></code></pre>
  10503. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10504. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10505. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10506. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10507. };
  10508. $.ajax({
  10509. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10510. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10511. <span class="hljs-attr">headers</span>: headers,
  10512. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10513. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10514. }
  10515. })
  10516. </code></pre>
  10517. <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>);
  10518. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10519. "title": "string"
  10520. }'</span>;
  10521. <span class="hljs-keyword">const</span> headers = {
  10522. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10523. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10524. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10525. };
  10526. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10527. {
  10528. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10529. <span class="hljs-attr">body</span>: inputBody,
  10530. <span class="hljs-attr">headers</span>: headers
  10531. })
  10532. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10533. <span class="hljs-keyword">return</span> res.json();
  10534. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10535. <span class="hljs-built_in">console</span>.log(body);
  10536. });
  10537. </code></pre>
  10538. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10539. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10540. headers = {
  10541. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10542. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10543. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10544. }
  10545. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10546. <span class="hljs-symbol">params:</span> {
  10547. }, <span class="hljs-symbol">headers:</span> headers
  10548. p JSON.parse(result)
  10549. </code></pre>
  10550. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10551. headers = {
  10552. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10553. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10554. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10555. }
  10556. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  10557. }, headers = headers)
  10558. <span class="hljs-keyword">print</span> r.json()
  10559. </code></pre>
  10560. <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>);
  10561. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10562. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10563. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10564. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10565. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10566. String inputLine;
  10567. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10568. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10569. response.append(inputLine);
  10570. }
  10571. in.close();
  10572. System.out.println(response.toString());
  10573. </code></pre>
  10574. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10575. <span class="hljs-keyword">import</span> (
  10576. <span class="hljs-string">"bytes"</span>
  10577. <span class="hljs-string">"net/http"</span>
  10578. )
  10579. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10580. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10581. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10582. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10583. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10584. }
  10585. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10586. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  10587. req.Header = headers
  10588. client := &amp;http.Client{}
  10589. resp, err := client.Do(req)
  10590. <span class="hljs-comment">// ...</span>
  10591. }
  10592. </code></pre>
  10593. <p><code>POST /api/boards/{board}/lists</code></p>
  10594. <p><em>Add a List to a board</em></p>
  10595. <blockquote>
  10596. <p>Body parameter</p>
  10597. </blockquote>
  10598. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  10599. </code></pre>
  10600. <h3 id="new_list-parameters">Parameters</h3>
  10601. <table>
  10602. <thead>
  10603. <tr>
  10604. <th>Name</th>
  10605. <th>In</th>
  10606. <th>Type</th>
  10607. <th>Required</th>
  10608. <th>Description</th>
  10609. </tr>
  10610. </thead>
  10611. <tbody>
  10612. <tr>
  10613. <td>board</td>
  10614. <td>path</td>
  10615. <td>string</td>
  10616. <td>true</td>
  10617. <td>the board ID</td>
  10618. </tr>
  10619. <tr>
  10620. <td>body</td>
  10621. <td>body</td>
  10622. <td>object</td>
  10623. <td>false</td>
  10624. <td>none</td>
  10625. </tr>
  10626. <tr>
  10627. <td>» title</td>
  10628. <td>body</td>
  10629. <td>string</td>
  10630. <td>true</td>
  10631. <td>the title of the List</td>
  10632. </tr>
  10633. </tbody>
  10634. </table>
  10635. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10636. <p><strong>board</strong>: the board ID</p>
  10637. <blockquote>
  10638. <p>Example responses</p>
  10639. </blockquote>
  10640. <blockquote>
  10641. <p>200 Response</p>
  10642. </blockquote>
  10643. <pre class="highlight tab tab-json"><code>{
  10644. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10645. }
  10646. </code></pre>
  10647. <h3 id="new_list-responses">Responses</h3>
  10648. <table>
  10649. <thead>
  10650. <tr>
  10651. <th>Status</th>
  10652. <th>Meaning</th>
  10653. <th>Description</th>
  10654. <th>Schema</th>
  10655. </tr>
  10656. </thead>
  10657. <tbody>
  10658. <tr>
  10659. <td>200</td>
  10660. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10661. <td>200 response</td>
  10662. <td>Inline</td>
  10663. </tr>
  10664. </tbody>
  10665. </table>
  10666. <h3 id="new_list-responseschema">Response Schema</h3>
  10667. <p>Status Code <strong>200</strong></p>
  10668. <table>
  10669. <thead>
  10670. <tr>
  10671. <th>Name</th>
  10672. <th>Type</th>
  10673. <th>Required</th>
  10674. <th>Restrictions</th>
  10675. <th>Description</th>
  10676. </tr>
  10677. </thead>
  10678. <tbody>
  10679. <tr>
  10680. <td>» _id</td>
  10681. <td>string</td>
  10682. <td>false</td>
  10683. <td>none</td>
  10684. <td>none</td>
  10685. </tr>
  10686. </tbody>
  10687. </table>
  10688. <aside class="warning">
  10689. To perform this operation, you must be authenticated by means of one of the following methods:
  10690. UserSecurity
  10691. </aside>
  10692. <h2 id="get_list">get_list</h2>
  10693. <p><a id="opIdget_list"></a></p>
  10694. <blockquote>
  10695. <p>Code samples</p>
  10696. </blockquote>
  10697. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10698. curl -X GET /api/boards/{board}/lists/{list} \
  10699. -H <span class="hljs-string">'Accept: application/json'</span> \
  10700. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10701. </code></pre>
  10702. <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
  10703. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10704. <span class="undefined"></span></span></code></pre>
  10705. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> 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. $.ajax({
  10710. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10711. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10712. <span class="hljs-attr">headers</span>: headers,
  10713. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10714. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10715. }
  10716. })
  10717. </code></pre>
  10718. <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>);
  10719. <span class="hljs-keyword">const</span> headers = {
  10720. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10721. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10722. };
  10723. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10724. {
  10725. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10726. <span class="hljs-attr">headers</span>: headers
  10727. })
  10728. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10729. <span class="hljs-keyword">return</span> res.json();
  10730. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10731. <span class="hljs-built_in">console</span>.log(body);
  10732. });
  10733. </code></pre>
  10734. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10735. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10736. headers = {
  10737. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10738. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10739. }
  10740. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10741. <span class="hljs-symbol">params:</span> {
  10742. }, <span class="hljs-symbol">headers:</span> headers
  10743. p JSON.parse(result)
  10744. </code></pre>
  10745. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10746. headers = {
  10747. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10748. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10749. }
  10750. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  10751. }, headers = headers)
  10752. <span class="hljs-keyword">print</span> r.json()
  10753. </code></pre>
  10754. <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>);
  10755. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10756. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10757. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10758. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10759. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10760. String inputLine;
  10761. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10762. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10763. response.append(inputLine);
  10764. }
  10765. in.close();
  10766. System.out.println(response.toString());
  10767. </code></pre>
  10768. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10769. <span class="hljs-keyword">import</span> (
  10770. <span class="hljs-string">"bytes"</span>
  10771. <span class="hljs-string">"net/http"</span>
  10772. )
  10773. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10774. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10775. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10776. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10777. }
  10778. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10779. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  10780. req.Header = headers
  10781. client := &amp;http.Client{}
  10782. resp, err := client.Do(req)
  10783. <span class="hljs-comment">// ...</span>
  10784. }
  10785. </code></pre>
  10786. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  10787. <p><em>Get a List attached to a board</em></p>
  10788. <h3 id="get_list-parameters">Parameters</h3>
  10789. <table>
  10790. <thead>
  10791. <tr>
  10792. <th>Name</th>
  10793. <th>In</th>
  10794. <th>Type</th>
  10795. <th>Required</th>
  10796. <th>Description</th>
  10797. </tr>
  10798. </thead>
  10799. <tbody>
  10800. <tr>
  10801. <td>board</td>
  10802. <td>path</td>
  10803. <td>string</td>
  10804. <td>true</td>
  10805. <td>the board ID</td>
  10806. </tr>
  10807. <tr>
  10808. <td>list</td>
  10809. <td>path</td>
  10810. <td>string</td>
  10811. <td>true</td>
  10812. <td>the List ID</td>
  10813. </tr>
  10814. </tbody>
  10815. </table>
  10816. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10817. <p><strong>board</strong>: the board ID</p>
  10818. <p><strong>list</strong>: the List ID</p>
  10819. <blockquote>
  10820. <p>Example responses</p>
  10821. </blockquote>
  10822. <blockquote>
  10823. <p>200 Response</p>
  10824. </blockquote>
  10825. <pre class="highlight tab tab-json"><code>{
  10826. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10827. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  10828. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  10829. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  10830. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10831. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  10832. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10833. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  10834. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  10835. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10836. <span class="hljs-attr">"wipLimit"</span>: {
  10837. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  10838. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  10839. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  10840. },
  10841. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  10842. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  10843. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  10844. }
  10845. </code></pre>
  10846. <h3 id="get_list-responses">Responses</h3>
  10847. <table>
  10848. <thead>
  10849. <tr>
  10850. <th>Status</th>
  10851. <th>Meaning</th>
  10852. <th>Description</th>
  10853. <th>Schema</th>
  10854. </tr>
  10855. </thead>
  10856. <tbody>
  10857. <tr>
  10858. <td>200</td>
  10859. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10860. <td>200 response</td>
  10861. <td><a href="#schemalists">Lists</a></td>
  10862. </tr>
  10863. </tbody>
  10864. </table>
  10865. <aside class="warning">
  10866. To perform this operation, you must be authenticated by means of one of the following methods:
  10867. UserSecurity
  10868. </aside>
  10869. <h2 id="delete_list">delete_list</h2>
  10870. <p><a id="opIddelete_list"></a></p>
  10871. <blockquote>
  10872. <p>Code samples</p>
  10873. </blockquote>
  10874. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10875. curl -X DELETE /api/boards/{board}/lists/{list} \
  10876. -H <span class="hljs-string">'Accept: application/json'</span> \
  10877. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10878. </code></pre>
  10879. <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
  10880. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10881. <span class="undefined"></span></span></code></pre>
  10882. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10883. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10884. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10885. };
  10886. $.ajax({
  10887. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10888. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  10889. <span class="hljs-attr">headers</span>: headers,
  10890. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10891. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10892. }
  10893. })
  10894. </code></pre>
  10895. <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>);
  10896. <span class="hljs-keyword">const</span> headers = {
  10897. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10898. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10899. };
  10900. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10901. {
  10902. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  10903. <span class="hljs-attr">headers</span>: headers
  10904. })
  10905. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10906. <span class="hljs-keyword">return</span> res.json();
  10907. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10908. <span class="hljs-built_in">console</span>.log(body);
  10909. });
  10910. </code></pre>
  10911. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10912. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10913. headers = {
  10914. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10915. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10916. }
  10917. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10918. <span class="hljs-symbol">params:</span> {
  10919. }, <span class="hljs-symbol">headers:</span> headers
  10920. p JSON.parse(result)
  10921. </code></pre>
  10922. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10923. headers = {
  10924. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10925. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10926. }
  10927. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  10928. }, headers = headers)
  10929. <span class="hljs-keyword">print</span> r.json()
  10930. </code></pre>
  10931. <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>);
  10932. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10933. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  10934. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10935. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10936. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10937. String inputLine;
  10938. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10939. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10940. response.append(inputLine);
  10941. }
  10942. in.close();
  10943. System.out.println(response.toString());
  10944. </code></pre>
  10945. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10946. <span class="hljs-keyword">import</span> (
  10947. <span class="hljs-string">"bytes"</span>
  10948. <span class="hljs-string">"net/http"</span>
  10949. )
  10950. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10951. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10952. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10953. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10954. }
  10955. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10956. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  10957. req.Header = headers
  10958. client := &amp;http.Client{}
  10959. resp, err := client.Do(req)
  10960. <span class="hljs-comment">// ...</span>
  10961. }
  10962. </code></pre>
  10963. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  10964. <p><em>Delete a List</em></p>
  10965. <p>This <strong>deletes</strong> a list from a board.
  10966. The list is not put in the recycle bin.</p>
  10967. <h3 id="delete_list-parameters">Parameters</h3>
  10968. <table>
  10969. <thead>
  10970. <tr>
  10971. <th>Name</th>
  10972. <th>In</th>
  10973. <th>Type</th>
  10974. <th>Required</th>
  10975. <th>Description</th>
  10976. </tr>
  10977. </thead>
  10978. <tbody>
  10979. <tr>
  10980. <td>board</td>
  10981. <td>path</td>
  10982. <td>string</td>
  10983. <td>true</td>
  10984. <td>the board ID</td>
  10985. </tr>
  10986. <tr>
  10987. <td>list</td>
  10988. <td>path</td>
  10989. <td>string</td>
  10990. <td>true</td>
  10991. <td>the ID of the list to remove</td>
  10992. </tr>
  10993. </tbody>
  10994. </table>
  10995. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10996. <p><strong>board</strong>: the board ID</p>
  10997. <p><strong>list</strong>: the ID of the list to remove</p>
  10998. <blockquote>
  10999. <p>Example responses</p>
  11000. </blockquote>
  11001. <blockquote>
  11002. <p>200 Response</p>
  11003. </blockquote>
  11004. <pre class="highlight tab tab-json"><code>{
  11005. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11006. }
  11007. </code></pre>
  11008. <h3 id="delete_list-responses">Responses</h3>
  11009. <table>
  11010. <thead>
  11011. <tr>
  11012. <th>Status</th>
  11013. <th>Meaning</th>
  11014. <th>Description</th>
  11015. <th>Schema</th>
  11016. </tr>
  11017. </thead>
  11018. <tbody>
  11019. <tr>
  11020. <td>200</td>
  11021. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11022. <td>200 response</td>
  11023. <td>Inline</td>
  11024. </tr>
  11025. </tbody>
  11026. </table>
  11027. <h3 id="delete_list-responseschema">Response Schema</h3>
  11028. <p>Status Code <strong>200</strong></p>
  11029. <table>
  11030. <thead>
  11031. <tr>
  11032. <th>Name</th>
  11033. <th>Type</th>
  11034. <th>Required</th>
  11035. <th>Restrictions</th>
  11036. <th>Description</th>
  11037. </tr>
  11038. </thead>
  11039. <tbody>
  11040. <tr>
  11041. <td>» _id</td>
  11042. <td>string</td>
  11043. <td>false</td>
  11044. <td>none</td>
  11045. <td>none</td>
  11046. </tr>
  11047. </tbody>
  11048. </table>
  11049. <aside class="warning">
  11050. To perform this operation, you must be authenticated by means of one of the following methods:
  11051. UserSecurity
  11052. </aside>
  11053. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  11054. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  11055. <p><a id="opIdget_all_swimlanes"></a></p>
  11056. <blockquote>
  11057. <p>Code samples</p>
  11058. </blockquote>
  11059. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11060. curl -X GET /api/boards/{board}/swimlanes \
  11061. -H <span class="hljs-string">'Accept: application/json'</span> \
  11062. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11063. </code></pre>
  11064. <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
  11065. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11066. <span class="undefined"></span></span></code></pre>
  11067. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11068. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11069. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11070. };
  11071. $.ajax({
  11072. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11073. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11074. <span class="hljs-attr">headers</span>: headers,
  11075. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11076. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11077. }
  11078. })
  11079. </code></pre>
  11080. <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>);
  11081. <span class="hljs-keyword">const</span> headers = {
  11082. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11083. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11084. };
  11085. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11086. {
  11087. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11088. <span class="hljs-attr">headers</span>: headers
  11089. })
  11090. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11091. <span class="hljs-keyword">return</span> res.json();
  11092. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11093. <span class="hljs-built_in">console</span>.log(body);
  11094. });
  11095. </code></pre>
  11096. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11097. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11098. headers = {
  11099. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11100. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11101. }
  11102. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11103. <span class="hljs-symbol">params:</span> {
  11104. }, <span class="hljs-symbol">headers:</span> headers
  11105. p JSON.parse(result)
  11106. </code></pre>
  11107. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11108. headers = {
  11109. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11110. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11111. }
  11112. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  11113. }, headers = headers)
  11114. <span class="hljs-keyword">print</span> r.json()
  11115. </code></pre>
  11116. <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>);
  11117. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11118. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11119. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11120. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11121. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11122. String inputLine;
  11123. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11124. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11125. response.append(inputLine);
  11126. }
  11127. in.close();
  11128. System.out.println(response.toString());
  11129. </code></pre>
  11130. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11131. <span class="hljs-keyword">import</span> (
  11132. <span class="hljs-string">"bytes"</span>
  11133. <span class="hljs-string">"net/http"</span>
  11134. )
  11135. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11136. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11137. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11138. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11139. }
  11140. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11141. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  11142. req.Header = headers
  11143. client := &amp;http.Client{}
  11144. resp, err := client.Do(req)
  11145. <span class="hljs-comment">// ...</span>
  11146. }
  11147. </code></pre>
  11148. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  11149. <p><em>Get the list of swimlanes attached to a board</em></p>
  11150. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  11151. <table>
  11152. <thead>
  11153. <tr>
  11154. <th>Name</th>
  11155. <th>In</th>
  11156. <th>Type</th>
  11157. <th>Required</th>
  11158. <th>Description</th>
  11159. </tr>
  11160. </thead>
  11161. <tbody>
  11162. <tr>
  11163. <td>board</td>
  11164. <td>path</td>
  11165. <td>string</td>
  11166. <td>true</td>
  11167. <td>the ID of the board</td>
  11168. </tr>
  11169. </tbody>
  11170. </table>
  11171. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11172. <p><strong>board</strong>: the ID of the board</p>
  11173. <blockquote>
  11174. <p>Example responses</p>
  11175. </blockquote>
  11176. <blockquote>
  11177. <p>200 Response</p>
  11178. </blockquote>
  11179. <pre class="highlight tab tab-json"><code>[
  11180. {
  11181. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  11182. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  11183. }
  11184. ]
  11185. </code></pre>
  11186. <h3 id="get_all_swimlanes-responses">Responses</h3>
  11187. <table>
  11188. <thead>
  11189. <tr>
  11190. <th>Status</th>
  11191. <th>Meaning</th>
  11192. <th>Description</th>
  11193. <th>Schema</th>
  11194. </tr>
  11195. </thead>
  11196. <tbody>
  11197. <tr>
  11198. <td>200</td>
  11199. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11200. <td>200 response</td>
  11201. <td>Inline</td>
  11202. </tr>
  11203. </tbody>
  11204. </table>
  11205. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  11206. <p>Status Code <strong>200</strong></p>
  11207. <table>
  11208. <thead>
  11209. <tr>
  11210. <th>Name</th>
  11211. <th>Type</th>
  11212. <th>Required</th>
  11213. <th>Restrictions</th>
  11214. <th>Description</th>
  11215. </tr>
  11216. </thead>
  11217. <tbody>
  11218. <tr>
  11219. <td>» _id</td>
  11220. <td>string</td>
  11221. <td>false</td>
  11222. <td>none</td>
  11223. <td>none</td>
  11224. </tr>
  11225. <tr>
  11226. <td>» title</td>
  11227. <td>string</td>
  11228. <td>false</td>
  11229. <td>none</td>
  11230. <td>none</td>
  11231. </tr>
  11232. </tbody>
  11233. </table>
  11234. <aside class="warning">
  11235. To perform this operation, you must be authenticated by means of one of the following methods:
  11236. UserSecurity
  11237. </aside>
  11238. <h2 id="new_swimlane">new_swimlane</h2>
  11239. <p><a id="opIdnew_swimlane"></a></p>
  11240. <blockquote>
  11241. <p>Code samples</p>
  11242. </blockquote>
  11243. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11244. curl -X POST /api/boards/{board}/swimlanes \
  11245. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11246. -H <span class="hljs-string">'Accept: application/json'</span> \
  11247. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11248. </code></pre>
  11249. <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
  11250. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11251. Accept: application/json
  11252. </span></code></pre>
  11253. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11254. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11255. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11256. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11257. };
  11258. $.ajax({
  11259. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11260. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  11261. <span class="hljs-attr">headers</span>: headers,
  11262. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11263. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11264. }
  11265. })
  11266. </code></pre>
  11267. <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>);
  11268. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11269. "title": "string"
  11270. }'</span>;
  11271. <span class="hljs-keyword">const</span> headers = {
  11272. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11273. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11274. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11275. };
  11276. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11277. {
  11278. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  11279. <span class="hljs-attr">body</span>: inputBody,
  11280. <span class="hljs-attr">headers</span>: headers
  11281. })
  11282. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11283. <span class="hljs-keyword">return</span> res.json();
  11284. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11285. <span class="hljs-built_in">console</span>.log(body);
  11286. });
  11287. </code></pre>
  11288. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11289. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11290. headers = {
  11291. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  11292. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11293. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11294. }
  11295. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11296. <span class="hljs-symbol">params:</span> {
  11297. }, <span class="hljs-symbol">headers:</span> headers
  11298. p JSON.parse(result)
  11299. </code></pre>
  11300. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11301. headers = {
  11302. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  11303. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11304. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11305. }
  11306. r = requests.post(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  11307. }, headers = headers)
  11308. <span class="hljs-keyword">print</span> r.json()
  11309. </code></pre>
  11310. <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>);
  11311. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11312. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  11313. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11314. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11315. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11316. String inputLine;
  11317. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11318. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11319. response.append(inputLine);
  11320. }
  11321. in.close();
  11322. System.out.println(response.toString());
  11323. </code></pre>
  11324. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11325. <span class="hljs-keyword">import</span> (
  11326. <span class="hljs-string">"bytes"</span>
  11327. <span class="hljs-string">"net/http"</span>
  11328. )
  11329. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11330. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11331. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11332. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11333. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11334. }
  11335. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11336. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  11337. req.Header = headers
  11338. client := &amp;http.Client{}
  11339. resp, err := client.Do(req)
  11340. <span class="hljs-comment">// ...</span>
  11341. }
  11342. </code></pre>
  11343. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  11344. <p><em>Add a swimlane to a board</em></p>
  11345. <blockquote>
  11346. <p>Body parameter</p>
  11347. </blockquote>
  11348. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11349. </code></pre>
  11350. <h3 id="new_swimlane-parameters">Parameters</h3>
  11351. <table>
  11352. <thead>
  11353. <tr>
  11354. <th>Name</th>
  11355. <th>In</th>
  11356. <th>Type</th>
  11357. <th>Required</th>
  11358. <th>Description</th>
  11359. </tr>
  11360. </thead>
  11361. <tbody>
  11362. <tr>
  11363. <td>board</td>
  11364. <td>path</td>
  11365. <td>string</td>
  11366. <td>true</td>
  11367. <td>the ID of the board</td>
  11368. </tr>
  11369. <tr>
  11370. <td>body</td>
  11371. <td>body</td>
  11372. <td><a href="#schemanew_swimlane">new_swimlane</a></td>
  11373. <td>false</td>
  11374. <td>none</td>
  11375. </tr>
  11376. <tr>
  11377. <td>» title</td>
  11378. <td>body</td>
  11379. <td>string</td>
  11380. <td>true</td>
  11381. <td>the new title of the swimlane</td>
  11382. </tr>
  11383. </tbody>
  11384. </table>
  11385. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11386. <p><strong>board</strong>: the ID of the board</p>
  11387. <blockquote>
  11388. <p>Example responses</p>
  11389. </blockquote>
  11390. <blockquote>
  11391. <p>200 Response</p>
  11392. </blockquote>
  11393. <pre class="highlight tab tab-json"><code>{
  11394. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11395. }
  11396. </code></pre>
  11397. <h3 id="new_swimlane-responses">Responses</h3>
  11398. <table>
  11399. <thead>
  11400. <tr>
  11401. <th>Status</th>
  11402. <th>Meaning</th>
  11403. <th>Description</th>
  11404. <th>Schema</th>
  11405. </tr>
  11406. </thead>
  11407. <tbody>
  11408. <tr>
  11409. <td>200</td>
  11410. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11411. <td>200 response</td>
  11412. <td>Inline</td>
  11413. </tr>
  11414. </tbody>
  11415. </table>
  11416. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  11417. <p>Status Code <strong>200</strong></p>
  11418. <table>
  11419. <thead>
  11420. <tr>
  11421. <th>Name</th>
  11422. <th>Type</th>
  11423. <th>Required</th>
  11424. <th>Restrictions</th>
  11425. <th>Description</th>
  11426. </tr>
  11427. </thead>
  11428. <tbody>
  11429. <tr>
  11430. <td>» _id</td>
  11431. <td>string</td>
  11432. <td>false</td>
  11433. <td>none</td>
  11434. <td>none</td>
  11435. </tr>
  11436. </tbody>
  11437. </table>
  11438. <aside class="warning">
  11439. To perform this operation, you must be authenticated by means of one of the following methods:
  11440. UserSecurity
  11441. </aside>
  11442. <h2 id="get_swimlane">get_swimlane</h2>
  11443. <p><a id="opIdget_swimlane"></a></p>
  11444. <blockquote>
  11445. <p>Code samples</p>
  11446. </blockquote>
  11447. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11448. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  11449. -H <span class="hljs-string">'Accept: application/json'</span> \
  11450. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11451. </code></pre>
  11452. <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
  11453. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11454. <span class="undefined"></span></span></code></pre>
  11455. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11456. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11457. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11458. };
  11459. $.ajax({
  11460. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11461. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11462. <span class="hljs-attr">headers</span>: headers,
  11463. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11464. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11465. }
  11466. })
  11467. </code></pre>
  11468. <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>);
  11469. <span class="hljs-keyword">const</span> headers = {
  11470. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11471. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11472. };
  11473. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11474. {
  11475. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11476. <span class="hljs-attr">headers</span>: headers
  11477. })
  11478. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11479. <span class="hljs-keyword">return</span> res.json();
  11480. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11481. <span class="hljs-built_in">console</span>.log(body);
  11482. });
  11483. </code></pre>
  11484. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11485. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11486. headers = {
  11487. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11488. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11489. }
  11490. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11491. <span class="hljs-symbol">params:</span> {
  11492. }, <span class="hljs-symbol">headers:</span> headers
  11493. p JSON.parse(result)
  11494. </code></pre>
  11495. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11496. headers = {
  11497. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11498. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11499. }
  11500. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  11501. }, headers = headers)
  11502. <span class="hljs-keyword">print</span> r.json()
  11503. </code></pre>
  11504. <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>);
  11505. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11506. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11507. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11508. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11509. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11510. String inputLine;
  11511. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11512. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11513. response.append(inputLine);
  11514. }
  11515. in.close();
  11516. System.out.println(response.toString());
  11517. </code></pre>
  11518. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11519. <span class="hljs-keyword">import</span> (
  11520. <span class="hljs-string">"bytes"</span>
  11521. <span class="hljs-string">"net/http"</span>
  11522. )
  11523. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11524. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11525. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11526. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11527. }
  11528. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11529. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  11530. req.Header = headers
  11531. client := &amp;http.Client{}
  11532. resp, err := client.Do(req)
  11533. <span class="hljs-comment">// ...</span>
  11534. }
  11535. </code></pre>
  11536. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  11537. <p><em>Get a swimlane</em></p>
  11538. <h3 id="get_swimlane-parameters">Parameters</h3>
  11539. <table>
  11540. <thead>
  11541. <tr>
  11542. <th>Name</th>
  11543. <th>In</th>
  11544. <th>Type</th>
  11545. <th>Required</th>
  11546. <th>Description</th>
  11547. </tr>
  11548. </thead>
  11549. <tbody>
  11550. <tr>
  11551. <td>board</td>
  11552. <td>path</td>
  11553. <td>string</td>
  11554. <td>true</td>
  11555. <td>the ID of the board</td>
  11556. </tr>
  11557. <tr>
  11558. <td>swimlane</td>
  11559. <td>path</td>
  11560. <td>string</td>
  11561. <td>true</td>
  11562. <td>the ID of the swimlane</td>
  11563. </tr>
  11564. </tbody>
  11565. </table>
  11566. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11567. <p><strong>board</strong>: the ID of the board</p>
  11568. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  11569. <blockquote>
  11570. <p>Example responses</p>
  11571. </blockquote>
  11572. <blockquote>
  11573. <p>200 Response</p>
  11574. </blockquote>
  11575. <pre class="highlight tab tab-json"><code>{
  11576. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11577. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  11578. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  11579. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11580. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11581. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  11582. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  11583. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  11584. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11585. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  11586. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  11587. }
  11588. </code></pre>
  11589. <h3 id="get_swimlane-responses">Responses</h3>
  11590. <table>
  11591. <thead>
  11592. <tr>
  11593. <th>Status</th>
  11594. <th>Meaning</th>
  11595. <th>Description</th>
  11596. <th>Schema</th>
  11597. </tr>
  11598. </thead>
  11599. <tbody>
  11600. <tr>
  11601. <td>200</td>
  11602. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11603. <td>200 response</td>
  11604. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  11605. </tr>
  11606. </tbody>
  11607. </table>
  11608. <aside class="warning">
  11609. To perform this operation, you must be authenticated by means of one of the following methods:
  11610. UserSecurity
  11611. </aside>
  11612. <h2 id="edit_swimlane">edit_swimlane</h2>
  11613. <p><a id="opIdedit_swimlane"></a></p>
  11614. <blockquote>
  11615. <p>Code samples</p>
  11616. </blockquote>
  11617. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11618. curl -X PUT /api/boards/{board}/swimlanes/{swimlane} \
  11619. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11620. -H <span class="hljs-string">'Accept: application/json'</span> \
  11621. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11622. </code></pre>
  11623. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> HTTP/1.1
  11624. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11625. Accept: application/json
  11626. </span></code></pre>
  11627. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11628. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11629. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11630. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11631. };
  11632. $.ajax({
  11633. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11634. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  11635. <span class="hljs-attr">headers</span>: headers,
  11636. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11637. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11638. }
  11639. })
  11640. </code></pre>
  11641. <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>);
  11642. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11643. "title": "string"
  11644. }'</span>;
  11645. <span class="hljs-keyword">const</span> headers = {
  11646. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11647. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11648. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11649. };
  11650. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11651. {
  11652. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  11653. <span class="hljs-attr">body</span>: inputBody,
  11654. <span class="hljs-attr">headers</span>: headers
  11655. })
  11656. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11657. <span class="hljs-keyword">return</span> res.json();
  11658. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11659. <span class="hljs-built_in">console</span>.log(body);
  11660. });
  11661. </code></pre>
  11662. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11663. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11664. headers = {
  11665. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  11666. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11667. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11668. }
  11669. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11670. <span class="hljs-symbol">params:</span> {
  11671. }, <span class="hljs-symbol">headers:</span> headers
  11672. p JSON.parse(result)
  11673. </code></pre>
  11674. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11675. headers = {
  11676. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  11677. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11678. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11679. }
  11680. r = requests.put(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  11681. }, headers = headers)
  11682. <span class="hljs-keyword">print</span> r.json()
  11683. </code></pre>
  11684. <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>);
  11685. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11686. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  11687. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11688. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11689. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11690. String inputLine;
  11691. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11692. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11693. response.append(inputLine);
  11694. }
  11695. in.close();
  11696. System.out.println(response.toString());
  11697. </code></pre>
  11698. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11699. <span class="hljs-keyword">import</span> (
  11700. <span class="hljs-string">"bytes"</span>
  11701. <span class="hljs-string">"net/http"</span>
  11702. )
  11703. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11704. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11705. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11706. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11707. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11708. }
  11709. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11710. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  11711. req.Header = headers
  11712. client := &amp;http.Client{}
  11713. resp, err := client.Do(req)
  11714. <span class="hljs-comment">// ...</span>
  11715. }
  11716. </code></pre>
  11717. <p><code>PUT /api/boards/{board}/swimlanes/{swimlane}</code></p>
  11718. <p><em>Edit the title of a swimlane</em></p>
  11719. <blockquote>
  11720. <p>Body parameter</p>
  11721. </blockquote>
  11722. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11723. </code></pre>
  11724. <h3 id="edit_swimlane-parameters">Parameters</h3>
  11725. <table>
  11726. <thead>
  11727. <tr>
  11728. <th>Name</th>
  11729. <th>In</th>
  11730. <th>Type</th>
  11731. <th>Required</th>
  11732. <th>Description</th>
  11733. </tr>
  11734. </thead>
  11735. <tbody>
  11736. <tr>
  11737. <td>board</td>
  11738. <td>path</td>
  11739. <td>string</td>
  11740. <td>true</td>
  11741. <td>the ID of the board</td>
  11742. </tr>
  11743. <tr>
  11744. <td>swimlane</td>
  11745. <td>path</td>
  11746. <td>string</td>
  11747. <td>true</td>
  11748. <td>the ID of the swimlane to edit</td>
  11749. </tr>
  11750. <tr>
  11751. <td>body</td>
  11752. <td>body</td>
  11753. <td><a href="#schemanew_swimlane">new_swimlane</a></td>
  11754. <td>false</td>
  11755. <td>none</td>
  11756. </tr>
  11757. <tr>
  11758. <td>» title</td>
  11759. <td>body</td>
  11760. <td>string</td>
  11761. <td>true</td>
  11762. <td>the new title of the swimlane</td>
  11763. </tr>
  11764. </tbody>
  11765. </table>
  11766. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11767. <p><strong>board</strong>: the ID of the board</p>
  11768. <p><strong>swimlane</strong>: the ID of the swimlane to edit</p>
  11769. <blockquote>
  11770. <p>Example responses</p>
  11771. </blockquote>
  11772. <blockquote>
  11773. <p>200 Response</p>
  11774. </blockquote>
  11775. <pre class="highlight tab tab-json"><code>{
  11776. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11777. }
  11778. </code></pre>
  11779. <h3 id="edit_swimlane-responses">Responses</h3>
  11780. <table>
  11781. <thead>
  11782. <tr>
  11783. <th>Status</th>
  11784. <th>Meaning</th>
  11785. <th>Description</th>
  11786. <th>Schema</th>
  11787. </tr>
  11788. </thead>
  11789. <tbody>
  11790. <tr>
  11791. <td>200</td>
  11792. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11793. <td>200 response</td>
  11794. <td>Inline</td>
  11795. </tr>
  11796. </tbody>
  11797. </table>
  11798. <h3 id="edit_swimlane-responseschema">Response Schema</h3>
  11799. <p>Status Code <strong>200</strong></p>
  11800. <table>
  11801. <thead>
  11802. <tr>
  11803. <th>Name</th>
  11804. <th>Type</th>
  11805. <th>Required</th>
  11806. <th>Restrictions</th>
  11807. <th>Description</th>
  11808. </tr>
  11809. </thead>
  11810. <tbody>
  11811. <tr>
  11812. <td>» _id</td>
  11813. <td>string</td>
  11814. <td>false</td>
  11815. <td>none</td>
  11816. <td>none</td>
  11817. </tr>
  11818. </tbody>
  11819. </table>
  11820. <aside class="warning">
  11821. To perform this operation, you must be authenticated by means of one of the following methods:
  11822. UserSecurity
  11823. </aside>
  11824. <h2 id="delete_swimlane">delete_swimlane</h2>
  11825. <p><a id="opIddelete_swimlane"></a></p>
  11826. <blockquote>
  11827. <p>Code samples</p>
  11828. </blockquote>
  11829. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11830. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  11831. -H <span class="hljs-string">'Accept: application/json'</span> \
  11832. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11833. </code></pre>
  11834. <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
  11835. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11836. <span class="undefined"></span></span></code></pre>
  11837. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11838. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11839. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11840. };
  11841. $.ajax({
  11842. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11843. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  11844. <span class="hljs-attr">headers</span>: headers,
  11845. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11846. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11847. }
  11848. })
  11849. </code></pre>
  11850. <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>);
  11851. <span class="hljs-keyword">const</span> headers = {
  11852. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11853. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11854. };
  11855. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11856. {
  11857. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  11858. <span class="hljs-attr">headers</span>: headers
  11859. })
  11860. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11861. <span class="hljs-keyword">return</span> res.json();
  11862. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11863. <span class="hljs-built_in">console</span>.log(body);
  11864. });
  11865. </code></pre>
  11866. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11867. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11868. headers = {
  11869. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11870. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11871. }
  11872. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11873. <span class="hljs-symbol">params:</span> {
  11874. }, <span class="hljs-symbol">headers:</span> headers
  11875. p JSON.parse(result)
  11876. </code></pre>
  11877. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11878. headers = {
  11879. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11880. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11881. }
  11882. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  11883. }, headers = headers)
  11884. <span class="hljs-keyword">print</span> r.json()
  11885. </code></pre>
  11886. <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>);
  11887. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11888. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  11889. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11890. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11891. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11892. String inputLine;
  11893. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11894. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11895. response.append(inputLine);
  11896. }
  11897. in.close();
  11898. System.out.println(response.toString());
  11899. </code></pre>
  11900. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11901. <span class="hljs-keyword">import</span> (
  11902. <span class="hljs-string">"bytes"</span>
  11903. <span class="hljs-string">"net/http"</span>
  11904. )
  11905. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11906. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11907. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11908. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11909. }
  11910. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11911. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  11912. req.Header = headers
  11913. client := &amp;http.Client{}
  11914. resp, err := client.Do(req)
  11915. <span class="hljs-comment">// ...</span>
  11916. }
  11917. </code></pre>
  11918. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  11919. <p><em>Delete a swimlane</em></p>
  11920. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  11921. <h3 id="delete_swimlane-parameters">Parameters</h3>
  11922. <table>
  11923. <thead>
  11924. <tr>
  11925. <th>Name</th>
  11926. <th>In</th>
  11927. <th>Type</th>
  11928. <th>Required</th>
  11929. <th>Description</th>
  11930. </tr>
  11931. </thead>
  11932. <tbody>
  11933. <tr>
  11934. <td>board</td>
  11935. <td>path</td>
  11936. <td>string</td>
  11937. <td>true</td>
  11938. <td>the ID of the board</td>
  11939. </tr>
  11940. <tr>
  11941. <td>swimlane</td>
  11942. <td>path</td>
  11943. <td>string</td>
  11944. <td>true</td>
  11945. <td>the ID of the swimlane</td>
  11946. </tr>
  11947. </tbody>
  11948. </table>
  11949. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11950. <p><strong>board</strong>: the ID of the board</p>
  11951. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  11952. <blockquote>
  11953. <p>Example responses</p>
  11954. </blockquote>
  11955. <blockquote>
  11956. <p>200 Response</p>
  11957. </blockquote>
  11958. <pre class="highlight tab tab-json"><code>{
  11959. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11960. }
  11961. </code></pre>
  11962. <h3 id="delete_swimlane-responses">Responses</h3>
  11963. <table>
  11964. <thead>
  11965. <tr>
  11966. <th>Status</th>
  11967. <th>Meaning</th>
  11968. <th>Description</th>
  11969. <th>Schema</th>
  11970. </tr>
  11971. </thead>
  11972. <tbody>
  11973. <tr>
  11974. <td>200</td>
  11975. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11976. <td>200 response</td>
  11977. <td>Inline</td>
  11978. </tr>
  11979. </tbody>
  11980. </table>
  11981. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  11982. <p>Status Code <strong>200</strong></p>
  11983. <table>
  11984. <thead>
  11985. <tr>
  11986. <th>Name</th>
  11987. <th>Type</th>
  11988. <th>Required</th>
  11989. <th>Restrictions</th>
  11990. <th>Description</th>
  11991. </tr>
  11992. </thead>
  11993. <tbody>
  11994. <tr>
  11995. <td>» _id</td>
  11996. <td>string</td>
  11997. <td>false</td>
  11998. <td>none</td>
  11999. <td>none</td>
  12000. </tr>
  12001. </tbody>
  12002. </table>
  12003. <aside class="warning">
  12004. To perform this operation, you must be authenticated by means of one of the following methods:
  12005. UserSecurity
  12006. </aside>
  12007. <h1 id="schemas">Schemas</h1>
  12008. <h2 id="tocscardcomments">CardComments</h2>
  12009. <p><a id="schemacardcomments"></a></p>
  12010. <pre class="highlight tab tab-json"><code>{
  12011. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12012. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  12013. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  12014. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12015. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12016. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  12017. }
  12018. </code></pre>
  12019. <p><em>A comment on a card</em></p>
  12020. <h3 id="properties">Properties</h3>
  12021. <table>
  12022. <thead>
  12023. <tr>
  12024. <th>Name</th>
  12025. <th>Type</th>
  12026. <th>Required</th>
  12027. <th>Restrictions</th>
  12028. <th>Description</th>
  12029. </tr>
  12030. </thead>
  12031. <tbody>
  12032. <tr>
  12033. <td>boardId</td>
  12034. <td>string</td>
  12035. <td>true</td>
  12036. <td>none</td>
  12037. <td>the board ID</td>
  12038. </tr>
  12039. <tr>
  12040. <td>cardId</td>
  12041. <td>string</td>
  12042. <td>true</td>
  12043. <td>none</td>
  12044. <td>the card ID</td>
  12045. </tr>
  12046. <tr>
  12047. <td>text</td>
  12048. <td>string</td>
  12049. <td>true</td>
  12050. <td>none</td>
  12051. <td>the text of the comment</td>
  12052. </tr>
  12053. <tr>
  12054. <td>createdAt</td>
  12055. <td>string</td>
  12056. <td>true</td>
  12057. <td>none</td>
  12058. <td>when was the comment created</td>
  12059. </tr>
  12060. <tr>
  12061. <td>modifiedAt</td>
  12062. <td>string</td>
  12063. <td>true</td>
  12064. <td>none</td>
  12065. <td>none</td>
  12066. </tr>
  12067. <tr>
  12068. <td>userId</td>
  12069. <td>string</td>
  12070. <td>true</td>
  12071. <td>none</td>
  12072. <td>the author ID of the comment</td>
  12073. </tr>
  12074. </tbody>
  12075. </table>
  12076. <h2 id="tocscards">Cards</h2>
  12077. <p><a id="schemacards"></a></p>
  12078. <pre class="highlight tab tab-json"><code>{
  12079. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12080. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  12081. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  12082. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  12083. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  12084. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  12085. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12086. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  12087. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  12088. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12089. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12090. <span class="hljs-attr">"customFields"</span>: [
  12091. {}
  12092. ],
  12093. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  12094. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  12095. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  12096. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  12097. <span class="hljs-attr">"labelIds"</span>: [
  12098. <span class="hljs-string">"string"</span>
  12099. ],
  12100. <span class="hljs-attr">"members"</span>: [
  12101. <span class="hljs-string">"string"</span>
  12102. ],
  12103. <span class="hljs-attr">"assignees"</span>: [
  12104. <span class="hljs-string">"string"</span>
  12105. ],
  12106. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  12107. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  12108. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  12109. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  12110. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  12111. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  12112. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  12113. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  12114. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  12115. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  12116. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  12117. <span class="hljs-attr">"vote"</span>: {
  12118. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  12119. <span class="hljs-attr">"positive"</span>: [
  12120. <span class="hljs-string">"string"</span>
  12121. ],
  12122. <span class="hljs-attr">"negative"</span>: [
  12123. <span class="hljs-string">"string"</span>
  12124. ],
  12125. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  12126. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  12127. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  12128. },
  12129. <span class="hljs-attr">"poker"</span>: {
  12130. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  12131. <span class="hljs-attr">"one"</span>: [
  12132. <span class="hljs-string">"string"</span>
  12133. ],
  12134. <span class="hljs-attr">"two"</span>: [
  12135. <span class="hljs-string">"string"</span>
  12136. ],
  12137. <span class="hljs-attr">"three"</span>: [
  12138. <span class="hljs-string">"string"</span>
  12139. ],
  12140. <span class="hljs-attr">"five"</span>: [
  12141. <span class="hljs-string">"string"</span>
  12142. ],
  12143. <span class="hljs-attr">"eight"</span>: [
  12144. <span class="hljs-string">"string"</span>
  12145. ],
  12146. <span class="hljs-attr">"thirteen"</span>: [
  12147. <span class="hljs-string">"string"</span>
  12148. ],
  12149. <span class="hljs-attr">"twenty"</span>: [
  12150. <span class="hljs-string">"string"</span>
  12151. ],
  12152. <span class="hljs-attr">"forty"</span>: [
  12153. <span class="hljs-string">"string"</span>
  12154. ],
  12155. <span class="hljs-attr">"oneHundred"</span>: [
  12156. <span class="hljs-string">"string"</span>
  12157. ],
  12158. <span class="hljs-attr">"unsure"</span>: [
  12159. <span class="hljs-string">"string"</span>
  12160. ],
  12161. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  12162. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  12163. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  12164. },
  12165. <span class="hljs-attr">"targetId_gantt"</span>: [
  12166. <span class="hljs-string">"string"</span>
  12167. ],
  12168. <span class="hljs-attr">"linkType_gantt"</span>: [
  12169. <span class="hljs-number">0</span>
  12170. ],
  12171. <span class="hljs-attr">"linkId_gantt"</span>: [
  12172. <span class="hljs-string">"string"</span>
  12173. ],
  12174. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  12175. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  12176. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>
  12177. }
  12178. </code></pre>
  12179. <h3 id="properties">Properties</h3>
  12180. <table>
  12181. <thead>
  12182. <tr>
  12183. <th>Name</th>
  12184. <th>Type</th>
  12185. <th>Required</th>
  12186. <th>Restrictions</th>
  12187. <th>Description</th>
  12188. </tr>
  12189. </thead>
  12190. <tbody>
  12191. <tr>
  12192. <td>title</td>
  12193. <td>string|null</td>
  12194. <td>false</td>
  12195. <td>none</td>
  12196. <td>the title of the card</td>
  12197. </tr>
  12198. <tr>
  12199. <td>archived</td>
  12200. <td>boolean</td>
  12201. <td>true</td>
  12202. <td>none</td>
  12203. <td>is the card archived</td>
  12204. </tr>
  12205. <tr>
  12206. <td>archivedAt</td>
  12207. <td>string|null</td>
  12208. <td>false</td>
  12209. <td>none</td>
  12210. <td>latest archiving date</td>
  12211. </tr>
  12212. <tr>
  12213. <td>parentId</td>
  12214. <td>string|null</td>
  12215. <td>false</td>
  12216. <td>none</td>
  12217. <td>ID of the parent card</td>
  12218. </tr>
  12219. <tr>
  12220. <td>listId</td>
  12221. <td>string|null</td>
  12222. <td>false</td>
  12223. <td>none</td>
  12224. <td>List ID where the card is</td>
  12225. </tr>
  12226. <tr>
  12227. <td>swimlaneId</td>
  12228. <td>string</td>
  12229. <td>true</td>
  12230. <td>none</td>
  12231. <td>Swimlane ID where the card is</td>
  12232. </tr>
  12233. <tr>
  12234. <td>boardId</td>
  12235. <td>string|null</td>
  12236. <td>false</td>
  12237. <td>none</td>
  12238. <td>Board ID of the card</td>
  12239. </tr>
  12240. <tr>
  12241. <td>coverId</td>
  12242. <td>string|null</td>
  12243. <td>false</td>
  12244. <td>none</td>
  12245. <td>Cover ID of the card</td>
  12246. </tr>
  12247. <tr>
  12248. <td>color</td>
  12249. <td>string|null</td>
  12250. <td>false</td>
  12251. <td>none</td>
  12252. <td>none</td>
  12253. </tr>
  12254. <tr>
  12255. <td>createdAt</td>
  12256. <td>string</td>
  12257. <td>true</td>
  12258. <td>none</td>
  12259. <td>creation date</td>
  12260. </tr>
  12261. <tr>
  12262. <td>modifiedAt</td>
  12263. <td>string</td>
  12264. <td>true</td>
  12265. <td>none</td>
  12266. <td>none</td>
  12267. </tr>
  12268. <tr>
  12269. <td>customFields</td>
  12270. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]|null</td>
  12271. <td>false</td>
  12272. <td>none</td>
  12273. <td>list of custom fields</td>
  12274. </tr>
  12275. <tr>
  12276. <td>dateLastActivity</td>
  12277. <td>string</td>
  12278. <td>true</td>
  12279. <td>none</td>
  12280. <td>Date of last activity</td>
  12281. </tr>
  12282. <tr>
  12283. <td>description</td>
  12284. <td>string|null</td>
  12285. <td>false</td>
  12286. <td>none</td>
  12287. <td>description of the card</td>
  12288. </tr>
  12289. <tr>
  12290. <td>requestedBy</td>
  12291. <td>string|null</td>
  12292. <td>false</td>
  12293. <td>none</td>
  12294. <td>who requested the card (ID of the user)</td>
  12295. </tr>
  12296. <tr>
  12297. <td>assignedBy</td>
  12298. <td>string|null</td>
  12299. <td>false</td>
  12300. <td>none</td>
  12301. <td>who assigned the card (ID of the user)</td>
  12302. </tr>
  12303. <tr>
  12304. <td>labelIds</td>
  12305. <td>[string]|null</td>
  12306. <td>false</td>
  12307. <td>none</td>
  12308. <td>list of labels ID the card has</td>
  12309. </tr>
  12310. <tr>
  12311. <td>members</td>
  12312. <td>[string]|null</td>
  12313. <td>false</td>
  12314. <td>none</td>
  12315. <td>list of members (user IDs)</td>
  12316. </tr>
  12317. <tr>
  12318. <td>assignees</td>
  12319. <td>[string]|null</td>
  12320. <td>false</td>
  12321. <td>none</td>
  12322. <td>who is assignee of the card (user ID), maximum one ID of assignee in array.</td>
  12323. </tr>
  12324. <tr>
  12325. <td>receivedAt</td>
  12326. <td>string|null</td>
  12327. <td>false</td>
  12328. <td>none</td>
  12329. <td>Date the card was received</td>
  12330. </tr>
  12331. <tr>
  12332. <td>startAt</td>
  12333. <td>string|null</td>
  12334. <td>false</td>
  12335. <td>none</td>
  12336. <td>Date the card was started to be worked on</td>
  12337. </tr>
  12338. <tr>
  12339. <td>dueAt</td>
  12340. <td>string|null</td>
  12341. <td>false</td>
  12342. <td>none</td>
  12343. <td>Date the card is due</td>
  12344. </tr>
  12345. <tr>
  12346. <td>endAt</td>
  12347. <td>string|null</td>
  12348. <td>false</td>
  12349. <td>none</td>
  12350. <td>Date the card ended</td>
  12351. </tr>
  12352. <tr>
  12353. <td>spentTime</td>
  12354. <td>number|null</td>
  12355. <td>false</td>
  12356. <td>none</td>
  12357. <td>How much time has been spent on this</td>
  12358. </tr>
  12359. <tr>
  12360. <td>isOvertime</td>
  12361. <td>boolean|null</td>
  12362. <td>false</td>
  12363. <td>none</td>
  12364. <td>is the card over time?</td>
  12365. </tr>
  12366. <tr>
  12367. <td>userId</td>
  12368. <td>string</td>
  12369. <td>true</td>
  12370. <td>none</td>
  12371. <td>user ID of the author of the card</td>
  12372. </tr>
  12373. <tr>
  12374. <td>sort</td>
  12375. <td>number|null</td>
  12376. <td>false</td>
  12377. <td>none</td>
  12378. <td>Sort value</td>
  12379. </tr>
  12380. <tr>
  12381. <td>subtaskSort</td>
  12382. <td>number|null</td>
  12383. <td>false</td>
  12384. <td>none</td>
  12385. <td>subtask sort value</td>
  12386. </tr>
  12387. <tr>
  12388. <td>type</td>
  12389. <td>string</td>
  12390. <td>true</td>
  12391. <td>none</td>
  12392. <td>type of the card</td>
  12393. </tr>
  12394. <tr>
  12395. <td>linkedId</td>
  12396. <td>string|null</td>
  12397. <td>false</td>
  12398. <td>none</td>
  12399. <td>ID of the linked card</td>
  12400. </tr>
  12401. <tr>
  12402. <td>vote</td>
  12403. <td><a href="#schemacardsvote">CardsVote</a></td>
  12404. <td>false</td>
  12405. <td>none</td>
  12406. <td>vote object, see below</td>
  12407. </tr>
  12408. <tr>
  12409. <td>poker</td>
  12410. <td><a href="#schemacardspoker">CardsPoker</a></td>
  12411. <td>false</td>
  12412. <td>none</td>
  12413. <td>poker object, see below</td>
  12414. </tr>
  12415. <tr>
  12416. <td>targetId_gantt</td>
  12417. <td>[string]|null</td>
  12418. <td>false</td>
  12419. <td>none</td>
  12420. <td>ID of card which is the child link in gantt view</td>
  12421. </tr>
  12422. <tr>
  12423. <td>linkType_gantt</td>
  12424. <td>[number]|null</td>
  12425. <td>false</td>
  12426. <td>none</td>
  12427. <td>ID of card which is the parent link in gantt view</td>
  12428. </tr>
  12429. <tr>
  12430. <td>linkId_gantt</td>
  12431. <td>[string]|null</td>
  12432. <td>false</td>
  12433. <td>none</td>
  12434. <td>ID of card which is the parent link in gantt view</td>
  12435. </tr>
  12436. <tr>
  12437. <td>cardNumber</td>
  12438. <td>number|null</td>
  12439. <td>false</td>
  12440. <td>none</td>
  12441. <td>A boardwise sequentially increasing number that is assigned to every newly created card</td>
  12442. </tr>
  12443. <tr>
  12444. <td>showActivities</td>
  12445. <td>boolean</td>
  12446. <td>true</td>
  12447. <td>none</td>
  12448. <td>none</td>
  12449. </tr>
  12450. <tr>
  12451. <td>hideFinishedChecklistIfItemsAreHidden</td>
  12452. <td>boolean|null</td>
  12453. <td>false</td>
  12454. <td>none</td>
  12455. <td>hide completed checklist?</td>
  12456. </tr>
  12457. </tbody>
  12458. </table>
  12459. <h4 id="enumerated-values">Enumerated Values</h4>
  12460. <table>
  12461. <thead>
  12462. <tr>
  12463. <th>Property</th>
  12464. <th>Value</th>
  12465. </tr>
  12466. </thead>
  12467. <tbody>
  12468. <tr>
  12469. <td>color</td>
  12470. <td>white</td>
  12471. </tr>
  12472. <tr>
  12473. <td>color</td>
  12474. <td>green</td>
  12475. </tr>
  12476. <tr>
  12477. <td>color</td>
  12478. <td>yellow</td>
  12479. </tr>
  12480. <tr>
  12481. <td>color</td>
  12482. <td>orange</td>
  12483. </tr>
  12484. <tr>
  12485. <td>color</td>
  12486. <td>red</td>
  12487. </tr>
  12488. <tr>
  12489. <td>color</td>
  12490. <td>purple</td>
  12491. </tr>
  12492. <tr>
  12493. <td>color</td>
  12494. <td>blue</td>
  12495. </tr>
  12496. <tr>
  12497. <td>color</td>
  12498. <td>sky</td>
  12499. </tr>
  12500. <tr>
  12501. <td>color</td>
  12502. <td>lime</td>
  12503. </tr>
  12504. <tr>
  12505. <td>color</td>
  12506. <td>pink</td>
  12507. </tr>
  12508. <tr>
  12509. <td>color</td>
  12510. <td>black</td>
  12511. </tr>
  12512. <tr>
  12513. <td>color</td>
  12514. <td>silver</td>
  12515. </tr>
  12516. <tr>
  12517. <td>color</td>
  12518. <td>peachpuff</td>
  12519. </tr>
  12520. <tr>
  12521. <td>color</td>
  12522. <td>crimson</td>
  12523. </tr>
  12524. <tr>
  12525. <td>color</td>
  12526. <td>plum</td>
  12527. </tr>
  12528. <tr>
  12529. <td>color</td>
  12530. <td>darkgreen</td>
  12531. </tr>
  12532. <tr>
  12533. <td>color</td>
  12534. <td>slateblue</td>
  12535. </tr>
  12536. <tr>
  12537. <td>color</td>
  12538. <td>magenta</td>
  12539. </tr>
  12540. <tr>
  12541. <td>color</td>
  12542. <td>gold</td>
  12543. </tr>
  12544. <tr>
  12545. <td>color</td>
  12546. <td>navy</td>
  12547. </tr>
  12548. <tr>
  12549. <td>color</td>
  12550. <td>gray</td>
  12551. </tr>
  12552. <tr>
  12553. <td>color</td>
  12554. <td>saddlebrown</td>
  12555. </tr>
  12556. <tr>
  12557. <td>color</td>
  12558. <td>paleturquoise</td>
  12559. </tr>
  12560. <tr>
  12561. <td>color</td>
  12562. <td>mistyrose</td>
  12563. </tr>
  12564. <tr>
  12565. <td>color</td>
  12566. <td>indigo</td>
  12567. </tr>
  12568. </tbody>
  12569. </table>
  12570. <h2 id="tocscardsvote">CardsVote</h2>
  12571. <p><a id="schemacardsvote"></a></p>
  12572. <pre class="highlight tab tab-json"><code>{
  12573. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  12574. <span class="hljs-attr">"positive"</span>: [
  12575. <span class="hljs-string">"string"</span>
  12576. ],
  12577. <span class="hljs-attr">"negative"</span>: [
  12578. <span class="hljs-string">"string"</span>
  12579. ],
  12580. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  12581. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  12582. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  12583. }
  12584. </code></pre>
  12585. <h3 id="properties">Properties</h3>
  12586. <table>
  12587. <thead>
  12588. <tr>
  12589. <th>Name</th>
  12590. <th>Type</th>
  12591. <th>Required</th>
  12592. <th>Restrictions</th>
  12593. <th>Description</th>
  12594. </tr>
  12595. </thead>
  12596. <tbody>
  12597. <tr>
  12598. <td>question</td>
  12599. <td>string</td>
  12600. <td>true</td>
  12601. <td>none</td>
  12602. <td>none</td>
  12603. </tr>
  12604. <tr>
  12605. <td>positive</td>
  12606. <td>[string]</td>
  12607. <td>false</td>
  12608. <td>none</td>
  12609. <td>list of members (user IDs)</td>
  12610. </tr>
  12611. <tr>
  12612. <td>negative</td>
  12613. <td>[string]</td>
  12614. <td>false</td>
  12615. <td>none</td>
  12616. <td>list of members (user IDs)</td>
  12617. </tr>
  12618. <tr>
  12619. <td>end</td>
  12620. <td>string</td>
  12621. <td>false</td>
  12622. <td>none</td>
  12623. <td>none</td>
  12624. </tr>
  12625. <tr>
  12626. <td>public</td>
  12627. <td>boolean</td>
  12628. <td>true</td>
  12629. <td>none</td>
  12630. <td>none</td>
  12631. </tr>
  12632. <tr>
  12633. <td>allowNonBoardMembers</td>
  12634. <td>boolean</td>
  12635. <td>true</td>
  12636. <td>none</td>
  12637. <td>none</td>
  12638. </tr>
  12639. </tbody>
  12640. </table>
  12641. <h2 id="tocscardspoker">CardsPoker</h2>
  12642. <p><a id="schemacardspoker"></a></p>
  12643. <pre class="highlight tab tab-json"><code>{
  12644. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  12645. <span class="hljs-attr">"one"</span>: [
  12646. <span class="hljs-string">"string"</span>
  12647. ],
  12648. <span class="hljs-attr">"two"</span>: [
  12649. <span class="hljs-string">"string"</span>
  12650. ],
  12651. <span class="hljs-attr">"three"</span>: [
  12652. <span class="hljs-string">"string"</span>
  12653. ],
  12654. <span class="hljs-attr">"five"</span>: [
  12655. <span class="hljs-string">"string"</span>
  12656. ],
  12657. <span class="hljs-attr">"eight"</span>: [
  12658. <span class="hljs-string">"string"</span>
  12659. ],
  12660. <span class="hljs-attr">"thirteen"</span>: [
  12661. <span class="hljs-string">"string"</span>
  12662. ],
  12663. <span class="hljs-attr">"twenty"</span>: [
  12664. <span class="hljs-string">"string"</span>
  12665. ],
  12666. <span class="hljs-attr">"forty"</span>: [
  12667. <span class="hljs-string">"string"</span>
  12668. ],
  12669. <span class="hljs-attr">"oneHundred"</span>: [
  12670. <span class="hljs-string">"string"</span>
  12671. ],
  12672. <span class="hljs-attr">"unsure"</span>: [
  12673. <span class="hljs-string">"string"</span>
  12674. ],
  12675. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  12676. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  12677. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  12678. }
  12679. </code></pre>
  12680. <h3 id="properties">Properties</h3>
  12681. <table>
  12682. <thead>
  12683. <tr>
  12684. <th>Name</th>
  12685. <th>Type</th>
  12686. <th>Required</th>
  12687. <th>Restrictions</th>
  12688. <th>Description</th>
  12689. </tr>
  12690. </thead>
  12691. <tbody>
  12692. <tr>
  12693. <td>question</td>
  12694. <td>boolean</td>
  12695. <td>false</td>
  12696. <td>none</td>
  12697. <td>none</td>
  12698. </tr>
  12699. <tr>
  12700. <td>one</td>
  12701. <td>[string]</td>
  12702. <td>false</td>
  12703. <td>none</td>
  12704. <td>poker card one</td>
  12705. </tr>
  12706. <tr>
  12707. <td>two</td>
  12708. <td>[string]</td>
  12709. <td>false</td>
  12710. <td>none</td>
  12711. <td>poker card two</td>
  12712. </tr>
  12713. <tr>
  12714. <td>three</td>
  12715. <td>[string]</td>
  12716. <td>false</td>
  12717. <td>none</td>
  12718. <td>poker card three</td>
  12719. </tr>
  12720. <tr>
  12721. <td>five</td>
  12722. <td>[string]</td>
  12723. <td>false</td>
  12724. <td>none</td>
  12725. <td>poker card five</td>
  12726. </tr>
  12727. <tr>
  12728. <td>eight</td>
  12729. <td>[string]</td>
  12730. <td>false</td>
  12731. <td>none</td>
  12732. <td>poker card eight</td>
  12733. </tr>
  12734. <tr>
  12735. <td>thirteen</td>
  12736. <td>[string]</td>
  12737. <td>false</td>
  12738. <td>none</td>
  12739. <td>poker card thirteen</td>
  12740. </tr>
  12741. <tr>
  12742. <td>twenty</td>
  12743. <td>[string]</td>
  12744. <td>false</td>
  12745. <td>none</td>
  12746. <td>poker card twenty</td>
  12747. </tr>
  12748. <tr>
  12749. <td>forty</td>
  12750. <td>[string]</td>
  12751. <td>false</td>
  12752. <td>none</td>
  12753. <td>poker card forty</td>
  12754. </tr>
  12755. <tr>
  12756. <td>oneHundred</td>
  12757. <td>[string]</td>
  12758. <td>false</td>
  12759. <td>none</td>
  12760. <td>poker card oneHundred</td>
  12761. </tr>
  12762. <tr>
  12763. <td>unsure</td>
  12764. <td>[string]</td>
  12765. <td>false</td>
  12766. <td>none</td>
  12767. <td>poker card unsure</td>
  12768. </tr>
  12769. <tr>
  12770. <td>end</td>
  12771. <td>string</td>
  12772. <td>false</td>
  12773. <td>none</td>
  12774. <td>none</td>
  12775. </tr>
  12776. <tr>
  12777. <td>allowNonBoardMembers</td>
  12778. <td>boolean</td>
  12779. <td>false</td>
  12780. <td>none</td>
  12781. <td>none</td>
  12782. </tr>
  12783. <tr>
  12784. <td>estimation</td>
  12785. <td>number</td>
  12786. <td>false</td>
  12787. <td>none</td>
  12788. <td>poker estimation value</td>
  12789. </tr>
  12790. </tbody>
  12791. </table>
  12792. <h2 id="tocscardscustomfields">CardsCustomfields</h2>
  12793. <p><a id="schemacardscustomfields"></a></p>
  12794. <pre class="highlight tab tab-json"><code>{}
  12795. </code></pre>
  12796. <h3 id="properties">Properties</h3>
  12797. <p><em>None</em></p>
  12798. <h2 id="tocschecklistitems">ChecklistItems</h2>
  12799. <p><a id="schemachecklistitems"></a></p>
  12800. <pre class="highlight tab tab-json"><code>{
  12801. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12802. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  12803. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  12804. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  12805. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  12806. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12807. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  12808. }
  12809. </code></pre>
  12810. <p><em>An item in a checklist</em></p>
  12811. <h3 id="properties">Properties</h3>
  12812. <table>
  12813. <thead>
  12814. <tr>
  12815. <th>Name</th>
  12816. <th>Type</th>
  12817. <th>Required</th>
  12818. <th>Restrictions</th>
  12819. <th>Description</th>
  12820. </tr>
  12821. </thead>
  12822. <tbody>
  12823. <tr>
  12824. <td>title</td>
  12825. <td>string</td>
  12826. <td>true</td>
  12827. <td>none</td>
  12828. <td>the text of the item</td>
  12829. </tr>
  12830. <tr>
  12831. <td>sort</td>
  12832. <td>number</td>
  12833. <td>true</td>
  12834. <td>none</td>
  12835. <td>the sorting field of the item</td>
  12836. </tr>
  12837. <tr>
  12838. <td>isFinished</td>
  12839. <td>boolean</td>
  12840. <td>true</td>
  12841. <td>none</td>
  12842. <td>Is the item checked?</td>
  12843. </tr>
  12844. <tr>
  12845. <td>checklistId</td>
  12846. <td>string</td>
  12847. <td>true</td>
  12848. <td>none</td>
  12849. <td>the checklist ID the item is attached to</td>
  12850. </tr>
  12851. <tr>
  12852. <td>cardId</td>
  12853. <td>string</td>
  12854. <td>true</td>
  12855. <td>none</td>
  12856. <td>the card ID the item is attached to</td>
  12857. </tr>
  12858. <tr>
  12859. <td>createdAt</td>
  12860. <td>string|null</td>
  12861. <td>false</td>
  12862. <td>none</td>
  12863. <td>none</td>
  12864. </tr>
  12865. <tr>
  12866. <td>modifiedAt</td>
  12867. <td>string</td>
  12868. <td>true</td>
  12869. <td>none</td>
  12870. <td>none</td>
  12871. </tr>
  12872. </tbody>
  12873. </table>
  12874. <h2 id="tocschecklists">Checklists</h2>
  12875. <p><a id="schemachecklists"></a></p>
  12876. <pre class="highlight tab tab-json"><code>{
  12877. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  12878. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12879. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  12880. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12881. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12882. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  12883. <span class="hljs-attr">"hideCheckedChecklistItems"</span>: <span class="hljs-literal">true</span>,
  12884. <span class="hljs-attr">"hideAllChecklistItems"</span>: <span class="hljs-literal">true</span>
  12885. }
  12886. </code></pre>
  12887. <p><em>A Checklist</em></p>
  12888. <h3 id="properties">Properties</h3>
  12889. <table>
  12890. <thead>
  12891. <tr>
  12892. <th>Name</th>
  12893. <th>Type</th>
  12894. <th>Required</th>
  12895. <th>Restrictions</th>
  12896. <th>Description</th>
  12897. </tr>
  12898. </thead>
  12899. <tbody>
  12900. <tr>
  12901. <td>cardId</td>
  12902. <td>string</td>
  12903. <td>true</td>
  12904. <td>none</td>
  12905. <td>The ID of the card the checklist is in</td>
  12906. </tr>
  12907. <tr>
  12908. <td>title</td>
  12909. <td>string</td>
  12910. <td>true</td>
  12911. <td>none</td>
  12912. <td>the title of the checklist</td>
  12913. </tr>
  12914. <tr>
  12915. <td>finishedAt</td>
  12916. <td>string|null</td>
  12917. <td>false</td>
  12918. <td>none</td>
  12919. <td>When was the checklist finished</td>
  12920. </tr>
  12921. <tr>
  12922. <td>createdAt</td>
  12923. <td>string</td>
  12924. <td>true</td>
  12925. <td>none</td>
  12926. <td>Creation date of the checklist</td>
  12927. </tr>
  12928. <tr>
  12929. <td>modifiedAt</td>
  12930. <td>string</td>
  12931. <td>true</td>
  12932. <td>none</td>
  12933. <td>none</td>
  12934. </tr>
  12935. <tr>
  12936. <td>sort</td>
  12937. <td>number</td>
  12938. <td>true</td>
  12939. <td>none</td>
  12940. <td>sorting value of the checklist</td>
  12941. </tr>
  12942. <tr>
  12943. <td>hideCheckedChecklistItems</td>
  12944. <td>boolean|null</td>
  12945. <td>false</td>
  12946. <td>none</td>
  12947. <td>hide the checked checklist-items?</td>
  12948. </tr>
  12949. <tr>
  12950. <td>hideAllChecklistItems</td>
  12951. <td>boolean|null</td>
  12952. <td>false</td>
  12953. <td>none</td>
  12954. <td>hide all checklist items ?</td>
  12955. </tr>
  12956. </tbody>
  12957. </table>
  12958. <h2 id="tocscustomfields">CustomFields</h2>
  12959. <p><a id="schemacustomfields"></a></p>
  12960. <pre class="highlight tab tab-json"><code>{
  12961. <span class="hljs-attr">"boardIds"</span>: [
  12962. <span class="hljs-string">"string"</span>
  12963. ],
  12964. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  12965. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"text"</span>,
  12966. <span class="hljs-attr">"settings"</span>: {
  12967. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  12968. <span class="hljs-attr">"dropdownItems"</span>: [
  12969. {}
  12970. ],
  12971. <span class="hljs-attr">"stringtemplateFormat"</span>: <span class="hljs-string">"string"</span>,
  12972. <span class="hljs-attr">"stringtemplateSeparator"</span>: <span class="hljs-string">"string"</span>
  12973. },
  12974. <span class="hljs-attr">"showOnCard"</span>: <span class="hljs-literal">true</span>,
  12975. <span class="hljs-attr">"automaticallyOnCard"</span>: <span class="hljs-literal">true</span>,
  12976. <span class="hljs-attr">"alwaysOnCard"</span>: <span class="hljs-literal">true</span>,
  12977. <span class="hljs-attr">"showLabelOnMiniCard"</span>: <span class="hljs-literal">true</span>,
  12978. <span class="hljs-attr">"showSumAtTopOfList"</span>: <span class="hljs-literal">true</span>,
  12979. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12980. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  12981. }
  12982. </code></pre>
  12983. <p><em>A custom field on a card in the board</em></p>
  12984. <h3 id="properties">Properties</h3>
  12985. <table>
  12986. <thead>
  12987. <tr>
  12988. <th>Name</th>
  12989. <th>Type</th>
  12990. <th>Required</th>
  12991. <th>Restrictions</th>
  12992. <th>Description</th>
  12993. </tr>
  12994. </thead>
  12995. <tbody>
  12996. <tr>
  12997. <td>boardIds</td>
  12998. <td>[string]</td>
  12999. <td>true</td>
  13000. <td>none</td>
  13001. <td>the ID of the board</td>
  13002. </tr>
  13003. <tr>
  13004. <td>name</td>
  13005. <td>string</td>
  13006. <td>true</td>
  13007. <td>none</td>
  13008. <td>name of the custom field</td>
  13009. </tr>
  13010. <tr>
  13011. <td>type</td>
  13012. <td>string</td>
  13013. <td>true</td>
  13014. <td>none</td>
  13015. <td>type of the custom field</td>
  13016. </tr>
  13017. <tr>
  13018. <td>settings</td>
  13019. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  13020. <td>true</td>
  13021. <td>none</td>
  13022. <td>settings of the custom field</td>
  13023. </tr>
  13024. <tr>
  13025. <td>showOnCard</td>
  13026. <td>boolean</td>
  13027. <td>true</td>
  13028. <td>none</td>
  13029. <td>should we show on the cards this custom field</td>
  13030. </tr>
  13031. <tr>
  13032. <td>automaticallyOnCard</td>
  13033. <td>boolean</td>
  13034. <td>true</td>
  13035. <td>none</td>
  13036. <td>should the custom fields automatically be added on cards?</td>
  13037. </tr>
  13038. <tr>
  13039. <td>alwaysOnCard</td>
  13040. <td>boolean</td>
  13041. <td>true</td>
  13042. <td>none</td>
  13043. <td>should the custom field be automatically added to all cards?</td>
  13044. </tr>
  13045. <tr>
  13046. <td>showLabelOnMiniCard</td>
  13047. <td>boolean</td>
  13048. <td>true</td>
  13049. <td>none</td>
  13050. <td>should the label of the custom field be shown on minicards?</td>
  13051. </tr>
  13052. <tr>
  13053. <td>showSumAtTopOfList</td>
  13054. <td>boolean</td>
  13055. <td>true</td>
  13056. <td>none</td>
  13057. <td>should the sum of the custom fields be shown at top of list?</td>
  13058. </tr>
  13059. <tr>
  13060. <td>createdAt</td>
  13061. <td>string|null</td>
  13062. <td>false</td>
  13063. <td>none</td>
  13064. <td>none</td>
  13065. </tr>
  13066. <tr>
  13067. <td>modifiedAt</td>
  13068. <td>string</td>
  13069. <td>true</td>
  13070. <td>none</td>
  13071. <td>none</td>
  13072. </tr>
  13073. </tbody>
  13074. </table>
  13075. <h4 id="enumerated-values">Enumerated Values</h4>
  13076. <table>
  13077. <thead>
  13078. <tr>
  13079. <th>Property</th>
  13080. <th>Value</th>
  13081. </tr>
  13082. </thead>
  13083. <tbody>
  13084. <tr>
  13085. <td>type</td>
  13086. <td>text</td>
  13087. </tr>
  13088. <tr>
  13089. <td>type</td>
  13090. <td>number</td>
  13091. </tr>
  13092. <tr>
  13093. <td>type</td>
  13094. <td>date</td>
  13095. </tr>
  13096. <tr>
  13097. <td>type</td>
  13098. <td>dropdown</td>
  13099. </tr>
  13100. <tr>
  13101. <td>type</td>
  13102. <td>checkbox</td>
  13103. </tr>
  13104. <tr>
  13105. <td>type</td>
  13106. <td>currency</td>
  13107. </tr>
  13108. <tr>
  13109. <td>type</td>
  13110. <td>stringtemplate</td>
  13111. </tr>
  13112. </tbody>
  13113. </table>
  13114. <h2 id="tocscustomfieldssettings">CustomFieldsSettings</h2>
  13115. <p><a id="schemacustomfieldssettings"></a></p>
  13116. <pre class="highlight tab tab-json"><code>{
  13117. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  13118. <span class="hljs-attr">"dropdownItems"</span>: [
  13119. {}
  13120. ],
  13121. <span class="hljs-attr">"stringtemplateFormat"</span>: <span class="hljs-string">"string"</span>,
  13122. <span class="hljs-attr">"stringtemplateSeparator"</span>: <span class="hljs-string">"string"</span>
  13123. }
  13124. </code></pre>
  13125. <h3 id="properties">Properties</h3>
  13126. <table>
  13127. <thead>
  13128. <tr>
  13129. <th>Name</th>
  13130. <th>Type</th>
  13131. <th>Required</th>
  13132. <th>Restrictions</th>
  13133. <th>Description</th>
  13134. </tr>
  13135. </thead>
  13136. <tbody>
  13137. <tr>
  13138. <td>currencyCode</td>
  13139. <td>string</td>
  13140. <td>false</td>
  13141. <td>none</td>
  13142. <td>none</td>
  13143. </tr>
  13144. <tr>
  13145. <td>dropdownItems</td>
  13146. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  13147. <td>false</td>
  13148. <td>none</td>
  13149. <td>list of drop down items objects</td>
  13150. </tr>
  13151. <tr>
  13152. <td>stringtemplateFormat</td>
  13153. <td>string</td>
  13154. <td>false</td>
  13155. <td>none</td>
  13156. <td>none</td>
  13157. </tr>
  13158. <tr>
  13159. <td>stringtemplateSeparator</td>
  13160. <td>string</td>
  13161. <td>false</td>
  13162. <td>none</td>
  13163. <td>none</td>
  13164. </tr>
  13165. </tbody>
  13166. </table>
  13167. <h2 id="tocscustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  13168. <p><a id="schemacustomfieldssettingsdropdownitems"></a></p>
  13169. <pre class="highlight tab tab-json"><code>{}
  13170. </code></pre>
  13171. <h3 id="properties">Properties</h3>
  13172. <p><em>None</em></p>
  13173. <h2 id="tocsintegrations">Integrations</h2>
  13174. <p><a id="schemaintegrations"></a></p>
  13175. <pre class="highlight tab tab-json"><code>{
  13176. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  13177. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13178. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13179. <span class="hljs-attr">"activities"</span>: [
  13180. <span class="hljs-string">"string"</span>
  13181. ],
  13182. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  13183. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  13184. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13185. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13186. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13187. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  13188. }
  13189. </code></pre>
  13190. <p><em>Integration with third-party applications</em></p>
  13191. <h3 id="properties">Properties</h3>
  13192. <table>
  13193. <thead>
  13194. <tr>
  13195. <th>Name</th>
  13196. <th>Type</th>
  13197. <th>Required</th>
  13198. <th>Restrictions</th>
  13199. <th>Description</th>
  13200. </tr>
  13201. </thead>
  13202. <tbody>
  13203. <tr>
  13204. <td>enabled</td>
  13205. <td>boolean</td>
  13206. <td>true</td>
  13207. <td>none</td>
  13208. <td>is the integration enabled?</td>
  13209. </tr>
  13210. <tr>
  13211. <td>title</td>
  13212. <td>string|null</td>
  13213. <td>false</td>
  13214. <td>none</td>
  13215. <td>name of the integration</td>
  13216. </tr>
  13217. <tr>
  13218. <td>type</td>
  13219. <td>string</td>
  13220. <td>true</td>
  13221. <td>none</td>
  13222. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  13223. </tr>
  13224. <tr>
  13225. <td>activities</td>
  13226. <td>[string]</td>
  13227. <td>true</td>
  13228. <td>none</td>
  13229. <td>activities the integration gets triggered (list)</td>
  13230. </tr>
  13231. <tr>
  13232. <td>url</td>
  13233. <td>string</td>
  13234. <td>true</td>
  13235. <td>none</td>
  13236. <td>none</td>
  13237. </tr>
  13238. <tr>
  13239. <td>token</td>
  13240. <td>string|null</td>
  13241. <td>false</td>
  13242. <td>none</td>
  13243. <td>token of the integration</td>
  13244. </tr>
  13245. <tr>
  13246. <td>boardId</td>
  13247. <td>string</td>
  13248. <td>true</td>
  13249. <td>none</td>
  13250. <td>Board ID of the integration</td>
  13251. </tr>
  13252. <tr>
  13253. <td>createdAt</td>
  13254. <td>string</td>
  13255. <td>true</td>
  13256. <td>none</td>
  13257. <td>Creation date of the integration</td>
  13258. </tr>
  13259. <tr>
  13260. <td>modifiedAt</td>
  13261. <td>string</td>
  13262. <td>true</td>
  13263. <td>none</td>
  13264. <td>none</td>
  13265. </tr>
  13266. <tr>
  13267. <td>userId</td>
  13268. <td>string</td>
  13269. <td>true</td>
  13270. <td>none</td>
  13271. <td>user ID who created the interation</td>
  13272. </tr>
  13273. </tbody>
  13274. </table>
  13275. <h2 id="tocslists">Lists</h2>
  13276. <p><a id="schemalists"></a></p>
  13277. <pre class="highlight tab tab-json"><code>{
  13278. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13279. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  13280. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  13281. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  13282. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13283. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  13284. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13285. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  13286. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  13287. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13288. <span class="hljs-attr">"wipLimit"</span>: {
  13289. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  13290. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  13291. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  13292. },
  13293. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  13294. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13295. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  13296. }
  13297. </code></pre>
  13298. <p><em>A list (column) in the Wekan board.</em></p>
  13299. <h3 id="properties">Properties</h3>
  13300. <table>
  13301. <thead>
  13302. <tr>
  13303. <th>Name</th>
  13304. <th>Type</th>
  13305. <th>Required</th>
  13306. <th>Restrictions</th>
  13307. <th>Description</th>
  13308. </tr>
  13309. </thead>
  13310. <tbody>
  13311. <tr>
  13312. <td>title</td>
  13313. <td>string</td>
  13314. <td>true</td>
  13315. <td>none</td>
  13316. <td>the title of the list</td>
  13317. </tr>
  13318. <tr>
  13319. <td>starred</td>
  13320. <td>boolean|null</td>
  13321. <td>false</td>
  13322. <td>none</td>
  13323. <td>if a list is stared then we put it on the top</td>
  13324. </tr>
  13325. <tr>
  13326. <td>archived</td>
  13327. <td>boolean</td>
  13328. <td>true</td>
  13329. <td>none</td>
  13330. <td>is the list archived</td>
  13331. </tr>
  13332. <tr>
  13333. <td>archivedAt</td>
  13334. <td>string|null</td>
  13335. <td>false</td>
  13336. <td>none</td>
  13337. <td>latest archiving date</td>
  13338. </tr>
  13339. <tr>
  13340. <td>boardId</td>
  13341. <td>string</td>
  13342. <td>true</td>
  13343. <td>none</td>
  13344. <td>the board associated to this list</td>
  13345. </tr>
  13346. <tr>
  13347. <td>swimlaneId</td>
  13348. <td>string</td>
  13349. <td>true</td>
  13350. <td>none</td>
  13351. <td>the swimlane associated to this list. Used for templates</td>
  13352. </tr>
  13353. <tr>
  13354. <td>createdAt</td>
  13355. <td>string</td>
  13356. <td>true</td>
  13357. <td>none</td>
  13358. <td>creation date</td>
  13359. </tr>
  13360. <tr>
  13361. <td>sort</td>
  13362. <td>number|null</td>
  13363. <td>false</td>
  13364. <td>none</td>
  13365. <td>is the list sorted</td>
  13366. </tr>
  13367. <tr>
  13368. <td>updatedAt</td>
  13369. <td>string|null</td>
  13370. <td>false</td>
  13371. <td>none</td>
  13372. <td>last update of the list</td>
  13373. </tr>
  13374. <tr>
  13375. <td>modifiedAt</td>
  13376. <td>string</td>
  13377. <td>true</td>
  13378. <td>none</td>
  13379. <td>none</td>
  13380. </tr>
  13381. <tr>
  13382. <td>wipLimit</td>
  13383. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  13384. <td>false</td>
  13385. <td>none</td>
  13386. <td>WIP object, see below</td>
  13387. </tr>
  13388. <tr>
  13389. <td>color</td>
  13390. <td>string|null</td>
  13391. <td>false</td>
  13392. <td>none</td>
  13393. <td>the color of the list</td>
  13394. </tr>
  13395. <tr>
  13396. <td>type</td>
  13397. <td>string</td>
  13398. <td>true</td>
  13399. <td>none</td>
  13400. <td>The type of list</td>
  13401. </tr>
  13402. <tr>
  13403. <td>collapsed</td>
  13404. <td>boolean</td>
  13405. <td>true</td>
  13406. <td>none</td>
  13407. <td>is the list collapsed</td>
  13408. </tr>
  13409. </tbody>
  13410. </table>
  13411. <h4 id="enumerated-values">Enumerated Values</h4>
  13412. <table>
  13413. <thead>
  13414. <tr>
  13415. <th>Property</th>
  13416. <th>Value</th>
  13417. </tr>
  13418. </thead>
  13419. <tbody>
  13420. <tr>
  13421. <td>color</td>
  13422. <td>white</td>
  13423. </tr>
  13424. <tr>
  13425. <td>color</td>
  13426. <td>green</td>
  13427. </tr>
  13428. <tr>
  13429. <td>color</td>
  13430. <td>yellow</td>
  13431. </tr>
  13432. <tr>
  13433. <td>color</td>
  13434. <td>orange</td>
  13435. </tr>
  13436. <tr>
  13437. <td>color</td>
  13438. <td>red</td>
  13439. </tr>
  13440. <tr>
  13441. <td>color</td>
  13442. <td>purple</td>
  13443. </tr>
  13444. <tr>
  13445. <td>color</td>
  13446. <td>blue</td>
  13447. </tr>
  13448. <tr>
  13449. <td>color</td>
  13450. <td>sky</td>
  13451. </tr>
  13452. <tr>
  13453. <td>color</td>
  13454. <td>lime</td>
  13455. </tr>
  13456. <tr>
  13457. <td>color</td>
  13458. <td>pink</td>
  13459. </tr>
  13460. <tr>
  13461. <td>color</td>
  13462. <td>black</td>
  13463. </tr>
  13464. <tr>
  13465. <td>color</td>
  13466. <td>silver</td>
  13467. </tr>
  13468. <tr>
  13469. <td>color</td>
  13470. <td>peachpuff</td>
  13471. </tr>
  13472. <tr>
  13473. <td>color</td>
  13474. <td>crimson</td>
  13475. </tr>
  13476. <tr>
  13477. <td>color</td>
  13478. <td>plum</td>
  13479. </tr>
  13480. <tr>
  13481. <td>color</td>
  13482. <td>darkgreen</td>
  13483. </tr>
  13484. <tr>
  13485. <td>color</td>
  13486. <td>slateblue</td>
  13487. </tr>
  13488. <tr>
  13489. <td>color</td>
  13490. <td>magenta</td>
  13491. </tr>
  13492. <tr>
  13493. <td>color</td>
  13494. <td>gold</td>
  13495. </tr>
  13496. <tr>
  13497. <td>color</td>
  13498. <td>navy</td>
  13499. </tr>
  13500. <tr>
  13501. <td>color</td>
  13502. <td>gray</td>
  13503. </tr>
  13504. <tr>
  13505. <td>color</td>
  13506. <td>saddlebrown</td>
  13507. </tr>
  13508. <tr>
  13509. <td>color</td>
  13510. <td>paleturquoise</td>
  13511. </tr>
  13512. <tr>
  13513. <td>color</td>
  13514. <td>mistyrose</td>
  13515. </tr>
  13516. <tr>
  13517. <td>color</td>
  13518. <td>indigo</td>
  13519. </tr>
  13520. </tbody>
  13521. </table>
  13522. <h2 id="tocslistswiplimit">ListsWiplimit</h2>
  13523. <p><a id="schemalistswiplimit"></a></p>
  13524. <pre class="highlight tab tab-json"><code>{
  13525. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  13526. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  13527. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  13528. }
  13529. </code></pre>
  13530. <h3 id="properties">Properties</h3>
  13531. <table>
  13532. <thead>
  13533. <tr>
  13534. <th>Name</th>
  13535. <th>Type</th>
  13536. <th>Required</th>
  13537. <th>Restrictions</th>
  13538. <th>Description</th>
  13539. </tr>
  13540. </thead>
  13541. <tbody>
  13542. <tr>
  13543. <td>value</td>
  13544. <td>number</td>
  13545. <td>true</td>
  13546. <td>none</td>
  13547. <td>value of the WIP</td>
  13548. </tr>
  13549. <tr>
  13550. <td>enabled</td>
  13551. <td>boolean</td>
  13552. <td>true</td>
  13553. <td>none</td>
  13554. <td>is the WIP enabled</td>
  13555. </tr>
  13556. <tr>
  13557. <td>soft</td>
  13558. <td>boolean</td>
  13559. <td>true</td>
  13560. <td>none</td>
  13561. <td>is the WIP a soft or hard requirement</td>
  13562. </tr>
  13563. </tbody>
  13564. </table>
  13565. <h2 id="tocsswimlanes">Swimlanes</h2>
  13566. <p><a id="schemaswimlanes"></a></p>
  13567. <pre class="highlight tab tab-json"><code>{
  13568. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13569. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  13570. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  13571. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13572. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13573. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  13574. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  13575. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  13576. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13577. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13578. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  13579. }
  13580. </code></pre>
  13581. <p><em>A swimlane is an line in the kaban board.</em></p>
  13582. <h3 id="properties">Properties</h3>
  13583. <table>
  13584. <thead>
  13585. <tr>
  13586. <th>Name</th>
  13587. <th>Type</th>
  13588. <th>Required</th>
  13589. <th>Restrictions</th>
  13590. <th>Description</th>
  13591. </tr>
  13592. </thead>
  13593. <tbody>
  13594. <tr>
  13595. <td>title</td>
  13596. <td>string</td>
  13597. <td>true</td>
  13598. <td>none</td>
  13599. <td>the title of the swimlane</td>
  13600. </tr>
  13601. <tr>
  13602. <td>archived</td>
  13603. <td>boolean</td>
  13604. <td>true</td>
  13605. <td>none</td>
  13606. <td>is the swimlane archived?</td>
  13607. </tr>
  13608. <tr>
  13609. <td>archivedAt</td>
  13610. <td>string|null</td>
  13611. <td>false</td>
  13612. <td>none</td>
  13613. <td>latest archiving date of the swimlane</td>
  13614. </tr>
  13615. <tr>
  13616. <td>boardId</td>
  13617. <td>string</td>
  13618. <td>true</td>
  13619. <td>none</td>
  13620. <td>the ID of the board the swimlane is attached to</td>
  13621. </tr>
  13622. <tr>
  13623. <td>createdAt</td>
  13624. <td>string</td>
  13625. <td>true</td>
  13626. <td>none</td>
  13627. <td>creation date of the swimlane</td>
  13628. </tr>
  13629. <tr>
  13630. <td>sort</td>
  13631. <td>number|null</td>
  13632. <td>false</td>
  13633. <td>none</td>
  13634. <td>the sort value of the swimlane</td>
  13635. </tr>
  13636. <tr>
  13637. <td>color</td>
  13638. <td>string|null</td>
  13639. <td>false</td>
  13640. <td>none</td>
  13641. <td>the color of the swimlane</td>
  13642. </tr>
  13643. <tr>
  13644. <td>updatedAt</td>
  13645. <td>string|null</td>
  13646. <td>false</td>
  13647. <td>none</td>
  13648. <td>when was the swimlane last edited</td>
  13649. </tr>
  13650. <tr>
  13651. <td>modifiedAt</td>
  13652. <td>string</td>
  13653. <td>true</td>
  13654. <td>none</td>
  13655. <td>none</td>
  13656. </tr>
  13657. <tr>
  13658. <td>type</td>
  13659. <td>string</td>
  13660. <td>true</td>
  13661. <td>none</td>
  13662. <td>The type of swimlane</td>
  13663. </tr>
  13664. <tr>
  13665. <td>collapsed</td>
  13666. <td>boolean</td>
  13667. <td>true</td>
  13668. <td>none</td>
  13669. <td>is the swimlane collapsed</td>
  13670. </tr>
  13671. </tbody>
  13672. </table>
  13673. <h4 id="enumerated-values">Enumerated Values</h4>
  13674. <table>
  13675. <thead>
  13676. <tr>
  13677. <th>Property</th>
  13678. <th>Value</th>
  13679. </tr>
  13680. </thead>
  13681. <tbody>
  13682. <tr>
  13683. <td>color</td>
  13684. <td>white</td>
  13685. </tr>
  13686. <tr>
  13687. <td>color</td>
  13688. <td>green</td>
  13689. </tr>
  13690. <tr>
  13691. <td>color</td>
  13692. <td>yellow</td>
  13693. </tr>
  13694. <tr>
  13695. <td>color</td>
  13696. <td>orange</td>
  13697. </tr>
  13698. <tr>
  13699. <td>color</td>
  13700. <td>red</td>
  13701. </tr>
  13702. <tr>
  13703. <td>color</td>
  13704. <td>purple</td>
  13705. </tr>
  13706. <tr>
  13707. <td>color</td>
  13708. <td>blue</td>
  13709. </tr>
  13710. <tr>
  13711. <td>color</td>
  13712. <td>sky</td>
  13713. </tr>
  13714. <tr>
  13715. <td>color</td>
  13716. <td>lime</td>
  13717. </tr>
  13718. <tr>
  13719. <td>color</td>
  13720. <td>pink</td>
  13721. </tr>
  13722. <tr>
  13723. <td>color</td>
  13724. <td>black</td>
  13725. </tr>
  13726. <tr>
  13727. <td>color</td>
  13728. <td>silver</td>
  13729. </tr>
  13730. <tr>
  13731. <td>color</td>
  13732. <td>peachpuff</td>
  13733. </tr>
  13734. <tr>
  13735. <td>color</td>
  13736. <td>crimson</td>
  13737. </tr>
  13738. <tr>
  13739. <td>color</td>
  13740. <td>plum</td>
  13741. </tr>
  13742. <tr>
  13743. <td>color</td>
  13744. <td>darkgreen</td>
  13745. </tr>
  13746. <tr>
  13747. <td>color</td>
  13748. <td>slateblue</td>
  13749. </tr>
  13750. <tr>
  13751. <td>color</td>
  13752. <td>magenta</td>
  13753. </tr>
  13754. <tr>
  13755. <td>color</td>
  13756. <td>gold</td>
  13757. </tr>
  13758. <tr>
  13759. <td>color</td>
  13760. <td>navy</td>
  13761. </tr>
  13762. <tr>
  13763. <td>color</td>
  13764. <td>gray</td>
  13765. </tr>
  13766. <tr>
  13767. <td>color</td>
  13768. <td>saddlebrown</td>
  13769. </tr>
  13770. <tr>
  13771. <td>color</td>
  13772. <td>paleturquoise</td>
  13773. </tr>
  13774. <tr>
  13775. <td>color</td>
  13776. <td>mistyrose</td>
  13777. </tr>
  13778. <tr>
  13779. <td>color</td>
  13780. <td>indigo</td>
  13781. </tr>
  13782. </tbody>
  13783. </table>
  13784. </div>
  13785. <div class="dark-box">
  13786. <div class="lang-selector">
  13787. <a href="#" data-language-name="shell">Shell</a>
  13788. <a href="#" data-language-name="http">HTTP</a>
  13789. <a href="#" data-language-name="javascript">JavaScript</a>
  13790. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  13791. <a href="#" data-language-name="ruby">Ruby</a>
  13792. <a href="#" data-language-name="python">Python</a>
  13793. <a href="#" data-language-name="java">Java</a>
  13794. <a href="#" data-language-name="go">Go</a>
  13795. </div>
  13796. </div>
  13797. </div>
  13798. </body>
  13799. </html>