wekan.html 622 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559
  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.92">Wekan REST API v7.92</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.92</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/json'</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/json
  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/json'</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/json'</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/json'</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/json'</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/json"</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-json"><code>{
  1736. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>,
  1737. <span class="hljs-attr">"password"</span>: <span class="hljs-string">"pa$$word"</span>
  1738. }
  1739. </code></pre>
  1740. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1741. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1742. </code></pre>
  1743. <h3 id="login-parameters">Parameters</h3>
  1744. <table>
  1745. <thead>
  1746. <tr>
  1747. <th>Name</th>
  1748. <th>In</th>
  1749. <th>Type</th>
  1750. <th>Required</th>
  1751. <th>Description</th>
  1752. </tr>
  1753. </thead>
  1754. <tbody>
  1755. <tr>
  1756. <td>body</td>
  1757. <td>body</td>
  1758. <td>object</td>
  1759. <td>true</td>
  1760. <td>Login credentials</td>
  1761. </tr>
  1762. <tr>
  1763. <td>» username</td>
  1764. <td>body</td>
  1765. <td>string</td>
  1766. <td>true</td>
  1767. <td>Your username</td>
  1768. </tr>
  1769. <tr>
  1770. <td>» password</td>
  1771. <td>body</td>
  1772. <td>string(password)</td>
  1773. <td>true</td>
  1774. <td>Your password</td>
  1775. </tr>
  1776. </tbody>
  1777. </table>
  1778. <blockquote>
  1779. <p>Example responses</p>
  1780. </blockquote>
  1781. <blockquote>
  1782. <p>200 Response</p>
  1783. </blockquote>
  1784. <h3 id="login-responses">Responses</h3>
  1785. <table>
  1786. <thead>
  1787. <tr>
  1788. <th>Status</th>
  1789. <th>Meaning</th>
  1790. <th>Description</th>
  1791. <th>Schema</th>
  1792. </tr>
  1793. </thead>
  1794. <tbody>
  1795. <tr>
  1796. <td>200</td>
  1797. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1798. <td>Successful authentication</td>
  1799. <td>Inline</td>
  1800. </tr>
  1801. <tr>
  1802. <td>400</td>
  1803. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1804. <td>Error in authentication</td>
  1805. <td>Inline</td>
  1806. </tr>
  1807. <tr>
  1808. <td>default</td>
  1809. <td>Default</td>
  1810. <td>Error in authentication</td>
  1811. <td>None</td>
  1812. </tr>
  1813. </tbody>
  1814. </table>
  1815. <h3 id="login-responseschema">Response Schema</h3>
  1816. <p>Status Code <strong>200</strong></p>
  1817. <table>
  1818. <thead>
  1819. <tr>
  1820. <th>Name</th>
  1821. <th>Type</th>
  1822. <th>Required</th>
  1823. <th>Restrictions</th>
  1824. <th>Description</th>
  1825. </tr>
  1826. </thead>
  1827. <tbody>
  1828. <tr>
  1829. <td>» id</td>
  1830. <td>string</td>
  1831. <td>true</td>
  1832. <td>none</td>
  1833. <td>User ID</td>
  1834. </tr>
  1835. <tr>
  1836. <td>» token</td>
  1837. <td>string</td>
  1838. <td>true</td>
  1839. <td>none</td>
  1840. <td>Authentication token</td>
  1841. </tr>
  1842. <tr>
  1843. <td>» tokenExpires</td>
  1844. <td>string(date-time)</td>
  1845. <td>true</td>
  1846. <td>none</td>
  1847. <td>Token expiration date</td>
  1848. </tr>
  1849. </tbody>
  1850. </table>
  1851. <p>Status Code <strong>400</strong></p>
  1852. <table>
  1853. <thead>
  1854. <tr>
  1855. <th>Name</th>
  1856. <th>Type</th>
  1857. <th>Required</th>
  1858. <th>Restrictions</th>
  1859. <th>Description</th>
  1860. </tr>
  1861. </thead>
  1862. <tbody>
  1863. <tr>
  1864. <td>» error</td>
  1865. <td>string</td>
  1866. <td>false</td>
  1867. <td>none</td>
  1868. <td>none</td>
  1869. </tr>
  1870. <tr>
  1871. <td>» reason</td>
  1872. <td>string</td>
  1873. <td>false</td>
  1874. <td>none</td>
  1875. <td>none</td>
  1876. </tr>
  1877. </tbody>
  1878. </table>
  1879. <aside class="success">
  1880. This operation does not require authentication
  1881. </aside>
  1882. <h2 id="register">register</h2>
  1883. <p><a id="opIdregister"></a></p>
  1884. <blockquote>
  1885. <p>Code samples</p>
  1886. </blockquote>
  1887. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1888. curl -X POST /users/register \
  1889. -H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
  1890. -H <span class="hljs-string">'Accept: */*'</span>
  1891. </code></pre>
  1892. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/register</span> HTTP/1.1
  1893. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/x-www-form-urlencoded
  1894. <span class="hljs-attribute">Accept</span>: */*
  1895. <span class="undefined"></span></span></code></pre>
  1896. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1897. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1898. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1899. };
  1900. $.ajax({
  1901. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/register'</span>,
  1902. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1903. <span class="hljs-attr">headers</span>: headers,
  1904. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1905. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1906. }
  1907. })
  1908. </code></pre>
  1909. <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>);
  1910. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1911. "username": "string",
  1912. "password": "pa$$word",
  1913. "email": "string"
  1914. }'</span>;
  1915. <span class="hljs-keyword">const</span> headers = {
  1916. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1917. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1918. };
  1919. fetch(<span class="hljs-string">'/users/register'</span>,
  1920. {
  1921. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1922. <span class="hljs-attr">body</span>: inputBody,
  1923. <span class="hljs-attr">headers</span>: headers
  1924. })
  1925. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1926. <span class="hljs-keyword">return</span> res.json();
  1927. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1928. <span class="hljs-built_in">console</span>.log(body);
  1929. });
  1930. </code></pre>
  1931. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1932. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1933. headers = {
  1934. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1935. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1936. }
  1937. result = RestClient.post <span class="hljs-string">'/users/register'</span>,
  1938. <span class="hljs-symbol">params:</span> {
  1939. }, <span class="hljs-symbol">headers:</span> headers
  1940. p JSON.parse(result)
  1941. </code></pre>
  1942. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1943. headers = {
  1944. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1945. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  1946. }
  1947. r = requests.post(<span class="hljs-string">'/users/register'</span>, params={
  1948. }, headers = headers)
  1949. <span class="hljs-keyword">print</span> r.json()
  1950. </code></pre>
  1951. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/register"</span>);
  1952. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1953. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  1954. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1955. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1956. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1957. String inputLine;
  1958. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1959. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1960. response.append(inputLine);
  1961. }
  1962. in.close();
  1963. System.out.println(response.toString());
  1964. </code></pre>
  1965. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1966. <span class="hljs-keyword">import</span> (
  1967. <span class="hljs-string">"bytes"</span>
  1968. <span class="hljs-string">"net/http"</span>
  1969. )
  1970. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1971. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1972. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/x-www-form-urlencoded"</span>},
  1973. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  1974. }
  1975. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1976. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/register"</span>, data)
  1977. req.Header = headers
  1978. client := &amp;http.Client{}
  1979. resp, err := client.Do(req)
  1980. <span class="hljs-comment">// ...</span>
  1981. }
  1982. </code></pre>
  1983. <p><code>POST /users/register</code></p>
  1984. <p><em>Register with REST API</em></p>
  1985. <p>Notes:</p>
  1986. <ul>
  1987. <li>You will need to provide the token for any of the authenticated methods.</li>
  1988. </ul>
  1989. <blockquote>
  1990. <p>Body parameter</p>
  1991. </blockquote>
  1992. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1993. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1994. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  1995. </code></pre>
  1996. <h3 id="register-parameters">Parameters</h3>
  1997. <table>
  1998. <thead>
  1999. <tr>
  2000. <th>Name</th>
  2001. <th>In</th>
  2002. <th>Type</th>
  2003. <th>Required</th>
  2004. <th>Description</th>
  2005. </tr>
  2006. </thead>
  2007. <tbody>
  2008. <tr>
  2009. <td>body</td>
  2010. <td>body</td>
  2011. <td>object</td>
  2012. <td>false</td>
  2013. <td>none</td>
  2014. </tr>
  2015. <tr>
  2016. <td>» username</td>
  2017. <td>body</td>
  2018. <td>string</td>
  2019. <td>true</td>
  2020. <td>Your username</td>
  2021. </tr>
  2022. <tr>
  2023. <td>» password</td>
  2024. <td>body</td>
  2025. <td>string(password)</td>
  2026. <td>true</td>
  2027. <td>Your password</td>
  2028. </tr>
  2029. <tr>
  2030. <td>» email</td>
  2031. <td>body</td>
  2032. <td>string</td>
  2033. <td>true</td>
  2034. <td>Your email</td>
  2035. </tr>
  2036. </tbody>
  2037. </table>
  2038. <blockquote>
  2039. <p>Example responses</p>
  2040. </blockquote>
  2041. <blockquote>
  2042. <p>200 Response</p>
  2043. </blockquote>
  2044. <h3 id="register-responses">Responses</h3>
  2045. <table>
  2046. <thead>
  2047. <tr>
  2048. <th>Status</th>
  2049. <th>Meaning</th>
  2050. <th>Description</th>
  2051. <th>Schema</th>
  2052. </tr>
  2053. </thead>
  2054. <tbody>
  2055. <tr>
  2056. <td>200</td>
  2057. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2058. <td>Successful registration</td>
  2059. <td>Inline</td>
  2060. </tr>
  2061. <tr>
  2062. <td>400</td>
  2063. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2064. <td>Error in registration</td>
  2065. <td>Inline</td>
  2066. </tr>
  2067. <tr>
  2068. <td>default</td>
  2069. <td>Default</td>
  2070. <td>Error in registration</td>
  2071. <td>None</td>
  2072. </tr>
  2073. </tbody>
  2074. </table>
  2075. <h3 id="register-responseschema">Response Schema</h3>
  2076. <p>Status Code <strong>200</strong></p>
  2077. <table>
  2078. <thead>
  2079. <tr>
  2080. <th>Name</th>
  2081. <th>Type</th>
  2082. <th>Required</th>
  2083. <th>Restrictions</th>
  2084. <th>Description</th>
  2085. </tr>
  2086. </thead>
  2087. <tbody>
  2088. <tr>
  2089. <td>» id</td>
  2090. <td>string</td>
  2091. <td>false</td>
  2092. <td>none</td>
  2093. <td>none</td>
  2094. </tr>
  2095. <tr>
  2096. <td>» token</td>
  2097. <td>string</td>
  2098. <td>false</td>
  2099. <td>none</td>
  2100. <td>none</td>
  2101. </tr>
  2102. <tr>
  2103. <td>» tokenExpires</td>
  2104. <td>string</td>
  2105. <td>false</td>
  2106. <td>none</td>
  2107. <td>none</td>
  2108. </tr>
  2109. </tbody>
  2110. </table>
  2111. <p>Status Code <strong>400</strong></p>
  2112. <table>
  2113. <thead>
  2114. <tr>
  2115. <th>Name</th>
  2116. <th>Type</th>
  2117. <th>Required</th>
  2118. <th>Restrictions</th>
  2119. <th>Description</th>
  2120. </tr>
  2121. </thead>
  2122. <tbody>
  2123. <tr>
  2124. <td>» error</td>
  2125. <td>number</td>
  2126. <td>false</td>
  2127. <td>none</td>
  2128. <td>none</td>
  2129. </tr>
  2130. <tr>
  2131. <td>» reason</td>
  2132. <td>string</td>
  2133. <td>false</td>
  2134. <td>none</td>
  2135. <td>none</td>
  2136. </tr>
  2137. </tbody>
  2138. </table>
  2139. <aside class="success">
  2140. This operation does not require authentication
  2141. </aside>
  2142. <h1 id="wekan-rest-api-boards">Boards</h1>
  2143. <h2 id="exportjson">exportJson</h2>
  2144. <p><a id="opIdexportJson"></a></p>
  2145. <blockquote>
  2146. <p>Code samples</p>
  2147. </blockquote>
  2148. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2149. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  2150. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2151. </code></pre>
  2152. <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
  2153. <span class="undefined"></span></code></pre>
  2154. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2155. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2156. };
  2157. $.ajax({
  2158. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/export'</span>,
  2159. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2160. <span class="hljs-attr">headers</span>: headers,
  2161. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2162. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2163. }
  2164. })
  2165. </code></pre>
  2166. <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>);
  2167. <span class="hljs-keyword">const</span> headers = {
  2168. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2169. };
  2170. fetch(<span class="hljs-string">'/api/boards/{board}/export'</span>,
  2171. {
  2172. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2173. <span class="hljs-attr">headers</span>: headers
  2174. })
  2175. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2176. <span class="hljs-keyword">return</span> res.json();
  2177. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2178. <span class="hljs-built_in">console</span>.log(body);
  2179. });
  2180. </code></pre>
  2181. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2182. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2183. headers = {
  2184. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2185. }
  2186. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/export'</span>,
  2187. <span class="hljs-symbol">params:</span> {
  2188. }, <span class="hljs-symbol">headers:</span> headers
  2189. p JSON.parse(result)
  2190. </code></pre>
  2191. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2192. headers = {
  2193. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2194. }
  2195. r = requests.get(<span class="hljs-string">'/api/boards/{board}/export'</span>, params={
  2196. }, headers = headers)
  2197. <span class="hljs-keyword">print</span> r.json()
  2198. </code></pre>
  2199. <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>);
  2200. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2201. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2202. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2203. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2204. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2205. String inputLine;
  2206. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2207. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2208. response.append(inputLine);
  2209. }
  2210. in.close();
  2211. System.out.println(response.toString());
  2212. </code></pre>
  2213. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2214. <span class="hljs-keyword">import</span> (
  2215. <span class="hljs-string">"bytes"</span>
  2216. <span class="hljs-string">"net/http"</span>
  2217. )
  2218. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2219. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2220. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2221. }
  2222. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2223. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/export"</span>, data)
  2224. req.Header = headers
  2225. client := &amp;http.Client{}
  2226. resp, err := client.Do(req)
  2227. <span class="hljs-comment">// ...</span>
  2228. }
  2229. </code></pre>
  2230. <p><code>GET /api/boards/{board}/export</code></p>
  2231. <p><em>This route is used to export the board to a json file format.</em></p>
  2232. <p>If user is already logged-in, pass loginToken as param
  2233. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  2234. <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>
  2235. for detailed explanations</p>
  2236. <h3 id="exportjson-parameters">Parameters</h3>
  2237. <table>
  2238. <thead>
  2239. <tr>
  2240. <th>Name</th>
  2241. <th>In</th>
  2242. <th>Type</th>
  2243. <th>Required</th>
  2244. <th>Description</th>
  2245. </tr>
  2246. </thead>
  2247. <tbody>
  2248. <tr>
  2249. <td>board</td>
  2250. <td>path</td>
  2251. <td>string</td>
  2252. <td>true</td>
  2253. <td>the ID of the board we are exporting</td>
  2254. </tr>
  2255. </tbody>
  2256. </table>
  2257. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2258. <p><strong>board</strong>: the ID of the board we are exporting</p>
  2259. <h3 id="exportjson-responses">Responses</h3>
  2260. <table>
  2261. <thead>
  2262. <tr>
  2263. <th>Status</th>
  2264. <th>Meaning</th>
  2265. <th>Description</th>
  2266. <th>Schema</th>
  2267. </tr>
  2268. </thead>
  2269. <tbody>
  2270. <tr>
  2271. <td>200</td>
  2272. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2273. <td>200 response</td>
  2274. <td>None</td>
  2275. </tr>
  2276. </tbody>
  2277. </table>
  2278. <aside class="warning">
  2279. To perform this operation, you must be authenticated by means of one of the following methods:
  2280. UserSecurity
  2281. </aside>
  2282. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  2283. <h2 id="get_all_checklists">get_all_checklists</h2>
  2284. <p><a id="opIdget_all_checklists"></a></p>
  2285. <blockquote>
  2286. <p>Code samples</p>
  2287. </blockquote>
  2288. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2289. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  2290. -H <span class="hljs-string">'Accept: application/json'</span> \
  2291. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2292. </code></pre>
  2293. <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
  2294. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2295. <span class="undefined"></span></span></code></pre>
  2296. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2297. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2298. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2299. };
  2300. $.ajax({
  2301. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2302. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2303. <span class="hljs-attr">headers</span>: headers,
  2304. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2305. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2306. }
  2307. })
  2308. </code></pre>
  2309. <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>);
  2310. <span class="hljs-keyword">const</span> headers = {
  2311. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2312. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2313. };
  2314. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2315. {
  2316. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2317. <span class="hljs-attr">headers</span>: headers
  2318. })
  2319. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2320. <span class="hljs-keyword">return</span> res.json();
  2321. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2322. <span class="hljs-built_in">console</span>.log(body);
  2323. });
  2324. </code></pre>
  2325. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2326. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2327. headers = {
  2328. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2329. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2330. }
  2331. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2332. <span class="hljs-symbol">params:</span> {
  2333. }, <span class="hljs-symbol">headers:</span> headers
  2334. p JSON.parse(result)
  2335. </code></pre>
  2336. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2337. headers = {
  2338. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2339. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2340. }
  2341. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  2342. }, headers = headers)
  2343. <span class="hljs-keyword">print</span> r.json()
  2344. </code></pre>
  2345. <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>);
  2346. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2347. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2348. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2349. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2350. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2351. String inputLine;
  2352. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2353. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2354. response.append(inputLine);
  2355. }
  2356. in.close();
  2357. System.out.println(response.toString());
  2358. </code></pre>
  2359. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2360. <span class="hljs-keyword">import</span> (
  2361. <span class="hljs-string">"bytes"</span>
  2362. <span class="hljs-string">"net/http"</span>
  2363. )
  2364. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2365. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2366. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2367. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2368. }
  2369. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2370. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  2371. req.Header = headers
  2372. client := &amp;http.Client{}
  2373. resp, err := client.Do(req)
  2374. <span class="hljs-comment">// ...</span>
  2375. }
  2376. </code></pre>
  2377. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  2378. <p><em>Get the list of checklists attached to a card</em></p>
  2379. <h3 id="get_all_checklists-parameters">Parameters</h3>
  2380. <table>
  2381. <thead>
  2382. <tr>
  2383. <th>Name</th>
  2384. <th>In</th>
  2385. <th>Type</th>
  2386. <th>Required</th>
  2387. <th>Description</th>
  2388. </tr>
  2389. </thead>
  2390. <tbody>
  2391. <tr>
  2392. <td>board</td>
  2393. <td>path</td>
  2394. <td>string</td>
  2395. <td>true</td>
  2396. <td>the board ID</td>
  2397. </tr>
  2398. <tr>
  2399. <td>card</td>
  2400. <td>path</td>
  2401. <td>string</td>
  2402. <td>true</td>
  2403. <td>the card ID</td>
  2404. </tr>
  2405. </tbody>
  2406. </table>
  2407. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2408. <p><strong>board</strong>: the board ID</p>
  2409. <p><strong>card</strong>: the card ID</p>
  2410. <blockquote>
  2411. <p>Example responses</p>
  2412. </blockquote>
  2413. <blockquote>
  2414. <p>200 Response</p>
  2415. </blockquote>
  2416. <pre class="highlight tab tab-json"><code>[
  2417. {
  2418. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2419. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  2420. }
  2421. ]
  2422. </code></pre>
  2423. <h3 id="get_all_checklists-responses">Responses</h3>
  2424. <table>
  2425. <thead>
  2426. <tr>
  2427. <th>Status</th>
  2428. <th>Meaning</th>
  2429. <th>Description</th>
  2430. <th>Schema</th>
  2431. </tr>
  2432. </thead>
  2433. <tbody>
  2434. <tr>
  2435. <td>200</td>
  2436. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2437. <td>200 response</td>
  2438. <td>Inline</td>
  2439. </tr>
  2440. </tbody>
  2441. </table>
  2442. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  2443. <p>Status Code <strong>200</strong></p>
  2444. <table>
  2445. <thead>
  2446. <tr>
  2447. <th>Name</th>
  2448. <th>Type</th>
  2449. <th>Required</th>
  2450. <th>Restrictions</th>
  2451. <th>Description</th>
  2452. </tr>
  2453. </thead>
  2454. <tbody>
  2455. <tr>
  2456. <td>» _id</td>
  2457. <td>string</td>
  2458. <td>false</td>
  2459. <td>none</td>
  2460. <td>none</td>
  2461. </tr>
  2462. <tr>
  2463. <td>» title</td>
  2464. <td>string</td>
  2465. <td>false</td>
  2466. <td>none</td>
  2467. <td>none</td>
  2468. </tr>
  2469. </tbody>
  2470. </table>
  2471. <aside class="warning">
  2472. To perform this operation, you must be authenticated by means of one of the following methods:
  2473. UserSecurity
  2474. </aside>
  2475. <h2 id="new_checklist">new_checklist</h2>
  2476. <p><a id="opIdnew_checklist"></a></p>
  2477. <blockquote>
  2478. <p>Code samples</p>
  2479. </blockquote>
  2480. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2481. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  2482. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  2483. -H <span class="hljs-string">'Accept: application/json'</span> \
  2484. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2485. </code></pre>
  2486. <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
  2487. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2488. Accept: application/json
  2489. </span></code></pre>
  2490. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2491. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2492. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2493. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2494. };
  2495. $.ajax({
  2496. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2497. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  2498. <span class="hljs-attr">headers</span>: headers,
  2499. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2500. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2501. }
  2502. })
  2503. </code></pre>
  2504. <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>);
  2505. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  2506. "title": "string",
  2507. "items": "string"
  2508. }'</span>;
  2509. <span class="hljs-keyword">const</span> headers = {
  2510. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2511. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2512. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2513. };
  2514. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2515. {
  2516. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  2517. <span class="hljs-attr">body</span>: inputBody,
  2518. <span class="hljs-attr">headers</span>: headers
  2519. })
  2520. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2521. <span class="hljs-keyword">return</span> res.json();
  2522. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2523. <span class="hljs-built_in">console</span>.log(body);
  2524. });
  2525. </code></pre>
  2526. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2527. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2528. headers = {
  2529. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  2530. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2531. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2532. }
  2533. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  2534. <span class="hljs-symbol">params:</span> {
  2535. }, <span class="hljs-symbol">headers:</span> headers
  2536. p JSON.parse(result)
  2537. </code></pre>
  2538. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2539. headers = {
  2540. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  2541. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2542. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2543. }
  2544. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  2545. }, headers = headers)
  2546. <span class="hljs-keyword">print</span> r.json()
  2547. </code></pre>
  2548. <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>);
  2549. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2550. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  2551. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2552. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2553. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2554. String inputLine;
  2555. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2556. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2557. response.append(inputLine);
  2558. }
  2559. in.close();
  2560. System.out.println(response.toString());
  2561. </code></pre>
  2562. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2563. <span class="hljs-keyword">import</span> (
  2564. <span class="hljs-string">"bytes"</span>
  2565. <span class="hljs-string">"net/http"</span>
  2566. )
  2567. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2568. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2569. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  2570. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2571. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2572. }
  2573. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2574. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  2575. req.Header = headers
  2576. client := &amp;http.Client{}
  2577. resp, err := client.Do(req)
  2578. <span class="hljs-comment">// ...</span>
  2579. }
  2580. </code></pre>
  2581. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  2582. <p><em>create a new checklist</em></p>
  2583. <blockquote>
  2584. <p>Body parameter</p>
  2585. </blockquote>
  2586. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2587. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  2588. </code></pre>
  2589. <h3 id="new_checklist-parameters">Parameters</h3>
  2590. <table>
  2591. <thead>
  2592. <tr>
  2593. <th>Name</th>
  2594. <th>In</th>
  2595. <th>Type</th>
  2596. <th>Required</th>
  2597. <th>Description</th>
  2598. </tr>
  2599. </thead>
  2600. <tbody>
  2601. <tr>
  2602. <td>board</td>
  2603. <td>path</td>
  2604. <td>string</td>
  2605. <td>true</td>
  2606. <td>the board ID</td>
  2607. </tr>
  2608. <tr>
  2609. <td>card</td>
  2610. <td>path</td>
  2611. <td>string</td>
  2612. <td>true</td>
  2613. <td>the card ID</td>
  2614. </tr>
  2615. <tr>
  2616. <td>body</td>
  2617. <td>body</td>
  2618. <td>object</td>
  2619. <td>false</td>
  2620. <td>none</td>
  2621. </tr>
  2622. <tr>
  2623. <td>» title</td>
  2624. <td>body</td>
  2625. <td>string</td>
  2626. <td>true</td>
  2627. <td>the title of the new checklist</td>
  2628. </tr>
  2629. <tr>
  2630. <td>» items</td>
  2631. <td>body</td>
  2632. <td>string</td>
  2633. <td>false</td>
  2634. <td>the list of items on the new checklist</td>
  2635. </tr>
  2636. </tbody>
  2637. </table>
  2638. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2639. <p><strong>board</strong>: the board ID</p>
  2640. <p><strong>card</strong>: the card ID</p>
  2641. <blockquote>
  2642. <p>Example responses</p>
  2643. </blockquote>
  2644. <blockquote>
  2645. <p>200 Response</p>
  2646. </blockquote>
  2647. <pre class="highlight tab tab-json"><code>{
  2648. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  2649. }
  2650. </code></pre>
  2651. <h3 id="new_checklist-responses">Responses</h3>
  2652. <table>
  2653. <thead>
  2654. <tr>
  2655. <th>Status</th>
  2656. <th>Meaning</th>
  2657. <th>Description</th>
  2658. <th>Schema</th>
  2659. </tr>
  2660. </thead>
  2661. <tbody>
  2662. <tr>
  2663. <td>200</td>
  2664. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2665. <td>200 response</td>
  2666. <td>Inline</td>
  2667. </tr>
  2668. </tbody>
  2669. </table>
  2670. <h3 id="new_checklist-responseschema">Response Schema</h3>
  2671. <p>Status Code <strong>200</strong></p>
  2672. <table>
  2673. <thead>
  2674. <tr>
  2675. <th>Name</th>
  2676. <th>Type</th>
  2677. <th>Required</th>
  2678. <th>Restrictions</th>
  2679. <th>Description</th>
  2680. </tr>
  2681. </thead>
  2682. <tbody>
  2683. <tr>
  2684. <td>» _id</td>
  2685. <td>string</td>
  2686. <td>false</td>
  2687. <td>none</td>
  2688. <td>none</td>
  2689. </tr>
  2690. </tbody>
  2691. </table>
  2692. <aside class="warning">
  2693. To perform this operation, you must be authenticated by means of one of the following methods:
  2694. UserSecurity
  2695. </aside>
  2696. <h2 id="get_checklist">get_checklist</h2>
  2697. <p><a id="opIdget_checklist"></a></p>
  2698. <blockquote>
  2699. <p>Code samples</p>
  2700. </blockquote>
  2701. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2702. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  2703. -H <span class="hljs-string">'Accept: application/json'</span> \
  2704. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2705. </code></pre>
  2706. <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
  2707. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2708. <span class="undefined"></span></span></code></pre>
  2709. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2710. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2711. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2712. };
  2713. $.ajax({
  2714. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2715. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2716. <span class="hljs-attr">headers</span>: headers,
  2717. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2718. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2719. }
  2720. })
  2721. </code></pre>
  2722. <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>);
  2723. <span class="hljs-keyword">const</span> headers = {
  2724. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2725. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2726. };
  2727. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2728. {
  2729. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2730. <span class="hljs-attr">headers</span>: headers
  2731. })
  2732. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2733. <span class="hljs-keyword">return</span> res.json();
  2734. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2735. <span class="hljs-built_in">console</span>.log(body);
  2736. });
  2737. </code></pre>
  2738. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2739. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2740. headers = {
  2741. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2742. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2743. }
  2744. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2745. <span class="hljs-symbol">params:</span> {
  2746. }, <span class="hljs-symbol">headers:</span> headers
  2747. p JSON.parse(result)
  2748. </code></pre>
  2749. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2750. headers = {
  2751. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2752. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2753. }
  2754. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  2755. }, headers = headers)
  2756. <span class="hljs-keyword">print</span> r.json()
  2757. </code></pre>
  2758. <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>);
  2759. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2760. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2761. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2762. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2763. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2764. String inputLine;
  2765. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2766. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2767. response.append(inputLine);
  2768. }
  2769. in.close();
  2770. System.out.println(response.toString());
  2771. </code></pre>
  2772. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2773. <span class="hljs-keyword">import</span> (
  2774. <span class="hljs-string">"bytes"</span>
  2775. <span class="hljs-string">"net/http"</span>
  2776. )
  2777. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2778. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2779. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2780. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2781. }
  2782. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2783. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  2784. req.Header = headers
  2785. client := &amp;http.Client{}
  2786. resp, err := client.Do(req)
  2787. <span class="hljs-comment">// ...</span>
  2788. }
  2789. </code></pre>
  2790. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  2791. <p><em>Get a checklist</em></p>
  2792. <h3 id="get_checklist-parameters">Parameters</h3>
  2793. <table>
  2794. <thead>
  2795. <tr>
  2796. <th>Name</th>
  2797. <th>In</th>
  2798. <th>Type</th>
  2799. <th>Required</th>
  2800. <th>Description</th>
  2801. </tr>
  2802. </thead>
  2803. <tbody>
  2804. <tr>
  2805. <td>board</td>
  2806. <td>path</td>
  2807. <td>string</td>
  2808. <td>true</td>
  2809. <td>the board ID</td>
  2810. </tr>
  2811. <tr>
  2812. <td>card</td>
  2813. <td>path</td>
  2814. <td>string</td>
  2815. <td>true</td>
  2816. <td>the card ID</td>
  2817. </tr>
  2818. <tr>
  2819. <td>checklist</td>
  2820. <td>path</td>
  2821. <td>string</td>
  2822. <td>true</td>
  2823. <td>the ID of the checklist</td>
  2824. </tr>
  2825. </tbody>
  2826. </table>
  2827. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2828. <p><strong>board</strong>: the board ID</p>
  2829. <p><strong>card</strong>: the card ID</p>
  2830. <p><strong>checklist</strong>: the ID of the checklist</p>
  2831. <blockquote>
  2832. <p>Example responses</p>
  2833. </blockquote>
  2834. <blockquote>
  2835. <p>200 Response</p>
  2836. </blockquote>
  2837. <pre class="highlight tab tab-json"><code>{
  2838. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  2839. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  2840. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  2841. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  2842. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  2843. <span class="hljs-attr">"items"</span>: [
  2844. {
  2845. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2846. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  2847. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>
  2848. }
  2849. ]
  2850. }
  2851. </code></pre>
  2852. <h3 id="get_checklist-responses">Responses</h3>
  2853. <table>
  2854. <thead>
  2855. <tr>
  2856. <th>Status</th>
  2857. <th>Meaning</th>
  2858. <th>Description</th>
  2859. <th>Schema</th>
  2860. </tr>
  2861. </thead>
  2862. <tbody>
  2863. <tr>
  2864. <td>200</td>
  2865. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2866. <td>200 response</td>
  2867. <td>Inline</td>
  2868. </tr>
  2869. </tbody>
  2870. </table>
  2871. <h3 id="get_checklist-responseschema">Response Schema</h3>
  2872. <p>Status Code <strong>200</strong></p>
  2873. <table>
  2874. <thead>
  2875. <tr>
  2876. <th>Name</th>
  2877. <th>Type</th>
  2878. <th>Required</th>
  2879. <th>Restrictions</th>
  2880. <th>Description</th>
  2881. </tr>
  2882. </thead>
  2883. <tbody>
  2884. <tr>
  2885. <td>» cardId</td>
  2886. <td>string</td>
  2887. <td>false</td>
  2888. <td>none</td>
  2889. <td>none</td>
  2890. </tr>
  2891. <tr>
  2892. <td>» title</td>
  2893. <td>string</td>
  2894. <td>false</td>
  2895. <td>none</td>
  2896. <td>none</td>
  2897. </tr>
  2898. <tr>
  2899. <td>» finishedAt</td>
  2900. <td>string</td>
  2901. <td>false</td>
  2902. <td>none</td>
  2903. <td>none</td>
  2904. </tr>
  2905. <tr>
  2906. <td>» createdAt</td>
  2907. <td>string</td>
  2908. <td>false</td>
  2909. <td>none</td>
  2910. <td>none</td>
  2911. </tr>
  2912. <tr>
  2913. <td>» sort</td>
  2914. <td>number</td>
  2915. <td>false</td>
  2916. <td>none</td>
  2917. <td>none</td>
  2918. </tr>
  2919. <tr>
  2920. <td>» items</td>
  2921. <td>[object]</td>
  2922. <td>false</td>
  2923. <td>none</td>
  2924. <td>none</td>
  2925. </tr>
  2926. <tr>
  2927. <td>»» _id</td>
  2928. <td>string</td>
  2929. <td>false</td>
  2930. <td>none</td>
  2931. <td>none</td>
  2932. </tr>
  2933. <tr>
  2934. <td>»» title</td>
  2935. <td>string</td>
  2936. <td>false</td>
  2937. <td>none</td>
  2938. <td>none</td>
  2939. </tr>
  2940. <tr>
  2941. <td>»» isFinished</td>
  2942. <td>boolean</td>
  2943. <td>false</td>
  2944. <td>none</td>
  2945. <td>none</td>
  2946. </tr>
  2947. </tbody>
  2948. </table>
  2949. <aside class="warning">
  2950. To perform this operation, you must be authenticated by means of one of the following methods:
  2951. UserSecurity
  2952. </aside>
  2953. <h2 id="delete_checklist">delete_checklist</h2>
  2954. <p><a id="opIddelete_checklist"></a></p>
  2955. <blockquote>
  2956. <p>Code samples</p>
  2957. </blockquote>
  2958. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2959. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  2960. -H <span class="hljs-string">'Accept: application/json'</span> \
  2961. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2962. </code></pre>
  2963. <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
  2964. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2965. <span class="undefined"></span></span></code></pre>
  2966. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2967. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2968. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2969. };
  2970. $.ajax({
  2971. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2972. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  2973. <span class="hljs-attr">headers</span>: headers,
  2974. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2975. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2976. }
  2977. })
  2978. </code></pre>
  2979. <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>);
  2980. <span class="hljs-keyword">const</span> headers = {
  2981. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2982. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2983. };
  2984. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  2985. {
  2986. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  2987. <span class="hljs-attr">headers</span>: headers
  2988. })
  2989. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2990. <span class="hljs-keyword">return</span> res.json();
  2991. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2992. <span class="hljs-built_in">console</span>.log(body);
  2993. });
  2994. </code></pre>
  2995. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2996. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2997. headers = {
  2998. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2999. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3000. }
  3001. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  3002. <span class="hljs-symbol">params:</span> {
  3003. }, <span class="hljs-symbol">headers:</span> headers
  3004. p JSON.parse(result)
  3005. </code></pre>
  3006. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3007. headers = {
  3008. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3009. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3010. }
  3011. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  3012. }, headers = headers)
  3013. <span class="hljs-keyword">print</span> r.json()
  3014. </code></pre>
  3015. <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>);
  3016. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3017. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  3018. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3019. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3020. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3021. String inputLine;
  3022. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3023. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3024. response.append(inputLine);
  3025. }
  3026. in.close();
  3027. System.out.println(response.toString());
  3028. </code></pre>
  3029. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3030. <span class="hljs-keyword">import</span> (
  3031. <span class="hljs-string">"bytes"</span>
  3032. <span class="hljs-string">"net/http"</span>
  3033. )
  3034. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3035. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3036. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3037. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3038. }
  3039. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3040. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  3041. req.Header = headers
  3042. client := &amp;http.Client{}
  3043. resp, err := client.Do(req)
  3044. <span class="hljs-comment">// ...</span>
  3045. }
  3046. </code></pre>
  3047. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  3048. <p><em>Delete a checklist</em></p>
  3049. <p>The checklist will be removed, not put in the recycle bin.</p>
  3050. <h3 id="delete_checklist-parameters">Parameters</h3>
  3051. <table>
  3052. <thead>
  3053. <tr>
  3054. <th>Name</th>
  3055. <th>In</th>
  3056. <th>Type</th>
  3057. <th>Required</th>
  3058. <th>Description</th>
  3059. </tr>
  3060. </thead>
  3061. <tbody>
  3062. <tr>
  3063. <td>board</td>
  3064. <td>path</td>
  3065. <td>string</td>
  3066. <td>true</td>
  3067. <td>the board ID</td>
  3068. </tr>
  3069. <tr>
  3070. <td>card</td>
  3071. <td>path</td>
  3072. <td>string</td>
  3073. <td>true</td>
  3074. <td>the card ID</td>
  3075. </tr>
  3076. <tr>
  3077. <td>checklist</td>
  3078. <td>path</td>
  3079. <td>string</td>
  3080. <td>true</td>
  3081. <td>the ID of the checklist to remove</td>
  3082. </tr>
  3083. </tbody>
  3084. </table>
  3085. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3086. <p><strong>board</strong>: the board ID</p>
  3087. <p><strong>card</strong>: the card ID</p>
  3088. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  3089. <blockquote>
  3090. <p>Example responses</p>
  3091. </blockquote>
  3092. <blockquote>
  3093. <p>200 Response</p>
  3094. </blockquote>
  3095. <pre class="highlight tab tab-json"><code>{
  3096. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  3097. }
  3098. </code></pre>
  3099. <h3 id="delete_checklist-responses">Responses</h3>
  3100. <table>
  3101. <thead>
  3102. <tr>
  3103. <th>Status</th>
  3104. <th>Meaning</th>
  3105. <th>Description</th>
  3106. <th>Schema</th>
  3107. </tr>
  3108. </thead>
  3109. <tbody>
  3110. <tr>
  3111. <td>200</td>
  3112. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3113. <td>200 response</td>
  3114. <td>Inline</td>
  3115. </tr>
  3116. </tbody>
  3117. </table>
  3118. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  3119. <p>Status Code <strong>200</strong></p>
  3120. <table>
  3121. <thead>
  3122. <tr>
  3123. <th>Name</th>
  3124. <th>Type</th>
  3125. <th>Required</th>
  3126. <th>Restrictions</th>
  3127. <th>Description</th>
  3128. </tr>
  3129. </thead>
  3130. <tbody>
  3131. <tr>
  3132. <td>» _id</td>
  3133. <td>string</td>
  3134. <td>false</td>
  3135. <td>none</td>
  3136. <td>none</td>
  3137. </tr>
  3138. </tbody>
  3139. </table>
  3140. <aside class="warning">
  3141. To perform this operation, you must be authenticated by means of one of the following methods:
  3142. UserSecurity
  3143. </aside>
  3144. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  3145. <h2 id="new_checklist_item">new_checklist_item</h2>
  3146. <p><a id="opIdnew_checklist_item"></a></p>
  3147. <blockquote>
  3148. <p>Code samples</p>
  3149. </blockquote>
  3150. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3151. curl -X POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items \
  3152. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3153. -H <span class="hljs-string">'Accept: application/json'</span> \
  3154. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3155. </code></pre>
  3156. <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
  3157. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3158. Accept: application/json
  3159. </span></code></pre>
  3160. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3161. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3162. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3163. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3164. };
  3165. $.ajax({
  3166. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  3167. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3168. <span class="hljs-attr">headers</span>: headers,
  3169. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3170. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3171. }
  3172. })
  3173. </code></pre>
  3174. <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>);
  3175. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3176. "title": "string"
  3177. }'</span>;
  3178. <span class="hljs-keyword">const</span> headers = {
  3179. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3180. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3181. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3182. };
  3183. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  3184. {
  3185. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3186. <span class="hljs-attr">body</span>: inputBody,
  3187. <span class="hljs-attr">headers</span>: headers
  3188. })
  3189. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3190. <span class="hljs-keyword">return</span> res.json();
  3191. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3192. <span class="hljs-built_in">console</span>.log(body);
  3193. });
  3194. </code></pre>
  3195. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3196. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3197. headers = {
  3198. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3199. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3200. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3201. }
  3202. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  3203. <span class="hljs-symbol">params:</span> {
  3204. }, <span class="hljs-symbol">headers:</span> headers
  3205. p JSON.parse(result)
  3206. </code></pre>
  3207. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3208. headers = {
  3209. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3210. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3211. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3212. }
  3213. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>, params={
  3214. }, headers = headers)
  3215. <span class="hljs-keyword">print</span> r.json()
  3216. </code></pre>
  3217. <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>);
  3218. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3219. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3220. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3221. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3222. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3223. String inputLine;
  3224. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3225. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3226. response.append(inputLine);
  3227. }
  3228. in.close();
  3229. System.out.println(response.toString());
  3230. </code></pre>
  3231. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3232. <span class="hljs-keyword">import</span> (
  3233. <span class="hljs-string">"bytes"</span>
  3234. <span class="hljs-string">"net/http"</span>
  3235. )
  3236. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3237. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3238. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3239. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3240. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3241. }
  3242. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3243. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items"</span>, data)
  3244. req.Header = headers
  3245. client := &amp;http.Client{}
  3246. resp, err := client.Do(req)
  3247. <span class="hljs-comment">// ...</span>
  3248. }
  3249. </code></pre>
  3250. <p><code>POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items</code></p>
  3251. <p><em>add a new item to a checklist</em></p>
  3252. <blockquote>
  3253. <p>Body parameter</p>
  3254. </blockquote>
  3255. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  3256. </code></pre>
  3257. <h3 id="new_checklist_item-parameters">Parameters</h3>
  3258. <table>
  3259. <thead>
  3260. <tr>
  3261. <th>Name</th>
  3262. <th>In</th>
  3263. <th>Type</th>
  3264. <th>Required</th>
  3265. <th>Description</th>
  3266. </tr>
  3267. </thead>
  3268. <tbody>
  3269. <tr>
  3270. <td>board</td>
  3271. <td>path</td>
  3272. <td>string</td>
  3273. <td>true</td>
  3274. <td>the board ID</td>
  3275. </tr>
  3276. <tr>
  3277. <td>card</td>
  3278. <td>path</td>
  3279. <td>string</td>
  3280. <td>true</td>
  3281. <td>the card ID</td>
  3282. </tr>
  3283. <tr>
  3284. <td>checklist</td>
  3285. <td>path</td>
  3286. <td>string</td>
  3287. <td>true</td>
  3288. <td>the ID of the checklist</td>
  3289. </tr>
  3290. <tr>
  3291. <td>body</td>
  3292. <td>body</td>
  3293. <td>object</td>
  3294. <td>false</td>
  3295. <td>none</td>
  3296. </tr>
  3297. <tr>
  3298. <td>» title</td>
  3299. <td>body</td>
  3300. <td>string</td>
  3301. <td>true</td>
  3302. <td>the title of the new item</td>
  3303. </tr>
  3304. </tbody>
  3305. </table>
  3306. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3307. <p><strong>board</strong>: the board ID</p>
  3308. <p><strong>card</strong>: the card ID</p>
  3309. <p><strong>checklist</strong>: the ID of the checklist</p>
  3310. <blockquote>
  3311. <p>Example responses</p>
  3312. </blockquote>
  3313. <blockquote>
  3314. <p>200 Response</p>
  3315. </blockquote>
  3316. <pre class="highlight tab tab-json"><code>{
  3317. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  3318. }
  3319. </code></pre>
  3320. <h3 id="new_checklist_item-responses">Responses</h3>
  3321. <table>
  3322. <thead>
  3323. <tr>
  3324. <th>Status</th>
  3325. <th>Meaning</th>
  3326. <th>Description</th>
  3327. <th>Schema</th>
  3328. </tr>
  3329. </thead>
  3330. <tbody>
  3331. <tr>
  3332. <td>200</td>
  3333. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3334. <td>200 response</td>
  3335. <td>Inline</td>
  3336. </tr>
  3337. </tbody>
  3338. </table>
  3339. <h3 id="new_checklist_item-responseschema">Response Schema</h3>
  3340. <p>Status Code <strong>200</strong></p>
  3341. <table>
  3342. <thead>
  3343. <tr>
  3344. <th>Name</th>
  3345. <th>Type</th>
  3346. <th>Required</th>
  3347. <th>Restrictions</th>
  3348. <th>Description</th>
  3349. </tr>
  3350. </thead>
  3351. <tbody>
  3352. <tr>
  3353. <td>» _id</td>
  3354. <td>string</td>
  3355. <td>false</td>
  3356. <td>none</td>
  3357. <td>none</td>
  3358. </tr>
  3359. </tbody>
  3360. </table>
  3361. <aside class="warning">
  3362. To perform this operation, you must be authenticated by means of one of the following methods:
  3363. UserSecurity
  3364. </aside>
  3365. <h2 id="get_checklist_item">get_checklist_item</h2>
  3366. <p><a id="opIdget_checklist_item"></a></p>
  3367. <blockquote>
  3368. <p>Code samples</p>
  3369. </blockquote>
  3370. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3371. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  3372. -H <span class="hljs-string">'Accept: application/json'</span> \
  3373. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3374. </code></pre>
  3375. <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
  3376. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3377. <span class="undefined"></span></span></code></pre>
  3378. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3379. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3380. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3381. };
  3382. $.ajax({
  3383. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3384. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3385. <span class="hljs-attr">headers</span>: headers,
  3386. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3387. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3388. }
  3389. })
  3390. </code></pre>
  3391. <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>);
  3392. <span class="hljs-keyword">const</span> headers = {
  3393. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3394. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3395. };
  3396. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3397. {
  3398. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3399. <span class="hljs-attr">headers</span>: headers
  3400. })
  3401. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3402. <span class="hljs-keyword">return</span> res.json();
  3403. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3404. <span class="hljs-built_in">console</span>.log(body);
  3405. });
  3406. </code></pre>
  3407. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3408. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3409. headers = {
  3410. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3411. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3412. }
  3413. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3414. <span class="hljs-symbol">params:</span> {
  3415. }, <span class="hljs-symbol">headers:</span> headers
  3416. p JSON.parse(result)
  3417. </code></pre>
  3418. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3419. headers = {
  3420. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3421. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3422. }
  3423. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  3424. }, headers = headers)
  3425. <span class="hljs-keyword">print</span> r.json()
  3426. </code></pre>
  3427. <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>);
  3428. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3429. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3430. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3431. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3432. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3433. String inputLine;
  3434. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3435. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3436. response.append(inputLine);
  3437. }
  3438. in.close();
  3439. System.out.println(response.toString());
  3440. </code></pre>
  3441. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3442. <span class="hljs-keyword">import</span> (
  3443. <span class="hljs-string">"bytes"</span>
  3444. <span class="hljs-string">"net/http"</span>
  3445. )
  3446. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3447. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3448. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3449. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3450. }
  3451. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3452. 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)
  3453. req.Header = headers
  3454. client := &amp;http.Client{}
  3455. resp, err := client.Do(req)
  3456. <span class="hljs-comment">// ...</span>
  3457. }
  3458. </code></pre>
  3459. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  3460. <p><em>Get a checklist item</em></p>
  3461. <h3 id="get_checklist_item-parameters">Parameters</h3>
  3462. <table>
  3463. <thead>
  3464. <tr>
  3465. <th>Name</th>
  3466. <th>In</th>
  3467. <th>Type</th>
  3468. <th>Required</th>
  3469. <th>Description</th>
  3470. </tr>
  3471. </thead>
  3472. <tbody>
  3473. <tr>
  3474. <td>board</td>
  3475. <td>path</td>
  3476. <td>string</td>
  3477. <td>true</td>
  3478. <td>the board ID</td>
  3479. </tr>
  3480. <tr>
  3481. <td>card</td>
  3482. <td>path</td>
  3483. <td>string</td>
  3484. <td>true</td>
  3485. <td>the card ID</td>
  3486. </tr>
  3487. <tr>
  3488. <td>checklist</td>
  3489. <td>path</td>
  3490. <td>string</td>
  3491. <td>true</td>
  3492. <td>the checklist ID</td>
  3493. </tr>
  3494. <tr>
  3495. <td>item</td>
  3496. <td>path</td>
  3497. <td>string</td>
  3498. <td>true</td>
  3499. <td>the ID of the item</td>
  3500. </tr>
  3501. </tbody>
  3502. </table>
  3503. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3504. <p><strong>board</strong>: the board ID</p>
  3505. <p><strong>card</strong>: the card ID</p>
  3506. <p><strong>checklist</strong>: the checklist ID</p>
  3507. <p><strong>item</strong>: the ID of the item</p>
  3508. <blockquote>
  3509. <p>Example responses</p>
  3510. </blockquote>
  3511. <blockquote>
  3512. <p>200 Response</p>
  3513. </blockquote>
  3514. <pre class="highlight tab tab-json"><code>{
  3515. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  3516. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  3517. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  3518. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  3519. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  3520. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  3521. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  3522. }
  3523. </code></pre>
  3524. <h3 id="get_checklist_item-responses">Responses</h3>
  3525. <table>
  3526. <thead>
  3527. <tr>
  3528. <th>Status</th>
  3529. <th>Meaning</th>
  3530. <th>Description</th>
  3531. <th>Schema</th>
  3532. </tr>
  3533. </thead>
  3534. <tbody>
  3535. <tr>
  3536. <td>200</td>
  3537. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3538. <td>200 response</td>
  3539. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  3540. </tr>
  3541. </tbody>
  3542. </table>
  3543. <aside class="warning">
  3544. To perform this operation, you must be authenticated by means of one of the following methods:
  3545. UserSecurity
  3546. </aside>
  3547. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  3548. <p><a id="opIdedit_checklist_item"></a></p>
  3549. <blockquote>
  3550. <p>Code samples</p>
  3551. </blockquote>
  3552. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3553. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  3554. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3555. -H <span class="hljs-string">'Accept: application/json'</span> \
  3556. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3557. </code></pre>
  3558. <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
  3559. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3560. Accept: application/json
  3561. </span></code></pre>
  3562. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3563. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3564. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3565. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3566. };
  3567. $.ajax({
  3568. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3569. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  3570. <span class="hljs-attr">headers</span>: headers,
  3571. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3572. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3573. }
  3574. })
  3575. </code></pre>
  3576. <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>);
  3577. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3578. "isFinished": "string",
  3579. "title": "string"
  3580. }'</span>;
  3581. <span class="hljs-keyword">const</span> headers = {
  3582. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3583. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3584. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3585. };
  3586. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3587. {
  3588. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  3589. <span class="hljs-attr">body</span>: inputBody,
  3590. <span class="hljs-attr">headers</span>: headers
  3591. })
  3592. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3593. <span class="hljs-keyword">return</span> res.json();
  3594. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3595. <span class="hljs-built_in">console</span>.log(body);
  3596. });
  3597. </code></pre>
  3598. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3599. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3600. headers = {
  3601. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3602. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3603. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3604. }
  3605. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3606. <span class="hljs-symbol">params:</span> {
  3607. }, <span class="hljs-symbol">headers:</span> headers
  3608. p JSON.parse(result)
  3609. </code></pre>
  3610. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3611. headers = {
  3612. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3613. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3614. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3615. }
  3616. r = requests.put(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  3617. }, headers = headers)
  3618. <span class="hljs-keyword">print</span> r.json()
  3619. </code></pre>
  3620. <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>);
  3621. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3622. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  3623. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3624. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3625. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3626. String inputLine;
  3627. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3628. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3629. response.append(inputLine);
  3630. }
  3631. in.close();
  3632. System.out.println(response.toString());
  3633. </code></pre>
  3634. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3635. <span class="hljs-keyword">import</span> (
  3636. <span class="hljs-string">"bytes"</span>
  3637. <span class="hljs-string">"net/http"</span>
  3638. )
  3639. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3640. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3641. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3642. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3643. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3644. }
  3645. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3646. 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)
  3647. req.Header = headers
  3648. client := &amp;http.Client{}
  3649. resp, err := client.Do(req)
  3650. <span class="hljs-comment">// ...</span>
  3651. }
  3652. </code></pre>
  3653. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  3654. <p><em>Edit a checklist item</em></p>
  3655. <blockquote>
  3656. <p>Body parameter</p>
  3657. </blockquote>
  3658. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  3659. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  3660. </code></pre>
  3661. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  3662. <table>
  3663. <thead>
  3664. <tr>
  3665. <th>Name</th>
  3666. <th>In</th>
  3667. <th>Type</th>
  3668. <th>Required</th>
  3669. <th>Description</th>
  3670. </tr>
  3671. </thead>
  3672. <tbody>
  3673. <tr>
  3674. <td>board</td>
  3675. <td>path</td>
  3676. <td>string</td>
  3677. <td>true</td>
  3678. <td>the board ID</td>
  3679. </tr>
  3680. <tr>
  3681. <td>card</td>
  3682. <td>path</td>
  3683. <td>string</td>
  3684. <td>true</td>
  3685. <td>the card ID</td>
  3686. </tr>
  3687. <tr>
  3688. <td>checklist</td>
  3689. <td>path</td>
  3690. <td>string</td>
  3691. <td>true</td>
  3692. <td>the checklist ID</td>
  3693. </tr>
  3694. <tr>
  3695. <td>item</td>
  3696. <td>path</td>
  3697. <td>string</td>
  3698. <td>true</td>
  3699. <td>the ID of the item</td>
  3700. </tr>
  3701. <tr>
  3702. <td>body</td>
  3703. <td>body</td>
  3704. <td>object</td>
  3705. <td>false</td>
  3706. <td>none</td>
  3707. </tr>
  3708. <tr>
  3709. <td>» isFinished</td>
  3710. <td>body</td>
  3711. <td>string</td>
  3712. <td>false</td>
  3713. <td>is the item checked?</td>
  3714. </tr>
  3715. <tr>
  3716. <td>» title</td>
  3717. <td>body</td>
  3718. <td>string</td>
  3719. <td>false</td>
  3720. <td>the new text of the item</td>
  3721. </tr>
  3722. </tbody>
  3723. </table>
  3724. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3725. <p><strong>board</strong>: the board ID</p>
  3726. <p><strong>card</strong>: the card ID</p>
  3727. <p><strong>checklist</strong>: the checklist ID</p>
  3728. <p><strong>item</strong>: the ID of the item</p>
  3729. <blockquote>
  3730. <p>Example responses</p>
  3731. </blockquote>
  3732. <blockquote>
  3733. <p>200 Response</p>
  3734. </blockquote>
  3735. <pre class="highlight tab tab-json"><code>{
  3736. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  3737. }
  3738. </code></pre>
  3739. <h3 id="edit_checklist_item-responses">Responses</h3>
  3740. <table>
  3741. <thead>
  3742. <tr>
  3743. <th>Status</th>
  3744. <th>Meaning</th>
  3745. <th>Description</th>
  3746. <th>Schema</th>
  3747. </tr>
  3748. </thead>
  3749. <tbody>
  3750. <tr>
  3751. <td>200</td>
  3752. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3753. <td>200 response</td>
  3754. <td>Inline</td>
  3755. </tr>
  3756. </tbody>
  3757. </table>
  3758. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  3759. <p>Status Code <strong>200</strong></p>
  3760. <table>
  3761. <thead>
  3762. <tr>
  3763. <th>Name</th>
  3764. <th>Type</th>
  3765. <th>Required</th>
  3766. <th>Restrictions</th>
  3767. <th>Description</th>
  3768. </tr>
  3769. </thead>
  3770. <tbody>
  3771. <tr>
  3772. <td>» _id</td>
  3773. <td>string</td>
  3774. <td>false</td>
  3775. <td>none</td>
  3776. <td>none</td>
  3777. </tr>
  3778. </tbody>
  3779. </table>
  3780. <aside class="warning">
  3781. To perform this operation, you must be authenticated by means of one of the following methods:
  3782. UserSecurity
  3783. </aside>
  3784. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  3785. <p><a id="opIddelete_checklist_item"></a></p>
  3786. <blockquote>
  3787. <p>Code samples</p>
  3788. </blockquote>
  3789. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3790. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  3791. -H <span class="hljs-string">'Accept: application/json'</span> \
  3792. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3793. </code></pre>
  3794. <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
  3795. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3796. <span class="undefined"></span></span></code></pre>
  3797. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3798. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3799. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3800. };
  3801. $.ajax({
  3802. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3803. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  3804. <span class="hljs-attr">headers</span>: headers,
  3805. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3806. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3807. }
  3808. })
  3809. </code></pre>
  3810. <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>);
  3811. <span class="hljs-keyword">const</span> headers = {
  3812. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3813. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3814. };
  3815. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3816. {
  3817. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  3818. <span class="hljs-attr">headers</span>: headers
  3819. })
  3820. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3821. <span class="hljs-keyword">return</span> res.json();
  3822. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3823. <span class="hljs-built_in">console</span>.log(body);
  3824. });
  3825. </code></pre>
  3826. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3827. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3828. headers = {
  3829. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3830. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3831. }
  3832. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  3833. <span class="hljs-symbol">params:</span> {
  3834. }, <span class="hljs-symbol">headers:</span> headers
  3835. p JSON.parse(result)
  3836. </code></pre>
  3837. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3838. headers = {
  3839. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3840. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3841. }
  3842. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  3843. }, headers = headers)
  3844. <span class="hljs-keyword">print</span> r.json()
  3845. </code></pre>
  3846. <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>);
  3847. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3848. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  3849. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3850. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3851. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3852. String inputLine;
  3853. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3854. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3855. response.append(inputLine);
  3856. }
  3857. in.close();
  3858. System.out.println(response.toString());
  3859. </code></pre>
  3860. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3861. <span class="hljs-keyword">import</span> (
  3862. <span class="hljs-string">"bytes"</span>
  3863. <span class="hljs-string">"net/http"</span>
  3864. )
  3865. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3866. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3867. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3868. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3869. }
  3870. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3871. 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)
  3872. req.Header = headers
  3873. client := &amp;http.Client{}
  3874. resp, err := client.Do(req)
  3875. <span class="hljs-comment">// ...</span>
  3876. }
  3877. </code></pre>
  3878. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  3879. <p><em>Delete a checklist item</em></p>
  3880. <p>Note: this operation can't be reverted.</p>
  3881. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  3882. <table>
  3883. <thead>
  3884. <tr>
  3885. <th>Name</th>
  3886. <th>In</th>
  3887. <th>Type</th>
  3888. <th>Required</th>
  3889. <th>Description</th>
  3890. </tr>
  3891. </thead>
  3892. <tbody>
  3893. <tr>
  3894. <td>board</td>
  3895. <td>path</td>
  3896. <td>string</td>
  3897. <td>true</td>
  3898. <td>the board ID</td>
  3899. </tr>
  3900. <tr>
  3901. <td>card</td>
  3902. <td>path</td>
  3903. <td>string</td>
  3904. <td>true</td>
  3905. <td>the card ID</td>
  3906. </tr>
  3907. <tr>
  3908. <td>checklist</td>
  3909. <td>path</td>
  3910. <td>string</td>
  3911. <td>true</td>
  3912. <td>the checklist ID</td>
  3913. </tr>
  3914. <tr>
  3915. <td>item</td>
  3916. <td>path</td>
  3917. <td>string</td>
  3918. <td>true</td>
  3919. <td>the ID of the item to be removed</td>
  3920. </tr>
  3921. </tbody>
  3922. </table>
  3923. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3924. <p><strong>board</strong>: the board ID</p>
  3925. <p><strong>card</strong>: the card ID</p>
  3926. <p><strong>checklist</strong>: the checklist ID</p>
  3927. <p><strong>item</strong>: the ID of the item to be removed</p>
  3928. <blockquote>
  3929. <p>Example responses</p>
  3930. </blockquote>
  3931. <blockquote>
  3932. <p>200 Response</p>
  3933. </blockquote>
  3934. <pre class="highlight tab tab-json"><code>{
  3935. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  3936. }
  3937. </code></pre>
  3938. <h3 id="delete_checklist_item-responses">Responses</h3>
  3939. <table>
  3940. <thead>
  3941. <tr>
  3942. <th>Status</th>
  3943. <th>Meaning</th>
  3944. <th>Description</th>
  3945. <th>Schema</th>
  3946. </tr>
  3947. </thead>
  3948. <tbody>
  3949. <tr>
  3950. <td>200</td>
  3951. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3952. <td>200 response</td>
  3953. <td>Inline</td>
  3954. </tr>
  3955. </tbody>
  3956. </table>
  3957. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  3958. <p>Status Code <strong>200</strong></p>
  3959. <table>
  3960. <thead>
  3961. <tr>
  3962. <th>Name</th>
  3963. <th>Type</th>
  3964. <th>Required</th>
  3965. <th>Restrictions</th>
  3966. <th>Description</th>
  3967. </tr>
  3968. </thead>
  3969. <tbody>
  3970. <tr>
  3971. <td>» _id</td>
  3972. <td>string</td>
  3973. <td>false</td>
  3974. <td>none</td>
  3975. <td>none</td>
  3976. </tr>
  3977. </tbody>
  3978. </table>
  3979. <aside class="warning">
  3980. To perform this operation, you must be authenticated by means of one of the following methods:
  3981. UserSecurity
  3982. </aside>
  3983. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  3984. <h2 id="get_all_comments">get_all_comments</h2>
  3985. <p><a id="opIdget_all_comments"></a></p>
  3986. <blockquote>
  3987. <p>Code samples</p>
  3988. </blockquote>
  3989. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3990. curl -X GET /api/boards/{board}/cards/{card}/comments \
  3991. -H <span class="hljs-string">'Accept: application/json'</span> \
  3992. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3993. </code></pre>
  3994. <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
  3995. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3996. <span class="undefined"></span></span></code></pre>
  3997. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3998. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3999. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4000. };
  4001. $.ajax({
  4002. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4003. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4004. <span class="hljs-attr">headers</span>: headers,
  4005. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4006. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4007. }
  4008. })
  4009. </code></pre>
  4010. <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>);
  4011. <span class="hljs-keyword">const</span> headers = {
  4012. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4013. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4014. };
  4015. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4016. {
  4017. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4018. <span class="hljs-attr">headers</span>: headers
  4019. })
  4020. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4021. <span class="hljs-keyword">return</span> res.json();
  4022. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4023. <span class="hljs-built_in">console</span>.log(body);
  4024. });
  4025. </code></pre>
  4026. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4027. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4028. headers = {
  4029. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4030. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4031. }
  4032. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4033. <span class="hljs-symbol">params:</span> {
  4034. }, <span class="hljs-symbol">headers:</span> headers
  4035. p JSON.parse(result)
  4036. </code></pre>
  4037. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4038. headers = {
  4039. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4040. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4041. }
  4042. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  4043. }, headers = headers)
  4044. <span class="hljs-keyword">print</span> r.json()
  4045. </code></pre>
  4046. <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>);
  4047. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4048. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4049. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4050. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4051. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4052. String inputLine;
  4053. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4054. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4055. response.append(inputLine);
  4056. }
  4057. in.close();
  4058. System.out.println(response.toString());
  4059. </code></pre>
  4060. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4061. <span class="hljs-keyword">import</span> (
  4062. <span class="hljs-string">"bytes"</span>
  4063. <span class="hljs-string">"net/http"</span>
  4064. )
  4065. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4066. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4067. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4068. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4069. }
  4070. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4071. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  4072. req.Header = headers
  4073. client := &amp;http.Client{}
  4074. resp, err := client.Do(req)
  4075. <span class="hljs-comment">// ...</span>
  4076. }
  4077. </code></pre>
  4078. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  4079. <p><em>Get all comments attached to a card</em></p>
  4080. <h3 id="get_all_comments-parameters">Parameters</h3>
  4081. <table>
  4082. <thead>
  4083. <tr>
  4084. <th>Name</th>
  4085. <th>In</th>
  4086. <th>Type</th>
  4087. <th>Required</th>
  4088. <th>Description</th>
  4089. </tr>
  4090. </thead>
  4091. <tbody>
  4092. <tr>
  4093. <td>board</td>
  4094. <td>path</td>
  4095. <td>string</td>
  4096. <td>true</td>
  4097. <td>the board ID of the card</td>
  4098. </tr>
  4099. <tr>
  4100. <td>card</td>
  4101. <td>path</td>
  4102. <td>string</td>
  4103. <td>true</td>
  4104. <td>the ID of the card</td>
  4105. </tr>
  4106. </tbody>
  4107. </table>
  4108. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4109. <p><strong>board</strong>: the board ID of the card</p>
  4110. <p><strong>card</strong>: the ID of the card</p>
  4111. <blockquote>
  4112. <p>Example responses</p>
  4113. </blockquote>
  4114. <blockquote>
  4115. <p>200 Response</p>
  4116. </blockquote>
  4117. <pre class="highlight tab tab-json"><code>[
  4118. {
  4119. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4120. <span class="hljs-attr">"comment"</span>: <span class="hljs-string">"string"</span>,
  4121. <span class="hljs-attr">"authorId"</span>: <span class="hljs-string">"string"</span>
  4122. }
  4123. ]
  4124. </code></pre>
  4125. <h3 id="get_all_comments-responses">Responses</h3>
  4126. <table>
  4127. <thead>
  4128. <tr>
  4129. <th>Status</th>
  4130. <th>Meaning</th>
  4131. <th>Description</th>
  4132. <th>Schema</th>
  4133. </tr>
  4134. </thead>
  4135. <tbody>
  4136. <tr>
  4137. <td>200</td>
  4138. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4139. <td>200 response</td>
  4140. <td>Inline</td>
  4141. </tr>
  4142. </tbody>
  4143. </table>
  4144. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  4145. <p>Status Code <strong>200</strong></p>
  4146. <table>
  4147. <thead>
  4148. <tr>
  4149. <th>Name</th>
  4150. <th>Type</th>
  4151. <th>Required</th>
  4152. <th>Restrictions</th>
  4153. <th>Description</th>
  4154. </tr>
  4155. </thead>
  4156. <tbody>
  4157. <tr>
  4158. <td>» _id</td>
  4159. <td>string</td>
  4160. <td>false</td>
  4161. <td>none</td>
  4162. <td>none</td>
  4163. </tr>
  4164. <tr>
  4165. <td>» comment</td>
  4166. <td>string</td>
  4167. <td>false</td>
  4168. <td>none</td>
  4169. <td>none</td>
  4170. </tr>
  4171. <tr>
  4172. <td>» authorId</td>
  4173. <td>string</td>
  4174. <td>false</td>
  4175. <td>none</td>
  4176. <td>none</td>
  4177. </tr>
  4178. </tbody>
  4179. </table>
  4180. <aside class="warning">
  4181. To perform this operation, you must be authenticated by means of one of the following methods:
  4182. UserSecurity
  4183. </aside>
  4184. <h2 id="new_comment">new_comment</h2>
  4185. <p><a id="opIdnew_comment"></a></p>
  4186. <blockquote>
  4187. <p>Code samples</p>
  4188. </blockquote>
  4189. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4190. curl -X POST /api/boards/{board}/cards/{card}/comments \
  4191. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  4192. -H <span class="hljs-string">'Accept: application/json'</span> \
  4193. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4194. </code></pre>
  4195. <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
  4196. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4197. Accept: application/json
  4198. </span></code></pre>
  4199. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4200. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4201. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4202. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4203. };
  4204. $.ajax({
  4205. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4206. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  4207. <span class="hljs-attr">headers</span>: headers,
  4208. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4209. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4210. }
  4211. })
  4212. </code></pre>
  4213. <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>);
  4214. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  4215. "authorId": "string",
  4216. "comment": "string"
  4217. }'</span>;
  4218. <span class="hljs-keyword">const</span> headers = {
  4219. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4220. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4221. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4222. };
  4223. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4224. {
  4225. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  4226. <span class="hljs-attr">body</span>: inputBody,
  4227. <span class="hljs-attr">headers</span>: headers
  4228. })
  4229. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4230. <span class="hljs-keyword">return</span> res.json();
  4231. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4232. <span class="hljs-built_in">console</span>.log(body);
  4233. });
  4234. </code></pre>
  4235. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4236. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4237. headers = {
  4238. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4239. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4240. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4241. }
  4242. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  4243. <span class="hljs-symbol">params:</span> {
  4244. }, <span class="hljs-symbol">headers:</span> headers
  4245. p JSON.parse(result)
  4246. </code></pre>
  4247. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4248. headers = {
  4249. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4250. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4251. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4252. }
  4253. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  4254. }, headers = headers)
  4255. <span class="hljs-keyword">print</span> r.json()
  4256. </code></pre>
  4257. <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>);
  4258. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4259. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  4260. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4261. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4262. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4263. String inputLine;
  4264. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4265. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4266. response.append(inputLine);
  4267. }
  4268. in.close();
  4269. System.out.println(response.toString());
  4270. </code></pre>
  4271. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4272. <span class="hljs-keyword">import</span> (
  4273. <span class="hljs-string">"bytes"</span>
  4274. <span class="hljs-string">"net/http"</span>
  4275. )
  4276. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4277. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4278. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  4279. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4280. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4281. }
  4282. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4283. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  4284. req.Header = headers
  4285. client := &amp;http.Client{}
  4286. resp, err := client.Do(req)
  4287. <span class="hljs-comment">// ...</span>
  4288. }
  4289. </code></pre>
  4290. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  4291. <p><em>Add a comment on a card</em></p>
  4292. <blockquote>
  4293. <p>Body parameter</p>
  4294. </blockquote>
  4295. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  4296. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  4297. </code></pre>
  4298. <h3 id="new_comment-parameters">Parameters</h3>
  4299. <table>
  4300. <thead>
  4301. <tr>
  4302. <th>Name</th>
  4303. <th>In</th>
  4304. <th>Type</th>
  4305. <th>Required</th>
  4306. <th>Description</th>
  4307. </tr>
  4308. </thead>
  4309. <tbody>
  4310. <tr>
  4311. <td>board</td>
  4312. <td>path</td>
  4313. <td>string</td>
  4314. <td>true</td>
  4315. <td>the board ID of the card</td>
  4316. </tr>
  4317. <tr>
  4318. <td>card</td>
  4319. <td>path</td>
  4320. <td>string</td>
  4321. <td>true</td>
  4322. <td>the ID of the card</td>
  4323. </tr>
  4324. <tr>
  4325. <td>body</td>
  4326. <td>body</td>
  4327. <td>object</td>
  4328. <td>false</td>
  4329. <td>none</td>
  4330. </tr>
  4331. <tr>
  4332. <td>» authorId</td>
  4333. <td>body</td>
  4334. <td>string</td>
  4335. <td>true</td>
  4336. <td>the user who 'posted' the comment</td>
  4337. </tr>
  4338. <tr>
  4339. <td>» comment</td>
  4340. <td>body</td>
  4341. <td>string</td>
  4342. <td>true</td>
  4343. <td>the comment value</td>
  4344. </tr>
  4345. </tbody>
  4346. </table>
  4347. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4348. <p><strong>board</strong>: the board ID of the card</p>
  4349. <p><strong>card</strong>: the ID of the card</p>
  4350. <blockquote>
  4351. <p>Example responses</p>
  4352. </blockquote>
  4353. <blockquote>
  4354. <p>200 Response</p>
  4355. </blockquote>
  4356. <pre class="highlight tab tab-json"><code>{
  4357. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  4358. }
  4359. </code></pre>
  4360. <h3 id="new_comment-responses">Responses</h3>
  4361. <table>
  4362. <thead>
  4363. <tr>
  4364. <th>Status</th>
  4365. <th>Meaning</th>
  4366. <th>Description</th>
  4367. <th>Schema</th>
  4368. </tr>
  4369. </thead>
  4370. <tbody>
  4371. <tr>
  4372. <td>200</td>
  4373. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4374. <td>200 response</td>
  4375. <td>Inline</td>
  4376. </tr>
  4377. </tbody>
  4378. </table>
  4379. <h3 id="new_comment-responseschema">Response Schema</h3>
  4380. <p>Status Code <strong>200</strong></p>
  4381. <table>
  4382. <thead>
  4383. <tr>
  4384. <th>Name</th>
  4385. <th>Type</th>
  4386. <th>Required</th>
  4387. <th>Restrictions</th>
  4388. <th>Description</th>
  4389. </tr>
  4390. </thead>
  4391. <tbody>
  4392. <tr>
  4393. <td>» _id</td>
  4394. <td>string</td>
  4395. <td>false</td>
  4396. <td>none</td>
  4397. <td>none</td>
  4398. </tr>
  4399. </tbody>
  4400. </table>
  4401. <aside class="warning">
  4402. To perform this operation, you must be authenticated by means of one of the following methods:
  4403. UserSecurity
  4404. </aside>
  4405. <h2 id="get_comment">get_comment</h2>
  4406. <p><a id="opIdget_comment"></a></p>
  4407. <blockquote>
  4408. <p>Code samples</p>
  4409. </blockquote>
  4410. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4411. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  4412. -H <span class="hljs-string">'Accept: application/json'</span> \
  4413. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4414. </code></pre>
  4415. <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
  4416. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4417. <span class="undefined"></span></span></code></pre>
  4418. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4419. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4420. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4421. };
  4422. $.ajax({
  4423. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4424. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4425. <span class="hljs-attr">headers</span>: headers,
  4426. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4427. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4428. }
  4429. })
  4430. </code></pre>
  4431. <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>);
  4432. <span class="hljs-keyword">const</span> headers = {
  4433. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4434. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4435. };
  4436. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4437. {
  4438. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4439. <span class="hljs-attr">headers</span>: headers
  4440. })
  4441. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4442. <span class="hljs-keyword">return</span> res.json();
  4443. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4444. <span class="hljs-built_in">console</span>.log(body);
  4445. });
  4446. </code></pre>
  4447. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4448. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4449. headers = {
  4450. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4451. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4452. }
  4453. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4454. <span class="hljs-symbol">params:</span> {
  4455. }, <span class="hljs-symbol">headers:</span> headers
  4456. p JSON.parse(result)
  4457. </code></pre>
  4458. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4459. headers = {
  4460. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4461. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4462. }
  4463. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  4464. }, headers = headers)
  4465. <span class="hljs-keyword">print</span> r.json()
  4466. </code></pre>
  4467. <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>);
  4468. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4469. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4470. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4471. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4472. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4473. String inputLine;
  4474. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4475. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4476. response.append(inputLine);
  4477. }
  4478. in.close();
  4479. System.out.println(response.toString());
  4480. </code></pre>
  4481. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4482. <span class="hljs-keyword">import</span> (
  4483. <span class="hljs-string">"bytes"</span>
  4484. <span class="hljs-string">"net/http"</span>
  4485. )
  4486. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4487. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4488. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4489. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4490. }
  4491. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4492. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  4493. req.Header = headers
  4494. client := &amp;http.Client{}
  4495. resp, err := client.Do(req)
  4496. <span class="hljs-comment">// ...</span>
  4497. }
  4498. </code></pre>
  4499. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  4500. <p><em>Get a comment on a card</em></p>
  4501. <h3 id="get_comment-parameters">Parameters</h3>
  4502. <table>
  4503. <thead>
  4504. <tr>
  4505. <th>Name</th>
  4506. <th>In</th>
  4507. <th>Type</th>
  4508. <th>Required</th>
  4509. <th>Description</th>
  4510. </tr>
  4511. </thead>
  4512. <tbody>
  4513. <tr>
  4514. <td>board</td>
  4515. <td>path</td>
  4516. <td>string</td>
  4517. <td>true</td>
  4518. <td>the board ID of the card</td>
  4519. </tr>
  4520. <tr>
  4521. <td>card</td>
  4522. <td>path</td>
  4523. <td>string</td>
  4524. <td>true</td>
  4525. <td>the ID of the card</td>
  4526. </tr>
  4527. <tr>
  4528. <td>comment</td>
  4529. <td>path</td>
  4530. <td>string</td>
  4531. <td>true</td>
  4532. <td>the ID of the comment to retrieve</td>
  4533. </tr>
  4534. </tbody>
  4535. </table>
  4536. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4537. <p><strong>board</strong>: the board ID of the card</p>
  4538. <p><strong>card</strong>: the ID of the card</p>
  4539. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  4540. <blockquote>
  4541. <p>Example responses</p>
  4542. </blockquote>
  4543. <blockquote>
  4544. <p>200 Response</p>
  4545. </blockquote>
  4546. <pre class="highlight tab tab-json"><code>{
  4547. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  4548. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  4549. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  4550. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  4551. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  4552. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  4553. }
  4554. </code></pre>
  4555. <h3 id="get_comment-responses">Responses</h3>
  4556. <table>
  4557. <thead>
  4558. <tr>
  4559. <th>Status</th>
  4560. <th>Meaning</th>
  4561. <th>Description</th>
  4562. <th>Schema</th>
  4563. </tr>
  4564. </thead>
  4565. <tbody>
  4566. <tr>
  4567. <td>200</td>
  4568. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4569. <td>200 response</td>
  4570. <td><a href="#schemacardcomments">CardComments</a></td>
  4571. </tr>
  4572. </tbody>
  4573. </table>
  4574. <aside class="warning">
  4575. To perform this operation, you must be authenticated by means of one of the following methods:
  4576. UserSecurity
  4577. </aside>
  4578. <h2 id="delete_comment">delete_comment</h2>
  4579. <p><a id="opIddelete_comment"></a></p>
  4580. <blockquote>
  4581. <p>Code samples</p>
  4582. </blockquote>
  4583. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4584. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  4585. -H <span class="hljs-string">'Accept: application/json'</span> \
  4586. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4587. </code></pre>
  4588. <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
  4589. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4590. <span class="undefined"></span></span></code></pre>
  4591. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4592. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4593. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4594. };
  4595. $.ajax({
  4596. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4597. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  4598. <span class="hljs-attr">headers</span>: headers,
  4599. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4600. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4601. }
  4602. })
  4603. </code></pre>
  4604. <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>);
  4605. <span class="hljs-keyword">const</span> headers = {
  4606. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4607. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4608. };
  4609. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4610. {
  4611. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  4612. <span class="hljs-attr">headers</span>: headers
  4613. })
  4614. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4615. <span class="hljs-keyword">return</span> res.json();
  4616. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4617. <span class="hljs-built_in">console</span>.log(body);
  4618. });
  4619. </code></pre>
  4620. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4621. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4622. headers = {
  4623. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4624. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4625. }
  4626. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  4627. <span class="hljs-symbol">params:</span> {
  4628. }, <span class="hljs-symbol">headers:</span> headers
  4629. p JSON.parse(result)
  4630. </code></pre>
  4631. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4632. headers = {
  4633. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4634. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4635. }
  4636. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  4637. }, headers = headers)
  4638. <span class="hljs-keyword">print</span> r.json()
  4639. </code></pre>
  4640. <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>);
  4641. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4642. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  4643. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4644. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4645. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4646. String inputLine;
  4647. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4648. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4649. response.append(inputLine);
  4650. }
  4651. in.close();
  4652. System.out.println(response.toString());
  4653. </code></pre>
  4654. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4655. <span class="hljs-keyword">import</span> (
  4656. <span class="hljs-string">"bytes"</span>
  4657. <span class="hljs-string">"net/http"</span>
  4658. )
  4659. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4660. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4661. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4662. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4663. }
  4664. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4665. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  4666. req.Header = headers
  4667. client := &amp;http.Client{}
  4668. resp, err := client.Do(req)
  4669. <span class="hljs-comment">// ...</span>
  4670. }
  4671. </code></pre>
  4672. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  4673. <p><em>Delete a comment on a card</em></p>
  4674. <h3 id="delete_comment-parameters">Parameters</h3>
  4675. <table>
  4676. <thead>
  4677. <tr>
  4678. <th>Name</th>
  4679. <th>In</th>
  4680. <th>Type</th>
  4681. <th>Required</th>
  4682. <th>Description</th>
  4683. </tr>
  4684. </thead>
  4685. <tbody>
  4686. <tr>
  4687. <td>board</td>
  4688. <td>path</td>
  4689. <td>string</td>
  4690. <td>true</td>
  4691. <td>the board ID of the card</td>
  4692. </tr>
  4693. <tr>
  4694. <td>card</td>
  4695. <td>path</td>
  4696. <td>string</td>
  4697. <td>true</td>
  4698. <td>the ID of the card</td>
  4699. </tr>
  4700. <tr>
  4701. <td>comment</td>
  4702. <td>path</td>
  4703. <td>string</td>
  4704. <td>true</td>
  4705. <td>the ID of the comment to delete</td>
  4706. </tr>
  4707. </tbody>
  4708. </table>
  4709. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4710. <p><strong>board</strong>: the board ID of the card</p>
  4711. <p><strong>card</strong>: the ID of the card</p>
  4712. <p><strong>comment</strong>: the ID of the comment to delete</p>
  4713. <blockquote>
  4714. <p>Example responses</p>
  4715. </blockquote>
  4716. <blockquote>
  4717. <p>200 Response</p>
  4718. </blockquote>
  4719. <pre class="highlight tab tab-json"><code>{
  4720. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  4721. }
  4722. </code></pre>
  4723. <h3 id="delete_comment-responses">Responses</h3>
  4724. <table>
  4725. <thead>
  4726. <tr>
  4727. <th>Status</th>
  4728. <th>Meaning</th>
  4729. <th>Description</th>
  4730. <th>Schema</th>
  4731. </tr>
  4732. </thead>
  4733. <tbody>
  4734. <tr>
  4735. <td>200</td>
  4736. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4737. <td>200 response</td>
  4738. <td>Inline</td>
  4739. </tr>
  4740. </tbody>
  4741. </table>
  4742. <h3 id="delete_comment-responseschema">Response Schema</h3>
  4743. <p>Status Code <strong>200</strong></p>
  4744. <table>
  4745. <thead>
  4746. <tr>
  4747. <th>Name</th>
  4748. <th>Type</th>
  4749. <th>Required</th>
  4750. <th>Restrictions</th>
  4751. <th>Description</th>
  4752. </tr>
  4753. </thead>
  4754. <tbody>
  4755. <tr>
  4756. <td>» _id</td>
  4757. <td>string</td>
  4758. <td>false</td>
  4759. <td>none</td>
  4760. <td>none</td>
  4761. </tr>
  4762. </tbody>
  4763. </table>
  4764. <aside class="warning">
  4765. To perform this operation, you must be authenticated by means of one of the following methods:
  4766. UserSecurity
  4767. </aside>
  4768. <h1 id="wekan-rest-api-cards">Cards</h1>
  4769. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  4770. <p><a id="opIdget_cards_by_custom_field"></a></p>
  4771. <blockquote>
  4772. <p>Code samples</p>
  4773. </blockquote>
  4774. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4775. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  4776. -H <span class="hljs-string">'Accept: application/json'</span> \
  4777. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4778. </code></pre>
  4779. <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
  4780. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4781. <span class="undefined"></span></span></code></pre>
  4782. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4783. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4784. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4785. };
  4786. $.ajax({
  4787. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  4788. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4789. <span class="hljs-attr">headers</span>: headers,
  4790. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4791. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4792. }
  4793. })
  4794. </code></pre>
  4795. <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>);
  4796. <span class="hljs-keyword">const</span> headers = {
  4797. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4798. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4799. };
  4800. fetch(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  4801. {
  4802. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4803. <span class="hljs-attr">headers</span>: headers
  4804. })
  4805. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4806. <span class="hljs-keyword">return</span> res.json();
  4807. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4808. <span class="hljs-built_in">console</span>.log(body);
  4809. });
  4810. </code></pre>
  4811. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4812. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4813. headers = {
  4814. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4815. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4816. }
  4817. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  4818. <span class="hljs-symbol">params:</span> {
  4819. }, <span class="hljs-symbol">headers:</span> headers
  4820. p JSON.parse(result)
  4821. </code></pre>
  4822. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4823. headers = {
  4824. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4825. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4826. }
  4827. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>, params={
  4828. }, headers = headers)
  4829. <span class="hljs-keyword">print</span> r.json()
  4830. </code></pre>
  4831. <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>);
  4832. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4833. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4834. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4835. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4836. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4837. String inputLine;
  4838. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4839. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4840. response.append(inputLine);
  4841. }
  4842. in.close();
  4843. System.out.println(response.toString());
  4844. </code></pre>
  4845. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4846. <span class="hljs-keyword">import</span> (
  4847. <span class="hljs-string">"bytes"</span>
  4848. <span class="hljs-string">"net/http"</span>
  4849. )
  4850. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4851. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4852. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4853. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4854. }
  4855. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4856. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}"</span>, data)
  4857. req.Header = headers
  4858. client := &amp;http.Client{}
  4859. resp, err := client.Do(req)
  4860. <span class="hljs-comment">// ...</span>
  4861. }
  4862. </code></pre>
  4863. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  4864. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  4865. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  4866. <table>
  4867. <thead>
  4868. <tr>
  4869. <th>Name</th>
  4870. <th>In</th>
  4871. <th>Type</th>
  4872. <th>Required</th>
  4873. <th>Description</th>
  4874. </tr>
  4875. </thead>
  4876. <tbody>
  4877. <tr>
  4878. <td>board</td>
  4879. <td>path</td>
  4880. <td>string</td>
  4881. <td>true</td>
  4882. <td>the board ID</td>
  4883. </tr>
  4884. <tr>
  4885. <td>customField</td>
  4886. <td>path</td>
  4887. <td>string</td>
  4888. <td>true</td>
  4889. <td>the list ID</td>
  4890. </tr>
  4891. <tr>
  4892. <td>customFieldValue</td>
  4893. <td>path</td>
  4894. <td>string</td>
  4895. <td>true</td>
  4896. <td>the value to look for</td>
  4897. </tr>
  4898. </tbody>
  4899. </table>
  4900. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4901. <p><strong>board</strong>: the board ID</p>
  4902. <p><strong>customField</strong>: the list ID</p>
  4903. <p><strong>customFieldValue</strong>: the value to look for</p>
  4904. <blockquote>
  4905. <p>Example responses</p>
  4906. </blockquote>
  4907. <blockquote>
  4908. <p>200 Response</p>
  4909. </blockquote>
  4910. <pre class="highlight tab tab-json"><code>[
  4911. {
  4912. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4913. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  4914. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  4915. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  4916. <span class="hljs-attr">"swinlaneId"</span>: <span class="hljs-string">"string"</span>
  4917. }
  4918. ]
  4919. </code></pre>
  4920. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  4921. <table>
  4922. <thead>
  4923. <tr>
  4924. <th>Status</th>
  4925. <th>Meaning</th>
  4926. <th>Description</th>
  4927. <th>Schema</th>
  4928. </tr>
  4929. </thead>
  4930. <tbody>
  4931. <tr>
  4932. <td>200</td>
  4933. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4934. <td>200 response</td>
  4935. <td>Inline</td>
  4936. </tr>
  4937. </tbody>
  4938. </table>
  4939. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  4940. <p>Status Code <strong>200</strong></p>
  4941. <table>
  4942. <thead>
  4943. <tr>
  4944. <th>Name</th>
  4945. <th>Type</th>
  4946. <th>Required</th>
  4947. <th>Restrictions</th>
  4948. <th>Description</th>
  4949. </tr>
  4950. </thead>
  4951. <tbody>
  4952. <tr>
  4953. <td>» _id</td>
  4954. <td>string</td>
  4955. <td>false</td>
  4956. <td>none</td>
  4957. <td>none</td>
  4958. </tr>
  4959. <tr>
  4960. <td>» title</td>
  4961. <td>string</td>
  4962. <td>false</td>
  4963. <td>none</td>
  4964. <td>none</td>
  4965. </tr>
  4966. <tr>
  4967. <td>» description</td>
  4968. <td>string</td>
  4969. <td>false</td>
  4970. <td>none</td>
  4971. <td>none</td>
  4972. </tr>
  4973. <tr>
  4974. <td>» listId</td>
  4975. <td>string</td>
  4976. <td>false</td>
  4977. <td>none</td>
  4978. <td>none</td>
  4979. </tr>
  4980. <tr>
  4981. <td>» swinlaneId</td>
  4982. <td>string</td>
  4983. <td>false</td>
  4984. <td>none</td>
  4985. <td>none</td>
  4986. </tr>
  4987. </tbody>
  4988. </table>
  4989. <aside class="warning">
  4990. To perform this operation, you must be authenticated by means of one of the following methods:
  4991. UserSecurity
  4992. </aside>
  4993. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  4994. <p><a id="opIdget_board_cards_count"></a></p>
  4995. <blockquote>
  4996. <p>Code samples</p>
  4997. </blockquote>
  4998. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4999. curl -X GET /api/boards/{board}/cards_count \
  5000. -H <span class="hljs-string">'Accept: application/json'</span> \
  5001. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5002. </code></pre>
  5003. <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
  5004. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5005. <span class="undefined"></span></span></code></pre>
  5006. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5007. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5008. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5009. };
  5010. $.ajax({
  5011. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  5012. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5013. <span class="hljs-attr">headers</span>: headers,
  5014. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5015. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5016. }
  5017. })
  5018. </code></pre>
  5019. <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>);
  5020. <span class="hljs-keyword">const</span> headers = {
  5021. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5022. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5023. };
  5024. fetch(<span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  5025. {
  5026. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5027. <span class="hljs-attr">headers</span>: headers
  5028. })
  5029. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5030. <span class="hljs-keyword">return</span> res.json();
  5031. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5032. <span class="hljs-built_in">console</span>.log(body);
  5033. });
  5034. </code></pre>
  5035. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5036. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5037. headers = {
  5038. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5039. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5040. }
  5041. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  5042. <span class="hljs-symbol">params:</span> {
  5043. }, <span class="hljs-symbol">headers:</span> headers
  5044. p JSON.parse(result)
  5045. </code></pre>
  5046. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5047. headers = {
  5048. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5049. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5050. }
  5051. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards_count'</span>, params={
  5052. }, headers = headers)
  5053. <span class="hljs-keyword">print</span> r.json()
  5054. </code></pre>
  5055. <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>);
  5056. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5057. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5058. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5059. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5060. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5061. String inputLine;
  5062. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5063. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5064. response.append(inputLine);
  5065. }
  5066. in.close();
  5067. System.out.println(response.toString());
  5068. </code></pre>
  5069. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5070. <span class="hljs-keyword">import</span> (
  5071. <span class="hljs-string">"bytes"</span>
  5072. <span class="hljs-string">"net/http"</span>
  5073. )
  5074. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5075. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5076. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5077. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5078. }
  5079. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5080. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards_count"</span>, data)
  5081. req.Header = headers
  5082. client := &amp;http.Client{}
  5083. resp, err := client.Do(req)
  5084. <span class="hljs-comment">// ...</span>
  5085. }
  5086. </code></pre>
  5087. <p><code>GET /api/boards/{board}/cards_count</code></p>
  5088. <p><em>Get a cards count to a board</em></p>
  5089. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  5090. <table>
  5091. <thead>
  5092. <tr>
  5093. <th>Name</th>
  5094. <th>In</th>
  5095. <th>Type</th>
  5096. <th>Required</th>
  5097. <th>Description</th>
  5098. </tr>
  5099. </thead>
  5100. <tbody>
  5101. <tr>
  5102. <td>board</td>
  5103. <td>path</td>
  5104. <td>string</td>
  5105. <td>true</td>
  5106. <td>the board ID</td>
  5107. </tr>
  5108. </tbody>
  5109. </table>
  5110. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5111. <p><strong>board</strong>: the board ID</p>
  5112. <blockquote>
  5113. <p>Example responses</p>
  5114. </blockquote>
  5115. <blockquote>
  5116. <p>200 Response</p>
  5117. </blockquote>
  5118. <pre class="highlight tab tab-json"><code>{
  5119. <span class="hljs-attr">"board_cards_count"</span>: <span class="hljs-number">0</span>
  5120. }
  5121. </code></pre>
  5122. <h3 id="get_board_cards_count-responses">Responses</h3>
  5123. <table>
  5124. <thead>
  5125. <tr>
  5126. <th>Status</th>
  5127. <th>Meaning</th>
  5128. <th>Description</th>
  5129. <th>Schema</th>
  5130. </tr>
  5131. </thead>
  5132. <tbody>
  5133. <tr>
  5134. <td>200</td>
  5135. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5136. <td>200 response</td>
  5137. <td>Inline</td>
  5138. </tr>
  5139. </tbody>
  5140. </table>
  5141. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  5142. <p>Status Code <strong>200</strong></p>
  5143. <table>
  5144. <thead>
  5145. <tr>
  5146. <th>Name</th>
  5147. <th>Type</th>
  5148. <th>Required</th>
  5149. <th>Restrictions</th>
  5150. <th>Description</th>
  5151. </tr>
  5152. </thead>
  5153. <tbody>
  5154. <tr>
  5155. <td>» board_cards_count</td>
  5156. <td>integer</td>
  5157. <td>false</td>
  5158. <td>none</td>
  5159. <td>none</td>
  5160. </tr>
  5161. </tbody>
  5162. </table>
  5163. <aside class="warning">
  5164. To perform this operation, you must be authenticated by means of one of the following methods:
  5165. UserSecurity
  5166. </aside>
  5167. <h2 id="get_all_cards">get_all_cards</h2>
  5168. <p><a id="opIdget_all_cards"></a></p>
  5169. <blockquote>
  5170. <p>Code samples</p>
  5171. </blockquote>
  5172. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5173. curl -X GET /api/boards/{board}/lists/{list}/cards \
  5174. -H <span class="hljs-string">'Accept: application/json'</span> \
  5175. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5176. </code></pre>
  5177. <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
  5178. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5179. <span class="undefined"></span></span></code></pre>
  5180. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5181. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5182. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5183. };
  5184. $.ajax({
  5185. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5186. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5187. <span class="hljs-attr">headers</span>: headers,
  5188. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5189. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5190. }
  5191. })
  5192. </code></pre>
  5193. <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>);
  5194. <span class="hljs-keyword">const</span> headers = {
  5195. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5196. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5197. };
  5198. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5199. {
  5200. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5201. <span class="hljs-attr">headers</span>: headers
  5202. })
  5203. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5204. <span class="hljs-keyword">return</span> res.json();
  5205. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5206. <span class="hljs-built_in">console</span>.log(body);
  5207. });
  5208. </code></pre>
  5209. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5210. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5211. headers = {
  5212. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5213. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5214. }
  5215. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5216. <span class="hljs-symbol">params:</span> {
  5217. }, <span class="hljs-symbol">headers:</span> headers
  5218. p JSON.parse(result)
  5219. </code></pre>
  5220. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5221. headers = {
  5222. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5223. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5224. }
  5225. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  5226. }, headers = headers)
  5227. <span class="hljs-keyword">print</span> r.json()
  5228. </code></pre>
  5229. <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>);
  5230. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5231. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5232. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5233. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5234. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5235. String inputLine;
  5236. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5237. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5238. response.append(inputLine);
  5239. }
  5240. in.close();
  5241. System.out.println(response.toString());
  5242. </code></pre>
  5243. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5244. <span class="hljs-keyword">import</span> (
  5245. <span class="hljs-string">"bytes"</span>
  5246. <span class="hljs-string">"net/http"</span>
  5247. )
  5248. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5249. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5250. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5251. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5252. }
  5253. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5254. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  5255. req.Header = headers
  5256. client := &amp;http.Client{}
  5257. resp, err := client.Do(req)
  5258. <span class="hljs-comment">// ...</span>
  5259. }
  5260. </code></pre>
  5261. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  5262. <p><em>Get all Cards attached to a List</em></p>
  5263. <h3 id="get_all_cards-parameters">Parameters</h3>
  5264. <table>
  5265. <thead>
  5266. <tr>
  5267. <th>Name</th>
  5268. <th>In</th>
  5269. <th>Type</th>
  5270. <th>Required</th>
  5271. <th>Description</th>
  5272. </tr>
  5273. </thead>
  5274. <tbody>
  5275. <tr>
  5276. <td>board</td>
  5277. <td>path</td>
  5278. <td>string</td>
  5279. <td>true</td>
  5280. <td>the board ID</td>
  5281. </tr>
  5282. <tr>
  5283. <td>list</td>
  5284. <td>path</td>
  5285. <td>string</td>
  5286. <td>true</td>
  5287. <td>the list ID</td>
  5288. </tr>
  5289. </tbody>
  5290. </table>
  5291. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5292. <p><strong>board</strong>: the board ID</p>
  5293. <p><strong>list</strong>: the list ID</p>
  5294. <blockquote>
  5295. <p>Example responses</p>
  5296. </blockquote>
  5297. <blockquote>
  5298. <p>200 Response</p>
  5299. </blockquote>
  5300. <pre class="highlight tab tab-json"><code>[
  5301. {
  5302. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  5303. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5304. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>
  5305. }
  5306. ]
  5307. </code></pre>
  5308. <h3 id="get_all_cards-responses">Responses</h3>
  5309. <table>
  5310. <thead>
  5311. <tr>
  5312. <th>Status</th>
  5313. <th>Meaning</th>
  5314. <th>Description</th>
  5315. <th>Schema</th>
  5316. </tr>
  5317. </thead>
  5318. <tbody>
  5319. <tr>
  5320. <td>200</td>
  5321. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5322. <td>200 response</td>
  5323. <td>Inline</td>
  5324. </tr>
  5325. </tbody>
  5326. </table>
  5327. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  5328. <p>Status Code <strong>200</strong></p>
  5329. <table>
  5330. <thead>
  5331. <tr>
  5332. <th>Name</th>
  5333. <th>Type</th>
  5334. <th>Required</th>
  5335. <th>Restrictions</th>
  5336. <th>Description</th>
  5337. </tr>
  5338. </thead>
  5339. <tbody>
  5340. <tr>
  5341. <td>» _id</td>
  5342. <td>string</td>
  5343. <td>false</td>
  5344. <td>none</td>
  5345. <td>none</td>
  5346. </tr>
  5347. <tr>
  5348. <td>» title</td>
  5349. <td>string</td>
  5350. <td>false</td>
  5351. <td>none</td>
  5352. <td>none</td>
  5353. </tr>
  5354. <tr>
  5355. <td>» description</td>
  5356. <td>string</td>
  5357. <td>false</td>
  5358. <td>none</td>
  5359. <td>none</td>
  5360. </tr>
  5361. </tbody>
  5362. </table>
  5363. <aside class="warning">
  5364. To perform this operation, you must be authenticated by means of one of the following methods:
  5365. UserSecurity
  5366. </aside>
  5367. <h2 id="new_card">new_card</h2>
  5368. <p><a id="opIdnew_card"></a></p>
  5369. <blockquote>
  5370. <p>Code samples</p>
  5371. </blockquote>
  5372. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5373. curl -X POST /api/boards/{board}/lists/{list}/cards \
  5374. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5375. -H <span class="hljs-string">'Accept: application/json'</span> \
  5376. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5377. </code></pre>
  5378. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> HTTP/1.1
  5379. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5380. Accept: application/json
  5381. </span></code></pre>
  5382. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5383. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5384. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5385. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5386. };
  5387. $.ajax({
  5388. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5389. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  5390. <span class="hljs-attr">headers</span>: headers,
  5391. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5392. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5393. }
  5394. })
  5395. </code></pre>
  5396. <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>);
  5397. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5398. "authorId": "string",
  5399. "members": "string",
  5400. "assignees": "string",
  5401. "title": "string",
  5402. "description": "string",
  5403. "swimlaneId": "string"
  5404. }'</span>;
  5405. <span class="hljs-keyword">const</span> headers = {
  5406. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5407. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5408. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5409. };
  5410. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5411. {
  5412. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  5413. <span class="hljs-attr">body</span>: inputBody,
  5414. <span class="hljs-attr">headers</span>: headers
  5415. })
  5416. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5417. <span class="hljs-keyword">return</span> res.json();
  5418. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5419. <span class="hljs-built_in">console</span>.log(body);
  5420. });
  5421. </code></pre>
  5422. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5423. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5424. headers = {
  5425. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5426. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5427. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5428. }
  5429. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  5430. <span class="hljs-symbol">params:</span> {
  5431. }, <span class="hljs-symbol">headers:</span> headers
  5432. p JSON.parse(result)
  5433. </code></pre>
  5434. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5435. headers = {
  5436. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5437. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5438. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5439. }
  5440. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  5441. }, headers = headers)
  5442. <span class="hljs-keyword">print</span> r.json()
  5443. </code></pre>
  5444. <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>);
  5445. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5446. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  5447. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5448. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5449. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5450. String inputLine;
  5451. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5452. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5453. response.append(inputLine);
  5454. }
  5455. in.close();
  5456. System.out.println(response.toString());
  5457. </code></pre>
  5458. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5459. <span class="hljs-keyword">import</span> (
  5460. <span class="hljs-string">"bytes"</span>
  5461. <span class="hljs-string">"net/http"</span>
  5462. )
  5463. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5464. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5465. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5466. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5467. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5468. }
  5469. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5470. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  5471. req.Header = headers
  5472. client := &amp;http.Client{}
  5473. resp, err := client.Do(req)
  5474. <span class="hljs-comment">// ...</span>
  5475. }
  5476. </code></pre>
  5477. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  5478. <p><em>Create a new Card</em></p>
  5479. <blockquote>
  5480. <p>Body parameter</p>
  5481. </blockquote>
  5482. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  5483. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  5484. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  5485. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5486. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  5487. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  5488. </code></pre>
  5489. <h3 id="new_card-parameters">Parameters</h3>
  5490. <table>
  5491. <thead>
  5492. <tr>
  5493. <th>Name</th>
  5494. <th>In</th>
  5495. <th>Type</th>
  5496. <th>Required</th>
  5497. <th>Description</th>
  5498. </tr>
  5499. </thead>
  5500. <tbody>
  5501. <tr>
  5502. <td>board</td>
  5503. <td>path</td>
  5504. <td>string</td>
  5505. <td>true</td>
  5506. <td>the board ID of the new card</td>
  5507. </tr>
  5508. <tr>
  5509. <td>list</td>
  5510. <td>path</td>
  5511. <td>string</td>
  5512. <td>true</td>
  5513. <td>the list ID of the new card</td>
  5514. </tr>
  5515. <tr>
  5516. <td>body</td>
  5517. <td>body</td>
  5518. <td>object</td>
  5519. <td>false</td>
  5520. <td>none</td>
  5521. </tr>
  5522. <tr>
  5523. <td>» authorId</td>
  5524. <td>body</td>
  5525. <td>string</td>
  5526. <td>true</td>
  5527. <td>the authorId value</td>
  5528. </tr>
  5529. <tr>
  5530. <td>» members</td>
  5531. <td>body</td>
  5532. <td>string</td>
  5533. <td>false</td>
  5534. <td>the member IDs list of the new card</td>
  5535. </tr>
  5536. <tr>
  5537. <td>» assignees</td>
  5538. <td>body</td>
  5539. <td>string</td>
  5540. <td>false</td>
  5541. <td>the assignee IDs list of the new card</td>
  5542. </tr>
  5543. <tr>
  5544. <td>» title</td>
  5545. <td>body</td>
  5546. <td>string</td>
  5547. <td>true</td>
  5548. <td>the title of the new card</td>
  5549. </tr>
  5550. <tr>
  5551. <td>» description</td>
  5552. <td>body</td>
  5553. <td>string</td>
  5554. <td>true</td>
  5555. <td>the description of the new card</td>
  5556. </tr>
  5557. <tr>
  5558. <td>» swimlaneId</td>
  5559. <td>body</td>
  5560. <td>string</td>
  5561. <td>true</td>
  5562. <td>the swimlane ID of the new card</td>
  5563. </tr>
  5564. </tbody>
  5565. </table>
  5566. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5567. <p><strong>board</strong>: the board ID of the new card</p>
  5568. <p><strong>list</strong>: the list ID of the new card</p>
  5569. <blockquote>
  5570. <p>Example responses</p>
  5571. </blockquote>
  5572. <blockquote>
  5573. <p>200 Response</p>
  5574. </blockquote>
  5575. <pre class="highlight tab tab-json"><code>{
  5576. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5577. }
  5578. </code></pre>
  5579. <h3 id="new_card-responses">Responses</h3>
  5580. <table>
  5581. <thead>
  5582. <tr>
  5583. <th>Status</th>
  5584. <th>Meaning</th>
  5585. <th>Description</th>
  5586. <th>Schema</th>
  5587. </tr>
  5588. </thead>
  5589. <tbody>
  5590. <tr>
  5591. <td>200</td>
  5592. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5593. <td>200 response</td>
  5594. <td>Inline</td>
  5595. </tr>
  5596. </tbody>
  5597. </table>
  5598. <h3 id="new_card-responseschema">Response Schema</h3>
  5599. <p>Status Code <strong>200</strong></p>
  5600. <table>
  5601. <thead>
  5602. <tr>
  5603. <th>Name</th>
  5604. <th>Type</th>
  5605. <th>Required</th>
  5606. <th>Restrictions</th>
  5607. <th>Description</th>
  5608. </tr>
  5609. </thead>
  5610. <tbody>
  5611. <tr>
  5612. <td>» _id</td>
  5613. <td>string</td>
  5614. <td>false</td>
  5615. <td>none</td>
  5616. <td>none</td>
  5617. </tr>
  5618. </tbody>
  5619. </table>
  5620. <aside class="warning">
  5621. To perform this operation, you must be authenticated by means of one of the following methods:
  5622. UserSecurity
  5623. </aside>
  5624. <h2 id="get_card">get_card</h2>
  5625. <p><a id="opIdget_card"></a></p>
  5626. <blockquote>
  5627. <p>Code samples</p>
  5628. </blockquote>
  5629. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5630. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  5631. -H <span class="hljs-string">'Accept: application/json'</span> \
  5632. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5633. </code></pre>
  5634. <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
  5635. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5636. <span class="undefined"></span></span></code></pre>
  5637. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5638. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5639. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5640. };
  5641. $.ajax({
  5642. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5643. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5644. <span class="hljs-attr">headers</span>: headers,
  5645. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5646. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5647. }
  5648. })
  5649. </code></pre>
  5650. <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>);
  5651. <span class="hljs-keyword">const</span> headers = {
  5652. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5653. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5654. };
  5655. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5656. {
  5657. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5658. <span class="hljs-attr">headers</span>: headers
  5659. })
  5660. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5661. <span class="hljs-keyword">return</span> res.json();
  5662. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5663. <span class="hljs-built_in">console</span>.log(body);
  5664. });
  5665. </code></pre>
  5666. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5667. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5668. headers = {
  5669. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5670. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5671. }
  5672. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5673. <span class="hljs-symbol">params:</span> {
  5674. }, <span class="hljs-symbol">headers:</span> headers
  5675. p JSON.parse(result)
  5676. </code></pre>
  5677. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5678. headers = {
  5679. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5680. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5681. }
  5682. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  5683. }, headers = headers)
  5684. <span class="hljs-keyword">print</span> r.json()
  5685. </code></pre>
  5686. <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>);
  5687. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5688. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5689. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5690. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5691. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5692. String inputLine;
  5693. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5694. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5695. response.append(inputLine);
  5696. }
  5697. in.close();
  5698. System.out.println(response.toString());
  5699. </code></pre>
  5700. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5701. <span class="hljs-keyword">import</span> (
  5702. <span class="hljs-string">"bytes"</span>
  5703. <span class="hljs-string">"net/http"</span>
  5704. )
  5705. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5706. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5707. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5708. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5709. }
  5710. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5711. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  5712. req.Header = headers
  5713. client := &amp;http.Client{}
  5714. resp, err := client.Do(req)
  5715. <span class="hljs-comment">// ...</span>
  5716. }
  5717. </code></pre>
  5718. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  5719. <p><em>Get a Card</em></p>
  5720. <h3 id="get_card-parameters">Parameters</h3>
  5721. <table>
  5722. <thead>
  5723. <tr>
  5724. <th>Name</th>
  5725. <th>In</th>
  5726. <th>Type</th>
  5727. <th>Required</th>
  5728. <th>Description</th>
  5729. </tr>
  5730. </thead>
  5731. <tbody>
  5732. <tr>
  5733. <td>board</td>
  5734. <td>path</td>
  5735. <td>string</td>
  5736. <td>true</td>
  5737. <td>the board ID</td>
  5738. </tr>
  5739. <tr>
  5740. <td>list</td>
  5741. <td>path</td>
  5742. <td>string</td>
  5743. <td>true</td>
  5744. <td>the list ID of the card</td>
  5745. </tr>
  5746. <tr>
  5747. <td>card</td>
  5748. <td>path</td>
  5749. <td>string</td>
  5750. <td>true</td>
  5751. <td>the card ID</td>
  5752. </tr>
  5753. </tbody>
  5754. </table>
  5755. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5756. <p><strong>board</strong>: the board ID</p>
  5757. <p><strong>list</strong>: the list ID of the card</p>
  5758. <p><strong>card</strong>: the card ID</p>
  5759. <blockquote>
  5760. <p>Example responses</p>
  5761. </blockquote>
  5762. <blockquote>
  5763. <p>200 Response</p>
  5764. </blockquote>
  5765. <pre class="highlight tab tab-json"><code>{
  5766. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5767. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  5768. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  5769. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  5770. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  5771. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  5772. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  5773. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  5774. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  5775. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  5776. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  5777. <span class="hljs-attr">"customFields"</span>: [
  5778. {}
  5779. ],
  5780. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  5781. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  5782. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  5783. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  5784. <span class="hljs-attr">"labelIds"</span>: [
  5785. <span class="hljs-string">"string"</span>
  5786. ],
  5787. <span class="hljs-attr">"members"</span>: [
  5788. <span class="hljs-string">"string"</span>
  5789. ],
  5790. <span class="hljs-attr">"assignees"</span>: [
  5791. <span class="hljs-string">"string"</span>
  5792. ],
  5793. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  5794. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  5795. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  5796. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  5797. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  5798. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  5799. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  5800. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  5801. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  5802. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  5803. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  5804. <span class="hljs-attr">"vote"</span>: {
  5805. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  5806. <span class="hljs-attr">"positive"</span>: [
  5807. <span class="hljs-string">"string"</span>
  5808. ],
  5809. <span class="hljs-attr">"negative"</span>: [
  5810. <span class="hljs-string">"string"</span>
  5811. ],
  5812. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  5813. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  5814. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  5815. },
  5816. <span class="hljs-attr">"poker"</span>: {
  5817. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  5818. <span class="hljs-attr">"one"</span>: [
  5819. <span class="hljs-string">"string"</span>
  5820. ],
  5821. <span class="hljs-attr">"two"</span>: [
  5822. <span class="hljs-string">"string"</span>
  5823. ],
  5824. <span class="hljs-attr">"three"</span>: [
  5825. <span class="hljs-string">"string"</span>
  5826. ],
  5827. <span class="hljs-attr">"five"</span>: [
  5828. <span class="hljs-string">"string"</span>
  5829. ],
  5830. <span class="hljs-attr">"eight"</span>: [
  5831. <span class="hljs-string">"string"</span>
  5832. ],
  5833. <span class="hljs-attr">"thirteen"</span>: [
  5834. <span class="hljs-string">"string"</span>
  5835. ],
  5836. <span class="hljs-attr">"twenty"</span>: [
  5837. <span class="hljs-string">"string"</span>
  5838. ],
  5839. <span class="hljs-attr">"forty"</span>: [
  5840. <span class="hljs-string">"string"</span>
  5841. ],
  5842. <span class="hljs-attr">"oneHundred"</span>: [
  5843. <span class="hljs-string">"string"</span>
  5844. ],
  5845. <span class="hljs-attr">"unsure"</span>: [
  5846. <span class="hljs-string">"string"</span>
  5847. ],
  5848. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  5849. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  5850. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  5851. },
  5852. <span class="hljs-attr">"targetId_gantt"</span>: [
  5853. <span class="hljs-string">"string"</span>
  5854. ],
  5855. <span class="hljs-attr">"linkType_gantt"</span>: [
  5856. <span class="hljs-number">0</span>
  5857. ],
  5858. <span class="hljs-attr">"linkId_gantt"</span>: [
  5859. <span class="hljs-string">"string"</span>
  5860. ],
  5861. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  5862. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  5863. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>
  5864. }
  5865. </code></pre>
  5866. <h3 id="get_card-responses">Responses</h3>
  5867. <table>
  5868. <thead>
  5869. <tr>
  5870. <th>Status</th>
  5871. <th>Meaning</th>
  5872. <th>Description</th>
  5873. <th>Schema</th>
  5874. </tr>
  5875. </thead>
  5876. <tbody>
  5877. <tr>
  5878. <td>200</td>
  5879. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5880. <td>200 response</td>
  5881. <td><a href="#schemacards">Cards</a></td>
  5882. </tr>
  5883. </tbody>
  5884. </table>
  5885. <aside class="warning">
  5886. To perform this operation, you must be authenticated by means of one of the following methods:
  5887. UserSecurity
  5888. </aside>
  5889. <h2 id="edit_card">edit_card</h2>
  5890. <p><a id="opIdedit_card"></a></p>
  5891. <blockquote>
  5892. <p>Code samples</p>
  5893. </blockquote>
  5894. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5895. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  5896. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5897. -H <span class="hljs-string">'Accept: application/json'</span> \
  5898. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5899. </code></pre>
  5900. <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
  5901. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5902. Accept: application/json
  5903. </span></code></pre>
  5904. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5905. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5906. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5907. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5908. };
  5909. $.ajax({
  5910. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5911. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  5912. <span class="hljs-attr">headers</span>: headers,
  5913. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5914. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5915. }
  5916. })
  5917. </code></pre>
  5918. <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>);
  5919. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5920. "newBoardId": "string",
  5921. "newSwimlaneId": "string",
  5922. "newListId": "string",
  5923. "title": "string",
  5924. "sort": "string",
  5925. "parentId": "string",
  5926. "description": "string",
  5927. "color": "string",
  5928. "vote": {},
  5929. "poker": {},
  5930. "labelIds": "string",
  5931. "requestedBy": "string",
  5932. "assignedBy": "string",
  5933. "receivedAt": "string",
  5934. "startAt": "string",
  5935. "dueAt": "string",
  5936. "endAt": "string",
  5937. "spentTime": "string",
  5938. "isOverTime": true,
  5939. "customFields": "string",
  5940. "members": "string",
  5941. "assignees": "string",
  5942. "swimlaneId": "string",
  5943. "listId": "string",
  5944. "authorId": "string",
  5945. "archive": "string"
  5946. }'</span>;
  5947. <span class="hljs-keyword">const</span> headers = {
  5948. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5949. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5950. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5951. };
  5952. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5953. {
  5954. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  5955. <span class="hljs-attr">body</span>: inputBody,
  5956. <span class="hljs-attr">headers</span>: headers
  5957. })
  5958. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5959. <span class="hljs-keyword">return</span> res.json();
  5960. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5961. <span class="hljs-built_in">console</span>.log(body);
  5962. });
  5963. </code></pre>
  5964. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5965. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5966. headers = {
  5967. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5968. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5969. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5970. }
  5971. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  5972. <span class="hljs-symbol">params:</span> {
  5973. }, <span class="hljs-symbol">headers:</span> headers
  5974. p JSON.parse(result)
  5975. </code></pre>
  5976. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5977. headers = {
  5978. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5979. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5980. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5981. }
  5982. r = requests.put(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  5983. }, headers = headers)
  5984. <span class="hljs-keyword">print</span> r.json()
  5985. </code></pre>
  5986. <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>);
  5987. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5988. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  5989. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5990. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5991. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5992. String inputLine;
  5993. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5994. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5995. response.append(inputLine);
  5996. }
  5997. in.close();
  5998. System.out.println(response.toString());
  5999. </code></pre>
  6000. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6001. <span class="hljs-keyword">import</span> (
  6002. <span class="hljs-string">"bytes"</span>
  6003. <span class="hljs-string">"net/http"</span>
  6004. )
  6005. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6006. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6007. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6008. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6009. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6010. }
  6011. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6012. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  6013. req.Header = headers
  6014. client := &amp;http.Client{}
  6015. resp, err := client.Do(req)
  6016. <span class="hljs-comment">// ...</span>
  6017. }
  6018. </code></pre>
  6019. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  6020. <p><em>Edit Fields in a Card</em></p>
  6021. <p>Edit a card</p>
  6022. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  6023. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  6024. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  6025. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  6026. <code>indigo</code>:</p>
  6027. <img src="/card-colors.png" alt="Wekan card colors" />
  6028. <p>Note: setting the color to white has the same effect than removing it.</p>
  6029. <blockquote>
  6030. <p>Body parameter</p>
  6031. </blockquote>
  6032. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">newBoardId:</span> <span class="hljs-string">string</span>
  6033. <span class="hljs-attr">newSwimlaneId:</span> <span class="hljs-string">string</span>
  6034. <span class="hljs-attr">newListId:</span> <span class="hljs-string">string</span>
  6035. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  6036. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  6037. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  6038. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  6039. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  6040. <span class="hljs-attr">vote:</span> <span class="hljs-string">{}</span>
  6041. <span class="hljs-attr">poker:</span> <span class="hljs-string">{}</span>
  6042. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  6043. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  6044. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  6045. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  6046. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  6047. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  6048. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  6049. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  6050. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  6051. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  6052. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  6053. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  6054. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  6055. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  6056. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6057. <span class="hljs-attr">archive:</span> <span class="hljs-string">string</span>
  6058. </code></pre>
  6059. <h3 id="edit_card-parameters">Parameters</h3>
  6060. <table>
  6061. <thead>
  6062. <tr>
  6063. <th>Name</th>
  6064. <th>In</th>
  6065. <th>Type</th>
  6066. <th>Required</th>
  6067. <th>Description</th>
  6068. </tr>
  6069. </thead>
  6070. <tbody>
  6071. <tr>
  6072. <td>board</td>
  6073. <td>path</td>
  6074. <td>string</td>
  6075. <td>true</td>
  6076. <td>the board ID of the card</td>
  6077. </tr>
  6078. <tr>
  6079. <td>list</td>
  6080. <td>path</td>
  6081. <td>string</td>
  6082. <td>true</td>
  6083. <td>the list ID of the card</td>
  6084. </tr>
  6085. <tr>
  6086. <td>card</td>
  6087. <td>path</td>
  6088. <td>string</td>
  6089. <td>true</td>
  6090. <td>the ID of the card</td>
  6091. </tr>
  6092. <tr>
  6093. <td>body</td>
  6094. <td>body</td>
  6095. <td>object</td>
  6096. <td>false</td>
  6097. <td>none</td>
  6098. </tr>
  6099. <tr>
  6100. <td>» newBoardId</td>
  6101. <td>body</td>
  6102. <td>string</td>
  6103. <td>true</td>
  6104. <td>the newBoardId value</td>
  6105. </tr>
  6106. <tr>
  6107. <td>» newSwimlaneId</td>
  6108. <td>body</td>
  6109. <td>string</td>
  6110. <td>true</td>
  6111. <td>the newSwimlaneId value</td>
  6112. </tr>
  6113. <tr>
  6114. <td>» newListId</td>
  6115. <td>body</td>
  6116. <td>string</td>
  6117. <td>true</td>
  6118. <td>the newListId value</td>
  6119. </tr>
  6120. <tr>
  6121. <td>» title</td>
  6122. <td>body</td>
  6123. <td>string</td>
  6124. <td>false</td>
  6125. <td>the new title of the card</td>
  6126. </tr>
  6127. <tr>
  6128. <td>» sort</td>
  6129. <td>body</td>
  6130. <td>string</td>
  6131. <td>false</td>
  6132. <td>the new sort value of the card</td>
  6133. </tr>
  6134. <tr>
  6135. <td>» parentId</td>
  6136. <td>body</td>
  6137. <td>string</td>
  6138. <td>false</td>
  6139. <td>change the parent of the card</td>
  6140. </tr>
  6141. <tr>
  6142. <td>» description</td>
  6143. <td>body</td>
  6144. <td>string</td>
  6145. <td>false</td>
  6146. <td>the new description of the card</td>
  6147. </tr>
  6148. <tr>
  6149. <td>» color</td>
  6150. <td>body</td>
  6151. <td>string</td>
  6152. <td>false</td>
  6153. <td>the new color of the card</td>
  6154. </tr>
  6155. <tr>
  6156. <td>» vote</td>
  6157. <td>body</td>
  6158. <td>object</td>
  6159. <td>false</td>
  6160. <td>the vote object</td>
  6161. </tr>
  6162. <tr>
  6163. <td>» poker</td>
  6164. <td>body</td>
  6165. <td>object</td>
  6166. <td>false</td>
  6167. <td>the poker object</td>
  6168. </tr>
  6169. <tr>
  6170. <td>» labelIds</td>
  6171. <td>body</td>
  6172. <td>string</td>
  6173. <td>false</td>
  6174. <td>the new list of label IDs attached to the card</td>
  6175. </tr>
  6176. <tr>
  6177. <td>» requestedBy</td>
  6178. <td>body</td>
  6179. <td>string</td>
  6180. <td>false</td>
  6181. <td>the new requestedBy field of the card</td>
  6182. </tr>
  6183. <tr>
  6184. <td>» assignedBy</td>
  6185. <td>body</td>
  6186. <td>string</td>
  6187. <td>false</td>
  6188. <td>the new assignedBy field of the card</td>
  6189. </tr>
  6190. <tr>
  6191. <td>» receivedAt</td>
  6192. <td>body</td>
  6193. <td>string</td>
  6194. <td>false</td>
  6195. <td>the new receivedAt field of the card</td>
  6196. </tr>
  6197. <tr>
  6198. <td>» startAt</td>
  6199. <td>body</td>
  6200. <td>string</td>
  6201. <td>false</td>
  6202. <td>the new startAt field of the card</td>
  6203. </tr>
  6204. <tr>
  6205. <td>» dueAt</td>
  6206. <td>body</td>
  6207. <td>string</td>
  6208. <td>false</td>
  6209. <td>the new dueAt field of the card</td>
  6210. </tr>
  6211. <tr>
  6212. <td>» endAt</td>
  6213. <td>body</td>
  6214. <td>string</td>
  6215. <td>false</td>
  6216. <td>the new endAt field of the card</td>
  6217. </tr>
  6218. <tr>
  6219. <td>» spentTime</td>
  6220. <td>body</td>
  6221. <td>string</td>
  6222. <td>false</td>
  6223. <td>the new spentTime field of the card</td>
  6224. </tr>
  6225. <tr>
  6226. <td>» isOverTime</td>
  6227. <td>body</td>
  6228. <td>boolean</td>
  6229. <td>false</td>
  6230. <td>the new isOverTime field of the card</td>
  6231. </tr>
  6232. <tr>
  6233. <td>» customFields</td>
  6234. <td>body</td>
  6235. <td>string</td>
  6236. <td>false</td>
  6237. <td>the new customFields value of the card</td>
  6238. </tr>
  6239. <tr>
  6240. <td>» members</td>
  6241. <td>body</td>
  6242. <td>string</td>
  6243. <td>false</td>
  6244. <td>the new list of member IDs attached to the card</td>
  6245. </tr>
  6246. <tr>
  6247. <td>» assignees</td>
  6248. <td>body</td>
  6249. <td>string</td>
  6250. <td>false</td>
  6251. <td>the array of maximum one ID of assignee attached to the card</td>
  6252. </tr>
  6253. <tr>
  6254. <td>» swimlaneId</td>
  6255. <td>body</td>
  6256. <td>string</td>
  6257. <td>false</td>
  6258. <td>the new swimlane ID of the card</td>
  6259. </tr>
  6260. <tr>
  6261. <td>» listId</td>
  6262. <td>body</td>
  6263. <td>string</td>
  6264. <td>false</td>
  6265. <td>the new list ID of the card (move operation)</td>
  6266. </tr>
  6267. <tr>
  6268. <td>» authorId</td>
  6269. <td>body</td>
  6270. <td>string</td>
  6271. <td>false</td>
  6272. <td>change the owner of the card</td>
  6273. </tr>
  6274. <tr>
  6275. <td>» archive</td>
  6276. <td>body</td>
  6277. <td>string</td>
  6278. <td>true</td>
  6279. <td>the archive value</td>
  6280. </tr>
  6281. </tbody>
  6282. </table>
  6283. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6284. <p><strong>board</strong>: the board ID of the card</p>
  6285. <p><strong>list</strong>: the list ID of the card</p>
  6286. <p><strong>card</strong>: the ID of the card</p>
  6287. <blockquote>
  6288. <p>Example responses</p>
  6289. </blockquote>
  6290. <blockquote>
  6291. <p>200 Response</p>
  6292. </blockquote>
  6293. <pre class="highlight tab tab-json"><code>{
  6294. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6295. }
  6296. </code></pre>
  6297. <h3 id="edit_card-responses">Responses</h3>
  6298. <table>
  6299. <thead>
  6300. <tr>
  6301. <th>Status</th>
  6302. <th>Meaning</th>
  6303. <th>Description</th>
  6304. <th>Schema</th>
  6305. </tr>
  6306. </thead>
  6307. <tbody>
  6308. <tr>
  6309. <td>200</td>
  6310. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6311. <td>200 response</td>
  6312. <td>Inline</td>
  6313. </tr>
  6314. </tbody>
  6315. </table>
  6316. <h3 id="edit_card-responseschema">Response Schema</h3>
  6317. <p>Status Code <strong>200</strong></p>
  6318. <table>
  6319. <thead>
  6320. <tr>
  6321. <th>Name</th>
  6322. <th>Type</th>
  6323. <th>Required</th>
  6324. <th>Restrictions</th>
  6325. <th>Description</th>
  6326. </tr>
  6327. </thead>
  6328. <tbody>
  6329. <tr>
  6330. <td>» _id</td>
  6331. <td>string</td>
  6332. <td>false</td>
  6333. <td>none</td>
  6334. <td>none</td>
  6335. </tr>
  6336. </tbody>
  6337. </table>
  6338. <aside class="warning">
  6339. To perform this operation, you must be authenticated by means of one of the following methods:
  6340. UserSecurity
  6341. </aside>
  6342. <h2 id="delete_card">delete_card</h2>
  6343. <p><a id="opIddelete_card"></a></p>
  6344. <blockquote>
  6345. <p>Code samples</p>
  6346. </blockquote>
  6347. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6348. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  6349. -H <span class="hljs-string">'Accept: application/json'</span> \
  6350. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6351. </code></pre>
  6352. <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
  6353. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6354. <span class="undefined"></span></span></code></pre>
  6355. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6356. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6357. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6358. };
  6359. $.ajax({
  6360. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6361. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  6362. <span class="hljs-attr">headers</span>: headers,
  6363. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6364. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6365. }
  6366. })
  6367. </code></pre>
  6368. <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>);
  6369. <span class="hljs-keyword">const</span> headers = {
  6370. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6371. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6372. };
  6373. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6374. {
  6375. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  6376. <span class="hljs-attr">headers</span>: headers
  6377. })
  6378. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6379. <span class="hljs-keyword">return</span> res.json();
  6380. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6381. <span class="hljs-built_in">console</span>.log(body);
  6382. });
  6383. </code></pre>
  6384. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6385. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6386. headers = {
  6387. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6388. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6389. }
  6390. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  6391. <span class="hljs-symbol">params:</span> {
  6392. }, <span class="hljs-symbol">headers:</span> headers
  6393. p JSON.parse(result)
  6394. </code></pre>
  6395. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6396. headers = {
  6397. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6398. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6399. }
  6400. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  6401. }, headers = headers)
  6402. <span class="hljs-keyword">print</span> r.json()
  6403. </code></pre>
  6404. <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>);
  6405. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6406. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  6407. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6408. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6409. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6410. String inputLine;
  6411. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6412. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6413. response.append(inputLine);
  6414. }
  6415. in.close();
  6416. System.out.println(response.toString());
  6417. </code></pre>
  6418. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6419. <span class="hljs-keyword">import</span> (
  6420. <span class="hljs-string">"bytes"</span>
  6421. <span class="hljs-string">"net/http"</span>
  6422. )
  6423. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6424. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6425. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6426. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6427. }
  6428. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6429. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  6430. req.Header = headers
  6431. client := &amp;http.Client{}
  6432. resp, err := client.Do(req)
  6433. <span class="hljs-comment">// ...</span>
  6434. }
  6435. </code></pre>
  6436. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  6437. <p><em>Delete a card from a board</em></p>
  6438. <p>This operation <strong>deletes</strong> a card, and therefore the card
  6439. is not put in the recycle bin.</p>
  6440. <h3 id="delete_card-parameters">Parameters</h3>
  6441. <table>
  6442. <thead>
  6443. <tr>
  6444. <th>Name</th>
  6445. <th>In</th>
  6446. <th>Type</th>
  6447. <th>Required</th>
  6448. <th>Description</th>
  6449. </tr>
  6450. </thead>
  6451. <tbody>
  6452. <tr>
  6453. <td>board</td>
  6454. <td>path</td>
  6455. <td>string</td>
  6456. <td>true</td>
  6457. <td>the board ID of the card</td>
  6458. </tr>
  6459. <tr>
  6460. <td>list</td>
  6461. <td>path</td>
  6462. <td>string</td>
  6463. <td>true</td>
  6464. <td>the list ID of the card</td>
  6465. </tr>
  6466. <tr>
  6467. <td>card</td>
  6468. <td>path</td>
  6469. <td>string</td>
  6470. <td>true</td>
  6471. <td>the ID of the card</td>
  6472. </tr>
  6473. </tbody>
  6474. </table>
  6475. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6476. <p><strong>board</strong>: the board ID of the card</p>
  6477. <p><strong>list</strong>: the list ID of the card</p>
  6478. <p><strong>card</strong>: the ID of the card</p>
  6479. <blockquote>
  6480. <p>Example responses</p>
  6481. </blockquote>
  6482. <blockquote>
  6483. <p>200 Response</p>
  6484. </blockquote>
  6485. <pre class="highlight tab tab-json"><code>{
  6486. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6487. }
  6488. </code></pre>
  6489. <h3 id="delete_card-responses">Responses</h3>
  6490. <table>
  6491. <thead>
  6492. <tr>
  6493. <th>Status</th>
  6494. <th>Meaning</th>
  6495. <th>Description</th>
  6496. <th>Schema</th>
  6497. </tr>
  6498. </thead>
  6499. <tbody>
  6500. <tr>
  6501. <td>200</td>
  6502. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6503. <td>200 response</td>
  6504. <td>Inline</td>
  6505. </tr>
  6506. </tbody>
  6507. </table>
  6508. <h3 id="delete_card-responseschema">Response Schema</h3>
  6509. <p>Status Code <strong>200</strong></p>
  6510. <table>
  6511. <thead>
  6512. <tr>
  6513. <th>Name</th>
  6514. <th>Type</th>
  6515. <th>Required</th>
  6516. <th>Restrictions</th>
  6517. <th>Description</th>
  6518. </tr>
  6519. </thead>
  6520. <tbody>
  6521. <tr>
  6522. <td>» _id</td>
  6523. <td>string</td>
  6524. <td>false</td>
  6525. <td>none</td>
  6526. <td>none</td>
  6527. </tr>
  6528. </tbody>
  6529. </table>
  6530. <aside class="warning">
  6531. To perform this operation, you must be authenticated by means of one of the following methods:
  6532. UserSecurity
  6533. </aside>
  6534. <h2 id="edit_card_custom_field">edit_card_custom_field</h2>
  6535. <p><a id="opIdedit_card_custom_field"></a></p>
  6536. <blockquote>
  6537. <p>Code samples</p>
  6538. </blockquote>
  6539. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6540. curl -X POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField} \
  6541. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  6542. -H <span class="hljs-string">'Accept: application/json'</span> \
  6543. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6544. </code></pre>
  6545. <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
  6546. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6547. Accept: application/json
  6548. </span></code></pre>
  6549. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6550. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6551. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6552. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6553. };
  6554. $.ajax({
  6555. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  6556. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  6557. <span class="hljs-attr">headers</span>: headers,
  6558. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6559. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6560. }
  6561. })
  6562. </code></pre>
  6563. <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>);
  6564. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  6565. "value": "string"
  6566. }'</span>;
  6567. <span class="hljs-keyword">const</span> headers = {
  6568. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6569. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6570. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6571. };
  6572. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  6573. {
  6574. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  6575. <span class="hljs-attr">body</span>: inputBody,
  6576. <span class="hljs-attr">headers</span>: headers
  6577. })
  6578. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6579. <span class="hljs-keyword">return</span> res.json();
  6580. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6581. <span class="hljs-built_in">console</span>.log(body);
  6582. });
  6583. </code></pre>
  6584. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6585. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6586. headers = {
  6587. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  6588. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6589. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6590. }
  6591. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  6592. <span class="hljs-symbol">params:</span> {
  6593. }, <span class="hljs-symbol">headers:</span> headers
  6594. p JSON.parse(result)
  6595. </code></pre>
  6596. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6597. headers = {
  6598. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  6599. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6600. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6601. }
  6602. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>, params={
  6603. }, headers = headers)
  6604. <span class="hljs-keyword">print</span> r.json()
  6605. </code></pre>
  6606. <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>);
  6607. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6608. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  6609. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6610. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6611. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6612. String inputLine;
  6613. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6614. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6615. response.append(inputLine);
  6616. }
  6617. in.close();
  6618. System.out.println(response.toString());
  6619. </code></pre>
  6620. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6621. <span class="hljs-keyword">import</span> (
  6622. <span class="hljs-string">"bytes"</span>
  6623. <span class="hljs-string">"net/http"</span>
  6624. )
  6625. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6626. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6627. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6628. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6629. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6630. }
  6631. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6632. 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)
  6633. req.Header = headers
  6634. client := &amp;http.Client{}
  6635. resp, err := client.Do(req)
  6636. <span class="hljs-comment">// ...</span>
  6637. }
  6638. </code></pre>
  6639. <p><code>POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</code></p>
  6640. <p><em>Edit Custom Field in a Card</em></p>
  6641. <p>Edit a custom field value in a card</p>
  6642. <blockquote>
  6643. <p>Body parameter</p>
  6644. </blockquote>
  6645. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">value:</span> <span class="hljs-string">string</span>
  6646. </code></pre>
  6647. <h3 id="edit_card_custom_field-parameters">Parameters</h3>
  6648. <table>
  6649. <thead>
  6650. <tr>
  6651. <th>Name</th>
  6652. <th>In</th>
  6653. <th>Type</th>
  6654. <th>Required</th>
  6655. <th>Description</th>
  6656. </tr>
  6657. </thead>
  6658. <tbody>
  6659. <tr>
  6660. <td>board</td>
  6661. <td>path</td>
  6662. <td>string</td>
  6663. <td>true</td>
  6664. <td>the board ID of the card</td>
  6665. </tr>
  6666. <tr>
  6667. <td>list</td>
  6668. <td>path</td>
  6669. <td>string</td>
  6670. <td>true</td>
  6671. <td>the list ID of the card</td>
  6672. </tr>
  6673. <tr>
  6674. <td>card</td>
  6675. <td>path</td>
  6676. <td>string</td>
  6677. <td>true</td>
  6678. <td>the ID of the card</td>
  6679. </tr>
  6680. <tr>
  6681. <td>customField</td>
  6682. <td>path</td>
  6683. <td>string</td>
  6684. <td>true</td>
  6685. <td>the ID of the custom field</td>
  6686. </tr>
  6687. <tr>
  6688. <td>body</td>
  6689. <td>body</td>
  6690. <td>object</td>
  6691. <td>false</td>
  6692. <td>none</td>
  6693. </tr>
  6694. <tr>
  6695. <td>» value</td>
  6696. <td>body</td>
  6697. <td>string</td>
  6698. <td>true</td>
  6699. <td>the new custom field value</td>
  6700. </tr>
  6701. </tbody>
  6702. </table>
  6703. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6704. <p><strong>board</strong>: the board ID of the card</p>
  6705. <p><strong>list</strong>: the list ID of the card</p>
  6706. <p><strong>card</strong>: the ID of the card</p>
  6707. <p><strong>customField</strong>: the ID of the custom field</p>
  6708. <blockquote>
  6709. <p>Example responses</p>
  6710. </blockquote>
  6711. <blockquote>
  6712. <p>200 Response</p>
  6713. </blockquote>
  6714. <pre class="highlight tab tab-json"><code>{
  6715. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  6716. <span class="hljs-attr">"customFields"</span>: {}
  6717. }
  6718. </code></pre>
  6719. <h3 id="edit_card_custom_field-responses">Responses</h3>
  6720. <table>
  6721. <thead>
  6722. <tr>
  6723. <th>Status</th>
  6724. <th>Meaning</th>
  6725. <th>Description</th>
  6726. <th>Schema</th>
  6727. </tr>
  6728. </thead>
  6729. <tbody>
  6730. <tr>
  6731. <td>200</td>
  6732. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6733. <td>200 response</td>
  6734. <td>Inline</td>
  6735. </tr>
  6736. </tbody>
  6737. </table>
  6738. <h3 id="edit_card_custom_field-responseschema">Response Schema</h3>
  6739. <p>Status Code <strong>200</strong></p>
  6740. <table>
  6741. <thead>
  6742. <tr>
  6743. <th>Name</th>
  6744. <th>Type</th>
  6745. <th>Required</th>
  6746. <th>Restrictions</th>
  6747. <th>Description</th>
  6748. </tr>
  6749. </thead>
  6750. <tbody>
  6751. <tr>
  6752. <td>» _id</td>
  6753. <td>string</td>
  6754. <td>false</td>
  6755. <td>none</td>
  6756. <td>none</td>
  6757. </tr>
  6758. <tr>
  6759. <td>» customFields</td>
  6760. <td>object</td>
  6761. <td>false</td>
  6762. <td>none</td>
  6763. <td>none</td>
  6764. </tr>
  6765. </tbody>
  6766. </table>
  6767. <aside class="warning">
  6768. To perform this operation, you must be authenticated by means of one of the following methods:
  6769. UserSecurity
  6770. </aside>
  6771. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  6772. <p><a id="opIdget_list_cards_count"></a></p>
  6773. <blockquote>
  6774. <p>Code samples</p>
  6775. </blockquote>
  6776. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6777. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  6778. -H <span class="hljs-string">'Accept: application/json'</span> \
  6779. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6780. </code></pre>
  6781. <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
  6782. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6783. <span class="undefined"></span></span></code></pre>
  6784. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6785. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6786. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6787. };
  6788. $.ajax({
  6789. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  6790. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6791. <span class="hljs-attr">headers</span>: headers,
  6792. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6793. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6794. }
  6795. })
  6796. </code></pre>
  6797. <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>);
  6798. <span class="hljs-keyword">const</span> headers = {
  6799. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6800. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6801. };
  6802. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  6803. {
  6804. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6805. <span class="hljs-attr">headers</span>: headers
  6806. })
  6807. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6808. <span class="hljs-keyword">return</span> res.json();
  6809. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6810. <span class="hljs-built_in">console</span>.log(body);
  6811. });
  6812. </code></pre>
  6813. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6814. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6815. headers = {
  6816. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6817. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6818. }
  6819. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  6820. <span class="hljs-symbol">params:</span> {
  6821. }, <span class="hljs-symbol">headers:</span> headers
  6822. p JSON.parse(result)
  6823. </code></pre>
  6824. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6825. headers = {
  6826. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6827. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6828. }
  6829. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>, params={
  6830. }, headers = headers)
  6831. <span class="hljs-keyword">print</span> r.json()
  6832. </code></pre>
  6833. <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>);
  6834. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6835. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6836. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6837. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6838. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6839. String inputLine;
  6840. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6841. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6842. response.append(inputLine);
  6843. }
  6844. in.close();
  6845. System.out.println(response.toString());
  6846. </code></pre>
  6847. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6848. <span class="hljs-keyword">import</span> (
  6849. <span class="hljs-string">"bytes"</span>
  6850. <span class="hljs-string">"net/http"</span>
  6851. )
  6852. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6853. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6854. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6855. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6856. }
  6857. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6858. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards_count"</span>, data)
  6859. req.Header = headers
  6860. client := &amp;http.Client{}
  6861. resp, err := client.Do(req)
  6862. <span class="hljs-comment">// ...</span>
  6863. }
  6864. </code></pre>
  6865. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  6866. <p><em>Get a cards count to a list</em></p>
  6867. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  6868. <table>
  6869. <thead>
  6870. <tr>
  6871. <th>Name</th>
  6872. <th>In</th>
  6873. <th>Type</th>
  6874. <th>Required</th>
  6875. <th>Description</th>
  6876. </tr>
  6877. </thead>
  6878. <tbody>
  6879. <tr>
  6880. <td>board</td>
  6881. <td>path</td>
  6882. <td>string</td>
  6883. <td>true</td>
  6884. <td>the board ID</td>
  6885. </tr>
  6886. <tr>
  6887. <td>list</td>
  6888. <td>path</td>
  6889. <td>string</td>
  6890. <td>true</td>
  6891. <td>the List ID</td>
  6892. </tr>
  6893. </tbody>
  6894. </table>
  6895. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6896. <p><strong>board</strong>: the board ID</p>
  6897. <p><strong>list</strong>: the List ID</p>
  6898. <blockquote>
  6899. <p>Example responses</p>
  6900. </blockquote>
  6901. <blockquote>
  6902. <p>200 Response</p>
  6903. </blockquote>
  6904. <pre class="highlight tab tab-json"><code>{
  6905. <span class="hljs-attr">"list_cards_count"</span>: <span class="hljs-number">0</span>
  6906. }
  6907. </code></pre>
  6908. <h3 id="get_list_cards_count-responses">Responses</h3>
  6909. <table>
  6910. <thead>
  6911. <tr>
  6912. <th>Status</th>
  6913. <th>Meaning</th>
  6914. <th>Description</th>
  6915. <th>Schema</th>
  6916. </tr>
  6917. </thead>
  6918. <tbody>
  6919. <tr>
  6920. <td>200</td>
  6921. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6922. <td>200 response</td>
  6923. <td>Inline</td>
  6924. </tr>
  6925. </tbody>
  6926. </table>
  6927. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  6928. <p>Status Code <strong>200</strong></p>
  6929. <table>
  6930. <thead>
  6931. <tr>
  6932. <th>Name</th>
  6933. <th>Type</th>
  6934. <th>Required</th>
  6935. <th>Restrictions</th>
  6936. <th>Description</th>
  6937. </tr>
  6938. </thead>
  6939. <tbody>
  6940. <tr>
  6941. <td>» list_cards_count</td>
  6942. <td>integer</td>
  6943. <td>false</td>
  6944. <td>none</td>
  6945. <td>none</td>
  6946. </tr>
  6947. </tbody>
  6948. </table>
  6949. <aside class="warning">
  6950. To perform this operation, you must be authenticated by means of one of the following methods:
  6951. UserSecurity
  6952. </aside>
  6953. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  6954. <p><a id="opIdget_swimlane_cards"></a></p>
  6955. <blockquote>
  6956. <p>Code samples</p>
  6957. </blockquote>
  6958. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6959. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  6960. -H <span class="hljs-string">'Accept: application/json'</span> \
  6961. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6962. </code></pre>
  6963. <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
  6964. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6965. <span class="undefined"></span></span></code></pre>
  6966. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6967. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6968. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6969. };
  6970. $.ajax({
  6971. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  6972. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6973. <span class="hljs-attr">headers</span>: headers,
  6974. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6975. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6976. }
  6977. })
  6978. </code></pre>
  6979. <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>);
  6980. <span class="hljs-keyword">const</span> headers = {
  6981. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6982. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6983. };
  6984. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  6985. {
  6986. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6987. <span class="hljs-attr">headers</span>: headers
  6988. })
  6989. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6990. <span class="hljs-keyword">return</span> res.json();
  6991. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6992. <span class="hljs-built_in">console</span>.log(body);
  6993. });
  6994. </code></pre>
  6995. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6996. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6997. headers = {
  6998. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6999. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7000. }
  7001. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  7002. <span class="hljs-symbol">params:</span> {
  7003. }, <span class="hljs-symbol">headers:</span> headers
  7004. p JSON.parse(result)
  7005. </code></pre>
  7006. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7007. headers = {
  7008. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7009. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7010. }
  7011. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>, params={
  7012. }, headers = headers)
  7013. <span class="hljs-keyword">print</span> r.json()
  7014. </code></pre>
  7015. <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>);
  7016. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7017. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7018. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7019. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7020. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7021. String inputLine;
  7022. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7023. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7024. response.append(inputLine);
  7025. }
  7026. in.close();
  7027. System.out.println(response.toString());
  7028. </code></pre>
  7029. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7030. <span class="hljs-keyword">import</span> (
  7031. <span class="hljs-string">"bytes"</span>
  7032. <span class="hljs-string">"net/http"</span>
  7033. )
  7034. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7035. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7036. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7037. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7038. }
  7039. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7040. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}/cards"</span>, data)
  7041. req.Header = headers
  7042. client := &amp;http.Client{}
  7043. resp, err := client.Do(req)
  7044. <span class="hljs-comment">// ...</span>
  7045. }
  7046. </code></pre>
  7047. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  7048. <p><em>get all cards attached to a swimlane</em></p>
  7049. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  7050. <table>
  7051. <thead>
  7052. <tr>
  7053. <th>Name</th>
  7054. <th>In</th>
  7055. <th>Type</th>
  7056. <th>Required</th>
  7057. <th>Description</th>
  7058. </tr>
  7059. </thead>
  7060. <tbody>
  7061. <tr>
  7062. <td>board</td>
  7063. <td>path</td>
  7064. <td>string</td>
  7065. <td>true</td>
  7066. <td>the board ID</td>
  7067. </tr>
  7068. <tr>
  7069. <td>swimlane</td>
  7070. <td>path</td>
  7071. <td>string</td>
  7072. <td>true</td>
  7073. <td>the swimlane ID</td>
  7074. </tr>
  7075. </tbody>
  7076. </table>
  7077. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7078. <p><strong>board</strong>: the board ID</p>
  7079. <p><strong>swimlane</strong>: the swimlane ID</p>
  7080. <blockquote>
  7081. <p>Example responses</p>
  7082. </blockquote>
  7083. <blockquote>
  7084. <p>200 Response</p>
  7085. </blockquote>
  7086. <pre class="highlight tab tab-json"><code>[
  7087. {
  7088. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7089. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7090. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  7091. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>
  7092. }
  7093. ]
  7094. </code></pre>
  7095. <h3 id="get_swimlane_cards-responses">Responses</h3>
  7096. <table>
  7097. <thead>
  7098. <tr>
  7099. <th>Status</th>
  7100. <th>Meaning</th>
  7101. <th>Description</th>
  7102. <th>Schema</th>
  7103. </tr>
  7104. </thead>
  7105. <tbody>
  7106. <tr>
  7107. <td>200</td>
  7108. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7109. <td>200 response</td>
  7110. <td>Inline</td>
  7111. </tr>
  7112. </tbody>
  7113. </table>
  7114. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  7115. <p>Status Code <strong>200</strong></p>
  7116. <table>
  7117. <thead>
  7118. <tr>
  7119. <th>Name</th>
  7120. <th>Type</th>
  7121. <th>Required</th>
  7122. <th>Restrictions</th>
  7123. <th>Description</th>
  7124. </tr>
  7125. </thead>
  7126. <tbody>
  7127. <tr>
  7128. <td>» _id</td>
  7129. <td>string</td>
  7130. <td>false</td>
  7131. <td>none</td>
  7132. <td>none</td>
  7133. </tr>
  7134. <tr>
  7135. <td>» title</td>
  7136. <td>string</td>
  7137. <td>false</td>
  7138. <td>none</td>
  7139. <td>none</td>
  7140. </tr>
  7141. <tr>
  7142. <td>» description</td>
  7143. <td>string</td>
  7144. <td>false</td>
  7145. <td>none</td>
  7146. <td>none</td>
  7147. </tr>
  7148. <tr>
  7149. <td>» listId</td>
  7150. <td>string</td>
  7151. <td>false</td>
  7152. <td>none</td>
  7153. <td>none</td>
  7154. </tr>
  7155. </tbody>
  7156. </table>
  7157. <aside class="warning">
  7158. To perform this operation, you must be authenticated by means of one of the following methods:
  7159. UserSecurity
  7160. </aside>
  7161. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  7162. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  7163. <p><a id="opIdget_all_custom_fields"></a></p>
  7164. <blockquote>
  7165. <p>Code samples</p>
  7166. </blockquote>
  7167. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7168. curl -X GET /api/boards/{board}/custom-fields \
  7169. -H <span class="hljs-string">'Accept: application/json'</span> \
  7170. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7171. </code></pre>
  7172. <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
  7173. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7174. <span class="undefined"></span></span></code></pre>
  7175. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7176. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7177. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7178. };
  7179. $.ajax({
  7180. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7181. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7182. <span class="hljs-attr">headers</span>: headers,
  7183. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7184. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7185. }
  7186. })
  7187. </code></pre>
  7188. <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>);
  7189. <span class="hljs-keyword">const</span> headers = {
  7190. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7191. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7192. };
  7193. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7194. {
  7195. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7196. <span class="hljs-attr">headers</span>: headers
  7197. })
  7198. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7199. <span class="hljs-keyword">return</span> res.json();
  7200. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7201. <span class="hljs-built_in">console</span>.log(body);
  7202. });
  7203. </code></pre>
  7204. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7205. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7206. headers = {
  7207. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7208. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7209. }
  7210. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7211. <span class="hljs-symbol">params:</span> {
  7212. }, <span class="hljs-symbol">headers:</span> headers
  7213. p JSON.parse(result)
  7214. </code></pre>
  7215. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7216. headers = {
  7217. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7218. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7219. }
  7220. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  7221. }, headers = headers)
  7222. <span class="hljs-keyword">print</span> r.json()
  7223. </code></pre>
  7224. <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>);
  7225. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7226. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7227. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7228. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7229. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7230. String inputLine;
  7231. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7232. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7233. response.append(inputLine);
  7234. }
  7235. in.close();
  7236. System.out.println(response.toString());
  7237. </code></pre>
  7238. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7239. <span class="hljs-keyword">import</span> (
  7240. <span class="hljs-string">"bytes"</span>
  7241. <span class="hljs-string">"net/http"</span>
  7242. )
  7243. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7244. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7245. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7246. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7247. }
  7248. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7249. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  7250. req.Header = headers
  7251. client := &amp;http.Client{}
  7252. resp, err := client.Do(req)
  7253. <span class="hljs-comment">// ...</span>
  7254. }
  7255. </code></pre>
  7256. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  7257. <p><em>Get the list of Custom Fields attached to a board</em></p>
  7258. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  7259. <table>
  7260. <thead>
  7261. <tr>
  7262. <th>Name</th>
  7263. <th>In</th>
  7264. <th>Type</th>
  7265. <th>Required</th>
  7266. <th>Description</th>
  7267. </tr>
  7268. </thead>
  7269. <tbody>
  7270. <tr>
  7271. <td>board</td>
  7272. <td>path</td>
  7273. <td>string</td>
  7274. <td>true</td>
  7275. <td>the board value</td>
  7276. </tr>
  7277. </tbody>
  7278. </table>
  7279. <blockquote>
  7280. <p>Example responses</p>
  7281. </blockquote>
  7282. <blockquote>
  7283. <p>200 Response</p>
  7284. </blockquote>
  7285. <pre class="highlight tab tab-json"><code>[
  7286. {
  7287. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7288. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  7289. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  7290. }
  7291. ]
  7292. </code></pre>
  7293. <h3 id="get_all_custom_fields-responses">Responses</h3>
  7294. <table>
  7295. <thead>
  7296. <tr>
  7297. <th>Status</th>
  7298. <th>Meaning</th>
  7299. <th>Description</th>
  7300. <th>Schema</th>
  7301. </tr>
  7302. </thead>
  7303. <tbody>
  7304. <tr>
  7305. <td>200</td>
  7306. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7307. <td>200 response</td>
  7308. <td>Inline</td>
  7309. </tr>
  7310. </tbody>
  7311. </table>
  7312. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  7313. <p>Status Code <strong>200</strong></p>
  7314. <table>
  7315. <thead>
  7316. <tr>
  7317. <th>Name</th>
  7318. <th>Type</th>
  7319. <th>Required</th>
  7320. <th>Restrictions</th>
  7321. <th>Description</th>
  7322. </tr>
  7323. </thead>
  7324. <tbody>
  7325. <tr>
  7326. <td>» _id</td>
  7327. <td>string</td>
  7328. <td>false</td>
  7329. <td>none</td>
  7330. <td>none</td>
  7331. </tr>
  7332. <tr>
  7333. <td>» name</td>
  7334. <td>string</td>
  7335. <td>false</td>
  7336. <td>none</td>
  7337. <td>none</td>
  7338. </tr>
  7339. <tr>
  7340. <td>» type</td>
  7341. <td>string</td>
  7342. <td>false</td>
  7343. <td>none</td>
  7344. <td>none</td>
  7345. </tr>
  7346. </tbody>
  7347. </table>
  7348. <aside class="warning">
  7349. To perform this operation, you must be authenticated by means of one of the following methods:
  7350. UserSecurity
  7351. </aside>
  7352. <h2 id="new_custom_field">new_custom_field</h2>
  7353. <p><a id="opIdnew_custom_field"></a></p>
  7354. <blockquote>
  7355. <p>Code samples</p>
  7356. </blockquote>
  7357. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7358. curl -X POST /api/boards/{board}/custom-fields \
  7359. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7360. -H <span class="hljs-string">'Accept: application/json'</span> \
  7361. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7362. </code></pre>
  7363. <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
  7364. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7365. Accept: application/json
  7366. </span></code></pre>
  7367. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7368. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7369. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7370. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7371. };
  7372. $.ajax({
  7373. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7374. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  7375. <span class="hljs-attr">headers</span>: headers,
  7376. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7377. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7378. }
  7379. })
  7380. </code></pre>
  7381. <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>);
  7382. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7383. "name": "string",
  7384. "type": "string",
  7385. "settings": "string",
  7386. "showOnCard": true,
  7387. "automaticallyOnCard": true,
  7388. "showLabelOnMiniCard": true,
  7389. "showSumAtTopOfList": true,
  7390. "authorId": "string"
  7391. }'</span>;
  7392. <span class="hljs-keyword">const</span> headers = {
  7393. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7394. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7395. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7396. };
  7397. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7398. {
  7399. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  7400. <span class="hljs-attr">body</span>: inputBody,
  7401. <span class="hljs-attr">headers</span>: headers
  7402. })
  7403. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7404. <span class="hljs-keyword">return</span> res.json();
  7405. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7406. <span class="hljs-built_in">console</span>.log(body);
  7407. });
  7408. </code></pre>
  7409. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7410. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7411. headers = {
  7412. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7413. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7414. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7415. }
  7416. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  7417. <span class="hljs-symbol">params:</span> {
  7418. }, <span class="hljs-symbol">headers:</span> headers
  7419. p JSON.parse(result)
  7420. </code></pre>
  7421. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7422. headers = {
  7423. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7424. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7425. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7426. }
  7427. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  7428. }, headers = headers)
  7429. <span class="hljs-keyword">print</span> r.json()
  7430. </code></pre>
  7431. <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>);
  7432. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7433. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  7434. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7435. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7436. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7437. String inputLine;
  7438. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7439. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7440. response.append(inputLine);
  7441. }
  7442. in.close();
  7443. System.out.println(response.toString());
  7444. </code></pre>
  7445. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7446. <span class="hljs-keyword">import</span> (
  7447. <span class="hljs-string">"bytes"</span>
  7448. <span class="hljs-string">"net/http"</span>
  7449. )
  7450. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7451. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7452. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7453. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7454. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7455. }
  7456. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7457. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  7458. req.Header = headers
  7459. client := &amp;http.Client{}
  7460. resp, err := client.Do(req)
  7461. <span class="hljs-comment">// ...</span>
  7462. }
  7463. </code></pre>
  7464. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  7465. <p><em>Create a Custom Field</em></p>
  7466. <blockquote>
  7467. <p>Body parameter</p>
  7468. </blockquote>
  7469. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  7470. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  7471. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  7472. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  7473. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  7474. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  7475. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  7476. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7477. </code></pre>
  7478. <h3 id="new_custom_field-parameters">Parameters</h3>
  7479. <table>
  7480. <thead>
  7481. <tr>
  7482. <th>Name</th>
  7483. <th>In</th>
  7484. <th>Type</th>
  7485. <th>Required</th>
  7486. <th>Description</th>
  7487. </tr>
  7488. </thead>
  7489. <tbody>
  7490. <tr>
  7491. <td>board</td>
  7492. <td>path</td>
  7493. <td>string</td>
  7494. <td>true</td>
  7495. <td>the board value</td>
  7496. </tr>
  7497. <tr>
  7498. <td>body</td>
  7499. <td>body</td>
  7500. <td>object</td>
  7501. <td>false</td>
  7502. <td>none</td>
  7503. </tr>
  7504. <tr>
  7505. <td>» name</td>
  7506. <td>body</td>
  7507. <td>string</td>
  7508. <td>true</td>
  7509. <td>the name of the custom field</td>
  7510. </tr>
  7511. <tr>
  7512. <td>» type</td>
  7513. <td>body</td>
  7514. <td>string</td>
  7515. <td>true</td>
  7516. <td>the type of the custom field</td>
  7517. </tr>
  7518. <tr>
  7519. <td>» settings</td>
  7520. <td>body</td>
  7521. <td>string</td>
  7522. <td>true</td>
  7523. <td>the settings object of the custom field</td>
  7524. </tr>
  7525. <tr>
  7526. <td>» showOnCard</td>
  7527. <td>body</td>
  7528. <td>boolean</td>
  7529. <td>true</td>
  7530. <td>should we show the custom field on cards?</td>
  7531. </tr>
  7532. <tr>
  7533. <td>» automaticallyOnCard</td>
  7534. <td>body</td>
  7535. <td>boolean</td>
  7536. <td>true</td>
  7537. <td>should the custom fields automatically be added on cards?</td>
  7538. </tr>
  7539. <tr>
  7540. <td>» showLabelOnMiniCard</td>
  7541. <td>body</td>
  7542. <td>boolean</td>
  7543. <td>true</td>
  7544. <td>should the label of the custom field be shown on minicards?</td>
  7545. </tr>
  7546. <tr>
  7547. <td>» showSumAtTopOfList</td>
  7548. <td>body</td>
  7549. <td>boolean</td>
  7550. <td>true</td>
  7551. <td>should the sum of the custom fields be shown at top of list?</td>
  7552. </tr>
  7553. <tr>
  7554. <td>» authorId</td>
  7555. <td>body</td>
  7556. <td>string</td>
  7557. <td>true</td>
  7558. <td>the authorId value</td>
  7559. </tr>
  7560. </tbody>
  7561. </table>
  7562. <blockquote>
  7563. <p>Example responses</p>
  7564. </blockquote>
  7565. <blockquote>
  7566. <p>200 Response</p>
  7567. </blockquote>
  7568. <pre class="highlight tab tab-json"><code>{
  7569. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  7570. }
  7571. </code></pre>
  7572. <h3 id="new_custom_field-responses">Responses</h3>
  7573. <table>
  7574. <thead>
  7575. <tr>
  7576. <th>Status</th>
  7577. <th>Meaning</th>
  7578. <th>Description</th>
  7579. <th>Schema</th>
  7580. </tr>
  7581. </thead>
  7582. <tbody>
  7583. <tr>
  7584. <td>200</td>
  7585. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7586. <td>200 response</td>
  7587. <td>Inline</td>
  7588. </tr>
  7589. </tbody>
  7590. </table>
  7591. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  7592. <p>Status Code <strong>200</strong></p>
  7593. <table>
  7594. <thead>
  7595. <tr>
  7596. <th>Name</th>
  7597. <th>Type</th>
  7598. <th>Required</th>
  7599. <th>Restrictions</th>
  7600. <th>Description</th>
  7601. </tr>
  7602. </thead>
  7603. <tbody>
  7604. <tr>
  7605. <td>» _id</td>
  7606. <td>string</td>
  7607. <td>false</td>
  7608. <td>none</td>
  7609. <td>none</td>
  7610. </tr>
  7611. </tbody>
  7612. </table>
  7613. <aside class="warning">
  7614. To perform this operation, you must be authenticated by means of one of the following methods:
  7615. UserSecurity
  7616. </aside>
  7617. <h2 id="get_custom_field">get_custom_field</h2>
  7618. <p><a id="opIdget_custom_field"></a></p>
  7619. <blockquote>
  7620. <p>Code samples</p>
  7621. </blockquote>
  7622. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7623. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  7624. -H <span class="hljs-string">'Accept: application/json'</span> \
  7625. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7626. </code></pre>
  7627. <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
  7628. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7629. <span class="undefined"></span></span></code></pre>
  7630. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7631. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7632. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7633. };
  7634. $.ajax({
  7635. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7636. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7637. <span class="hljs-attr">headers</span>: headers,
  7638. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7639. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7640. }
  7641. })
  7642. </code></pre>
  7643. <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>);
  7644. <span class="hljs-keyword">const</span> headers = {
  7645. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7646. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7647. };
  7648. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7649. {
  7650. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7651. <span class="hljs-attr">headers</span>: headers
  7652. })
  7653. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7654. <span class="hljs-keyword">return</span> res.json();
  7655. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7656. <span class="hljs-built_in">console</span>.log(body);
  7657. });
  7658. </code></pre>
  7659. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7660. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7661. headers = {
  7662. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7663. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7664. }
  7665. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7666. <span class="hljs-symbol">params:</span> {
  7667. }, <span class="hljs-symbol">headers:</span> headers
  7668. p JSON.parse(result)
  7669. </code></pre>
  7670. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7671. headers = {
  7672. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7673. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7674. }
  7675. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  7676. }, headers = headers)
  7677. <span class="hljs-keyword">print</span> r.json()
  7678. </code></pre>
  7679. <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>);
  7680. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7681. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7682. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7683. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7684. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7685. String inputLine;
  7686. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7687. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7688. response.append(inputLine);
  7689. }
  7690. in.close();
  7691. System.out.println(response.toString());
  7692. </code></pre>
  7693. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7694. <span class="hljs-keyword">import</span> (
  7695. <span class="hljs-string">"bytes"</span>
  7696. <span class="hljs-string">"net/http"</span>
  7697. )
  7698. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7699. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7700. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7701. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7702. }
  7703. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7704. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  7705. req.Header = headers
  7706. client := &amp;http.Client{}
  7707. resp, err := client.Do(req)
  7708. <span class="hljs-comment">// ...</span>
  7709. }
  7710. </code></pre>
  7711. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  7712. <p><em>Get a Custom Fields attached to a board</em></p>
  7713. <h3 id="get_custom_field-parameters">Parameters</h3>
  7714. <table>
  7715. <thead>
  7716. <tr>
  7717. <th>Name</th>
  7718. <th>In</th>
  7719. <th>Type</th>
  7720. <th>Required</th>
  7721. <th>Description</th>
  7722. </tr>
  7723. </thead>
  7724. <tbody>
  7725. <tr>
  7726. <td>board</td>
  7727. <td>path</td>
  7728. <td>string</td>
  7729. <td>true</td>
  7730. <td>the board value</td>
  7731. </tr>
  7732. <tr>
  7733. <td>customField</td>
  7734. <td>path</td>
  7735. <td>string</td>
  7736. <td>true</td>
  7737. <td>the ID of the custom field</td>
  7738. </tr>
  7739. </tbody>
  7740. </table>
  7741. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7742. <p><strong>customField</strong>: the ID of the custom field</p>
  7743. <blockquote>
  7744. <p>Example responses</p>
  7745. </blockquote>
  7746. <blockquote>
  7747. <p>200 Response</p>
  7748. </blockquote>
  7749. <pre class="highlight tab tab-json"><code>[
  7750. {
  7751. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7752. <span class="hljs-attr">"boardIds"</span>: <span class="hljs-string">"string"</span>
  7753. }
  7754. ]
  7755. </code></pre>
  7756. <h3 id="get_custom_field-responses">Responses</h3>
  7757. <table>
  7758. <thead>
  7759. <tr>
  7760. <th>Status</th>
  7761. <th>Meaning</th>
  7762. <th>Description</th>
  7763. <th>Schema</th>
  7764. </tr>
  7765. </thead>
  7766. <tbody>
  7767. <tr>
  7768. <td>200</td>
  7769. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7770. <td>200 response</td>
  7771. <td>Inline</td>
  7772. </tr>
  7773. </tbody>
  7774. </table>
  7775. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  7776. <p>Status Code <strong>200</strong></p>
  7777. <table>
  7778. <thead>
  7779. <tr>
  7780. <th>Name</th>
  7781. <th>Type</th>
  7782. <th>Required</th>
  7783. <th>Restrictions</th>
  7784. <th>Description</th>
  7785. </tr>
  7786. </thead>
  7787. <tbody>
  7788. <tr>
  7789. <td>» _id</td>
  7790. <td>string</td>
  7791. <td>false</td>
  7792. <td>none</td>
  7793. <td>none</td>
  7794. </tr>
  7795. <tr>
  7796. <td>» boardIds</td>
  7797. <td>string</td>
  7798. <td>false</td>
  7799. <td>none</td>
  7800. <td>none</td>
  7801. </tr>
  7802. </tbody>
  7803. </table>
  7804. <aside class="warning">
  7805. To perform this operation, you must be authenticated by means of one of the following methods:
  7806. UserSecurity
  7807. </aside>
  7808. <h2 id="edit_custom_field">edit_custom_field</h2>
  7809. <p><a id="opIdedit_custom_field"></a></p>
  7810. <blockquote>
  7811. <p>Code samples</p>
  7812. </blockquote>
  7813. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7814. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  7815. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7816. -H <span class="hljs-string">'Accept: application/json'</span> \
  7817. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7818. </code></pre>
  7819. <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
  7820. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7821. Accept: application/json
  7822. </span></code></pre>
  7823. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7824. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7825. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7826. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7827. };
  7828. $.ajax({
  7829. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7830. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  7831. <span class="hljs-attr">headers</span>: headers,
  7832. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7833. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7834. }
  7835. })
  7836. </code></pre>
  7837. <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>);
  7838. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7839. "name": "string",
  7840. "type": "string",
  7841. "settings": "string",
  7842. "showOnCard": true,
  7843. "automaticallyOnCard": true,
  7844. "alwaysOnCard": "string",
  7845. "showLabelOnMiniCard": true,
  7846. "showSumAtTopOfList": true
  7847. }'</span>;
  7848. <span class="hljs-keyword">const</span> headers = {
  7849. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7850. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7851. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7852. };
  7853. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7854. {
  7855. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  7856. <span class="hljs-attr">body</span>: inputBody,
  7857. <span class="hljs-attr">headers</span>: headers
  7858. })
  7859. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7860. <span class="hljs-keyword">return</span> res.json();
  7861. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7862. <span class="hljs-built_in">console</span>.log(body);
  7863. });
  7864. </code></pre>
  7865. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7866. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7867. headers = {
  7868. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7869. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7870. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7871. }
  7872. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  7873. <span class="hljs-symbol">params:</span> {
  7874. }, <span class="hljs-symbol">headers:</span> headers
  7875. p JSON.parse(result)
  7876. </code></pre>
  7877. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7878. headers = {
  7879. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7880. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7881. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7882. }
  7883. r = requests.put(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  7884. }, headers = headers)
  7885. <span class="hljs-keyword">print</span> r.json()
  7886. </code></pre>
  7887. <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>);
  7888. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7889. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  7890. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7891. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7892. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7893. String inputLine;
  7894. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7895. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7896. response.append(inputLine);
  7897. }
  7898. in.close();
  7899. System.out.println(response.toString());
  7900. </code></pre>
  7901. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7902. <span class="hljs-keyword">import</span> (
  7903. <span class="hljs-string">"bytes"</span>
  7904. <span class="hljs-string">"net/http"</span>
  7905. )
  7906. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7907. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7908. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7909. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7910. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7911. }
  7912. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7913. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  7914. req.Header = headers
  7915. client := &amp;http.Client{}
  7916. resp, err := client.Do(req)
  7917. <span class="hljs-comment">// ...</span>
  7918. }
  7919. </code></pre>
  7920. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  7921. <p><em>Update a Custom Field</em></p>
  7922. <blockquote>
  7923. <p>Body parameter</p>
  7924. </blockquote>
  7925. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  7926. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  7927. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  7928. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  7929. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  7930. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  7931. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  7932. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  7933. </code></pre>
  7934. <h3 id="edit_custom_field-parameters">Parameters</h3>
  7935. <table>
  7936. <thead>
  7937. <tr>
  7938. <th>Name</th>
  7939. <th>In</th>
  7940. <th>Type</th>
  7941. <th>Required</th>
  7942. <th>Description</th>
  7943. </tr>
  7944. </thead>
  7945. <tbody>
  7946. <tr>
  7947. <td>board</td>
  7948. <td>path</td>
  7949. <td>string</td>
  7950. <td>true</td>
  7951. <td>the board value</td>
  7952. </tr>
  7953. <tr>
  7954. <td>customField</td>
  7955. <td>path</td>
  7956. <td>string</td>
  7957. <td>true</td>
  7958. <td>the customField value</td>
  7959. </tr>
  7960. <tr>
  7961. <td>body</td>
  7962. <td>body</td>
  7963. <td>object</td>
  7964. <td>false</td>
  7965. <td>none</td>
  7966. </tr>
  7967. <tr>
  7968. <td>» name</td>
  7969. <td>body</td>
  7970. <td>string</td>
  7971. <td>true</td>
  7972. <td>the name of the custom field</td>
  7973. </tr>
  7974. <tr>
  7975. <td>» type</td>
  7976. <td>body</td>
  7977. <td>string</td>
  7978. <td>true</td>
  7979. <td>the type of the custom field</td>
  7980. </tr>
  7981. <tr>
  7982. <td>» settings</td>
  7983. <td>body</td>
  7984. <td>string</td>
  7985. <td>true</td>
  7986. <td>the settings object of the custom field</td>
  7987. </tr>
  7988. <tr>
  7989. <td>» showOnCard</td>
  7990. <td>body</td>
  7991. <td>boolean</td>
  7992. <td>true</td>
  7993. <td>should we show the custom field on cards</td>
  7994. </tr>
  7995. <tr>
  7996. <td>» automaticallyOnCard</td>
  7997. <td>body</td>
  7998. <td>boolean</td>
  7999. <td>true</td>
  8000. <td>should the custom fields automatically be added on cards</td>
  8001. </tr>
  8002. <tr>
  8003. <td>» alwaysOnCard</td>
  8004. <td>body</td>
  8005. <td>string</td>
  8006. <td>true</td>
  8007. <td>the alwaysOnCard value</td>
  8008. </tr>
  8009. <tr>
  8010. <td>» showLabelOnMiniCard</td>
  8011. <td>body</td>
  8012. <td>boolean</td>
  8013. <td>true</td>
  8014. <td>should the label of the custom field be shown on minicards</td>
  8015. </tr>
  8016. <tr>
  8017. <td>» showSumAtTopOfList</td>
  8018. <td>body</td>
  8019. <td>boolean</td>
  8020. <td>true</td>
  8021. <td>should the sum of the custom fields be shown at top of list</td>
  8022. </tr>
  8023. </tbody>
  8024. </table>
  8025. <blockquote>
  8026. <p>Example responses</p>
  8027. </blockquote>
  8028. <blockquote>
  8029. <p>200 Response</p>
  8030. </blockquote>
  8031. <pre class="highlight tab tab-json"><code>{
  8032. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8033. }
  8034. </code></pre>
  8035. <h3 id="edit_custom_field-responses">Responses</h3>
  8036. <table>
  8037. <thead>
  8038. <tr>
  8039. <th>Status</th>
  8040. <th>Meaning</th>
  8041. <th>Description</th>
  8042. <th>Schema</th>
  8043. </tr>
  8044. </thead>
  8045. <tbody>
  8046. <tr>
  8047. <td>200</td>
  8048. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8049. <td>200 response</td>
  8050. <td>Inline</td>
  8051. </tr>
  8052. </tbody>
  8053. </table>
  8054. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  8055. <p>Status Code <strong>200</strong></p>
  8056. <table>
  8057. <thead>
  8058. <tr>
  8059. <th>Name</th>
  8060. <th>Type</th>
  8061. <th>Required</th>
  8062. <th>Restrictions</th>
  8063. <th>Description</th>
  8064. </tr>
  8065. </thead>
  8066. <tbody>
  8067. <tr>
  8068. <td>» _id</td>
  8069. <td>string</td>
  8070. <td>false</td>
  8071. <td>none</td>
  8072. <td>none</td>
  8073. </tr>
  8074. </tbody>
  8075. </table>
  8076. <aside class="warning">
  8077. To perform this operation, you must be authenticated by means of one of the following methods:
  8078. UserSecurity
  8079. </aside>
  8080. <h2 id="delete_custom_field">delete_custom_field</h2>
  8081. <p><a id="opIddelete_custom_field"></a></p>
  8082. <blockquote>
  8083. <p>Code samples</p>
  8084. </blockquote>
  8085. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8086. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  8087. -H <span class="hljs-string">'Accept: application/json'</span> \
  8088. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8089. </code></pre>
  8090. <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
  8091. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8092. <span class="undefined"></span></span></code></pre>
  8093. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8094. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8095. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8096. };
  8097. $.ajax({
  8098. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8099. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  8100. <span class="hljs-attr">headers</span>: headers,
  8101. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8102. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8103. }
  8104. })
  8105. </code></pre>
  8106. <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>);
  8107. <span class="hljs-keyword">const</span> headers = {
  8108. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8109. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8110. };
  8111. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8112. {
  8113. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  8114. <span class="hljs-attr">headers</span>: headers
  8115. })
  8116. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8117. <span class="hljs-keyword">return</span> res.json();
  8118. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8119. <span class="hljs-built_in">console</span>.log(body);
  8120. });
  8121. </code></pre>
  8122. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8123. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8124. headers = {
  8125. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8126. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8127. }
  8128. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  8129. <span class="hljs-symbol">params:</span> {
  8130. }, <span class="hljs-symbol">headers:</span> headers
  8131. p JSON.parse(result)
  8132. </code></pre>
  8133. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8134. headers = {
  8135. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8136. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8137. }
  8138. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  8139. }, headers = headers)
  8140. <span class="hljs-keyword">print</span> r.json()
  8141. </code></pre>
  8142. <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>);
  8143. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8144. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  8145. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8146. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8147. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8148. String inputLine;
  8149. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8150. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8151. response.append(inputLine);
  8152. }
  8153. in.close();
  8154. System.out.println(response.toString());
  8155. </code></pre>
  8156. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8157. <span class="hljs-keyword">import</span> (
  8158. <span class="hljs-string">"bytes"</span>
  8159. <span class="hljs-string">"net/http"</span>
  8160. )
  8161. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8162. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8163. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8164. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8165. }
  8166. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8167. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  8168. req.Header = headers
  8169. client := &amp;http.Client{}
  8170. resp, err := client.Do(req)
  8171. <span class="hljs-comment">// ...</span>
  8172. }
  8173. </code></pre>
  8174. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  8175. <p><em>Delete a Custom Fields attached to a board</em></p>
  8176. <p>The Custom Field can't be retrieved after this operation</p>
  8177. <h3 id="delete_custom_field-parameters">Parameters</h3>
  8178. <table>
  8179. <thead>
  8180. <tr>
  8181. <th>Name</th>
  8182. <th>In</th>
  8183. <th>Type</th>
  8184. <th>Required</th>
  8185. <th>Description</th>
  8186. </tr>
  8187. </thead>
  8188. <tbody>
  8189. <tr>
  8190. <td>board</td>
  8191. <td>path</td>
  8192. <td>string</td>
  8193. <td>true</td>
  8194. <td>the board value</td>
  8195. </tr>
  8196. <tr>
  8197. <td>customField</td>
  8198. <td>path</td>
  8199. <td>string</td>
  8200. <td>true</td>
  8201. <td>the ID of the custom field</td>
  8202. </tr>
  8203. </tbody>
  8204. </table>
  8205. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8206. <p><strong>customField</strong>: the ID of the custom field</p>
  8207. <blockquote>
  8208. <p>Example responses</p>
  8209. </blockquote>
  8210. <blockquote>
  8211. <p>200 Response</p>
  8212. </blockquote>
  8213. <pre class="highlight tab tab-json"><code>{
  8214. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8215. }
  8216. </code></pre>
  8217. <h3 id="delete_custom_field-responses">Responses</h3>
  8218. <table>
  8219. <thead>
  8220. <tr>
  8221. <th>Status</th>
  8222. <th>Meaning</th>
  8223. <th>Description</th>
  8224. <th>Schema</th>
  8225. </tr>
  8226. </thead>
  8227. <tbody>
  8228. <tr>
  8229. <td>200</td>
  8230. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8231. <td>200 response</td>
  8232. <td>Inline</td>
  8233. </tr>
  8234. </tbody>
  8235. </table>
  8236. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  8237. <p>Status Code <strong>200</strong></p>
  8238. <table>
  8239. <thead>
  8240. <tr>
  8241. <th>Name</th>
  8242. <th>Type</th>
  8243. <th>Required</th>
  8244. <th>Restrictions</th>
  8245. <th>Description</th>
  8246. </tr>
  8247. </thead>
  8248. <tbody>
  8249. <tr>
  8250. <td>» _id</td>
  8251. <td>string</td>
  8252. <td>false</td>
  8253. <td>none</td>
  8254. <td>none</td>
  8255. </tr>
  8256. </tbody>
  8257. </table>
  8258. <aside class="warning">
  8259. To perform this operation, you must be authenticated by means of one of the following methods:
  8260. UserSecurity
  8261. </aside>
  8262. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  8263. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  8264. <blockquote>
  8265. <p>Code samples</p>
  8266. </blockquote>
  8267. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8268. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  8269. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8270. -H <span class="hljs-string">'Accept: application/json'</span> \
  8271. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8272. </code></pre>
  8273. <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
  8274. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8275. Accept: application/json
  8276. </span></code></pre>
  8277. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8278. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8279. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8280. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8281. };
  8282. $.ajax({
  8283. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  8284. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  8285. <span class="hljs-attr">headers</span>: headers,
  8286. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8287. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8288. }
  8289. })
  8290. </code></pre>
  8291. <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>);
  8292. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8293. "items": "string"
  8294. }'</span>;
  8295. <span class="hljs-keyword">const</span> headers = {
  8296. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8297. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8298. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8299. };
  8300. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  8301. {
  8302. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  8303. <span class="hljs-attr">body</span>: inputBody,
  8304. <span class="hljs-attr">headers</span>: headers
  8305. })
  8306. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8307. <span class="hljs-keyword">return</span> res.json();
  8308. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8309. <span class="hljs-built_in">console</span>.log(body);
  8310. });
  8311. </code></pre>
  8312. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8313. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8314. headers = {
  8315. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8316. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8317. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8318. }
  8319. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  8320. <span class="hljs-symbol">params:</span> {
  8321. }, <span class="hljs-symbol">headers:</span> headers
  8322. p JSON.parse(result)
  8323. </code></pre>
  8324. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8325. headers = {
  8326. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8327. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8328. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8329. }
  8330. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>, params={
  8331. }, headers = headers)
  8332. <span class="hljs-keyword">print</span> r.json()
  8333. </code></pre>
  8334. <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>);
  8335. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8336. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  8337. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8338. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8339. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8340. String inputLine;
  8341. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8342. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8343. response.append(inputLine);
  8344. }
  8345. in.close();
  8346. System.out.println(response.toString());
  8347. </code></pre>
  8348. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8349. <span class="hljs-keyword">import</span> (
  8350. <span class="hljs-string">"bytes"</span>
  8351. <span class="hljs-string">"net/http"</span>
  8352. )
  8353. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8354. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8355. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8356. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8357. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8358. }
  8359. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8360. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items"</span>, data)
  8361. req.Header = headers
  8362. client := &amp;http.Client{}
  8363. resp, err := client.Do(req)
  8364. <span class="hljs-comment">// ...</span>
  8365. }
  8366. </code></pre>
  8367. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  8368. <p><em>Update a Custom Field's dropdown items</em></p>
  8369. <blockquote>
  8370. <p>Body parameter</p>
  8371. </blockquote>
  8372. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  8373. </code></pre>
  8374. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  8375. <table>
  8376. <thead>
  8377. <tr>
  8378. <th>Name</th>
  8379. <th>In</th>
  8380. <th>Type</th>
  8381. <th>Required</th>
  8382. <th>Description</th>
  8383. </tr>
  8384. </thead>
  8385. <tbody>
  8386. <tr>
  8387. <td>board</td>
  8388. <td>path</td>
  8389. <td>string</td>
  8390. <td>true</td>
  8391. <td>the board value</td>
  8392. </tr>
  8393. <tr>
  8394. <td>customField</td>
  8395. <td>path</td>
  8396. <td>string</td>
  8397. <td>true</td>
  8398. <td>the customField value</td>
  8399. </tr>
  8400. <tr>
  8401. <td>body</td>
  8402. <td>body</td>
  8403. <td>object</td>
  8404. <td>false</td>
  8405. <td>none</td>
  8406. </tr>
  8407. <tr>
  8408. <td>» items</td>
  8409. <td>body</td>
  8410. <td>string</td>
  8411. <td>false</td>
  8412. <td>names of the custom field</td>
  8413. </tr>
  8414. </tbody>
  8415. </table>
  8416. <blockquote>
  8417. <p>Example responses</p>
  8418. </blockquote>
  8419. <blockquote>
  8420. <p>200 Response</p>
  8421. </blockquote>
  8422. <pre class="highlight tab tab-json"><code>{
  8423. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8424. }
  8425. </code></pre>
  8426. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  8427. <table>
  8428. <thead>
  8429. <tr>
  8430. <th>Status</th>
  8431. <th>Meaning</th>
  8432. <th>Description</th>
  8433. <th>Schema</th>
  8434. </tr>
  8435. </thead>
  8436. <tbody>
  8437. <tr>
  8438. <td>200</td>
  8439. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8440. <td>200 response</td>
  8441. <td>Inline</td>
  8442. </tr>
  8443. </tbody>
  8444. </table>
  8445. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  8446. <p>Status Code <strong>200</strong></p>
  8447. <table>
  8448. <thead>
  8449. <tr>
  8450. <th>Name</th>
  8451. <th>Type</th>
  8452. <th>Required</th>
  8453. <th>Restrictions</th>
  8454. <th>Description</th>
  8455. </tr>
  8456. </thead>
  8457. <tbody>
  8458. <tr>
  8459. <td>» _id</td>
  8460. <td>string</td>
  8461. <td>false</td>
  8462. <td>none</td>
  8463. <td>none</td>
  8464. </tr>
  8465. </tbody>
  8466. </table>
  8467. <aside class="warning">
  8468. To perform this operation, you must be authenticated by means of one of the following methods:
  8469. UserSecurity
  8470. </aside>
  8471. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  8472. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  8473. <blockquote>
  8474. <p>Code samples</p>
  8475. </blockquote>
  8476. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8477. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  8478. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8479. -H <span class="hljs-string">'Accept: application/json'</span> \
  8480. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8481. </code></pre>
  8482. <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
  8483. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8484. Accept: application/json
  8485. </span></code></pre>
  8486. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8487. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8488. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8489. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8490. };
  8491. $.ajax({
  8492. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8493. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  8494. <span class="hljs-attr">headers</span>: headers,
  8495. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8496. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8497. }
  8498. })
  8499. </code></pre>
  8500. <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>);
  8501. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8502. "name": "string"
  8503. }'</span>;
  8504. <span class="hljs-keyword">const</span> headers = {
  8505. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8506. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8507. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8508. };
  8509. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8510. {
  8511. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  8512. <span class="hljs-attr">body</span>: inputBody,
  8513. <span class="hljs-attr">headers</span>: headers
  8514. })
  8515. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8516. <span class="hljs-keyword">return</span> res.json();
  8517. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8518. <span class="hljs-built_in">console</span>.log(body);
  8519. });
  8520. </code></pre>
  8521. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8522. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8523. headers = {
  8524. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8525. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8526. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8527. }
  8528. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8529. <span class="hljs-symbol">params:</span> {
  8530. }, <span class="hljs-symbol">headers:</span> headers
  8531. p JSON.parse(result)
  8532. </code></pre>
  8533. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8534. headers = {
  8535. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8536. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8537. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8538. }
  8539. r = requests.put(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>, params={
  8540. }, headers = headers)
  8541. <span class="hljs-keyword">print</span> r.json()
  8542. </code></pre>
  8543. <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>);
  8544. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8545. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  8546. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8547. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8548. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8549. String inputLine;
  8550. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8551. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8552. response.append(inputLine);
  8553. }
  8554. in.close();
  8555. System.out.println(response.toString());
  8556. </code></pre>
  8557. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8558. <span class="hljs-keyword">import</span> (
  8559. <span class="hljs-string">"bytes"</span>
  8560. <span class="hljs-string">"net/http"</span>
  8561. )
  8562. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8563. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8564. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8565. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8566. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8567. }
  8568. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8569. 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)
  8570. req.Header = headers
  8571. client := &amp;http.Client{}
  8572. resp, err := client.Do(req)
  8573. <span class="hljs-comment">// ...</span>
  8574. }
  8575. </code></pre>
  8576. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  8577. <p><em>Update a Custom Field's dropdown item</em></p>
  8578. <blockquote>
  8579. <p>Body parameter</p>
  8580. </blockquote>
  8581. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  8582. </code></pre>
  8583. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  8584. <table>
  8585. <thead>
  8586. <tr>
  8587. <th>Name</th>
  8588. <th>In</th>
  8589. <th>Type</th>
  8590. <th>Required</th>
  8591. <th>Description</th>
  8592. </tr>
  8593. </thead>
  8594. <tbody>
  8595. <tr>
  8596. <td>board</td>
  8597. <td>path</td>
  8598. <td>string</td>
  8599. <td>true</td>
  8600. <td>the board value</td>
  8601. </tr>
  8602. <tr>
  8603. <td>customField</td>
  8604. <td>path</td>
  8605. <td>string</td>
  8606. <td>true</td>
  8607. <td>the customField value</td>
  8608. </tr>
  8609. <tr>
  8610. <td>dropdownItem</td>
  8611. <td>path</td>
  8612. <td>string</td>
  8613. <td>true</td>
  8614. <td>the dropdownItem value</td>
  8615. </tr>
  8616. <tr>
  8617. <td>body</td>
  8618. <td>body</td>
  8619. <td>object</td>
  8620. <td>false</td>
  8621. <td>none</td>
  8622. </tr>
  8623. <tr>
  8624. <td>» name</td>
  8625. <td>body</td>
  8626. <td>string</td>
  8627. <td>true</td>
  8628. <td>names of the custom field</td>
  8629. </tr>
  8630. </tbody>
  8631. </table>
  8632. <blockquote>
  8633. <p>Example responses</p>
  8634. </blockquote>
  8635. <blockquote>
  8636. <p>200 Response</p>
  8637. </blockquote>
  8638. <pre class="highlight tab tab-json"><code>{
  8639. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8640. }
  8641. </code></pre>
  8642. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  8643. <table>
  8644. <thead>
  8645. <tr>
  8646. <th>Status</th>
  8647. <th>Meaning</th>
  8648. <th>Description</th>
  8649. <th>Schema</th>
  8650. </tr>
  8651. </thead>
  8652. <tbody>
  8653. <tr>
  8654. <td>200</td>
  8655. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8656. <td>200 response</td>
  8657. <td>Inline</td>
  8658. </tr>
  8659. </tbody>
  8660. </table>
  8661. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  8662. <p>Status Code <strong>200</strong></p>
  8663. <table>
  8664. <thead>
  8665. <tr>
  8666. <th>Name</th>
  8667. <th>Type</th>
  8668. <th>Required</th>
  8669. <th>Restrictions</th>
  8670. <th>Description</th>
  8671. </tr>
  8672. </thead>
  8673. <tbody>
  8674. <tr>
  8675. <td>» _id</td>
  8676. <td>string</td>
  8677. <td>false</td>
  8678. <td>none</td>
  8679. <td>none</td>
  8680. </tr>
  8681. </tbody>
  8682. </table>
  8683. <aside class="warning">
  8684. To perform this operation, you must be authenticated by means of one of the following methods:
  8685. UserSecurity
  8686. </aside>
  8687. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  8688. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  8689. <blockquote>
  8690. <p>Code samples</p>
  8691. </blockquote>
  8692. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8693. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  8694. -H <span class="hljs-string">'Accept: application/json'</span> \
  8695. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8696. </code></pre>
  8697. <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
  8698. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8699. <span class="undefined"></span></span></code></pre>
  8700. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8701. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8702. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8703. };
  8704. $.ajax({
  8705. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8706. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  8707. <span class="hljs-attr">headers</span>: headers,
  8708. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8709. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8710. }
  8711. })
  8712. </code></pre>
  8713. <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>);
  8714. <span class="hljs-keyword">const</span> headers = {
  8715. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8716. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8717. };
  8718. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8719. {
  8720. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  8721. <span class="hljs-attr">headers</span>: headers
  8722. })
  8723. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8724. <span class="hljs-keyword">return</span> res.json();
  8725. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8726. <span class="hljs-built_in">console</span>.log(body);
  8727. });
  8728. </code></pre>
  8729. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8730. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8731. headers = {
  8732. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8733. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8734. }
  8735. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  8736. <span class="hljs-symbol">params:</span> {
  8737. }, <span class="hljs-symbol">headers:</span> headers
  8738. p JSON.parse(result)
  8739. </code></pre>
  8740. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8741. headers = {
  8742. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8743. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8744. }
  8745. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>, params={
  8746. }, headers = headers)
  8747. <span class="hljs-keyword">print</span> r.json()
  8748. </code></pre>
  8749. <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>);
  8750. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8751. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  8752. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8753. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8754. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8755. String inputLine;
  8756. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8757. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8758. response.append(inputLine);
  8759. }
  8760. in.close();
  8761. System.out.println(response.toString());
  8762. </code></pre>
  8763. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8764. <span class="hljs-keyword">import</span> (
  8765. <span class="hljs-string">"bytes"</span>
  8766. <span class="hljs-string">"net/http"</span>
  8767. )
  8768. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8769. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8770. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8771. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8772. }
  8773. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8774. 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)
  8775. req.Header = headers
  8776. client := &amp;http.Client{}
  8777. resp, err := client.Do(req)
  8778. <span class="hljs-comment">// ...</span>
  8779. }
  8780. </code></pre>
  8781. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  8782. <p><em>Update a Custom Field's dropdown items</em></p>
  8783. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  8784. <table>
  8785. <thead>
  8786. <tr>
  8787. <th>Name</th>
  8788. <th>In</th>
  8789. <th>Type</th>
  8790. <th>Required</th>
  8791. <th>Description</th>
  8792. </tr>
  8793. </thead>
  8794. <tbody>
  8795. <tr>
  8796. <td>board</td>
  8797. <td>path</td>
  8798. <td>string</td>
  8799. <td>true</td>
  8800. <td>the board value</td>
  8801. </tr>
  8802. <tr>
  8803. <td>customField</td>
  8804. <td>path</td>
  8805. <td>string</td>
  8806. <td>true</td>
  8807. <td>the customField value</td>
  8808. </tr>
  8809. <tr>
  8810. <td>dropdownItem</td>
  8811. <td>path</td>
  8812. <td>string</td>
  8813. <td>true</td>
  8814. <td>the dropdownItem value</td>
  8815. </tr>
  8816. </tbody>
  8817. </table>
  8818. <blockquote>
  8819. <p>Example responses</p>
  8820. </blockquote>
  8821. <blockquote>
  8822. <p>200 Response</p>
  8823. </blockquote>
  8824. <pre class="highlight tab tab-json"><code>{
  8825. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8826. }
  8827. </code></pre>
  8828. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  8829. <table>
  8830. <thead>
  8831. <tr>
  8832. <th>Status</th>
  8833. <th>Meaning</th>
  8834. <th>Description</th>
  8835. <th>Schema</th>
  8836. </tr>
  8837. </thead>
  8838. <tbody>
  8839. <tr>
  8840. <td>200</td>
  8841. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8842. <td>200 response</td>
  8843. <td>Inline</td>
  8844. </tr>
  8845. </tbody>
  8846. </table>
  8847. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  8848. <p>Status Code <strong>200</strong></p>
  8849. <table>
  8850. <thead>
  8851. <tr>
  8852. <th>Name</th>
  8853. <th>Type</th>
  8854. <th>Required</th>
  8855. <th>Restrictions</th>
  8856. <th>Description</th>
  8857. </tr>
  8858. </thead>
  8859. <tbody>
  8860. <tr>
  8861. <td>» _id</td>
  8862. <td>string</td>
  8863. <td>false</td>
  8864. <td>none</td>
  8865. <td>none</td>
  8866. </tr>
  8867. </tbody>
  8868. </table>
  8869. <aside class="warning">
  8870. To perform this operation, you must be authenticated by means of one of the following methods:
  8871. UserSecurity
  8872. </aside>
  8873. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  8874. <h2 id="get_all_integrations">get_all_integrations</h2>
  8875. <p><a id="opIdget_all_integrations"></a></p>
  8876. <blockquote>
  8877. <p>Code samples</p>
  8878. </blockquote>
  8879. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8880. curl -X GET /api/boards/{board}/integrations \
  8881. -H <span class="hljs-string">'Accept: application/json'</span> \
  8882. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8883. </code></pre>
  8884. <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
  8885. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8886. <span class="undefined"></span></span></code></pre>
  8887. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8888. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8889. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8890. };
  8891. $.ajax({
  8892. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8893. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  8894. <span class="hljs-attr">headers</span>: headers,
  8895. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8896. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8897. }
  8898. })
  8899. </code></pre>
  8900. <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>);
  8901. <span class="hljs-keyword">const</span> headers = {
  8902. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8903. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8904. };
  8905. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8906. {
  8907. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  8908. <span class="hljs-attr">headers</span>: headers
  8909. })
  8910. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8911. <span class="hljs-keyword">return</span> res.json();
  8912. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8913. <span class="hljs-built_in">console</span>.log(body);
  8914. });
  8915. </code></pre>
  8916. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8917. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8918. headers = {
  8919. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8920. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8921. }
  8922. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  8923. <span class="hljs-symbol">params:</span> {
  8924. }, <span class="hljs-symbol">headers:</span> headers
  8925. p JSON.parse(result)
  8926. </code></pre>
  8927. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8928. headers = {
  8929. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8930. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8931. }
  8932. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  8933. }, headers = headers)
  8934. <span class="hljs-keyword">print</span> r.json()
  8935. </code></pre>
  8936. <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>);
  8937. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8938. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  8939. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8940. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8941. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8942. String inputLine;
  8943. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8944. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8945. response.append(inputLine);
  8946. }
  8947. in.close();
  8948. System.out.println(response.toString());
  8949. </code></pre>
  8950. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8951. <span class="hljs-keyword">import</span> (
  8952. <span class="hljs-string">"bytes"</span>
  8953. <span class="hljs-string">"net/http"</span>
  8954. )
  8955. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8956. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8957. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8958. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8959. }
  8960. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8961. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  8962. req.Header = headers
  8963. client := &amp;http.Client{}
  8964. resp, err := client.Do(req)
  8965. <span class="hljs-comment">// ...</span>
  8966. }
  8967. </code></pre>
  8968. <p><code>GET /api/boards/{board}/integrations</code></p>
  8969. <p><em>Get all integrations in board</em></p>
  8970. <h3 id="get_all_integrations-parameters">Parameters</h3>
  8971. <table>
  8972. <thead>
  8973. <tr>
  8974. <th>Name</th>
  8975. <th>In</th>
  8976. <th>Type</th>
  8977. <th>Required</th>
  8978. <th>Description</th>
  8979. </tr>
  8980. </thead>
  8981. <tbody>
  8982. <tr>
  8983. <td>board</td>
  8984. <td>path</td>
  8985. <td>string</td>
  8986. <td>true</td>
  8987. <td>the board ID</td>
  8988. </tr>
  8989. </tbody>
  8990. </table>
  8991. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8992. <p><strong>board</strong>: the board ID</p>
  8993. <blockquote>
  8994. <p>Example responses</p>
  8995. </blockquote>
  8996. <blockquote>
  8997. <p>200 Response</p>
  8998. </blockquote>
  8999. <pre class="highlight tab tab-json"><code>[
  9000. {
  9001. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  9002. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9003. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  9004. <span class="hljs-attr">"activities"</span>: [
  9005. <span class="hljs-string">"string"</span>
  9006. ],
  9007. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  9008. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  9009. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  9010. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9011. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9012. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  9013. }
  9014. ]
  9015. </code></pre>
  9016. <h3 id="get_all_integrations-responses">Responses</h3>
  9017. <table>
  9018. <thead>
  9019. <tr>
  9020. <th>Status</th>
  9021. <th>Meaning</th>
  9022. <th>Description</th>
  9023. <th>Schema</th>
  9024. </tr>
  9025. </thead>
  9026. <tbody>
  9027. <tr>
  9028. <td>200</td>
  9029. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9030. <td>200 response</td>
  9031. <td>Inline</td>
  9032. </tr>
  9033. </tbody>
  9034. </table>
  9035. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  9036. <p>Status Code <strong>200</strong></p>
  9037. <table>
  9038. <thead>
  9039. <tr>
  9040. <th>Name</th>
  9041. <th>Type</th>
  9042. <th>Required</th>
  9043. <th>Restrictions</th>
  9044. <th>Description</th>
  9045. </tr>
  9046. </thead>
  9047. <tbody>
  9048. <tr>
  9049. <td><em>anonymous</em></td>
  9050. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  9051. <td>false</td>
  9052. <td>none</td>
  9053. <td>[Integration with third-party applications]</td>
  9054. </tr>
  9055. <tr>
  9056. <td>» enabled</td>
  9057. <td>boolean</td>
  9058. <td>true</td>
  9059. <td>none</td>
  9060. <td>is the integration enabled?</td>
  9061. </tr>
  9062. <tr>
  9063. <td>» title</td>
  9064. <td>string|null</td>
  9065. <td>false</td>
  9066. <td>none</td>
  9067. <td>name of the integration</td>
  9068. </tr>
  9069. <tr>
  9070. <td>» type</td>
  9071. <td>string</td>
  9072. <td>true</td>
  9073. <td>none</td>
  9074. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  9075. </tr>
  9076. <tr>
  9077. <td>» activities</td>
  9078. <td>[string]</td>
  9079. <td>true</td>
  9080. <td>none</td>
  9081. <td>activities the integration gets triggered (list)</td>
  9082. </tr>
  9083. <tr>
  9084. <td>» url</td>
  9085. <td>string</td>
  9086. <td>true</td>
  9087. <td>none</td>
  9088. <td>none</td>
  9089. </tr>
  9090. <tr>
  9091. <td>» token</td>
  9092. <td>string|null</td>
  9093. <td>false</td>
  9094. <td>none</td>
  9095. <td>token of the integration</td>
  9096. </tr>
  9097. <tr>
  9098. <td>» boardId</td>
  9099. <td>string</td>
  9100. <td>true</td>
  9101. <td>none</td>
  9102. <td>Board ID of the integration</td>
  9103. </tr>
  9104. <tr>
  9105. <td>» createdAt</td>
  9106. <td>string</td>
  9107. <td>true</td>
  9108. <td>none</td>
  9109. <td>Creation date of the integration</td>
  9110. </tr>
  9111. <tr>
  9112. <td>» modifiedAt</td>
  9113. <td>string</td>
  9114. <td>true</td>
  9115. <td>none</td>
  9116. <td>none</td>
  9117. </tr>
  9118. <tr>
  9119. <td>» userId</td>
  9120. <td>string</td>
  9121. <td>true</td>
  9122. <td>none</td>
  9123. <td>user ID who created the interation</td>
  9124. </tr>
  9125. </tbody>
  9126. </table>
  9127. <aside class="warning">
  9128. To perform this operation, you must be authenticated by means of one of the following methods:
  9129. UserSecurity
  9130. </aside>
  9131. <h2 id="new_integration">new_integration</h2>
  9132. <p><a id="opIdnew_integration"></a></p>
  9133. <blockquote>
  9134. <p>Code samples</p>
  9135. </blockquote>
  9136. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9137. curl -X POST /api/boards/{board}/integrations \
  9138. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9139. -H <span class="hljs-string">'Accept: application/json'</span> \
  9140. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9141. </code></pre>
  9142. <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
  9143. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9144. Accept: application/json
  9145. </span></code></pre>
  9146. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9147. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9148. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9149. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9150. };
  9151. $.ajax({
  9152. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  9153. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  9154. <span class="hljs-attr">headers</span>: headers,
  9155. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9156. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9157. }
  9158. })
  9159. </code></pre>
  9160. <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>);
  9161. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9162. "url": "string"
  9163. }'</span>;
  9164. <span class="hljs-keyword">const</span> headers = {
  9165. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9166. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9167. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9168. };
  9169. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  9170. {
  9171. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  9172. <span class="hljs-attr">body</span>: inputBody,
  9173. <span class="hljs-attr">headers</span>: headers
  9174. })
  9175. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9176. <span class="hljs-keyword">return</span> res.json();
  9177. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9178. <span class="hljs-built_in">console</span>.log(body);
  9179. });
  9180. </code></pre>
  9181. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9182. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9183. headers = {
  9184. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9185. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9186. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9187. }
  9188. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  9189. <span class="hljs-symbol">params:</span> {
  9190. }, <span class="hljs-symbol">headers:</span> headers
  9191. p JSON.parse(result)
  9192. </code></pre>
  9193. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9194. headers = {
  9195. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9196. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9197. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9198. }
  9199. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  9200. }, headers = headers)
  9201. <span class="hljs-keyword">print</span> r.json()
  9202. </code></pre>
  9203. <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>);
  9204. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9205. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  9206. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9207. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9208. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9209. String inputLine;
  9210. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9211. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9212. response.append(inputLine);
  9213. }
  9214. in.close();
  9215. System.out.println(response.toString());
  9216. </code></pre>
  9217. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9218. <span class="hljs-keyword">import</span> (
  9219. <span class="hljs-string">"bytes"</span>
  9220. <span class="hljs-string">"net/http"</span>
  9221. )
  9222. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9223. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9224. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9225. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9226. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9227. }
  9228. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9229. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  9230. req.Header = headers
  9231. client := &amp;http.Client{}
  9232. resp, err := client.Do(req)
  9233. <span class="hljs-comment">// ...</span>
  9234. }
  9235. </code></pre>
  9236. <p><code>POST /api/boards/{board}/integrations</code></p>
  9237. <p><em>Create a new integration</em></p>
  9238. <blockquote>
  9239. <p>Body parameter</p>
  9240. </blockquote>
  9241. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  9242. </code></pre>
  9243. <h3 id="new_integration-parameters">Parameters</h3>
  9244. <table>
  9245. <thead>
  9246. <tr>
  9247. <th>Name</th>
  9248. <th>In</th>
  9249. <th>Type</th>
  9250. <th>Required</th>
  9251. <th>Description</th>
  9252. </tr>
  9253. </thead>
  9254. <tbody>
  9255. <tr>
  9256. <td>board</td>
  9257. <td>path</td>
  9258. <td>string</td>
  9259. <td>true</td>
  9260. <td>the board ID</td>
  9261. </tr>
  9262. <tr>
  9263. <td>body</td>
  9264. <td>body</td>
  9265. <td>object</td>
  9266. <td>false</td>
  9267. <td>none</td>
  9268. </tr>
  9269. <tr>
  9270. <td>» url</td>
  9271. <td>body</td>
  9272. <td>string</td>
  9273. <td>true</td>
  9274. <td>the URL of the integration</td>
  9275. </tr>
  9276. </tbody>
  9277. </table>
  9278. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9279. <p><strong>board</strong>: the board ID</p>
  9280. <blockquote>
  9281. <p>Example responses</p>
  9282. </blockquote>
  9283. <blockquote>
  9284. <p>200 Response</p>
  9285. </blockquote>
  9286. <pre class="highlight tab tab-json"><code>{
  9287. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9288. }
  9289. </code></pre>
  9290. <h3 id="new_integration-responses">Responses</h3>
  9291. <table>
  9292. <thead>
  9293. <tr>
  9294. <th>Status</th>
  9295. <th>Meaning</th>
  9296. <th>Description</th>
  9297. <th>Schema</th>
  9298. </tr>
  9299. </thead>
  9300. <tbody>
  9301. <tr>
  9302. <td>200</td>
  9303. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9304. <td>200 response</td>
  9305. <td>Inline</td>
  9306. </tr>
  9307. </tbody>
  9308. </table>
  9309. <h3 id="new_integration-responseschema">Response Schema</h3>
  9310. <p>Status Code <strong>200</strong></p>
  9311. <table>
  9312. <thead>
  9313. <tr>
  9314. <th>Name</th>
  9315. <th>Type</th>
  9316. <th>Required</th>
  9317. <th>Restrictions</th>
  9318. <th>Description</th>
  9319. </tr>
  9320. </thead>
  9321. <tbody>
  9322. <tr>
  9323. <td>» _id</td>
  9324. <td>string</td>
  9325. <td>false</td>
  9326. <td>none</td>
  9327. <td>none</td>
  9328. </tr>
  9329. </tbody>
  9330. </table>
  9331. <aside class="warning">
  9332. To perform this operation, you must be authenticated by means of one of the following methods:
  9333. UserSecurity
  9334. </aside>
  9335. <h2 id="get_integration">get_integration</h2>
  9336. <p><a id="opIdget_integration"></a></p>
  9337. <blockquote>
  9338. <p>Code samples</p>
  9339. </blockquote>
  9340. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9341. curl -X GET /api/boards/{board}/integrations/{int} \
  9342. -H <span class="hljs-string">'Accept: application/json'</span> \
  9343. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9344. </code></pre>
  9345. <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
  9346. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9347. <span class="undefined"></span></span></code></pre>
  9348. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9349. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9350. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9351. };
  9352. $.ajax({
  9353. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9354. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9355. <span class="hljs-attr">headers</span>: headers,
  9356. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9357. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9358. }
  9359. })
  9360. </code></pre>
  9361. <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>);
  9362. <span class="hljs-keyword">const</span> headers = {
  9363. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9364. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9365. };
  9366. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9367. {
  9368. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9369. <span class="hljs-attr">headers</span>: headers
  9370. })
  9371. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9372. <span class="hljs-keyword">return</span> res.json();
  9373. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9374. <span class="hljs-built_in">console</span>.log(body);
  9375. });
  9376. </code></pre>
  9377. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9378. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9379. headers = {
  9380. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9381. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9382. }
  9383. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9384. <span class="hljs-symbol">params:</span> {
  9385. }, <span class="hljs-symbol">headers:</span> headers
  9386. p JSON.parse(result)
  9387. </code></pre>
  9388. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9389. headers = {
  9390. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9391. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9392. }
  9393. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9394. }, headers = headers)
  9395. <span class="hljs-keyword">print</span> r.json()
  9396. </code></pre>
  9397. <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>);
  9398. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9399. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9400. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9401. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9402. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9403. String inputLine;
  9404. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9405. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9406. response.append(inputLine);
  9407. }
  9408. in.close();
  9409. System.out.println(response.toString());
  9410. </code></pre>
  9411. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9412. <span class="hljs-keyword">import</span> (
  9413. <span class="hljs-string">"bytes"</span>
  9414. <span class="hljs-string">"net/http"</span>
  9415. )
  9416. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9417. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9418. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9419. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9420. }
  9421. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9422. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9423. req.Header = headers
  9424. client := &amp;http.Client{}
  9425. resp, err := client.Do(req)
  9426. <span class="hljs-comment">// ...</span>
  9427. }
  9428. </code></pre>
  9429. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  9430. <p><em>Get a single integration in board</em></p>
  9431. <h3 id="get_integration-parameters">Parameters</h3>
  9432. <table>
  9433. <thead>
  9434. <tr>
  9435. <th>Name</th>
  9436. <th>In</th>
  9437. <th>Type</th>
  9438. <th>Required</th>
  9439. <th>Description</th>
  9440. </tr>
  9441. </thead>
  9442. <tbody>
  9443. <tr>
  9444. <td>board</td>
  9445. <td>path</td>
  9446. <td>string</td>
  9447. <td>true</td>
  9448. <td>the board ID</td>
  9449. </tr>
  9450. <tr>
  9451. <td>int</td>
  9452. <td>path</td>
  9453. <td>string</td>
  9454. <td>true</td>
  9455. <td>the integration ID</td>
  9456. </tr>
  9457. </tbody>
  9458. </table>
  9459. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9460. <p><strong>board</strong>: the board ID</p>
  9461. <p><strong>int</strong>: the integration ID</p>
  9462. <blockquote>
  9463. <p>Example responses</p>
  9464. </blockquote>
  9465. <blockquote>
  9466. <p>200 Response</p>
  9467. </blockquote>
  9468. <pre class="highlight tab tab-json"><code>{
  9469. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  9470. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9471. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  9472. <span class="hljs-attr">"activities"</span>: [
  9473. <span class="hljs-string">"string"</span>
  9474. ],
  9475. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  9476. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  9477. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  9478. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9479. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9480. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  9481. }
  9482. </code></pre>
  9483. <h3 id="get_integration-responses">Responses</h3>
  9484. <table>
  9485. <thead>
  9486. <tr>
  9487. <th>Status</th>
  9488. <th>Meaning</th>
  9489. <th>Description</th>
  9490. <th>Schema</th>
  9491. </tr>
  9492. </thead>
  9493. <tbody>
  9494. <tr>
  9495. <td>200</td>
  9496. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9497. <td>200 response</td>
  9498. <td><a href="#schemaintegrations">Integrations</a></td>
  9499. </tr>
  9500. </tbody>
  9501. </table>
  9502. <aside class="warning">
  9503. To perform this operation, you must be authenticated by means of one of the following methods:
  9504. UserSecurity
  9505. </aside>
  9506. <h2 id="edit_integration">edit_integration</h2>
  9507. <p><a id="opIdedit_integration"></a></p>
  9508. <blockquote>
  9509. <p>Code samples</p>
  9510. </blockquote>
  9511. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9512. curl -X PUT /api/boards/{board}/integrations/{int} \
  9513. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9514. -H <span class="hljs-string">'Accept: application/json'</span> \
  9515. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9516. </code></pre>
  9517. <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
  9518. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9519. Accept: application/json
  9520. </span></code></pre>
  9521. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9522. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9523. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9524. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9525. };
  9526. $.ajax({
  9527. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9528. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  9529. <span class="hljs-attr">headers</span>: headers,
  9530. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9531. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9532. }
  9533. })
  9534. </code></pre>
  9535. <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>);
  9536. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9537. "enabled": "string",
  9538. "title": "string",
  9539. "url": "string",
  9540. "token": "string",
  9541. "activities": "string"
  9542. }'</span>;
  9543. <span class="hljs-keyword">const</span> headers = {
  9544. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9545. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9546. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9547. };
  9548. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9549. {
  9550. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  9551. <span class="hljs-attr">body</span>: inputBody,
  9552. <span class="hljs-attr">headers</span>: headers
  9553. })
  9554. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9555. <span class="hljs-keyword">return</span> res.json();
  9556. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9557. <span class="hljs-built_in">console</span>.log(body);
  9558. });
  9559. </code></pre>
  9560. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9561. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9562. headers = {
  9563. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9564. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9565. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9566. }
  9567. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9568. <span class="hljs-symbol">params:</span> {
  9569. }, <span class="hljs-symbol">headers:</span> headers
  9570. p JSON.parse(result)
  9571. </code></pre>
  9572. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9573. headers = {
  9574. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9575. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9576. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9577. }
  9578. r = requests.put(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9579. }, headers = headers)
  9580. <span class="hljs-keyword">print</span> r.json()
  9581. </code></pre>
  9582. <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>);
  9583. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9584. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  9585. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9586. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9587. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9588. String inputLine;
  9589. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9590. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9591. response.append(inputLine);
  9592. }
  9593. in.close();
  9594. System.out.println(response.toString());
  9595. </code></pre>
  9596. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9597. <span class="hljs-keyword">import</span> (
  9598. <span class="hljs-string">"bytes"</span>
  9599. <span class="hljs-string">"net/http"</span>
  9600. )
  9601. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9602. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9603. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9604. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9605. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9606. }
  9607. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9608. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9609. req.Header = headers
  9610. client := &amp;http.Client{}
  9611. resp, err := client.Do(req)
  9612. <span class="hljs-comment">// ...</span>
  9613. }
  9614. </code></pre>
  9615. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  9616. <p><em>Edit integration data</em></p>
  9617. <blockquote>
  9618. <p>Body parameter</p>
  9619. </blockquote>
  9620. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  9621. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  9622. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  9623. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  9624. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  9625. </code></pre>
  9626. <h3 id="edit_integration-parameters">Parameters</h3>
  9627. <table>
  9628. <thead>
  9629. <tr>
  9630. <th>Name</th>
  9631. <th>In</th>
  9632. <th>Type</th>
  9633. <th>Required</th>
  9634. <th>Description</th>
  9635. </tr>
  9636. </thead>
  9637. <tbody>
  9638. <tr>
  9639. <td>board</td>
  9640. <td>path</td>
  9641. <td>string</td>
  9642. <td>true</td>
  9643. <td>the board ID</td>
  9644. </tr>
  9645. <tr>
  9646. <td>int</td>
  9647. <td>path</td>
  9648. <td>string</td>
  9649. <td>true</td>
  9650. <td>the integration ID</td>
  9651. </tr>
  9652. <tr>
  9653. <td>body</td>
  9654. <td>body</td>
  9655. <td>object</td>
  9656. <td>false</td>
  9657. <td>none</td>
  9658. </tr>
  9659. <tr>
  9660. <td>» enabled</td>
  9661. <td>body</td>
  9662. <td>string</td>
  9663. <td>false</td>
  9664. <td>is the integration enabled?</td>
  9665. </tr>
  9666. <tr>
  9667. <td>» title</td>
  9668. <td>body</td>
  9669. <td>string</td>
  9670. <td>false</td>
  9671. <td>new name of the integration</td>
  9672. </tr>
  9673. <tr>
  9674. <td>» url</td>
  9675. <td>body</td>
  9676. <td>string</td>
  9677. <td>false</td>
  9678. <td>new URL of the integration</td>
  9679. </tr>
  9680. <tr>
  9681. <td>» token</td>
  9682. <td>body</td>
  9683. <td>string</td>
  9684. <td>false</td>
  9685. <td>new token of the integration</td>
  9686. </tr>
  9687. <tr>
  9688. <td>» activities</td>
  9689. <td>body</td>
  9690. <td>string</td>
  9691. <td>false</td>
  9692. <td>new list of activities of the integration</td>
  9693. </tr>
  9694. </tbody>
  9695. </table>
  9696. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9697. <p><strong>board</strong>: the board ID</p>
  9698. <p><strong>int</strong>: the integration ID</p>
  9699. <blockquote>
  9700. <p>Example responses</p>
  9701. </blockquote>
  9702. <blockquote>
  9703. <p>200 Response</p>
  9704. </blockquote>
  9705. <pre class="highlight tab tab-json"><code>{
  9706. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9707. }
  9708. </code></pre>
  9709. <h3 id="edit_integration-responses">Responses</h3>
  9710. <table>
  9711. <thead>
  9712. <tr>
  9713. <th>Status</th>
  9714. <th>Meaning</th>
  9715. <th>Description</th>
  9716. <th>Schema</th>
  9717. </tr>
  9718. </thead>
  9719. <tbody>
  9720. <tr>
  9721. <td>200</td>
  9722. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9723. <td>200 response</td>
  9724. <td>Inline</td>
  9725. </tr>
  9726. </tbody>
  9727. </table>
  9728. <h3 id="edit_integration-responseschema">Response Schema</h3>
  9729. <p>Status Code <strong>200</strong></p>
  9730. <table>
  9731. <thead>
  9732. <tr>
  9733. <th>Name</th>
  9734. <th>Type</th>
  9735. <th>Required</th>
  9736. <th>Restrictions</th>
  9737. <th>Description</th>
  9738. </tr>
  9739. </thead>
  9740. <tbody>
  9741. <tr>
  9742. <td>» _id</td>
  9743. <td>string</td>
  9744. <td>false</td>
  9745. <td>none</td>
  9746. <td>none</td>
  9747. </tr>
  9748. </tbody>
  9749. </table>
  9750. <aside class="warning">
  9751. To perform this operation, you must be authenticated by means of one of the following methods:
  9752. UserSecurity
  9753. </aside>
  9754. <h2 id="delete_integration">delete_integration</h2>
  9755. <p><a id="opIddelete_integration"></a></p>
  9756. <blockquote>
  9757. <p>Code samples</p>
  9758. </blockquote>
  9759. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9760. curl -X DELETE /api/boards/{board}/integrations/{int} \
  9761. -H <span class="hljs-string">'Accept: application/json'</span> \
  9762. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9763. </code></pre>
  9764. <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
  9765. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9766. <span class="undefined"></span></span></code></pre>
  9767. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9768. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9769. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9770. };
  9771. $.ajax({
  9772. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9773. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  9774. <span class="hljs-attr">headers</span>: headers,
  9775. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9776. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9777. }
  9778. })
  9779. </code></pre>
  9780. <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>);
  9781. <span class="hljs-keyword">const</span> headers = {
  9782. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9783. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9784. };
  9785. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9786. {
  9787. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  9788. <span class="hljs-attr">headers</span>: headers
  9789. })
  9790. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9791. <span class="hljs-keyword">return</span> res.json();
  9792. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9793. <span class="hljs-built_in">console</span>.log(body);
  9794. });
  9795. </code></pre>
  9796. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9797. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9798. headers = {
  9799. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9800. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9801. }
  9802. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  9803. <span class="hljs-symbol">params:</span> {
  9804. }, <span class="hljs-symbol">headers:</span> headers
  9805. p JSON.parse(result)
  9806. </code></pre>
  9807. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9808. headers = {
  9809. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9810. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9811. }
  9812. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  9813. }, headers = headers)
  9814. <span class="hljs-keyword">print</span> r.json()
  9815. </code></pre>
  9816. <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>);
  9817. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9818. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  9819. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9820. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9821. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9822. String inputLine;
  9823. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9824. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9825. response.append(inputLine);
  9826. }
  9827. in.close();
  9828. System.out.println(response.toString());
  9829. </code></pre>
  9830. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9831. <span class="hljs-keyword">import</span> (
  9832. <span class="hljs-string">"bytes"</span>
  9833. <span class="hljs-string">"net/http"</span>
  9834. )
  9835. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9836. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9837. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9838. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9839. }
  9840. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9841. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  9842. req.Header = headers
  9843. client := &amp;http.Client{}
  9844. resp, err := client.Do(req)
  9845. <span class="hljs-comment">// ...</span>
  9846. }
  9847. </code></pre>
  9848. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  9849. <p><em>Delete integration</em></p>
  9850. <h3 id="delete_integration-parameters">Parameters</h3>
  9851. <table>
  9852. <thead>
  9853. <tr>
  9854. <th>Name</th>
  9855. <th>In</th>
  9856. <th>Type</th>
  9857. <th>Required</th>
  9858. <th>Description</th>
  9859. </tr>
  9860. </thead>
  9861. <tbody>
  9862. <tr>
  9863. <td>board</td>
  9864. <td>path</td>
  9865. <td>string</td>
  9866. <td>true</td>
  9867. <td>the board ID</td>
  9868. </tr>
  9869. <tr>
  9870. <td>int</td>
  9871. <td>path</td>
  9872. <td>string</td>
  9873. <td>true</td>
  9874. <td>the integration ID</td>
  9875. </tr>
  9876. </tbody>
  9877. </table>
  9878. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9879. <p><strong>board</strong>: the board ID</p>
  9880. <p><strong>int</strong>: the integration ID</p>
  9881. <blockquote>
  9882. <p>Example responses</p>
  9883. </blockquote>
  9884. <blockquote>
  9885. <p>200 Response</p>
  9886. </blockquote>
  9887. <pre class="highlight tab tab-json"><code>{
  9888. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  9889. }
  9890. </code></pre>
  9891. <h3 id="delete_integration-responses">Responses</h3>
  9892. <table>
  9893. <thead>
  9894. <tr>
  9895. <th>Status</th>
  9896. <th>Meaning</th>
  9897. <th>Description</th>
  9898. <th>Schema</th>
  9899. </tr>
  9900. </thead>
  9901. <tbody>
  9902. <tr>
  9903. <td>200</td>
  9904. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9905. <td>200 response</td>
  9906. <td>Inline</td>
  9907. </tr>
  9908. </tbody>
  9909. </table>
  9910. <h3 id="delete_integration-responseschema">Response Schema</h3>
  9911. <p>Status Code <strong>200</strong></p>
  9912. <table>
  9913. <thead>
  9914. <tr>
  9915. <th>Name</th>
  9916. <th>Type</th>
  9917. <th>Required</th>
  9918. <th>Restrictions</th>
  9919. <th>Description</th>
  9920. </tr>
  9921. </thead>
  9922. <tbody>
  9923. <tr>
  9924. <td>» _id</td>
  9925. <td>string</td>
  9926. <td>false</td>
  9927. <td>none</td>
  9928. <td>none</td>
  9929. </tr>
  9930. </tbody>
  9931. </table>
  9932. <aside class="warning">
  9933. To perform this operation, you must be authenticated by means of one of the following methods:
  9934. UserSecurity
  9935. </aside>
  9936. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  9937. <p><a id="opIddelete_integration_activities"></a></p>
  9938. <blockquote>
  9939. <p>Code samples</p>
  9940. </blockquote>
  9941. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9942. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  9943. -H <span class="hljs-string">'Accept: application/json'</span> \
  9944. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9945. </code></pre>
  9946. <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
  9947. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9948. <span class="undefined"></span></span></code></pre>
  9949. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9950. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9951. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9952. };
  9953. $.ajax({
  9954. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9955. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  9956. <span class="hljs-attr">headers</span>: headers,
  9957. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9958. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9959. }
  9960. })
  9961. </code></pre>
  9962. <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>);
  9963. <span class="hljs-keyword">const</span> headers = {
  9964. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9965. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9966. };
  9967. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9968. {
  9969. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  9970. <span class="hljs-attr">headers</span>: headers
  9971. })
  9972. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9973. <span class="hljs-keyword">return</span> res.json();
  9974. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9975. <span class="hljs-built_in">console</span>.log(body);
  9976. });
  9977. </code></pre>
  9978. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9979. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9980. headers = {
  9981. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9982. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9983. }
  9984. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  9985. <span class="hljs-symbol">params:</span> {
  9986. }, <span class="hljs-symbol">headers:</span> headers
  9987. p JSON.parse(result)
  9988. </code></pre>
  9989. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9990. headers = {
  9991. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9992. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9993. }
  9994. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  9995. }, headers = headers)
  9996. <span class="hljs-keyword">print</span> r.json()
  9997. </code></pre>
  9998. <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>);
  9999. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10000. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  10001. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10002. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10003. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10004. String inputLine;
  10005. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10006. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10007. response.append(inputLine);
  10008. }
  10009. in.close();
  10010. System.out.println(response.toString());
  10011. </code></pre>
  10012. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10013. <span class="hljs-keyword">import</span> (
  10014. <span class="hljs-string">"bytes"</span>
  10015. <span class="hljs-string">"net/http"</span>
  10016. )
  10017. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10018. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10019. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10020. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10021. }
  10022. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10023. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  10024. req.Header = headers
  10025. client := &amp;http.Client{}
  10026. resp, err := client.Do(req)
  10027. <span class="hljs-comment">// ...</span>
  10028. }
  10029. </code></pre>
  10030. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  10031. <p><em>Delete subscribed activities</em></p>
  10032. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  10033. <table>
  10034. <thead>
  10035. <tr>
  10036. <th>Name</th>
  10037. <th>In</th>
  10038. <th>Type</th>
  10039. <th>Required</th>
  10040. <th>Description</th>
  10041. </tr>
  10042. </thead>
  10043. <tbody>
  10044. <tr>
  10045. <td>board</td>
  10046. <td>path</td>
  10047. <td>string</td>
  10048. <td>true</td>
  10049. <td>the board ID</td>
  10050. </tr>
  10051. <tr>
  10052. <td>int</td>
  10053. <td>path</td>
  10054. <td>string</td>
  10055. <td>true</td>
  10056. <td>the integration ID</td>
  10057. </tr>
  10058. </tbody>
  10059. </table>
  10060. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10061. <p><strong>board</strong>: the board ID</p>
  10062. <p><strong>int</strong>: the integration ID</p>
  10063. <blockquote>
  10064. <p>Example responses</p>
  10065. </blockquote>
  10066. <blockquote>
  10067. <p>200 Response</p>
  10068. </blockquote>
  10069. <pre class="highlight tab tab-json"><code>{
  10070. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  10071. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10072. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  10073. <span class="hljs-attr">"activities"</span>: [
  10074. <span class="hljs-string">"string"</span>
  10075. ],
  10076. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  10077. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  10078. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10079. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10080. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10081. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  10082. }
  10083. </code></pre>
  10084. <h3 id="delete_integration_activities-responses">Responses</h3>
  10085. <table>
  10086. <thead>
  10087. <tr>
  10088. <th>Status</th>
  10089. <th>Meaning</th>
  10090. <th>Description</th>
  10091. <th>Schema</th>
  10092. </tr>
  10093. </thead>
  10094. <tbody>
  10095. <tr>
  10096. <td>200</td>
  10097. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10098. <td>200 response</td>
  10099. <td><a href="#schemaintegrations">Integrations</a></td>
  10100. </tr>
  10101. </tbody>
  10102. </table>
  10103. <aside class="warning">
  10104. To perform this operation, you must be authenticated by means of one of the following methods:
  10105. UserSecurity
  10106. </aside>
  10107. <h2 id="new_integration_activities">new_integration_activities</h2>
  10108. <p><a id="opIdnew_integration_activities"></a></p>
  10109. <blockquote>
  10110. <p>Code samples</p>
  10111. </blockquote>
  10112. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10113. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  10114. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10115. -H <span class="hljs-string">'Accept: application/json'</span> \
  10116. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10117. </code></pre>
  10118. <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
  10119. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10120. Accept: application/json
  10121. </span></code></pre>
  10122. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10123. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10124. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10125. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10126. };
  10127. $.ajax({
  10128. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  10129. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10130. <span class="hljs-attr">headers</span>: headers,
  10131. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10132. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10133. }
  10134. })
  10135. </code></pre>
  10136. <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>);
  10137. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10138. "activities": "string"
  10139. }'</span>;
  10140. <span class="hljs-keyword">const</span> headers = {
  10141. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10142. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10143. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10144. };
  10145. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  10146. {
  10147. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10148. <span class="hljs-attr">body</span>: inputBody,
  10149. <span class="hljs-attr">headers</span>: headers
  10150. })
  10151. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10152. <span class="hljs-keyword">return</span> res.json();
  10153. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10154. <span class="hljs-built_in">console</span>.log(body);
  10155. });
  10156. </code></pre>
  10157. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10158. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10159. headers = {
  10160. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10161. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10162. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10163. }
  10164. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  10165. <span class="hljs-symbol">params:</span> {
  10166. }, <span class="hljs-symbol">headers:</span> headers
  10167. p JSON.parse(result)
  10168. </code></pre>
  10169. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10170. headers = {
  10171. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10172. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10173. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10174. }
  10175. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  10176. }, headers = headers)
  10177. <span class="hljs-keyword">print</span> r.json()
  10178. </code></pre>
  10179. <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>);
  10180. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10181. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10182. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10183. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10184. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10185. String inputLine;
  10186. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10187. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10188. response.append(inputLine);
  10189. }
  10190. in.close();
  10191. System.out.println(response.toString());
  10192. </code></pre>
  10193. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10194. <span class="hljs-keyword">import</span> (
  10195. <span class="hljs-string">"bytes"</span>
  10196. <span class="hljs-string">"net/http"</span>
  10197. )
  10198. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10199. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10200. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10201. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10202. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10203. }
  10204. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10205. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  10206. req.Header = headers
  10207. client := &amp;http.Client{}
  10208. resp, err := client.Do(req)
  10209. <span class="hljs-comment">// ...</span>
  10210. }
  10211. </code></pre>
  10212. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  10213. <p><em>Add subscribed activities</em></p>
  10214. <blockquote>
  10215. <p>Body parameter</p>
  10216. </blockquote>
  10217. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  10218. </code></pre>
  10219. <h3 id="new_integration_activities-parameters">Parameters</h3>
  10220. <table>
  10221. <thead>
  10222. <tr>
  10223. <th>Name</th>
  10224. <th>In</th>
  10225. <th>Type</th>
  10226. <th>Required</th>
  10227. <th>Description</th>
  10228. </tr>
  10229. </thead>
  10230. <tbody>
  10231. <tr>
  10232. <td>board</td>
  10233. <td>path</td>
  10234. <td>string</td>
  10235. <td>true</td>
  10236. <td>the board ID</td>
  10237. </tr>
  10238. <tr>
  10239. <td>int</td>
  10240. <td>path</td>
  10241. <td>string</td>
  10242. <td>true</td>
  10243. <td>the integration ID</td>
  10244. </tr>
  10245. <tr>
  10246. <td>body</td>
  10247. <td>body</td>
  10248. <td>object</td>
  10249. <td>false</td>
  10250. <td>none</td>
  10251. </tr>
  10252. <tr>
  10253. <td>» activities</td>
  10254. <td>body</td>
  10255. <td>string</td>
  10256. <td>true</td>
  10257. <td>the activities value</td>
  10258. </tr>
  10259. </tbody>
  10260. </table>
  10261. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10262. <p><strong>board</strong>: the board ID</p>
  10263. <p><strong>int</strong>: the integration ID</p>
  10264. <blockquote>
  10265. <p>Example responses</p>
  10266. </blockquote>
  10267. <blockquote>
  10268. <p>200 Response</p>
  10269. </blockquote>
  10270. <pre class="highlight tab tab-json"><code>{
  10271. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  10272. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10273. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  10274. <span class="hljs-attr">"activities"</span>: [
  10275. <span class="hljs-string">"string"</span>
  10276. ],
  10277. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  10278. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  10279. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10280. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10281. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10282. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  10283. }
  10284. </code></pre>
  10285. <h3 id="new_integration_activities-responses">Responses</h3>
  10286. <table>
  10287. <thead>
  10288. <tr>
  10289. <th>Status</th>
  10290. <th>Meaning</th>
  10291. <th>Description</th>
  10292. <th>Schema</th>
  10293. </tr>
  10294. </thead>
  10295. <tbody>
  10296. <tr>
  10297. <td>200</td>
  10298. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10299. <td>200 response</td>
  10300. <td><a href="#schemaintegrations">Integrations</a></td>
  10301. </tr>
  10302. </tbody>
  10303. </table>
  10304. <aside class="warning">
  10305. To perform this operation, you must be authenticated by means of one of the following methods:
  10306. UserSecurity
  10307. </aside>
  10308. <h1 id="wekan-rest-api-lists">Lists</h1>
  10309. <h2 id="get_all_lists">get_all_lists</h2>
  10310. <p><a id="opIdget_all_lists"></a></p>
  10311. <blockquote>
  10312. <p>Code samples</p>
  10313. </blockquote>
  10314. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10315. curl -X GET /api/boards/{board}/lists \
  10316. -H <span class="hljs-string">'Accept: application/json'</span> \
  10317. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10318. </code></pre>
  10319. <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
  10320. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10321. <span class="undefined"></span></span></code></pre>
  10322. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10323. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10324. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10325. };
  10326. $.ajax({
  10327. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10328. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10329. <span class="hljs-attr">headers</span>: headers,
  10330. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10331. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10332. }
  10333. })
  10334. </code></pre>
  10335. <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>);
  10336. <span class="hljs-keyword">const</span> headers = {
  10337. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10338. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10339. };
  10340. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10341. {
  10342. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10343. <span class="hljs-attr">headers</span>: headers
  10344. })
  10345. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10346. <span class="hljs-keyword">return</span> res.json();
  10347. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10348. <span class="hljs-built_in">console</span>.log(body);
  10349. });
  10350. </code></pre>
  10351. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10352. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10353. headers = {
  10354. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10355. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10356. }
  10357. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10358. <span class="hljs-symbol">params:</span> {
  10359. }, <span class="hljs-symbol">headers:</span> headers
  10360. p JSON.parse(result)
  10361. </code></pre>
  10362. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10363. headers = {
  10364. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10365. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10366. }
  10367. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  10368. }, headers = headers)
  10369. <span class="hljs-keyword">print</span> r.json()
  10370. </code></pre>
  10371. <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>);
  10372. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10373. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10374. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10375. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10376. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10377. String inputLine;
  10378. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10379. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10380. response.append(inputLine);
  10381. }
  10382. in.close();
  10383. System.out.println(response.toString());
  10384. </code></pre>
  10385. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10386. <span class="hljs-keyword">import</span> (
  10387. <span class="hljs-string">"bytes"</span>
  10388. <span class="hljs-string">"net/http"</span>
  10389. )
  10390. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10391. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10392. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10393. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10394. }
  10395. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10396. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  10397. req.Header = headers
  10398. client := &amp;http.Client{}
  10399. resp, err := client.Do(req)
  10400. <span class="hljs-comment">// ...</span>
  10401. }
  10402. </code></pre>
  10403. <p><code>GET /api/boards/{board}/lists</code></p>
  10404. <p><em>Get the list of Lists attached to a board</em></p>
  10405. <h3 id="get_all_lists-parameters">Parameters</h3>
  10406. <table>
  10407. <thead>
  10408. <tr>
  10409. <th>Name</th>
  10410. <th>In</th>
  10411. <th>Type</th>
  10412. <th>Required</th>
  10413. <th>Description</th>
  10414. </tr>
  10415. </thead>
  10416. <tbody>
  10417. <tr>
  10418. <td>board</td>
  10419. <td>path</td>
  10420. <td>string</td>
  10421. <td>true</td>
  10422. <td>the board ID</td>
  10423. </tr>
  10424. </tbody>
  10425. </table>
  10426. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10427. <p><strong>board</strong>: the board ID</p>
  10428. <blockquote>
  10429. <p>Example responses</p>
  10430. </blockquote>
  10431. <blockquote>
  10432. <p>200 Response</p>
  10433. </blockquote>
  10434. <pre class="highlight tab tab-json"><code>[
  10435. {
  10436. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  10437. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  10438. }
  10439. ]
  10440. </code></pre>
  10441. <h3 id="get_all_lists-responses">Responses</h3>
  10442. <table>
  10443. <thead>
  10444. <tr>
  10445. <th>Status</th>
  10446. <th>Meaning</th>
  10447. <th>Description</th>
  10448. <th>Schema</th>
  10449. </tr>
  10450. </thead>
  10451. <tbody>
  10452. <tr>
  10453. <td>200</td>
  10454. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10455. <td>200 response</td>
  10456. <td>Inline</td>
  10457. </tr>
  10458. </tbody>
  10459. </table>
  10460. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  10461. <p>Status Code <strong>200</strong></p>
  10462. <table>
  10463. <thead>
  10464. <tr>
  10465. <th>Name</th>
  10466. <th>Type</th>
  10467. <th>Required</th>
  10468. <th>Restrictions</th>
  10469. <th>Description</th>
  10470. </tr>
  10471. </thead>
  10472. <tbody>
  10473. <tr>
  10474. <td>» _id</td>
  10475. <td>string</td>
  10476. <td>false</td>
  10477. <td>none</td>
  10478. <td>none</td>
  10479. </tr>
  10480. <tr>
  10481. <td>» title</td>
  10482. <td>string</td>
  10483. <td>false</td>
  10484. <td>none</td>
  10485. <td>none</td>
  10486. </tr>
  10487. </tbody>
  10488. </table>
  10489. <aside class="warning">
  10490. To perform this operation, you must be authenticated by means of one of the following methods:
  10491. UserSecurity
  10492. </aside>
  10493. <h2 id="new_list">new_list</h2>
  10494. <p><a id="opIdnew_list"></a></p>
  10495. <blockquote>
  10496. <p>Code samples</p>
  10497. </blockquote>
  10498. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10499. curl -X POST /api/boards/{board}/lists \
  10500. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10501. -H <span class="hljs-string">'Accept: application/json'</span> \
  10502. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10503. </code></pre>
  10504. <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
  10505. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10506. Accept: application/json
  10507. </span></code></pre>
  10508. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10509. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10510. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10511. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10512. };
  10513. $.ajax({
  10514. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10515. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10516. <span class="hljs-attr">headers</span>: headers,
  10517. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10518. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10519. }
  10520. })
  10521. </code></pre>
  10522. <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>);
  10523. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10524. "title": "string"
  10525. }'</span>;
  10526. <span class="hljs-keyword">const</span> headers = {
  10527. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10528. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10529. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10530. };
  10531. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10532. {
  10533. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10534. <span class="hljs-attr">body</span>: inputBody,
  10535. <span class="hljs-attr">headers</span>: headers
  10536. })
  10537. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10538. <span class="hljs-keyword">return</span> res.json();
  10539. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10540. <span class="hljs-built_in">console</span>.log(body);
  10541. });
  10542. </code></pre>
  10543. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10544. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10545. headers = {
  10546. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10547. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10548. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10549. }
  10550. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  10551. <span class="hljs-symbol">params:</span> {
  10552. }, <span class="hljs-symbol">headers:</span> headers
  10553. p JSON.parse(result)
  10554. </code></pre>
  10555. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10556. headers = {
  10557. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10558. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10559. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10560. }
  10561. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  10562. }, headers = headers)
  10563. <span class="hljs-keyword">print</span> r.json()
  10564. </code></pre>
  10565. <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>);
  10566. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10567. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10568. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10569. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10570. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10571. String inputLine;
  10572. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10573. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10574. response.append(inputLine);
  10575. }
  10576. in.close();
  10577. System.out.println(response.toString());
  10578. </code></pre>
  10579. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10580. <span class="hljs-keyword">import</span> (
  10581. <span class="hljs-string">"bytes"</span>
  10582. <span class="hljs-string">"net/http"</span>
  10583. )
  10584. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10585. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10586. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10587. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10588. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10589. }
  10590. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10591. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  10592. req.Header = headers
  10593. client := &amp;http.Client{}
  10594. resp, err := client.Do(req)
  10595. <span class="hljs-comment">// ...</span>
  10596. }
  10597. </code></pre>
  10598. <p><code>POST /api/boards/{board}/lists</code></p>
  10599. <p><em>Add a List to a board</em></p>
  10600. <blockquote>
  10601. <p>Body parameter</p>
  10602. </blockquote>
  10603. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  10604. </code></pre>
  10605. <h3 id="new_list-parameters">Parameters</h3>
  10606. <table>
  10607. <thead>
  10608. <tr>
  10609. <th>Name</th>
  10610. <th>In</th>
  10611. <th>Type</th>
  10612. <th>Required</th>
  10613. <th>Description</th>
  10614. </tr>
  10615. </thead>
  10616. <tbody>
  10617. <tr>
  10618. <td>board</td>
  10619. <td>path</td>
  10620. <td>string</td>
  10621. <td>true</td>
  10622. <td>the board ID</td>
  10623. </tr>
  10624. <tr>
  10625. <td>body</td>
  10626. <td>body</td>
  10627. <td>object</td>
  10628. <td>false</td>
  10629. <td>none</td>
  10630. </tr>
  10631. <tr>
  10632. <td>» title</td>
  10633. <td>body</td>
  10634. <td>string</td>
  10635. <td>true</td>
  10636. <td>the title of the List</td>
  10637. </tr>
  10638. </tbody>
  10639. </table>
  10640. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10641. <p><strong>board</strong>: the board ID</p>
  10642. <blockquote>
  10643. <p>Example responses</p>
  10644. </blockquote>
  10645. <blockquote>
  10646. <p>200 Response</p>
  10647. </blockquote>
  10648. <pre class="highlight tab tab-json"><code>{
  10649. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10650. }
  10651. </code></pre>
  10652. <h3 id="new_list-responses">Responses</h3>
  10653. <table>
  10654. <thead>
  10655. <tr>
  10656. <th>Status</th>
  10657. <th>Meaning</th>
  10658. <th>Description</th>
  10659. <th>Schema</th>
  10660. </tr>
  10661. </thead>
  10662. <tbody>
  10663. <tr>
  10664. <td>200</td>
  10665. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10666. <td>200 response</td>
  10667. <td>Inline</td>
  10668. </tr>
  10669. </tbody>
  10670. </table>
  10671. <h3 id="new_list-responseschema">Response Schema</h3>
  10672. <p>Status Code <strong>200</strong></p>
  10673. <table>
  10674. <thead>
  10675. <tr>
  10676. <th>Name</th>
  10677. <th>Type</th>
  10678. <th>Required</th>
  10679. <th>Restrictions</th>
  10680. <th>Description</th>
  10681. </tr>
  10682. </thead>
  10683. <tbody>
  10684. <tr>
  10685. <td>» _id</td>
  10686. <td>string</td>
  10687. <td>false</td>
  10688. <td>none</td>
  10689. <td>none</td>
  10690. </tr>
  10691. </tbody>
  10692. </table>
  10693. <aside class="warning">
  10694. To perform this operation, you must be authenticated by means of one of the following methods:
  10695. UserSecurity
  10696. </aside>
  10697. <h2 id="get_list">get_list</h2>
  10698. <p><a id="opIdget_list"></a></p>
  10699. <blockquote>
  10700. <p>Code samples</p>
  10701. </blockquote>
  10702. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10703. curl -X GET /api/boards/{board}/lists/{list} \
  10704. -H <span class="hljs-string">'Accept: application/json'</span> \
  10705. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10706. </code></pre>
  10707. <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
  10708. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10709. <span class="undefined"></span></span></code></pre>
  10710. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10711. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10712. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10713. };
  10714. $.ajax({
  10715. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10716. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10717. <span class="hljs-attr">headers</span>: headers,
  10718. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10719. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10720. }
  10721. })
  10722. </code></pre>
  10723. <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>);
  10724. <span class="hljs-keyword">const</span> headers = {
  10725. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10726. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10727. };
  10728. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10729. {
  10730. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10731. <span class="hljs-attr">headers</span>: headers
  10732. })
  10733. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10734. <span class="hljs-keyword">return</span> res.json();
  10735. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10736. <span class="hljs-built_in">console</span>.log(body);
  10737. });
  10738. </code></pre>
  10739. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10740. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10741. headers = {
  10742. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10743. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10744. }
  10745. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10746. <span class="hljs-symbol">params:</span> {
  10747. }, <span class="hljs-symbol">headers:</span> headers
  10748. p JSON.parse(result)
  10749. </code></pre>
  10750. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10751. headers = {
  10752. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10753. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10754. }
  10755. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  10756. }, headers = headers)
  10757. <span class="hljs-keyword">print</span> r.json()
  10758. </code></pre>
  10759. <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>);
  10760. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10761. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10762. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10763. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10764. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10765. String inputLine;
  10766. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10767. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10768. response.append(inputLine);
  10769. }
  10770. in.close();
  10771. System.out.println(response.toString());
  10772. </code></pre>
  10773. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10774. <span class="hljs-keyword">import</span> (
  10775. <span class="hljs-string">"bytes"</span>
  10776. <span class="hljs-string">"net/http"</span>
  10777. )
  10778. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10779. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10780. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10781. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10782. }
  10783. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10784. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  10785. req.Header = headers
  10786. client := &amp;http.Client{}
  10787. resp, err := client.Do(req)
  10788. <span class="hljs-comment">// ...</span>
  10789. }
  10790. </code></pre>
  10791. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  10792. <p><em>Get a List attached to a board</em></p>
  10793. <h3 id="get_list-parameters">Parameters</h3>
  10794. <table>
  10795. <thead>
  10796. <tr>
  10797. <th>Name</th>
  10798. <th>In</th>
  10799. <th>Type</th>
  10800. <th>Required</th>
  10801. <th>Description</th>
  10802. </tr>
  10803. </thead>
  10804. <tbody>
  10805. <tr>
  10806. <td>board</td>
  10807. <td>path</td>
  10808. <td>string</td>
  10809. <td>true</td>
  10810. <td>the board ID</td>
  10811. </tr>
  10812. <tr>
  10813. <td>list</td>
  10814. <td>path</td>
  10815. <td>string</td>
  10816. <td>true</td>
  10817. <td>the List ID</td>
  10818. </tr>
  10819. </tbody>
  10820. </table>
  10821. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10822. <p><strong>board</strong>: the board ID</p>
  10823. <p><strong>list</strong>: the List ID</p>
  10824. <blockquote>
  10825. <p>Example responses</p>
  10826. </blockquote>
  10827. <blockquote>
  10828. <p>200 Response</p>
  10829. </blockquote>
  10830. <pre class="highlight tab tab-json"><code>{
  10831. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  10832. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  10833. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  10834. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  10835. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  10836. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  10837. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  10838. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  10839. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  10840. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  10841. <span class="hljs-attr">"wipLimit"</span>: {
  10842. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  10843. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  10844. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  10845. },
  10846. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  10847. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  10848. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  10849. }
  10850. </code></pre>
  10851. <h3 id="get_list-responses">Responses</h3>
  10852. <table>
  10853. <thead>
  10854. <tr>
  10855. <th>Status</th>
  10856. <th>Meaning</th>
  10857. <th>Description</th>
  10858. <th>Schema</th>
  10859. </tr>
  10860. </thead>
  10861. <tbody>
  10862. <tr>
  10863. <td>200</td>
  10864. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10865. <td>200 response</td>
  10866. <td><a href="#schemalists">Lists</a></td>
  10867. </tr>
  10868. </tbody>
  10869. </table>
  10870. <aside class="warning">
  10871. To perform this operation, you must be authenticated by means of one of the following methods:
  10872. UserSecurity
  10873. </aside>
  10874. <h2 id="delete_list">delete_list</h2>
  10875. <p><a id="opIddelete_list"></a></p>
  10876. <blockquote>
  10877. <p>Code samples</p>
  10878. </blockquote>
  10879. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10880. curl -X DELETE /api/boards/{board}/lists/{list} \
  10881. -H <span class="hljs-string">'Accept: application/json'</span> \
  10882. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10883. </code></pre>
  10884. <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
  10885. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10886. <span class="undefined"></span></span></code></pre>
  10887. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10888. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10889. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10890. };
  10891. $.ajax({
  10892. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10893. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  10894. <span class="hljs-attr">headers</span>: headers,
  10895. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10896. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10897. }
  10898. })
  10899. </code></pre>
  10900. <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>);
  10901. <span class="hljs-keyword">const</span> headers = {
  10902. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10903. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10904. };
  10905. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10906. {
  10907. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  10908. <span class="hljs-attr">headers</span>: headers
  10909. })
  10910. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10911. <span class="hljs-keyword">return</span> res.json();
  10912. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10913. <span class="hljs-built_in">console</span>.log(body);
  10914. });
  10915. </code></pre>
  10916. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10917. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10918. headers = {
  10919. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10920. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10921. }
  10922. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  10923. <span class="hljs-symbol">params:</span> {
  10924. }, <span class="hljs-symbol">headers:</span> headers
  10925. p JSON.parse(result)
  10926. </code></pre>
  10927. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10928. headers = {
  10929. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10930. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10931. }
  10932. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  10933. }, headers = headers)
  10934. <span class="hljs-keyword">print</span> r.json()
  10935. </code></pre>
  10936. <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>);
  10937. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10938. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  10939. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10940. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10941. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10942. String inputLine;
  10943. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10944. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10945. response.append(inputLine);
  10946. }
  10947. in.close();
  10948. System.out.println(response.toString());
  10949. </code></pre>
  10950. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10951. <span class="hljs-keyword">import</span> (
  10952. <span class="hljs-string">"bytes"</span>
  10953. <span class="hljs-string">"net/http"</span>
  10954. )
  10955. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10956. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10957. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10958. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10959. }
  10960. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10961. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  10962. req.Header = headers
  10963. client := &amp;http.Client{}
  10964. resp, err := client.Do(req)
  10965. <span class="hljs-comment">// ...</span>
  10966. }
  10967. </code></pre>
  10968. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  10969. <p><em>Delete a List</em></p>
  10970. <p>This <strong>deletes</strong> a list from a board.
  10971. The list is not put in the recycle bin.</p>
  10972. <h3 id="delete_list-parameters">Parameters</h3>
  10973. <table>
  10974. <thead>
  10975. <tr>
  10976. <th>Name</th>
  10977. <th>In</th>
  10978. <th>Type</th>
  10979. <th>Required</th>
  10980. <th>Description</th>
  10981. </tr>
  10982. </thead>
  10983. <tbody>
  10984. <tr>
  10985. <td>board</td>
  10986. <td>path</td>
  10987. <td>string</td>
  10988. <td>true</td>
  10989. <td>the board ID</td>
  10990. </tr>
  10991. <tr>
  10992. <td>list</td>
  10993. <td>path</td>
  10994. <td>string</td>
  10995. <td>true</td>
  10996. <td>the ID of the list to remove</td>
  10997. </tr>
  10998. </tbody>
  10999. </table>
  11000. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11001. <p><strong>board</strong>: the board ID</p>
  11002. <p><strong>list</strong>: the ID of the list to remove</p>
  11003. <blockquote>
  11004. <p>Example responses</p>
  11005. </blockquote>
  11006. <blockquote>
  11007. <p>200 Response</p>
  11008. </blockquote>
  11009. <pre class="highlight tab tab-json"><code>{
  11010. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11011. }
  11012. </code></pre>
  11013. <h3 id="delete_list-responses">Responses</h3>
  11014. <table>
  11015. <thead>
  11016. <tr>
  11017. <th>Status</th>
  11018. <th>Meaning</th>
  11019. <th>Description</th>
  11020. <th>Schema</th>
  11021. </tr>
  11022. </thead>
  11023. <tbody>
  11024. <tr>
  11025. <td>200</td>
  11026. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11027. <td>200 response</td>
  11028. <td>Inline</td>
  11029. </tr>
  11030. </tbody>
  11031. </table>
  11032. <h3 id="delete_list-responseschema">Response Schema</h3>
  11033. <p>Status Code <strong>200</strong></p>
  11034. <table>
  11035. <thead>
  11036. <tr>
  11037. <th>Name</th>
  11038. <th>Type</th>
  11039. <th>Required</th>
  11040. <th>Restrictions</th>
  11041. <th>Description</th>
  11042. </tr>
  11043. </thead>
  11044. <tbody>
  11045. <tr>
  11046. <td>» _id</td>
  11047. <td>string</td>
  11048. <td>false</td>
  11049. <td>none</td>
  11050. <td>none</td>
  11051. </tr>
  11052. </tbody>
  11053. </table>
  11054. <aside class="warning">
  11055. To perform this operation, you must be authenticated by means of one of the following methods:
  11056. UserSecurity
  11057. </aside>
  11058. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  11059. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  11060. <p><a id="opIdget_all_swimlanes"></a></p>
  11061. <blockquote>
  11062. <p>Code samples</p>
  11063. </blockquote>
  11064. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11065. curl -X GET /api/boards/{board}/swimlanes \
  11066. -H <span class="hljs-string">'Accept: application/json'</span> \
  11067. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11068. </code></pre>
  11069. <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
  11070. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11071. <span class="undefined"></span></span></code></pre>
  11072. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11073. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11074. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11075. };
  11076. $.ajax({
  11077. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11078. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11079. <span class="hljs-attr">headers</span>: headers,
  11080. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11081. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11082. }
  11083. })
  11084. </code></pre>
  11085. <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>);
  11086. <span class="hljs-keyword">const</span> headers = {
  11087. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11088. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11089. };
  11090. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11091. {
  11092. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11093. <span class="hljs-attr">headers</span>: headers
  11094. })
  11095. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11096. <span class="hljs-keyword">return</span> res.json();
  11097. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11098. <span class="hljs-built_in">console</span>.log(body);
  11099. });
  11100. </code></pre>
  11101. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11102. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11103. headers = {
  11104. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11105. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11106. }
  11107. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11108. <span class="hljs-symbol">params:</span> {
  11109. }, <span class="hljs-symbol">headers:</span> headers
  11110. p JSON.parse(result)
  11111. </code></pre>
  11112. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11113. headers = {
  11114. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11115. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11116. }
  11117. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  11118. }, headers = headers)
  11119. <span class="hljs-keyword">print</span> r.json()
  11120. </code></pre>
  11121. <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>);
  11122. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11123. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11124. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11125. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11126. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11127. String inputLine;
  11128. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11129. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11130. response.append(inputLine);
  11131. }
  11132. in.close();
  11133. System.out.println(response.toString());
  11134. </code></pre>
  11135. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11136. <span class="hljs-keyword">import</span> (
  11137. <span class="hljs-string">"bytes"</span>
  11138. <span class="hljs-string">"net/http"</span>
  11139. )
  11140. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11141. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11142. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11143. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11144. }
  11145. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11146. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  11147. req.Header = headers
  11148. client := &amp;http.Client{}
  11149. resp, err := client.Do(req)
  11150. <span class="hljs-comment">// ...</span>
  11151. }
  11152. </code></pre>
  11153. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  11154. <p><em>Get the list of swimlanes attached to a board</em></p>
  11155. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  11156. <table>
  11157. <thead>
  11158. <tr>
  11159. <th>Name</th>
  11160. <th>In</th>
  11161. <th>Type</th>
  11162. <th>Required</th>
  11163. <th>Description</th>
  11164. </tr>
  11165. </thead>
  11166. <tbody>
  11167. <tr>
  11168. <td>board</td>
  11169. <td>path</td>
  11170. <td>string</td>
  11171. <td>true</td>
  11172. <td>the ID of the board</td>
  11173. </tr>
  11174. </tbody>
  11175. </table>
  11176. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11177. <p><strong>board</strong>: the ID of the board</p>
  11178. <blockquote>
  11179. <p>Example responses</p>
  11180. </blockquote>
  11181. <blockquote>
  11182. <p>200 Response</p>
  11183. </blockquote>
  11184. <pre class="highlight tab tab-json"><code>[
  11185. {
  11186. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  11187. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  11188. }
  11189. ]
  11190. </code></pre>
  11191. <h3 id="get_all_swimlanes-responses">Responses</h3>
  11192. <table>
  11193. <thead>
  11194. <tr>
  11195. <th>Status</th>
  11196. <th>Meaning</th>
  11197. <th>Description</th>
  11198. <th>Schema</th>
  11199. </tr>
  11200. </thead>
  11201. <tbody>
  11202. <tr>
  11203. <td>200</td>
  11204. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11205. <td>200 response</td>
  11206. <td>Inline</td>
  11207. </tr>
  11208. </tbody>
  11209. </table>
  11210. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  11211. <p>Status Code <strong>200</strong></p>
  11212. <table>
  11213. <thead>
  11214. <tr>
  11215. <th>Name</th>
  11216. <th>Type</th>
  11217. <th>Required</th>
  11218. <th>Restrictions</th>
  11219. <th>Description</th>
  11220. </tr>
  11221. </thead>
  11222. <tbody>
  11223. <tr>
  11224. <td>» _id</td>
  11225. <td>string</td>
  11226. <td>false</td>
  11227. <td>none</td>
  11228. <td>none</td>
  11229. </tr>
  11230. <tr>
  11231. <td>» title</td>
  11232. <td>string</td>
  11233. <td>false</td>
  11234. <td>none</td>
  11235. <td>none</td>
  11236. </tr>
  11237. </tbody>
  11238. </table>
  11239. <aside class="warning">
  11240. To perform this operation, you must be authenticated by means of one of the following methods:
  11241. UserSecurity
  11242. </aside>
  11243. <h2 id="new_swimlane">new_swimlane</h2>
  11244. <p><a id="opIdnew_swimlane"></a></p>
  11245. <blockquote>
  11246. <p>Code samples</p>
  11247. </blockquote>
  11248. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11249. curl -X POST /api/boards/{board}/swimlanes \
  11250. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11251. -H <span class="hljs-string">'Accept: application/json'</span> \
  11252. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11253. </code></pre>
  11254. <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
  11255. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11256. Accept: application/json
  11257. </span></code></pre>
  11258. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11259. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11260. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11261. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11262. };
  11263. $.ajax({
  11264. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11265. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  11266. <span class="hljs-attr">headers</span>: headers,
  11267. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11268. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11269. }
  11270. })
  11271. </code></pre>
  11272. <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>);
  11273. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11274. "title": "string"
  11275. }'</span>;
  11276. <span class="hljs-keyword">const</span> headers = {
  11277. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11278. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11279. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11280. };
  11281. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11282. {
  11283. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  11284. <span class="hljs-attr">body</span>: inputBody,
  11285. <span class="hljs-attr">headers</span>: headers
  11286. })
  11287. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11288. <span class="hljs-keyword">return</span> res.json();
  11289. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11290. <span class="hljs-built_in">console</span>.log(body);
  11291. });
  11292. </code></pre>
  11293. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11294. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11295. headers = {
  11296. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  11297. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11298. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11299. }
  11300. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  11301. <span class="hljs-symbol">params:</span> {
  11302. }, <span class="hljs-symbol">headers:</span> headers
  11303. p JSON.parse(result)
  11304. </code></pre>
  11305. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11306. headers = {
  11307. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  11308. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11309. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11310. }
  11311. r = requests.post(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  11312. }, headers = headers)
  11313. <span class="hljs-keyword">print</span> r.json()
  11314. </code></pre>
  11315. <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>);
  11316. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11317. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  11318. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11319. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11320. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11321. String inputLine;
  11322. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11323. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11324. response.append(inputLine);
  11325. }
  11326. in.close();
  11327. System.out.println(response.toString());
  11328. </code></pre>
  11329. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11330. <span class="hljs-keyword">import</span> (
  11331. <span class="hljs-string">"bytes"</span>
  11332. <span class="hljs-string">"net/http"</span>
  11333. )
  11334. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11335. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11336. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11337. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11338. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11339. }
  11340. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11341. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  11342. req.Header = headers
  11343. client := &amp;http.Client{}
  11344. resp, err := client.Do(req)
  11345. <span class="hljs-comment">// ...</span>
  11346. }
  11347. </code></pre>
  11348. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  11349. <p><em>Add a swimlane to a board</em></p>
  11350. <blockquote>
  11351. <p>Body parameter</p>
  11352. </blockquote>
  11353. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11354. </code></pre>
  11355. <h3 id="new_swimlane-parameters">Parameters</h3>
  11356. <table>
  11357. <thead>
  11358. <tr>
  11359. <th>Name</th>
  11360. <th>In</th>
  11361. <th>Type</th>
  11362. <th>Required</th>
  11363. <th>Description</th>
  11364. </tr>
  11365. </thead>
  11366. <tbody>
  11367. <tr>
  11368. <td>board</td>
  11369. <td>path</td>
  11370. <td>string</td>
  11371. <td>true</td>
  11372. <td>the ID of the board</td>
  11373. </tr>
  11374. <tr>
  11375. <td>body</td>
  11376. <td>body</td>
  11377. <td><a href="#schemanew_swimlane">new_swimlane</a></td>
  11378. <td>false</td>
  11379. <td>none</td>
  11380. </tr>
  11381. <tr>
  11382. <td>» title</td>
  11383. <td>body</td>
  11384. <td>string</td>
  11385. <td>true</td>
  11386. <td>the new title of the swimlane</td>
  11387. </tr>
  11388. </tbody>
  11389. </table>
  11390. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11391. <p><strong>board</strong>: the ID of the board</p>
  11392. <blockquote>
  11393. <p>Example responses</p>
  11394. </blockquote>
  11395. <blockquote>
  11396. <p>200 Response</p>
  11397. </blockquote>
  11398. <pre class="highlight tab tab-json"><code>{
  11399. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11400. }
  11401. </code></pre>
  11402. <h3 id="new_swimlane-responses">Responses</h3>
  11403. <table>
  11404. <thead>
  11405. <tr>
  11406. <th>Status</th>
  11407. <th>Meaning</th>
  11408. <th>Description</th>
  11409. <th>Schema</th>
  11410. </tr>
  11411. </thead>
  11412. <tbody>
  11413. <tr>
  11414. <td>200</td>
  11415. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11416. <td>200 response</td>
  11417. <td>Inline</td>
  11418. </tr>
  11419. </tbody>
  11420. </table>
  11421. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  11422. <p>Status Code <strong>200</strong></p>
  11423. <table>
  11424. <thead>
  11425. <tr>
  11426. <th>Name</th>
  11427. <th>Type</th>
  11428. <th>Required</th>
  11429. <th>Restrictions</th>
  11430. <th>Description</th>
  11431. </tr>
  11432. </thead>
  11433. <tbody>
  11434. <tr>
  11435. <td>» _id</td>
  11436. <td>string</td>
  11437. <td>false</td>
  11438. <td>none</td>
  11439. <td>none</td>
  11440. </tr>
  11441. </tbody>
  11442. </table>
  11443. <aside class="warning">
  11444. To perform this operation, you must be authenticated by means of one of the following methods:
  11445. UserSecurity
  11446. </aside>
  11447. <h2 id="get_swimlane">get_swimlane</h2>
  11448. <p><a id="opIdget_swimlane"></a></p>
  11449. <blockquote>
  11450. <p>Code samples</p>
  11451. </blockquote>
  11452. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11453. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  11454. -H <span class="hljs-string">'Accept: application/json'</span> \
  11455. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11456. </code></pre>
  11457. <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
  11458. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11459. <span class="undefined"></span></span></code></pre>
  11460. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11461. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11462. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11463. };
  11464. $.ajax({
  11465. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11466. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11467. <span class="hljs-attr">headers</span>: headers,
  11468. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11469. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11470. }
  11471. })
  11472. </code></pre>
  11473. <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>);
  11474. <span class="hljs-keyword">const</span> headers = {
  11475. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11476. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11477. };
  11478. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11479. {
  11480. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11481. <span class="hljs-attr">headers</span>: headers
  11482. })
  11483. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11484. <span class="hljs-keyword">return</span> res.json();
  11485. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11486. <span class="hljs-built_in">console</span>.log(body);
  11487. });
  11488. </code></pre>
  11489. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11490. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11491. headers = {
  11492. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11493. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11494. }
  11495. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11496. <span class="hljs-symbol">params:</span> {
  11497. }, <span class="hljs-symbol">headers:</span> headers
  11498. p JSON.parse(result)
  11499. </code></pre>
  11500. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11501. headers = {
  11502. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11503. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11504. }
  11505. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  11506. }, headers = headers)
  11507. <span class="hljs-keyword">print</span> r.json()
  11508. </code></pre>
  11509. <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>);
  11510. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11511. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11512. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11513. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11514. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11515. String inputLine;
  11516. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11517. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11518. response.append(inputLine);
  11519. }
  11520. in.close();
  11521. System.out.println(response.toString());
  11522. </code></pre>
  11523. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11524. <span class="hljs-keyword">import</span> (
  11525. <span class="hljs-string">"bytes"</span>
  11526. <span class="hljs-string">"net/http"</span>
  11527. )
  11528. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11529. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11530. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11531. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11532. }
  11533. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11534. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  11535. req.Header = headers
  11536. client := &amp;http.Client{}
  11537. resp, err := client.Do(req)
  11538. <span class="hljs-comment">// ...</span>
  11539. }
  11540. </code></pre>
  11541. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  11542. <p><em>Get a swimlane</em></p>
  11543. <h3 id="get_swimlane-parameters">Parameters</h3>
  11544. <table>
  11545. <thead>
  11546. <tr>
  11547. <th>Name</th>
  11548. <th>In</th>
  11549. <th>Type</th>
  11550. <th>Required</th>
  11551. <th>Description</th>
  11552. </tr>
  11553. </thead>
  11554. <tbody>
  11555. <tr>
  11556. <td>board</td>
  11557. <td>path</td>
  11558. <td>string</td>
  11559. <td>true</td>
  11560. <td>the ID of the board</td>
  11561. </tr>
  11562. <tr>
  11563. <td>swimlane</td>
  11564. <td>path</td>
  11565. <td>string</td>
  11566. <td>true</td>
  11567. <td>the ID of the swimlane</td>
  11568. </tr>
  11569. </tbody>
  11570. </table>
  11571. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11572. <p><strong>board</strong>: the ID of the board</p>
  11573. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  11574. <blockquote>
  11575. <p>Example responses</p>
  11576. </blockquote>
  11577. <blockquote>
  11578. <p>200 Response</p>
  11579. </blockquote>
  11580. <pre class="highlight tab tab-json"><code>{
  11581. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11582. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  11583. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  11584. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11585. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11586. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  11587. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  11588. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  11589. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11590. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  11591. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  11592. }
  11593. </code></pre>
  11594. <h3 id="get_swimlane-responses">Responses</h3>
  11595. <table>
  11596. <thead>
  11597. <tr>
  11598. <th>Status</th>
  11599. <th>Meaning</th>
  11600. <th>Description</th>
  11601. <th>Schema</th>
  11602. </tr>
  11603. </thead>
  11604. <tbody>
  11605. <tr>
  11606. <td>200</td>
  11607. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11608. <td>200 response</td>
  11609. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  11610. </tr>
  11611. </tbody>
  11612. </table>
  11613. <aside class="warning">
  11614. To perform this operation, you must be authenticated by means of one of the following methods:
  11615. UserSecurity
  11616. </aside>
  11617. <h2 id="edit_swimlane">edit_swimlane</h2>
  11618. <p><a id="opIdedit_swimlane"></a></p>
  11619. <blockquote>
  11620. <p>Code samples</p>
  11621. </blockquote>
  11622. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11623. curl -X PUT /api/boards/{board}/swimlanes/{swimlane} \
  11624. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11625. -H <span class="hljs-string">'Accept: application/json'</span> \
  11626. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11627. </code></pre>
  11628. <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
  11629. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11630. Accept: application/json
  11631. </span></code></pre>
  11632. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11633. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11634. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11635. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11636. };
  11637. $.ajax({
  11638. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11639. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  11640. <span class="hljs-attr">headers</span>: headers,
  11641. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11642. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11643. }
  11644. })
  11645. </code></pre>
  11646. <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>);
  11647. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11648. "title": "string"
  11649. }'</span>;
  11650. <span class="hljs-keyword">const</span> headers = {
  11651. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11652. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11653. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11654. };
  11655. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11656. {
  11657. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  11658. <span class="hljs-attr">body</span>: inputBody,
  11659. <span class="hljs-attr">headers</span>: headers
  11660. })
  11661. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11662. <span class="hljs-keyword">return</span> res.json();
  11663. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11664. <span class="hljs-built_in">console</span>.log(body);
  11665. });
  11666. </code></pre>
  11667. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11668. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11669. headers = {
  11670. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  11671. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11672. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11673. }
  11674. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11675. <span class="hljs-symbol">params:</span> {
  11676. }, <span class="hljs-symbol">headers:</span> headers
  11677. p JSON.parse(result)
  11678. </code></pre>
  11679. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11680. headers = {
  11681. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  11682. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11683. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11684. }
  11685. r = requests.put(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  11686. }, headers = headers)
  11687. <span class="hljs-keyword">print</span> r.json()
  11688. </code></pre>
  11689. <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>);
  11690. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11691. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  11692. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11693. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11694. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11695. String inputLine;
  11696. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11697. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11698. response.append(inputLine);
  11699. }
  11700. in.close();
  11701. System.out.println(response.toString());
  11702. </code></pre>
  11703. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11704. <span class="hljs-keyword">import</span> (
  11705. <span class="hljs-string">"bytes"</span>
  11706. <span class="hljs-string">"net/http"</span>
  11707. )
  11708. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11709. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11710. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11711. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11712. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11713. }
  11714. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11715. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  11716. req.Header = headers
  11717. client := &amp;http.Client{}
  11718. resp, err := client.Do(req)
  11719. <span class="hljs-comment">// ...</span>
  11720. }
  11721. </code></pre>
  11722. <p><code>PUT /api/boards/{board}/swimlanes/{swimlane}</code></p>
  11723. <p><em>Edit the title of a swimlane</em></p>
  11724. <blockquote>
  11725. <p>Body parameter</p>
  11726. </blockquote>
  11727. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11728. </code></pre>
  11729. <h3 id="edit_swimlane-parameters">Parameters</h3>
  11730. <table>
  11731. <thead>
  11732. <tr>
  11733. <th>Name</th>
  11734. <th>In</th>
  11735. <th>Type</th>
  11736. <th>Required</th>
  11737. <th>Description</th>
  11738. </tr>
  11739. </thead>
  11740. <tbody>
  11741. <tr>
  11742. <td>board</td>
  11743. <td>path</td>
  11744. <td>string</td>
  11745. <td>true</td>
  11746. <td>the ID of the board</td>
  11747. </tr>
  11748. <tr>
  11749. <td>swimlane</td>
  11750. <td>path</td>
  11751. <td>string</td>
  11752. <td>true</td>
  11753. <td>the ID of the swimlane to edit</td>
  11754. </tr>
  11755. <tr>
  11756. <td>body</td>
  11757. <td>body</td>
  11758. <td><a href="#schemanew_swimlane">new_swimlane</a></td>
  11759. <td>false</td>
  11760. <td>none</td>
  11761. </tr>
  11762. <tr>
  11763. <td>» title</td>
  11764. <td>body</td>
  11765. <td>string</td>
  11766. <td>true</td>
  11767. <td>the new title of the swimlane</td>
  11768. </tr>
  11769. </tbody>
  11770. </table>
  11771. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11772. <p><strong>board</strong>: the ID of the board</p>
  11773. <p><strong>swimlane</strong>: the ID of the swimlane to edit</p>
  11774. <blockquote>
  11775. <p>Example responses</p>
  11776. </blockquote>
  11777. <blockquote>
  11778. <p>200 Response</p>
  11779. </blockquote>
  11780. <pre class="highlight tab tab-json"><code>{
  11781. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11782. }
  11783. </code></pre>
  11784. <h3 id="edit_swimlane-responses">Responses</h3>
  11785. <table>
  11786. <thead>
  11787. <tr>
  11788. <th>Status</th>
  11789. <th>Meaning</th>
  11790. <th>Description</th>
  11791. <th>Schema</th>
  11792. </tr>
  11793. </thead>
  11794. <tbody>
  11795. <tr>
  11796. <td>200</td>
  11797. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11798. <td>200 response</td>
  11799. <td>Inline</td>
  11800. </tr>
  11801. </tbody>
  11802. </table>
  11803. <h3 id="edit_swimlane-responseschema">Response Schema</h3>
  11804. <p>Status Code <strong>200</strong></p>
  11805. <table>
  11806. <thead>
  11807. <tr>
  11808. <th>Name</th>
  11809. <th>Type</th>
  11810. <th>Required</th>
  11811. <th>Restrictions</th>
  11812. <th>Description</th>
  11813. </tr>
  11814. </thead>
  11815. <tbody>
  11816. <tr>
  11817. <td>» _id</td>
  11818. <td>string</td>
  11819. <td>false</td>
  11820. <td>none</td>
  11821. <td>none</td>
  11822. </tr>
  11823. </tbody>
  11824. </table>
  11825. <aside class="warning">
  11826. To perform this operation, you must be authenticated by means of one of the following methods:
  11827. UserSecurity
  11828. </aside>
  11829. <h2 id="delete_swimlane">delete_swimlane</h2>
  11830. <p><a id="opIddelete_swimlane"></a></p>
  11831. <blockquote>
  11832. <p>Code samples</p>
  11833. </blockquote>
  11834. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11835. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  11836. -H <span class="hljs-string">'Accept: application/json'</span> \
  11837. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11838. </code></pre>
  11839. <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
  11840. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11841. <span class="undefined"></span></span></code></pre>
  11842. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11843. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11844. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11845. };
  11846. $.ajax({
  11847. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11848. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  11849. <span class="hljs-attr">headers</span>: headers,
  11850. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11851. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11852. }
  11853. })
  11854. </code></pre>
  11855. <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>);
  11856. <span class="hljs-keyword">const</span> headers = {
  11857. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11858. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11859. };
  11860. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11861. {
  11862. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  11863. <span class="hljs-attr">headers</span>: headers
  11864. })
  11865. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11866. <span class="hljs-keyword">return</span> res.json();
  11867. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11868. <span class="hljs-built_in">console</span>.log(body);
  11869. });
  11870. </code></pre>
  11871. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11872. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11873. headers = {
  11874. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11875. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11876. }
  11877. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  11878. <span class="hljs-symbol">params:</span> {
  11879. }, <span class="hljs-symbol">headers:</span> headers
  11880. p JSON.parse(result)
  11881. </code></pre>
  11882. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11883. headers = {
  11884. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11885. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11886. }
  11887. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  11888. }, headers = headers)
  11889. <span class="hljs-keyword">print</span> r.json()
  11890. </code></pre>
  11891. <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>);
  11892. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11893. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  11894. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11895. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11896. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11897. String inputLine;
  11898. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11899. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11900. response.append(inputLine);
  11901. }
  11902. in.close();
  11903. System.out.println(response.toString());
  11904. </code></pre>
  11905. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11906. <span class="hljs-keyword">import</span> (
  11907. <span class="hljs-string">"bytes"</span>
  11908. <span class="hljs-string">"net/http"</span>
  11909. )
  11910. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11911. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11912. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11913. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11914. }
  11915. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11916. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  11917. req.Header = headers
  11918. client := &amp;http.Client{}
  11919. resp, err := client.Do(req)
  11920. <span class="hljs-comment">// ...</span>
  11921. }
  11922. </code></pre>
  11923. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  11924. <p><em>Delete a swimlane</em></p>
  11925. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  11926. <h3 id="delete_swimlane-parameters">Parameters</h3>
  11927. <table>
  11928. <thead>
  11929. <tr>
  11930. <th>Name</th>
  11931. <th>In</th>
  11932. <th>Type</th>
  11933. <th>Required</th>
  11934. <th>Description</th>
  11935. </tr>
  11936. </thead>
  11937. <tbody>
  11938. <tr>
  11939. <td>board</td>
  11940. <td>path</td>
  11941. <td>string</td>
  11942. <td>true</td>
  11943. <td>the ID of the board</td>
  11944. </tr>
  11945. <tr>
  11946. <td>swimlane</td>
  11947. <td>path</td>
  11948. <td>string</td>
  11949. <td>true</td>
  11950. <td>the ID of the swimlane</td>
  11951. </tr>
  11952. </tbody>
  11953. </table>
  11954. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11955. <p><strong>board</strong>: the ID of the board</p>
  11956. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  11957. <blockquote>
  11958. <p>Example responses</p>
  11959. </blockquote>
  11960. <blockquote>
  11961. <p>200 Response</p>
  11962. </blockquote>
  11963. <pre class="highlight tab tab-json"><code>{
  11964. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11965. }
  11966. </code></pre>
  11967. <h3 id="delete_swimlane-responses">Responses</h3>
  11968. <table>
  11969. <thead>
  11970. <tr>
  11971. <th>Status</th>
  11972. <th>Meaning</th>
  11973. <th>Description</th>
  11974. <th>Schema</th>
  11975. </tr>
  11976. </thead>
  11977. <tbody>
  11978. <tr>
  11979. <td>200</td>
  11980. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11981. <td>200 response</td>
  11982. <td>Inline</td>
  11983. </tr>
  11984. </tbody>
  11985. </table>
  11986. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  11987. <p>Status Code <strong>200</strong></p>
  11988. <table>
  11989. <thead>
  11990. <tr>
  11991. <th>Name</th>
  11992. <th>Type</th>
  11993. <th>Required</th>
  11994. <th>Restrictions</th>
  11995. <th>Description</th>
  11996. </tr>
  11997. </thead>
  11998. <tbody>
  11999. <tr>
  12000. <td>» _id</td>
  12001. <td>string</td>
  12002. <td>false</td>
  12003. <td>none</td>
  12004. <td>none</td>
  12005. </tr>
  12006. </tbody>
  12007. </table>
  12008. <aside class="warning">
  12009. To perform this operation, you must be authenticated by means of one of the following methods:
  12010. UserSecurity
  12011. </aside>
  12012. <h1 id="schemas">Schemas</h1>
  12013. <h2 id="tocscardcomments">CardComments</h2>
  12014. <p><a id="schemacardcomments"></a></p>
  12015. <pre class="highlight tab tab-json"><code>{
  12016. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12017. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  12018. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  12019. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12020. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12021. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  12022. }
  12023. </code></pre>
  12024. <p><em>A comment on a card</em></p>
  12025. <h3 id="properties">Properties</h3>
  12026. <table>
  12027. <thead>
  12028. <tr>
  12029. <th>Name</th>
  12030. <th>Type</th>
  12031. <th>Required</th>
  12032. <th>Restrictions</th>
  12033. <th>Description</th>
  12034. </tr>
  12035. </thead>
  12036. <tbody>
  12037. <tr>
  12038. <td>boardId</td>
  12039. <td>string</td>
  12040. <td>true</td>
  12041. <td>none</td>
  12042. <td>the board ID</td>
  12043. </tr>
  12044. <tr>
  12045. <td>cardId</td>
  12046. <td>string</td>
  12047. <td>true</td>
  12048. <td>none</td>
  12049. <td>the card ID</td>
  12050. </tr>
  12051. <tr>
  12052. <td>text</td>
  12053. <td>string</td>
  12054. <td>true</td>
  12055. <td>none</td>
  12056. <td>the text of the comment</td>
  12057. </tr>
  12058. <tr>
  12059. <td>createdAt</td>
  12060. <td>string</td>
  12061. <td>true</td>
  12062. <td>none</td>
  12063. <td>when was the comment created</td>
  12064. </tr>
  12065. <tr>
  12066. <td>modifiedAt</td>
  12067. <td>string</td>
  12068. <td>true</td>
  12069. <td>none</td>
  12070. <td>none</td>
  12071. </tr>
  12072. <tr>
  12073. <td>userId</td>
  12074. <td>string</td>
  12075. <td>true</td>
  12076. <td>none</td>
  12077. <td>the author ID of the comment</td>
  12078. </tr>
  12079. </tbody>
  12080. </table>
  12081. <h2 id="tocscards">Cards</h2>
  12082. <p><a id="schemacards"></a></p>
  12083. <pre class="highlight tab tab-json"><code>{
  12084. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12085. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  12086. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  12087. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  12088. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  12089. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  12090. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12091. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  12092. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  12093. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12094. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12095. <span class="hljs-attr">"customFields"</span>: [
  12096. {}
  12097. ],
  12098. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  12099. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  12100. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  12101. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  12102. <span class="hljs-attr">"labelIds"</span>: [
  12103. <span class="hljs-string">"string"</span>
  12104. ],
  12105. <span class="hljs-attr">"members"</span>: [
  12106. <span class="hljs-string">"string"</span>
  12107. ],
  12108. <span class="hljs-attr">"assignees"</span>: [
  12109. <span class="hljs-string">"string"</span>
  12110. ],
  12111. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  12112. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  12113. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  12114. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  12115. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  12116. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  12117. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  12118. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  12119. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  12120. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  12121. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  12122. <span class="hljs-attr">"vote"</span>: {
  12123. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  12124. <span class="hljs-attr">"positive"</span>: [
  12125. <span class="hljs-string">"string"</span>
  12126. ],
  12127. <span class="hljs-attr">"negative"</span>: [
  12128. <span class="hljs-string">"string"</span>
  12129. ],
  12130. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  12131. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  12132. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  12133. },
  12134. <span class="hljs-attr">"poker"</span>: {
  12135. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  12136. <span class="hljs-attr">"one"</span>: [
  12137. <span class="hljs-string">"string"</span>
  12138. ],
  12139. <span class="hljs-attr">"two"</span>: [
  12140. <span class="hljs-string">"string"</span>
  12141. ],
  12142. <span class="hljs-attr">"three"</span>: [
  12143. <span class="hljs-string">"string"</span>
  12144. ],
  12145. <span class="hljs-attr">"five"</span>: [
  12146. <span class="hljs-string">"string"</span>
  12147. ],
  12148. <span class="hljs-attr">"eight"</span>: [
  12149. <span class="hljs-string">"string"</span>
  12150. ],
  12151. <span class="hljs-attr">"thirteen"</span>: [
  12152. <span class="hljs-string">"string"</span>
  12153. ],
  12154. <span class="hljs-attr">"twenty"</span>: [
  12155. <span class="hljs-string">"string"</span>
  12156. ],
  12157. <span class="hljs-attr">"forty"</span>: [
  12158. <span class="hljs-string">"string"</span>
  12159. ],
  12160. <span class="hljs-attr">"oneHundred"</span>: [
  12161. <span class="hljs-string">"string"</span>
  12162. ],
  12163. <span class="hljs-attr">"unsure"</span>: [
  12164. <span class="hljs-string">"string"</span>
  12165. ],
  12166. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  12167. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  12168. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  12169. },
  12170. <span class="hljs-attr">"targetId_gantt"</span>: [
  12171. <span class="hljs-string">"string"</span>
  12172. ],
  12173. <span class="hljs-attr">"linkType_gantt"</span>: [
  12174. <span class="hljs-number">0</span>
  12175. ],
  12176. <span class="hljs-attr">"linkId_gantt"</span>: [
  12177. <span class="hljs-string">"string"</span>
  12178. ],
  12179. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  12180. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  12181. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>
  12182. }
  12183. </code></pre>
  12184. <h3 id="properties">Properties</h3>
  12185. <table>
  12186. <thead>
  12187. <tr>
  12188. <th>Name</th>
  12189. <th>Type</th>
  12190. <th>Required</th>
  12191. <th>Restrictions</th>
  12192. <th>Description</th>
  12193. </tr>
  12194. </thead>
  12195. <tbody>
  12196. <tr>
  12197. <td>title</td>
  12198. <td>string|null</td>
  12199. <td>false</td>
  12200. <td>none</td>
  12201. <td>the title of the card</td>
  12202. </tr>
  12203. <tr>
  12204. <td>archived</td>
  12205. <td>boolean</td>
  12206. <td>true</td>
  12207. <td>none</td>
  12208. <td>is the card archived</td>
  12209. </tr>
  12210. <tr>
  12211. <td>archivedAt</td>
  12212. <td>string|null</td>
  12213. <td>false</td>
  12214. <td>none</td>
  12215. <td>latest archiving date</td>
  12216. </tr>
  12217. <tr>
  12218. <td>parentId</td>
  12219. <td>string|null</td>
  12220. <td>false</td>
  12221. <td>none</td>
  12222. <td>ID of the parent card</td>
  12223. </tr>
  12224. <tr>
  12225. <td>listId</td>
  12226. <td>string|null</td>
  12227. <td>false</td>
  12228. <td>none</td>
  12229. <td>List ID where the card is</td>
  12230. </tr>
  12231. <tr>
  12232. <td>swimlaneId</td>
  12233. <td>string</td>
  12234. <td>true</td>
  12235. <td>none</td>
  12236. <td>Swimlane ID where the card is</td>
  12237. </tr>
  12238. <tr>
  12239. <td>boardId</td>
  12240. <td>string|null</td>
  12241. <td>false</td>
  12242. <td>none</td>
  12243. <td>Board ID of the card</td>
  12244. </tr>
  12245. <tr>
  12246. <td>coverId</td>
  12247. <td>string|null</td>
  12248. <td>false</td>
  12249. <td>none</td>
  12250. <td>Cover ID of the card</td>
  12251. </tr>
  12252. <tr>
  12253. <td>color</td>
  12254. <td>string|null</td>
  12255. <td>false</td>
  12256. <td>none</td>
  12257. <td>none</td>
  12258. </tr>
  12259. <tr>
  12260. <td>createdAt</td>
  12261. <td>string</td>
  12262. <td>true</td>
  12263. <td>none</td>
  12264. <td>creation date</td>
  12265. </tr>
  12266. <tr>
  12267. <td>modifiedAt</td>
  12268. <td>string</td>
  12269. <td>true</td>
  12270. <td>none</td>
  12271. <td>none</td>
  12272. </tr>
  12273. <tr>
  12274. <td>customFields</td>
  12275. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]|null</td>
  12276. <td>false</td>
  12277. <td>none</td>
  12278. <td>list of custom fields</td>
  12279. </tr>
  12280. <tr>
  12281. <td>dateLastActivity</td>
  12282. <td>string</td>
  12283. <td>true</td>
  12284. <td>none</td>
  12285. <td>Date of last activity</td>
  12286. </tr>
  12287. <tr>
  12288. <td>description</td>
  12289. <td>string|null</td>
  12290. <td>false</td>
  12291. <td>none</td>
  12292. <td>description of the card</td>
  12293. </tr>
  12294. <tr>
  12295. <td>requestedBy</td>
  12296. <td>string|null</td>
  12297. <td>false</td>
  12298. <td>none</td>
  12299. <td>who requested the card (ID of the user)</td>
  12300. </tr>
  12301. <tr>
  12302. <td>assignedBy</td>
  12303. <td>string|null</td>
  12304. <td>false</td>
  12305. <td>none</td>
  12306. <td>who assigned the card (ID of the user)</td>
  12307. </tr>
  12308. <tr>
  12309. <td>labelIds</td>
  12310. <td>[string]|null</td>
  12311. <td>false</td>
  12312. <td>none</td>
  12313. <td>list of labels ID the card has</td>
  12314. </tr>
  12315. <tr>
  12316. <td>members</td>
  12317. <td>[string]|null</td>
  12318. <td>false</td>
  12319. <td>none</td>
  12320. <td>list of members (user IDs)</td>
  12321. </tr>
  12322. <tr>
  12323. <td>assignees</td>
  12324. <td>[string]|null</td>
  12325. <td>false</td>
  12326. <td>none</td>
  12327. <td>who is assignee of the card (user ID), maximum one ID of assignee in array.</td>
  12328. </tr>
  12329. <tr>
  12330. <td>receivedAt</td>
  12331. <td>string|null</td>
  12332. <td>false</td>
  12333. <td>none</td>
  12334. <td>Date the card was received</td>
  12335. </tr>
  12336. <tr>
  12337. <td>startAt</td>
  12338. <td>string|null</td>
  12339. <td>false</td>
  12340. <td>none</td>
  12341. <td>Date the card was started to be worked on</td>
  12342. </tr>
  12343. <tr>
  12344. <td>dueAt</td>
  12345. <td>string|null</td>
  12346. <td>false</td>
  12347. <td>none</td>
  12348. <td>Date the card is due</td>
  12349. </tr>
  12350. <tr>
  12351. <td>endAt</td>
  12352. <td>string|null</td>
  12353. <td>false</td>
  12354. <td>none</td>
  12355. <td>Date the card ended</td>
  12356. </tr>
  12357. <tr>
  12358. <td>spentTime</td>
  12359. <td>number|null</td>
  12360. <td>false</td>
  12361. <td>none</td>
  12362. <td>How much time has been spent on this</td>
  12363. </tr>
  12364. <tr>
  12365. <td>isOvertime</td>
  12366. <td>boolean|null</td>
  12367. <td>false</td>
  12368. <td>none</td>
  12369. <td>is the card over time?</td>
  12370. </tr>
  12371. <tr>
  12372. <td>userId</td>
  12373. <td>string</td>
  12374. <td>true</td>
  12375. <td>none</td>
  12376. <td>user ID of the author of the card</td>
  12377. </tr>
  12378. <tr>
  12379. <td>sort</td>
  12380. <td>number|null</td>
  12381. <td>false</td>
  12382. <td>none</td>
  12383. <td>Sort value</td>
  12384. </tr>
  12385. <tr>
  12386. <td>subtaskSort</td>
  12387. <td>number|null</td>
  12388. <td>false</td>
  12389. <td>none</td>
  12390. <td>subtask sort value</td>
  12391. </tr>
  12392. <tr>
  12393. <td>type</td>
  12394. <td>string</td>
  12395. <td>true</td>
  12396. <td>none</td>
  12397. <td>type of the card</td>
  12398. </tr>
  12399. <tr>
  12400. <td>linkedId</td>
  12401. <td>string|null</td>
  12402. <td>false</td>
  12403. <td>none</td>
  12404. <td>ID of the linked card</td>
  12405. </tr>
  12406. <tr>
  12407. <td>vote</td>
  12408. <td><a href="#schemacardsvote">CardsVote</a></td>
  12409. <td>false</td>
  12410. <td>none</td>
  12411. <td>vote object, see below</td>
  12412. </tr>
  12413. <tr>
  12414. <td>poker</td>
  12415. <td><a href="#schemacardspoker">CardsPoker</a></td>
  12416. <td>false</td>
  12417. <td>none</td>
  12418. <td>poker object, see below</td>
  12419. </tr>
  12420. <tr>
  12421. <td>targetId_gantt</td>
  12422. <td>[string]|null</td>
  12423. <td>false</td>
  12424. <td>none</td>
  12425. <td>ID of card which is the child link in gantt view</td>
  12426. </tr>
  12427. <tr>
  12428. <td>linkType_gantt</td>
  12429. <td>[number]|null</td>
  12430. <td>false</td>
  12431. <td>none</td>
  12432. <td>ID of card which is the parent link in gantt view</td>
  12433. </tr>
  12434. <tr>
  12435. <td>linkId_gantt</td>
  12436. <td>[string]|null</td>
  12437. <td>false</td>
  12438. <td>none</td>
  12439. <td>ID of card which is the parent link in gantt view</td>
  12440. </tr>
  12441. <tr>
  12442. <td>cardNumber</td>
  12443. <td>number|null</td>
  12444. <td>false</td>
  12445. <td>none</td>
  12446. <td>A boardwise sequentially increasing number that is assigned to every newly created card</td>
  12447. </tr>
  12448. <tr>
  12449. <td>showActivities</td>
  12450. <td>boolean</td>
  12451. <td>true</td>
  12452. <td>none</td>
  12453. <td>none</td>
  12454. </tr>
  12455. <tr>
  12456. <td>hideFinishedChecklistIfItemsAreHidden</td>
  12457. <td>boolean|null</td>
  12458. <td>false</td>
  12459. <td>none</td>
  12460. <td>hide completed checklist?</td>
  12461. </tr>
  12462. </tbody>
  12463. </table>
  12464. <h4 id="enumerated-values">Enumerated Values</h4>
  12465. <table>
  12466. <thead>
  12467. <tr>
  12468. <th>Property</th>
  12469. <th>Value</th>
  12470. </tr>
  12471. </thead>
  12472. <tbody>
  12473. <tr>
  12474. <td>color</td>
  12475. <td>white</td>
  12476. </tr>
  12477. <tr>
  12478. <td>color</td>
  12479. <td>green</td>
  12480. </tr>
  12481. <tr>
  12482. <td>color</td>
  12483. <td>yellow</td>
  12484. </tr>
  12485. <tr>
  12486. <td>color</td>
  12487. <td>orange</td>
  12488. </tr>
  12489. <tr>
  12490. <td>color</td>
  12491. <td>red</td>
  12492. </tr>
  12493. <tr>
  12494. <td>color</td>
  12495. <td>purple</td>
  12496. </tr>
  12497. <tr>
  12498. <td>color</td>
  12499. <td>blue</td>
  12500. </tr>
  12501. <tr>
  12502. <td>color</td>
  12503. <td>sky</td>
  12504. </tr>
  12505. <tr>
  12506. <td>color</td>
  12507. <td>lime</td>
  12508. </tr>
  12509. <tr>
  12510. <td>color</td>
  12511. <td>pink</td>
  12512. </tr>
  12513. <tr>
  12514. <td>color</td>
  12515. <td>black</td>
  12516. </tr>
  12517. <tr>
  12518. <td>color</td>
  12519. <td>silver</td>
  12520. </tr>
  12521. <tr>
  12522. <td>color</td>
  12523. <td>peachpuff</td>
  12524. </tr>
  12525. <tr>
  12526. <td>color</td>
  12527. <td>crimson</td>
  12528. </tr>
  12529. <tr>
  12530. <td>color</td>
  12531. <td>plum</td>
  12532. </tr>
  12533. <tr>
  12534. <td>color</td>
  12535. <td>darkgreen</td>
  12536. </tr>
  12537. <tr>
  12538. <td>color</td>
  12539. <td>slateblue</td>
  12540. </tr>
  12541. <tr>
  12542. <td>color</td>
  12543. <td>magenta</td>
  12544. </tr>
  12545. <tr>
  12546. <td>color</td>
  12547. <td>gold</td>
  12548. </tr>
  12549. <tr>
  12550. <td>color</td>
  12551. <td>navy</td>
  12552. </tr>
  12553. <tr>
  12554. <td>color</td>
  12555. <td>gray</td>
  12556. </tr>
  12557. <tr>
  12558. <td>color</td>
  12559. <td>saddlebrown</td>
  12560. </tr>
  12561. <tr>
  12562. <td>color</td>
  12563. <td>paleturquoise</td>
  12564. </tr>
  12565. <tr>
  12566. <td>color</td>
  12567. <td>mistyrose</td>
  12568. </tr>
  12569. <tr>
  12570. <td>color</td>
  12571. <td>indigo</td>
  12572. </tr>
  12573. </tbody>
  12574. </table>
  12575. <h2 id="tocscardsvote">CardsVote</h2>
  12576. <p><a id="schemacardsvote"></a></p>
  12577. <pre class="highlight tab tab-json"><code>{
  12578. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  12579. <span class="hljs-attr">"positive"</span>: [
  12580. <span class="hljs-string">"string"</span>
  12581. ],
  12582. <span class="hljs-attr">"negative"</span>: [
  12583. <span class="hljs-string">"string"</span>
  12584. ],
  12585. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  12586. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  12587. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  12588. }
  12589. </code></pre>
  12590. <h3 id="properties">Properties</h3>
  12591. <table>
  12592. <thead>
  12593. <tr>
  12594. <th>Name</th>
  12595. <th>Type</th>
  12596. <th>Required</th>
  12597. <th>Restrictions</th>
  12598. <th>Description</th>
  12599. </tr>
  12600. </thead>
  12601. <tbody>
  12602. <tr>
  12603. <td>question</td>
  12604. <td>string</td>
  12605. <td>true</td>
  12606. <td>none</td>
  12607. <td>none</td>
  12608. </tr>
  12609. <tr>
  12610. <td>positive</td>
  12611. <td>[string]</td>
  12612. <td>false</td>
  12613. <td>none</td>
  12614. <td>list of members (user IDs)</td>
  12615. </tr>
  12616. <tr>
  12617. <td>negative</td>
  12618. <td>[string]</td>
  12619. <td>false</td>
  12620. <td>none</td>
  12621. <td>list of members (user IDs)</td>
  12622. </tr>
  12623. <tr>
  12624. <td>end</td>
  12625. <td>string</td>
  12626. <td>false</td>
  12627. <td>none</td>
  12628. <td>none</td>
  12629. </tr>
  12630. <tr>
  12631. <td>public</td>
  12632. <td>boolean</td>
  12633. <td>true</td>
  12634. <td>none</td>
  12635. <td>none</td>
  12636. </tr>
  12637. <tr>
  12638. <td>allowNonBoardMembers</td>
  12639. <td>boolean</td>
  12640. <td>true</td>
  12641. <td>none</td>
  12642. <td>none</td>
  12643. </tr>
  12644. </tbody>
  12645. </table>
  12646. <h2 id="tocscardspoker">CardsPoker</h2>
  12647. <p><a id="schemacardspoker"></a></p>
  12648. <pre class="highlight tab tab-json"><code>{
  12649. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  12650. <span class="hljs-attr">"one"</span>: [
  12651. <span class="hljs-string">"string"</span>
  12652. ],
  12653. <span class="hljs-attr">"two"</span>: [
  12654. <span class="hljs-string">"string"</span>
  12655. ],
  12656. <span class="hljs-attr">"three"</span>: [
  12657. <span class="hljs-string">"string"</span>
  12658. ],
  12659. <span class="hljs-attr">"five"</span>: [
  12660. <span class="hljs-string">"string"</span>
  12661. ],
  12662. <span class="hljs-attr">"eight"</span>: [
  12663. <span class="hljs-string">"string"</span>
  12664. ],
  12665. <span class="hljs-attr">"thirteen"</span>: [
  12666. <span class="hljs-string">"string"</span>
  12667. ],
  12668. <span class="hljs-attr">"twenty"</span>: [
  12669. <span class="hljs-string">"string"</span>
  12670. ],
  12671. <span class="hljs-attr">"forty"</span>: [
  12672. <span class="hljs-string">"string"</span>
  12673. ],
  12674. <span class="hljs-attr">"oneHundred"</span>: [
  12675. <span class="hljs-string">"string"</span>
  12676. ],
  12677. <span class="hljs-attr">"unsure"</span>: [
  12678. <span class="hljs-string">"string"</span>
  12679. ],
  12680. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  12681. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  12682. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  12683. }
  12684. </code></pre>
  12685. <h3 id="properties">Properties</h3>
  12686. <table>
  12687. <thead>
  12688. <tr>
  12689. <th>Name</th>
  12690. <th>Type</th>
  12691. <th>Required</th>
  12692. <th>Restrictions</th>
  12693. <th>Description</th>
  12694. </tr>
  12695. </thead>
  12696. <tbody>
  12697. <tr>
  12698. <td>question</td>
  12699. <td>boolean</td>
  12700. <td>false</td>
  12701. <td>none</td>
  12702. <td>none</td>
  12703. </tr>
  12704. <tr>
  12705. <td>one</td>
  12706. <td>[string]</td>
  12707. <td>false</td>
  12708. <td>none</td>
  12709. <td>poker card one</td>
  12710. </tr>
  12711. <tr>
  12712. <td>two</td>
  12713. <td>[string]</td>
  12714. <td>false</td>
  12715. <td>none</td>
  12716. <td>poker card two</td>
  12717. </tr>
  12718. <tr>
  12719. <td>three</td>
  12720. <td>[string]</td>
  12721. <td>false</td>
  12722. <td>none</td>
  12723. <td>poker card three</td>
  12724. </tr>
  12725. <tr>
  12726. <td>five</td>
  12727. <td>[string]</td>
  12728. <td>false</td>
  12729. <td>none</td>
  12730. <td>poker card five</td>
  12731. </tr>
  12732. <tr>
  12733. <td>eight</td>
  12734. <td>[string]</td>
  12735. <td>false</td>
  12736. <td>none</td>
  12737. <td>poker card eight</td>
  12738. </tr>
  12739. <tr>
  12740. <td>thirteen</td>
  12741. <td>[string]</td>
  12742. <td>false</td>
  12743. <td>none</td>
  12744. <td>poker card thirteen</td>
  12745. </tr>
  12746. <tr>
  12747. <td>twenty</td>
  12748. <td>[string]</td>
  12749. <td>false</td>
  12750. <td>none</td>
  12751. <td>poker card twenty</td>
  12752. </tr>
  12753. <tr>
  12754. <td>forty</td>
  12755. <td>[string]</td>
  12756. <td>false</td>
  12757. <td>none</td>
  12758. <td>poker card forty</td>
  12759. </tr>
  12760. <tr>
  12761. <td>oneHundred</td>
  12762. <td>[string]</td>
  12763. <td>false</td>
  12764. <td>none</td>
  12765. <td>poker card oneHundred</td>
  12766. </tr>
  12767. <tr>
  12768. <td>unsure</td>
  12769. <td>[string]</td>
  12770. <td>false</td>
  12771. <td>none</td>
  12772. <td>poker card unsure</td>
  12773. </tr>
  12774. <tr>
  12775. <td>end</td>
  12776. <td>string</td>
  12777. <td>false</td>
  12778. <td>none</td>
  12779. <td>none</td>
  12780. </tr>
  12781. <tr>
  12782. <td>allowNonBoardMembers</td>
  12783. <td>boolean</td>
  12784. <td>false</td>
  12785. <td>none</td>
  12786. <td>none</td>
  12787. </tr>
  12788. <tr>
  12789. <td>estimation</td>
  12790. <td>number</td>
  12791. <td>false</td>
  12792. <td>none</td>
  12793. <td>poker estimation value</td>
  12794. </tr>
  12795. </tbody>
  12796. </table>
  12797. <h2 id="tocscardscustomfields">CardsCustomfields</h2>
  12798. <p><a id="schemacardscustomfields"></a></p>
  12799. <pre class="highlight tab tab-json"><code>{}
  12800. </code></pre>
  12801. <h3 id="properties">Properties</h3>
  12802. <p><em>None</em></p>
  12803. <h2 id="tocschecklistitems">ChecklistItems</h2>
  12804. <p><a id="schemachecklistitems"></a></p>
  12805. <pre class="highlight tab tab-json"><code>{
  12806. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12807. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  12808. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  12809. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  12810. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  12811. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12812. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  12813. }
  12814. </code></pre>
  12815. <p><em>An item in a checklist</em></p>
  12816. <h3 id="properties">Properties</h3>
  12817. <table>
  12818. <thead>
  12819. <tr>
  12820. <th>Name</th>
  12821. <th>Type</th>
  12822. <th>Required</th>
  12823. <th>Restrictions</th>
  12824. <th>Description</th>
  12825. </tr>
  12826. </thead>
  12827. <tbody>
  12828. <tr>
  12829. <td>title</td>
  12830. <td>string</td>
  12831. <td>true</td>
  12832. <td>none</td>
  12833. <td>the text of the item</td>
  12834. </tr>
  12835. <tr>
  12836. <td>sort</td>
  12837. <td>number</td>
  12838. <td>true</td>
  12839. <td>none</td>
  12840. <td>the sorting field of the item</td>
  12841. </tr>
  12842. <tr>
  12843. <td>isFinished</td>
  12844. <td>boolean</td>
  12845. <td>true</td>
  12846. <td>none</td>
  12847. <td>Is the item checked?</td>
  12848. </tr>
  12849. <tr>
  12850. <td>checklistId</td>
  12851. <td>string</td>
  12852. <td>true</td>
  12853. <td>none</td>
  12854. <td>the checklist ID the item is attached to</td>
  12855. </tr>
  12856. <tr>
  12857. <td>cardId</td>
  12858. <td>string</td>
  12859. <td>true</td>
  12860. <td>none</td>
  12861. <td>the card ID the item is attached to</td>
  12862. </tr>
  12863. <tr>
  12864. <td>createdAt</td>
  12865. <td>string|null</td>
  12866. <td>false</td>
  12867. <td>none</td>
  12868. <td>none</td>
  12869. </tr>
  12870. <tr>
  12871. <td>modifiedAt</td>
  12872. <td>string</td>
  12873. <td>true</td>
  12874. <td>none</td>
  12875. <td>none</td>
  12876. </tr>
  12877. </tbody>
  12878. </table>
  12879. <h2 id="tocschecklists">Checklists</h2>
  12880. <p><a id="schemachecklists"></a></p>
  12881. <pre class="highlight tab tab-json"><code>{
  12882. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  12883. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12884. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  12885. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12886. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12887. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  12888. <span class="hljs-attr">"hideCheckedChecklistItems"</span>: <span class="hljs-literal">true</span>,
  12889. <span class="hljs-attr">"hideAllChecklistItems"</span>: <span class="hljs-literal">true</span>
  12890. }
  12891. </code></pre>
  12892. <p><em>A Checklist</em></p>
  12893. <h3 id="properties">Properties</h3>
  12894. <table>
  12895. <thead>
  12896. <tr>
  12897. <th>Name</th>
  12898. <th>Type</th>
  12899. <th>Required</th>
  12900. <th>Restrictions</th>
  12901. <th>Description</th>
  12902. </tr>
  12903. </thead>
  12904. <tbody>
  12905. <tr>
  12906. <td>cardId</td>
  12907. <td>string</td>
  12908. <td>true</td>
  12909. <td>none</td>
  12910. <td>The ID of the card the checklist is in</td>
  12911. </tr>
  12912. <tr>
  12913. <td>title</td>
  12914. <td>string</td>
  12915. <td>true</td>
  12916. <td>none</td>
  12917. <td>the title of the checklist</td>
  12918. </tr>
  12919. <tr>
  12920. <td>finishedAt</td>
  12921. <td>string|null</td>
  12922. <td>false</td>
  12923. <td>none</td>
  12924. <td>When was the checklist finished</td>
  12925. </tr>
  12926. <tr>
  12927. <td>createdAt</td>
  12928. <td>string</td>
  12929. <td>true</td>
  12930. <td>none</td>
  12931. <td>Creation date of the checklist</td>
  12932. </tr>
  12933. <tr>
  12934. <td>modifiedAt</td>
  12935. <td>string</td>
  12936. <td>true</td>
  12937. <td>none</td>
  12938. <td>none</td>
  12939. </tr>
  12940. <tr>
  12941. <td>sort</td>
  12942. <td>number</td>
  12943. <td>true</td>
  12944. <td>none</td>
  12945. <td>sorting value of the checklist</td>
  12946. </tr>
  12947. <tr>
  12948. <td>hideCheckedChecklistItems</td>
  12949. <td>boolean|null</td>
  12950. <td>false</td>
  12951. <td>none</td>
  12952. <td>hide the checked checklist-items?</td>
  12953. </tr>
  12954. <tr>
  12955. <td>hideAllChecklistItems</td>
  12956. <td>boolean|null</td>
  12957. <td>false</td>
  12958. <td>none</td>
  12959. <td>hide all checklist items ?</td>
  12960. </tr>
  12961. </tbody>
  12962. </table>
  12963. <h2 id="tocscustomfields">CustomFields</h2>
  12964. <p><a id="schemacustomfields"></a></p>
  12965. <pre class="highlight tab tab-json"><code>{
  12966. <span class="hljs-attr">"boardIds"</span>: [
  12967. <span class="hljs-string">"string"</span>
  12968. ],
  12969. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  12970. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"text"</span>,
  12971. <span class="hljs-attr">"settings"</span>: {
  12972. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  12973. <span class="hljs-attr">"dropdownItems"</span>: [
  12974. {}
  12975. ],
  12976. <span class="hljs-attr">"stringtemplateFormat"</span>: <span class="hljs-string">"string"</span>,
  12977. <span class="hljs-attr">"stringtemplateSeparator"</span>: <span class="hljs-string">"string"</span>
  12978. },
  12979. <span class="hljs-attr">"showOnCard"</span>: <span class="hljs-literal">true</span>,
  12980. <span class="hljs-attr">"automaticallyOnCard"</span>: <span class="hljs-literal">true</span>,
  12981. <span class="hljs-attr">"alwaysOnCard"</span>: <span class="hljs-literal">true</span>,
  12982. <span class="hljs-attr">"showLabelOnMiniCard"</span>: <span class="hljs-literal">true</span>,
  12983. <span class="hljs-attr">"showSumAtTopOfList"</span>: <span class="hljs-literal">true</span>,
  12984. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12985. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  12986. }
  12987. </code></pre>
  12988. <p><em>A custom field on a card in the board</em></p>
  12989. <h3 id="properties">Properties</h3>
  12990. <table>
  12991. <thead>
  12992. <tr>
  12993. <th>Name</th>
  12994. <th>Type</th>
  12995. <th>Required</th>
  12996. <th>Restrictions</th>
  12997. <th>Description</th>
  12998. </tr>
  12999. </thead>
  13000. <tbody>
  13001. <tr>
  13002. <td>boardIds</td>
  13003. <td>[string]</td>
  13004. <td>true</td>
  13005. <td>none</td>
  13006. <td>the ID of the board</td>
  13007. </tr>
  13008. <tr>
  13009. <td>name</td>
  13010. <td>string</td>
  13011. <td>true</td>
  13012. <td>none</td>
  13013. <td>name of the custom field</td>
  13014. </tr>
  13015. <tr>
  13016. <td>type</td>
  13017. <td>string</td>
  13018. <td>true</td>
  13019. <td>none</td>
  13020. <td>type of the custom field</td>
  13021. </tr>
  13022. <tr>
  13023. <td>settings</td>
  13024. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  13025. <td>true</td>
  13026. <td>none</td>
  13027. <td>settings of the custom field</td>
  13028. </tr>
  13029. <tr>
  13030. <td>showOnCard</td>
  13031. <td>boolean</td>
  13032. <td>true</td>
  13033. <td>none</td>
  13034. <td>should we show on the cards this custom field</td>
  13035. </tr>
  13036. <tr>
  13037. <td>automaticallyOnCard</td>
  13038. <td>boolean</td>
  13039. <td>true</td>
  13040. <td>none</td>
  13041. <td>should the custom fields automatically be added on cards?</td>
  13042. </tr>
  13043. <tr>
  13044. <td>alwaysOnCard</td>
  13045. <td>boolean</td>
  13046. <td>true</td>
  13047. <td>none</td>
  13048. <td>should the custom field be automatically added to all cards?</td>
  13049. </tr>
  13050. <tr>
  13051. <td>showLabelOnMiniCard</td>
  13052. <td>boolean</td>
  13053. <td>true</td>
  13054. <td>none</td>
  13055. <td>should the label of the custom field be shown on minicards?</td>
  13056. </tr>
  13057. <tr>
  13058. <td>showSumAtTopOfList</td>
  13059. <td>boolean</td>
  13060. <td>true</td>
  13061. <td>none</td>
  13062. <td>should the sum of the custom fields be shown at top of list?</td>
  13063. </tr>
  13064. <tr>
  13065. <td>createdAt</td>
  13066. <td>string|null</td>
  13067. <td>false</td>
  13068. <td>none</td>
  13069. <td>none</td>
  13070. </tr>
  13071. <tr>
  13072. <td>modifiedAt</td>
  13073. <td>string</td>
  13074. <td>true</td>
  13075. <td>none</td>
  13076. <td>none</td>
  13077. </tr>
  13078. </tbody>
  13079. </table>
  13080. <h4 id="enumerated-values">Enumerated Values</h4>
  13081. <table>
  13082. <thead>
  13083. <tr>
  13084. <th>Property</th>
  13085. <th>Value</th>
  13086. </tr>
  13087. </thead>
  13088. <tbody>
  13089. <tr>
  13090. <td>type</td>
  13091. <td>text</td>
  13092. </tr>
  13093. <tr>
  13094. <td>type</td>
  13095. <td>number</td>
  13096. </tr>
  13097. <tr>
  13098. <td>type</td>
  13099. <td>date</td>
  13100. </tr>
  13101. <tr>
  13102. <td>type</td>
  13103. <td>dropdown</td>
  13104. </tr>
  13105. <tr>
  13106. <td>type</td>
  13107. <td>checkbox</td>
  13108. </tr>
  13109. <tr>
  13110. <td>type</td>
  13111. <td>currency</td>
  13112. </tr>
  13113. <tr>
  13114. <td>type</td>
  13115. <td>stringtemplate</td>
  13116. </tr>
  13117. </tbody>
  13118. </table>
  13119. <h2 id="tocscustomfieldssettings">CustomFieldsSettings</h2>
  13120. <p><a id="schemacustomfieldssettings"></a></p>
  13121. <pre class="highlight tab tab-json"><code>{
  13122. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  13123. <span class="hljs-attr">"dropdownItems"</span>: [
  13124. {}
  13125. ],
  13126. <span class="hljs-attr">"stringtemplateFormat"</span>: <span class="hljs-string">"string"</span>,
  13127. <span class="hljs-attr">"stringtemplateSeparator"</span>: <span class="hljs-string">"string"</span>
  13128. }
  13129. </code></pre>
  13130. <h3 id="properties">Properties</h3>
  13131. <table>
  13132. <thead>
  13133. <tr>
  13134. <th>Name</th>
  13135. <th>Type</th>
  13136. <th>Required</th>
  13137. <th>Restrictions</th>
  13138. <th>Description</th>
  13139. </tr>
  13140. </thead>
  13141. <tbody>
  13142. <tr>
  13143. <td>currencyCode</td>
  13144. <td>string</td>
  13145. <td>false</td>
  13146. <td>none</td>
  13147. <td>none</td>
  13148. </tr>
  13149. <tr>
  13150. <td>dropdownItems</td>
  13151. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  13152. <td>false</td>
  13153. <td>none</td>
  13154. <td>list of drop down items objects</td>
  13155. </tr>
  13156. <tr>
  13157. <td>stringtemplateFormat</td>
  13158. <td>string</td>
  13159. <td>false</td>
  13160. <td>none</td>
  13161. <td>none</td>
  13162. </tr>
  13163. <tr>
  13164. <td>stringtemplateSeparator</td>
  13165. <td>string</td>
  13166. <td>false</td>
  13167. <td>none</td>
  13168. <td>none</td>
  13169. </tr>
  13170. </tbody>
  13171. </table>
  13172. <h2 id="tocscustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  13173. <p><a id="schemacustomfieldssettingsdropdownitems"></a></p>
  13174. <pre class="highlight tab tab-json"><code>{}
  13175. </code></pre>
  13176. <h3 id="properties">Properties</h3>
  13177. <p><em>None</em></p>
  13178. <h2 id="tocsintegrations">Integrations</h2>
  13179. <p><a id="schemaintegrations"></a></p>
  13180. <pre class="highlight tab tab-json"><code>{
  13181. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  13182. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13183. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13184. <span class="hljs-attr">"activities"</span>: [
  13185. <span class="hljs-string">"string"</span>
  13186. ],
  13187. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  13188. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  13189. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13190. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13191. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13192. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  13193. }
  13194. </code></pre>
  13195. <p><em>Integration with third-party applications</em></p>
  13196. <h3 id="properties">Properties</h3>
  13197. <table>
  13198. <thead>
  13199. <tr>
  13200. <th>Name</th>
  13201. <th>Type</th>
  13202. <th>Required</th>
  13203. <th>Restrictions</th>
  13204. <th>Description</th>
  13205. </tr>
  13206. </thead>
  13207. <tbody>
  13208. <tr>
  13209. <td>enabled</td>
  13210. <td>boolean</td>
  13211. <td>true</td>
  13212. <td>none</td>
  13213. <td>is the integration enabled?</td>
  13214. </tr>
  13215. <tr>
  13216. <td>title</td>
  13217. <td>string|null</td>
  13218. <td>false</td>
  13219. <td>none</td>
  13220. <td>name of the integration</td>
  13221. </tr>
  13222. <tr>
  13223. <td>type</td>
  13224. <td>string</td>
  13225. <td>true</td>
  13226. <td>none</td>
  13227. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  13228. </tr>
  13229. <tr>
  13230. <td>activities</td>
  13231. <td>[string]</td>
  13232. <td>true</td>
  13233. <td>none</td>
  13234. <td>activities the integration gets triggered (list)</td>
  13235. </tr>
  13236. <tr>
  13237. <td>url</td>
  13238. <td>string</td>
  13239. <td>true</td>
  13240. <td>none</td>
  13241. <td>none</td>
  13242. </tr>
  13243. <tr>
  13244. <td>token</td>
  13245. <td>string|null</td>
  13246. <td>false</td>
  13247. <td>none</td>
  13248. <td>token of the integration</td>
  13249. </tr>
  13250. <tr>
  13251. <td>boardId</td>
  13252. <td>string</td>
  13253. <td>true</td>
  13254. <td>none</td>
  13255. <td>Board ID of the integration</td>
  13256. </tr>
  13257. <tr>
  13258. <td>createdAt</td>
  13259. <td>string</td>
  13260. <td>true</td>
  13261. <td>none</td>
  13262. <td>Creation date of the integration</td>
  13263. </tr>
  13264. <tr>
  13265. <td>modifiedAt</td>
  13266. <td>string</td>
  13267. <td>true</td>
  13268. <td>none</td>
  13269. <td>none</td>
  13270. </tr>
  13271. <tr>
  13272. <td>userId</td>
  13273. <td>string</td>
  13274. <td>true</td>
  13275. <td>none</td>
  13276. <td>user ID who created the interation</td>
  13277. </tr>
  13278. </tbody>
  13279. </table>
  13280. <h2 id="tocslists">Lists</h2>
  13281. <p><a id="schemalists"></a></p>
  13282. <pre class="highlight tab tab-json"><code>{
  13283. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13284. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  13285. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  13286. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  13287. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13288. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  13289. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13290. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  13291. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  13292. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13293. <span class="hljs-attr">"wipLimit"</span>: {
  13294. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  13295. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  13296. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  13297. },
  13298. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  13299. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13300. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  13301. }
  13302. </code></pre>
  13303. <p><em>A list (column) in the Wekan board.</em></p>
  13304. <h3 id="properties">Properties</h3>
  13305. <table>
  13306. <thead>
  13307. <tr>
  13308. <th>Name</th>
  13309. <th>Type</th>
  13310. <th>Required</th>
  13311. <th>Restrictions</th>
  13312. <th>Description</th>
  13313. </tr>
  13314. </thead>
  13315. <tbody>
  13316. <tr>
  13317. <td>title</td>
  13318. <td>string</td>
  13319. <td>true</td>
  13320. <td>none</td>
  13321. <td>the title of the list</td>
  13322. </tr>
  13323. <tr>
  13324. <td>starred</td>
  13325. <td>boolean|null</td>
  13326. <td>false</td>
  13327. <td>none</td>
  13328. <td>if a list is stared then we put it on the top</td>
  13329. </tr>
  13330. <tr>
  13331. <td>archived</td>
  13332. <td>boolean</td>
  13333. <td>true</td>
  13334. <td>none</td>
  13335. <td>is the list archived</td>
  13336. </tr>
  13337. <tr>
  13338. <td>archivedAt</td>
  13339. <td>string|null</td>
  13340. <td>false</td>
  13341. <td>none</td>
  13342. <td>latest archiving date</td>
  13343. </tr>
  13344. <tr>
  13345. <td>boardId</td>
  13346. <td>string</td>
  13347. <td>true</td>
  13348. <td>none</td>
  13349. <td>the board associated to this list</td>
  13350. </tr>
  13351. <tr>
  13352. <td>swimlaneId</td>
  13353. <td>string</td>
  13354. <td>true</td>
  13355. <td>none</td>
  13356. <td>the swimlane associated to this list. Used for templates</td>
  13357. </tr>
  13358. <tr>
  13359. <td>createdAt</td>
  13360. <td>string</td>
  13361. <td>true</td>
  13362. <td>none</td>
  13363. <td>creation date</td>
  13364. </tr>
  13365. <tr>
  13366. <td>sort</td>
  13367. <td>number|null</td>
  13368. <td>false</td>
  13369. <td>none</td>
  13370. <td>is the list sorted</td>
  13371. </tr>
  13372. <tr>
  13373. <td>updatedAt</td>
  13374. <td>string|null</td>
  13375. <td>false</td>
  13376. <td>none</td>
  13377. <td>last update of the list</td>
  13378. </tr>
  13379. <tr>
  13380. <td>modifiedAt</td>
  13381. <td>string</td>
  13382. <td>true</td>
  13383. <td>none</td>
  13384. <td>none</td>
  13385. </tr>
  13386. <tr>
  13387. <td>wipLimit</td>
  13388. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  13389. <td>false</td>
  13390. <td>none</td>
  13391. <td>WIP object, see below</td>
  13392. </tr>
  13393. <tr>
  13394. <td>color</td>
  13395. <td>string|null</td>
  13396. <td>false</td>
  13397. <td>none</td>
  13398. <td>the color of the list</td>
  13399. </tr>
  13400. <tr>
  13401. <td>type</td>
  13402. <td>string</td>
  13403. <td>true</td>
  13404. <td>none</td>
  13405. <td>The type of list</td>
  13406. </tr>
  13407. <tr>
  13408. <td>collapsed</td>
  13409. <td>boolean</td>
  13410. <td>true</td>
  13411. <td>none</td>
  13412. <td>is the list collapsed</td>
  13413. </tr>
  13414. </tbody>
  13415. </table>
  13416. <h4 id="enumerated-values">Enumerated Values</h4>
  13417. <table>
  13418. <thead>
  13419. <tr>
  13420. <th>Property</th>
  13421. <th>Value</th>
  13422. </tr>
  13423. </thead>
  13424. <tbody>
  13425. <tr>
  13426. <td>color</td>
  13427. <td>white</td>
  13428. </tr>
  13429. <tr>
  13430. <td>color</td>
  13431. <td>green</td>
  13432. </tr>
  13433. <tr>
  13434. <td>color</td>
  13435. <td>yellow</td>
  13436. </tr>
  13437. <tr>
  13438. <td>color</td>
  13439. <td>orange</td>
  13440. </tr>
  13441. <tr>
  13442. <td>color</td>
  13443. <td>red</td>
  13444. </tr>
  13445. <tr>
  13446. <td>color</td>
  13447. <td>purple</td>
  13448. </tr>
  13449. <tr>
  13450. <td>color</td>
  13451. <td>blue</td>
  13452. </tr>
  13453. <tr>
  13454. <td>color</td>
  13455. <td>sky</td>
  13456. </tr>
  13457. <tr>
  13458. <td>color</td>
  13459. <td>lime</td>
  13460. </tr>
  13461. <tr>
  13462. <td>color</td>
  13463. <td>pink</td>
  13464. </tr>
  13465. <tr>
  13466. <td>color</td>
  13467. <td>black</td>
  13468. </tr>
  13469. <tr>
  13470. <td>color</td>
  13471. <td>silver</td>
  13472. </tr>
  13473. <tr>
  13474. <td>color</td>
  13475. <td>peachpuff</td>
  13476. </tr>
  13477. <tr>
  13478. <td>color</td>
  13479. <td>crimson</td>
  13480. </tr>
  13481. <tr>
  13482. <td>color</td>
  13483. <td>plum</td>
  13484. </tr>
  13485. <tr>
  13486. <td>color</td>
  13487. <td>darkgreen</td>
  13488. </tr>
  13489. <tr>
  13490. <td>color</td>
  13491. <td>slateblue</td>
  13492. </tr>
  13493. <tr>
  13494. <td>color</td>
  13495. <td>magenta</td>
  13496. </tr>
  13497. <tr>
  13498. <td>color</td>
  13499. <td>gold</td>
  13500. </tr>
  13501. <tr>
  13502. <td>color</td>
  13503. <td>navy</td>
  13504. </tr>
  13505. <tr>
  13506. <td>color</td>
  13507. <td>gray</td>
  13508. </tr>
  13509. <tr>
  13510. <td>color</td>
  13511. <td>saddlebrown</td>
  13512. </tr>
  13513. <tr>
  13514. <td>color</td>
  13515. <td>paleturquoise</td>
  13516. </tr>
  13517. <tr>
  13518. <td>color</td>
  13519. <td>mistyrose</td>
  13520. </tr>
  13521. <tr>
  13522. <td>color</td>
  13523. <td>indigo</td>
  13524. </tr>
  13525. </tbody>
  13526. </table>
  13527. <h2 id="tocslistswiplimit">ListsWiplimit</h2>
  13528. <p><a id="schemalistswiplimit"></a></p>
  13529. <pre class="highlight tab tab-json"><code>{
  13530. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  13531. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  13532. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  13533. }
  13534. </code></pre>
  13535. <h3 id="properties">Properties</h3>
  13536. <table>
  13537. <thead>
  13538. <tr>
  13539. <th>Name</th>
  13540. <th>Type</th>
  13541. <th>Required</th>
  13542. <th>Restrictions</th>
  13543. <th>Description</th>
  13544. </tr>
  13545. </thead>
  13546. <tbody>
  13547. <tr>
  13548. <td>value</td>
  13549. <td>number</td>
  13550. <td>true</td>
  13551. <td>none</td>
  13552. <td>value of the WIP</td>
  13553. </tr>
  13554. <tr>
  13555. <td>enabled</td>
  13556. <td>boolean</td>
  13557. <td>true</td>
  13558. <td>none</td>
  13559. <td>is the WIP enabled</td>
  13560. </tr>
  13561. <tr>
  13562. <td>soft</td>
  13563. <td>boolean</td>
  13564. <td>true</td>
  13565. <td>none</td>
  13566. <td>is the WIP a soft or hard requirement</td>
  13567. </tr>
  13568. </tbody>
  13569. </table>
  13570. <h2 id="tocsswimlanes">Swimlanes</h2>
  13571. <p><a id="schemaswimlanes"></a></p>
  13572. <pre class="highlight tab tab-json"><code>{
  13573. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13574. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  13575. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  13576. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13577. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13578. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  13579. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  13580. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  13581. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13582. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13583. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  13584. }
  13585. </code></pre>
  13586. <p><em>A swimlane is an line in the kaban board.</em></p>
  13587. <h3 id="properties">Properties</h3>
  13588. <table>
  13589. <thead>
  13590. <tr>
  13591. <th>Name</th>
  13592. <th>Type</th>
  13593. <th>Required</th>
  13594. <th>Restrictions</th>
  13595. <th>Description</th>
  13596. </tr>
  13597. </thead>
  13598. <tbody>
  13599. <tr>
  13600. <td>title</td>
  13601. <td>string</td>
  13602. <td>true</td>
  13603. <td>none</td>
  13604. <td>the title of the swimlane</td>
  13605. </tr>
  13606. <tr>
  13607. <td>archived</td>
  13608. <td>boolean</td>
  13609. <td>true</td>
  13610. <td>none</td>
  13611. <td>is the swimlane archived?</td>
  13612. </tr>
  13613. <tr>
  13614. <td>archivedAt</td>
  13615. <td>string|null</td>
  13616. <td>false</td>
  13617. <td>none</td>
  13618. <td>latest archiving date of the swimlane</td>
  13619. </tr>
  13620. <tr>
  13621. <td>boardId</td>
  13622. <td>string</td>
  13623. <td>true</td>
  13624. <td>none</td>
  13625. <td>the ID of the board the swimlane is attached to</td>
  13626. </tr>
  13627. <tr>
  13628. <td>createdAt</td>
  13629. <td>string</td>
  13630. <td>true</td>
  13631. <td>none</td>
  13632. <td>creation date of the swimlane</td>
  13633. </tr>
  13634. <tr>
  13635. <td>sort</td>
  13636. <td>number|null</td>
  13637. <td>false</td>
  13638. <td>none</td>
  13639. <td>the sort value of the swimlane</td>
  13640. </tr>
  13641. <tr>
  13642. <td>color</td>
  13643. <td>string|null</td>
  13644. <td>false</td>
  13645. <td>none</td>
  13646. <td>the color of the swimlane</td>
  13647. </tr>
  13648. <tr>
  13649. <td>updatedAt</td>
  13650. <td>string|null</td>
  13651. <td>false</td>
  13652. <td>none</td>
  13653. <td>when was the swimlane last edited</td>
  13654. </tr>
  13655. <tr>
  13656. <td>modifiedAt</td>
  13657. <td>string</td>
  13658. <td>true</td>
  13659. <td>none</td>
  13660. <td>none</td>
  13661. </tr>
  13662. <tr>
  13663. <td>type</td>
  13664. <td>string</td>
  13665. <td>true</td>
  13666. <td>none</td>
  13667. <td>The type of swimlane</td>
  13668. </tr>
  13669. <tr>
  13670. <td>collapsed</td>
  13671. <td>boolean</td>
  13672. <td>true</td>
  13673. <td>none</td>
  13674. <td>is the swimlane collapsed</td>
  13675. </tr>
  13676. </tbody>
  13677. </table>
  13678. <h4 id="enumerated-values">Enumerated Values</h4>
  13679. <table>
  13680. <thead>
  13681. <tr>
  13682. <th>Property</th>
  13683. <th>Value</th>
  13684. </tr>
  13685. </thead>
  13686. <tbody>
  13687. <tr>
  13688. <td>color</td>
  13689. <td>white</td>
  13690. </tr>
  13691. <tr>
  13692. <td>color</td>
  13693. <td>green</td>
  13694. </tr>
  13695. <tr>
  13696. <td>color</td>
  13697. <td>yellow</td>
  13698. </tr>
  13699. <tr>
  13700. <td>color</td>
  13701. <td>orange</td>
  13702. </tr>
  13703. <tr>
  13704. <td>color</td>
  13705. <td>red</td>
  13706. </tr>
  13707. <tr>
  13708. <td>color</td>
  13709. <td>purple</td>
  13710. </tr>
  13711. <tr>
  13712. <td>color</td>
  13713. <td>blue</td>
  13714. </tr>
  13715. <tr>
  13716. <td>color</td>
  13717. <td>sky</td>
  13718. </tr>
  13719. <tr>
  13720. <td>color</td>
  13721. <td>lime</td>
  13722. </tr>
  13723. <tr>
  13724. <td>color</td>
  13725. <td>pink</td>
  13726. </tr>
  13727. <tr>
  13728. <td>color</td>
  13729. <td>black</td>
  13730. </tr>
  13731. <tr>
  13732. <td>color</td>
  13733. <td>silver</td>
  13734. </tr>
  13735. <tr>
  13736. <td>color</td>
  13737. <td>peachpuff</td>
  13738. </tr>
  13739. <tr>
  13740. <td>color</td>
  13741. <td>crimson</td>
  13742. </tr>
  13743. <tr>
  13744. <td>color</td>
  13745. <td>plum</td>
  13746. </tr>
  13747. <tr>
  13748. <td>color</td>
  13749. <td>darkgreen</td>
  13750. </tr>
  13751. <tr>
  13752. <td>color</td>
  13753. <td>slateblue</td>
  13754. </tr>
  13755. <tr>
  13756. <td>color</td>
  13757. <td>magenta</td>
  13758. </tr>
  13759. <tr>
  13760. <td>color</td>
  13761. <td>gold</td>
  13762. </tr>
  13763. <tr>
  13764. <td>color</td>
  13765. <td>navy</td>
  13766. </tr>
  13767. <tr>
  13768. <td>color</td>
  13769. <td>gray</td>
  13770. </tr>
  13771. <tr>
  13772. <td>color</td>
  13773. <td>saddlebrown</td>
  13774. </tr>
  13775. <tr>
  13776. <td>color</td>
  13777. <td>paleturquoise</td>
  13778. </tr>
  13779. <tr>
  13780. <td>color</td>
  13781. <td>mistyrose</td>
  13782. </tr>
  13783. <tr>
  13784. <td>color</td>
  13785. <td>indigo</td>
  13786. </tr>
  13787. </tbody>
  13788. </table>
  13789. </div>
  13790. <div class="dark-box">
  13791. <div class="lang-selector">
  13792. <a href="#" data-language-name="shell">Shell</a>
  13793. <a href="#" data-language-name="http">HTTP</a>
  13794. <a href="#" data-language-name="javascript">JavaScript</a>
  13795. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  13796. <a href="#" data-language-name="ruby">Ruby</a>
  13797. <a href="#" data-language-name="python">Python</a>
  13798. <a href="#" data-language-name="java">Java</a>
  13799. <a href="#" data-language-name="go">Go</a>
  13800. </div>
  13801. </div>
  13802. </div>
  13803. </body>
  13804. </html>