wekan.html 879 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570
  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 v7.45</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. <!-- Renderer: Shins v2.6.0 -->
  1319. <!-- Generator: Widdershins v4.0.1 -->
  1320. <!-- backwards compatibility -->
  1321. <!-- backwards compatibility -->
  1322. <!-- backwards compatibility -->
  1323. <!-- backwards compatibility -->
  1324. <!-- backwards compatibility -->
  1325. <!-- backwards compatibility -->
  1326. <!-- backwards compatibility -->
  1327. <!-- backwards compatibility -->
  1328. <!-- backwards compatibility -->
  1329. <!-- backwards compatibility -->
  1330. <!-- backwards compatibility -->
  1331. <!-- backwards compatibility -->
  1332. <!-- backwards compatibility -->
  1333. <!-- backwards compatibility -->
  1334. <!-- backwards compatibility -->
  1335. <!-- backwards compatibility -->
  1336. <!-- backwards compatibility -->
  1337. <!-- backwards compatibility -->
  1338. <!-- backwards compatibility -->
  1339. </head>
  1340. <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;,&quot;php&quot;]">
  1341. <a href="#" id="nav-button">
  1342. <span>
  1343. NAV
  1344. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1345. </span>
  1346. </a>
  1347. <div class="toc-wrapper">
  1348. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAYAAABxutG8AAAG6klEQVR4Ad3aA4xkSxcA4LvefbZt27Zt27Zt27Zt27bttWe2R9+vTionlZs7760m/5eMutDVXV11T507RUeD7rgAL+AQzIlx/mYfp6OGs4oOAp3QEz3Er65FR4NO2EL0GhZtZ/t50IhWXFJ0EFgDd+LW9OUWHFd0RJgSr4lewGTVbZ2BFjRh16KDwHNKjEynE+MkfIz7MP0o3pJuEQ3FChXtxsdLgEYs+385CVgQ98rVcAy6jaIt6Vq5DSraLYM/AMMxbdFB4NmRmgRMhtXyjgxATXQ7xs37sA7WxQRFBXTDzXLrVLTbXTK0qNbxJwGTYVe8IPoFF2F3fC96BZPnffkG8AQ2ROeKre4JUV8sVd5GL1wn+an4BzAJFsE62Aa7YM1Ubgbsgz2xF3ajOsLBS397ErAj3kKrpBVnYf56nfXQKLqAOCgsjKGSRhyDTiXPPQs+Fb1F+faCKfCJ5NmindAT2+FuvIufMBBNgA8wSb3u/nIzFBVwIHrjN/wqfT2ZV2Z6vI5W0ZdYHF3Svu1EUSO2yvt0DlpEr5etBiyFmuiKihc5q+jqoh1wFP5ETbkfMG+9/pFys9XL5sI9eLH+9TKextToivHlX73SYOiMA+SacTe6xMGbCI+LvsHc+ZbmHbmLyVcCOmMv0WBsWPFmbik6qryuzlgLfbXP95irfBLMXi/bGTW5tYsqmAp3yfXD/iVtZkQ/0XN5PRtgmNxG5eFpNrmfVO27uEy0ZUm9qXGt9mlDA55XDzawG2oYjCFoxLRpC9cgt1bVBIyH5+V+oXwGsZqoBafFOnrgMrkRmKv8oJbZr6iAj0VL53XMibeU+wtP4WIcgm2xERaKF27rSdHemug0spNwhtwgLF/R7lxRA/EwhWnRW+49TF3S76Gi34t2kJsulpsDf8oNwaVYETNgYnQv/gHshMaq0DqDPnJbFBXwiah/EYSlO0h0c1lSDn9Vb1sR5ifKgw0DRV9h62IUwjrohza0og2wUFXDBtEtRQVMJHdffur1AT7EANGRJf1uIXqpaAfsIWpIZSbFx4A2fDSK3/wA3dAT3du9onCHaNLqNraV2yq/ZmjAtaJh2KSk3w8kfbEoZsKyWBiTlLS7RvRlusi7GjAYJ2CidqZmNsEGWBVz5uGwlbEptsYa+YfUWtgOUxVVMDsGp8FXw30yMVWBD/E6zhN9jwVKVsEIyXd4AZ9hdzyBT3EFxottvS96qv74+oBvqE7mYUu8gB9wDn5AX3yHK9ELe+Nb9MYwtOCG1Icd8C4Ghg9nFayEgXi3nfWHi96J5VYA7CgPN9/G+HnKwXOiNsB+GBf3AdrwNWnS0Si6Gl3wM77GHBWvZwI8ghGAlzAefhcthXvktq33c5g4luFhlVTBdNihup755I6JdTyF3zEhfhQ9nPdpczTKDUQnTIpXJc04OJ1xtIgOx8EYWrUCMCmelDThYEyL/qIV8KrcLFgdraIvMFcxqmFfuYVTueVQw26YXtSCU/JknVfk4HJ0wowYKmnD7mnVaRXtiYHYvzpl7lzRX5gSO6MxTo4Z8LXcePgKI0RPolcxquEuUT9MmNIBrsEf6IGlRSOwWezPIcrUUxXYVPSC+ovDrvkkeAYNVUEGFgYgJv5wu+g1dMcg0Yc4Fp/jCUkbLowXe4sVowI+Fj2iHvNjAdSwS/3v7UXDMU88QGlTpn4Bx2eSq0gRDh6Va0Ir7qX8JhMekNseU+FT0Tn1NjXRYxiK9fCBZBi2Kerw3ijZmjBdvsc7AV3RDVfgS/XTME4UDU596YJfAM1oEfXGdDgD8AmWi+OxNP5UDi4oi9flYDysj49QAwzBxhgPTaIG3IS50Srpk7Krlse7xaiAxfBnyZYxH9qwY6rvYtEP6UDjgTRYp+JL0a84AVeU5IHGxVVoUe3IkADMxpadL86uf/UDfIMZMBua5GbBRqKvY6BixWJUwLxxEgzFEuiG9/EEepbngbxVf/wqwGBshe54C/l2VAIn4hR8I6phqNyZmDzF8p6Suwzj437sjAGAF1Mor1n0Qb1sF9Gt6V9d3FiMSnhSMgjr4UH8iWnypJm/JL/gfkA/UsIPW8tdnz+/cXAXTsX0+EpuPfwp9yFewnOYBu+IDsY2uAiLYhBacVk6pGojT8FgddHR6IQrMEsxKmECfJRvHaYrqb8mBojexqwlCbBG0cWYFfPgZPyFrdMtTd/LzYAp8bzc1+kumanxnWQY3k6Bhh8BL+MUXCi3ULol6yvJK7g0vxk16s8L9+ModK6+aeQ03Ied0akiAXYMPsEwSR9cnJ+2HYs38DN6o2+MwGyHj9APt2GyfGU5Cg/gVHSNK9lX+BIroSt2xWW4C5divPiB8xUa8H3MAJf7Fykvx9WyNCXUAAAAAElFTkSuQmCC" class="logo" alt="Logo">
  1349. <div class="lang-selector">
  1350. <a href="#" data-language-name="shell">Shell</a>
  1351. <a href="#" data-language-name="http">HTTP</a>
  1352. <a href="#" data-language-name="javascript">JavaScript</a>
  1353. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1354. <a href="#" data-language-name="ruby">Ruby</a>
  1355. <a href="#" data-language-name="python">Python</a>
  1356. <a href="#" data-language-name="java">Java</a>
  1357. <a href="#" data-language-name="go">Go</a>
  1358. <a href="#" data-language-name="php">PHP</a>
  1359. </div>
  1360. <div class="search">
  1361. <input type="text" class="search" id="input-search" placeholder="Search">
  1362. </div>
  1363. <ul class="search-results"></ul>
  1364. <div id="toc" class="toc-list-h1">
  1365. <ul class="toc-list-h1">
  1366. <li>
  1367. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v7.45">Wekan REST API v7.45</a>
  1368. </li>
  1369. <li>
  1370. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1371. </li>
  1372. <li>
  1373. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1374. </li>
  1375. <li>
  1376. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1377. <ul class="toc-list-h2">
  1378. <li>
  1379. <a href="#login" class="toc-h2 toc-link" data-title="">login</a>
  1380. </li>
  1381. <li>
  1382. <a href="#register" class="toc-h2 toc-link" data-title="">register</a>
  1383. </li>
  1384. </ul>
  1385. </li>
  1386. <li>
  1387. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1388. <ul class="toc-list-h2">
  1389. <li>
  1390. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="">get_public_boards</a>
  1391. </li>
  1392. <li>
  1393. <a href="#new_board" class="toc-h2 toc-link" data-title="">new_board</a>
  1394. </li>
  1395. <li>
  1396. <a href="#get_board" class="toc-h2 toc-link" data-title="">get_board</a>
  1397. </li>
  1398. <li>
  1399. <a href="#delete_board" class="toc-h2 toc-link" data-title="">delete_board</a>
  1400. </li>
  1401. <li>
  1402. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="">get_board_attachments</a>
  1403. </li>
  1404. <li>
  1405. <a href="#exportjson" class="toc-h2 toc-link" data-title="">exportJson</a>
  1406. </li>
  1407. <li>
  1408. <a href="#copy_board" class="toc-h2 toc-link" data-title="">copy_board</a>
  1409. </li>
  1410. <li>
  1411. <a href="#add_board_label" class="toc-h2 toc-link" data-title="">add_board_label</a>
  1412. </li>
  1413. <li>
  1414. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="">set_board_member_permission</a>
  1415. </li>
  1416. <li>
  1417. <a href="#update_board_title" class="toc-h2 toc-link" data-title="">update_board_title</a>
  1418. </li>
  1419. <li>
  1420. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="">get_boards_count</a>
  1421. </li>
  1422. <li>
  1423. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="">get_boards_from_user</a>
  1424. </li>
  1425. </ul>
  1426. </li>
  1427. <li>
  1428. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1429. <ul class="toc-list-h2">
  1430. <li>
  1431. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="">get_all_checklists</a>
  1432. </li>
  1433. <li>
  1434. <a href="#new_checklist" class="toc-h2 toc-link" data-title="">new_checklist</a>
  1435. </li>
  1436. <li>
  1437. <a href="#get_checklist" class="toc-h2 toc-link" data-title="">get_checklist</a>
  1438. </li>
  1439. <li>
  1440. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="">delete_checklist</a>
  1441. </li>
  1442. </ul>
  1443. </li>
  1444. <li>
  1445. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1446. <ul class="toc-list-h2">
  1447. <li>
  1448. <a href="#new_checklist_item" class="toc-h2 toc-link" data-title="">new_checklist_item</a>
  1449. </li>
  1450. <li>
  1451. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1452. </li>
  1453. <li>
  1454. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1455. </li>
  1456. <li>
  1457. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1458. </li>
  1459. </ul>
  1460. </li>
  1461. <li>
  1462. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1463. <ul class="toc-list-h2">
  1464. <li>
  1465. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1466. </li>
  1467. <li>
  1468. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1469. </li>
  1470. <li>
  1471. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1472. </li>
  1473. <li>
  1474. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1475. </li>
  1476. </ul>
  1477. </li>
  1478. <li>
  1479. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1480. <ul class="toc-list-h2">
  1481. <li>
  1482. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1483. </li>
  1484. <li>
  1485. <a href="#get_board_cards_count" class="toc-h2 toc-link" data-title="">get_board_cards_count</a>
  1486. </li>
  1487. <li>
  1488. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1489. </li>
  1490. <li>
  1491. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1492. </li>
  1493. <li>
  1494. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1495. </li>
  1496. <li>
  1497. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1498. </li>
  1499. <li>
  1500. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1501. </li>
  1502. <li>
  1503. <a href="#edit_card_custom_field" class="toc-h2 toc-link" data-title="">edit_card_custom_field</a>
  1504. </li>
  1505. <li>
  1506. <a href="#get_list_cards_count" class="toc-h2 toc-link" data-title="">get_list_cards_count</a>
  1507. </li>
  1508. <li>
  1509. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1510. </li>
  1511. </ul>
  1512. </li>
  1513. <li>
  1514. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1515. <ul class="toc-list-h2">
  1516. <li>
  1517. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1518. </li>
  1519. <li>
  1520. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1521. </li>
  1522. <li>
  1523. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1524. </li>
  1525. <li>
  1526. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1527. </li>
  1528. <li>
  1529. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1530. </li>
  1531. <li>
  1532. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1533. </li>
  1534. <li>
  1535. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1536. </li>
  1537. <li>
  1538. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1539. </li>
  1540. </ul>
  1541. </li>
  1542. <li>
  1543. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1544. <ul class="toc-list-h2">
  1545. <li>
  1546. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1547. </li>
  1548. <li>
  1549. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1550. </li>
  1551. <li>
  1552. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1553. </li>
  1554. <li>
  1555. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1556. </li>
  1557. <li>
  1558. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1559. </li>
  1560. <li>
  1561. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1562. </li>
  1563. <li>
  1564. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1565. </li>
  1566. </ul>
  1567. </li>
  1568. <li>
  1569. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1570. <ul class="toc-list-h2">
  1571. <li>
  1572. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1573. </li>
  1574. <li>
  1575. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1576. </li>
  1577. <li>
  1578. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1579. </li>
  1580. <li>
  1581. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1582. </li>
  1583. </ul>
  1584. </li>
  1585. <li>
  1586. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1587. <ul class="toc-list-h2">
  1588. <li>
  1589. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1590. </li>
  1591. <li>
  1592. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1593. </li>
  1594. <li>
  1595. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1596. </li>
  1597. <li>
  1598. <a href="#edit_swimlane" class="toc-h2 toc-link" data-title="">edit_swimlane</a>
  1599. </li>
  1600. <li>
  1601. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1602. </li>
  1603. </ul>
  1604. </li>
  1605. <li>
  1606. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1607. <ul class="toc-list-h2">
  1608. <li>
  1609. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1610. </li>
  1611. <li>
  1612. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1613. </li>
  1614. <li>
  1615. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1616. </li>
  1617. <li>
  1618. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1619. </li>
  1620. <li>
  1621. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1622. </li>
  1623. <li>
  1624. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1625. </li>
  1626. <li>
  1627. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1628. </li>
  1629. <li>
  1630. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1631. </li>
  1632. <li>
  1633. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1634. </li>
  1635. <li>
  1636. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1637. </li>
  1638. <li>
  1639. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1640. </li>
  1641. <li>
  1642. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1643. </li>
  1644. <li>
  1645. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1646. </li>
  1647. <li>
  1648. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1658. </li>
  1659. <li>
  1660. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1661. </li>
  1662. <li>
  1663. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1664. </li>
  1665. </ul>
  1666. </li>
  1667. </ul>
  1668. </div>
  1669. <ul class="toc-footer">
  1670. </ul>
  1671. </div>
  1672. <div class="page-wrapper">
  1673. <div class="dark-box"></div>
  1674. <div class="content">
  1675. <h1 id="wekan-rest-api">Wekan REST API v7.45</h1>
  1676. <blockquote>
  1677. <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>
  1678. </blockquote>
  1679. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1680. <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>
  1681. <blockquote>
  1682. <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>
  1683. </blockquote>
  1684. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1685. <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>
  1686. <ul>
  1687. <li>Only call via HTTPS</li>
  1688. <li>Implement a timed authorization token expiration strategy</li>
  1689. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1690. </ul>
  1691. <h1 id="authentication">Authentication</h1>
  1692. <ul>
  1693. <li>API Key (UserSecurity)
  1694. <ul>
  1695. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1696. </ul>
  1697. </li>
  1698. </ul>
  1699. <h1 id="wekan-rest-api-login">Login</h1>
  1700. <h2 id="login">login</h2>
  1701. <p><a id="opIdlogin"></a></p>
  1702. <blockquote>
  1703. <p>Code samples</p>
  1704. </blockquote>
  1705. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1706. curl -X POST /users/login \
  1707. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1708. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1709. </code></pre>
  1710. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/login</span> <span class="hljs-meta">HTTP/1.1</span>
  1711. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1712. <span class="hljs-keyword">Accept</span>: */*
  1713. </span></code></pre>
  1714. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1715. &quot;username&quot;: &quot;string&quot;,
  1716. &quot;password&quot;: &quot;pa$$word&quot;
  1717. }&#x27;</span>;
  1718. <span class="hljs-keyword">const</span> headers = {
  1719. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1720. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1721. };
  1722. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1723. {
  1724. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1725. <span class="hljs-attr">body</span>: inputBody,
  1726. <span class="hljs-attr">headers</span>: headers
  1727. })
  1728. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1729. <span class="hljs-keyword">return</span> res.json();
  1730. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1731. <span class="hljs-built_in">console</span>.log(body);
  1732. });
  1733. </code></pre>
  1734. <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">&#x27;node-fetch&#x27;</span>);
  1735. <span class="hljs-keyword">const</span> inputBody = {
  1736. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1737. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1738. };
  1739. <span class="hljs-keyword">const</span> headers = {
  1740. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1741. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1742. };
  1743. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1744. {
  1745. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1746. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1747. <span class="hljs-attr">headers</span>: headers
  1748. })
  1749. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1750. <span class="hljs-keyword">return</span> res.json();
  1751. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1752. <span class="hljs-built_in">console</span>.log(body);
  1753. });
  1754. </code></pre>
  1755. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1756. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1757. headers = {
  1758. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1759. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1760. }
  1761. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1762. <span class="hljs-symbol">params:</span> {
  1763. }, <span class="hljs-symbol">headers:</span> headers
  1764. p JSON.parse(result)
  1765. </code></pre>
  1766. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1767. headers = {
  1768. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1769. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1770. }
  1771. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1772. <span class="hljs-built_in">print</span>(r.json())
  1773. </code></pre>
  1774. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/users/login&quot;</span>);
  1775. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1776. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1777. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1778. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1779. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1780. String inputLine;
  1781. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1782. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1783. response.append(inputLine);
  1784. }
  1785. in.close();
  1786. System.out.println(response.toString());
  1787. </code></pre>
  1788. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1789. <span class="hljs-keyword">import</span> (
  1790. <span class="hljs-string">&quot;bytes&quot;</span>
  1791. <span class="hljs-string">&quot;net/http&quot;</span>
  1792. )
  1793. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1794. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1795. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/x-www-form-urlencoded&quot;</span>},
  1796. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1797. }
  1798. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1799. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1800. req.Header = headers
  1801. client := &amp;http.Client{}
  1802. resp, err := client.Do(req)
  1803. <span class="hljs-comment">// ...</span>
  1804. }
  1805. </code></pre>
  1806. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1807. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1808. );
  1809. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1810. <span class="hljs-comment">// Define array of request body.</span>
  1811. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1812. <span class="hljs-keyword">try</span> {
  1813. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/users/login&#x27;</span>, <span class="hljs-keyword">array</span>(
  1814. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1815. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1816. )
  1817. );
  1818. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1819. }
  1820. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1821. <span class="hljs-comment">// handle exception or api errors.</span>
  1822. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1823. }
  1824. <span class="hljs-comment">// ...</span>
  1825. </code></pre>
  1826. <p><code>POST /users/login</code></p>
  1827. <p><em>Login with REST API</em></p>
  1828. <blockquote>
  1829. <p>Body parameter</p>
  1830. </blockquote>
  1831. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1832. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1833. </code></pre>
  1834. <h3 id="login-parameters">Parameters</h3>
  1835. <table>
  1836. <thead>
  1837. <tr>
  1838. <th>Name</th>
  1839. <th>In</th>
  1840. <th>Type</th>
  1841. <th>Required</th>
  1842. <th>Description</th>
  1843. </tr>
  1844. </thead>
  1845. <tbody>
  1846. <tr>
  1847. <td>body</td>
  1848. <td>body</td>
  1849. <td>object</td>
  1850. <td>true</td>
  1851. <td>none</td>
  1852. </tr>
  1853. <tr>
  1854. <td>» username</td>
  1855. <td>body</td>
  1856. <td>string</td>
  1857. <td>true</td>
  1858. <td>Your username</td>
  1859. </tr>
  1860. <tr>
  1861. <td>» password</td>
  1862. <td>body</td>
  1863. <td>string(password)</td>
  1864. <td>true</td>
  1865. <td>Your password</td>
  1866. </tr>
  1867. </tbody>
  1868. </table>
  1869. <blockquote>
  1870. <p>Example responses</p>
  1871. </blockquote>
  1872. <blockquote>
  1873. <p>200 Response</p>
  1874. </blockquote>
  1875. <h3 id="login-responses">Responses</h3>
  1876. <table>
  1877. <thead>
  1878. <tr>
  1879. <th>Status</th>
  1880. <th>Meaning</th>
  1881. <th>Description</th>
  1882. <th>Schema</th>
  1883. </tr>
  1884. </thead>
  1885. <tbody>
  1886. <tr>
  1887. <td>200</td>
  1888. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1889. <td>Successful authentication</td>
  1890. <td>Inline</td>
  1891. </tr>
  1892. <tr>
  1893. <td>400</td>
  1894. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1895. <td>Error in authentication</td>
  1896. <td>Inline</td>
  1897. </tr>
  1898. <tr>
  1899. <td>default</td>
  1900. <td>Default</td>
  1901. <td>Error in authentication</td>
  1902. <td>None</td>
  1903. </tr>
  1904. </tbody>
  1905. </table>
  1906. <h3 id="login-responseschema">Response Schema</h3>
  1907. <p>Status Code <strong>200</strong></p>
  1908. <table>
  1909. <thead>
  1910. <tr>
  1911. <th>Name</th>
  1912. <th>Type</th>
  1913. <th>Required</th>
  1914. <th>Restrictions</th>
  1915. <th>Description</th>
  1916. </tr>
  1917. </thead>
  1918. <tbody>
  1919. <tr>
  1920. <td>» id</td>
  1921. <td>string</td>
  1922. <td>false</td>
  1923. <td>none</td>
  1924. <td>none</td>
  1925. </tr>
  1926. <tr>
  1927. <td>» token</td>
  1928. <td>string</td>
  1929. <td>false</td>
  1930. <td>none</td>
  1931. <td>none</td>
  1932. </tr>
  1933. <tr>
  1934. <td>» tokenExpires</td>
  1935. <td>string</td>
  1936. <td>false</td>
  1937. <td>none</td>
  1938. <td>none</td>
  1939. </tr>
  1940. </tbody>
  1941. </table>
  1942. <p>Status Code <strong>400</strong></p>
  1943. <table>
  1944. <thead>
  1945. <tr>
  1946. <th>Name</th>
  1947. <th>Type</th>
  1948. <th>Required</th>
  1949. <th>Restrictions</th>
  1950. <th>Description</th>
  1951. </tr>
  1952. </thead>
  1953. <tbody>
  1954. <tr>
  1955. <td>» error</td>
  1956. <td>number</td>
  1957. <td>false</td>
  1958. <td>none</td>
  1959. <td>none</td>
  1960. </tr>
  1961. <tr>
  1962. <td>» reason</td>
  1963. <td>string</td>
  1964. <td>false</td>
  1965. <td>none</td>
  1966. <td>none</td>
  1967. </tr>
  1968. </tbody>
  1969. </table>
  1970. <aside class="success">
  1971. This operation does not require authentication
  1972. </aside>
  1973. <h2 id="register">register</h2>
  1974. <p><a id="opIdregister"></a></p>
  1975. <blockquote>
  1976. <p>Code samples</p>
  1977. </blockquote>
  1978. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1979. curl -X POST /users/register \
  1980. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1981. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1982. </code></pre>
  1983. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/register</span> <span class="hljs-meta">HTTP/1.1</span>
  1984. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1985. <span class="hljs-keyword">Accept</span>: */*
  1986. </span></code></pre>
  1987. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1988. &quot;username&quot;: &quot;string&quot;,
  1989. &quot;password&quot;: &quot;pa$$word&quot;,
  1990. &quot;email&quot;: &quot;string&quot;
  1991. }&#x27;</span>;
  1992. <span class="hljs-keyword">const</span> headers = {
  1993. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1994. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1995. };
  1996. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  1997. {
  1998. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1999. <span class="hljs-attr">body</span>: inputBody,
  2000. <span class="hljs-attr">headers</span>: headers
  2001. })
  2002. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2003. <span class="hljs-keyword">return</span> res.json();
  2004. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2005. <span class="hljs-built_in">console</span>.log(body);
  2006. });
  2007. </code></pre>
  2008. <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">&#x27;node-fetch&#x27;</span>);
  2009. <span class="hljs-keyword">const</span> inputBody = {
  2010. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2011. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2012. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2013. };
  2014. <span class="hljs-keyword">const</span> headers = {
  2015. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2016. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2017. };
  2018. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2019. {
  2020. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2021. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2022. <span class="hljs-attr">headers</span>: headers
  2023. })
  2024. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2025. <span class="hljs-keyword">return</span> res.json();
  2026. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2027. <span class="hljs-built_in">console</span>.log(body);
  2028. });
  2029. </code></pre>
  2030. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2031. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2032. headers = {
  2033. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2034. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2035. }
  2036. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2037. <span class="hljs-symbol">params:</span> {
  2038. }, <span class="hljs-symbol">headers:</span> headers
  2039. p JSON.parse(result)
  2040. </code></pre>
  2041. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2042. headers = {
  2043. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2044. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2045. }
  2046. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2047. <span class="hljs-built_in">print</span>(r.json())
  2048. </code></pre>
  2049. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/users/register&quot;</span>);
  2050. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2051. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2052. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2053. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2054. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2055. String inputLine;
  2056. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2057. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2058. response.append(inputLine);
  2059. }
  2060. in.close();
  2061. System.out.println(response.toString());
  2062. </code></pre>
  2063. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2064. <span class="hljs-keyword">import</span> (
  2065. <span class="hljs-string">&quot;bytes&quot;</span>
  2066. <span class="hljs-string">&quot;net/http&quot;</span>
  2067. )
  2068. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2069. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2070. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/x-www-form-urlencoded&quot;</span>},
  2071. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2072. }
  2073. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2074. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2075. req.Header = headers
  2076. client := &amp;http.Client{}
  2077. resp, err := client.Do(req)
  2078. <span class="hljs-comment">// ...</span>
  2079. }
  2080. </code></pre>
  2081. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2082. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2083. );
  2084. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2085. <span class="hljs-comment">// Define array of request body.</span>
  2086. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2087. <span class="hljs-keyword">try</span> {
  2088. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/users/register&#x27;</span>, <span class="hljs-keyword">array</span>(
  2089. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2090. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2091. )
  2092. );
  2093. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2094. }
  2095. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2096. <span class="hljs-comment">// handle exception or api errors.</span>
  2097. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2098. }
  2099. <span class="hljs-comment">// ...</span>
  2100. </code></pre>
  2101. <p><code>POST /users/register</code></p>
  2102. <p><em>Register with REST API</em></p>
  2103. <p>Notes:</p>
  2104. <ul>
  2105. <li>You will need to provide the token for any of the authenticated methods.</li>
  2106. </ul>
  2107. <blockquote>
  2108. <p>Body parameter</p>
  2109. </blockquote>
  2110. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2111. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2112. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2113. </code></pre>
  2114. <h3 id="register-parameters">Parameters</h3>
  2115. <table>
  2116. <thead>
  2117. <tr>
  2118. <th>Name</th>
  2119. <th>In</th>
  2120. <th>Type</th>
  2121. <th>Required</th>
  2122. <th>Description</th>
  2123. </tr>
  2124. </thead>
  2125. <tbody>
  2126. <tr>
  2127. <td>body</td>
  2128. <td>body</td>
  2129. <td>object</td>
  2130. <td>true</td>
  2131. <td>none</td>
  2132. </tr>
  2133. <tr>
  2134. <td>» username</td>
  2135. <td>body</td>
  2136. <td>string</td>
  2137. <td>true</td>
  2138. <td>Your username</td>
  2139. </tr>
  2140. <tr>
  2141. <td>» password</td>
  2142. <td>body</td>
  2143. <td>string(password)</td>
  2144. <td>true</td>
  2145. <td>Your password</td>
  2146. </tr>
  2147. <tr>
  2148. <td>» email</td>
  2149. <td>body</td>
  2150. <td>string</td>
  2151. <td>true</td>
  2152. <td>Your email</td>
  2153. </tr>
  2154. </tbody>
  2155. </table>
  2156. <blockquote>
  2157. <p>Example responses</p>
  2158. </blockquote>
  2159. <blockquote>
  2160. <p>200 Response</p>
  2161. </blockquote>
  2162. <h3 id="register-responses">Responses</h3>
  2163. <table>
  2164. <thead>
  2165. <tr>
  2166. <th>Status</th>
  2167. <th>Meaning</th>
  2168. <th>Description</th>
  2169. <th>Schema</th>
  2170. </tr>
  2171. </thead>
  2172. <tbody>
  2173. <tr>
  2174. <td>200</td>
  2175. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2176. <td>Successful registration</td>
  2177. <td>Inline</td>
  2178. </tr>
  2179. <tr>
  2180. <td>400</td>
  2181. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2182. <td>Error in registration</td>
  2183. <td>Inline</td>
  2184. </tr>
  2185. <tr>
  2186. <td>default</td>
  2187. <td>Default</td>
  2188. <td>Error in registration</td>
  2189. <td>None</td>
  2190. </tr>
  2191. </tbody>
  2192. </table>
  2193. <h3 id="register-responseschema">Response Schema</h3>
  2194. <p>Status Code <strong>200</strong></p>
  2195. <table>
  2196. <thead>
  2197. <tr>
  2198. <th>Name</th>
  2199. <th>Type</th>
  2200. <th>Required</th>
  2201. <th>Restrictions</th>
  2202. <th>Description</th>
  2203. </tr>
  2204. </thead>
  2205. <tbody>
  2206. <tr>
  2207. <td>» id</td>
  2208. <td>string</td>
  2209. <td>false</td>
  2210. <td>none</td>
  2211. <td>none</td>
  2212. </tr>
  2213. <tr>
  2214. <td>» token</td>
  2215. <td>string</td>
  2216. <td>false</td>
  2217. <td>none</td>
  2218. <td>none</td>
  2219. </tr>
  2220. <tr>
  2221. <td>» tokenExpires</td>
  2222. <td>string</td>
  2223. <td>false</td>
  2224. <td>none</td>
  2225. <td>none</td>
  2226. </tr>
  2227. </tbody>
  2228. </table>
  2229. <p>Status Code <strong>400</strong></p>
  2230. <table>
  2231. <thead>
  2232. <tr>
  2233. <th>Name</th>
  2234. <th>Type</th>
  2235. <th>Required</th>
  2236. <th>Restrictions</th>
  2237. <th>Description</th>
  2238. </tr>
  2239. </thead>
  2240. <tbody>
  2241. <tr>
  2242. <td>» error</td>
  2243. <td>number</td>
  2244. <td>false</td>
  2245. <td>none</td>
  2246. <td>none</td>
  2247. </tr>
  2248. <tr>
  2249. <td>» reason</td>
  2250. <td>string</td>
  2251. <td>false</td>
  2252. <td>none</td>
  2253. <td>none</td>
  2254. </tr>
  2255. </tbody>
  2256. </table>
  2257. <aside class="success">
  2258. This operation does not require authentication
  2259. </aside>
  2260. <h1 id="wekan-rest-api-boards">Boards</h1>
  2261. <h2 id="get_public_boards">get_public_boards</h2>
  2262. <p><a id="opIdget_public_boards"></a></p>
  2263. <blockquote>
  2264. <p>Code samples</p>
  2265. </blockquote>
  2266. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2267. curl -X GET /api/boards \
  2268. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2269. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2270. </code></pre>
  2271. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards</span> <span class="hljs-meta">HTTP/1.1</span>
  2272. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2273. </span></code></pre>
  2274. <pre class="highlight tab tab-javascript"><code>
  2275. <span class="hljs-keyword">const</span> headers = {
  2276. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2277. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2278. };
  2279. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2280. {
  2281. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2282. <span class="hljs-attr">headers</span>: headers
  2283. })
  2284. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2285. <span class="hljs-keyword">return</span> res.json();
  2286. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2287. <span class="hljs-built_in">console</span>.log(body);
  2288. });
  2289. </code></pre>
  2290. <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">&#x27;node-fetch&#x27;</span>);
  2291. <span class="hljs-keyword">const</span> headers = {
  2292. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2293. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2294. };
  2295. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2296. {
  2297. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2298. <span class="hljs-attr">headers</span>: headers
  2299. })
  2300. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2301. <span class="hljs-keyword">return</span> res.json();
  2302. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2303. <span class="hljs-built_in">console</span>.log(body);
  2304. });
  2305. </code></pre>
  2306. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2307. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2308. headers = {
  2309. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2310. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2311. }
  2312. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2313. <span class="hljs-symbol">params:</span> {
  2314. }, <span class="hljs-symbol">headers:</span> headers
  2315. p JSON.parse(result)
  2316. </code></pre>
  2317. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2318. headers = {
  2319. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2320. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2321. }
  2322. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2323. <span class="hljs-built_in">print</span>(r.json())
  2324. </code></pre>
  2325. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards&quot;</span>);
  2326. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2327. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2328. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2329. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2330. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2331. String inputLine;
  2332. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2333. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2334. response.append(inputLine);
  2335. }
  2336. in.close();
  2337. System.out.println(response.toString());
  2338. </code></pre>
  2339. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2340. <span class="hljs-keyword">import</span> (
  2341. <span class="hljs-string">&quot;bytes&quot;</span>
  2342. <span class="hljs-string">&quot;net/http&quot;</span>
  2343. )
  2344. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2345. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2346. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2347. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2348. }
  2349. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2350. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2351. req.Header = headers
  2352. client := &amp;http.Client{}
  2353. resp, err := client.Do(req)
  2354. <span class="hljs-comment">// ...</span>
  2355. }
  2356. </code></pre>
  2357. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2358. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2359. );
  2360. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2361. <span class="hljs-comment">// Define array of request body.</span>
  2362. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2363. <span class="hljs-keyword">try</span> {
  2364. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards&#x27;</span>, <span class="hljs-keyword">array</span>(
  2365. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2366. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2367. )
  2368. );
  2369. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2370. }
  2371. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2372. <span class="hljs-comment">// handle exception or api errors.</span>
  2373. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2374. }
  2375. <span class="hljs-comment">// ...</span>
  2376. </code></pre>
  2377. <p><code>GET /api/boards</code></p>
  2378. <p><em>Get all public boards</em></p>
  2379. <blockquote>
  2380. <p>Example responses</p>
  2381. </blockquote>
  2382. <blockquote>
  2383. <p>200 Response</p>
  2384. </blockquote>
  2385. <pre class="highlight tab tab-json"><code>[
  2386. {
  2387. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2388. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2389. }
  2390. ]
  2391. </code></pre>
  2392. <h3 id="get_public_boards-responses">Responses</h3>
  2393. <table>
  2394. <thead>
  2395. <tr>
  2396. <th>Status</th>
  2397. <th>Meaning</th>
  2398. <th>Description</th>
  2399. <th>Schema</th>
  2400. </tr>
  2401. </thead>
  2402. <tbody>
  2403. <tr>
  2404. <td>200</td>
  2405. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2406. <td>200 response</td>
  2407. <td>Inline</td>
  2408. </tr>
  2409. </tbody>
  2410. </table>
  2411. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2412. <p>Status Code <strong>200</strong></p>
  2413. <table>
  2414. <thead>
  2415. <tr>
  2416. <th>Name</th>
  2417. <th>Type</th>
  2418. <th>Required</th>
  2419. <th>Restrictions</th>
  2420. <th>Description</th>
  2421. </tr>
  2422. </thead>
  2423. <tbody>
  2424. <tr>
  2425. <td>» _id</td>
  2426. <td>string</td>
  2427. <td>false</td>
  2428. <td>none</td>
  2429. <td>none</td>
  2430. </tr>
  2431. <tr>
  2432. <td>» title</td>
  2433. <td>string</td>
  2434. <td>false</td>
  2435. <td>none</td>
  2436. <td>none</td>
  2437. </tr>
  2438. </tbody>
  2439. </table>
  2440. <aside class="warning">
  2441. To perform this operation, you must be authenticated by means of one of the following methods:
  2442. UserSecurity
  2443. </aside>
  2444. <h2 id="new_board">new_board</h2>
  2445. <p><a id="opIdnew_board"></a></p>
  2446. <blockquote>
  2447. <p>Code samples</p>
  2448. </blockquote>
  2449. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2450. curl -X POST /api/boards \
  2451. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2452. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2453. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2454. </code></pre>
  2455. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards</span> <span class="hljs-meta">HTTP/1.1</span>
  2456. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2457. Accept: application/json
  2458. </span></code></pre>
  2459. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2460. &quot;title&quot;: &quot;string&quot;,
  2461. &quot;owner&quot;: &quot;string&quot;,
  2462. &quot;isAdmin&quot;: true,
  2463. &quot;isActive&quot;: true,
  2464. &quot;isNoComments&quot;: true,
  2465. &quot;isCommentOnly&quot;: true,
  2466. &quot;isWorker&quot;: true,
  2467. &quot;permission&quot;: &quot;string&quot;,
  2468. &quot;color&quot;: &quot;string&quot;
  2469. }&#x27;</span>;
  2470. <span class="hljs-keyword">const</span> headers = {
  2471. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2472. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2473. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2474. };
  2475. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2476. {
  2477. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2478. <span class="hljs-attr">body</span>: inputBody,
  2479. <span class="hljs-attr">headers</span>: headers
  2480. })
  2481. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2482. <span class="hljs-keyword">return</span> res.json();
  2483. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2484. <span class="hljs-built_in">console</span>.log(body);
  2485. });
  2486. </code></pre>
  2487. <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">&#x27;node-fetch&#x27;</span>);
  2488. <span class="hljs-keyword">const</span> inputBody = {
  2489. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2490. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2491. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2492. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2493. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2494. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2495. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2496. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2497. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2498. };
  2499. <span class="hljs-keyword">const</span> headers = {
  2500. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2501. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2502. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2503. };
  2504. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2505. {
  2506. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2507. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2508. <span class="hljs-attr">headers</span>: headers
  2509. })
  2510. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2511. <span class="hljs-keyword">return</span> res.json();
  2512. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2513. <span class="hljs-built_in">console</span>.log(body);
  2514. });
  2515. </code></pre>
  2516. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2517. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2518. headers = {
  2519. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2520. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2521. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2522. }
  2523. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2524. <span class="hljs-symbol">params:</span> {
  2525. }, <span class="hljs-symbol">headers:</span> headers
  2526. p JSON.parse(result)
  2527. </code></pre>
  2528. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2529. headers = {
  2530. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2531. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2532. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2533. }
  2534. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2535. <span class="hljs-built_in">print</span>(r.json())
  2536. </code></pre>
  2537. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards&quot;</span>);
  2538. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2539. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2540. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2541. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2542. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2543. String inputLine;
  2544. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2545. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2546. response.append(inputLine);
  2547. }
  2548. in.close();
  2549. System.out.println(response.toString());
  2550. </code></pre>
  2551. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2552. <span class="hljs-keyword">import</span> (
  2553. <span class="hljs-string">&quot;bytes&quot;</span>
  2554. <span class="hljs-string">&quot;net/http&quot;</span>
  2555. )
  2556. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2557. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2558. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  2559. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2560. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2561. }
  2562. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2563. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2564. req.Header = headers
  2565. client := &amp;http.Client{}
  2566. resp, err := client.Do(req)
  2567. <span class="hljs-comment">// ...</span>
  2568. }
  2569. </code></pre>
  2570. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2571. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2572. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2573. );
  2574. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2575. <span class="hljs-comment">// Define array of request body.</span>
  2576. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2577. <span class="hljs-keyword">try</span> {
  2578. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards&#x27;</span>, <span class="hljs-keyword">array</span>(
  2579. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2580. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2581. )
  2582. );
  2583. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2584. }
  2585. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2586. <span class="hljs-comment">// handle exception or api errors.</span>
  2587. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2588. }
  2589. <span class="hljs-comment">// ...</span>
  2590. </code></pre>
  2591. <p><code>POST /api/boards</code></p>
  2592. <p><em>Create a board</em></p>
  2593. <p>This allows to create a board.</p>
  2594. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2595. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2596. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2597. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2598. <blockquote>
  2599. <p>Body parameter</p>
  2600. </blockquote>
  2601. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2602. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2603. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2604. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2605. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2606. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2607. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2608. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2609. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2610. </code></pre>
  2611. <h3 id="new_board-parameters">Parameters</h3>
  2612. <table>
  2613. <thead>
  2614. <tr>
  2615. <th>Name</th>
  2616. <th>In</th>
  2617. <th>Type</th>
  2618. <th>Required</th>
  2619. <th>Description</th>
  2620. </tr>
  2621. </thead>
  2622. <tbody>
  2623. <tr>
  2624. <td>body</td>
  2625. <td>body</td>
  2626. <td>object</td>
  2627. <td>true</td>
  2628. <td>none</td>
  2629. </tr>
  2630. <tr>
  2631. <td>» title</td>
  2632. <td>body</td>
  2633. <td>string</td>
  2634. <td>true</td>
  2635. <td>the new title of the board</td>
  2636. </tr>
  2637. <tr>
  2638. <td>» owner</td>
  2639. <td>body</td>
  2640. <td>string</td>
  2641. <td>true</td>
  2642. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2643. </tr>
  2644. <tr>
  2645. <td>» isAdmin</td>
  2646. <td>body</td>
  2647. <td>boolean</td>
  2648. <td>false</td>
  2649. <td>is the owner an admin of the board (default true)</td>
  2650. </tr>
  2651. <tr>
  2652. <td>» isActive</td>
  2653. <td>body</td>
  2654. <td>boolean</td>
  2655. <td>false</td>
  2656. <td>is the board active (default true)</td>
  2657. </tr>
  2658. <tr>
  2659. <td>» isNoComments</td>
  2660. <td>body</td>
  2661. <td>boolean</td>
  2662. <td>false</td>
  2663. <td>disable comments (default false)</td>
  2664. </tr>
  2665. <tr>
  2666. <td>» isCommentOnly</td>
  2667. <td>body</td>
  2668. <td>boolean</td>
  2669. <td>false</td>
  2670. <td>only enable comments (default false)</td>
  2671. </tr>
  2672. <tr>
  2673. <td>» isWorker</td>
  2674. <td>body</td>
  2675. <td>boolean</td>
  2676. <td>false</td>
  2677. <td>only move cards, assign himself to card and comment (default false)</td>
  2678. </tr>
  2679. <tr>
  2680. <td>» permission</td>
  2681. <td>body</td>
  2682. <td>string</td>
  2683. <td>false</td>
  2684. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2685. </tr>
  2686. <tr>
  2687. <td>» color</td>
  2688. <td>body</td>
  2689. <td>string</td>
  2690. <td>false</td>
  2691. <td>the color of the board</td>
  2692. </tr>
  2693. </tbody>
  2694. </table>
  2695. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2696. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2697. (Not username or email)</p>
  2698. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2699. want public Wekan board</p>
  2700. <blockquote>
  2701. <p>Example responses</p>
  2702. </blockquote>
  2703. <blockquote>
  2704. <p>200 Response</p>
  2705. </blockquote>
  2706. <pre class="highlight tab tab-json"><code>{
  2707. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2708. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2709. }
  2710. </code></pre>
  2711. <h3 id="new_board-responses">Responses</h3>
  2712. <table>
  2713. <thead>
  2714. <tr>
  2715. <th>Status</th>
  2716. <th>Meaning</th>
  2717. <th>Description</th>
  2718. <th>Schema</th>
  2719. </tr>
  2720. </thead>
  2721. <tbody>
  2722. <tr>
  2723. <td>200</td>
  2724. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2725. <td>200 response</td>
  2726. <td>Inline</td>
  2727. </tr>
  2728. </tbody>
  2729. </table>
  2730. <h3 id="new_board-responseschema">Response Schema</h3>
  2731. <p>Status Code <strong>200</strong></p>
  2732. <table>
  2733. <thead>
  2734. <tr>
  2735. <th>Name</th>
  2736. <th>Type</th>
  2737. <th>Required</th>
  2738. <th>Restrictions</th>
  2739. <th>Description</th>
  2740. </tr>
  2741. </thead>
  2742. <tbody>
  2743. <tr>
  2744. <td>» _id</td>
  2745. <td>string</td>
  2746. <td>false</td>
  2747. <td>none</td>
  2748. <td>none</td>
  2749. </tr>
  2750. <tr>
  2751. <td>» defaultSwimlaneId</td>
  2752. <td>string</td>
  2753. <td>false</td>
  2754. <td>none</td>
  2755. <td>none</td>
  2756. </tr>
  2757. </tbody>
  2758. </table>
  2759. <aside class="warning">
  2760. To perform this operation, you must be authenticated by means of one of the following methods:
  2761. UserSecurity
  2762. </aside>
  2763. <h2 id="get_board">get_board</h2>
  2764. <p><a id="opIdget_board"></a></p>
  2765. <blockquote>
  2766. <p>Code samples</p>
  2767. </blockquote>
  2768. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2769. curl -X GET /api/boards/{board} \
  2770. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2771. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2772. </code></pre>
  2773. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}</span> <span class="hljs-meta">HTTP/1.1</span>
  2774. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2775. </span></code></pre>
  2776. <pre class="highlight tab tab-javascript"><code>
  2777. <span class="hljs-keyword">const</span> headers = {
  2778. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2779. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2780. };
  2781. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2782. {
  2783. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2784. <span class="hljs-attr">headers</span>: headers
  2785. })
  2786. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2787. <span class="hljs-keyword">return</span> res.json();
  2788. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2789. <span class="hljs-built_in">console</span>.log(body);
  2790. });
  2791. </code></pre>
  2792. <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">&#x27;node-fetch&#x27;</span>);
  2793. <span class="hljs-keyword">const</span> headers = {
  2794. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2795. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2796. };
  2797. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2798. {
  2799. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2800. <span class="hljs-attr">headers</span>: headers
  2801. })
  2802. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2803. <span class="hljs-keyword">return</span> res.json();
  2804. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2805. <span class="hljs-built_in">console</span>.log(body);
  2806. });
  2807. </code></pre>
  2808. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2809. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2810. headers = {
  2811. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2812. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2813. }
  2814. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2815. <span class="hljs-symbol">params:</span> {
  2816. }, <span class="hljs-symbol">headers:</span> headers
  2817. p JSON.parse(result)
  2818. </code></pre>
  2819. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2820. headers = {
  2821. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2822. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2823. }
  2824. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2825. <span class="hljs-built_in">print</span>(r.json())
  2826. </code></pre>
  2827. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}&quot;</span>);
  2828. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2829. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2830. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2831. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2832. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2833. String inputLine;
  2834. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2835. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2836. response.append(inputLine);
  2837. }
  2838. in.close();
  2839. System.out.println(response.toString());
  2840. </code></pre>
  2841. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2842. <span class="hljs-keyword">import</span> (
  2843. <span class="hljs-string">&quot;bytes&quot;</span>
  2844. <span class="hljs-string">&quot;net/http&quot;</span>
  2845. )
  2846. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2847. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2848. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2849. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2850. }
  2851. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2852. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2853. req.Header = headers
  2854. client := &amp;http.Client{}
  2855. resp, err := client.Do(req)
  2856. <span class="hljs-comment">// ...</span>
  2857. }
  2858. </code></pre>
  2859. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2860. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2861. );
  2862. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2863. <span class="hljs-comment">// Define array of request body.</span>
  2864. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2865. <span class="hljs-keyword">try</span> {
  2866. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, <span class="hljs-keyword">array</span>(
  2867. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2868. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2869. )
  2870. );
  2871. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2872. }
  2873. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2874. <span class="hljs-comment">// handle exception or api errors.</span>
  2875. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2876. }
  2877. <span class="hljs-comment">// ...</span>
  2878. </code></pre>
  2879. <p><code>GET /api/boards/{board}</code></p>
  2880. <p><em>Get the board with that particular ID</em></p>
  2881. <h3 id="get_board-parameters">Parameters</h3>
  2882. <table>
  2883. <thead>
  2884. <tr>
  2885. <th>Name</th>
  2886. <th>In</th>
  2887. <th>Type</th>
  2888. <th>Required</th>
  2889. <th>Description</th>
  2890. </tr>
  2891. </thead>
  2892. <tbody>
  2893. <tr>
  2894. <td>board</td>
  2895. <td>path</td>
  2896. <td>string</td>
  2897. <td>true</td>
  2898. <td>the ID of the board to retrieve the data</td>
  2899. </tr>
  2900. </tbody>
  2901. </table>
  2902. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2903. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2904. <blockquote>
  2905. <p>Example responses</p>
  2906. </blockquote>
  2907. <blockquote>
  2908. <p>200 Response</p>
  2909. </blockquote>
  2910. <pre class="highlight tab tab-json"><code>{
  2911. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2912. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2913. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2914. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2915. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2916. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2917. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2918. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2919. {
  2920. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2921. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2922. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2923. }
  2924. ],
  2925. <span class="hljs-attr">&quot;members&quot;</span>: [
  2926. {
  2927. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2928. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2929. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2930. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2931. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2932. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2933. }
  2934. ],
  2935. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2936. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  2937. {
  2938. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2939. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2940. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2941. }
  2942. ],
  2943. <span class="hljs-attr">&quot;teams&quot;</span>: [
  2944. {
  2945. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2946. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2947. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2948. }
  2949. ],
  2950. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  2951. <span class="hljs-attr">&quot;backgroundImageURL&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2952. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  2953. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  2954. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2955. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2956. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2957. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2958. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2959. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  2960. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  2961. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  2962. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  2963. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  2964. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  2965. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2966. <span class="hljs-attr">&quot;allowsCoverAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2967. <span class="hljs-attr">&quot;allowsBadgeAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2968. <span class="hljs-attr">&quot;allowsCardSortingByNumberOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2969. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  2970. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  2971. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  2972. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  2973. <span class="hljs-attr">&quot;allowsCreatorOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2974. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  2975. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  2976. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  2977. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  2978. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  2979. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  2980. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  2981. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  2982. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  2983. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  2984. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  2985. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2986. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2987. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2988. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2989. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  2990. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  2991. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  2992. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  2993. }
  2994. </code></pre>
  2995. <h3 id="get_board-responses">Responses</h3>
  2996. <table>
  2997. <thead>
  2998. <tr>
  2999. <th>Status</th>
  3000. <th>Meaning</th>
  3001. <th>Description</th>
  3002. <th>Schema</th>
  3003. </tr>
  3004. </thead>
  3005. <tbody>
  3006. <tr>
  3007. <td>200</td>
  3008. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3009. <td>200 response</td>
  3010. <td><a href="#schemaboards">Boards</a></td>
  3011. </tr>
  3012. </tbody>
  3013. </table>
  3014. <aside class="warning">
  3015. To perform this operation, you must be authenticated by means of one of the following methods:
  3016. UserSecurity
  3017. </aside>
  3018. <h2 id="delete_board">delete_board</h2>
  3019. <p><a id="opIddelete_board"></a></p>
  3020. <blockquote>
  3021. <p>Code samples</p>
  3022. </blockquote>
  3023. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3024. curl -X DELETE /api/boards/{board} \
  3025. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3026. </code></pre>
  3027. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}</span> <span class="hljs-meta">HTTP/1.1</span>
  3028. </code></pre>
  3029. <pre class="highlight tab tab-javascript"><code>
  3030. <span class="hljs-keyword">const</span> headers = {
  3031. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3032. };
  3033. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3034. {
  3035. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3036. <span class="hljs-attr">headers</span>: headers
  3037. })
  3038. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3039. <span class="hljs-keyword">return</span> res.json();
  3040. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3041. <span class="hljs-built_in">console</span>.log(body);
  3042. });
  3043. </code></pre>
  3044. <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">&#x27;node-fetch&#x27;</span>);
  3045. <span class="hljs-keyword">const</span> headers = {
  3046. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3047. };
  3048. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3049. {
  3050. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3051. <span class="hljs-attr">headers</span>: headers
  3052. })
  3053. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3054. <span class="hljs-keyword">return</span> res.json();
  3055. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3056. <span class="hljs-built_in">console</span>.log(body);
  3057. });
  3058. </code></pre>
  3059. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3060. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3061. headers = {
  3062. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3063. }
  3064. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3065. <span class="hljs-symbol">params:</span> {
  3066. }, <span class="hljs-symbol">headers:</span> headers
  3067. p JSON.parse(result)
  3068. </code></pre>
  3069. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3070. headers = {
  3071. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3072. }
  3073. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3074. <span class="hljs-built_in">print</span>(r.json())
  3075. </code></pre>
  3076. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}&quot;</span>);
  3077. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3078. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3079. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3080. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3081. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3082. String inputLine;
  3083. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3084. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3085. response.append(inputLine);
  3086. }
  3087. in.close();
  3088. System.out.println(response.toString());
  3089. </code></pre>
  3090. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3091. <span class="hljs-keyword">import</span> (
  3092. <span class="hljs-string">&quot;bytes&quot;</span>
  3093. <span class="hljs-string">&quot;net/http&quot;</span>
  3094. )
  3095. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3096. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3097. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3098. }
  3099. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3100. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3101. req.Header = headers
  3102. client := &amp;http.Client{}
  3103. resp, err := client.Do(req)
  3104. <span class="hljs-comment">// ...</span>
  3105. }
  3106. </code></pre>
  3107. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3108. );
  3109. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3110. <span class="hljs-comment">// Define array of request body.</span>
  3111. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3112. <span class="hljs-keyword">try</span> {
  3113. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, <span class="hljs-keyword">array</span>(
  3114. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3115. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3116. )
  3117. );
  3118. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3119. }
  3120. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3121. <span class="hljs-comment">// handle exception or api errors.</span>
  3122. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3123. }
  3124. <span class="hljs-comment">// ...</span>
  3125. </code></pre>
  3126. <p><code>DELETE /api/boards/{board}</code></p>
  3127. <p><em>Delete a board</em></p>
  3128. <h3 id="delete_board-parameters">Parameters</h3>
  3129. <table>
  3130. <thead>
  3131. <tr>
  3132. <th>Name</th>
  3133. <th>In</th>
  3134. <th>Type</th>
  3135. <th>Required</th>
  3136. <th>Description</th>
  3137. </tr>
  3138. </thead>
  3139. <tbody>
  3140. <tr>
  3141. <td>board</td>
  3142. <td>path</td>
  3143. <td>string</td>
  3144. <td>true</td>
  3145. <td>the ID of the board</td>
  3146. </tr>
  3147. </tbody>
  3148. </table>
  3149. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3150. <p><strong>board</strong>: the ID of the board</p>
  3151. <h3 id="delete_board-responses">Responses</h3>
  3152. <table>
  3153. <thead>
  3154. <tr>
  3155. <th>Status</th>
  3156. <th>Meaning</th>
  3157. <th>Description</th>
  3158. <th>Schema</th>
  3159. </tr>
  3160. </thead>
  3161. <tbody>
  3162. <tr>
  3163. <td>200</td>
  3164. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3165. <td>200 response</td>
  3166. <td>None</td>
  3167. </tr>
  3168. </tbody>
  3169. </table>
  3170. <aside class="warning">
  3171. To perform this operation, you must be authenticated by means of one of the following methods:
  3172. UserSecurity
  3173. </aside>
  3174. <h2 id="get_board_attachments">get_board_attachments</h2>
  3175. <p><a id="opIdget_board_attachments"></a></p>
  3176. <blockquote>
  3177. <p>Code samples</p>
  3178. </blockquote>
  3179. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3180. curl -X GET /api/boards/{board}/attachments \
  3181. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3182. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3183. </code></pre>
  3184. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/attachments</span> <span class="hljs-meta">HTTP/1.1</span>
  3185. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3186. </span></code></pre>
  3187. <pre class="highlight tab tab-javascript"><code>
  3188. <span class="hljs-keyword">const</span> headers = {
  3189. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3190. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3191. };
  3192. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3193. {
  3194. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3195. <span class="hljs-attr">headers</span>: headers
  3196. })
  3197. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3198. <span class="hljs-keyword">return</span> res.json();
  3199. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3200. <span class="hljs-built_in">console</span>.log(body);
  3201. });
  3202. </code></pre>
  3203. <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">&#x27;node-fetch&#x27;</span>);
  3204. <span class="hljs-keyword">const</span> headers = {
  3205. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3206. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3207. };
  3208. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3209. {
  3210. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3211. <span class="hljs-attr">headers</span>: headers
  3212. })
  3213. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3214. <span class="hljs-keyword">return</span> res.json();
  3215. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3216. <span class="hljs-built_in">console</span>.log(body);
  3217. });
  3218. </code></pre>
  3219. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3220. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3221. headers = {
  3222. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3223. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3224. }
  3225. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3226. <span class="hljs-symbol">params:</span> {
  3227. }, <span class="hljs-symbol">headers:</span> headers
  3228. p JSON.parse(result)
  3229. </code></pre>
  3230. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3231. headers = {
  3232. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3233. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3234. }
  3235. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3236. <span class="hljs-built_in">print</span>(r.json())
  3237. </code></pre>
  3238. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>);
  3239. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3240. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3241. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3242. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3243. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3244. String inputLine;
  3245. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3246. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3247. response.append(inputLine);
  3248. }
  3249. in.close();
  3250. System.out.println(response.toString());
  3251. </code></pre>
  3252. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3253. <span class="hljs-keyword">import</span> (
  3254. <span class="hljs-string">&quot;bytes&quot;</span>
  3255. <span class="hljs-string">&quot;net/http&quot;</span>
  3256. )
  3257. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3258. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3259. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3260. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3261. }
  3262. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3263. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3264. req.Header = headers
  3265. client := &amp;http.Client{}
  3266. resp, err := client.Do(req)
  3267. <span class="hljs-comment">// ...</span>
  3268. }
  3269. </code></pre>
  3270. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3271. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3272. );
  3273. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3274. <span class="hljs-comment">// Define array of request body.</span>
  3275. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3276. <span class="hljs-keyword">try</span> {
  3277. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, <span class="hljs-keyword">array</span>(
  3278. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3279. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3280. )
  3281. );
  3282. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3283. }
  3284. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3285. <span class="hljs-comment">// handle exception or api errors.</span>
  3286. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3287. }
  3288. <span class="hljs-comment">// ...</span>
  3289. </code></pre>
  3290. <p><code>GET /api/boards/{board}/attachments</code></p>
  3291. <p><em>Get the list of attachments of a board</em></p>
  3292. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3293. <table>
  3294. <thead>
  3295. <tr>
  3296. <th>Name</th>
  3297. <th>In</th>
  3298. <th>Type</th>
  3299. <th>Required</th>
  3300. <th>Description</th>
  3301. </tr>
  3302. </thead>
  3303. <tbody>
  3304. <tr>
  3305. <td>board</td>
  3306. <td>path</td>
  3307. <td>string</td>
  3308. <td>true</td>
  3309. <td>the board ID</td>
  3310. </tr>
  3311. </tbody>
  3312. </table>
  3313. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3314. <p><strong>board</strong>: the board ID</p>
  3315. <blockquote>
  3316. <p>Example responses</p>
  3317. </blockquote>
  3318. <blockquote>
  3319. <p>200 Response</p>
  3320. </blockquote>
  3321. <pre class="highlight tab tab-json"><code>[
  3322. {
  3323. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3324. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3325. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3326. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3327. <span class="hljs-attr">&quot;urlDownload&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3328. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3329. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3330. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3331. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3332. }
  3333. ]
  3334. </code></pre>
  3335. <h3 id="get_board_attachments-responses">Responses</h3>
  3336. <table>
  3337. <thead>
  3338. <tr>
  3339. <th>Status</th>
  3340. <th>Meaning</th>
  3341. <th>Description</th>
  3342. <th>Schema</th>
  3343. </tr>
  3344. </thead>
  3345. <tbody>
  3346. <tr>
  3347. <td>200</td>
  3348. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3349. <td>200 response</td>
  3350. <td>Inline</td>
  3351. </tr>
  3352. </tbody>
  3353. </table>
  3354. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3355. <p>Status Code <strong>200</strong></p>
  3356. <table>
  3357. <thead>
  3358. <tr>
  3359. <th>Name</th>
  3360. <th>Type</th>
  3361. <th>Required</th>
  3362. <th>Restrictions</th>
  3363. <th>Description</th>
  3364. </tr>
  3365. </thead>
  3366. <tbody>
  3367. <tr>
  3368. <td>» attachmentId</td>
  3369. <td>string</td>
  3370. <td>false</td>
  3371. <td>none</td>
  3372. <td>none</td>
  3373. </tr>
  3374. <tr>
  3375. <td>» attachmentName</td>
  3376. <td>string</td>
  3377. <td>false</td>
  3378. <td>none</td>
  3379. <td>none</td>
  3380. </tr>
  3381. <tr>
  3382. <td>» attachmentType</td>
  3383. <td>string</td>
  3384. <td>false</td>
  3385. <td>none</td>
  3386. <td>none</td>
  3387. </tr>
  3388. <tr>
  3389. <td>» url</td>
  3390. <td>string</td>
  3391. <td>false</td>
  3392. <td>none</td>
  3393. <td>none</td>
  3394. </tr>
  3395. <tr>
  3396. <td>» urlDownload</td>
  3397. <td>string</td>
  3398. <td>false</td>
  3399. <td>none</td>
  3400. <td>none</td>
  3401. </tr>
  3402. <tr>
  3403. <td>» boardId</td>
  3404. <td>string</td>
  3405. <td>false</td>
  3406. <td>none</td>
  3407. <td>none</td>
  3408. </tr>
  3409. <tr>
  3410. <td>» swimlaneId</td>
  3411. <td>string</td>
  3412. <td>false</td>
  3413. <td>none</td>
  3414. <td>none</td>
  3415. </tr>
  3416. <tr>
  3417. <td>» listId</td>
  3418. <td>string</td>
  3419. <td>false</td>
  3420. <td>none</td>
  3421. <td>none</td>
  3422. </tr>
  3423. <tr>
  3424. <td>» cardId</td>
  3425. <td>string</td>
  3426. <td>false</td>
  3427. <td>none</td>
  3428. <td>none</td>
  3429. </tr>
  3430. </tbody>
  3431. </table>
  3432. <aside class="warning">
  3433. To perform this operation, you must be authenticated by means of one of the following methods:
  3434. UserSecurity
  3435. </aside>
  3436. <h2 id="exportjson">exportJson</h2>
  3437. <p><a id="opIdexportJson"></a></p>
  3438. <blockquote>
  3439. <p>Code samples</p>
  3440. </blockquote>
  3441. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3442. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3443. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3444. </code></pre>
  3445. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/export</span> <span class="hljs-meta">HTTP/1.1</span>
  3446. </code></pre>
  3447. <pre class="highlight tab tab-javascript"><code>
  3448. <span class="hljs-keyword">const</span> headers = {
  3449. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3450. };
  3451. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3452. {
  3453. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3454. <span class="hljs-attr">headers</span>: headers
  3455. })
  3456. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3457. <span class="hljs-keyword">return</span> res.json();
  3458. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3459. <span class="hljs-built_in">console</span>.log(body);
  3460. });
  3461. </code></pre>
  3462. <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">&#x27;node-fetch&#x27;</span>);
  3463. <span class="hljs-keyword">const</span> headers = {
  3464. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3465. };
  3466. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3467. {
  3468. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3469. <span class="hljs-attr">headers</span>: headers
  3470. })
  3471. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3472. <span class="hljs-keyword">return</span> res.json();
  3473. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3474. <span class="hljs-built_in">console</span>.log(body);
  3475. });
  3476. </code></pre>
  3477. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3478. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3479. headers = {
  3480. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3481. }
  3482. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3483. <span class="hljs-symbol">params:</span> {
  3484. }, <span class="hljs-symbol">headers:</span> headers
  3485. p JSON.parse(result)
  3486. </code></pre>
  3487. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3488. headers = {
  3489. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3490. }
  3491. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3492. <span class="hljs-built_in">print</span>(r.json())
  3493. </code></pre>
  3494. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>);
  3495. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3496. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3497. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3498. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3499. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3500. String inputLine;
  3501. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3502. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3503. response.append(inputLine);
  3504. }
  3505. in.close();
  3506. System.out.println(response.toString());
  3507. </code></pre>
  3508. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3509. <span class="hljs-keyword">import</span> (
  3510. <span class="hljs-string">&quot;bytes&quot;</span>
  3511. <span class="hljs-string">&quot;net/http&quot;</span>
  3512. )
  3513. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3514. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3515. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3516. }
  3517. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3518. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3519. req.Header = headers
  3520. client := &amp;http.Client{}
  3521. resp, err := client.Do(req)
  3522. <span class="hljs-comment">// ...</span>
  3523. }
  3524. </code></pre>
  3525. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3526. );
  3527. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3528. <span class="hljs-comment">// Define array of request body.</span>
  3529. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3530. <span class="hljs-keyword">try</span> {
  3531. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, <span class="hljs-keyword">array</span>(
  3532. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3533. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3534. )
  3535. );
  3536. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3537. }
  3538. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3539. <span class="hljs-comment">// handle exception or api errors.</span>
  3540. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3541. }
  3542. <span class="hljs-comment">// ...</span>
  3543. </code></pre>
  3544. <p><code>GET /api/boards/{board}/export</code></p>
  3545. <p><em>This route is used to export the board to a json file format.</em></p>
  3546. <p>If user is already logged-in, pass loginToken as param
  3547. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3548. <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>
  3549. for detailed explanations</p>
  3550. <h3 id="exportjson-parameters">Parameters</h3>
  3551. <table>
  3552. <thead>
  3553. <tr>
  3554. <th>Name</th>
  3555. <th>In</th>
  3556. <th>Type</th>
  3557. <th>Required</th>
  3558. <th>Description</th>
  3559. </tr>
  3560. </thead>
  3561. <tbody>
  3562. <tr>
  3563. <td>board</td>
  3564. <td>path</td>
  3565. <td>string</td>
  3566. <td>true</td>
  3567. <td>the ID of the board we are exporting</td>
  3568. </tr>
  3569. </tbody>
  3570. </table>
  3571. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3572. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3573. <h3 id="exportjson-responses">Responses</h3>
  3574. <table>
  3575. <thead>
  3576. <tr>
  3577. <th>Status</th>
  3578. <th>Meaning</th>
  3579. <th>Description</th>
  3580. <th>Schema</th>
  3581. </tr>
  3582. </thead>
  3583. <tbody>
  3584. <tr>
  3585. <td>200</td>
  3586. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3587. <td>200 response</td>
  3588. <td>None</td>
  3589. </tr>
  3590. </tbody>
  3591. </table>
  3592. <aside class="warning">
  3593. To perform this operation, you must be authenticated by means of one of the following methods:
  3594. UserSecurity
  3595. </aside>
  3596. <h2 id="copy_board">copy_board</h2>
  3597. <p><a id="opIdcopy_board"></a></p>
  3598. <blockquote>
  3599. <p>Code samples</p>
  3600. </blockquote>
  3601. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3602. curl -X POST /api/boards/{board}/copy \
  3603. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3604. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3605. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3606. </code></pre>
  3607. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/copy</span> <span class="hljs-meta">HTTP/1.1</span>
  3608. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3609. Accept: application/json
  3610. </span></code></pre>
  3611. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3612. &quot;title&quot;: &quot;string&quot;
  3613. }&#x27;</span>;
  3614. <span class="hljs-keyword">const</span> headers = {
  3615. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3616. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3617. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3618. };
  3619. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/copy&#x27;</span>,
  3620. {
  3621. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3622. <span class="hljs-attr">body</span>: inputBody,
  3623. <span class="hljs-attr">headers</span>: headers
  3624. })
  3625. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3626. <span class="hljs-keyword">return</span> res.json();
  3627. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3628. <span class="hljs-built_in">console</span>.log(body);
  3629. });
  3630. </code></pre>
  3631. <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">&#x27;node-fetch&#x27;</span>);
  3632. <span class="hljs-keyword">const</span> inputBody = {
  3633. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3634. };
  3635. <span class="hljs-keyword">const</span> headers = {
  3636. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3637. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3638. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3639. };
  3640. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/copy&#x27;</span>,
  3641. {
  3642. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3643. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3644. <span class="hljs-attr">headers</span>: headers
  3645. })
  3646. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3647. <span class="hljs-keyword">return</span> res.json();
  3648. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3649. <span class="hljs-built_in">console</span>.log(body);
  3650. });
  3651. </code></pre>
  3652. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3653. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3654. headers = {
  3655. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3656. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3657. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3658. }
  3659. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/copy&#x27;</span>,
  3660. <span class="hljs-symbol">params:</span> {
  3661. }, <span class="hljs-symbol">headers:</span> headers
  3662. p JSON.parse(result)
  3663. </code></pre>
  3664. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3665. headers = {
  3666. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3667. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3668. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3669. }
  3670. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/copy&#x27;</span>, headers = headers)
  3671. <span class="hljs-built_in">print</span>(r.json())
  3672. </code></pre>
  3673. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/copy&quot;</span>);
  3674. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3675. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3676. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3677. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3678. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3679. String inputLine;
  3680. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3681. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3682. response.append(inputLine);
  3683. }
  3684. in.close();
  3685. System.out.println(response.toString());
  3686. </code></pre>
  3687. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3688. <span class="hljs-keyword">import</span> (
  3689. <span class="hljs-string">&quot;bytes&quot;</span>
  3690. <span class="hljs-string">&quot;net/http&quot;</span>
  3691. )
  3692. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3693. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3694. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  3695. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3696. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3697. }
  3698. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3699. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/copy&quot;</span>, data)
  3700. req.Header = headers
  3701. client := &amp;http.Client{}
  3702. resp, err := client.Do(req)
  3703. <span class="hljs-comment">// ...</span>
  3704. }
  3705. </code></pre>
  3706. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3707. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3708. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3709. );
  3710. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3711. <span class="hljs-comment">// Define array of request body.</span>
  3712. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3713. <span class="hljs-keyword">try</span> {
  3714. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/copy&#x27;</span>, <span class="hljs-keyword">array</span>(
  3715. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3716. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3717. )
  3718. );
  3719. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3720. }
  3721. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3722. <span class="hljs-comment">// handle exception or api errors.</span>
  3723. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3724. }
  3725. <span class="hljs-comment">// ...</span>
  3726. </code></pre>
  3727. <p><code>POST /api/boards/{board}/copy</code></p>
  3728. <p><em>Copy a board to a new one</em></p>
  3729. <p>If your are board admin or wekan admin, this copies the
  3730. given board to a new one.</p>
  3731. <blockquote>
  3732. <p>Body parameter</p>
  3733. </blockquote>
  3734. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  3735. </code></pre>
  3736. <h3 id="copy_board-parameters">Parameters</h3>
  3737. <table>
  3738. <thead>
  3739. <tr>
  3740. <th>Name</th>
  3741. <th>In</th>
  3742. <th>Type</th>
  3743. <th>Required</th>
  3744. <th>Description</th>
  3745. </tr>
  3746. </thead>
  3747. <tbody>
  3748. <tr>
  3749. <td>board</td>
  3750. <td>path</td>
  3751. <td>string</td>
  3752. <td>true</td>
  3753. <td>the board</td>
  3754. </tr>
  3755. <tr>
  3756. <td>body</td>
  3757. <td>body</td>
  3758. <td>object</td>
  3759. <td>true</td>
  3760. <td>none</td>
  3761. </tr>
  3762. <tr>
  3763. <td>» title</td>
  3764. <td>body</td>
  3765. <td>string</td>
  3766. <td>true</td>
  3767. <td>the title of the new board (default to old one)</td>
  3768. </tr>
  3769. </tbody>
  3770. </table>
  3771. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3772. <p><strong>board</strong>: the board</p>
  3773. <blockquote>
  3774. <p>Example responses</p>
  3775. </blockquote>
  3776. <blockquote>
  3777. <p>200 Response</p>
  3778. </blockquote>
  3779. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3780. </code></pre>
  3781. <h3 id="copy_board-responses">Responses</h3>
  3782. <table>
  3783. <thead>
  3784. <tr>
  3785. <th>Status</th>
  3786. <th>Meaning</th>
  3787. <th>Description</th>
  3788. <th>Schema</th>
  3789. </tr>
  3790. </thead>
  3791. <tbody>
  3792. <tr>
  3793. <td>200</td>
  3794. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3795. <td>200 response</td>
  3796. <td>string</td>
  3797. </tr>
  3798. </tbody>
  3799. </table>
  3800. <aside class="warning">
  3801. To perform this operation, you must be authenticated by means of one of the following methods:
  3802. UserSecurity
  3803. </aside>
  3804. <h2 id="add_board_label">add_board_label</h2>
  3805. <p><a id="opIdadd_board_label"></a></p>
  3806. <blockquote>
  3807. <p>Code samples</p>
  3808. </blockquote>
  3809. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3810. curl -X PUT /api/boards/{board}/labels \
  3811. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3812. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3813. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3814. </code></pre>
  3815. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/labels</span> <span class="hljs-meta">HTTP/1.1</span>
  3816. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3817. Accept: application/json
  3818. </span></code></pre>
  3819. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3820. &quot;label&quot;: &quot;string&quot;
  3821. }&#x27;</span>;
  3822. <span class="hljs-keyword">const</span> headers = {
  3823. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3824. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3825. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3826. };
  3827. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3828. {
  3829. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3830. <span class="hljs-attr">body</span>: inputBody,
  3831. <span class="hljs-attr">headers</span>: headers
  3832. })
  3833. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3834. <span class="hljs-keyword">return</span> res.json();
  3835. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3836. <span class="hljs-built_in">console</span>.log(body);
  3837. });
  3838. </code></pre>
  3839. <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">&#x27;node-fetch&#x27;</span>);
  3840. <span class="hljs-keyword">const</span> inputBody = {
  3841. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3842. };
  3843. <span class="hljs-keyword">const</span> headers = {
  3844. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3845. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3846. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3847. };
  3848. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3849. {
  3850. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3851. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3852. <span class="hljs-attr">headers</span>: headers
  3853. })
  3854. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3855. <span class="hljs-keyword">return</span> res.json();
  3856. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3857. <span class="hljs-built_in">console</span>.log(body);
  3858. });
  3859. </code></pre>
  3860. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3861. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3862. headers = {
  3863. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3864. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3865. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3866. }
  3867. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3868. <span class="hljs-symbol">params:</span> {
  3869. }, <span class="hljs-symbol">headers:</span> headers
  3870. p JSON.parse(result)
  3871. </code></pre>
  3872. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3873. headers = {
  3874. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3875. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3876. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3877. }
  3878. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3879. <span class="hljs-built_in">print</span>(r.json())
  3880. </code></pre>
  3881. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>);
  3882. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3883. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3884. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3885. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3886. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3887. String inputLine;
  3888. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3889. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3890. response.append(inputLine);
  3891. }
  3892. in.close();
  3893. System.out.println(response.toString());
  3894. </code></pre>
  3895. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3896. <span class="hljs-keyword">import</span> (
  3897. <span class="hljs-string">&quot;bytes&quot;</span>
  3898. <span class="hljs-string">&quot;net/http&quot;</span>
  3899. )
  3900. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3901. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3902. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  3903. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3904. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3905. }
  3906. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3907. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3908. req.Header = headers
  3909. client := &amp;http.Client{}
  3910. resp, err := client.Do(req)
  3911. <span class="hljs-comment">// ...</span>
  3912. }
  3913. </code></pre>
  3914. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3915. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3916. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3917. );
  3918. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3919. <span class="hljs-comment">// Define array of request body.</span>
  3920. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3921. <span class="hljs-keyword">try</span> {
  3922. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, <span class="hljs-keyword">array</span>(
  3923. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3924. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3925. )
  3926. );
  3927. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3928. }
  3929. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3930. <span class="hljs-comment">// handle exception or api errors.</span>
  3931. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3932. }
  3933. <span class="hljs-comment">// ...</span>
  3934. </code></pre>
  3935. <p><code>PUT /api/boards/{board}/labels</code></p>
  3936. <p><em>Add a label to a board</em></p>
  3937. <p>If the board doesn't have the name/color label, this function
  3938. adds the label to the board.</p>
  3939. <blockquote>
  3940. <p>Body parameter</p>
  3941. </blockquote>
  3942. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3943. </code></pre>
  3944. <h3 id="add_board_label-parameters">Parameters</h3>
  3945. <table>
  3946. <thead>
  3947. <tr>
  3948. <th>Name</th>
  3949. <th>In</th>
  3950. <th>Type</th>
  3951. <th>Required</th>
  3952. <th>Description</th>
  3953. </tr>
  3954. </thead>
  3955. <tbody>
  3956. <tr>
  3957. <td>board</td>
  3958. <td>path</td>
  3959. <td>string</td>
  3960. <td>true</td>
  3961. <td>the board</td>
  3962. </tr>
  3963. <tr>
  3964. <td>body</td>
  3965. <td>body</td>
  3966. <td>object</td>
  3967. <td>true</td>
  3968. <td>none</td>
  3969. </tr>
  3970. <tr>
  3971. <td>» label</td>
  3972. <td>body</td>
  3973. <td>string</td>
  3974. <td>true</td>
  3975. <td>the label value</td>
  3976. </tr>
  3977. </tbody>
  3978. </table>
  3979. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  3980. <p><strong>board</strong>: the board</p>
  3981. <blockquote>
  3982. <p>Example responses</p>
  3983. </blockquote>
  3984. <blockquote>
  3985. <p>200 Response</p>
  3986. </blockquote>
  3987. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3988. </code></pre>
  3989. <h3 id="add_board_label-responses">Responses</h3>
  3990. <table>
  3991. <thead>
  3992. <tr>
  3993. <th>Status</th>
  3994. <th>Meaning</th>
  3995. <th>Description</th>
  3996. <th>Schema</th>
  3997. </tr>
  3998. </thead>
  3999. <tbody>
  4000. <tr>
  4001. <td>200</td>
  4002. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4003. <td>200 response</td>
  4004. <td>string</td>
  4005. </tr>
  4006. </tbody>
  4007. </table>
  4008. <aside class="warning">
  4009. To perform this operation, you must be authenticated by means of one of the following methods:
  4010. UserSecurity
  4011. </aside>
  4012. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  4013. <p><a id="opIdset_board_member_permission"></a></p>
  4014. <blockquote>
  4015. <p>Code samples</p>
  4016. </blockquote>
  4017. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4018. curl -X POST /api/boards/{board}/members/{member} \
  4019. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4020. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4021. </code></pre>
  4022. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{member}</span> <span class="hljs-meta">HTTP/1.1</span>
  4023. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4024. </span></code></pre>
  4025. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4026. &quot;isAdmin&quot;: true,
  4027. &quot;isNoComments&quot;: true,
  4028. &quot;isCommentOnly&quot;: true,
  4029. &quot;isWorker&quot;: true
  4030. }&#x27;</span>;
  4031. <span class="hljs-keyword">const</span> headers = {
  4032. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4033. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4034. };
  4035. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  4036. {
  4037. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4038. <span class="hljs-attr">body</span>: inputBody,
  4039. <span class="hljs-attr">headers</span>: headers
  4040. })
  4041. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4042. <span class="hljs-keyword">return</span> res.json();
  4043. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4044. <span class="hljs-built_in">console</span>.log(body);
  4045. });
  4046. </code></pre>
  4047. <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">&#x27;node-fetch&#x27;</span>);
  4048. <span class="hljs-keyword">const</span> inputBody = {
  4049. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  4050. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  4051. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  4052. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  4053. };
  4054. <span class="hljs-keyword">const</span> headers = {
  4055. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4056. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4057. };
  4058. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  4059. {
  4060. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4061. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4062. <span class="hljs-attr">headers</span>: headers
  4063. })
  4064. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4065. <span class="hljs-keyword">return</span> res.json();
  4066. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4067. <span class="hljs-built_in">console</span>.log(body);
  4068. });
  4069. </code></pre>
  4070. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4071. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4072. headers = {
  4073. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4074. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4075. }
  4076. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  4077. <span class="hljs-symbol">params:</span> {
  4078. }, <span class="hljs-symbol">headers:</span> headers
  4079. p JSON.parse(result)
  4080. </code></pre>
  4081. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4082. headers = {
  4083. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4084. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4085. }
  4086. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  4087. <span class="hljs-built_in">print</span>(r.json())
  4088. </code></pre>
  4089. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/members/{member}&quot;</span>);
  4090. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4091. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4092. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4093. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4094. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4095. String inputLine;
  4096. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4097. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4098. response.append(inputLine);
  4099. }
  4100. in.close();
  4101. System.out.println(response.toString());
  4102. </code></pre>
  4103. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4104. <span class="hljs-keyword">import</span> (
  4105. <span class="hljs-string">&quot;bytes&quot;</span>
  4106. <span class="hljs-string">&quot;net/http&quot;</span>
  4107. )
  4108. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4109. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4110. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  4111. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4112. }
  4113. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4114. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/members/{member}&quot;</span>, data)
  4115. req.Header = headers
  4116. client := &amp;http.Client{}
  4117. resp, err := client.Do(req)
  4118. <span class="hljs-comment">// ...</span>
  4119. }
  4120. </code></pre>
  4121. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4122. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4123. );
  4124. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4125. <span class="hljs-comment">// Define array of request body.</span>
  4126. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4127. <span class="hljs-keyword">try</span> {
  4128. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, <span class="hljs-keyword">array</span>(
  4129. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4130. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4131. )
  4132. );
  4133. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4134. }
  4135. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4136. <span class="hljs-comment">// handle exception or api errors.</span>
  4137. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4138. }
  4139. <span class="hljs-comment">// ...</span>
  4140. </code></pre>
  4141. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  4142. <p><em>Change the permission of a member of a board</em></p>
  4143. <blockquote>
  4144. <p>Body parameter</p>
  4145. </blockquote>
  4146. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  4147. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  4148. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  4149. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  4150. </code></pre>
  4151. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  4152. <table>
  4153. <thead>
  4154. <tr>
  4155. <th>Name</th>
  4156. <th>In</th>
  4157. <th>Type</th>
  4158. <th>Required</th>
  4159. <th>Description</th>
  4160. </tr>
  4161. </thead>
  4162. <tbody>
  4163. <tr>
  4164. <td>board</td>
  4165. <td>path</td>
  4166. <td>string</td>
  4167. <td>true</td>
  4168. <td>the ID of the board that we are changing</td>
  4169. </tr>
  4170. <tr>
  4171. <td>member</td>
  4172. <td>path</td>
  4173. <td>string</td>
  4174. <td>true</td>
  4175. <td>the ID of the user to change permissions</td>
  4176. </tr>
  4177. <tr>
  4178. <td>body</td>
  4179. <td>body</td>
  4180. <td>object</td>
  4181. <td>true</td>
  4182. <td>none</td>
  4183. </tr>
  4184. <tr>
  4185. <td>» isAdmin</td>
  4186. <td>body</td>
  4187. <td>boolean</td>
  4188. <td>true</td>
  4189. <td>admin capability</td>
  4190. </tr>
  4191. <tr>
  4192. <td>» isNoComments</td>
  4193. <td>body</td>
  4194. <td>boolean</td>
  4195. <td>true</td>
  4196. <td>NoComments capability</td>
  4197. </tr>
  4198. <tr>
  4199. <td>» isCommentOnly</td>
  4200. <td>body</td>
  4201. <td>boolean</td>
  4202. <td>true</td>
  4203. <td>CommentsOnly capability</td>
  4204. </tr>
  4205. <tr>
  4206. <td>» isWorker</td>
  4207. <td>body</td>
  4208. <td>boolean</td>
  4209. <td>true</td>
  4210. <td>Worker capability</td>
  4211. </tr>
  4212. </tbody>
  4213. </table>
  4214. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4215. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4216. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4217. <h3 id="set_board_member_permission-responses">Responses</h3>
  4218. <table>
  4219. <thead>
  4220. <tr>
  4221. <th>Status</th>
  4222. <th>Meaning</th>
  4223. <th>Description</th>
  4224. <th>Schema</th>
  4225. </tr>
  4226. </thead>
  4227. <tbody>
  4228. <tr>
  4229. <td>200</td>
  4230. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4231. <td>200 response</td>
  4232. <td>None</td>
  4233. </tr>
  4234. </tbody>
  4235. </table>
  4236. <aside class="warning">
  4237. To perform this operation, you must be authenticated by means of one of the following methods:
  4238. UserSecurity
  4239. </aside>
  4240. <h2 id="update_board_title">update_board_title</h2>
  4241. <p><a id="opIdupdate_board_title"></a></p>
  4242. <blockquote>
  4243. <p>Code samples</p>
  4244. </blockquote>
  4245. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4246. curl -X PUT /api/boards/{board}/title \
  4247. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4248. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4249. </code></pre>
  4250. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/title</span> <span class="hljs-meta">HTTP/1.1</span>
  4251. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4252. </span></code></pre>
  4253. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4254. &quot;title&quot;: &quot;string&quot;
  4255. }&#x27;</span>;
  4256. <span class="hljs-keyword">const</span> headers = {
  4257. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4258. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4259. };
  4260. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/title&#x27;</span>,
  4261. {
  4262. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  4263. <span class="hljs-attr">body</span>: inputBody,
  4264. <span class="hljs-attr">headers</span>: headers
  4265. })
  4266. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4267. <span class="hljs-keyword">return</span> res.json();
  4268. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4269. <span class="hljs-built_in">console</span>.log(body);
  4270. });
  4271. </code></pre>
  4272. <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">&#x27;node-fetch&#x27;</span>);
  4273. <span class="hljs-keyword">const</span> inputBody = {
  4274. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4275. };
  4276. <span class="hljs-keyword">const</span> headers = {
  4277. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4278. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4279. };
  4280. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/title&#x27;</span>,
  4281. {
  4282. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  4283. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4284. <span class="hljs-attr">headers</span>: headers
  4285. })
  4286. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4287. <span class="hljs-keyword">return</span> res.json();
  4288. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4289. <span class="hljs-built_in">console</span>.log(body);
  4290. });
  4291. </code></pre>
  4292. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4293. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4294. headers = {
  4295. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4296. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4297. }
  4298. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/title&#x27;</span>,
  4299. <span class="hljs-symbol">params:</span> {
  4300. }, <span class="hljs-symbol">headers:</span> headers
  4301. p JSON.parse(result)
  4302. </code></pre>
  4303. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4304. headers = {
  4305. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4306. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4307. }
  4308. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/title&#x27;</span>, headers = headers)
  4309. <span class="hljs-built_in">print</span>(r.json())
  4310. </code></pre>
  4311. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/title&quot;</span>);
  4312. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4313. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  4314. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4315. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4316. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4317. String inputLine;
  4318. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4319. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4320. response.append(inputLine);
  4321. }
  4322. in.close();
  4323. System.out.println(response.toString());
  4324. </code></pre>
  4325. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4326. <span class="hljs-keyword">import</span> (
  4327. <span class="hljs-string">&quot;bytes&quot;</span>
  4328. <span class="hljs-string">&quot;net/http&quot;</span>
  4329. )
  4330. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4331. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4332. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  4333. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4334. }
  4335. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4336. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/title&quot;</span>, data)
  4337. req.Header = headers
  4338. client := &amp;http.Client{}
  4339. resp, err := client.Do(req)
  4340. <span class="hljs-comment">// ...</span>
  4341. }
  4342. </code></pre>
  4343. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4344. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4345. );
  4346. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4347. <span class="hljs-comment">// Define array of request body.</span>
  4348. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4349. <span class="hljs-keyword">try</span> {
  4350. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/title&#x27;</span>, <span class="hljs-keyword">array</span>(
  4351. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4352. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4353. )
  4354. );
  4355. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4356. }
  4357. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4358. <span class="hljs-comment">// handle exception or api errors.</span>
  4359. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4360. }
  4361. <span class="hljs-comment">// ...</span>
  4362. </code></pre>
  4363. <p><code>PUT /api/boards/{board}/title</code></p>
  4364. <p><em>Update the title of a board</em></p>
  4365. <blockquote>
  4366. <p>Body parameter</p>
  4367. </blockquote>
  4368. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4369. </code></pre>
  4370. <h3 id="update_board_title-parameters">Parameters</h3>
  4371. <table>
  4372. <thead>
  4373. <tr>
  4374. <th>Name</th>
  4375. <th>In</th>
  4376. <th>Type</th>
  4377. <th>Required</th>
  4378. <th>Description</th>
  4379. </tr>
  4380. </thead>
  4381. <tbody>
  4382. <tr>
  4383. <td>board</td>
  4384. <td>path</td>
  4385. <td>string</td>
  4386. <td>true</td>
  4387. <td>the ID of the board to update</td>
  4388. </tr>
  4389. <tr>
  4390. <td>body</td>
  4391. <td>body</td>
  4392. <td>object</td>
  4393. <td>true</td>
  4394. <td>none</td>
  4395. </tr>
  4396. <tr>
  4397. <td>» title</td>
  4398. <td>body</td>
  4399. <td>string</td>
  4400. <td>true</td>
  4401. <td>the new title for the board</td>
  4402. </tr>
  4403. </tbody>
  4404. </table>
  4405. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4406. <p><strong>board</strong>: the ID of the board to update</p>
  4407. <h3 id="update_board_title-responses">Responses</h3>
  4408. <table>
  4409. <thead>
  4410. <tr>
  4411. <th>Status</th>
  4412. <th>Meaning</th>
  4413. <th>Description</th>
  4414. <th>Schema</th>
  4415. </tr>
  4416. </thead>
  4417. <tbody>
  4418. <tr>
  4419. <td>200</td>
  4420. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4421. <td>200 response</td>
  4422. <td>None</td>
  4423. </tr>
  4424. </tbody>
  4425. </table>
  4426. <aside class="warning">
  4427. To perform this operation, you must be authenticated by means of one of the following methods:
  4428. UserSecurity
  4429. </aside>
  4430. <h2 id="get_boards_count">get_boards_count</h2>
  4431. <p><a id="opIdget_boards_count"></a></p>
  4432. <blockquote>
  4433. <p>Code samples</p>
  4434. </blockquote>
  4435. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4436. curl -X GET /api/boards_count \
  4437. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4438. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4439. </code></pre>
  4440. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards_count</span> <span class="hljs-meta">HTTP/1.1</span>
  4441. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4442. </span></code></pre>
  4443. <pre class="highlight tab tab-javascript"><code>
  4444. <span class="hljs-keyword">const</span> headers = {
  4445. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4446. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4447. };
  4448. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4449. {
  4450. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4451. <span class="hljs-attr">headers</span>: headers
  4452. })
  4453. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4454. <span class="hljs-keyword">return</span> res.json();
  4455. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4456. <span class="hljs-built_in">console</span>.log(body);
  4457. });
  4458. </code></pre>
  4459. <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">&#x27;node-fetch&#x27;</span>);
  4460. <span class="hljs-keyword">const</span> headers = {
  4461. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4462. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4463. };
  4464. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4465. {
  4466. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4467. <span class="hljs-attr">headers</span>: headers
  4468. })
  4469. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4470. <span class="hljs-keyword">return</span> res.json();
  4471. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4472. <span class="hljs-built_in">console</span>.log(body);
  4473. });
  4474. </code></pre>
  4475. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4476. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4477. headers = {
  4478. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4479. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4480. }
  4481. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4482. <span class="hljs-symbol">params:</span> {
  4483. }, <span class="hljs-symbol">headers:</span> headers
  4484. p JSON.parse(result)
  4485. </code></pre>
  4486. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4487. headers = {
  4488. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4489. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4490. }
  4491. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4492. <span class="hljs-built_in">print</span>(r.json())
  4493. </code></pre>
  4494. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards_count&quot;</span>);
  4495. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4496. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4497. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4498. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4499. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4500. String inputLine;
  4501. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4502. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4503. response.append(inputLine);
  4504. }
  4505. in.close();
  4506. System.out.println(response.toString());
  4507. </code></pre>
  4508. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4509. <span class="hljs-keyword">import</span> (
  4510. <span class="hljs-string">&quot;bytes&quot;</span>
  4511. <span class="hljs-string">&quot;net/http&quot;</span>
  4512. )
  4513. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4514. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4515. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4516. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4517. }
  4518. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4519. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4520. req.Header = headers
  4521. client := &amp;http.Client{}
  4522. resp, err := client.Do(req)
  4523. <span class="hljs-comment">// ...</span>
  4524. }
  4525. </code></pre>
  4526. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4527. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4528. );
  4529. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4530. <span class="hljs-comment">// Define array of request body.</span>
  4531. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4532. <span class="hljs-keyword">try</span> {
  4533. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, <span class="hljs-keyword">array</span>(
  4534. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4535. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4536. )
  4537. );
  4538. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4539. }
  4540. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4541. <span class="hljs-comment">// handle exception or api errors.</span>
  4542. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4543. }
  4544. <span class="hljs-comment">// ...</span>
  4545. </code></pre>
  4546. <p><code>GET /api/boards_count</code></p>
  4547. <p><em>Get public and private boards count</em></p>
  4548. <blockquote>
  4549. <p>Example responses</p>
  4550. </blockquote>
  4551. <blockquote>
  4552. <p>200 Response</p>
  4553. </blockquote>
  4554. <pre class="highlight tab tab-json"><code>{
  4555. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4556. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4557. }
  4558. </code></pre>
  4559. <h3 id="get_boards_count-responses">Responses</h3>
  4560. <table>
  4561. <thead>
  4562. <tr>
  4563. <th>Status</th>
  4564. <th>Meaning</th>
  4565. <th>Description</th>
  4566. <th>Schema</th>
  4567. </tr>
  4568. </thead>
  4569. <tbody>
  4570. <tr>
  4571. <td>200</td>
  4572. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4573. <td>200 response</td>
  4574. <td>Inline</td>
  4575. </tr>
  4576. </tbody>
  4577. </table>
  4578. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4579. <p>Status Code <strong>200</strong></p>
  4580. <table>
  4581. <thead>
  4582. <tr>
  4583. <th>Name</th>
  4584. <th>Type</th>
  4585. <th>Required</th>
  4586. <th>Restrictions</th>
  4587. <th>Description</th>
  4588. </tr>
  4589. </thead>
  4590. <tbody>
  4591. <tr>
  4592. <td>» private</td>
  4593. <td>integer</td>
  4594. <td>false</td>
  4595. <td>none</td>
  4596. <td>none</td>
  4597. </tr>
  4598. <tr>
  4599. <td>» public</td>
  4600. <td>integer</td>
  4601. <td>false</td>
  4602. <td>none</td>
  4603. <td>none</td>
  4604. </tr>
  4605. </tbody>
  4606. </table>
  4607. <aside class="warning">
  4608. To perform this operation, you must be authenticated by means of one of the following methods:
  4609. UserSecurity
  4610. </aside>
  4611. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4612. <p><a id="opIdget_boards_from_user"></a></p>
  4613. <blockquote>
  4614. <p>Code samples</p>
  4615. </blockquote>
  4616. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4617. curl -X GET /api/users/{user}/boards \
  4618. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4619. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4620. </code></pre>
  4621. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users/{user}/boards</span> <span class="hljs-meta">HTTP/1.1</span>
  4622. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4623. </span></code></pre>
  4624. <pre class="highlight tab tab-javascript"><code>
  4625. <span class="hljs-keyword">const</span> headers = {
  4626. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4627. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4628. };
  4629. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4630. {
  4631. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4632. <span class="hljs-attr">headers</span>: headers
  4633. })
  4634. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4635. <span class="hljs-keyword">return</span> res.json();
  4636. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4637. <span class="hljs-built_in">console</span>.log(body);
  4638. });
  4639. </code></pre>
  4640. <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">&#x27;node-fetch&#x27;</span>);
  4641. <span class="hljs-keyword">const</span> headers = {
  4642. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4643. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4644. };
  4645. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4646. {
  4647. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4648. <span class="hljs-attr">headers</span>: headers
  4649. })
  4650. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4651. <span class="hljs-keyword">return</span> res.json();
  4652. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4653. <span class="hljs-built_in">console</span>.log(body);
  4654. });
  4655. </code></pre>
  4656. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4657. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4658. headers = {
  4659. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4660. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4661. }
  4662. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4663. <span class="hljs-symbol">params:</span> {
  4664. }, <span class="hljs-symbol">headers:</span> headers
  4665. p JSON.parse(result)
  4666. </code></pre>
  4667. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4668. headers = {
  4669. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4670. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4671. }
  4672. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4673. <span class="hljs-built_in">print</span>(r.json())
  4674. </code></pre>
  4675. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>);
  4676. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4677. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4678. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4679. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4680. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4681. String inputLine;
  4682. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4683. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4684. response.append(inputLine);
  4685. }
  4686. in.close();
  4687. System.out.println(response.toString());
  4688. </code></pre>
  4689. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4690. <span class="hljs-keyword">import</span> (
  4691. <span class="hljs-string">&quot;bytes&quot;</span>
  4692. <span class="hljs-string">&quot;net/http&quot;</span>
  4693. )
  4694. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4695. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4696. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4697. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4698. }
  4699. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4700. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4701. req.Header = headers
  4702. client := &amp;http.Client{}
  4703. resp, err := client.Do(req)
  4704. <span class="hljs-comment">// ...</span>
  4705. }
  4706. </code></pre>
  4707. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4708. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4709. );
  4710. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4711. <span class="hljs-comment">// Define array of request body.</span>
  4712. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4713. <span class="hljs-keyword">try</span> {
  4714. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, <span class="hljs-keyword">array</span>(
  4715. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4716. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4717. )
  4718. );
  4719. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4720. }
  4721. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4722. <span class="hljs-comment">// handle exception or api errors.</span>
  4723. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4724. }
  4725. <span class="hljs-comment">// ...</span>
  4726. </code></pre>
  4727. <p><code>GET /api/users/{user}/boards</code></p>
  4728. <p><em>Get all boards attached to a user</em></p>
  4729. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4730. <table>
  4731. <thead>
  4732. <tr>
  4733. <th>Name</th>
  4734. <th>In</th>
  4735. <th>Type</th>
  4736. <th>Required</th>
  4737. <th>Description</th>
  4738. </tr>
  4739. </thead>
  4740. <tbody>
  4741. <tr>
  4742. <td>user</td>
  4743. <td>path</td>
  4744. <td>string</td>
  4745. <td>true</td>
  4746. <td>the ID of the user to retrieve the data</td>
  4747. </tr>
  4748. </tbody>
  4749. </table>
  4750. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4751. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4752. <blockquote>
  4753. <p>Example responses</p>
  4754. </blockquote>
  4755. <blockquote>
  4756. <p>200 Response</p>
  4757. </blockquote>
  4758. <pre class="highlight tab tab-json"><code>[
  4759. {
  4760. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4761. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4762. }
  4763. ]
  4764. </code></pre>
  4765. <h3 id="get_boards_from_user-responses">Responses</h3>
  4766. <table>
  4767. <thead>
  4768. <tr>
  4769. <th>Status</th>
  4770. <th>Meaning</th>
  4771. <th>Description</th>
  4772. <th>Schema</th>
  4773. </tr>
  4774. </thead>
  4775. <tbody>
  4776. <tr>
  4777. <td>200</td>
  4778. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4779. <td>200 response</td>
  4780. <td>Inline</td>
  4781. </tr>
  4782. </tbody>
  4783. </table>
  4784. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4785. <p>Status Code <strong>200</strong></p>
  4786. <table>
  4787. <thead>
  4788. <tr>
  4789. <th>Name</th>
  4790. <th>Type</th>
  4791. <th>Required</th>
  4792. <th>Restrictions</th>
  4793. <th>Description</th>
  4794. </tr>
  4795. </thead>
  4796. <tbody>
  4797. <tr>
  4798. <td>» _id</td>
  4799. <td>string</td>
  4800. <td>false</td>
  4801. <td>none</td>
  4802. <td>none</td>
  4803. </tr>
  4804. <tr>
  4805. <td>» title</td>
  4806. <td>string</td>
  4807. <td>false</td>
  4808. <td>none</td>
  4809. <td>none</td>
  4810. </tr>
  4811. </tbody>
  4812. </table>
  4813. <aside class="warning">
  4814. To perform this operation, you must be authenticated by means of one of the following methods:
  4815. UserSecurity
  4816. </aside>
  4817. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4818. <h2 id="get_all_checklists">get_all_checklists</h2>
  4819. <p><a id="opIdget_all_checklists"></a></p>
  4820. <blockquote>
  4821. <p>Code samples</p>
  4822. </blockquote>
  4823. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4824. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4825. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4826. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4827. </code></pre>
  4828. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> <span class="hljs-meta">HTTP/1.1</span>
  4829. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4830. </span></code></pre>
  4831. <pre class="highlight tab tab-javascript"><code>
  4832. <span class="hljs-keyword">const</span> headers = {
  4833. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4834. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4835. };
  4836. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4837. {
  4838. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4839. <span class="hljs-attr">headers</span>: headers
  4840. })
  4841. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4842. <span class="hljs-keyword">return</span> res.json();
  4843. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4844. <span class="hljs-built_in">console</span>.log(body);
  4845. });
  4846. </code></pre>
  4847. <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">&#x27;node-fetch&#x27;</span>);
  4848. <span class="hljs-keyword">const</span> headers = {
  4849. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4850. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4851. };
  4852. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4853. {
  4854. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4855. <span class="hljs-attr">headers</span>: headers
  4856. })
  4857. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4858. <span class="hljs-keyword">return</span> res.json();
  4859. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4860. <span class="hljs-built_in">console</span>.log(body);
  4861. });
  4862. </code></pre>
  4863. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4864. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4865. headers = {
  4866. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4867. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4868. }
  4869. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4870. <span class="hljs-symbol">params:</span> {
  4871. }, <span class="hljs-symbol">headers:</span> headers
  4872. p JSON.parse(result)
  4873. </code></pre>
  4874. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4875. headers = {
  4876. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4877. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4878. }
  4879. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4880. <span class="hljs-built_in">print</span>(r.json())
  4881. </code></pre>
  4882. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists&quot;</span>);
  4883. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4884. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4885. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4886. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4887. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4888. String inputLine;
  4889. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4890. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4891. response.append(inputLine);
  4892. }
  4893. in.close();
  4894. System.out.println(response.toString());
  4895. </code></pre>
  4896. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4897. <span class="hljs-keyword">import</span> (
  4898. <span class="hljs-string">&quot;bytes&quot;</span>
  4899. <span class="hljs-string">&quot;net/http&quot;</span>
  4900. )
  4901. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4902. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4903. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4904. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4905. }
  4906. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4907. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists&quot;</span>, data)
  4908. req.Header = headers
  4909. client := &amp;http.Client{}
  4910. resp, err := client.Do(req)
  4911. <span class="hljs-comment">// ...</span>
  4912. }
  4913. </code></pre>
  4914. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4915. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4916. );
  4917. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4918. <span class="hljs-comment">// Define array of request body.</span>
  4919. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4920. <span class="hljs-keyword">try</span> {
  4921. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, <span class="hljs-keyword">array</span>(
  4922. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4923. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4924. )
  4925. );
  4926. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4927. }
  4928. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4929. <span class="hljs-comment">// handle exception or api errors.</span>
  4930. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4931. }
  4932. <span class="hljs-comment">// ...</span>
  4933. </code></pre>
  4934. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4935. <p><em>Get the list of checklists attached to a card</em></p>
  4936. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4937. <table>
  4938. <thead>
  4939. <tr>
  4940. <th>Name</th>
  4941. <th>In</th>
  4942. <th>Type</th>
  4943. <th>Required</th>
  4944. <th>Description</th>
  4945. </tr>
  4946. </thead>
  4947. <tbody>
  4948. <tr>
  4949. <td>board</td>
  4950. <td>path</td>
  4951. <td>string</td>
  4952. <td>true</td>
  4953. <td>the board ID</td>
  4954. </tr>
  4955. <tr>
  4956. <td>card</td>
  4957. <td>path</td>
  4958. <td>string</td>
  4959. <td>true</td>
  4960. <td>the card ID</td>
  4961. </tr>
  4962. </tbody>
  4963. </table>
  4964. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  4965. <p><strong>board</strong>: the board ID</p>
  4966. <p><strong>card</strong>: the card ID</p>
  4967. <blockquote>
  4968. <p>Example responses</p>
  4969. </blockquote>
  4970. <blockquote>
  4971. <p>200 Response</p>
  4972. </blockquote>
  4973. <pre class="highlight tab tab-json"><code>[
  4974. {
  4975. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4976. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4977. }
  4978. ]
  4979. </code></pre>
  4980. <h3 id="get_all_checklists-responses">Responses</h3>
  4981. <table>
  4982. <thead>
  4983. <tr>
  4984. <th>Status</th>
  4985. <th>Meaning</th>
  4986. <th>Description</th>
  4987. <th>Schema</th>
  4988. </tr>
  4989. </thead>
  4990. <tbody>
  4991. <tr>
  4992. <td>200</td>
  4993. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4994. <td>200 response</td>
  4995. <td>Inline</td>
  4996. </tr>
  4997. </tbody>
  4998. </table>
  4999. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  5000. <p>Status Code <strong>200</strong></p>
  5001. <table>
  5002. <thead>
  5003. <tr>
  5004. <th>Name</th>
  5005. <th>Type</th>
  5006. <th>Required</th>
  5007. <th>Restrictions</th>
  5008. <th>Description</th>
  5009. </tr>
  5010. </thead>
  5011. <tbody>
  5012. <tr>
  5013. <td>» _id</td>
  5014. <td>string</td>
  5015. <td>false</td>
  5016. <td>none</td>
  5017. <td>none</td>
  5018. </tr>
  5019. <tr>
  5020. <td>» title</td>
  5021. <td>string</td>
  5022. <td>false</td>
  5023. <td>none</td>
  5024. <td>none</td>
  5025. </tr>
  5026. </tbody>
  5027. </table>
  5028. <aside class="warning">
  5029. To perform this operation, you must be authenticated by means of one of the following methods:
  5030. UserSecurity
  5031. </aside>
  5032. <h2 id="new_checklist">new_checklist</h2>
  5033. <p><a id="opIdnew_checklist"></a></p>
  5034. <blockquote>
  5035. <p>Code samples</p>
  5036. </blockquote>
  5037. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5038. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  5039. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5040. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5041. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5042. </code></pre>
  5043. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> <span class="hljs-meta">HTTP/1.1</span>
  5044. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5045. Accept: application/json
  5046. </span></code></pre>
  5047. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5048. &quot;title&quot;: &quot;string&quot;,
  5049. &quot;items&quot;: &quot;string&quot;
  5050. }&#x27;</span>;
  5051. <span class="hljs-keyword">const</span> headers = {
  5052. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5053. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5054. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5055. };
  5056. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  5057. {
  5058. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  5059. <span class="hljs-attr">body</span>: inputBody,
  5060. <span class="hljs-attr">headers</span>: headers
  5061. })
  5062. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5063. <span class="hljs-keyword">return</span> res.json();
  5064. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5065. <span class="hljs-built_in">console</span>.log(body);
  5066. });
  5067. </code></pre>
  5068. <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">&#x27;node-fetch&#x27;</span>);
  5069. <span class="hljs-keyword">const</span> inputBody = {
  5070. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5071. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5072. };
  5073. <span class="hljs-keyword">const</span> headers = {
  5074. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5075. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5076. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5077. };
  5078. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  5079. {
  5080. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  5081. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5082. <span class="hljs-attr">headers</span>: headers
  5083. })
  5084. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5085. <span class="hljs-keyword">return</span> res.json();
  5086. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5087. <span class="hljs-built_in">console</span>.log(body);
  5088. });
  5089. </code></pre>
  5090. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5091. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5092. headers = {
  5093. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5094. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5095. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5096. }
  5097. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  5098. <span class="hljs-symbol">params:</span> {
  5099. }, <span class="hljs-symbol">headers:</span> headers
  5100. p JSON.parse(result)
  5101. </code></pre>
  5102. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5103. headers = {
  5104. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5105. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5106. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5107. }
  5108. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  5109. <span class="hljs-built_in">print</span>(r.json())
  5110. </code></pre>
  5111. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists&quot;</span>);
  5112. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5113. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  5114. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5115. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5116. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5117. String inputLine;
  5118. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5119. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5120. response.append(inputLine);
  5121. }
  5122. in.close();
  5123. System.out.println(response.toString());
  5124. </code></pre>
  5125. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5126. <span class="hljs-keyword">import</span> (
  5127. <span class="hljs-string">&quot;bytes&quot;</span>
  5128. <span class="hljs-string">&quot;net/http&quot;</span>
  5129. )
  5130. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5131. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5132. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  5133. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5134. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5135. }
  5136. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5137. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists&quot;</span>, data)
  5138. req.Header = headers
  5139. client := &amp;http.Client{}
  5140. resp, err := client.Do(req)
  5141. <span class="hljs-comment">// ...</span>
  5142. }
  5143. </code></pre>
  5144. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5145. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5146. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5147. );
  5148. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5149. <span class="hljs-comment">// Define array of request body.</span>
  5150. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5151. <span class="hljs-keyword">try</span> {
  5152. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, <span class="hljs-keyword">array</span>(
  5153. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5154. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5155. )
  5156. );
  5157. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5158. }
  5159. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5160. <span class="hljs-comment">// handle exception or api errors.</span>
  5161. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5162. }
  5163. <span class="hljs-comment">// ...</span>
  5164. </code></pre>
  5165. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  5166. <p><em>create a new checklist</em></p>
  5167. <blockquote>
  5168. <p>Body parameter</p>
  5169. </blockquote>
  5170. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5171. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  5172. </code></pre>
  5173. <h3 id="new_checklist-parameters">Parameters</h3>
  5174. <table>
  5175. <thead>
  5176. <tr>
  5177. <th>Name</th>
  5178. <th>In</th>
  5179. <th>Type</th>
  5180. <th>Required</th>
  5181. <th>Description</th>
  5182. </tr>
  5183. </thead>
  5184. <tbody>
  5185. <tr>
  5186. <td>board</td>
  5187. <td>path</td>
  5188. <td>string</td>
  5189. <td>true</td>
  5190. <td>the board ID</td>
  5191. </tr>
  5192. <tr>
  5193. <td>card</td>
  5194. <td>path</td>
  5195. <td>string</td>
  5196. <td>true</td>
  5197. <td>the card ID</td>
  5198. </tr>
  5199. <tr>
  5200. <td>body</td>
  5201. <td>body</td>
  5202. <td>object</td>
  5203. <td>true</td>
  5204. <td>none</td>
  5205. </tr>
  5206. <tr>
  5207. <td>» title</td>
  5208. <td>body</td>
  5209. <td>string</td>
  5210. <td>true</td>
  5211. <td>the title of the new checklist</td>
  5212. </tr>
  5213. <tr>
  5214. <td>» items</td>
  5215. <td>body</td>
  5216. <td>string</td>
  5217. <td>false</td>
  5218. <td>the list of items on the new checklist</td>
  5219. </tr>
  5220. </tbody>
  5221. </table>
  5222. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5223. <p><strong>board</strong>: the board ID</p>
  5224. <p><strong>card</strong>: the card ID</p>
  5225. <blockquote>
  5226. <p>Example responses</p>
  5227. </blockquote>
  5228. <blockquote>
  5229. <p>200 Response</p>
  5230. </blockquote>
  5231. <pre class="highlight tab tab-json"><code>{
  5232. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5233. }
  5234. </code></pre>
  5235. <h3 id="new_checklist-responses">Responses</h3>
  5236. <table>
  5237. <thead>
  5238. <tr>
  5239. <th>Status</th>
  5240. <th>Meaning</th>
  5241. <th>Description</th>
  5242. <th>Schema</th>
  5243. </tr>
  5244. </thead>
  5245. <tbody>
  5246. <tr>
  5247. <td>200</td>
  5248. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5249. <td>200 response</td>
  5250. <td>Inline</td>
  5251. </tr>
  5252. </tbody>
  5253. </table>
  5254. <h3 id="new_checklist-responseschema">Response Schema</h3>
  5255. <p>Status Code <strong>200</strong></p>
  5256. <table>
  5257. <thead>
  5258. <tr>
  5259. <th>Name</th>
  5260. <th>Type</th>
  5261. <th>Required</th>
  5262. <th>Restrictions</th>
  5263. <th>Description</th>
  5264. </tr>
  5265. </thead>
  5266. <tbody>
  5267. <tr>
  5268. <td>» _id</td>
  5269. <td>string</td>
  5270. <td>false</td>
  5271. <td>none</td>
  5272. <td>none</td>
  5273. </tr>
  5274. </tbody>
  5275. </table>
  5276. <aside class="warning">
  5277. To perform this operation, you must be authenticated by means of one of the following methods:
  5278. UserSecurity
  5279. </aside>
  5280. <h2 id="get_checklist">get_checklist</h2>
  5281. <p><a id="opIdget_checklist"></a></p>
  5282. <blockquote>
  5283. <p>Code samples</p>
  5284. </blockquote>
  5285. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5286. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5287. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5288. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5289. </code></pre>
  5290. <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> <span class="hljs-meta">HTTP/1.1</span>
  5291. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5292. </span></code></pre>
  5293. <pre class="highlight tab tab-javascript"><code>
  5294. <span class="hljs-keyword">const</span> headers = {
  5295. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5296. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5297. };
  5298. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5299. {
  5300. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5301. <span class="hljs-attr">headers</span>: headers
  5302. })
  5303. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5304. <span class="hljs-keyword">return</span> res.json();
  5305. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5306. <span class="hljs-built_in">console</span>.log(body);
  5307. });
  5308. </code></pre>
  5309. <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">&#x27;node-fetch&#x27;</span>);
  5310. <span class="hljs-keyword">const</span> headers = {
  5311. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5312. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5313. };
  5314. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5315. {
  5316. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5317. <span class="hljs-attr">headers</span>: headers
  5318. })
  5319. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5320. <span class="hljs-keyword">return</span> res.json();
  5321. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5322. <span class="hljs-built_in">console</span>.log(body);
  5323. });
  5324. </code></pre>
  5325. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5326. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5327. headers = {
  5328. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5329. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5330. }
  5331. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5332. <span class="hljs-symbol">params:</span> {
  5333. }, <span class="hljs-symbol">headers:</span> headers
  5334. p JSON.parse(result)
  5335. </code></pre>
  5336. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5337. headers = {
  5338. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5339. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5340. }
  5341. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5342. <span class="hljs-built_in">print</span>(r.json())
  5343. </code></pre>
  5344. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}&quot;</span>);
  5345. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5346. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5347. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5348. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5349. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5350. String inputLine;
  5351. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5352. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5353. response.append(inputLine);
  5354. }
  5355. in.close();
  5356. System.out.println(response.toString());
  5357. </code></pre>
  5358. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5359. <span class="hljs-keyword">import</span> (
  5360. <span class="hljs-string">&quot;bytes&quot;</span>
  5361. <span class="hljs-string">&quot;net/http&quot;</span>
  5362. )
  5363. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5364. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5365. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5366. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5367. }
  5368. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5369. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}&quot;</span>, data)
  5370. req.Header = headers
  5371. client := &amp;http.Client{}
  5372. resp, err := client.Do(req)
  5373. <span class="hljs-comment">// ...</span>
  5374. }
  5375. </code></pre>
  5376. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5377. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5378. );
  5379. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5380. <span class="hljs-comment">// Define array of request body.</span>
  5381. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5382. <span class="hljs-keyword">try</span> {
  5383. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, <span class="hljs-keyword">array</span>(
  5384. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5385. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5386. )
  5387. );
  5388. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5389. }
  5390. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5391. <span class="hljs-comment">// handle exception or api errors.</span>
  5392. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5393. }
  5394. <span class="hljs-comment">// ...</span>
  5395. </code></pre>
  5396. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5397. <p><em>Get a checklist</em></p>
  5398. <h3 id="get_checklist-parameters">Parameters</h3>
  5399. <table>
  5400. <thead>
  5401. <tr>
  5402. <th>Name</th>
  5403. <th>In</th>
  5404. <th>Type</th>
  5405. <th>Required</th>
  5406. <th>Description</th>
  5407. </tr>
  5408. </thead>
  5409. <tbody>
  5410. <tr>
  5411. <td>board</td>
  5412. <td>path</td>
  5413. <td>string</td>
  5414. <td>true</td>
  5415. <td>the board ID</td>
  5416. </tr>
  5417. <tr>
  5418. <td>card</td>
  5419. <td>path</td>
  5420. <td>string</td>
  5421. <td>true</td>
  5422. <td>the card ID</td>
  5423. </tr>
  5424. <tr>
  5425. <td>checklist</td>
  5426. <td>path</td>
  5427. <td>string</td>
  5428. <td>true</td>
  5429. <td>the ID of the checklist</td>
  5430. </tr>
  5431. </tbody>
  5432. </table>
  5433. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5434. <p><strong>board</strong>: the board ID</p>
  5435. <p><strong>card</strong>: the card ID</p>
  5436. <p><strong>checklist</strong>: the ID of the checklist</p>
  5437. <blockquote>
  5438. <p>Example responses</p>
  5439. </blockquote>
  5440. <blockquote>
  5441. <p>200 Response</p>
  5442. </blockquote>
  5443. <pre class="highlight tab tab-json"><code>{
  5444. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5445. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5446. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5447. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5448. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5449. <span class="hljs-attr">&quot;items&quot;</span>: [
  5450. {
  5451. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5452. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5453. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5454. }
  5455. ]
  5456. }
  5457. </code></pre>
  5458. <h3 id="get_checklist-responses">Responses</h3>
  5459. <table>
  5460. <thead>
  5461. <tr>
  5462. <th>Status</th>
  5463. <th>Meaning</th>
  5464. <th>Description</th>
  5465. <th>Schema</th>
  5466. </tr>
  5467. </thead>
  5468. <tbody>
  5469. <tr>
  5470. <td>200</td>
  5471. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5472. <td>200 response</td>
  5473. <td>Inline</td>
  5474. </tr>
  5475. </tbody>
  5476. </table>
  5477. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5478. <p>Status Code <strong>200</strong></p>
  5479. <table>
  5480. <thead>
  5481. <tr>
  5482. <th>Name</th>
  5483. <th>Type</th>
  5484. <th>Required</th>
  5485. <th>Restrictions</th>
  5486. <th>Description</th>
  5487. </tr>
  5488. </thead>
  5489. <tbody>
  5490. <tr>
  5491. <td>» cardId</td>
  5492. <td>string</td>
  5493. <td>false</td>
  5494. <td>none</td>
  5495. <td>none</td>
  5496. </tr>
  5497. <tr>
  5498. <td>» title</td>
  5499. <td>string</td>
  5500. <td>false</td>
  5501. <td>none</td>
  5502. <td>none</td>
  5503. </tr>
  5504. <tr>
  5505. <td>» finishedAt</td>
  5506. <td>string</td>
  5507. <td>false</td>
  5508. <td>none</td>
  5509. <td>none</td>
  5510. </tr>
  5511. <tr>
  5512. <td>» createdAt</td>
  5513. <td>string</td>
  5514. <td>false</td>
  5515. <td>none</td>
  5516. <td>none</td>
  5517. </tr>
  5518. <tr>
  5519. <td>» sort</td>
  5520. <td>number</td>
  5521. <td>false</td>
  5522. <td>none</td>
  5523. <td>none</td>
  5524. </tr>
  5525. <tr>
  5526. <td>» items</td>
  5527. <td>[object]</td>
  5528. <td>false</td>
  5529. <td>none</td>
  5530. <td>none</td>
  5531. </tr>
  5532. <tr>
  5533. <td>»» _id</td>
  5534. <td>string</td>
  5535. <td>false</td>
  5536. <td>none</td>
  5537. <td>none</td>
  5538. </tr>
  5539. <tr>
  5540. <td>»» title</td>
  5541. <td>string</td>
  5542. <td>false</td>
  5543. <td>none</td>
  5544. <td>none</td>
  5545. </tr>
  5546. <tr>
  5547. <td>»» isFinished</td>
  5548. <td>boolean</td>
  5549. <td>false</td>
  5550. <td>none</td>
  5551. <td>none</td>
  5552. </tr>
  5553. </tbody>
  5554. </table>
  5555. <aside class="warning">
  5556. To perform this operation, you must be authenticated by means of one of the following methods:
  5557. UserSecurity
  5558. </aside>
  5559. <h2 id="delete_checklist">delete_checklist</h2>
  5560. <p><a id="opIddelete_checklist"></a></p>
  5561. <blockquote>
  5562. <p>Code samples</p>
  5563. </blockquote>
  5564. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5565. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5566. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5567. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5568. </code></pre>
  5569. <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> <span class="hljs-meta">HTTP/1.1</span>
  5570. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5571. </span></code></pre>
  5572. <pre class="highlight tab tab-javascript"><code>
  5573. <span class="hljs-keyword">const</span> headers = {
  5574. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5575. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5576. };
  5577. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5578. {
  5579. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5580. <span class="hljs-attr">headers</span>: headers
  5581. })
  5582. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5583. <span class="hljs-keyword">return</span> res.json();
  5584. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5585. <span class="hljs-built_in">console</span>.log(body);
  5586. });
  5587. </code></pre>
  5588. <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">&#x27;node-fetch&#x27;</span>);
  5589. <span class="hljs-keyword">const</span> headers = {
  5590. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5591. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5592. };
  5593. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5594. {
  5595. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5596. <span class="hljs-attr">headers</span>: headers
  5597. })
  5598. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5599. <span class="hljs-keyword">return</span> res.json();
  5600. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5601. <span class="hljs-built_in">console</span>.log(body);
  5602. });
  5603. </code></pre>
  5604. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5605. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5606. headers = {
  5607. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5608. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5609. }
  5610. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5611. <span class="hljs-symbol">params:</span> {
  5612. }, <span class="hljs-symbol">headers:</span> headers
  5613. p JSON.parse(result)
  5614. </code></pre>
  5615. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5616. headers = {
  5617. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5618. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5619. }
  5620. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5621. <span class="hljs-built_in">print</span>(r.json())
  5622. </code></pre>
  5623. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}&quot;</span>);
  5624. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5625. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5626. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5627. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5628. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5629. String inputLine;
  5630. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5631. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5632. response.append(inputLine);
  5633. }
  5634. in.close();
  5635. System.out.println(response.toString());
  5636. </code></pre>
  5637. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5638. <span class="hljs-keyword">import</span> (
  5639. <span class="hljs-string">&quot;bytes&quot;</span>
  5640. <span class="hljs-string">&quot;net/http&quot;</span>
  5641. )
  5642. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5643. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5644. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5645. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5646. }
  5647. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5648. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}&quot;</span>, data)
  5649. req.Header = headers
  5650. client := &amp;http.Client{}
  5651. resp, err := client.Do(req)
  5652. <span class="hljs-comment">// ...</span>
  5653. }
  5654. </code></pre>
  5655. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5656. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5657. );
  5658. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5659. <span class="hljs-comment">// Define array of request body.</span>
  5660. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5661. <span class="hljs-keyword">try</span> {
  5662. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, <span class="hljs-keyword">array</span>(
  5663. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5664. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5665. )
  5666. );
  5667. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5668. }
  5669. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5670. <span class="hljs-comment">// handle exception or api errors.</span>
  5671. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5672. }
  5673. <span class="hljs-comment">// ...</span>
  5674. </code></pre>
  5675. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5676. <p><em>Delete a checklist</em></p>
  5677. <p>The checklist will be removed, not put in the recycle bin.</p>
  5678. <h3 id="delete_checklist-parameters">Parameters</h3>
  5679. <table>
  5680. <thead>
  5681. <tr>
  5682. <th>Name</th>
  5683. <th>In</th>
  5684. <th>Type</th>
  5685. <th>Required</th>
  5686. <th>Description</th>
  5687. </tr>
  5688. </thead>
  5689. <tbody>
  5690. <tr>
  5691. <td>board</td>
  5692. <td>path</td>
  5693. <td>string</td>
  5694. <td>true</td>
  5695. <td>the board ID</td>
  5696. </tr>
  5697. <tr>
  5698. <td>card</td>
  5699. <td>path</td>
  5700. <td>string</td>
  5701. <td>true</td>
  5702. <td>the card ID</td>
  5703. </tr>
  5704. <tr>
  5705. <td>checklist</td>
  5706. <td>path</td>
  5707. <td>string</td>
  5708. <td>true</td>
  5709. <td>the ID of the checklist to remove</td>
  5710. </tr>
  5711. </tbody>
  5712. </table>
  5713. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5714. <p><strong>board</strong>: the board ID</p>
  5715. <p><strong>card</strong>: the card ID</p>
  5716. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5717. <blockquote>
  5718. <p>Example responses</p>
  5719. </blockquote>
  5720. <blockquote>
  5721. <p>200 Response</p>
  5722. </blockquote>
  5723. <pre class="highlight tab tab-json"><code>{
  5724. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5725. }
  5726. </code></pre>
  5727. <h3 id="delete_checklist-responses">Responses</h3>
  5728. <table>
  5729. <thead>
  5730. <tr>
  5731. <th>Status</th>
  5732. <th>Meaning</th>
  5733. <th>Description</th>
  5734. <th>Schema</th>
  5735. </tr>
  5736. </thead>
  5737. <tbody>
  5738. <tr>
  5739. <td>200</td>
  5740. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5741. <td>200 response</td>
  5742. <td>Inline</td>
  5743. </tr>
  5744. </tbody>
  5745. </table>
  5746. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5747. <p>Status Code <strong>200</strong></p>
  5748. <table>
  5749. <thead>
  5750. <tr>
  5751. <th>Name</th>
  5752. <th>Type</th>
  5753. <th>Required</th>
  5754. <th>Restrictions</th>
  5755. <th>Description</th>
  5756. </tr>
  5757. </thead>
  5758. <tbody>
  5759. <tr>
  5760. <td>» _id</td>
  5761. <td>string</td>
  5762. <td>false</td>
  5763. <td>none</td>
  5764. <td>none</td>
  5765. </tr>
  5766. </tbody>
  5767. </table>
  5768. <aside class="warning">
  5769. To perform this operation, you must be authenticated by means of one of the following methods:
  5770. UserSecurity
  5771. </aside>
  5772. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5773. <h2 id="new_checklist_item">new_checklist_item</h2>
  5774. <p><a id="opIdnew_checklist_item"></a></p>
  5775. <blockquote>
  5776. <p>Code samples</p>
  5777. </blockquote>
  5778. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5779. curl -X POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items \
  5780. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5781. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5782. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5783. </code></pre>
  5784. <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> <span class="hljs-meta">HTTP/1.1</span>
  5785. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5786. Accept: application/json
  5787. </span></code></pre>
  5788. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5789. &quot;title&quot;: &quot;string&quot;
  5790. }&#x27;</span>;
  5791. <span class="hljs-keyword">const</span> headers = {
  5792. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5793. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5794. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5795. };
  5796. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5797. {
  5798. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  5799. <span class="hljs-attr">body</span>: inputBody,
  5800. <span class="hljs-attr">headers</span>: headers
  5801. })
  5802. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5803. <span class="hljs-keyword">return</span> res.json();
  5804. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5805. <span class="hljs-built_in">console</span>.log(body);
  5806. });
  5807. </code></pre>
  5808. <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">&#x27;node-fetch&#x27;</span>);
  5809. <span class="hljs-keyword">const</span> inputBody = {
  5810. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5811. };
  5812. <span class="hljs-keyword">const</span> headers = {
  5813. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5814. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5815. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5816. };
  5817. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5818. {
  5819. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  5820. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5821. <span class="hljs-attr">headers</span>: headers
  5822. })
  5823. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5824. <span class="hljs-keyword">return</span> res.json();
  5825. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5826. <span class="hljs-built_in">console</span>.log(body);
  5827. });
  5828. </code></pre>
  5829. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5830. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5831. headers = {
  5832. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5833. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5834. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5835. }
  5836. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5837. <span class="hljs-symbol">params:</span> {
  5838. }, <span class="hljs-symbol">headers:</span> headers
  5839. p JSON.parse(result)
  5840. </code></pre>
  5841. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5842. headers = {
  5843. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5844. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5845. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5846. }
  5847. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>, headers = headers)
  5848. <span class="hljs-built_in">print</span>(r.json())
  5849. </code></pre>
  5850. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&quot;</span>);
  5851. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5852. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  5853. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5854. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5855. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5856. String inputLine;
  5857. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5858. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5859. response.append(inputLine);
  5860. }
  5861. in.close();
  5862. System.out.println(response.toString());
  5863. </code></pre>
  5864. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5865. <span class="hljs-keyword">import</span> (
  5866. <span class="hljs-string">&quot;bytes&quot;</span>
  5867. <span class="hljs-string">&quot;net/http&quot;</span>
  5868. )
  5869. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5870. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5871. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  5872. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5873. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5874. }
  5875. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5876. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&quot;</span>, data)
  5877. req.Header = headers
  5878. client := &amp;http.Client{}
  5879. resp, err := client.Do(req)
  5880. <span class="hljs-comment">// ...</span>
  5881. }
  5882. </code></pre>
  5883. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5884. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5885. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5886. );
  5887. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5888. <span class="hljs-comment">// Define array of request body.</span>
  5889. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5890. <span class="hljs-keyword">try</span> {
  5891. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>, <span class="hljs-keyword">array</span>(
  5892. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5893. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5894. )
  5895. );
  5896. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5897. }
  5898. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5899. <span class="hljs-comment">// handle exception or api errors.</span>
  5900. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5901. }
  5902. <span class="hljs-comment">// ...</span>
  5903. </code></pre>
  5904. <p><code>POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items</code></p>
  5905. <p><em>add a new item to a checklist</em></p>
  5906. <blockquote>
  5907. <p>Body parameter</p>
  5908. </blockquote>
  5909. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5910. </code></pre>
  5911. <h3 id="new_checklist_item-parameters">Parameters</h3>
  5912. <table>
  5913. <thead>
  5914. <tr>
  5915. <th>Name</th>
  5916. <th>In</th>
  5917. <th>Type</th>
  5918. <th>Required</th>
  5919. <th>Description</th>
  5920. </tr>
  5921. </thead>
  5922. <tbody>
  5923. <tr>
  5924. <td>board</td>
  5925. <td>path</td>
  5926. <td>string</td>
  5927. <td>true</td>
  5928. <td>the board ID</td>
  5929. </tr>
  5930. <tr>
  5931. <td>card</td>
  5932. <td>path</td>
  5933. <td>string</td>
  5934. <td>true</td>
  5935. <td>the card ID</td>
  5936. </tr>
  5937. <tr>
  5938. <td>checklist</td>
  5939. <td>path</td>
  5940. <td>string</td>
  5941. <td>true</td>
  5942. <td>the ID of the checklist</td>
  5943. </tr>
  5944. <tr>
  5945. <td>body</td>
  5946. <td>body</td>
  5947. <td>object</td>
  5948. <td>true</td>
  5949. <td>none</td>
  5950. </tr>
  5951. <tr>
  5952. <td>» title</td>
  5953. <td>body</td>
  5954. <td>string</td>
  5955. <td>true</td>
  5956. <td>the title of the new item</td>
  5957. </tr>
  5958. </tbody>
  5959. </table>
  5960. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  5961. <p><strong>board</strong>: the board ID</p>
  5962. <p><strong>card</strong>: the card ID</p>
  5963. <p><strong>checklist</strong>: the ID of the checklist</p>
  5964. <blockquote>
  5965. <p>Example responses</p>
  5966. </blockquote>
  5967. <blockquote>
  5968. <p>200 Response</p>
  5969. </blockquote>
  5970. <pre class="highlight tab tab-json"><code>{
  5971. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5972. }
  5973. </code></pre>
  5974. <h3 id="new_checklist_item-responses">Responses</h3>
  5975. <table>
  5976. <thead>
  5977. <tr>
  5978. <th>Status</th>
  5979. <th>Meaning</th>
  5980. <th>Description</th>
  5981. <th>Schema</th>
  5982. </tr>
  5983. </thead>
  5984. <tbody>
  5985. <tr>
  5986. <td>200</td>
  5987. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5988. <td>200 response</td>
  5989. <td>Inline</td>
  5990. </tr>
  5991. </tbody>
  5992. </table>
  5993. <h3 id="new_checklist_item-responseschema">Response Schema</h3>
  5994. <p>Status Code <strong>200</strong></p>
  5995. <table>
  5996. <thead>
  5997. <tr>
  5998. <th>Name</th>
  5999. <th>Type</th>
  6000. <th>Required</th>
  6001. <th>Restrictions</th>
  6002. <th>Description</th>
  6003. </tr>
  6004. </thead>
  6005. <tbody>
  6006. <tr>
  6007. <td>» _id</td>
  6008. <td>string</td>
  6009. <td>false</td>
  6010. <td>none</td>
  6011. <td>none</td>
  6012. </tr>
  6013. </tbody>
  6014. </table>
  6015. <aside class="warning">
  6016. To perform this operation, you must be authenticated by means of one of the following methods:
  6017. UserSecurity
  6018. </aside>
  6019. <h2 id="get_checklist_item">get_checklist_item</h2>
  6020. <p><a id="opIdget_checklist_item"></a></p>
  6021. <blockquote>
  6022. <p>Code samples</p>
  6023. </blockquote>
  6024. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6025. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  6026. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6027. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6028. </code></pre>
  6029. <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> <span class="hljs-meta">HTTP/1.1</span>
  6030. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6031. </span></code></pre>
  6032. <pre class="highlight tab tab-javascript"><code>
  6033. <span class="hljs-keyword">const</span> headers = {
  6034. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6035. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6036. };
  6037. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6038. {
  6039. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6040. <span class="hljs-attr">headers</span>: headers
  6041. })
  6042. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6043. <span class="hljs-keyword">return</span> res.json();
  6044. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6045. <span class="hljs-built_in">console</span>.log(body);
  6046. });
  6047. </code></pre>
  6048. <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">&#x27;node-fetch&#x27;</span>);
  6049. <span class="hljs-keyword">const</span> headers = {
  6050. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6051. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6052. };
  6053. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6054. {
  6055. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6056. <span class="hljs-attr">headers</span>: headers
  6057. })
  6058. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6059. <span class="hljs-keyword">return</span> res.json();
  6060. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6061. <span class="hljs-built_in">console</span>.log(body);
  6062. });
  6063. </code></pre>
  6064. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6065. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6066. headers = {
  6067. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6068. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6069. }
  6070. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6071. <span class="hljs-symbol">params:</span> {
  6072. }, <span class="hljs-symbol">headers:</span> headers
  6073. p JSON.parse(result)
  6074. </code></pre>
  6075. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6076. headers = {
  6077. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6078. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6079. }
  6080. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  6081. <span class="hljs-built_in">print</span>(r.json())
  6082. </code></pre>
  6083. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>);
  6084. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6085. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6086. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6087. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6088. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6089. String inputLine;
  6090. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6091. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6092. response.append(inputLine);
  6093. }
  6094. in.close();
  6095. System.out.println(response.toString());
  6096. </code></pre>
  6097. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6098. <span class="hljs-keyword">import</span> (
  6099. <span class="hljs-string">&quot;bytes&quot;</span>
  6100. <span class="hljs-string">&quot;net/http&quot;</span>
  6101. )
  6102. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6103. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6104. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6105. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6106. }
  6107. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6108. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>, data)
  6109. req.Header = headers
  6110. client := &amp;http.Client{}
  6111. resp, err := client.Do(req)
  6112. <span class="hljs-comment">// ...</span>
  6113. }
  6114. </code></pre>
  6115. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6116. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6117. );
  6118. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6119. <span class="hljs-comment">// Define array of request body.</span>
  6120. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6121. <span class="hljs-keyword">try</span> {
  6122. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, <span class="hljs-keyword">array</span>(
  6123. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6124. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6125. )
  6126. );
  6127. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6128. }
  6129. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6130. <span class="hljs-comment">// handle exception or api errors.</span>
  6131. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6132. }
  6133. <span class="hljs-comment">// ...</span>
  6134. </code></pre>
  6135. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  6136. <p><em>Get a checklist item</em></p>
  6137. <h3 id="get_checklist_item-parameters">Parameters</h3>
  6138. <table>
  6139. <thead>
  6140. <tr>
  6141. <th>Name</th>
  6142. <th>In</th>
  6143. <th>Type</th>
  6144. <th>Required</th>
  6145. <th>Description</th>
  6146. </tr>
  6147. </thead>
  6148. <tbody>
  6149. <tr>
  6150. <td>board</td>
  6151. <td>path</td>
  6152. <td>string</td>
  6153. <td>true</td>
  6154. <td>the board ID</td>
  6155. </tr>
  6156. <tr>
  6157. <td>card</td>
  6158. <td>path</td>
  6159. <td>string</td>
  6160. <td>true</td>
  6161. <td>the card ID</td>
  6162. </tr>
  6163. <tr>
  6164. <td>checklist</td>
  6165. <td>path</td>
  6166. <td>string</td>
  6167. <td>true</td>
  6168. <td>the checklist ID</td>
  6169. </tr>
  6170. <tr>
  6171. <td>item</td>
  6172. <td>path</td>
  6173. <td>string</td>
  6174. <td>true</td>
  6175. <td>the ID of the item</td>
  6176. </tr>
  6177. </tbody>
  6178. </table>
  6179. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6180. <p><strong>board</strong>: the board ID</p>
  6181. <p><strong>card</strong>: the card ID</p>
  6182. <p><strong>checklist</strong>: the checklist ID</p>
  6183. <p><strong>item</strong>: the ID of the item</p>
  6184. <blockquote>
  6185. <p>Example responses</p>
  6186. </blockquote>
  6187. <blockquote>
  6188. <p>200 Response</p>
  6189. </blockquote>
  6190. <pre class="highlight tab tab-json"><code>{
  6191. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6192. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  6193. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  6194. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6195. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6196. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6197. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6198. }
  6199. </code></pre>
  6200. <h3 id="get_checklist_item-responses">Responses</h3>
  6201. <table>
  6202. <thead>
  6203. <tr>
  6204. <th>Status</th>
  6205. <th>Meaning</th>
  6206. <th>Description</th>
  6207. <th>Schema</th>
  6208. </tr>
  6209. </thead>
  6210. <tbody>
  6211. <tr>
  6212. <td>200</td>
  6213. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6214. <td>200 response</td>
  6215. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  6216. </tr>
  6217. </tbody>
  6218. </table>
  6219. <aside class="warning">
  6220. To perform this operation, you must be authenticated by means of one of the following methods:
  6221. UserSecurity
  6222. </aside>
  6223. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  6224. <p><a id="opIdedit_checklist_item"></a></p>
  6225. <blockquote>
  6226. <p>Code samples</p>
  6227. </blockquote>
  6228. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6229. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  6230. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6231. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6232. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6233. </code></pre>
  6234. <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> <span class="hljs-meta">HTTP/1.1</span>
  6235. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6236. Accept: application/json
  6237. </span></code></pre>
  6238. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6239. &quot;isFinished&quot;: &quot;string&quot;,
  6240. &quot;title&quot;: &quot;string&quot;
  6241. }&#x27;</span>;
  6242. <span class="hljs-keyword">const</span> headers = {
  6243. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6244. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6245. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6246. };
  6247. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6248. {
  6249. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  6250. <span class="hljs-attr">body</span>: inputBody,
  6251. <span class="hljs-attr">headers</span>: headers
  6252. })
  6253. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6254. <span class="hljs-keyword">return</span> res.json();
  6255. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6256. <span class="hljs-built_in">console</span>.log(body);
  6257. });
  6258. </code></pre>
  6259. <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">&#x27;node-fetch&#x27;</span>);
  6260. <span class="hljs-keyword">const</span> inputBody = {
  6261. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6262. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6263. };
  6264. <span class="hljs-keyword">const</span> headers = {
  6265. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6266. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6267. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6268. };
  6269. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6270. {
  6271. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  6272. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6273. <span class="hljs-attr">headers</span>: headers
  6274. })
  6275. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6276. <span class="hljs-keyword">return</span> res.json();
  6277. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6278. <span class="hljs-built_in">console</span>.log(body);
  6279. });
  6280. </code></pre>
  6281. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6282. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6283. headers = {
  6284. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6285. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6286. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6287. }
  6288. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6289. <span class="hljs-symbol">params:</span> {
  6290. }, <span class="hljs-symbol">headers:</span> headers
  6291. p JSON.parse(result)
  6292. </code></pre>
  6293. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6294. headers = {
  6295. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6296. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6297. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6298. }
  6299. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  6300. <span class="hljs-built_in">print</span>(r.json())
  6301. </code></pre>
  6302. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>);
  6303. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6304. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  6305. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6306. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6307. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6308. String inputLine;
  6309. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6310. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6311. response.append(inputLine);
  6312. }
  6313. in.close();
  6314. System.out.println(response.toString());
  6315. </code></pre>
  6316. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6317. <span class="hljs-keyword">import</span> (
  6318. <span class="hljs-string">&quot;bytes&quot;</span>
  6319. <span class="hljs-string">&quot;net/http&quot;</span>
  6320. )
  6321. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6322. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6323. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  6324. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6325. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6326. }
  6327. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6328. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>, data)
  6329. req.Header = headers
  6330. client := &amp;http.Client{}
  6331. resp, err := client.Do(req)
  6332. <span class="hljs-comment">// ...</span>
  6333. }
  6334. </code></pre>
  6335. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6336. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6337. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6338. );
  6339. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6340. <span class="hljs-comment">// Define array of request body.</span>
  6341. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6342. <span class="hljs-keyword">try</span> {
  6343. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, <span class="hljs-keyword">array</span>(
  6344. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6345. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6346. )
  6347. );
  6348. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6349. }
  6350. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6351. <span class="hljs-comment">// handle exception or api errors.</span>
  6352. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6353. }
  6354. <span class="hljs-comment">// ...</span>
  6355. </code></pre>
  6356. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  6357. <p><em>Edit a checklist item</em></p>
  6358. <blockquote>
  6359. <p>Body parameter</p>
  6360. </blockquote>
  6361. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  6362. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  6363. </code></pre>
  6364. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  6365. <table>
  6366. <thead>
  6367. <tr>
  6368. <th>Name</th>
  6369. <th>In</th>
  6370. <th>Type</th>
  6371. <th>Required</th>
  6372. <th>Description</th>
  6373. </tr>
  6374. </thead>
  6375. <tbody>
  6376. <tr>
  6377. <td>board</td>
  6378. <td>path</td>
  6379. <td>string</td>
  6380. <td>true</td>
  6381. <td>the board ID</td>
  6382. </tr>
  6383. <tr>
  6384. <td>card</td>
  6385. <td>path</td>
  6386. <td>string</td>
  6387. <td>true</td>
  6388. <td>the card ID</td>
  6389. </tr>
  6390. <tr>
  6391. <td>checklist</td>
  6392. <td>path</td>
  6393. <td>string</td>
  6394. <td>true</td>
  6395. <td>the checklist ID</td>
  6396. </tr>
  6397. <tr>
  6398. <td>item</td>
  6399. <td>path</td>
  6400. <td>string</td>
  6401. <td>true</td>
  6402. <td>the ID of the item</td>
  6403. </tr>
  6404. <tr>
  6405. <td>body</td>
  6406. <td>body</td>
  6407. <td>object</td>
  6408. <td>false</td>
  6409. <td>none</td>
  6410. </tr>
  6411. <tr>
  6412. <td>» isFinished</td>
  6413. <td>body</td>
  6414. <td>string</td>
  6415. <td>false</td>
  6416. <td>is the item checked?</td>
  6417. </tr>
  6418. <tr>
  6419. <td>» title</td>
  6420. <td>body</td>
  6421. <td>string</td>
  6422. <td>false</td>
  6423. <td>the new text of the item</td>
  6424. </tr>
  6425. </tbody>
  6426. </table>
  6427. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6428. <p><strong>board</strong>: the board ID</p>
  6429. <p><strong>card</strong>: the card ID</p>
  6430. <p><strong>checklist</strong>: the checklist ID</p>
  6431. <p><strong>item</strong>: the ID of the item</p>
  6432. <blockquote>
  6433. <p>Example responses</p>
  6434. </blockquote>
  6435. <blockquote>
  6436. <p>200 Response</p>
  6437. </blockquote>
  6438. <pre class="highlight tab tab-json"><code>{
  6439. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6440. }
  6441. </code></pre>
  6442. <h3 id="edit_checklist_item-responses">Responses</h3>
  6443. <table>
  6444. <thead>
  6445. <tr>
  6446. <th>Status</th>
  6447. <th>Meaning</th>
  6448. <th>Description</th>
  6449. <th>Schema</th>
  6450. </tr>
  6451. </thead>
  6452. <tbody>
  6453. <tr>
  6454. <td>200</td>
  6455. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6456. <td>200 response</td>
  6457. <td>Inline</td>
  6458. </tr>
  6459. </tbody>
  6460. </table>
  6461. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  6462. <p>Status Code <strong>200</strong></p>
  6463. <table>
  6464. <thead>
  6465. <tr>
  6466. <th>Name</th>
  6467. <th>Type</th>
  6468. <th>Required</th>
  6469. <th>Restrictions</th>
  6470. <th>Description</th>
  6471. </tr>
  6472. </thead>
  6473. <tbody>
  6474. <tr>
  6475. <td>» _id</td>
  6476. <td>string</td>
  6477. <td>false</td>
  6478. <td>none</td>
  6479. <td>none</td>
  6480. </tr>
  6481. </tbody>
  6482. </table>
  6483. <aside class="warning">
  6484. To perform this operation, you must be authenticated by means of one of the following methods:
  6485. UserSecurity
  6486. </aside>
  6487. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  6488. <p><a id="opIddelete_checklist_item"></a></p>
  6489. <blockquote>
  6490. <p>Code samples</p>
  6491. </blockquote>
  6492. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6493. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  6494. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6495. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6496. </code></pre>
  6497. <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> <span class="hljs-meta">HTTP/1.1</span>
  6498. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6499. </span></code></pre>
  6500. <pre class="highlight tab tab-javascript"><code>
  6501. <span class="hljs-keyword">const</span> headers = {
  6502. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6503. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6504. };
  6505. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6506. {
  6507. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6508. <span class="hljs-attr">headers</span>: headers
  6509. })
  6510. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6511. <span class="hljs-keyword">return</span> res.json();
  6512. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6513. <span class="hljs-built_in">console</span>.log(body);
  6514. });
  6515. </code></pre>
  6516. <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">&#x27;node-fetch&#x27;</span>);
  6517. <span class="hljs-keyword">const</span> headers = {
  6518. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6519. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6520. };
  6521. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6522. {
  6523. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6524. <span class="hljs-attr">headers</span>: headers
  6525. })
  6526. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6527. <span class="hljs-keyword">return</span> res.json();
  6528. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6529. <span class="hljs-built_in">console</span>.log(body);
  6530. });
  6531. </code></pre>
  6532. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6533. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6534. headers = {
  6535. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6536. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6537. }
  6538. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6539. <span class="hljs-symbol">params:</span> {
  6540. }, <span class="hljs-symbol">headers:</span> headers
  6541. p JSON.parse(result)
  6542. </code></pre>
  6543. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6544. headers = {
  6545. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6546. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6547. }
  6548. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  6549. <span class="hljs-built_in">print</span>(r.json())
  6550. </code></pre>
  6551. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>);
  6552. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6553. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6554. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6555. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6556. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6557. String inputLine;
  6558. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6559. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6560. response.append(inputLine);
  6561. }
  6562. in.close();
  6563. System.out.println(response.toString());
  6564. </code></pre>
  6565. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6566. <span class="hljs-keyword">import</span> (
  6567. <span class="hljs-string">&quot;bytes&quot;</span>
  6568. <span class="hljs-string">&quot;net/http&quot;</span>
  6569. )
  6570. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6571. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6572. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6573. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6574. }
  6575. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6576. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>, data)
  6577. req.Header = headers
  6578. client := &amp;http.Client{}
  6579. resp, err := client.Do(req)
  6580. <span class="hljs-comment">// ...</span>
  6581. }
  6582. </code></pre>
  6583. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6584. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6585. );
  6586. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6587. <span class="hljs-comment">// Define array of request body.</span>
  6588. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6589. <span class="hljs-keyword">try</span> {
  6590. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, <span class="hljs-keyword">array</span>(
  6591. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6592. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6593. )
  6594. );
  6595. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6596. }
  6597. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6598. <span class="hljs-comment">// handle exception or api errors.</span>
  6599. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6600. }
  6601. <span class="hljs-comment">// ...</span>
  6602. </code></pre>
  6603. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  6604. <p><em>Delete a checklist item</em></p>
  6605. <p>Note: this operation can't be reverted.</p>
  6606. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  6607. <table>
  6608. <thead>
  6609. <tr>
  6610. <th>Name</th>
  6611. <th>In</th>
  6612. <th>Type</th>
  6613. <th>Required</th>
  6614. <th>Description</th>
  6615. </tr>
  6616. </thead>
  6617. <tbody>
  6618. <tr>
  6619. <td>board</td>
  6620. <td>path</td>
  6621. <td>string</td>
  6622. <td>true</td>
  6623. <td>the board ID</td>
  6624. </tr>
  6625. <tr>
  6626. <td>card</td>
  6627. <td>path</td>
  6628. <td>string</td>
  6629. <td>true</td>
  6630. <td>the card ID</td>
  6631. </tr>
  6632. <tr>
  6633. <td>checklist</td>
  6634. <td>path</td>
  6635. <td>string</td>
  6636. <td>true</td>
  6637. <td>the checklist ID</td>
  6638. </tr>
  6639. <tr>
  6640. <td>item</td>
  6641. <td>path</td>
  6642. <td>string</td>
  6643. <td>true</td>
  6644. <td>the ID of the item to be removed</td>
  6645. </tr>
  6646. </tbody>
  6647. </table>
  6648. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6649. <p><strong>board</strong>: the board ID</p>
  6650. <p><strong>card</strong>: the card ID</p>
  6651. <p><strong>checklist</strong>: the checklist ID</p>
  6652. <p><strong>item</strong>: the ID of the item to be removed</p>
  6653. <blockquote>
  6654. <p>Example responses</p>
  6655. </blockquote>
  6656. <blockquote>
  6657. <p>200 Response</p>
  6658. </blockquote>
  6659. <pre class="highlight tab tab-json"><code>{
  6660. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6661. }
  6662. </code></pre>
  6663. <h3 id="delete_checklist_item-responses">Responses</h3>
  6664. <table>
  6665. <thead>
  6666. <tr>
  6667. <th>Status</th>
  6668. <th>Meaning</th>
  6669. <th>Description</th>
  6670. <th>Schema</th>
  6671. </tr>
  6672. </thead>
  6673. <tbody>
  6674. <tr>
  6675. <td>200</td>
  6676. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6677. <td>200 response</td>
  6678. <td>Inline</td>
  6679. </tr>
  6680. </tbody>
  6681. </table>
  6682. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6683. <p>Status Code <strong>200</strong></p>
  6684. <table>
  6685. <thead>
  6686. <tr>
  6687. <th>Name</th>
  6688. <th>Type</th>
  6689. <th>Required</th>
  6690. <th>Restrictions</th>
  6691. <th>Description</th>
  6692. </tr>
  6693. </thead>
  6694. <tbody>
  6695. <tr>
  6696. <td>» _id</td>
  6697. <td>string</td>
  6698. <td>false</td>
  6699. <td>none</td>
  6700. <td>none</td>
  6701. </tr>
  6702. </tbody>
  6703. </table>
  6704. <aside class="warning">
  6705. To perform this operation, you must be authenticated by means of one of the following methods:
  6706. UserSecurity
  6707. </aside>
  6708. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6709. <h2 id="get_all_comments">get_all_comments</h2>
  6710. <p><a id="opIdget_all_comments"></a></p>
  6711. <blockquote>
  6712. <p>Code samples</p>
  6713. </blockquote>
  6714. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6715. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6716. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6717. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6718. </code></pre>
  6719. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> <span class="hljs-meta">HTTP/1.1</span>
  6720. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6721. </span></code></pre>
  6722. <pre class="highlight tab tab-javascript"><code>
  6723. <span class="hljs-keyword">const</span> headers = {
  6724. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6725. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6726. };
  6727. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6728. {
  6729. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6730. <span class="hljs-attr">headers</span>: headers
  6731. })
  6732. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6733. <span class="hljs-keyword">return</span> res.json();
  6734. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6735. <span class="hljs-built_in">console</span>.log(body);
  6736. });
  6737. </code></pre>
  6738. <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">&#x27;node-fetch&#x27;</span>);
  6739. <span class="hljs-keyword">const</span> headers = {
  6740. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6741. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6742. };
  6743. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6744. {
  6745. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6746. <span class="hljs-attr">headers</span>: headers
  6747. })
  6748. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6749. <span class="hljs-keyword">return</span> res.json();
  6750. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6751. <span class="hljs-built_in">console</span>.log(body);
  6752. });
  6753. </code></pre>
  6754. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6755. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6756. headers = {
  6757. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6758. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6759. }
  6760. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6761. <span class="hljs-symbol">params:</span> {
  6762. }, <span class="hljs-symbol">headers:</span> headers
  6763. p JSON.parse(result)
  6764. </code></pre>
  6765. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6766. headers = {
  6767. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6768. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6769. }
  6770. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6771. <span class="hljs-built_in">print</span>(r.json())
  6772. </code></pre>
  6773. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments&quot;</span>);
  6774. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6775. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6776. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6777. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6778. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6779. String inputLine;
  6780. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6781. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6782. response.append(inputLine);
  6783. }
  6784. in.close();
  6785. System.out.println(response.toString());
  6786. </code></pre>
  6787. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6788. <span class="hljs-keyword">import</span> (
  6789. <span class="hljs-string">&quot;bytes&quot;</span>
  6790. <span class="hljs-string">&quot;net/http&quot;</span>
  6791. )
  6792. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6793. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6794. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6795. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6796. }
  6797. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6798. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments&quot;</span>, data)
  6799. req.Header = headers
  6800. client := &amp;http.Client{}
  6801. resp, err := client.Do(req)
  6802. <span class="hljs-comment">// ...</span>
  6803. }
  6804. </code></pre>
  6805. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6806. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6807. );
  6808. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6809. <span class="hljs-comment">// Define array of request body.</span>
  6810. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6811. <span class="hljs-keyword">try</span> {
  6812. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, <span class="hljs-keyword">array</span>(
  6813. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6814. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6815. )
  6816. );
  6817. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6818. }
  6819. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6820. <span class="hljs-comment">// handle exception or api errors.</span>
  6821. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6822. }
  6823. <span class="hljs-comment">// ...</span>
  6824. </code></pre>
  6825. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6826. <p><em>Get all comments attached to a card</em></p>
  6827. <h3 id="get_all_comments-parameters">Parameters</h3>
  6828. <table>
  6829. <thead>
  6830. <tr>
  6831. <th>Name</th>
  6832. <th>In</th>
  6833. <th>Type</th>
  6834. <th>Required</th>
  6835. <th>Description</th>
  6836. </tr>
  6837. </thead>
  6838. <tbody>
  6839. <tr>
  6840. <td>board</td>
  6841. <td>path</td>
  6842. <td>string</td>
  6843. <td>true</td>
  6844. <td>the board ID of the card</td>
  6845. </tr>
  6846. <tr>
  6847. <td>card</td>
  6848. <td>path</td>
  6849. <td>string</td>
  6850. <td>true</td>
  6851. <td>the ID of the card</td>
  6852. </tr>
  6853. </tbody>
  6854. </table>
  6855. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6856. <p><strong>board</strong>: the board ID of the card</p>
  6857. <p><strong>card</strong>: the ID of the card</p>
  6858. <blockquote>
  6859. <p>Example responses</p>
  6860. </blockquote>
  6861. <blockquote>
  6862. <p>200 Response</p>
  6863. </blockquote>
  6864. <pre class="highlight tab tab-json"><code>[
  6865. {
  6866. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6867. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6868. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6869. }
  6870. ]
  6871. </code></pre>
  6872. <h3 id="get_all_comments-responses">Responses</h3>
  6873. <table>
  6874. <thead>
  6875. <tr>
  6876. <th>Status</th>
  6877. <th>Meaning</th>
  6878. <th>Description</th>
  6879. <th>Schema</th>
  6880. </tr>
  6881. </thead>
  6882. <tbody>
  6883. <tr>
  6884. <td>200</td>
  6885. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6886. <td>200 response</td>
  6887. <td>Inline</td>
  6888. </tr>
  6889. </tbody>
  6890. </table>
  6891. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6892. <p>Status Code <strong>200</strong></p>
  6893. <table>
  6894. <thead>
  6895. <tr>
  6896. <th>Name</th>
  6897. <th>Type</th>
  6898. <th>Required</th>
  6899. <th>Restrictions</th>
  6900. <th>Description</th>
  6901. </tr>
  6902. </thead>
  6903. <tbody>
  6904. <tr>
  6905. <td>» _id</td>
  6906. <td>string</td>
  6907. <td>false</td>
  6908. <td>none</td>
  6909. <td>none</td>
  6910. </tr>
  6911. <tr>
  6912. <td>» comment</td>
  6913. <td>string</td>
  6914. <td>false</td>
  6915. <td>none</td>
  6916. <td>none</td>
  6917. </tr>
  6918. <tr>
  6919. <td>» authorId</td>
  6920. <td>string</td>
  6921. <td>false</td>
  6922. <td>none</td>
  6923. <td>none</td>
  6924. </tr>
  6925. </tbody>
  6926. </table>
  6927. <aside class="warning">
  6928. To perform this operation, you must be authenticated by means of one of the following methods:
  6929. UserSecurity
  6930. </aside>
  6931. <h2 id="new_comment">new_comment</h2>
  6932. <p><a id="opIdnew_comment"></a></p>
  6933. <blockquote>
  6934. <p>Code samples</p>
  6935. </blockquote>
  6936. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6937. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6938. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6939. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6940. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6941. </code></pre>
  6942. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> <span class="hljs-meta">HTTP/1.1</span>
  6943. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6944. Accept: application/json
  6945. </span></code></pre>
  6946. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6947. &quot;authorId&quot;: &quot;string&quot;,
  6948. &quot;comment&quot;: &quot;string&quot;
  6949. }&#x27;</span>;
  6950. <span class="hljs-keyword">const</span> headers = {
  6951. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6952. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6953. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6954. };
  6955. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6956. {
  6957. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6958. <span class="hljs-attr">body</span>: inputBody,
  6959. <span class="hljs-attr">headers</span>: headers
  6960. })
  6961. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6962. <span class="hljs-keyword">return</span> res.json();
  6963. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6964. <span class="hljs-built_in">console</span>.log(body);
  6965. });
  6966. </code></pre>
  6967. <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">&#x27;node-fetch&#x27;</span>);
  6968. <span class="hljs-keyword">const</span> inputBody = {
  6969. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6970. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6971. };
  6972. <span class="hljs-keyword">const</span> headers = {
  6973. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6974. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6975. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6976. };
  6977. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6978. {
  6979. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6980. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6981. <span class="hljs-attr">headers</span>: headers
  6982. })
  6983. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6984. <span class="hljs-keyword">return</span> res.json();
  6985. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6986. <span class="hljs-built_in">console</span>.log(body);
  6987. });
  6988. </code></pre>
  6989. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6990. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6991. headers = {
  6992. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6993. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6994. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6995. }
  6996. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6997. <span class="hljs-symbol">params:</span> {
  6998. }, <span class="hljs-symbol">headers:</span> headers
  6999. p JSON.parse(result)
  7000. </code></pre>
  7001. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7002. headers = {
  7003. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7004. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7005. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7006. }
  7007. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  7008. <span class="hljs-built_in">print</span>(r.json())
  7009. </code></pre>
  7010. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments&quot;</span>);
  7011. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7012. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7013. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7014. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7015. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7016. String inputLine;
  7017. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7018. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7019. response.append(inputLine);
  7020. }
  7021. in.close();
  7022. System.out.println(response.toString());
  7023. </code></pre>
  7024. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7025. <span class="hljs-keyword">import</span> (
  7026. <span class="hljs-string">&quot;bytes&quot;</span>
  7027. <span class="hljs-string">&quot;net/http&quot;</span>
  7028. )
  7029. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7030. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7031. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  7032. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7033. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7034. }
  7035. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7036. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments&quot;</span>, data)
  7037. req.Header = headers
  7038. client := &amp;http.Client{}
  7039. resp, err := client.Do(req)
  7040. <span class="hljs-comment">// ...</span>
  7041. }
  7042. </code></pre>
  7043. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7044. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7045. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7046. );
  7047. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7048. <span class="hljs-comment">// Define array of request body.</span>
  7049. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7050. <span class="hljs-keyword">try</span> {
  7051. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, <span class="hljs-keyword">array</span>(
  7052. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7053. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7054. )
  7055. );
  7056. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7057. }
  7058. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7059. <span class="hljs-comment">// handle exception or api errors.</span>
  7060. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7061. }
  7062. <span class="hljs-comment">// ...</span>
  7063. </code></pre>
  7064. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  7065. <p><em>Add a comment on a card</em></p>
  7066. <blockquote>
  7067. <p>Body parameter</p>
  7068. </blockquote>
  7069. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7070. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  7071. </code></pre>
  7072. <h3 id="new_comment-parameters">Parameters</h3>
  7073. <table>
  7074. <thead>
  7075. <tr>
  7076. <th>Name</th>
  7077. <th>In</th>
  7078. <th>Type</th>
  7079. <th>Required</th>
  7080. <th>Description</th>
  7081. </tr>
  7082. </thead>
  7083. <tbody>
  7084. <tr>
  7085. <td>board</td>
  7086. <td>path</td>
  7087. <td>string</td>
  7088. <td>true</td>
  7089. <td>the board ID of the card</td>
  7090. </tr>
  7091. <tr>
  7092. <td>card</td>
  7093. <td>path</td>
  7094. <td>string</td>
  7095. <td>true</td>
  7096. <td>the ID of the card</td>
  7097. </tr>
  7098. <tr>
  7099. <td>body</td>
  7100. <td>body</td>
  7101. <td>object</td>
  7102. <td>true</td>
  7103. <td>none</td>
  7104. </tr>
  7105. <tr>
  7106. <td>» authorId</td>
  7107. <td>body</td>
  7108. <td>string</td>
  7109. <td>true</td>
  7110. <td>the user who 'posted' the comment</td>
  7111. </tr>
  7112. <tr>
  7113. <td>» comment</td>
  7114. <td>body</td>
  7115. <td>string</td>
  7116. <td>true</td>
  7117. <td>the comment value</td>
  7118. </tr>
  7119. </tbody>
  7120. </table>
  7121. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7122. <p><strong>board</strong>: the board ID of the card</p>
  7123. <p><strong>card</strong>: the ID of the card</p>
  7124. <blockquote>
  7125. <p>Example responses</p>
  7126. </blockquote>
  7127. <blockquote>
  7128. <p>200 Response</p>
  7129. </blockquote>
  7130. <pre class="highlight tab tab-json"><code>{
  7131. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7132. }
  7133. </code></pre>
  7134. <h3 id="new_comment-responses">Responses</h3>
  7135. <table>
  7136. <thead>
  7137. <tr>
  7138. <th>Status</th>
  7139. <th>Meaning</th>
  7140. <th>Description</th>
  7141. <th>Schema</th>
  7142. </tr>
  7143. </thead>
  7144. <tbody>
  7145. <tr>
  7146. <td>200</td>
  7147. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7148. <td>200 response</td>
  7149. <td>Inline</td>
  7150. </tr>
  7151. </tbody>
  7152. </table>
  7153. <h3 id="new_comment-responseschema">Response Schema</h3>
  7154. <p>Status Code <strong>200</strong></p>
  7155. <table>
  7156. <thead>
  7157. <tr>
  7158. <th>Name</th>
  7159. <th>Type</th>
  7160. <th>Required</th>
  7161. <th>Restrictions</th>
  7162. <th>Description</th>
  7163. </tr>
  7164. </thead>
  7165. <tbody>
  7166. <tr>
  7167. <td>» _id</td>
  7168. <td>string</td>
  7169. <td>false</td>
  7170. <td>none</td>
  7171. <td>none</td>
  7172. </tr>
  7173. </tbody>
  7174. </table>
  7175. <aside class="warning">
  7176. To perform this operation, you must be authenticated by means of one of the following methods:
  7177. UserSecurity
  7178. </aside>
  7179. <h2 id="get_comment">get_comment</h2>
  7180. <p><a id="opIdget_comment"></a></p>
  7181. <blockquote>
  7182. <p>Code samples</p>
  7183. </blockquote>
  7184. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7185. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  7186. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7187. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7188. </code></pre>
  7189. <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> <span class="hljs-meta">HTTP/1.1</span>
  7190. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7191. </span></code></pre>
  7192. <pre class="highlight tab tab-javascript"><code>
  7193. <span class="hljs-keyword">const</span> headers = {
  7194. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7195. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7196. };
  7197. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7198. {
  7199. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7200. <span class="hljs-attr">headers</span>: headers
  7201. })
  7202. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7203. <span class="hljs-keyword">return</span> res.json();
  7204. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7205. <span class="hljs-built_in">console</span>.log(body);
  7206. });
  7207. </code></pre>
  7208. <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">&#x27;node-fetch&#x27;</span>);
  7209. <span class="hljs-keyword">const</span> headers = {
  7210. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7211. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7212. };
  7213. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7214. {
  7215. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7216. <span class="hljs-attr">headers</span>: headers
  7217. })
  7218. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7219. <span class="hljs-keyword">return</span> res.json();
  7220. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7221. <span class="hljs-built_in">console</span>.log(body);
  7222. });
  7223. </code></pre>
  7224. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7225. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7226. headers = {
  7227. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7228. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7229. }
  7230. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7231. <span class="hljs-symbol">params:</span> {
  7232. }, <span class="hljs-symbol">headers:</span> headers
  7233. p JSON.parse(result)
  7234. </code></pre>
  7235. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7236. headers = {
  7237. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7238. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7239. }
  7240. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  7241. <span class="hljs-built_in">print</span>(r.json())
  7242. </code></pre>
  7243. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>);
  7244. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7245. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7246. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7247. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7248. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7249. String inputLine;
  7250. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7251. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7252. response.append(inputLine);
  7253. }
  7254. in.close();
  7255. System.out.println(response.toString());
  7256. </code></pre>
  7257. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7258. <span class="hljs-keyword">import</span> (
  7259. <span class="hljs-string">&quot;bytes&quot;</span>
  7260. <span class="hljs-string">&quot;net/http&quot;</span>
  7261. )
  7262. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7263. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7264. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7265. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7266. }
  7267. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7268. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>, data)
  7269. req.Header = headers
  7270. client := &amp;http.Client{}
  7271. resp, err := client.Do(req)
  7272. <span class="hljs-comment">// ...</span>
  7273. }
  7274. </code></pre>
  7275. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7276. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7277. );
  7278. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7279. <span class="hljs-comment">// Define array of request body.</span>
  7280. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7281. <span class="hljs-keyword">try</span> {
  7282. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, <span class="hljs-keyword">array</span>(
  7283. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7284. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7285. )
  7286. );
  7287. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7288. }
  7289. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7290. <span class="hljs-comment">// handle exception or api errors.</span>
  7291. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7292. }
  7293. <span class="hljs-comment">// ...</span>
  7294. </code></pre>
  7295. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  7296. <p><em>Get a comment on a card</em></p>
  7297. <h3 id="get_comment-parameters">Parameters</h3>
  7298. <table>
  7299. <thead>
  7300. <tr>
  7301. <th>Name</th>
  7302. <th>In</th>
  7303. <th>Type</th>
  7304. <th>Required</th>
  7305. <th>Description</th>
  7306. </tr>
  7307. </thead>
  7308. <tbody>
  7309. <tr>
  7310. <td>board</td>
  7311. <td>path</td>
  7312. <td>string</td>
  7313. <td>true</td>
  7314. <td>the board ID of the card</td>
  7315. </tr>
  7316. <tr>
  7317. <td>card</td>
  7318. <td>path</td>
  7319. <td>string</td>
  7320. <td>true</td>
  7321. <td>the ID of the card</td>
  7322. </tr>
  7323. <tr>
  7324. <td>comment</td>
  7325. <td>path</td>
  7326. <td>string</td>
  7327. <td>true</td>
  7328. <td>the ID of the comment to retrieve</td>
  7329. </tr>
  7330. </tbody>
  7331. </table>
  7332. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7333. <p><strong>board</strong>: the board ID of the card</p>
  7334. <p><strong>card</strong>: the ID of the card</p>
  7335. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  7336. <blockquote>
  7337. <p>Example responses</p>
  7338. </blockquote>
  7339. <blockquote>
  7340. <p>200 Response</p>
  7341. </blockquote>
  7342. <pre class="highlight tab tab-json"><code>{
  7343. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7344. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7345. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7346. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7347. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7348. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7349. }
  7350. </code></pre>
  7351. <h3 id="get_comment-responses">Responses</h3>
  7352. <table>
  7353. <thead>
  7354. <tr>
  7355. <th>Status</th>
  7356. <th>Meaning</th>
  7357. <th>Description</th>
  7358. <th>Schema</th>
  7359. </tr>
  7360. </thead>
  7361. <tbody>
  7362. <tr>
  7363. <td>200</td>
  7364. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7365. <td>200 response</td>
  7366. <td><a href="#schemacardcomments">CardComments</a></td>
  7367. </tr>
  7368. </tbody>
  7369. </table>
  7370. <aside class="warning">
  7371. To perform this operation, you must be authenticated by means of one of the following methods:
  7372. UserSecurity
  7373. </aside>
  7374. <h2 id="delete_comment">delete_comment</h2>
  7375. <p><a id="opIddelete_comment"></a></p>
  7376. <blockquote>
  7377. <p>Code samples</p>
  7378. </blockquote>
  7379. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7380. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  7381. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7382. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7383. </code></pre>
  7384. <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> <span class="hljs-meta">HTTP/1.1</span>
  7385. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7386. </span></code></pre>
  7387. <pre class="highlight tab tab-javascript"><code>
  7388. <span class="hljs-keyword">const</span> headers = {
  7389. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7390. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7391. };
  7392. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7393. {
  7394. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  7395. <span class="hljs-attr">headers</span>: headers
  7396. })
  7397. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7398. <span class="hljs-keyword">return</span> res.json();
  7399. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7400. <span class="hljs-built_in">console</span>.log(body);
  7401. });
  7402. </code></pre>
  7403. <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">&#x27;node-fetch&#x27;</span>);
  7404. <span class="hljs-keyword">const</span> headers = {
  7405. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7406. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7407. };
  7408. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7409. {
  7410. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  7411. <span class="hljs-attr">headers</span>: headers
  7412. })
  7413. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7414. <span class="hljs-keyword">return</span> res.json();
  7415. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7416. <span class="hljs-built_in">console</span>.log(body);
  7417. });
  7418. </code></pre>
  7419. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7420. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7421. headers = {
  7422. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7423. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7424. }
  7425. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7426. <span class="hljs-symbol">params:</span> {
  7427. }, <span class="hljs-symbol">headers:</span> headers
  7428. p JSON.parse(result)
  7429. </code></pre>
  7430. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7431. headers = {
  7432. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7433. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7434. }
  7435. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  7436. <span class="hljs-built_in">print</span>(r.json())
  7437. </code></pre>
  7438. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>);
  7439. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7440. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  7441. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7442. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7443. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7444. String inputLine;
  7445. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7446. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7447. response.append(inputLine);
  7448. }
  7449. in.close();
  7450. System.out.println(response.toString());
  7451. </code></pre>
  7452. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7453. <span class="hljs-keyword">import</span> (
  7454. <span class="hljs-string">&quot;bytes&quot;</span>
  7455. <span class="hljs-string">&quot;net/http&quot;</span>
  7456. )
  7457. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7458. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7459. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7460. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7461. }
  7462. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7463. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>, data)
  7464. req.Header = headers
  7465. client := &amp;http.Client{}
  7466. resp, err := client.Do(req)
  7467. <span class="hljs-comment">// ...</span>
  7468. }
  7469. </code></pre>
  7470. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7471. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7472. );
  7473. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7474. <span class="hljs-comment">// Define array of request body.</span>
  7475. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7476. <span class="hljs-keyword">try</span> {
  7477. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, <span class="hljs-keyword">array</span>(
  7478. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7479. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7480. )
  7481. );
  7482. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7483. }
  7484. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7485. <span class="hljs-comment">// handle exception or api errors.</span>
  7486. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7487. }
  7488. <span class="hljs-comment">// ...</span>
  7489. </code></pre>
  7490. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  7491. <p><em>Delete a comment on a card</em></p>
  7492. <h3 id="delete_comment-parameters">Parameters</h3>
  7493. <table>
  7494. <thead>
  7495. <tr>
  7496. <th>Name</th>
  7497. <th>In</th>
  7498. <th>Type</th>
  7499. <th>Required</th>
  7500. <th>Description</th>
  7501. </tr>
  7502. </thead>
  7503. <tbody>
  7504. <tr>
  7505. <td>board</td>
  7506. <td>path</td>
  7507. <td>string</td>
  7508. <td>true</td>
  7509. <td>the board ID of the card</td>
  7510. </tr>
  7511. <tr>
  7512. <td>card</td>
  7513. <td>path</td>
  7514. <td>string</td>
  7515. <td>true</td>
  7516. <td>the ID of the card</td>
  7517. </tr>
  7518. <tr>
  7519. <td>comment</td>
  7520. <td>path</td>
  7521. <td>string</td>
  7522. <td>true</td>
  7523. <td>the ID of the comment to delete</td>
  7524. </tr>
  7525. </tbody>
  7526. </table>
  7527. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7528. <p><strong>board</strong>: the board ID of the card</p>
  7529. <p><strong>card</strong>: the ID of the card</p>
  7530. <p><strong>comment</strong>: the ID of the comment to delete</p>
  7531. <blockquote>
  7532. <p>Example responses</p>
  7533. </blockquote>
  7534. <blockquote>
  7535. <p>200 Response</p>
  7536. </blockquote>
  7537. <pre class="highlight tab tab-json"><code>{
  7538. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7539. }
  7540. </code></pre>
  7541. <h3 id="delete_comment-responses">Responses</h3>
  7542. <table>
  7543. <thead>
  7544. <tr>
  7545. <th>Status</th>
  7546. <th>Meaning</th>
  7547. <th>Description</th>
  7548. <th>Schema</th>
  7549. </tr>
  7550. </thead>
  7551. <tbody>
  7552. <tr>
  7553. <td>200</td>
  7554. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7555. <td>200 response</td>
  7556. <td>Inline</td>
  7557. </tr>
  7558. </tbody>
  7559. </table>
  7560. <h3 id="delete_comment-responseschema">Response Schema</h3>
  7561. <p>Status Code <strong>200</strong></p>
  7562. <table>
  7563. <thead>
  7564. <tr>
  7565. <th>Name</th>
  7566. <th>Type</th>
  7567. <th>Required</th>
  7568. <th>Restrictions</th>
  7569. <th>Description</th>
  7570. </tr>
  7571. </thead>
  7572. <tbody>
  7573. <tr>
  7574. <td>» _id</td>
  7575. <td>string</td>
  7576. <td>false</td>
  7577. <td>none</td>
  7578. <td>none</td>
  7579. </tr>
  7580. </tbody>
  7581. </table>
  7582. <aside class="warning">
  7583. To perform this operation, you must be authenticated by means of one of the following methods:
  7584. UserSecurity
  7585. </aside>
  7586. <h1 id="wekan-rest-api-cards">Cards</h1>
  7587. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  7588. <p><a id="opIdget_cards_by_custom_field"></a></p>
  7589. <blockquote>
  7590. <p>Code samples</p>
  7591. </blockquote>
  7592. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7593. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  7594. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7595. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7596. </code></pre>
  7597. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</span> <span class="hljs-meta">HTTP/1.1</span>
  7598. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7599. </span></code></pre>
  7600. <pre class="highlight tab tab-javascript"><code>
  7601. <span class="hljs-keyword">const</span> headers = {
  7602. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7603. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7604. };
  7605. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7606. {
  7607. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7608. <span class="hljs-attr">headers</span>: headers
  7609. })
  7610. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7611. <span class="hljs-keyword">return</span> res.json();
  7612. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7613. <span class="hljs-built_in">console</span>.log(body);
  7614. });
  7615. </code></pre>
  7616. <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">&#x27;node-fetch&#x27;</span>);
  7617. <span class="hljs-keyword">const</span> headers = {
  7618. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7619. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7620. };
  7621. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7622. {
  7623. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7624. <span class="hljs-attr">headers</span>: headers
  7625. })
  7626. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7627. <span class="hljs-keyword">return</span> res.json();
  7628. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7629. <span class="hljs-built_in">console</span>.log(body);
  7630. });
  7631. </code></pre>
  7632. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7633. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7634. headers = {
  7635. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7636. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7637. }
  7638. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7639. <span class="hljs-symbol">params:</span> {
  7640. }, <span class="hljs-symbol">headers:</span> headers
  7641. p JSON.parse(result)
  7642. </code></pre>
  7643. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7644. headers = {
  7645. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7646. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7647. }
  7648. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7649. <span class="hljs-built_in">print</span>(r.json())
  7650. </code></pre>
  7651. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&quot;</span>);
  7652. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7653. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7654. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7655. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7656. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7657. String inputLine;
  7658. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7659. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7660. response.append(inputLine);
  7661. }
  7662. in.close();
  7663. System.out.println(response.toString());
  7664. </code></pre>
  7665. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7666. <span class="hljs-keyword">import</span> (
  7667. <span class="hljs-string">&quot;bytes&quot;</span>
  7668. <span class="hljs-string">&quot;net/http&quot;</span>
  7669. )
  7670. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7671. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7672. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7673. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7674. }
  7675. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7676. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&quot;</span>, data)
  7677. req.Header = headers
  7678. client := &amp;http.Client{}
  7679. resp, err := client.Do(req)
  7680. <span class="hljs-comment">// ...</span>
  7681. }
  7682. </code></pre>
  7683. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7684. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7685. );
  7686. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7687. <span class="hljs-comment">// Define array of request body.</span>
  7688. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7689. <span class="hljs-keyword">try</span> {
  7690. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, <span class="hljs-keyword">array</span>(
  7691. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7692. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7693. )
  7694. );
  7695. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7696. }
  7697. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7698. <span class="hljs-comment">// handle exception or api errors.</span>
  7699. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7700. }
  7701. <span class="hljs-comment">// ...</span>
  7702. </code></pre>
  7703. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7704. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7705. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7706. <table>
  7707. <thead>
  7708. <tr>
  7709. <th>Name</th>
  7710. <th>In</th>
  7711. <th>Type</th>
  7712. <th>Required</th>
  7713. <th>Description</th>
  7714. </tr>
  7715. </thead>
  7716. <tbody>
  7717. <tr>
  7718. <td>board</td>
  7719. <td>path</td>
  7720. <td>string</td>
  7721. <td>true</td>
  7722. <td>the board ID</td>
  7723. </tr>
  7724. <tr>
  7725. <td>customField</td>
  7726. <td>path</td>
  7727. <td>string</td>
  7728. <td>true</td>
  7729. <td>the list ID</td>
  7730. </tr>
  7731. <tr>
  7732. <td>customFieldValue</td>
  7733. <td>path</td>
  7734. <td>string</td>
  7735. <td>true</td>
  7736. <td>the value to look for</td>
  7737. </tr>
  7738. </tbody>
  7739. </table>
  7740. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7741. <p><strong>board</strong>: the board ID</p>
  7742. <p><strong>customField</strong>: the list ID</p>
  7743. <p><strong>customFieldValue</strong>: the value to look for</p>
  7744. <blockquote>
  7745. <p>Example responses</p>
  7746. </blockquote>
  7747. <blockquote>
  7748. <p>200 Response</p>
  7749. </blockquote>
  7750. <pre class="highlight tab tab-json"><code>[
  7751. {
  7752. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7753. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7754. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7755. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7756. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7757. }
  7758. ]
  7759. </code></pre>
  7760. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7761. <table>
  7762. <thead>
  7763. <tr>
  7764. <th>Status</th>
  7765. <th>Meaning</th>
  7766. <th>Description</th>
  7767. <th>Schema</th>
  7768. </tr>
  7769. </thead>
  7770. <tbody>
  7771. <tr>
  7772. <td>200</td>
  7773. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7774. <td>200 response</td>
  7775. <td>Inline</td>
  7776. </tr>
  7777. </tbody>
  7778. </table>
  7779. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7780. <p>Status Code <strong>200</strong></p>
  7781. <table>
  7782. <thead>
  7783. <tr>
  7784. <th>Name</th>
  7785. <th>Type</th>
  7786. <th>Required</th>
  7787. <th>Restrictions</th>
  7788. <th>Description</th>
  7789. </tr>
  7790. </thead>
  7791. <tbody>
  7792. <tr>
  7793. <td>» _id</td>
  7794. <td>string</td>
  7795. <td>false</td>
  7796. <td>none</td>
  7797. <td>none</td>
  7798. </tr>
  7799. <tr>
  7800. <td>» title</td>
  7801. <td>string</td>
  7802. <td>false</td>
  7803. <td>none</td>
  7804. <td>none</td>
  7805. </tr>
  7806. <tr>
  7807. <td>» description</td>
  7808. <td>string</td>
  7809. <td>false</td>
  7810. <td>none</td>
  7811. <td>none</td>
  7812. </tr>
  7813. <tr>
  7814. <td>» listId</td>
  7815. <td>string</td>
  7816. <td>false</td>
  7817. <td>none</td>
  7818. <td>none</td>
  7819. </tr>
  7820. <tr>
  7821. <td>» swinlaneId</td>
  7822. <td>string</td>
  7823. <td>false</td>
  7824. <td>none</td>
  7825. <td>none</td>
  7826. </tr>
  7827. </tbody>
  7828. </table>
  7829. <aside class="warning">
  7830. To perform this operation, you must be authenticated by means of one of the following methods:
  7831. UserSecurity
  7832. </aside>
  7833. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  7834. <p><a id="opIdget_board_cards_count"></a></p>
  7835. <blockquote>
  7836. <p>Code samples</p>
  7837. </blockquote>
  7838. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7839. curl -X GET /api/boards/{board}/cards_count \
  7840. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7841. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7842. </code></pre>
  7843. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards_count</span> <span class="hljs-meta">HTTP/1.1</span>
  7844. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7845. </span></code></pre>
  7846. <pre class="highlight tab tab-javascript"><code>
  7847. <span class="hljs-keyword">const</span> headers = {
  7848. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7849. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7850. };
  7851. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7852. {
  7853. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7854. <span class="hljs-attr">headers</span>: headers
  7855. })
  7856. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7857. <span class="hljs-keyword">return</span> res.json();
  7858. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7859. <span class="hljs-built_in">console</span>.log(body);
  7860. });
  7861. </code></pre>
  7862. <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">&#x27;node-fetch&#x27;</span>);
  7863. <span class="hljs-keyword">const</span> headers = {
  7864. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7865. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7866. };
  7867. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7868. {
  7869. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7870. <span class="hljs-attr">headers</span>: headers
  7871. })
  7872. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7873. <span class="hljs-keyword">return</span> res.json();
  7874. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7875. <span class="hljs-built_in">console</span>.log(body);
  7876. });
  7877. </code></pre>
  7878. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7879. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7880. headers = {
  7881. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7882. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7883. }
  7884. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7885. <span class="hljs-symbol">params:</span> {
  7886. }, <span class="hljs-symbol">headers:</span> headers
  7887. p JSON.parse(result)
  7888. </code></pre>
  7889. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7890. headers = {
  7891. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7892. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7893. }
  7894. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>, headers = headers)
  7895. <span class="hljs-built_in">print</span>(r.json())
  7896. </code></pre>
  7897. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards_count&quot;</span>);
  7898. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7899. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7900. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7901. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7902. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7903. String inputLine;
  7904. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7905. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7906. response.append(inputLine);
  7907. }
  7908. in.close();
  7909. System.out.println(response.toString());
  7910. </code></pre>
  7911. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7912. <span class="hljs-keyword">import</span> (
  7913. <span class="hljs-string">&quot;bytes&quot;</span>
  7914. <span class="hljs-string">&quot;net/http&quot;</span>
  7915. )
  7916. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7917. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7918. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7919. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7920. }
  7921. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7922. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards_count&quot;</span>, data)
  7923. req.Header = headers
  7924. client := &amp;http.Client{}
  7925. resp, err := client.Do(req)
  7926. <span class="hljs-comment">// ...</span>
  7927. }
  7928. </code></pre>
  7929. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7930. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7931. );
  7932. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7933. <span class="hljs-comment">// Define array of request body.</span>
  7934. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7935. <span class="hljs-keyword">try</span> {
  7936. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>, <span class="hljs-keyword">array</span>(
  7937. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7938. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7939. )
  7940. );
  7941. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7942. }
  7943. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7944. <span class="hljs-comment">// handle exception or api errors.</span>
  7945. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7946. }
  7947. <span class="hljs-comment">// ...</span>
  7948. </code></pre>
  7949. <p><code>GET /api/boards/{board}/cards_count</code></p>
  7950. <p><em>Get a cards count to a board</em></p>
  7951. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  7952. <table>
  7953. <thead>
  7954. <tr>
  7955. <th>Name</th>
  7956. <th>In</th>
  7957. <th>Type</th>
  7958. <th>Required</th>
  7959. <th>Description</th>
  7960. </tr>
  7961. </thead>
  7962. <tbody>
  7963. <tr>
  7964. <td>board</td>
  7965. <td>path</td>
  7966. <td>string</td>
  7967. <td>true</td>
  7968. <td>the board ID</td>
  7969. </tr>
  7970. </tbody>
  7971. </table>
  7972. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  7973. <p><strong>board</strong>: the board ID</p>
  7974. <blockquote>
  7975. <p>Example responses</p>
  7976. </blockquote>
  7977. <blockquote>
  7978. <p>200 Response</p>
  7979. </blockquote>
  7980. <pre class="highlight tab tab-json"><code>{
  7981. <span class="hljs-attr">&quot;board_cards_count&quot;</span>: <span class="hljs-number">0</span>
  7982. }
  7983. </code></pre>
  7984. <h3 id="get_board_cards_count-responses">Responses</h3>
  7985. <table>
  7986. <thead>
  7987. <tr>
  7988. <th>Status</th>
  7989. <th>Meaning</th>
  7990. <th>Description</th>
  7991. <th>Schema</th>
  7992. </tr>
  7993. </thead>
  7994. <tbody>
  7995. <tr>
  7996. <td>200</td>
  7997. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7998. <td>200 response</td>
  7999. <td>Inline</td>
  8000. </tr>
  8001. </tbody>
  8002. </table>
  8003. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  8004. <p>Status Code <strong>200</strong></p>
  8005. <table>
  8006. <thead>
  8007. <tr>
  8008. <th>Name</th>
  8009. <th>Type</th>
  8010. <th>Required</th>
  8011. <th>Restrictions</th>
  8012. <th>Description</th>
  8013. </tr>
  8014. </thead>
  8015. <tbody>
  8016. <tr>
  8017. <td>» board_cards_count</td>
  8018. <td>integer</td>
  8019. <td>false</td>
  8020. <td>none</td>
  8021. <td>none</td>
  8022. </tr>
  8023. </tbody>
  8024. </table>
  8025. <aside class="warning">
  8026. To perform this operation, you must be authenticated by means of one of the following methods:
  8027. UserSecurity
  8028. </aside>
  8029. <h2 id="get_all_cards">get_all_cards</h2>
  8030. <p><a id="opIdget_all_cards"></a></p>
  8031. <blockquote>
  8032. <p>Code samples</p>
  8033. </blockquote>
  8034. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8035. curl -X GET /api/boards/{board}/lists/{list}/cards \
  8036. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8037. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8038. </code></pre>
  8039. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> <span class="hljs-meta">HTTP/1.1</span>
  8040. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8041. </span></code></pre>
  8042. <pre class="highlight tab tab-javascript"><code>
  8043. <span class="hljs-keyword">const</span> headers = {
  8044. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8045. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8046. };
  8047. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  8048. {
  8049. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8050. <span class="hljs-attr">headers</span>: headers
  8051. })
  8052. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8053. <span class="hljs-keyword">return</span> res.json();
  8054. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8055. <span class="hljs-built_in">console</span>.log(body);
  8056. });
  8057. </code></pre>
  8058. <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">&#x27;node-fetch&#x27;</span>);
  8059. <span class="hljs-keyword">const</span> headers = {
  8060. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8061. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8062. };
  8063. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  8064. {
  8065. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8066. <span class="hljs-attr">headers</span>: headers
  8067. })
  8068. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8069. <span class="hljs-keyword">return</span> res.json();
  8070. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8071. <span class="hljs-built_in">console</span>.log(body);
  8072. });
  8073. </code></pre>
  8074. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8075. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8076. headers = {
  8077. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8078. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8079. }
  8080. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  8081. <span class="hljs-symbol">params:</span> {
  8082. }, <span class="hljs-symbol">headers:</span> headers
  8083. p JSON.parse(result)
  8084. </code></pre>
  8085. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8086. headers = {
  8087. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8088. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8089. }
  8090. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  8091. <span class="hljs-built_in">print</span>(r.json())
  8092. </code></pre>
  8093. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards&quot;</span>);
  8094. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8095. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8096. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8097. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8098. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8099. String inputLine;
  8100. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8101. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8102. response.append(inputLine);
  8103. }
  8104. in.close();
  8105. System.out.println(response.toString());
  8106. </code></pre>
  8107. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8108. <span class="hljs-keyword">import</span> (
  8109. <span class="hljs-string">&quot;bytes&quot;</span>
  8110. <span class="hljs-string">&quot;net/http&quot;</span>
  8111. )
  8112. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8113. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8114. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8115. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8116. }
  8117. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8118. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards&quot;</span>, data)
  8119. req.Header = headers
  8120. client := &amp;http.Client{}
  8121. resp, err := client.Do(req)
  8122. <span class="hljs-comment">// ...</span>
  8123. }
  8124. </code></pre>
  8125. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8126. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8127. );
  8128. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8129. <span class="hljs-comment">// Define array of request body.</span>
  8130. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8131. <span class="hljs-keyword">try</span> {
  8132. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, <span class="hljs-keyword">array</span>(
  8133. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8134. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8135. )
  8136. );
  8137. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8138. }
  8139. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8140. <span class="hljs-comment">// handle exception or api errors.</span>
  8141. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8142. }
  8143. <span class="hljs-comment">// ...</span>
  8144. </code></pre>
  8145. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  8146. <p><em>Get all Cards attached to a List</em></p>
  8147. <h3 id="get_all_cards-parameters">Parameters</h3>
  8148. <table>
  8149. <thead>
  8150. <tr>
  8151. <th>Name</th>
  8152. <th>In</th>
  8153. <th>Type</th>
  8154. <th>Required</th>
  8155. <th>Description</th>
  8156. </tr>
  8157. </thead>
  8158. <tbody>
  8159. <tr>
  8160. <td>board</td>
  8161. <td>path</td>
  8162. <td>string</td>
  8163. <td>true</td>
  8164. <td>the board ID</td>
  8165. </tr>
  8166. <tr>
  8167. <td>list</td>
  8168. <td>path</td>
  8169. <td>string</td>
  8170. <td>true</td>
  8171. <td>the list ID</td>
  8172. </tr>
  8173. </tbody>
  8174. </table>
  8175. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8176. <p><strong>board</strong>: the board ID</p>
  8177. <p><strong>list</strong>: the list ID</p>
  8178. <blockquote>
  8179. <p>Example responses</p>
  8180. </blockquote>
  8181. <blockquote>
  8182. <p>200 Response</p>
  8183. </blockquote>
  8184. <pre class="highlight tab tab-json"><code>[
  8185. {
  8186. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8187. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8188. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8189. }
  8190. ]
  8191. </code></pre>
  8192. <h3 id="get_all_cards-responses">Responses</h3>
  8193. <table>
  8194. <thead>
  8195. <tr>
  8196. <th>Status</th>
  8197. <th>Meaning</th>
  8198. <th>Description</th>
  8199. <th>Schema</th>
  8200. </tr>
  8201. </thead>
  8202. <tbody>
  8203. <tr>
  8204. <td>200</td>
  8205. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8206. <td>200 response</td>
  8207. <td>Inline</td>
  8208. </tr>
  8209. </tbody>
  8210. </table>
  8211. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  8212. <p>Status Code <strong>200</strong></p>
  8213. <table>
  8214. <thead>
  8215. <tr>
  8216. <th>Name</th>
  8217. <th>Type</th>
  8218. <th>Required</th>
  8219. <th>Restrictions</th>
  8220. <th>Description</th>
  8221. </tr>
  8222. </thead>
  8223. <tbody>
  8224. <tr>
  8225. <td>» _id</td>
  8226. <td>string</td>
  8227. <td>false</td>
  8228. <td>none</td>
  8229. <td>none</td>
  8230. </tr>
  8231. <tr>
  8232. <td>» title</td>
  8233. <td>string</td>
  8234. <td>false</td>
  8235. <td>none</td>
  8236. <td>none</td>
  8237. </tr>
  8238. <tr>
  8239. <td>» description</td>
  8240. <td>string</td>
  8241. <td>false</td>
  8242. <td>none</td>
  8243. <td>none</td>
  8244. </tr>
  8245. </tbody>
  8246. </table>
  8247. <aside class="warning">
  8248. To perform this operation, you must be authenticated by means of one of the following methods:
  8249. UserSecurity
  8250. </aside>
  8251. <h2 id="new_card">new_card</h2>
  8252. <p><a id="opIdnew_card"></a></p>
  8253. <blockquote>
  8254. <p>Code samples</p>
  8255. </blockquote>
  8256. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8257. curl -X POST /api/boards/{board}/lists/{list}/cards \
  8258. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8259. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8260. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8261. </code></pre>
  8262. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> <span class="hljs-meta">HTTP/1.1</span>
  8263. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8264. Accept: application/json
  8265. </span></code></pre>
  8266. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8267. &quot;authorId&quot;: &quot;string&quot;,
  8268. &quot;members&quot;: &quot;string&quot;,
  8269. &quot;assignees&quot;: &quot;string&quot;,
  8270. &quot;title&quot;: &quot;string&quot;,
  8271. &quot;description&quot;: &quot;string&quot;,
  8272. &quot;swimlaneId&quot;: &quot;string&quot;
  8273. }&#x27;</span>;
  8274. <span class="hljs-keyword">const</span> headers = {
  8275. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8276. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8277. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8278. };
  8279. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  8280. {
  8281. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  8282. <span class="hljs-attr">body</span>: inputBody,
  8283. <span class="hljs-attr">headers</span>: headers
  8284. })
  8285. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8286. <span class="hljs-keyword">return</span> res.json();
  8287. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8288. <span class="hljs-built_in">console</span>.log(body);
  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">&#x27;node-fetch&#x27;</span>);
  8292. <span class="hljs-keyword">const</span> inputBody = {
  8293. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8294. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8295. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8296. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8297. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8298. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8299. };
  8300. <span class="hljs-keyword">const</span> headers = {
  8301. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8302. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8303. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8304. };
  8305. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  8306. {
  8307. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  8308. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8309. <span class="hljs-attr">headers</span>: headers
  8310. })
  8311. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8312. <span class="hljs-keyword">return</span> res.json();
  8313. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8314. <span class="hljs-built_in">console</span>.log(body);
  8315. });
  8316. </code></pre>
  8317. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8318. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8319. headers = {
  8320. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8321. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8322. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8323. }
  8324. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  8325. <span class="hljs-symbol">params:</span> {
  8326. }, <span class="hljs-symbol">headers:</span> headers
  8327. p JSON.parse(result)
  8328. </code></pre>
  8329. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8330. headers = {
  8331. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8332. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8333. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8334. }
  8335. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  8336. <span class="hljs-built_in">print</span>(r.json())
  8337. </code></pre>
  8338. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards&quot;</span>);
  8339. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8340. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  8341. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8342. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8343. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8344. String inputLine;
  8345. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8346. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8347. response.append(inputLine);
  8348. }
  8349. in.close();
  8350. System.out.println(response.toString());
  8351. </code></pre>
  8352. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8353. <span class="hljs-keyword">import</span> (
  8354. <span class="hljs-string">&quot;bytes&quot;</span>
  8355. <span class="hljs-string">&quot;net/http&quot;</span>
  8356. )
  8357. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8358. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8359. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  8360. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8361. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8362. }
  8363. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8364. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards&quot;</span>, data)
  8365. req.Header = headers
  8366. client := &amp;http.Client{}
  8367. resp, err := client.Do(req)
  8368. <span class="hljs-comment">// ...</span>
  8369. }
  8370. </code></pre>
  8371. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8372. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8373. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8374. );
  8375. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8376. <span class="hljs-comment">// Define array of request body.</span>
  8377. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8378. <span class="hljs-keyword">try</span> {
  8379. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, <span class="hljs-keyword">array</span>(
  8380. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8381. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8382. )
  8383. );
  8384. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8385. }
  8386. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8387. <span class="hljs-comment">// handle exception or api errors.</span>
  8388. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8389. }
  8390. <span class="hljs-comment">// ...</span>
  8391. </code></pre>
  8392. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  8393. <p><em>Create a new Card</em></p>
  8394. <blockquote>
  8395. <p>Body parameter</p>
  8396. </blockquote>
  8397. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8398. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8399. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8400. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8401. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8402. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8403. </code></pre>
  8404. <h3 id="new_card-parameters">Parameters</h3>
  8405. <table>
  8406. <thead>
  8407. <tr>
  8408. <th>Name</th>
  8409. <th>In</th>
  8410. <th>Type</th>
  8411. <th>Required</th>
  8412. <th>Description</th>
  8413. </tr>
  8414. </thead>
  8415. <tbody>
  8416. <tr>
  8417. <td>board</td>
  8418. <td>path</td>
  8419. <td>string</td>
  8420. <td>true</td>
  8421. <td>the board ID of the new card</td>
  8422. </tr>
  8423. <tr>
  8424. <td>list</td>
  8425. <td>path</td>
  8426. <td>string</td>
  8427. <td>true</td>
  8428. <td>the list ID of the new card</td>
  8429. </tr>
  8430. <tr>
  8431. <td>body</td>
  8432. <td>body</td>
  8433. <td>object</td>
  8434. <td>true</td>
  8435. <td>none</td>
  8436. </tr>
  8437. <tr>
  8438. <td>» authorId</td>
  8439. <td>body</td>
  8440. <td>string</td>
  8441. <td>true</td>
  8442. <td>the authorId value</td>
  8443. </tr>
  8444. <tr>
  8445. <td>» members</td>
  8446. <td>body</td>
  8447. <td>string</td>
  8448. <td>false</td>
  8449. <td>the member IDs list of the new card</td>
  8450. </tr>
  8451. <tr>
  8452. <td>» assignees</td>
  8453. <td>body</td>
  8454. <td>string</td>
  8455. <td>false</td>
  8456. <td>the assignee IDs list of the new card</td>
  8457. </tr>
  8458. <tr>
  8459. <td>» title</td>
  8460. <td>body</td>
  8461. <td>string</td>
  8462. <td>true</td>
  8463. <td>the title of the new card</td>
  8464. </tr>
  8465. <tr>
  8466. <td>» description</td>
  8467. <td>body</td>
  8468. <td>string</td>
  8469. <td>true</td>
  8470. <td>the description of the new card</td>
  8471. </tr>
  8472. <tr>
  8473. <td>» swimlaneId</td>
  8474. <td>body</td>
  8475. <td>string</td>
  8476. <td>true</td>
  8477. <td>the swimlane ID of the new card</td>
  8478. </tr>
  8479. </tbody>
  8480. </table>
  8481. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8482. <p><strong>board</strong>: the board ID of the new card</p>
  8483. <p><strong>list</strong>: the list ID of the new card</p>
  8484. <blockquote>
  8485. <p>Example responses</p>
  8486. </blockquote>
  8487. <blockquote>
  8488. <p>200 Response</p>
  8489. </blockquote>
  8490. <pre class="highlight tab tab-json"><code>{
  8491. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8492. }
  8493. </code></pre>
  8494. <h3 id="new_card-responses">Responses</h3>
  8495. <table>
  8496. <thead>
  8497. <tr>
  8498. <th>Status</th>
  8499. <th>Meaning</th>
  8500. <th>Description</th>
  8501. <th>Schema</th>
  8502. </tr>
  8503. </thead>
  8504. <tbody>
  8505. <tr>
  8506. <td>200</td>
  8507. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8508. <td>200 response</td>
  8509. <td>Inline</td>
  8510. </tr>
  8511. </tbody>
  8512. </table>
  8513. <h3 id="new_card-responseschema">Response Schema</h3>
  8514. <p>Status Code <strong>200</strong></p>
  8515. <table>
  8516. <thead>
  8517. <tr>
  8518. <th>Name</th>
  8519. <th>Type</th>
  8520. <th>Required</th>
  8521. <th>Restrictions</th>
  8522. <th>Description</th>
  8523. </tr>
  8524. </thead>
  8525. <tbody>
  8526. <tr>
  8527. <td>» _id</td>
  8528. <td>string</td>
  8529. <td>false</td>
  8530. <td>none</td>
  8531. <td>none</td>
  8532. </tr>
  8533. </tbody>
  8534. </table>
  8535. <aside class="warning">
  8536. To perform this operation, you must be authenticated by means of one of the following methods:
  8537. UserSecurity
  8538. </aside>
  8539. <h2 id="get_card">get_card</h2>
  8540. <p><a id="opIdget_card"></a></p>
  8541. <blockquote>
  8542. <p>Code samples</p>
  8543. </blockquote>
  8544. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8545. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  8546. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8547. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8548. </code></pre>
  8549. <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> <span class="hljs-meta">HTTP/1.1</span>
  8550. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8551. </span></code></pre>
  8552. <pre class="highlight tab tab-javascript"><code>
  8553. <span class="hljs-keyword">const</span> headers = {
  8554. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8555. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8556. };
  8557. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8558. {
  8559. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8560. <span class="hljs-attr">headers</span>: headers
  8561. })
  8562. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8563. <span class="hljs-keyword">return</span> res.json();
  8564. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8565. <span class="hljs-built_in">console</span>.log(body);
  8566. });
  8567. </code></pre>
  8568. <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">&#x27;node-fetch&#x27;</span>);
  8569. <span class="hljs-keyword">const</span> headers = {
  8570. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8571. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8572. };
  8573. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8574. {
  8575. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8576. <span class="hljs-attr">headers</span>: headers
  8577. })
  8578. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8579. <span class="hljs-keyword">return</span> res.json();
  8580. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8581. <span class="hljs-built_in">console</span>.log(body);
  8582. });
  8583. </code></pre>
  8584. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8585. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8586. headers = {
  8587. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8588. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8589. }
  8590. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8591. <span class="hljs-symbol">params:</span> {
  8592. }, <span class="hljs-symbol">headers:</span> headers
  8593. p JSON.parse(result)
  8594. </code></pre>
  8595. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8596. headers = {
  8597. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8598. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8599. }
  8600. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8601. <span class="hljs-built_in">print</span>(r.json())
  8602. </code></pre>
  8603. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>);
  8604. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8605. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8606. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8607. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8608. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8609. String inputLine;
  8610. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8611. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8612. response.append(inputLine);
  8613. }
  8614. in.close();
  8615. System.out.println(response.toString());
  8616. </code></pre>
  8617. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8618. <span class="hljs-keyword">import</span> (
  8619. <span class="hljs-string">&quot;bytes&quot;</span>
  8620. <span class="hljs-string">&quot;net/http&quot;</span>
  8621. )
  8622. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8623. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8624. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8625. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8626. }
  8627. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8628. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>, data)
  8629. req.Header = headers
  8630. client := &amp;http.Client{}
  8631. resp, err := client.Do(req)
  8632. <span class="hljs-comment">// ...</span>
  8633. }
  8634. </code></pre>
  8635. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8636. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8637. );
  8638. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8639. <span class="hljs-comment">// Define array of request body.</span>
  8640. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8641. <span class="hljs-keyword">try</span> {
  8642. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, <span class="hljs-keyword">array</span>(
  8643. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8644. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8645. )
  8646. );
  8647. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8648. }
  8649. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8650. <span class="hljs-comment">// handle exception or api errors.</span>
  8651. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8652. }
  8653. <span class="hljs-comment">// ...</span>
  8654. </code></pre>
  8655. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8656. <p><em>Get a Card</em></p>
  8657. <h3 id="get_card-parameters">Parameters</h3>
  8658. <table>
  8659. <thead>
  8660. <tr>
  8661. <th>Name</th>
  8662. <th>In</th>
  8663. <th>Type</th>
  8664. <th>Required</th>
  8665. <th>Description</th>
  8666. </tr>
  8667. </thead>
  8668. <tbody>
  8669. <tr>
  8670. <td>board</td>
  8671. <td>path</td>
  8672. <td>string</td>
  8673. <td>true</td>
  8674. <td>the board ID</td>
  8675. </tr>
  8676. <tr>
  8677. <td>list</td>
  8678. <td>path</td>
  8679. <td>string</td>
  8680. <td>true</td>
  8681. <td>the list ID of the card</td>
  8682. </tr>
  8683. <tr>
  8684. <td>card</td>
  8685. <td>path</td>
  8686. <td>string</td>
  8687. <td>true</td>
  8688. <td>the card ID</td>
  8689. </tr>
  8690. </tbody>
  8691. </table>
  8692. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  8693. <p><strong>board</strong>: the board ID</p>
  8694. <p><strong>list</strong>: the list ID of the card</p>
  8695. <p><strong>card</strong>: the card ID</p>
  8696. <blockquote>
  8697. <p>Example responses</p>
  8698. </blockquote>
  8699. <blockquote>
  8700. <p>200 Response</p>
  8701. </blockquote>
  8702. <pre class="highlight tab tab-json"><code>{
  8703. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8704. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  8705. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8706. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8707. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8708. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8709. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8710. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8711. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  8712. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8713. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8714. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  8715. {}
  8716. ],
  8717. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8718. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8719. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8720. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8721. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  8722. <span class="hljs-string">&quot;string&quot;</span>
  8723. ],
  8724. <span class="hljs-attr">&quot;members&quot;</span>: [
  8725. <span class="hljs-string">&quot;string&quot;</span>
  8726. ],
  8727. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  8728. <span class="hljs-string">&quot;string&quot;</span>
  8729. ],
  8730. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8731. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8732. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8733. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8734. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  8735. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  8736. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8737. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  8738. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  8739. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8740. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8741. <span class="hljs-attr">&quot;vote&quot;</span>: {
  8742. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8743. <span class="hljs-attr">&quot;positive&quot;</span>: [
  8744. <span class="hljs-string">&quot;string&quot;</span>
  8745. ],
  8746. <span class="hljs-attr">&quot;negative&quot;</span>: [
  8747. <span class="hljs-string">&quot;string&quot;</span>
  8748. ],
  8749. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8750. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  8751. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  8752. },
  8753. <span class="hljs-attr">&quot;poker&quot;</span>: {
  8754. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  8755. <span class="hljs-attr">&quot;one&quot;</span>: [
  8756. <span class="hljs-string">&quot;string&quot;</span>
  8757. ],
  8758. <span class="hljs-attr">&quot;two&quot;</span>: [
  8759. <span class="hljs-string">&quot;string&quot;</span>
  8760. ],
  8761. <span class="hljs-attr">&quot;three&quot;</span>: [
  8762. <span class="hljs-string">&quot;string&quot;</span>
  8763. ],
  8764. <span class="hljs-attr">&quot;five&quot;</span>: [
  8765. <span class="hljs-string">&quot;string&quot;</span>
  8766. ],
  8767. <span class="hljs-attr">&quot;eight&quot;</span>: [
  8768. <span class="hljs-string">&quot;string&quot;</span>
  8769. ],
  8770. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  8771. <span class="hljs-string">&quot;string&quot;</span>
  8772. ],
  8773. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  8774. <span class="hljs-string">&quot;string&quot;</span>
  8775. ],
  8776. <span class="hljs-attr">&quot;forty&quot;</span>: [
  8777. <span class="hljs-string">&quot;string&quot;</span>
  8778. ],
  8779. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  8780. <span class="hljs-string">&quot;string&quot;</span>
  8781. ],
  8782. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  8783. <span class="hljs-string">&quot;string&quot;</span>
  8784. ],
  8785. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8786. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  8787. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  8788. },
  8789. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  8790. <span class="hljs-string">&quot;string&quot;</span>
  8791. ],
  8792. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  8793. <span class="hljs-number">0</span>
  8794. ],
  8795. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  8796. <span class="hljs-string">&quot;string&quot;</span>
  8797. ],
  8798. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  8799. }
  8800. </code></pre>
  8801. <h3 id="get_card-responses">Responses</h3>
  8802. <table>
  8803. <thead>
  8804. <tr>
  8805. <th>Status</th>
  8806. <th>Meaning</th>
  8807. <th>Description</th>
  8808. <th>Schema</th>
  8809. </tr>
  8810. </thead>
  8811. <tbody>
  8812. <tr>
  8813. <td>200</td>
  8814. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8815. <td>200 response</td>
  8816. <td><a href="#schemacards">Cards</a></td>
  8817. </tr>
  8818. </tbody>
  8819. </table>
  8820. <aside class="warning">
  8821. To perform this operation, you must be authenticated by means of one of the following methods:
  8822. UserSecurity
  8823. </aside>
  8824. <h2 id="edit_card">edit_card</h2>
  8825. <p><a id="opIdedit_card"></a></p>
  8826. <blockquote>
  8827. <p>Code samples</p>
  8828. </blockquote>
  8829. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8830. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8831. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8832. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8833. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8834. </code></pre>
  8835. <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> <span class="hljs-meta">HTTP/1.1</span>
  8836. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8837. Accept: application/json
  8838. </span></code></pre>
  8839. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8840. &quot;newBoardId&quot;: &quot;string&quot;,
  8841. &quot;newSwimlaneId&quot;: &quot;string&quot;,
  8842. &quot;newListId&quot;: &quot;string&quot;,
  8843. &quot;title&quot;: &quot;string&quot;,
  8844. &quot;sort&quot;: &quot;string&quot;,
  8845. &quot;parentId&quot;: &quot;string&quot;,
  8846. &quot;description&quot;: &quot;string&quot;,
  8847. &quot;color&quot;: &quot;string&quot;,
  8848. &quot;vote&quot;: {},
  8849. &quot;poker&quot;: {},
  8850. &quot;labelIds&quot;: &quot;string&quot;,
  8851. &quot;requestedBy&quot;: &quot;string&quot;,
  8852. &quot;assignedBy&quot;: &quot;string&quot;,
  8853. &quot;receivedAt&quot;: &quot;string&quot;,
  8854. &quot;startAt&quot;: &quot;string&quot;,
  8855. &quot;dueAt&quot;: &quot;string&quot;,
  8856. &quot;endAt&quot;: &quot;string&quot;,
  8857. &quot;spentTime&quot;: &quot;string&quot;,
  8858. &quot;isOverTime&quot;: true,
  8859. &quot;customFields&quot;: &quot;string&quot;,
  8860. &quot;members&quot;: &quot;string&quot;,
  8861. &quot;assignees&quot;: &quot;string&quot;,
  8862. &quot;swimlaneId&quot;: &quot;string&quot;,
  8863. &quot;listId&quot;: &quot;string&quot;,
  8864. &quot;authorId&quot;: &quot;string&quot;,
  8865. &quot;archive&quot;: &quot;string&quot;
  8866. }&#x27;</span>;
  8867. <span class="hljs-keyword">const</span> headers = {
  8868. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8869. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8870. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8871. };
  8872. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8873. {
  8874. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8875. <span class="hljs-attr">body</span>: inputBody,
  8876. <span class="hljs-attr">headers</span>: headers
  8877. })
  8878. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8879. <span class="hljs-keyword">return</span> res.json();
  8880. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8881. <span class="hljs-built_in">console</span>.log(body);
  8882. });
  8883. </code></pre>
  8884. <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">&#x27;node-fetch&#x27;</span>);
  8885. <span class="hljs-keyword">const</span> inputBody = {
  8886. <span class="hljs-string">&quot;newBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8887. <span class="hljs-string">&quot;newSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8888. <span class="hljs-string">&quot;newListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8889. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8890. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8891. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8892. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8893. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8894. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8895. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8896. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8897. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8898. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8899. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8900. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8901. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8902. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8903. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8904. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8905. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8906. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8907. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8908. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8909. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8910. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8911. <span class="hljs-string">&quot;archive&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8912. };
  8913. <span class="hljs-keyword">const</span> headers = {
  8914. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8915. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8916. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8917. };
  8918. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8919. {
  8920. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8921. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8922. <span class="hljs-attr">headers</span>: headers
  8923. })
  8924. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8925. <span class="hljs-keyword">return</span> res.json();
  8926. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8927. <span class="hljs-built_in">console</span>.log(body);
  8928. });
  8929. </code></pre>
  8930. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8931. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8932. headers = {
  8933. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8934. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8935. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8936. }
  8937. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8938. <span class="hljs-symbol">params:</span> {
  8939. }, <span class="hljs-symbol">headers:</span> headers
  8940. p JSON.parse(result)
  8941. </code></pre>
  8942. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8943. headers = {
  8944. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8945. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8946. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8947. }
  8948. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8949. <span class="hljs-built_in">print</span>(r.json())
  8950. </code></pre>
  8951. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>);
  8952. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8953. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8954. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8955. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8956. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8957. String inputLine;
  8958. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8959. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8960. response.append(inputLine);
  8961. }
  8962. in.close();
  8963. System.out.println(response.toString());
  8964. </code></pre>
  8965. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8966. <span class="hljs-keyword">import</span> (
  8967. <span class="hljs-string">&quot;bytes&quot;</span>
  8968. <span class="hljs-string">&quot;net/http&quot;</span>
  8969. )
  8970. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8971. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8972. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  8973. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8974. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8975. }
  8976. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8977. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>, data)
  8978. req.Header = headers
  8979. client := &amp;http.Client{}
  8980. resp, err := client.Do(req)
  8981. <span class="hljs-comment">// ...</span>
  8982. }
  8983. </code></pre>
  8984. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8985. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8986. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8987. );
  8988. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8989. <span class="hljs-comment">// Define array of request body.</span>
  8990. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8991. <span class="hljs-keyword">try</span> {
  8992. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, <span class="hljs-keyword">array</span>(
  8993. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8994. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8995. )
  8996. );
  8997. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8998. }
  8999. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9000. <span class="hljs-comment">// handle exception or api errors.</span>
  9001. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9002. }
  9003. <span class="hljs-comment">// ...</span>
  9004. </code></pre>
  9005. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  9006. <p><em>Edit Fields in a Card</em></p>
  9007. <p>Edit a card</p>
  9008. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  9009. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  9010. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  9011. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  9012. <code>indigo</code>:</p>
  9013. <img src="/card-colors.png" alt="Wekan card colors" />
  9014. <p>Note: setting the color to white has the same effect than removing it.</p>
  9015. <blockquote>
  9016. <p>Body parameter</p>
  9017. </blockquote>
  9018. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">newBoardId:</span> <span class="hljs-string">string</span>
  9019. <span class="hljs-attr">newSwimlaneId:</span> <span class="hljs-string">string</span>
  9020. <span class="hljs-attr">newListId:</span> <span class="hljs-string">string</span>
  9021. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  9022. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  9023. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  9024. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  9025. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  9026. <span class="hljs-attr">vote:</span> {}
  9027. <span class="hljs-attr">poker:</span> {}
  9028. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  9029. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  9030. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  9031. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  9032. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  9033. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  9034. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  9035. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  9036. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  9037. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  9038. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  9039. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  9040. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  9041. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  9042. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9043. <span class="hljs-attr">archive:</span> <span class="hljs-string">string</span>
  9044. </code></pre>
  9045. <h3 id="edit_card-parameters">Parameters</h3>
  9046. <table>
  9047. <thead>
  9048. <tr>
  9049. <th>Name</th>
  9050. <th>In</th>
  9051. <th>Type</th>
  9052. <th>Required</th>
  9053. <th>Description</th>
  9054. </tr>
  9055. </thead>
  9056. <tbody>
  9057. <tr>
  9058. <td>board</td>
  9059. <td>path</td>
  9060. <td>string</td>
  9061. <td>true</td>
  9062. <td>the board ID of the card</td>
  9063. </tr>
  9064. <tr>
  9065. <td>list</td>
  9066. <td>path</td>
  9067. <td>string</td>
  9068. <td>true</td>
  9069. <td>the list ID of the card</td>
  9070. </tr>
  9071. <tr>
  9072. <td>card</td>
  9073. <td>path</td>
  9074. <td>string</td>
  9075. <td>true</td>
  9076. <td>the ID of the card</td>
  9077. </tr>
  9078. <tr>
  9079. <td>body</td>
  9080. <td>body</td>
  9081. <td>object</td>
  9082. <td>true</td>
  9083. <td>none</td>
  9084. </tr>
  9085. <tr>
  9086. <td>» newBoardId</td>
  9087. <td>body</td>
  9088. <td>string</td>
  9089. <td>true</td>
  9090. <td>the newBoardId value</td>
  9091. </tr>
  9092. <tr>
  9093. <td>» newSwimlaneId</td>
  9094. <td>body</td>
  9095. <td>string</td>
  9096. <td>true</td>
  9097. <td>the newSwimlaneId value</td>
  9098. </tr>
  9099. <tr>
  9100. <td>» newListId</td>
  9101. <td>body</td>
  9102. <td>string</td>
  9103. <td>true</td>
  9104. <td>the newListId value</td>
  9105. </tr>
  9106. <tr>
  9107. <td>» title</td>
  9108. <td>body</td>
  9109. <td>string</td>
  9110. <td>false</td>
  9111. <td>the new title of the card</td>
  9112. </tr>
  9113. <tr>
  9114. <td>» sort</td>
  9115. <td>body</td>
  9116. <td>string</td>
  9117. <td>false</td>
  9118. <td>the new sort value of the card</td>
  9119. </tr>
  9120. <tr>
  9121. <td>» parentId</td>
  9122. <td>body</td>
  9123. <td>string</td>
  9124. <td>false</td>
  9125. <td>change the parent of the card</td>
  9126. </tr>
  9127. <tr>
  9128. <td>» description</td>
  9129. <td>body</td>
  9130. <td>string</td>
  9131. <td>false</td>
  9132. <td>the new description of the card</td>
  9133. </tr>
  9134. <tr>
  9135. <td>» color</td>
  9136. <td>body</td>
  9137. <td>string</td>
  9138. <td>false</td>
  9139. <td>the new color of the card</td>
  9140. </tr>
  9141. <tr>
  9142. <td>» vote</td>
  9143. <td>body</td>
  9144. <td>object</td>
  9145. <td>false</td>
  9146. <td>the vote object</td>
  9147. </tr>
  9148. <tr>
  9149. <td>» poker</td>
  9150. <td>body</td>
  9151. <td>object</td>
  9152. <td>false</td>
  9153. <td>the poker object</td>
  9154. </tr>
  9155. <tr>
  9156. <td>» labelIds</td>
  9157. <td>body</td>
  9158. <td>string</td>
  9159. <td>false</td>
  9160. <td>the new list of label IDs attached to the card</td>
  9161. </tr>
  9162. <tr>
  9163. <td>» requestedBy</td>
  9164. <td>body</td>
  9165. <td>string</td>
  9166. <td>false</td>
  9167. <td>the new requestedBy field of the card</td>
  9168. </tr>
  9169. <tr>
  9170. <td>» assignedBy</td>
  9171. <td>body</td>
  9172. <td>string</td>
  9173. <td>false</td>
  9174. <td>the new assignedBy field of the card</td>
  9175. </tr>
  9176. <tr>
  9177. <td>» receivedAt</td>
  9178. <td>body</td>
  9179. <td>string</td>
  9180. <td>false</td>
  9181. <td>the new receivedAt field of the card</td>
  9182. </tr>
  9183. <tr>
  9184. <td>» startAt</td>
  9185. <td>body</td>
  9186. <td>string</td>
  9187. <td>false</td>
  9188. <td>the new startAt field of the card</td>
  9189. </tr>
  9190. <tr>
  9191. <td>» dueAt</td>
  9192. <td>body</td>
  9193. <td>string</td>
  9194. <td>false</td>
  9195. <td>the new dueAt field of the card</td>
  9196. </tr>
  9197. <tr>
  9198. <td>» endAt</td>
  9199. <td>body</td>
  9200. <td>string</td>
  9201. <td>false</td>
  9202. <td>the new endAt field of the card</td>
  9203. </tr>
  9204. <tr>
  9205. <td>» spentTime</td>
  9206. <td>body</td>
  9207. <td>string</td>
  9208. <td>false</td>
  9209. <td>the new spentTime field of the card</td>
  9210. </tr>
  9211. <tr>
  9212. <td>» isOverTime</td>
  9213. <td>body</td>
  9214. <td>boolean</td>
  9215. <td>false</td>
  9216. <td>the new isOverTime field of the card</td>
  9217. </tr>
  9218. <tr>
  9219. <td>» customFields</td>
  9220. <td>body</td>
  9221. <td>string</td>
  9222. <td>false</td>
  9223. <td>the new customFields value of the card</td>
  9224. </tr>
  9225. <tr>
  9226. <td>» members</td>
  9227. <td>body</td>
  9228. <td>string</td>
  9229. <td>false</td>
  9230. <td>the new list of member IDs attached to the card</td>
  9231. </tr>
  9232. <tr>
  9233. <td>» assignees</td>
  9234. <td>body</td>
  9235. <td>string</td>
  9236. <td>false</td>
  9237. <td>the array of maximum one ID of assignee attached to the card</td>
  9238. </tr>
  9239. <tr>
  9240. <td>» swimlaneId</td>
  9241. <td>body</td>
  9242. <td>string</td>
  9243. <td>false</td>
  9244. <td>the new swimlane ID of the card</td>
  9245. </tr>
  9246. <tr>
  9247. <td>» listId</td>
  9248. <td>body</td>
  9249. <td>string</td>
  9250. <td>false</td>
  9251. <td>the new list ID of the card (move operation)</td>
  9252. </tr>
  9253. <tr>
  9254. <td>» authorId</td>
  9255. <td>body</td>
  9256. <td>string</td>
  9257. <td>false</td>
  9258. <td>change the owner of the card</td>
  9259. </tr>
  9260. <tr>
  9261. <td>» archive</td>
  9262. <td>body</td>
  9263. <td>string</td>
  9264. <td>true</td>
  9265. <td>the archive value</td>
  9266. </tr>
  9267. </tbody>
  9268. </table>
  9269. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  9270. <p><strong>board</strong>: the board ID of the card</p>
  9271. <p><strong>list</strong>: the list ID of the card</p>
  9272. <p><strong>card</strong>: the ID of the card</p>
  9273. <blockquote>
  9274. <p>Example responses</p>
  9275. </blockquote>
  9276. <blockquote>
  9277. <p>200 Response</p>
  9278. </blockquote>
  9279. <pre class="highlight tab tab-json"><code>{
  9280. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9281. }
  9282. </code></pre>
  9283. <h3 id="edit_card-responses">Responses</h3>
  9284. <table>
  9285. <thead>
  9286. <tr>
  9287. <th>Status</th>
  9288. <th>Meaning</th>
  9289. <th>Description</th>
  9290. <th>Schema</th>
  9291. </tr>
  9292. </thead>
  9293. <tbody>
  9294. <tr>
  9295. <td>200</td>
  9296. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9297. <td>200 response</td>
  9298. <td>Inline</td>
  9299. </tr>
  9300. </tbody>
  9301. </table>
  9302. <h3 id="edit_card-responseschema">Response Schema</h3>
  9303. <p>Status Code <strong>200</strong></p>
  9304. <table>
  9305. <thead>
  9306. <tr>
  9307. <th>Name</th>
  9308. <th>Type</th>
  9309. <th>Required</th>
  9310. <th>Restrictions</th>
  9311. <th>Description</th>
  9312. </tr>
  9313. </thead>
  9314. <tbody>
  9315. <tr>
  9316. <td>» _id</td>
  9317. <td>string</td>
  9318. <td>false</td>
  9319. <td>none</td>
  9320. <td>none</td>
  9321. </tr>
  9322. </tbody>
  9323. </table>
  9324. <aside class="warning">
  9325. To perform this operation, you must be authenticated by means of one of the following methods:
  9326. UserSecurity
  9327. </aside>
  9328. <h2 id="delete_card">delete_card</h2>
  9329. <p><a id="opIddelete_card"></a></p>
  9330. <blockquote>
  9331. <p>Code samples</p>
  9332. </blockquote>
  9333. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9334. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  9335. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9336. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9337. </code></pre>
  9338. <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> <span class="hljs-meta">HTTP/1.1</span>
  9339. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9340. </span></code></pre>
  9341. <pre class="highlight tab tab-javascript"><code>
  9342. <span class="hljs-keyword">const</span> headers = {
  9343. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9344. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9345. };
  9346. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  9347. {
  9348. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9349. <span class="hljs-attr">headers</span>: headers
  9350. })
  9351. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9352. <span class="hljs-keyword">return</span> res.json();
  9353. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9354. <span class="hljs-built_in">console</span>.log(body);
  9355. });
  9356. </code></pre>
  9357. <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">&#x27;node-fetch&#x27;</span>);
  9358. <span class="hljs-keyword">const</span> headers = {
  9359. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9360. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9361. };
  9362. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  9363. {
  9364. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9365. <span class="hljs-attr">headers</span>: headers
  9366. })
  9367. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9368. <span class="hljs-keyword">return</span> res.json();
  9369. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9370. <span class="hljs-built_in">console</span>.log(body);
  9371. });
  9372. </code></pre>
  9373. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9374. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9375. headers = {
  9376. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9377. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9378. }
  9379. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  9380. <span class="hljs-symbol">params:</span> {
  9381. }, <span class="hljs-symbol">headers:</span> headers
  9382. p JSON.parse(result)
  9383. </code></pre>
  9384. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9385. headers = {
  9386. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9387. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9388. }
  9389. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  9390. <span class="hljs-built_in">print</span>(r.json())
  9391. </code></pre>
  9392. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>);
  9393. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9394. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  9395. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9396. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9397. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9398. String inputLine;
  9399. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9400. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9401. response.append(inputLine);
  9402. }
  9403. in.close();
  9404. System.out.println(response.toString());
  9405. </code></pre>
  9406. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9407. <span class="hljs-keyword">import</span> (
  9408. <span class="hljs-string">&quot;bytes&quot;</span>
  9409. <span class="hljs-string">&quot;net/http&quot;</span>
  9410. )
  9411. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9412. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9413. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9414. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9415. }
  9416. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9417. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>, data)
  9418. req.Header = headers
  9419. client := &amp;http.Client{}
  9420. resp, err := client.Do(req)
  9421. <span class="hljs-comment">// ...</span>
  9422. }
  9423. </code></pre>
  9424. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9425. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9426. );
  9427. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9428. <span class="hljs-comment">// Define array of request body.</span>
  9429. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9430. <span class="hljs-keyword">try</span> {
  9431. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, <span class="hljs-keyword">array</span>(
  9432. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9433. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9434. )
  9435. );
  9436. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9437. }
  9438. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9439. <span class="hljs-comment">// handle exception or api errors.</span>
  9440. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9441. }
  9442. <span class="hljs-comment">// ...</span>
  9443. </code></pre>
  9444. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  9445. <p><em>Delete a card from a board</em></p>
  9446. <p>This operation <strong>deletes</strong> a card, and therefore the card
  9447. is not put in the recycle bin.</p>
  9448. <h3 id="delete_card-parameters">Parameters</h3>
  9449. <table>
  9450. <thead>
  9451. <tr>
  9452. <th>Name</th>
  9453. <th>In</th>
  9454. <th>Type</th>
  9455. <th>Required</th>
  9456. <th>Description</th>
  9457. </tr>
  9458. </thead>
  9459. <tbody>
  9460. <tr>
  9461. <td>board</td>
  9462. <td>path</td>
  9463. <td>string</td>
  9464. <td>true</td>
  9465. <td>the board ID of the card</td>
  9466. </tr>
  9467. <tr>
  9468. <td>list</td>
  9469. <td>path</td>
  9470. <td>string</td>
  9471. <td>true</td>
  9472. <td>the list ID of the card</td>
  9473. </tr>
  9474. <tr>
  9475. <td>card</td>
  9476. <td>path</td>
  9477. <td>string</td>
  9478. <td>true</td>
  9479. <td>the ID of the card</td>
  9480. </tr>
  9481. </tbody>
  9482. </table>
  9483. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  9484. <p><strong>board</strong>: the board ID of the card</p>
  9485. <p><strong>list</strong>: the list ID of the card</p>
  9486. <p><strong>card</strong>: the ID of the card</p>
  9487. <blockquote>
  9488. <p>Example responses</p>
  9489. </blockquote>
  9490. <blockquote>
  9491. <p>200 Response</p>
  9492. </blockquote>
  9493. <pre class="highlight tab tab-json"><code>{
  9494. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9495. }
  9496. </code></pre>
  9497. <h3 id="delete_card-responses">Responses</h3>
  9498. <table>
  9499. <thead>
  9500. <tr>
  9501. <th>Status</th>
  9502. <th>Meaning</th>
  9503. <th>Description</th>
  9504. <th>Schema</th>
  9505. </tr>
  9506. </thead>
  9507. <tbody>
  9508. <tr>
  9509. <td>200</td>
  9510. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9511. <td>200 response</td>
  9512. <td>Inline</td>
  9513. </tr>
  9514. </tbody>
  9515. </table>
  9516. <h3 id="delete_card-responseschema">Response Schema</h3>
  9517. <p>Status Code <strong>200</strong></p>
  9518. <table>
  9519. <thead>
  9520. <tr>
  9521. <th>Name</th>
  9522. <th>Type</th>
  9523. <th>Required</th>
  9524. <th>Restrictions</th>
  9525. <th>Description</th>
  9526. </tr>
  9527. </thead>
  9528. <tbody>
  9529. <tr>
  9530. <td>» _id</td>
  9531. <td>string</td>
  9532. <td>false</td>
  9533. <td>none</td>
  9534. <td>none</td>
  9535. </tr>
  9536. </tbody>
  9537. </table>
  9538. <aside class="warning">
  9539. To perform this operation, you must be authenticated by means of one of the following methods:
  9540. UserSecurity
  9541. </aside>
  9542. <h2 id="edit_card_custom_field">edit_card_custom_field</h2>
  9543. <p><a id="opIdedit_card_custom_field"></a></p>
  9544. <blockquote>
  9545. <p>Code samples</p>
  9546. </blockquote>
  9547. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9548. curl -X POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField} \
  9549. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9550. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9551. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9552. </code></pre>
  9553. <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> <span class="hljs-meta">HTTP/1.1</span>
  9554. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9555. Accept: application/json
  9556. </span></code></pre>
  9557. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9558. &quot;value&quot;: &quot;string&quot;
  9559. }&#x27;</span>;
  9560. <span class="hljs-keyword">const</span> headers = {
  9561. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9562. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9563. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9564. };
  9565. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9566. {
  9567. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9568. <span class="hljs-attr">body</span>: inputBody,
  9569. <span class="hljs-attr">headers</span>: headers
  9570. })
  9571. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9572. <span class="hljs-keyword">return</span> res.json();
  9573. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9574. <span class="hljs-built_in">console</span>.log(body);
  9575. });
  9576. </code></pre>
  9577. <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">&#x27;node-fetch&#x27;</span>);
  9578. <span class="hljs-keyword">const</span> inputBody = {
  9579. <span class="hljs-string">&quot;value&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9580. };
  9581. <span class="hljs-keyword">const</span> headers = {
  9582. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9583. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9584. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9585. };
  9586. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9587. {
  9588. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9589. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9590. <span class="hljs-attr">headers</span>: headers
  9591. })
  9592. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9593. <span class="hljs-keyword">return</span> res.json();
  9594. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9595. <span class="hljs-built_in">console</span>.log(body);
  9596. });
  9597. </code></pre>
  9598. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9599. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9600. headers = {
  9601. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9602. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9603. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9604. }
  9605. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9606. <span class="hljs-symbol">params:</span> {
  9607. }, <span class="hljs-symbol">headers:</span> headers
  9608. p JSON.parse(result)
  9609. </code></pre>
  9610. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9611. headers = {
  9612. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9613. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9614. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9615. }
  9616. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>, headers = headers)
  9617. <span class="hljs-built_in">print</span>(r.json())
  9618. </code></pre>
  9619. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&quot;</span>);
  9620. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9621. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9622. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9623. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9624. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9625. String inputLine;
  9626. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9627. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9628. response.append(inputLine);
  9629. }
  9630. in.close();
  9631. System.out.println(response.toString());
  9632. </code></pre>
  9633. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9634. <span class="hljs-keyword">import</span> (
  9635. <span class="hljs-string">&quot;bytes&quot;</span>
  9636. <span class="hljs-string">&quot;net/http&quot;</span>
  9637. )
  9638. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9639. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9640. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  9641. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9642. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9643. }
  9644. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9645. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&quot;</span>, data)
  9646. req.Header = headers
  9647. client := &amp;http.Client{}
  9648. resp, err := client.Do(req)
  9649. <span class="hljs-comment">// ...</span>
  9650. }
  9651. </code></pre>
  9652. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9653. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9654. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9655. );
  9656. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9657. <span class="hljs-comment">// Define array of request body.</span>
  9658. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9659. <span class="hljs-keyword">try</span> {
  9660. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>, <span class="hljs-keyword">array</span>(
  9661. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9662. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9663. )
  9664. );
  9665. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9666. }
  9667. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9668. <span class="hljs-comment">// handle exception or api errors.</span>
  9669. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9670. }
  9671. <span class="hljs-comment">// ...</span>
  9672. </code></pre>
  9673. <p><code>POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</code></p>
  9674. <p><em>Edit Custom Field in a Card</em></p>
  9675. <p>Edit a custom field value in a card</p>
  9676. <blockquote>
  9677. <p>Body parameter</p>
  9678. </blockquote>
  9679. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">value:</span> <span class="hljs-string">string</span>
  9680. </code></pre>
  9681. <h3 id="edit_card_custom_field-parameters">Parameters</h3>
  9682. <table>
  9683. <thead>
  9684. <tr>
  9685. <th>Name</th>
  9686. <th>In</th>
  9687. <th>Type</th>
  9688. <th>Required</th>
  9689. <th>Description</th>
  9690. </tr>
  9691. </thead>
  9692. <tbody>
  9693. <tr>
  9694. <td>board</td>
  9695. <td>path</td>
  9696. <td>string</td>
  9697. <td>true</td>
  9698. <td>the board ID of the card</td>
  9699. </tr>
  9700. <tr>
  9701. <td>list</td>
  9702. <td>path</td>
  9703. <td>string</td>
  9704. <td>true</td>
  9705. <td>the list ID of the card</td>
  9706. </tr>
  9707. <tr>
  9708. <td>card</td>
  9709. <td>path</td>
  9710. <td>string</td>
  9711. <td>true</td>
  9712. <td>the ID of the card</td>
  9713. </tr>
  9714. <tr>
  9715. <td>customField</td>
  9716. <td>path</td>
  9717. <td>string</td>
  9718. <td>true</td>
  9719. <td>the ID of the custom field</td>
  9720. </tr>
  9721. <tr>
  9722. <td>body</td>
  9723. <td>body</td>
  9724. <td>object</td>
  9725. <td>true</td>
  9726. <td>none</td>
  9727. </tr>
  9728. <tr>
  9729. <td>» value</td>
  9730. <td>body</td>
  9731. <td>string</td>
  9732. <td>true</td>
  9733. <td>the new custom field value</td>
  9734. </tr>
  9735. </tbody>
  9736. </table>
  9737. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  9738. <p><strong>board</strong>: the board ID of the card</p>
  9739. <p><strong>list</strong>: the list ID of the card</p>
  9740. <p><strong>card</strong>: the ID of the card</p>
  9741. <p><strong>customField</strong>: the ID of the custom field</p>
  9742. <blockquote>
  9743. <p>Example responses</p>
  9744. </blockquote>
  9745. <blockquote>
  9746. <p>200 Response</p>
  9747. </blockquote>
  9748. <pre class="highlight tab tab-json"><code>{
  9749. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9750. <span class="hljs-attr">&quot;customFields&quot;</span>: {}
  9751. }
  9752. </code></pre>
  9753. <h3 id="edit_card_custom_field-responses">Responses</h3>
  9754. <table>
  9755. <thead>
  9756. <tr>
  9757. <th>Status</th>
  9758. <th>Meaning</th>
  9759. <th>Description</th>
  9760. <th>Schema</th>
  9761. </tr>
  9762. </thead>
  9763. <tbody>
  9764. <tr>
  9765. <td>200</td>
  9766. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9767. <td>200 response</td>
  9768. <td>Inline</td>
  9769. </tr>
  9770. </tbody>
  9771. </table>
  9772. <h3 id="edit_card_custom_field-responseschema">Response Schema</h3>
  9773. <p>Status Code <strong>200</strong></p>
  9774. <table>
  9775. <thead>
  9776. <tr>
  9777. <th>Name</th>
  9778. <th>Type</th>
  9779. <th>Required</th>
  9780. <th>Restrictions</th>
  9781. <th>Description</th>
  9782. </tr>
  9783. </thead>
  9784. <tbody>
  9785. <tr>
  9786. <td>» _id</td>
  9787. <td>string</td>
  9788. <td>false</td>
  9789. <td>none</td>
  9790. <td>none</td>
  9791. </tr>
  9792. <tr>
  9793. <td>» customFields</td>
  9794. <td>object</td>
  9795. <td>false</td>
  9796. <td>none</td>
  9797. <td>none</td>
  9798. </tr>
  9799. </tbody>
  9800. </table>
  9801. <aside class="warning">
  9802. To perform this operation, you must be authenticated by means of one of the following methods:
  9803. UserSecurity
  9804. </aside>
  9805. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  9806. <p><a id="opIdget_list_cards_count"></a></p>
  9807. <blockquote>
  9808. <p>Code samples</p>
  9809. </blockquote>
  9810. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9811. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  9812. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9813. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9814. </code></pre>
  9815. <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> <span class="hljs-meta">HTTP/1.1</span>
  9816. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9817. </span></code></pre>
  9818. <pre class="highlight tab tab-javascript"><code>
  9819. <span class="hljs-keyword">const</span> headers = {
  9820. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9821. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9822. };
  9823. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9824. {
  9825. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9826. <span class="hljs-attr">headers</span>: headers
  9827. })
  9828. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9829. <span class="hljs-keyword">return</span> res.json();
  9830. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9831. <span class="hljs-built_in">console</span>.log(body);
  9832. });
  9833. </code></pre>
  9834. <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">&#x27;node-fetch&#x27;</span>);
  9835. <span class="hljs-keyword">const</span> headers = {
  9836. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9837. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9838. };
  9839. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9840. {
  9841. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9842. <span class="hljs-attr">headers</span>: headers
  9843. })
  9844. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9845. <span class="hljs-keyword">return</span> res.json();
  9846. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9847. <span class="hljs-built_in">console</span>.log(body);
  9848. });
  9849. </code></pre>
  9850. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9851. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9852. headers = {
  9853. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9854. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9855. }
  9856. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9857. <span class="hljs-symbol">params:</span> {
  9858. }, <span class="hljs-symbol">headers:</span> headers
  9859. p JSON.parse(result)
  9860. </code></pre>
  9861. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9862. headers = {
  9863. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9864. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9865. }
  9866. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>, headers = headers)
  9867. <span class="hljs-built_in">print</span>(r.json())
  9868. </code></pre>
  9869. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards_count&quot;</span>);
  9870. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9871. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9872. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9873. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9874. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9875. String inputLine;
  9876. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9877. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9878. response.append(inputLine);
  9879. }
  9880. in.close();
  9881. System.out.println(response.toString());
  9882. </code></pre>
  9883. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9884. <span class="hljs-keyword">import</span> (
  9885. <span class="hljs-string">&quot;bytes&quot;</span>
  9886. <span class="hljs-string">&quot;net/http&quot;</span>
  9887. )
  9888. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9889. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9890. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9891. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9892. }
  9893. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9894. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards_count&quot;</span>, data)
  9895. req.Header = headers
  9896. client := &amp;http.Client{}
  9897. resp, err := client.Do(req)
  9898. <span class="hljs-comment">// ...</span>
  9899. }
  9900. </code></pre>
  9901. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9902. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9903. );
  9904. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9905. <span class="hljs-comment">// Define array of request body.</span>
  9906. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9907. <span class="hljs-keyword">try</span> {
  9908. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>, <span class="hljs-keyword">array</span>(
  9909. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9910. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9911. )
  9912. );
  9913. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9914. }
  9915. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9916. <span class="hljs-comment">// handle exception or api errors.</span>
  9917. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9918. }
  9919. <span class="hljs-comment">// ...</span>
  9920. </code></pre>
  9921. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  9922. <p><em>Get a cards count to a list</em></p>
  9923. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  9924. <table>
  9925. <thead>
  9926. <tr>
  9927. <th>Name</th>
  9928. <th>In</th>
  9929. <th>Type</th>
  9930. <th>Required</th>
  9931. <th>Description</th>
  9932. </tr>
  9933. </thead>
  9934. <tbody>
  9935. <tr>
  9936. <td>board</td>
  9937. <td>path</td>
  9938. <td>string</td>
  9939. <td>true</td>
  9940. <td>the board ID</td>
  9941. </tr>
  9942. <tr>
  9943. <td>list</td>
  9944. <td>path</td>
  9945. <td>string</td>
  9946. <td>true</td>
  9947. <td>the List ID</td>
  9948. </tr>
  9949. </tbody>
  9950. </table>
  9951. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  9952. <p><strong>board</strong>: the board ID</p>
  9953. <p><strong>list</strong>: the List ID</p>
  9954. <blockquote>
  9955. <p>Example responses</p>
  9956. </blockquote>
  9957. <blockquote>
  9958. <p>200 Response</p>
  9959. </blockquote>
  9960. <pre class="highlight tab tab-json"><code>{
  9961. <span class="hljs-attr">&quot;list_cards_count&quot;</span>: <span class="hljs-number">0</span>
  9962. }
  9963. </code></pre>
  9964. <h3 id="get_list_cards_count-responses">Responses</h3>
  9965. <table>
  9966. <thead>
  9967. <tr>
  9968. <th>Status</th>
  9969. <th>Meaning</th>
  9970. <th>Description</th>
  9971. <th>Schema</th>
  9972. </tr>
  9973. </thead>
  9974. <tbody>
  9975. <tr>
  9976. <td>200</td>
  9977. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9978. <td>200 response</td>
  9979. <td>Inline</td>
  9980. </tr>
  9981. </tbody>
  9982. </table>
  9983. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  9984. <p>Status Code <strong>200</strong></p>
  9985. <table>
  9986. <thead>
  9987. <tr>
  9988. <th>Name</th>
  9989. <th>Type</th>
  9990. <th>Required</th>
  9991. <th>Restrictions</th>
  9992. <th>Description</th>
  9993. </tr>
  9994. </thead>
  9995. <tbody>
  9996. <tr>
  9997. <td>» list_cards_count</td>
  9998. <td>integer</td>
  9999. <td>false</td>
  10000. <td>none</td>
  10001. <td>none</td>
  10002. </tr>
  10003. </tbody>
  10004. </table>
  10005. <aside class="warning">
  10006. To perform this operation, you must be authenticated by means of one of the following methods:
  10007. UserSecurity
  10008. </aside>
  10009. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  10010. <p><a id="opIdget_swimlane_cards"></a></p>
  10011. <blockquote>
  10012. <p>Code samples</p>
  10013. </blockquote>
  10014. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10015. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  10016. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10017. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10018. </code></pre>
  10019. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}/cards</span> <span class="hljs-meta">HTTP/1.1</span>
  10020. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10021. </span></code></pre>
  10022. <pre class="highlight tab tab-javascript"><code>
  10023. <span class="hljs-keyword">const</span> headers = {
  10024. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10025. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10026. };
  10027. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  10028. {
  10029. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10030. <span class="hljs-attr">headers</span>: headers
  10031. })
  10032. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10033. <span class="hljs-keyword">return</span> res.json();
  10034. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10035. <span class="hljs-built_in">console</span>.log(body);
  10036. });
  10037. </code></pre>
  10038. <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">&#x27;node-fetch&#x27;</span>);
  10039. <span class="hljs-keyword">const</span> headers = {
  10040. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10041. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10042. };
  10043. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  10044. {
  10045. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10046. <span class="hljs-attr">headers</span>: headers
  10047. })
  10048. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10049. <span class="hljs-keyword">return</span> res.json();
  10050. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10051. <span class="hljs-built_in">console</span>.log(body);
  10052. });
  10053. </code></pre>
  10054. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10055. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10056. headers = {
  10057. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10058. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10059. }
  10060. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  10061. <span class="hljs-symbol">params:</span> {
  10062. }, <span class="hljs-symbol">headers:</span> headers
  10063. p JSON.parse(result)
  10064. </code></pre>
  10065. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10066. headers = {
  10067. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10068. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10069. }
  10070. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  10071. <span class="hljs-built_in">print</span>(r.json())
  10072. </code></pre>
  10073. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}/cards&quot;</span>);
  10074. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10075. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10076. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10077. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10078. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10079. String inputLine;
  10080. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10081. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10082. response.append(inputLine);
  10083. }
  10084. in.close();
  10085. System.out.println(response.toString());
  10086. </code></pre>
  10087. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10088. <span class="hljs-keyword">import</span> (
  10089. <span class="hljs-string">&quot;bytes&quot;</span>
  10090. <span class="hljs-string">&quot;net/http&quot;</span>
  10091. )
  10092. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10093. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10094. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10095. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10096. }
  10097. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10098. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}/cards&quot;</span>, data)
  10099. req.Header = headers
  10100. client := &amp;http.Client{}
  10101. resp, err := client.Do(req)
  10102. <span class="hljs-comment">// ...</span>
  10103. }
  10104. </code></pre>
  10105. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10106. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10107. );
  10108. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10109. <span class="hljs-comment">// Define array of request body.</span>
  10110. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10111. <span class="hljs-keyword">try</span> {
  10112. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, <span class="hljs-keyword">array</span>(
  10113. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10114. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10115. )
  10116. );
  10117. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10118. }
  10119. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10120. <span class="hljs-comment">// handle exception or api errors.</span>
  10121. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10122. }
  10123. <span class="hljs-comment">// ...</span>
  10124. </code></pre>
  10125. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  10126. <p><em>get all cards attached to a swimlane</em></p>
  10127. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  10128. <table>
  10129. <thead>
  10130. <tr>
  10131. <th>Name</th>
  10132. <th>In</th>
  10133. <th>Type</th>
  10134. <th>Required</th>
  10135. <th>Description</th>
  10136. </tr>
  10137. </thead>
  10138. <tbody>
  10139. <tr>
  10140. <td>board</td>
  10141. <td>path</td>
  10142. <td>string</td>
  10143. <td>true</td>
  10144. <td>the board ID</td>
  10145. </tr>
  10146. <tr>
  10147. <td>swimlane</td>
  10148. <td>path</td>
  10149. <td>string</td>
  10150. <td>true</td>
  10151. <td>the swimlane ID</td>
  10152. </tr>
  10153. </tbody>
  10154. </table>
  10155. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  10156. <p><strong>board</strong>: the board ID</p>
  10157. <p><strong>swimlane</strong>: the swimlane ID</p>
  10158. <blockquote>
  10159. <p>Example responses</p>
  10160. </blockquote>
  10161. <blockquote>
  10162. <p>200 Response</p>
  10163. </blockquote>
  10164. <pre class="highlight tab tab-json"><code>[
  10165. {
  10166. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10167. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10168. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10169. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10170. }
  10171. ]
  10172. </code></pre>
  10173. <h3 id="get_swimlane_cards-responses">Responses</h3>
  10174. <table>
  10175. <thead>
  10176. <tr>
  10177. <th>Status</th>
  10178. <th>Meaning</th>
  10179. <th>Description</th>
  10180. <th>Schema</th>
  10181. </tr>
  10182. </thead>
  10183. <tbody>
  10184. <tr>
  10185. <td>200</td>
  10186. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10187. <td>200 response</td>
  10188. <td>Inline</td>
  10189. </tr>
  10190. </tbody>
  10191. </table>
  10192. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  10193. <p>Status Code <strong>200</strong></p>
  10194. <table>
  10195. <thead>
  10196. <tr>
  10197. <th>Name</th>
  10198. <th>Type</th>
  10199. <th>Required</th>
  10200. <th>Restrictions</th>
  10201. <th>Description</th>
  10202. </tr>
  10203. </thead>
  10204. <tbody>
  10205. <tr>
  10206. <td>» _id</td>
  10207. <td>string</td>
  10208. <td>false</td>
  10209. <td>none</td>
  10210. <td>none</td>
  10211. </tr>
  10212. <tr>
  10213. <td>» title</td>
  10214. <td>string</td>
  10215. <td>false</td>
  10216. <td>none</td>
  10217. <td>none</td>
  10218. </tr>
  10219. <tr>
  10220. <td>» description</td>
  10221. <td>string</td>
  10222. <td>false</td>
  10223. <td>none</td>
  10224. <td>none</td>
  10225. </tr>
  10226. <tr>
  10227. <td>» listId</td>
  10228. <td>string</td>
  10229. <td>false</td>
  10230. <td>none</td>
  10231. <td>none</td>
  10232. </tr>
  10233. </tbody>
  10234. </table>
  10235. <aside class="warning">
  10236. To perform this operation, you must be authenticated by means of one of the following methods:
  10237. UserSecurity
  10238. </aside>
  10239. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  10240. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  10241. <p><a id="opIdget_all_custom_fields"></a></p>
  10242. <blockquote>
  10243. <p>Code samples</p>
  10244. </blockquote>
  10245. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10246. curl -X GET /api/boards/{board}/custom-fields \
  10247. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10248. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10249. </code></pre>
  10250. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> <span class="hljs-meta">HTTP/1.1</span>
  10251. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10252. </span></code></pre>
  10253. <pre class="highlight tab tab-javascript"><code>
  10254. <span class="hljs-keyword">const</span> headers = {
  10255. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10256. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10257. };
  10258. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10259. {
  10260. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10261. <span class="hljs-attr">headers</span>: headers
  10262. })
  10263. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10264. <span class="hljs-keyword">return</span> res.json();
  10265. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10266. <span class="hljs-built_in">console</span>.log(body);
  10267. });
  10268. </code></pre>
  10269. <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">&#x27;node-fetch&#x27;</span>);
  10270. <span class="hljs-keyword">const</span> headers = {
  10271. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10272. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10273. };
  10274. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10275. {
  10276. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10277. <span class="hljs-attr">headers</span>: headers
  10278. })
  10279. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10280. <span class="hljs-keyword">return</span> res.json();
  10281. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10282. <span class="hljs-built_in">console</span>.log(body);
  10283. });
  10284. </code></pre>
  10285. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10286. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10287. headers = {
  10288. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10289. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10290. }
  10291. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10292. <span class="hljs-symbol">params:</span> {
  10293. }, <span class="hljs-symbol">headers:</span> headers
  10294. p JSON.parse(result)
  10295. </code></pre>
  10296. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10297. headers = {
  10298. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10299. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10300. }
  10301. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  10302. <span class="hljs-built_in">print</span>(r.json())
  10303. </code></pre>
  10304. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>);
  10305. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10306. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10307. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10308. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10309. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10310. String inputLine;
  10311. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10312. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10313. response.append(inputLine);
  10314. }
  10315. in.close();
  10316. System.out.println(response.toString());
  10317. </code></pre>
  10318. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10319. <span class="hljs-keyword">import</span> (
  10320. <span class="hljs-string">&quot;bytes&quot;</span>
  10321. <span class="hljs-string">&quot;net/http&quot;</span>
  10322. )
  10323. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10324. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10325. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10326. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10327. }
  10328. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10329. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>, data)
  10330. req.Header = headers
  10331. client := &amp;http.Client{}
  10332. resp, err := client.Do(req)
  10333. <span class="hljs-comment">// ...</span>
  10334. }
  10335. </code></pre>
  10336. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10337. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10338. );
  10339. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10340. <span class="hljs-comment">// Define array of request body.</span>
  10341. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10342. <span class="hljs-keyword">try</span> {
  10343. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, <span class="hljs-keyword">array</span>(
  10344. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10345. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10346. )
  10347. );
  10348. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10349. }
  10350. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10351. <span class="hljs-comment">// handle exception or api errors.</span>
  10352. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10353. }
  10354. <span class="hljs-comment">// ...</span>
  10355. </code></pre>
  10356. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  10357. <p><em>Get the list of Custom Fields attached to a board</em></p>
  10358. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  10359. <table>
  10360. <thead>
  10361. <tr>
  10362. <th>Name</th>
  10363. <th>In</th>
  10364. <th>Type</th>
  10365. <th>Required</th>
  10366. <th>Description</th>
  10367. </tr>
  10368. </thead>
  10369. <tbody>
  10370. <tr>
  10371. <td>board</td>
  10372. <td>path</td>
  10373. <td>string</td>
  10374. <td>true</td>
  10375. <td>the board value</td>
  10376. </tr>
  10377. </tbody>
  10378. </table>
  10379. <blockquote>
  10380. <p>Example responses</p>
  10381. </blockquote>
  10382. <blockquote>
  10383. <p>200 Response</p>
  10384. </blockquote>
  10385. <pre class="highlight tab tab-json"><code>[
  10386. {
  10387. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10388. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10389. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10390. }
  10391. ]
  10392. </code></pre>
  10393. <h3 id="get_all_custom_fields-responses">Responses</h3>
  10394. <table>
  10395. <thead>
  10396. <tr>
  10397. <th>Status</th>
  10398. <th>Meaning</th>
  10399. <th>Description</th>
  10400. <th>Schema</th>
  10401. </tr>
  10402. </thead>
  10403. <tbody>
  10404. <tr>
  10405. <td>200</td>
  10406. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10407. <td>200 response</td>
  10408. <td>Inline</td>
  10409. </tr>
  10410. </tbody>
  10411. </table>
  10412. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  10413. <p>Status Code <strong>200</strong></p>
  10414. <table>
  10415. <thead>
  10416. <tr>
  10417. <th>Name</th>
  10418. <th>Type</th>
  10419. <th>Required</th>
  10420. <th>Restrictions</th>
  10421. <th>Description</th>
  10422. </tr>
  10423. </thead>
  10424. <tbody>
  10425. <tr>
  10426. <td>» _id</td>
  10427. <td>string</td>
  10428. <td>false</td>
  10429. <td>none</td>
  10430. <td>none</td>
  10431. </tr>
  10432. <tr>
  10433. <td>» name</td>
  10434. <td>string</td>
  10435. <td>false</td>
  10436. <td>none</td>
  10437. <td>none</td>
  10438. </tr>
  10439. <tr>
  10440. <td>» type</td>
  10441. <td>string</td>
  10442. <td>false</td>
  10443. <td>none</td>
  10444. <td>none</td>
  10445. </tr>
  10446. </tbody>
  10447. </table>
  10448. <aside class="warning">
  10449. To perform this operation, you must be authenticated by means of one of the following methods:
  10450. UserSecurity
  10451. </aside>
  10452. <h2 id="new_custom_field">new_custom_field</h2>
  10453. <p><a id="opIdnew_custom_field"></a></p>
  10454. <blockquote>
  10455. <p>Code samples</p>
  10456. </blockquote>
  10457. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10458. curl -X POST /api/boards/{board}/custom-fields \
  10459. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10460. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10461. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10462. </code></pre>
  10463. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> <span class="hljs-meta">HTTP/1.1</span>
  10464. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10465. Accept: application/json
  10466. </span></code></pre>
  10467. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10468. &quot;name&quot;: &quot;string&quot;,
  10469. &quot;type&quot;: &quot;string&quot;,
  10470. &quot;settings&quot;: &quot;string&quot;,
  10471. &quot;showOnCard&quot;: true,
  10472. &quot;automaticallyOnCard&quot;: true,
  10473. &quot;showLabelOnMiniCard&quot;: true,
  10474. &quot;showSumAtTopOfList&quot;: true,
  10475. &quot;authorId&quot;: &quot;string&quot;
  10476. }&#x27;</span>;
  10477. <span class="hljs-keyword">const</span> headers = {
  10478. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10479. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10480. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10481. };
  10482. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10483. {
  10484. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10485. <span class="hljs-attr">body</span>: inputBody,
  10486. <span class="hljs-attr">headers</span>: headers
  10487. })
  10488. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10489. <span class="hljs-keyword">return</span> res.json();
  10490. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10491. <span class="hljs-built_in">console</span>.log(body);
  10492. });
  10493. </code></pre>
  10494. <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">&#x27;node-fetch&#x27;</span>);
  10495. <span class="hljs-keyword">const</span> inputBody = {
  10496. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10497. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10498. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10499. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10500. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10501. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  10502. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  10503. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10504. };
  10505. <span class="hljs-keyword">const</span> headers = {
  10506. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10507. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10508. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10509. };
  10510. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10511. {
  10512. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10513. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10514. <span class="hljs-attr">headers</span>: headers
  10515. })
  10516. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10517. <span class="hljs-keyword">return</span> res.json();
  10518. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10519. <span class="hljs-built_in">console</span>.log(body);
  10520. });
  10521. </code></pre>
  10522. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10523. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10524. headers = {
  10525. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10526. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10527. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10528. }
  10529. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10530. <span class="hljs-symbol">params:</span> {
  10531. }, <span class="hljs-symbol">headers:</span> headers
  10532. p JSON.parse(result)
  10533. </code></pre>
  10534. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10535. headers = {
  10536. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10537. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10538. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10539. }
  10540. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  10541. <span class="hljs-built_in">print</span>(r.json())
  10542. </code></pre>
  10543. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>);
  10544. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10545. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10546. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10547. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10548. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10549. String inputLine;
  10550. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10551. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10552. response.append(inputLine);
  10553. }
  10554. in.close();
  10555. System.out.println(response.toString());
  10556. </code></pre>
  10557. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10558. <span class="hljs-keyword">import</span> (
  10559. <span class="hljs-string">&quot;bytes&quot;</span>
  10560. <span class="hljs-string">&quot;net/http&quot;</span>
  10561. )
  10562. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10563. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10564. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  10565. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10566. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10567. }
  10568. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10569. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>, data)
  10570. req.Header = headers
  10571. client := &amp;http.Client{}
  10572. resp, err := client.Do(req)
  10573. <span class="hljs-comment">// ...</span>
  10574. }
  10575. </code></pre>
  10576. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10577. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10578. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10579. );
  10580. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10581. <span class="hljs-comment">// Define array of request body.</span>
  10582. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10583. <span class="hljs-keyword">try</span> {
  10584. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, <span class="hljs-keyword">array</span>(
  10585. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10586. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10587. )
  10588. );
  10589. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10590. }
  10591. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10592. <span class="hljs-comment">// handle exception or api errors.</span>
  10593. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10594. }
  10595. <span class="hljs-comment">// ...</span>
  10596. </code></pre>
  10597. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  10598. <p><em>Create a Custom Field</em></p>
  10599. <blockquote>
  10600. <p>Body parameter</p>
  10601. </blockquote>
  10602. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10603. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10604. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10605. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10606. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10607. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10608. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10609. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  10610. </code></pre>
  10611. <h3 id="new_custom_field-parameters">Parameters</h3>
  10612. <table>
  10613. <thead>
  10614. <tr>
  10615. <th>Name</th>
  10616. <th>In</th>
  10617. <th>Type</th>
  10618. <th>Required</th>
  10619. <th>Description</th>
  10620. </tr>
  10621. </thead>
  10622. <tbody>
  10623. <tr>
  10624. <td>board</td>
  10625. <td>path</td>
  10626. <td>string</td>
  10627. <td>true</td>
  10628. <td>the board value</td>
  10629. </tr>
  10630. <tr>
  10631. <td>body</td>
  10632. <td>body</td>
  10633. <td>object</td>
  10634. <td>true</td>
  10635. <td>none</td>
  10636. </tr>
  10637. <tr>
  10638. <td>» name</td>
  10639. <td>body</td>
  10640. <td>string</td>
  10641. <td>true</td>
  10642. <td>the name of the custom field</td>
  10643. </tr>
  10644. <tr>
  10645. <td>» type</td>
  10646. <td>body</td>
  10647. <td>string</td>
  10648. <td>true</td>
  10649. <td>the type of the custom field</td>
  10650. </tr>
  10651. <tr>
  10652. <td>» settings</td>
  10653. <td>body</td>
  10654. <td>string</td>
  10655. <td>true</td>
  10656. <td>the settings object of the custom field</td>
  10657. </tr>
  10658. <tr>
  10659. <td>» showOnCard</td>
  10660. <td>body</td>
  10661. <td>boolean</td>
  10662. <td>true</td>
  10663. <td>should we show the custom field on cards?</td>
  10664. </tr>
  10665. <tr>
  10666. <td>» automaticallyOnCard</td>
  10667. <td>body</td>
  10668. <td>boolean</td>
  10669. <td>true</td>
  10670. <td>should the custom fields automatically be added on cards?</td>
  10671. </tr>
  10672. <tr>
  10673. <td>» showLabelOnMiniCard</td>
  10674. <td>body</td>
  10675. <td>boolean</td>
  10676. <td>true</td>
  10677. <td>should the label of the custom field be shown on minicards?</td>
  10678. </tr>
  10679. <tr>
  10680. <td>» showSumAtTopOfList</td>
  10681. <td>body</td>
  10682. <td>boolean</td>
  10683. <td>true</td>
  10684. <td>should the sum of the custom fields be shown at top of list?</td>
  10685. </tr>
  10686. <tr>
  10687. <td>» authorId</td>
  10688. <td>body</td>
  10689. <td>string</td>
  10690. <td>true</td>
  10691. <td>the authorId value</td>
  10692. </tr>
  10693. </tbody>
  10694. </table>
  10695. <blockquote>
  10696. <p>Example responses</p>
  10697. </blockquote>
  10698. <blockquote>
  10699. <p>200 Response</p>
  10700. </blockquote>
  10701. <pre class="highlight tab tab-json"><code>{
  10702. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10703. }
  10704. </code></pre>
  10705. <h3 id="new_custom_field-responses">Responses</h3>
  10706. <table>
  10707. <thead>
  10708. <tr>
  10709. <th>Status</th>
  10710. <th>Meaning</th>
  10711. <th>Description</th>
  10712. <th>Schema</th>
  10713. </tr>
  10714. </thead>
  10715. <tbody>
  10716. <tr>
  10717. <td>200</td>
  10718. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10719. <td>200 response</td>
  10720. <td>Inline</td>
  10721. </tr>
  10722. </tbody>
  10723. </table>
  10724. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  10725. <p>Status Code <strong>200</strong></p>
  10726. <table>
  10727. <thead>
  10728. <tr>
  10729. <th>Name</th>
  10730. <th>Type</th>
  10731. <th>Required</th>
  10732. <th>Restrictions</th>
  10733. <th>Description</th>
  10734. </tr>
  10735. </thead>
  10736. <tbody>
  10737. <tr>
  10738. <td>» _id</td>
  10739. <td>string</td>
  10740. <td>false</td>
  10741. <td>none</td>
  10742. <td>none</td>
  10743. </tr>
  10744. </tbody>
  10745. </table>
  10746. <aside class="warning">
  10747. To perform this operation, you must be authenticated by means of one of the following methods:
  10748. UserSecurity
  10749. </aside>
  10750. <h2 id="get_custom_field">get_custom_field</h2>
  10751. <p><a id="opIdget_custom_field"></a></p>
  10752. <blockquote>
  10753. <p>Code samples</p>
  10754. </blockquote>
  10755. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10756. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  10757. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10758. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10759. </code></pre>
  10760. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> <span class="hljs-meta">HTTP/1.1</span>
  10761. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10762. </span></code></pre>
  10763. <pre class="highlight tab tab-javascript"><code>
  10764. <span class="hljs-keyword">const</span> headers = {
  10765. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10766. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10767. };
  10768. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10769. {
  10770. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10771. <span class="hljs-attr">headers</span>: headers
  10772. })
  10773. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10774. <span class="hljs-keyword">return</span> res.json();
  10775. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10776. <span class="hljs-built_in">console</span>.log(body);
  10777. });
  10778. </code></pre>
  10779. <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">&#x27;node-fetch&#x27;</span>);
  10780. <span class="hljs-keyword">const</span> headers = {
  10781. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10782. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10783. };
  10784. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10785. {
  10786. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10787. <span class="hljs-attr">headers</span>: headers
  10788. })
  10789. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10790. <span class="hljs-keyword">return</span> res.json();
  10791. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10792. <span class="hljs-built_in">console</span>.log(body);
  10793. });
  10794. </code></pre>
  10795. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10796. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10797. headers = {
  10798. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10799. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10800. }
  10801. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10802. <span class="hljs-symbol">params:</span> {
  10803. }, <span class="hljs-symbol">headers:</span> headers
  10804. p JSON.parse(result)
  10805. </code></pre>
  10806. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10807. headers = {
  10808. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10809. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10810. }
  10811. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10812. <span class="hljs-built_in">print</span>(r.json())
  10813. </code></pre>
  10814. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>);
  10815. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10816. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10817. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10818. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10819. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10820. String inputLine;
  10821. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10822. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10823. response.append(inputLine);
  10824. }
  10825. in.close();
  10826. System.out.println(response.toString());
  10827. </code></pre>
  10828. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10829. <span class="hljs-keyword">import</span> (
  10830. <span class="hljs-string">&quot;bytes&quot;</span>
  10831. <span class="hljs-string">&quot;net/http&quot;</span>
  10832. )
  10833. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10834. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10835. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10836. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10837. }
  10838. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10839. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>, data)
  10840. req.Header = headers
  10841. client := &amp;http.Client{}
  10842. resp, err := client.Do(req)
  10843. <span class="hljs-comment">// ...</span>
  10844. }
  10845. </code></pre>
  10846. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10847. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10848. );
  10849. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10850. <span class="hljs-comment">// Define array of request body.</span>
  10851. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10852. <span class="hljs-keyword">try</span> {
  10853. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, <span class="hljs-keyword">array</span>(
  10854. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10855. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10856. )
  10857. );
  10858. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10859. }
  10860. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10861. <span class="hljs-comment">// handle exception or api errors.</span>
  10862. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10863. }
  10864. <span class="hljs-comment">// ...</span>
  10865. </code></pre>
  10866. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  10867. <p><em>Get a Custom Fields attached to a board</em></p>
  10868. <h3 id="get_custom_field-parameters">Parameters</h3>
  10869. <table>
  10870. <thead>
  10871. <tr>
  10872. <th>Name</th>
  10873. <th>In</th>
  10874. <th>Type</th>
  10875. <th>Required</th>
  10876. <th>Description</th>
  10877. </tr>
  10878. </thead>
  10879. <tbody>
  10880. <tr>
  10881. <td>board</td>
  10882. <td>path</td>
  10883. <td>string</td>
  10884. <td>true</td>
  10885. <td>the board value</td>
  10886. </tr>
  10887. <tr>
  10888. <td>customField</td>
  10889. <td>path</td>
  10890. <td>string</td>
  10891. <td>true</td>
  10892. <td>the ID of the custom field</td>
  10893. </tr>
  10894. </tbody>
  10895. </table>
  10896. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  10897. <p><strong>customField</strong>: the ID of the custom field</p>
  10898. <blockquote>
  10899. <p>Example responses</p>
  10900. </blockquote>
  10901. <blockquote>
  10902. <p>200 Response</p>
  10903. </blockquote>
  10904. <pre class="highlight tab tab-json"><code>[
  10905. {
  10906. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10907. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10908. }
  10909. ]
  10910. </code></pre>
  10911. <h3 id="get_custom_field-responses">Responses</h3>
  10912. <table>
  10913. <thead>
  10914. <tr>
  10915. <th>Status</th>
  10916. <th>Meaning</th>
  10917. <th>Description</th>
  10918. <th>Schema</th>
  10919. </tr>
  10920. </thead>
  10921. <tbody>
  10922. <tr>
  10923. <td>200</td>
  10924. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10925. <td>200 response</td>
  10926. <td>Inline</td>
  10927. </tr>
  10928. </tbody>
  10929. </table>
  10930. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  10931. <p>Status Code <strong>200</strong></p>
  10932. <table>
  10933. <thead>
  10934. <tr>
  10935. <th>Name</th>
  10936. <th>Type</th>
  10937. <th>Required</th>
  10938. <th>Restrictions</th>
  10939. <th>Description</th>
  10940. </tr>
  10941. </thead>
  10942. <tbody>
  10943. <tr>
  10944. <td>» _id</td>
  10945. <td>string</td>
  10946. <td>false</td>
  10947. <td>none</td>
  10948. <td>none</td>
  10949. </tr>
  10950. <tr>
  10951. <td>» boardIds</td>
  10952. <td>string</td>
  10953. <td>false</td>
  10954. <td>none</td>
  10955. <td>none</td>
  10956. </tr>
  10957. </tbody>
  10958. </table>
  10959. <aside class="warning">
  10960. To perform this operation, you must be authenticated by means of one of the following methods:
  10961. UserSecurity
  10962. </aside>
  10963. <h2 id="edit_custom_field">edit_custom_field</h2>
  10964. <p><a id="opIdedit_custom_field"></a></p>
  10965. <blockquote>
  10966. <p>Code samples</p>
  10967. </blockquote>
  10968. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10969. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  10970. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10971. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10972. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10973. </code></pre>
  10974. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> <span class="hljs-meta">HTTP/1.1</span>
  10975. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10976. Accept: application/json
  10977. </span></code></pre>
  10978. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10979. &quot;name&quot;: &quot;string&quot;,
  10980. &quot;type&quot;: &quot;string&quot;,
  10981. &quot;settings&quot;: &quot;string&quot;,
  10982. &quot;showOnCard&quot;: true,
  10983. &quot;automaticallyOnCard&quot;: true,
  10984. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  10985. &quot;showLabelOnMiniCard&quot;: true,
  10986. &quot;showSumAtTopOfList&quot;: true
  10987. }&#x27;</span>;
  10988. <span class="hljs-keyword">const</span> headers = {
  10989. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10990. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10991. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10992. };
  10993. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10994. {
  10995. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10996. <span class="hljs-attr">body</span>: inputBody,
  10997. <span class="hljs-attr">headers</span>: headers
  10998. })
  10999. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11000. <span class="hljs-keyword">return</span> res.json();
  11001. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11002. <span class="hljs-built_in">console</span>.log(body);
  11003. });
  11004. </code></pre>
  11005. <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">&#x27;node-fetch&#x27;</span>);
  11006. <span class="hljs-keyword">const</span> inputBody = {
  11007. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11008. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11009. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11010. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  11011. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  11012. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11013. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  11014. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>
  11015. };
  11016. <span class="hljs-keyword">const</span> headers = {
  11017. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11018. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11019. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11020. };
  11021. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  11022. {
  11023. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11024. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11025. <span class="hljs-attr">headers</span>: headers
  11026. })
  11027. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11028. <span class="hljs-keyword">return</span> res.json();
  11029. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11030. <span class="hljs-built_in">console</span>.log(body);
  11031. });
  11032. </code></pre>
  11033. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11034. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11035. headers = {
  11036. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11037. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11038. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11039. }
  11040. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  11041. <span class="hljs-symbol">params:</span> {
  11042. }, <span class="hljs-symbol">headers:</span> headers
  11043. p JSON.parse(result)
  11044. </code></pre>
  11045. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11046. headers = {
  11047. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11048. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11049. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11050. }
  11051. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  11052. <span class="hljs-built_in">print</span>(r.json())
  11053. </code></pre>
  11054. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>);
  11055. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11056. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11057. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11058. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11059. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11060. String inputLine;
  11061. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11062. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11063. response.append(inputLine);
  11064. }
  11065. in.close();
  11066. System.out.println(response.toString());
  11067. </code></pre>
  11068. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11069. <span class="hljs-keyword">import</span> (
  11070. <span class="hljs-string">&quot;bytes&quot;</span>
  11071. <span class="hljs-string">&quot;net/http&quot;</span>
  11072. )
  11073. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11074. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11075. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  11076. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11077. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11078. }
  11079. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11080. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>, data)
  11081. req.Header = headers
  11082. client := &amp;http.Client{}
  11083. resp, err := client.Do(req)
  11084. <span class="hljs-comment">// ...</span>
  11085. }
  11086. </code></pre>
  11087. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11088. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11089. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11090. );
  11091. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11092. <span class="hljs-comment">// Define array of request body.</span>
  11093. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11094. <span class="hljs-keyword">try</span> {
  11095. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, <span class="hljs-keyword">array</span>(
  11096. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11097. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11098. )
  11099. );
  11100. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11101. }
  11102. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11103. <span class="hljs-comment">// handle exception or api errors.</span>
  11104. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11105. }
  11106. <span class="hljs-comment">// ...</span>
  11107. </code></pre>
  11108. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  11109. <p><em>Update a Custom Field</em></p>
  11110. <blockquote>
  11111. <p>Body parameter</p>
  11112. </blockquote>
  11113. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  11114. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  11115. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  11116. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  11117. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  11118. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  11119. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  11120. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  11121. </code></pre>
  11122. <h3 id="edit_custom_field-parameters">Parameters</h3>
  11123. <table>
  11124. <thead>
  11125. <tr>
  11126. <th>Name</th>
  11127. <th>In</th>
  11128. <th>Type</th>
  11129. <th>Required</th>
  11130. <th>Description</th>
  11131. </tr>
  11132. </thead>
  11133. <tbody>
  11134. <tr>
  11135. <td>board</td>
  11136. <td>path</td>
  11137. <td>string</td>
  11138. <td>true</td>
  11139. <td>the board value</td>
  11140. </tr>
  11141. <tr>
  11142. <td>customField</td>
  11143. <td>path</td>
  11144. <td>string</td>
  11145. <td>true</td>
  11146. <td>the customField value</td>
  11147. </tr>
  11148. <tr>
  11149. <td>body</td>
  11150. <td>body</td>
  11151. <td>object</td>
  11152. <td>true</td>
  11153. <td>none</td>
  11154. </tr>
  11155. <tr>
  11156. <td>» name</td>
  11157. <td>body</td>
  11158. <td>string</td>
  11159. <td>true</td>
  11160. <td>the name of the custom field</td>
  11161. </tr>
  11162. <tr>
  11163. <td>» type</td>
  11164. <td>body</td>
  11165. <td>string</td>
  11166. <td>true</td>
  11167. <td>the type of the custom field</td>
  11168. </tr>
  11169. <tr>
  11170. <td>» settings</td>
  11171. <td>body</td>
  11172. <td>string</td>
  11173. <td>true</td>
  11174. <td>the settings object of the custom field</td>
  11175. </tr>
  11176. <tr>
  11177. <td>» showOnCard</td>
  11178. <td>body</td>
  11179. <td>boolean</td>
  11180. <td>true</td>
  11181. <td>should we show the custom field on cards</td>
  11182. </tr>
  11183. <tr>
  11184. <td>» automaticallyOnCard</td>
  11185. <td>body</td>
  11186. <td>boolean</td>
  11187. <td>true</td>
  11188. <td>should the custom fields automatically be added on cards</td>
  11189. </tr>
  11190. <tr>
  11191. <td>» alwaysOnCard</td>
  11192. <td>body</td>
  11193. <td>string</td>
  11194. <td>true</td>
  11195. <td>the alwaysOnCard value</td>
  11196. </tr>
  11197. <tr>
  11198. <td>» showLabelOnMiniCard</td>
  11199. <td>body</td>
  11200. <td>boolean</td>
  11201. <td>true</td>
  11202. <td>should the label of the custom field be shown on minicards</td>
  11203. </tr>
  11204. <tr>
  11205. <td>» showSumAtTopOfList</td>
  11206. <td>body</td>
  11207. <td>boolean</td>
  11208. <td>true</td>
  11209. <td>should the sum of the custom fields be shown at top of list</td>
  11210. </tr>
  11211. </tbody>
  11212. </table>
  11213. <blockquote>
  11214. <p>Example responses</p>
  11215. </blockquote>
  11216. <blockquote>
  11217. <p>200 Response</p>
  11218. </blockquote>
  11219. <pre class="highlight tab tab-json"><code>{
  11220. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11221. }
  11222. </code></pre>
  11223. <h3 id="edit_custom_field-responses">Responses</h3>
  11224. <table>
  11225. <thead>
  11226. <tr>
  11227. <th>Status</th>
  11228. <th>Meaning</th>
  11229. <th>Description</th>
  11230. <th>Schema</th>
  11231. </tr>
  11232. </thead>
  11233. <tbody>
  11234. <tr>
  11235. <td>200</td>
  11236. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11237. <td>200 response</td>
  11238. <td>Inline</td>
  11239. </tr>
  11240. </tbody>
  11241. </table>
  11242. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  11243. <p>Status Code <strong>200</strong></p>
  11244. <table>
  11245. <thead>
  11246. <tr>
  11247. <th>Name</th>
  11248. <th>Type</th>
  11249. <th>Required</th>
  11250. <th>Restrictions</th>
  11251. <th>Description</th>
  11252. </tr>
  11253. </thead>
  11254. <tbody>
  11255. <tr>
  11256. <td>» _id</td>
  11257. <td>string</td>
  11258. <td>false</td>
  11259. <td>none</td>
  11260. <td>none</td>
  11261. </tr>
  11262. </tbody>
  11263. </table>
  11264. <aside class="warning">
  11265. To perform this operation, you must be authenticated by means of one of the following methods:
  11266. UserSecurity
  11267. </aside>
  11268. <h2 id="delete_custom_field">delete_custom_field</h2>
  11269. <p><a id="opIddelete_custom_field"></a></p>
  11270. <blockquote>
  11271. <p>Code samples</p>
  11272. </blockquote>
  11273. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11274. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  11275. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11276. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11277. </code></pre>
  11278. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> <span class="hljs-meta">HTTP/1.1</span>
  11279. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11280. </span></code></pre>
  11281. <pre class="highlight tab tab-javascript"><code>
  11282. <span class="hljs-keyword">const</span> headers = {
  11283. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11284. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11285. };
  11286. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  11287. {
  11288. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11289. <span class="hljs-attr">headers</span>: headers
  11290. })
  11291. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11292. <span class="hljs-keyword">return</span> res.json();
  11293. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11294. <span class="hljs-built_in">console</span>.log(body);
  11295. });
  11296. </code></pre>
  11297. <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">&#x27;node-fetch&#x27;</span>);
  11298. <span class="hljs-keyword">const</span> headers = {
  11299. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11300. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11301. };
  11302. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  11303. {
  11304. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11305. <span class="hljs-attr">headers</span>: headers
  11306. })
  11307. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11308. <span class="hljs-keyword">return</span> res.json();
  11309. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11310. <span class="hljs-built_in">console</span>.log(body);
  11311. });
  11312. </code></pre>
  11313. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11314. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11315. headers = {
  11316. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11317. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11318. }
  11319. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  11320. <span class="hljs-symbol">params:</span> {
  11321. }, <span class="hljs-symbol">headers:</span> headers
  11322. p JSON.parse(result)
  11323. </code></pre>
  11324. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11325. headers = {
  11326. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11327. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11328. }
  11329. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  11330. <span class="hljs-built_in">print</span>(r.json())
  11331. </code></pre>
  11332. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>);
  11333. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11334. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11335. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11336. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11337. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11338. String inputLine;
  11339. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11340. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11341. response.append(inputLine);
  11342. }
  11343. in.close();
  11344. System.out.println(response.toString());
  11345. </code></pre>
  11346. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11347. <span class="hljs-keyword">import</span> (
  11348. <span class="hljs-string">&quot;bytes&quot;</span>
  11349. <span class="hljs-string">&quot;net/http&quot;</span>
  11350. )
  11351. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11352. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11353. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11354. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11355. }
  11356. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11357. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>, data)
  11358. req.Header = headers
  11359. client := &amp;http.Client{}
  11360. resp, err := client.Do(req)
  11361. <span class="hljs-comment">// ...</span>
  11362. }
  11363. </code></pre>
  11364. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11365. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11366. );
  11367. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11368. <span class="hljs-comment">// Define array of request body.</span>
  11369. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11370. <span class="hljs-keyword">try</span> {
  11371. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, <span class="hljs-keyword">array</span>(
  11372. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11373. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11374. )
  11375. );
  11376. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11377. }
  11378. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11379. <span class="hljs-comment">// handle exception or api errors.</span>
  11380. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11381. }
  11382. <span class="hljs-comment">// ...</span>
  11383. </code></pre>
  11384. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  11385. <p><em>Delete a Custom Fields attached to a board</em></p>
  11386. <p>The Custom Field can't be retrieved after this operation</p>
  11387. <h3 id="delete_custom_field-parameters">Parameters</h3>
  11388. <table>
  11389. <thead>
  11390. <tr>
  11391. <th>Name</th>
  11392. <th>In</th>
  11393. <th>Type</th>
  11394. <th>Required</th>
  11395. <th>Description</th>
  11396. </tr>
  11397. </thead>
  11398. <tbody>
  11399. <tr>
  11400. <td>board</td>
  11401. <td>path</td>
  11402. <td>string</td>
  11403. <td>true</td>
  11404. <td>the board value</td>
  11405. </tr>
  11406. <tr>
  11407. <td>customField</td>
  11408. <td>path</td>
  11409. <td>string</td>
  11410. <td>true</td>
  11411. <td>the ID of the custom field</td>
  11412. </tr>
  11413. </tbody>
  11414. </table>
  11415. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  11416. <p><strong>customField</strong>: the ID of the custom field</p>
  11417. <blockquote>
  11418. <p>Example responses</p>
  11419. </blockquote>
  11420. <blockquote>
  11421. <p>200 Response</p>
  11422. </blockquote>
  11423. <pre class="highlight tab tab-json"><code>{
  11424. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11425. }
  11426. </code></pre>
  11427. <h3 id="delete_custom_field-responses">Responses</h3>
  11428. <table>
  11429. <thead>
  11430. <tr>
  11431. <th>Status</th>
  11432. <th>Meaning</th>
  11433. <th>Description</th>
  11434. <th>Schema</th>
  11435. </tr>
  11436. </thead>
  11437. <tbody>
  11438. <tr>
  11439. <td>200</td>
  11440. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11441. <td>200 response</td>
  11442. <td>Inline</td>
  11443. </tr>
  11444. </tbody>
  11445. </table>
  11446. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  11447. <p>Status Code <strong>200</strong></p>
  11448. <table>
  11449. <thead>
  11450. <tr>
  11451. <th>Name</th>
  11452. <th>Type</th>
  11453. <th>Required</th>
  11454. <th>Restrictions</th>
  11455. <th>Description</th>
  11456. </tr>
  11457. </thead>
  11458. <tbody>
  11459. <tr>
  11460. <td>» _id</td>
  11461. <td>string</td>
  11462. <td>false</td>
  11463. <td>none</td>
  11464. <td>none</td>
  11465. </tr>
  11466. </tbody>
  11467. </table>
  11468. <aside class="warning">
  11469. To perform this operation, you must be authenticated by means of one of the following methods:
  11470. UserSecurity
  11471. </aside>
  11472. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  11473. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  11474. <blockquote>
  11475. <p>Code samples</p>
  11476. </blockquote>
  11477. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11478. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  11479. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11480. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11481. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11482. </code></pre>
  11483. <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> <span class="hljs-meta">HTTP/1.1</span>
  11484. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11485. Accept: application/json
  11486. </span></code></pre>
  11487. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11488. &quot;items&quot;: &quot;string&quot;
  11489. }&#x27;</span>;
  11490. <span class="hljs-keyword">const</span> headers = {
  11491. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11492. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11493. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11494. };
  11495. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11496. {
  11497. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11498. <span class="hljs-attr">body</span>: inputBody,
  11499. <span class="hljs-attr">headers</span>: headers
  11500. })
  11501. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11502. <span class="hljs-keyword">return</span> res.json();
  11503. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11504. <span class="hljs-built_in">console</span>.log(body);
  11505. });
  11506. </code></pre>
  11507. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11508. <span class="hljs-keyword">const</span> inputBody = {
  11509. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11510. };
  11511. <span class="hljs-keyword">const</span> headers = {
  11512. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11513. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11514. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11515. };
  11516. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11517. {
  11518. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11519. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11520. <span class="hljs-attr">headers</span>: headers
  11521. })
  11522. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11523. <span class="hljs-keyword">return</span> res.json();
  11524. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11525. <span class="hljs-built_in">console</span>.log(body);
  11526. });
  11527. </code></pre>
  11528. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11529. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11530. headers = {
  11531. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11532. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11533. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11534. }
  11535. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11536. <span class="hljs-symbol">params:</span> {
  11537. }, <span class="hljs-symbol">headers:</span> headers
  11538. p JSON.parse(result)
  11539. </code></pre>
  11540. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11541. headers = {
  11542. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11543. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11544. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11545. }
  11546. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  11547. <span class="hljs-built_in">print</span>(r.json())
  11548. </code></pre>
  11549. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items&quot;</span>);
  11550. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11551. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11552. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11553. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11554. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11555. String inputLine;
  11556. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11557. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11558. response.append(inputLine);
  11559. }
  11560. in.close();
  11561. System.out.println(response.toString());
  11562. </code></pre>
  11563. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11564. <span class="hljs-keyword">import</span> (
  11565. <span class="hljs-string">&quot;bytes&quot;</span>
  11566. <span class="hljs-string">&quot;net/http&quot;</span>
  11567. )
  11568. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11569. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11570. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  11571. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11572. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11573. }
  11574. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11575. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items&quot;</span>, data)
  11576. req.Header = headers
  11577. client := &amp;http.Client{}
  11578. resp, err := client.Do(req)
  11579. <span class="hljs-comment">// ...</span>
  11580. }
  11581. </code></pre>
  11582. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11583. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11584. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11585. );
  11586. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11587. <span class="hljs-comment">// Define array of request body.</span>
  11588. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11589. <span class="hljs-keyword">try</span> {
  11590. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, <span class="hljs-keyword">array</span>(
  11591. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11592. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11593. )
  11594. );
  11595. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11596. }
  11597. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11598. <span class="hljs-comment">// handle exception or api errors.</span>
  11599. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11600. }
  11601. <span class="hljs-comment">// ...</span>
  11602. </code></pre>
  11603. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  11604. <p><em>Update a Custom Field's dropdown items</em></p>
  11605. <blockquote>
  11606. <p>Body parameter</p>
  11607. </blockquote>
  11608. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  11609. </code></pre>
  11610. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  11611. <table>
  11612. <thead>
  11613. <tr>
  11614. <th>Name</th>
  11615. <th>In</th>
  11616. <th>Type</th>
  11617. <th>Required</th>
  11618. <th>Description</th>
  11619. </tr>
  11620. </thead>
  11621. <tbody>
  11622. <tr>
  11623. <td>board</td>
  11624. <td>path</td>
  11625. <td>string</td>
  11626. <td>true</td>
  11627. <td>the board value</td>
  11628. </tr>
  11629. <tr>
  11630. <td>customField</td>
  11631. <td>path</td>
  11632. <td>string</td>
  11633. <td>true</td>
  11634. <td>the customField value</td>
  11635. </tr>
  11636. <tr>
  11637. <td>body</td>
  11638. <td>body</td>
  11639. <td>object</td>
  11640. <td>false</td>
  11641. <td>none</td>
  11642. </tr>
  11643. <tr>
  11644. <td>» items</td>
  11645. <td>body</td>
  11646. <td>string</td>
  11647. <td>false</td>
  11648. <td>names of the custom field</td>
  11649. </tr>
  11650. </tbody>
  11651. </table>
  11652. <blockquote>
  11653. <p>Example responses</p>
  11654. </blockquote>
  11655. <blockquote>
  11656. <p>200 Response</p>
  11657. </blockquote>
  11658. <pre class="highlight tab tab-json"><code>{
  11659. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11660. }
  11661. </code></pre>
  11662. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  11663. <table>
  11664. <thead>
  11665. <tr>
  11666. <th>Status</th>
  11667. <th>Meaning</th>
  11668. <th>Description</th>
  11669. <th>Schema</th>
  11670. </tr>
  11671. </thead>
  11672. <tbody>
  11673. <tr>
  11674. <td>200</td>
  11675. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11676. <td>200 response</td>
  11677. <td>Inline</td>
  11678. </tr>
  11679. </tbody>
  11680. </table>
  11681. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  11682. <p>Status Code <strong>200</strong></p>
  11683. <table>
  11684. <thead>
  11685. <tr>
  11686. <th>Name</th>
  11687. <th>Type</th>
  11688. <th>Required</th>
  11689. <th>Restrictions</th>
  11690. <th>Description</th>
  11691. </tr>
  11692. </thead>
  11693. <tbody>
  11694. <tr>
  11695. <td>» _id</td>
  11696. <td>string</td>
  11697. <td>false</td>
  11698. <td>none</td>
  11699. <td>none</td>
  11700. </tr>
  11701. </tbody>
  11702. </table>
  11703. <aside class="warning">
  11704. To perform this operation, you must be authenticated by means of one of the following methods:
  11705. UserSecurity
  11706. </aside>
  11707. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  11708. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  11709. <blockquote>
  11710. <p>Code samples</p>
  11711. </blockquote>
  11712. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11713. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11714. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11715. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11716. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11717. </code></pre>
  11718. <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> <span class="hljs-meta">HTTP/1.1</span>
  11719. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11720. Accept: application/json
  11721. </span></code></pre>
  11722. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11723. &quot;name&quot;: &quot;string&quot;
  11724. }&#x27;</span>;
  11725. <span class="hljs-keyword">const</span> headers = {
  11726. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11727. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11728. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11729. };
  11730. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11731. {
  11732. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11733. <span class="hljs-attr">body</span>: inputBody,
  11734. <span class="hljs-attr">headers</span>: headers
  11735. })
  11736. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11737. <span class="hljs-keyword">return</span> res.json();
  11738. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11739. <span class="hljs-built_in">console</span>.log(body);
  11740. });
  11741. </code></pre>
  11742. <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">&#x27;node-fetch&#x27;</span>);
  11743. <span class="hljs-keyword">const</span> inputBody = {
  11744. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11745. };
  11746. <span class="hljs-keyword">const</span> headers = {
  11747. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11748. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11749. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11750. };
  11751. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11752. {
  11753. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11754. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11755. <span class="hljs-attr">headers</span>: headers
  11756. })
  11757. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11758. <span class="hljs-keyword">return</span> res.json();
  11759. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11760. <span class="hljs-built_in">console</span>.log(body);
  11761. });
  11762. </code></pre>
  11763. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11764. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11765. headers = {
  11766. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11767. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11768. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11769. }
  11770. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11771. <span class="hljs-symbol">params:</span> {
  11772. }, <span class="hljs-symbol">headers:</span> headers
  11773. p JSON.parse(result)
  11774. </code></pre>
  11775. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11776. headers = {
  11777. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11778. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11779. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11780. }
  11781. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  11782. <span class="hljs-built_in">print</span>(r.json())
  11783. </code></pre>
  11784. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&quot;</span>);
  11785. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11786. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11787. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11788. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11789. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11790. String inputLine;
  11791. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11792. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11793. response.append(inputLine);
  11794. }
  11795. in.close();
  11796. System.out.println(response.toString());
  11797. </code></pre>
  11798. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11799. <span class="hljs-keyword">import</span> (
  11800. <span class="hljs-string">&quot;bytes&quot;</span>
  11801. <span class="hljs-string">&quot;net/http&quot;</span>
  11802. )
  11803. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11804. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11805. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  11806. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11807. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11808. }
  11809. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11810. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&quot;</span>, data)
  11811. req.Header = headers
  11812. client := &amp;http.Client{}
  11813. resp, err := client.Do(req)
  11814. <span class="hljs-comment">// ...</span>
  11815. }
  11816. </code></pre>
  11817. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11818. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11819. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11820. );
  11821. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11822. <span class="hljs-comment">// Define array of request body.</span>
  11823. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11824. <span class="hljs-keyword">try</span> {
  11825. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, <span class="hljs-keyword">array</span>(
  11826. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11827. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11828. )
  11829. );
  11830. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11831. }
  11832. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11833. <span class="hljs-comment">// handle exception or api errors.</span>
  11834. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11835. }
  11836. <span class="hljs-comment">// ...</span>
  11837. </code></pre>
  11838. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11839. <p><em>Update a Custom Field's dropdown item</em></p>
  11840. <blockquote>
  11841. <p>Body parameter</p>
  11842. </blockquote>
  11843. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  11844. </code></pre>
  11845. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  11846. <table>
  11847. <thead>
  11848. <tr>
  11849. <th>Name</th>
  11850. <th>In</th>
  11851. <th>Type</th>
  11852. <th>Required</th>
  11853. <th>Description</th>
  11854. </tr>
  11855. </thead>
  11856. <tbody>
  11857. <tr>
  11858. <td>board</td>
  11859. <td>path</td>
  11860. <td>string</td>
  11861. <td>true</td>
  11862. <td>the board value</td>
  11863. </tr>
  11864. <tr>
  11865. <td>customField</td>
  11866. <td>path</td>
  11867. <td>string</td>
  11868. <td>true</td>
  11869. <td>the customField value</td>
  11870. </tr>
  11871. <tr>
  11872. <td>dropdownItem</td>
  11873. <td>path</td>
  11874. <td>string</td>
  11875. <td>true</td>
  11876. <td>the dropdownItem value</td>
  11877. </tr>
  11878. <tr>
  11879. <td>body</td>
  11880. <td>body</td>
  11881. <td>object</td>
  11882. <td>true</td>
  11883. <td>none</td>
  11884. </tr>
  11885. <tr>
  11886. <td>» name</td>
  11887. <td>body</td>
  11888. <td>string</td>
  11889. <td>true</td>
  11890. <td>names of the custom field</td>
  11891. </tr>
  11892. </tbody>
  11893. </table>
  11894. <blockquote>
  11895. <p>Example responses</p>
  11896. </blockquote>
  11897. <blockquote>
  11898. <p>200 Response</p>
  11899. </blockquote>
  11900. <pre class="highlight tab tab-json"><code>{
  11901. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11902. }
  11903. </code></pre>
  11904. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  11905. <table>
  11906. <thead>
  11907. <tr>
  11908. <th>Status</th>
  11909. <th>Meaning</th>
  11910. <th>Description</th>
  11911. <th>Schema</th>
  11912. </tr>
  11913. </thead>
  11914. <tbody>
  11915. <tr>
  11916. <td>200</td>
  11917. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11918. <td>200 response</td>
  11919. <td>Inline</td>
  11920. </tr>
  11921. </tbody>
  11922. </table>
  11923. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11924. <p>Status Code <strong>200</strong></p>
  11925. <table>
  11926. <thead>
  11927. <tr>
  11928. <th>Name</th>
  11929. <th>Type</th>
  11930. <th>Required</th>
  11931. <th>Restrictions</th>
  11932. <th>Description</th>
  11933. </tr>
  11934. </thead>
  11935. <tbody>
  11936. <tr>
  11937. <td>» _id</td>
  11938. <td>string</td>
  11939. <td>false</td>
  11940. <td>none</td>
  11941. <td>none</td>
  11942. </tr>
  11943. </tbody>
  11944. </table>
  11945. <aside class="warning">
  11946. To perform this operation, you must be authenticated by means of one of the following methods:
  11947. UserSecurity
  11948. </aside>
  11949. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  11950. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  11951. <blockquote>
  11952. <p>Code samples</p>
  11953. </blockquote>
  11954. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11955. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11956. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11957. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11958. </code></pre>
  11959. <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> <span class="hljs-meta">HTTP/1.1</span>
  11960. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11961. </span></code></pre>
  11962. <pre class="highlight tab tab-javascript"><code>
  11963. <span class="hljs-keyword">const</span> headers = {
  11964. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11965. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11966. };
  11967. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11968. {
  11969. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11970. <span class="hljs-attr">headers</span>: headers
  11971. })
  11972. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11973. <span class="hljs-keyword">return</span> res.json();
  11974. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11975. <span class="hljs-built_in">console</span>.log(body);
  11976. });
  11977. </code></pre>
  11978. <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">&#x27;node-fetch&#x27;</span>);
  11979. <span class="hljs-keyword">const</span> headers = {
  11980. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11981. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11982. };
  11983. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11984. {
  11985. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11986. <span class="hljs-attr">headers</span>: headers
  11987. })
  11988. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11989. <span class="hljs-keyword">return</span> res.json();
  11990. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11991. <span class="hljs-built_in">console</span>.log(body);
  11992. });
  11993. </code></pre>
  11994. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11995. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11996. headers = {
  11997. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11998. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11999. }
  12000. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  12001. <span class="hljs-symbol">params:</span> {
  12002. }, <span class="hljs-symbol">headers:</span> headers
  12003. p JSON.parse(result)
  12004. </code></pre>
  12005. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12006. headers = {
  12007. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12008. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12009. }
  12010. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  12011. <span class="hljs-built_in">print</span>(r.json())
  12012. </code></pre>
  12013. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&quot;</span>);
  12014. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12015. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12016. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12017. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12018. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12019. String inputLine;
  12020. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12021. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12022. response.append(inputLine);
  12023. }
  12024. in.close();
  12025. System.out.println(response.toString());
  12026. </code></pre>
  12027. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12028. <span class="hljs-keyword">import</span> (
  12029. <span class="hljs-string">&quot;bytes&quot;</span>
  12030. <span class="hljs-string">&quot;net/http&quot;</span>
  12031. )
  12032. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12033. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12034. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12035. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12036. }
  12037. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12038. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&quot;</span>, data)
  12039. req.Header = headers
  12040. client := &amp;http.Client{}
  12041. resp, err := client.Do(req)
  12042. <span class="hljs-comment">// ...</span>
  12043. }
  12044. </code></pre>
  12045. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12046. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12047. );
  12048. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12049. <span class="hljs-comment">// Define array of request body.</span>
  12050. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12051. <span class="hljs-keyword">try</span> {
  12052. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, <span class="hljs-keyword">array</span>(
  12053. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12054. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12055. )
  12056. );
  12057. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12058. }
  12059. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12060. <span class="hljs-comment">// handle exception or api errors.</span>
  12061. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12062. }
  12063. <span class="hljs-comment">// ...</span>
  12064. </code></pre>
  12065. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  12066. <p><em>Update a Custom Field's dropdown items</em></p>
  12067. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  12068. <table>
  12069. <thead>
  12070. <tr>
  12071. <th>Name</th>
  12072. <th>In</th>
  12073. <th>Type</th>
  12074. <th>Required</th>
  12075. <th>Description</th>
  12076. </tr>
  12077. </thead>
  12078. <tbody>
  12079. <tr>
  12080. <td>board</td>
  12081. <td>path</td>
  12082. <td>string</td>
  12083. <td>true</td>
  12084. <td>the board value</td>
  12085. </tr>
  12086. <tr>
  12087. <td>customField</td>
  12088. <td>path</td>
  12089. <td>string</td>
  12090. <td>true</td>
  12091. <td>the customField value</td>
  12092. </tr>
  12093. <tr>
  12094. <td>dropdownItem</td>
  12095. <td>path</td>
  12096. <td>string</td>
  12097. <td>true</td>
  12098. <td>the dropdownItem value</td>
  12099. </tr>
  12100. </tbody>
  12101. </table>
  12102. <blockquote>
  12103. <p>Example responses</p>
  12104. </blockquote>
  12105. <blockquote>
  12106. <p>200 Response</p>
  12107. </blockquote>
  12108. <pre class="highlight tab tab-json"><code>{
  12109. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12110. }
  12111. </code></pre>
  12112. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  12113. <table>
  12114. <thead>
  12115. <tr>
  12116. <th>Status</th>
  12117. <th>Meaning</th>
  12118. <th>Description</th>
  12119. <th>Schema</th>
  12120. </tr>
  12121. </thead>
  12122. <tbody>
  12123. <tr>
  12124. <td>200</td>
  12125. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12126. <td>200 response</td>
  12127. <td>Inline</td>
  12128. </tr>
  12129. </tbody>
  12130. </table>
  12131. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  12132. <p>Status Code <strong>200</strong></p>
  12133. <table>
  12134. <thead>
  12135. <tr>
  12136. <th>Name</th>
  12137. <th>Type</th>
  12138. <th>Required</th>
  12139. <th>Restrictions</th>
  12140. <th>Description</th>
  12141. </tr>
  12142. </thead>
  12143. <tbody>
  12144. <tr>
  12145. <td>» _id</td>
  12146. <td>string</td>
  12147. <td>false</td>
  12148. <td>none</td>
  12149. <td>none</td>
  12150. </tr>
  12151. </tbody>
  12152. </table>
  12153. <aside class="warning">
  12154. To perform this operation, you must be authenticated by means of one of the following methods:
  12155. UserSecurity
  12156. </aside>
  12157. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  12158. <h2 id="get_all_integrations">get_all_integrations</h2>
  12159. <p><a id="opIdget_all_integrations"></a></p>
  12160. <blockquote>
  12161. <p>Code samples</p>
  12162. </blockquote>
  12163. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12164. curl -X GET /api/boards/{board}/integrations \
  12165. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12166. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12167. </code></pre>
  12168. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations</span> <span class="hljs-meta">HTTP/1.1</span>
  12169. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12170. </span></code></pre>
  12171. <pre class="highlight tab tab-javascript"><code>
  12172. <span class="hljs-keyword">const</span> headers = {
  12173. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12174. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12175. };
  12176. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12177. {
  12178. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12179. <span class="hljs-attr">headers</span>: headers
  12180. })
  12181. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12182. <span class="hljs-keyword">return</span> res.json();
  12183. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12184. <span class="hljs-built_in">console</span>.log(body);
  12185. });
  12186. </code></pre>
  12187. <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">&#x27;node-fetch&#x27;</span>);
  12188. <span class="hljs-keyword">const</span> headers = {
  12189. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12190. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12191. };
  12192. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12193. {
  12194. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12195. <span class="hljs-attr">headers</span>: headers
  12196. })
  12197. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12198. <span class="hljs-keyword">return</span> res.json();
  12199. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12200. <span class="hljs-built_in">console</span>.log(body);
  12201. });
  12202. </code></pre>
  12203. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12204. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12205. headers = {
  12206. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12207. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12208. }
  12209. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12210. <span class="hljs-symbol">params:</span> {
  12211. }, <span class="hljs-symbol">headers:</span> headers
  12212. p JSON.parse(result)
  12213. </code></pre>
  12214. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12215. headers = {
  12216. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12217. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12218. }
  12219. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  12220. <span class="hljs-built_in">print</span>(r.json())
  12221. </code></pre>
  12222. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>);
  12223. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12224. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12225. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12226. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12227. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12228. String inputLine;
  12229. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12230. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12231. response.append(inputLine);
  12232. }
  12233. in.close();
  12234. System.out.println(response.toString());
  12235. </code></pre>
  12236. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12237. <span class="hljs-keyword">import</span> (
  12238. <span class="hljs-string">&quot;bytes&quot;</span>
  12239. <span class="hljs-string">&quot;net/http&quot;</span>
  12240. )
  12241. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12242. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12243. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12244. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12245. }
  12246. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12247. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  12248. req.Header = headers
  12249. client := &amp;http.Client{}
  12250. resp, err := client.Do(req)
  12251. <span class="hljs-comment">// ...</span>
  12252. }
  12253. </code></pre>
  12254. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12255. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12256. );
  12257. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12258. <span class="hljs-comment">// Define array of request body.</span>
  12259. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12260. <span class="hljs-keyword">try</span> {
  12261. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, <span class="hljs-keyword">array</span>(
  12262. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12263. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12264. )
  12265. );
  12266. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12267. }
  12268. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12269. <span class="hljs-comment">// handle exception or api errors.</span>
  12270. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12271. }
  12272. <span class="hljs-comment">// ...</span>
  12273. </code></pre>
  12274. <p><code>GET /api/boards/{board}/integrations</code></p>
  12275. <p><em>Get all integrations in board</em></p>
  12276. <h3 id="get_all_integrations-parameters">Parameters</h3>
  12277. <table>
  12278. <thead>
  12279. <tr>
  12280. <th>Name</th>
  12281. <th>In</th>
  12282. <th>Type</th>
  12283. <th>Required</th>
  12284. <th>Description</th>
  12285. </tr>
  12286. </thead>
  12287. <tbody>
  12288. <tr>
  12289. <td>board</td>
  12290. <td>path</td>
  12291. <td>string</td>
  12292. <td>true</td>
  12293. <td>the board ID</td>
  12294. </tr>
  12295. </tbody>
  12296. </table>
  12297. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12298. <p><strong>board</strong>: the board ID</p>
  12299. <blockquote>
  12300. <p>Example responses</p>
  12301. </blockquote>
  12302. <blockquote>
  12303. <p>200 Response</p>
  12304. </blockquote>
  12305. <pre class="highlight tab tab-json"><code>[
  12306. {
  12307. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12308. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12309. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12310. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12311. <span class="hljs-string">&quot;string&quot;</span>
  12312. ],
  12313. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12314. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12315. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12316. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12317. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12318. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12319. }
  12320. ]
  12321. </code></pre>
  12322. <h3 id="get_all_integrations-responses">Responses</h3>
  12323. <table>
  12324. <thead>
  12325. <tr>
  12326. <th>Status</th>
  12327. <th>Meaning</th>
  12328. <th>Description</th>
  12329. <th>Schema</th>
  12330. </tr>
  12331. </thead>
  12332. <tbody>
  12333. <tr>
  12334. <td>200</td>
  12335. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12336. <td>200 response</td>
  12337. <td>Inline</td>
  12338. </tr>
  12339. </tbody>
  12340. </table>
  12341. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  12342. <p>Status Code <strong>200</strong></p>
  12343. <table>
  12344. <thead>
  12345. <tr>
  12346. <th>Name</th>
  12347. <th>Type</th>
  12348. <th>Required</th>
  12349. <th>Restrictions</th>
  12350. <th>Description</th>
  12351. </tr>
  12352. </thead>
  12353. <tbody>
  12354. <tr>
  12355. <td><em>anonymous</em></td>
  12356. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  12357. <td>false</td>
  12358. <td>none</td>
  12359. <td>[Integration with third-party applications]</td>
  12360. </tr>
  12361. <tr>
  12362. <td>» enabled</td>
  12363. <td>boolean</td>
  12364. <td>true</td>
  12365. <td>none</td>
  12366. <td>is the integration enabled?</td>
  12367. </tr>
  12368. <tr>
  12369. <td>» title</td>
  12370. <td>string¦null</td>
  12371. <td>false</td>
  12372. <td>none</td>
  12373. <td>name of the integration</td>
  12374. </tr>
  12375. <tr>
  12376. <td>» type</td>
  12377. <td>string</td>
  12378. <td>true</td>
  12379. <td>none</td>
  12380. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  12381. </tr>
  12382. <tr>
  12383. <td>» activities</td>
  12384. <td>[string]</td>
  12385. <td>true</td>
  12386. <td>none</td>
  12387. <td>activities the integration gets triggered (list)</td>
  12388. </tr>
  12389. <tr>
  12390. <td>» url</td>
  12391. <td>string</td>
  12392. <td>true</td>
  12393. <td>none</td>
  12394. <td>none</td>
  12395. </tr>
  12396. <tr>
  12397. <td>» token</td>
  12398. <td>string¦null</td>
  12399. <td>false</td>
  12400. <td>none</td>
  12401. <td>token of the integration</td>
  12402. </tr>
  12403. <tr>
  12404. <td>» boardId</td>
  12405. <td>string</td>
  12406. <td>true</td>
  12407. <td>none</td>
  12408. <td>Board ID of the integration</td>
  12409. </tr>
  12410. <tr>
  12411. <td>» createdAt</td>
  12412. <td>string</td>
  12413. <td>true</td>
  12414. <td>none</td>
  12415. <td>Creation date of the integration</td>
  12416. </tr>
  12417. <tr>
  12418. <td>» modifiedAt</td>
  12419. <td>string</td>
  12420. <td>true</td>
  12421. <td>none</td>
  12422. <td>none</td>
  12423. </tr>
  12424. <tr>
  12425. <td>» userId</td>
  12426. <td>string</td>
  12427. <td>true</td>
  12428. <td>none</td>
  12429. <td>user ID who created the interation</td>
  12430. </tr>
  12431. </tbody>
  12432. </table>
  12433. <aside class="warning">
  12434. To perform this operation, you must be authenticated by means of one of the following methods:
  12435. UserSecurity
  12436. </aside>
  12437. <h2 id="new_integration">new_integration</h2>
  12438. <p><a id="opIdnew_integration"></a></p>
  12439. <blockquote>
  12440. <p>Code samples</p>
  12441. </blockquote>
  12442. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12443. curl -X POST /api/boards/{board}/integrations \
  12444. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12445. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12446. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12447. </code></pre>
  12448. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations</span> <span class="hljs-meta">HTTP/1.1</span>
  12449. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12450. Accept: application/json
  12451. </span></code></pre>
  12452. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12453. &quot;url&quot;: &quot;string&quot;
  12454. }&#x27;</span>;
  12455. <span class="hljs-keyword">const</span> headers = {
  12456. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12457. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12458. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12459. };
  12460. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12461. {
  12462. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12463. <span class="hljs-attr">body</span>: inputBody,
  12464. <span class="hljs-attr">headers</span>: headers
  12465. })
  12466. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12467. <span class="hljs-keyword">return</span> res.json();
  12468. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12469. <span class="hljs-built_in">console</span>.log(body);
  12470. });
  12471. </code></pre>
  12472. <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">&#x27;node-fetch&#x27;</span>);
  12473. <span class="hljs-keyword">const</span> inputBody = {
  12474. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12475. };
  12476. <span class="hljs-keyword">const</span> headers = {
  12477. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12478. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12479. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12480. };
  12481. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12482. {
  12483. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12484. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12485. <span class="hljs-attr">headers</span>: headers
  12486. })
  12487. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12488. <span class="hljs-keyword">return</span> res.json();
  12489. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12490. <span class="hljs-built_in">console</span>.log(body);
  12491. });
  12492. </code></pre>
  12493. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12494. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12495. headers = {
  12496. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12497. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12498. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12499. }
  12500. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12501. <span class="hljs-symbol">params:</span> {
  12502. }, <span class="hljs-symbol">headers:</span> headers
  12503. p JSON.parse(result)
  12504. </code></pre>
  12505. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12506. headers = {
  12507. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12508. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12509. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12510. }
  12511. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  12512. <span class="hljs-built_in">print</span>(r.json())
  12513. </code></pre>
  12514. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>);
  12515. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12516. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12517. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12518. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12519. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12520. String inputLine;
  12521. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12522. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12523. response.append(inputLine);
  12524. }
  12525. in.close();
  12526. System.out.println(response.toString());
  12527. </code></pre>
  12528. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12529. <span class="hljs-keyword">import</span> (
  12530. <span class="hljs-string">&quot;bytes&quot;</span>
  12531. <span class="hljs-string">&quot;net/http&quot;</span>
  12532. )
  12533. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12534. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12535. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  12536. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12537. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12538. }
  12539. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12540. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  12541. req.Header = headers
  12542. client := &amp;http.Client{}
  12543. resp, err := client.Do(req)
  12544. <span class="hljs-comment">// ...</span>
  12545. }
  12546. </code></pre>
  12547. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12548. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12549. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12550. );
  12551. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12552. <span class="hljs-comment">// Define array of request body.</span>
  12553. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12554. <span class="hljs-keyword">try</span> {
  12555. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, <span class="hljs-keyword">array</span>(
  12556. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12557. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12558. )
  12559. );
  12560. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12561. }
  12562. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12563. <span class="hljs-comment">// handle exception or api errors.</span>
  12564. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12565. }
  12566. <span class="hljs-comment">// ...</span>
  12567. </code></pre>
  12568. <p><code>POST /api/boards/{board}/integrations</code></p>
  12569. <p><em>Create a new integration</em></p>
  12570. <blockquote>
  12571. <p>Body parameter</p>
  12572. </blockquote>
  12573. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12574. </code></pre>
  12575. <h3 id="new_integration-parameters">Parameters</h3>
  12576. <table>
  12577. <thead>
  12578. <tr>
  12579. <th>Name</th>
  12580. <th>In</th>
  12581. <th>Type</th>
  12582. <th>Required</th>
  12583. <th>Description</th>
  12584. </tr>
  12585. </thead>
  12586. <tbody>
  12587. <tr>
  12588. <td>board</td>
  12589. <td>path</td>
  12590. <td>string</td>
  12591. <td>true</td>
  12592. <td>the board ID</td>
  12593. </tr>
  12594. <tr>
  12595. <td>body</td>
  12596. <td>body</td>
  12597. <td>object</td>
  12598. <td>true</td>
  12599. <td>none</td>
  12600. </tr>
  12601. <tr>
  12602. <td>» url</td>
  12603. <td>body</td>
  12604. <td>string</td>
  12605. <td>true</td>
  12606. <td>the URL of the integration</td>
  12607. </tr>
  12608. </tbody>
  12609. </table>
  12610. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12611. <p><strong>board</strong>: the board ID</p>
  12612. <blockquote>
  12613. <p>Example responses</p>
  12614. </blockquote>
  12615. <blockquote>
  12616. <p>200 Response</p>
  12617. </blockquote>
  12618. <pre class="highlight tab tab-json"><code>{
  12619. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12620. }
  12621. </code></pre>
  12622. <h3 id="new_integration-responses">Responses</h3>
  12623. <table>
  12624. <thead>
  12625. <tr>
  12626. <th>Status</th>
  12627. <th>Meaning</th>
  12628. <th>Description</th>
  12629. <th>Schema</th>
  12630. </tr>
  12631. </thead>
  12632. <tbody>
  12633. <tr>
  12634. <td>200</td>
  12635. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12636. <td>200 response</td>
  12637. <td>Inline</td>
  12638. </tr>
  12639. </tbody>
  12640. </table>
  12641. <h3 id="new_integration-responseschema">Response Schema</h3>
  12642. <p>Status Code <strong>200</strong></p>
  12643. <table>
  12644. <thead>
  12645. <tr>
  12646. <th>Name</th>
  12647. <th>Type</th>
  12648. <th>Required</th>
  12649. <th>Restrictions</th>
  12650. <th>Description</th>
  12651. </tr>
  12652. </thead>
  12653. <tbody>
  12654. <tr>
  12655. <td>» _id</td>
  12656. <td>string</td>
  12657. <td>false</td>
  12658. <td>none</td>
  12659. <td>none</td>
  12660. </tr>
  12661. </tbody>
  12662. </table>
  12663. <aside class="warning">
  12664. To perform this operation, you must be authenticated by means of one of the following methods:
  12665. UserSecurity
  12666. </aside>
  12667. <h2 id="get_integration">get_integration</h2>
  12668. <p><a id="opIdget_integration"></a></p>
  12669. <blockquote>
  12670. <p>Code samples</p>
  12671. </blockquote>
  12672. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12673. curl -X GET /api/boards/{board}/integrations/{int} \
  12674. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12675. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12676. </code></pre>
  12677. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> <span class="hljs-meta">HTTP/1.1</span>
  12678. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12679. </span></code></pre>
  12680. <pre class="highlight tab tab-javascript"><code>
  12681. <span class="hljs-keyword">const</span> headers = {
  12682. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12683. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12684. };
  12685. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12686. {
  12687. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12688. <span class="hljs-attr">headers</span>: headers
  12689. })
  12690. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12691. <span class="hljs-keyword">return</span> res.json();
  12692. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12693. <span class="hljs-built_in">console</span>.log(body);
  12694. });
  12695. </code></pre>
  12696. <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">&#x27;node-fetch&#x27;</span>);
  12697. <span class="hljs-keyword">const</span> headers = {
  12698. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12699. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12700. };
  12701. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12702. {
  12703. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12704. <span class="hljs-attr">headers</span>: headers
  12705. })
  12706. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12707. <span class="hljs-keyword">return</span> res.json();
  12708. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12709. <span class="hljs-built_in">console</span>.log(body);
  12710. });
  12711. </code></pre>
  12712. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12713. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12714. headers = {
  12715. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12716. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12717. }
  12718. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12719. <span class="hljs-symbol">params:</span> {
  12720. }, <span class="hljs-symbol">headers:</span> headers
  12721. p JSON.parse(result)
  12722. </code></pre>
  12723. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12724. headers = {
  12725. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12726. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12727. }
  12728. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12729. <span class="hljs-built_in">print</span>(r.json())
  12730. </code></pre>
  12731. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>);
  12732. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12733. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12734. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12735. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12736. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12737. String inputLine;
  12738. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12739. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12740. response.append(inputLine);
  12741. }
  12742. in.close();
  12743. System.out.println(response.toString());
  12744. </code></pre>
  12745. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12746. <span class="hljs-keyword">import</span> (
  12747. <span class="hljs-string">&quot;bytes&quot;</span>
  12748. <span class="hljs-string">&quot;net/http&quot;</span>
  12749. )
  12750. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12751. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12752. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12753. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12754. }
  12755. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12756. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>, data)
  12757. req.Header = headers
  12758. client := &amp;http.Client{}
  12759. resp, err := client.Do(req)
  12760. <span class="hljs-comment">// ...</span>
  12761. }
  12762. </code></pre>
  12763. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12764. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12765. );
  12766. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12767. <span class="hljs-comment">// Define array of request body.</span>
  12768. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12769. <span class="hljs-keyword">try</span> {
  12770. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, <span class="hljs-keyword">array</span>(
  12771. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12772. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12773. )
  12774. );
  12775. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12776. }
  12777. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12778. <span class="hljs-comment">// handle exception or api errors.</span>
  12779. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12780. }
  12781. <span class="hljs-comment">// ...</span>
  12782. </code></pre>
  12783. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  12784. <p><em>Get a single integration in board</em></p>
  12785. <h3 id="get_integration-parameters">Parameters</h3>
  12786. <table>
  12787. <thead>
  12788. <tr>
  12789. <th>Name</th>
  12790. <th>In</th>
  12791. <th>Type</th>
  12792. <th>Required</th>
  12793. <th>Description</th>
  12794. </tr>
  12795. </thead>
  12796. <tbody>
  12797. <tr>
  12798. <td>board</td>
  12799. <td>path</td>
  12800. <td>string</td>
  12801. <td>true</td>
  12802. <td>the board ID</td>
  12803. </tr>
  12804. <tr>
  12805. <td>int</td>
  12806. <td>path</td>
  12807. <td>string</td>
  12808. <td>true</td>
  12809. <td>the integration ID</td>
  12810. </tr>
  12811. </tbody>
  12812. </table>
  12813. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12814. <p><strong>board</strong>: the board ID</p>
  12815. <p><strong>int</strong>: the integration ID</p>
  12816. <blockquote>
  12817. <p>Example responses</p>
  12818. </blockquote>
  12819. <blockquote>
  12820. <p>200 Response</p>
  12821. </blockquote>
  12822. <pre class="highlight tab tab-json"><code>{
  12823. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12824. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12825. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12826. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12827. <span class="hljs-string">&quot;string&quot;</span>
  12828. ],
  12829. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12830. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12831. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12832. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12833. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12834. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12835. }
  12836. </code></pre>
  12837. <h3 id="get_integration-responses">Responses</h3>
  12838. <table>
  12839. <thead>
  12840. <tr>
  12841. <th>Status</th>
  12842. <th>Meaning</th>
  12843. <th>Description</th>
  12844. <th>Schema</th>
  12845. </tr>
  12846. </thead>
  12847. <tbody>
  12848. <tr>
  12849. <td>200</td>
  12850. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12851. <td>200 response</td>
  12852. <td><a href="#schemaintegrations">Integrations</a></td>
  12853. </tr>
  12854. </tbody>
  12855. </table>
  12856. <aside class="warning">
  12857. To perform this operation, you must be authenticated by means of one of the following methods:
  12858. UserSecurity
  12859. </aside>
  12860. <h2 id="edit_integration">edit_integration</h2>
  12861. <p><a id="opIdedit_integration"></a></p>
  12862. <blockquote>
  12863. <p>Code samples</p>
  12864. </blockquote>
  12865. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12866. curl -X PUT /api/boards/{board}/integrations/{int} \
  12867. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12868. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12869. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12870. </code></pre>
  12871. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> <span class="hljs-meta">HTTP/1.1</span>
  12872. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12873. Accept: application/json
  12874. </span></code></pre>
  12875. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12876. &quot;enabled&quot;: &quot;string&quot;,
  12877. &quot;title&quot;: &quot;string&quot;,
  12878. &quot;url&quot;: &quot;string&quot;,
  12879. &quot;token&quot;: &quot;string&quot;,
  12880. &quot;activities&quot;: &quot;string&quot;
  12881. }&#x27;</span>;
  12882. <span class="hljs-keyword">const</span> headers = {
  12883. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12884. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12885. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12886. };
  12887. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12888. {
  12889. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  12890. <span class="hljs-attr">body</span>: inputBody,
  12891. <span class="hljs-attr">headers</span>: headers
  12892. })
  12893. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12894. <span class="hljs-keyword">return</span> res.json();
  12895. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12896. <span class="hljs-built_in">console</span>.log(body);
  12897. });
  12898. </code></pre>
  12899. <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">&#x27;node-fetch&#x27;</span>);
  12900. <span class="hljs-keyword">const</span> inputBody = {
  12901. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12902. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12903. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12904. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12905. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12906. };
  12907. <span class="hljs-keyword">const</span> headers = {
  12908. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12909. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12910. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12911. };
  12912. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12913. {
  12914. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  12915. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12916. <span class="hljs-attr">headers</span>: headers
  12917. })
  12918. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12919. <span class="hljs-keyword">return</span> res.json();
  12920. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12921. <span class="hljs-built_in">console</span>.log(body);
  12922. });
  12923. </code></pre>
  12924. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12925. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12926. headers = {
  12927. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12928. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12929. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12930. }
  12931. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12932. <span class="hljs-symbol">params:</span> {
  12933. }, <span class="hljs-symbol">headers:</span> headers
  12934. p JSON.parse(result)
  12935. </code></pre>
  12936. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12937. headers = {
  12938. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12939. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12940. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12941. }
  12942. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12943. <span class="hljs-built_in">print</span>(r.json())
  12944. </code></pre>
  12945. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>);
  12946. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12947. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  12948. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12949. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12950. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12951. String inputLine;
  12952. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12953. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12954. response.append(inputLine);
  12955. }
  12956. in.close();
  12957. System.out.println(response.toString());
  12958. </code></pre>
  12959. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12960. <span class="hljs-keyword">import</span> (
  12961. <span class="hljs-string">&quot;bytes&quot;</span>
  12962. <span class="hljs-string">&quot;net/http&quot;</span>
  12963. )
  12964. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12965. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12966. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  12967. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12968. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12969. }
  12970. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12971. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>, data)
  12972. req.Header = headers
  12973. client := &amp;http.Client{}
  12974. resp, err := client.Do(req)
  12975. <span class="hljs-comment">// ...</span>
  12976. }
  12977. </code></pre>
  12978. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12979. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12980. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12981. );
  12982. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12983. <span class="hljs-comment">// Define array of request body.</span>
  12984. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12985. <span class="hljs-keyword">try</span> {
  12986. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, <span class="hljs-keyword">array</span>(
  12987. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12988. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12989. )
  12990. );
  12991. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12992. }
  12993. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12994. <span class="hljs-comment">// handle exception or api errors.</span>
  12995. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12996. }
  12997. <span class="hljs-comment">// ...</span>
  12998. </code></pre>
  12999. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  13000. <p><em>Edit integration data</em></p>
  13001. <blockquote>
  13002. <p>Body parameter</p>
  13003. </blockquote>
  13004. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  13005. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13006. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  13007. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  13008. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  13009. </code></pre>
  13010. <h3 id="edit_integration-parameters">Parameters</h3>
  13011. <table>
  13012. <thead>
  13013. <tr>
  13014. <th>Name</th>
  13015. <th>In</th>
  13016. <th>Type</th>
  13017. <th>Required</th>
  13018. <th>Description</th>
  13019. </tr>
  13020. </thead>
  13021. <tbody>
  13022. <tr>
  13023. <td>board</td>
  13024. <td>path</td>
  13025. <td>string</td>
  13026. <td>true</td>
  13027. <td>the board ID</td>
  13028. </tr>
  13029. <tr>
  13030. <td>int</td>
  13031. <td>path</td>
  13032. <td>string</td>
  13033. <td>true</td>
  13034. <td>the integration ID</td>
  13035. </tr>
  13036. <tr>
  13037. <td>body</td>
  13038. <td>body</td>
  13039. <td>object</td>
  13040. <td>false</td>
  13041. <td>none</td>
  13042. </tr>
  13043. <tr>
  13044. <td>» enabled</td>
  13045. <td>body</td>
  13046. <td>string</td>
  13047. <td>false</td>
  13048. <td>is the integration enabled?</td>
  13049. </tr>
  13050. <tr>
  13051. <td>» title</td>
  13052. <td>body</td>
  13053. <td>string</td>
  13054. <td>false</td>
  13055. <td>new name of the integration</td>
  13056. </tr>
  13057. <tr>
  13058. <td>» url</td>
  13059. <td>body</td>
  13060. <td>string</td>
  13061. <td>false</td>
  13062. <td>new URL of the integration</td>
  13063. </tr>
  13064. <tr>
  13065. <td>» token</td>
  13066. <td>body</td>
  13067. <td>string</td>
  13068. <td>false</td>
  13069. <td>new token of the integration</td>
  13070. </tr>
  13071. <tr>
  13072. <td>» activities</td>
  13073. <td>body</td>
  13074. <td>string</td>
  13075. <td>false</td>
  13076. <td>new list of activities of the integration</td>
  13077. </tr>
  13078. </tbody>
  13079. </table>
  13080. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  13081. <p><strong>board</strong>: the board ID</p>
  13082. <p><strong>int</strong>: the integration ID</p>
  13083. <blockquote>
  13084. <p>Example responses</p>
  13085. </blockquote>
  13086. <blockquote>
  13087. <p>200 Response</p>
  13088. </blockquote>
  13089. <pre class="highlight tab tab-json"><code>{
  13090. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13091. }
  13092. </code></pre>
  13093. <h3 id="edit_integration-responses">Responses</h3>
  13094. <table>
  13095. <thead>
  13096. <tr>
  13097. <th>Status</th>
  13098. <th>Meaning</th>
  13099. <th>Description</th>
  13100. <th>Schema</th>
  13101. </tr>
  13102. </thead>
  13103. <tbody>
  13104. <tr>
  13105. <td>200</td>
  13106. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13107. <td>200 response</td>
  13108. <td>Inline</td>
  13109. </tr>
  13110. </tbody>
  13111. </table>
  13112. <h3 id="edit_integration-responseschema">Response Schema</h3>
  13113. <p>Status Code <strong>200</strong></p>
  13114. <table>
  13115. <thead>
  13116. <tr>
  13117. <th>Name</th>
  13118. <th>Type</th>
  13119. <th>Required</th>
  13120. <th>Restrictions</th>
  13121. <th>Description</th>
  13122. </tr>
  13123. </thead>
  13124. <tbody>
  13125. <tr>
  13126. <td>» _id</td>
  13127. <td>string</td>
  13128. <td>false</td>
  13129. <td>none</td>
  13130. <td>none</td>
  13131. </tr>
  13132. </tbody>
  13133. </table>
  13134. <aside class="warning">
  13135. To perform this operation, you must be authenticated by means of one of the following methods:
  13136. UserSecurity
  13137. </aside>
  13138. <h2 id="delete_integration">delete_integration</h2>
  13139. <p><a id="opIddelete_integration"></a></p>
  13140. <blockquote>
  13141. <p>Code samples</p>
  13142. </blockquote>
  13143. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13144. curl -X DELETE /api/boards/{board}/integrations/{int} \
  13145. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13146. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13147. </code></pre>
  13148. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> <span class="hljs-meta">HTTP/1.1</span>
  13149. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13150. </span></code></pre>
  13151. <pre class="highlight tab tab-javascript"><code>
  13152. <span class="hljs-keyword">const</span> headers = {
  13153. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13154. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13155. };
  13156. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  13157. {
  13158. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13159. <span class="hljs-attr">headers</span>: headers
  13160. })
  13161. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13162. <span class="hljs-keyword">return</span> res.json();
  13163. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13164. <span class="hljs-built_in">console</span>.log(body);
  13165. });
  13166. </code></pre>
  13167. <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">&#x27;node-fetch&#x27;</span>);
  13168. <span class="hljs-keyword">const</span> headers = {
  13169. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13170. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13171. };
  13172. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  13173. {
  13174. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13175. <span class="hljs-attr">headers</span>: headers
  13176. })
  13177. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13178. <span class="hljs-keyword">return</span> res.json();
  13179. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13180. <span class="hljs-built_in">console</span>.log(body);
  13181. });
  13182. </code></pre>
  13183. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13184. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13185. headers = {
  13186. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13187. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13188. }
  13189. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  13190. <span class="hljs-symbol">params:</span> {
  13191. }, <span class="hljs-symbol">headers:</span> headers
  13192. p JSON.parse(result)
  13193. </code></pre>
  13194. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13195. headers = {
  13196. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13197. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13198. }
  13199. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  13200. <span class="hljs-built_in">print</span>(r.json())
  13201. </code></pre>
  13202. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>);
  13203. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13204. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13205. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13206. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13207. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13208. String inputLine;
  13209. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13210. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13211. response.append(inputLine);
  13212. }
  13213. in.close();
  13214. System.out.println(response.toString());
  13215. </code></pre>
  13216. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13217. <span class="hljs-keyword">import</span> (
  13218. <span class="hljs-string">&quot;bytes&quot;</span>
  13219. <span class="hljs-string">&quot;net/http&quot;</span>
  13220. )
  13221. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13222. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13223. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13224. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13225. }
  13226. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13227. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>, data)
  13228. req.Header = headers
  13229. client := &amp;http.Client{}
  13230. resp, err := client.Do(req)
  13231. <span class="hljs-comment">// ...</span>
  13232. }
  13233. </code></pre>
  13234. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13235. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13236. );
  13237. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13238. <span class="hljs-comment">// Define array of request body.</span>
  13239. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13240. <span class="hljs-keyword">try</span> {
  13241. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, <span class="hljs-keyword">array</span>(
  13242. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13243. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13244. )
  13245. );
  13246. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13247. }
  13248. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13249. <span class="hljs-comment">// handle exception or api errors.</span>
  13250. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13251. }
  13252. <span class="hljs-comment">// ...</span>
  13253. </code></pre>
  13254. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  13255. <p><em>Delete integration</em></p>
  13256. <h3 id="delete_integration-parameters">Parameters</h3>
  13257. <table>
  13258. <thead>
  13259. <tr>
  13260. <th>Name</th>
  13261. <th>In</th>
  13262. <th>Type</th>
  13263. <th>Required</th>
  13264. <th>Description</th>
  13265. </tr>
  13266. </thead>
  13267. <tbody>
  13268. <tr>
  13269. <td>board</td>
  13270. <td>path</td>
  13271. <td>string</td>
  13272. <td>true</td>
  13273. <td>the board ID</td>
  13274. </tr>
  13275. <tr>
  13276. <td>int</td>
  13277. <td>path</td>
  13278. <td>string</td>
  13279. <td>true</td>
  13280. <td>the integration ID</td>
  13281. </tr>
  13282. </tbody>
  13283. </table>
  13284. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13285. <p><strong>board</strong>: the board ID</p>
  13286. <p><strong>int</strong>: the integration ID</p>
  13287. <blockquote>
  13288. <p>Example responses</p>
  13289. </blockquote>
  13290. <blockquote>
  13291. <p>200 Response</p>
  13292. </blockquote>
  13293. <pre class="highlight tab tab-json"><code>{
  13294. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13295. }
  13296. </code></pre>
  13297. <h3 id="delete_integration-responses">Responses</h3>
  13298. <table>
  13299. <thead>
  13300. <tr>
  13301. <th>Status</th>
  13302. <th>Meaning</th>
  13303. <th>Description</th>
  13304. <th>Schema</th>
  13305. </tr>
  13306. </thead>
  13307. <tbody>
  13308. <tr>
  13309. <td>200</td>
  13310. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13311. <td>200 response</td>
  13312. <td>Inline</td>
  13313. </tr>
  13314. </tbody>
  13315. </table>
  13316. <h3 id="delete_integration-responseschema">Response Schema</h3>
  13317. <p>Status Code <strong>200</strong></p>
  13318. <table>
  13319. <thead>
  13320. <tr>
  13321. <th>Name</th>
  13322. <th>Type</th>
  13323. <th>Required</th>
  13324. <th>Restrictions</th>
  13325. <th>Description</th>
  13326. </tr>
  13327. </thead>
  13328. <tbody>
  13329. <tr>
  13330. <td>» _id</td>
  13331. <td>string</td>
  13332. <td>false</td>
  13333. <td>none</td>
  13334. <td>none</td>
  13335. </tr>
  13336. </tbody>
  13337. </table>
  13338. <aside class="warning">
  13339. To perform this operation, you must be authenticated by means of one of the following methods:
  13340. UserSecurity
  13341. </aside>
  13342. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  13343. <p><a id="opIddelete_integration_activities"></a></p>
  13344. <blockquote>
  13345. <p>Code samples</p>
  13346. </blockquote>
  13347. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13348. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  13349. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13350. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13351. </code></pre>
  13352. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> <span class="hljs-meta">HTTP/1.1</span>
  13353. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13354. </span></code></pre>
  13355. <pre class="highlight tab tab-javascript"><code>
  13356. <span class="hljs-keyword">const</span> headers = {
  13357. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13358. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13359. };
  13360. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13361. {
  13362. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13363. <span class="hljs-attr">headers</span>: headers
  13364. })
  13365. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13366. <span class="hljs-keyword">return</span> res.json();
  13367. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13368. <span class="hljs-built_in">console</span>.log(body);
  13369. });
  13370. </code></pre>
  13371. <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">&#x27;node-fetch&#x27;</span>);
  13372. <span class="hljs-keyword">const</span> headers = {
  13373. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13374. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13375. };
  13376. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13377. {
  13378. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13379. <span class="hljs-attr">headers</span>: headers
  13380. })
  13381. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13382. <span class="hljs-keyword">return</span> res.json();
  13383. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13384. <span class="hljs-built_in">console</span>.log(body);
  13385. });
  13386. </code></pre>
  13387. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13388. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13389. headers = {
  13390. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13391. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13392. }
  13393. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13394. <span class="hljs-symbol">params:</span> {
  13395. }, <span class="hljs-symbol">headers:</span> headers
  13396. p JSON.parse(result)
  13397. </code></pre>
  13398. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13399. headers = {
  13400. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13401. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13402. }
  13403. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  13404. <span class="hljs-built_in">print</span>(r.json())
  13405. </code></pre>
  13406. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>);
  13407. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13408. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13409. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13410. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13411. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13412. String inputLine;
  13413. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13414. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13415. response.append(inputLine);
  13416. }
  13417. in.close();
  13418. System.out.println(response.toString());
  13419. </code></pre>
  13420. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13421. <span class="hljs-keyword">import</span> (
  13422. <span class="hljs-string">&quot;bytes&quot;</span>
  13423. <span class="hljs-string">&quot;net/http&quot;</span>
  13424. )
  13425. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13426. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13427. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13428. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13429. }
  13430. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13431. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>, data)
  13432. req.Header = headers
  13433. client := &amp;http.Client{}
  13434. resp, err := client.Do(req)
  13435. <span class="hljs-comment">// ...</span>
  13436. }
  13437. </code></pre>
  13438. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13439. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13440. );
  13441. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13442. <span class="hljs-comment">// Define array of request body.</span>
  13443. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13444. <span class="hljs-keyword">try</span> {
  13445. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, <span class="hljs-keyword">array</span>(
  13446. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13447. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13448. )
  13449. );
  13450. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13451. }
  13452. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13453. <span class="hljs-comment">// handle exception or api errors.</span>
  13454. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13455. }
  13456. <span class="hljs-comment">// ...</span>
  13457. </code></pre>
  13458. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  13459. <p><em>Delete subscribed activities</em></p>
  13460. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  13461. <table>
  13462. <thead>
  13463. <tr>
  13464. <th>Name</th>
  13465. <th>In</th>
  13466. <th>Type</th>
  13467. <th>Required</th>
  13468. <th>Description</th>
  13469. </tr>
  13470. </thead>
  13471. <tbody>
  13472. <tr>
  13473. <td>board</td>
  13474. <td>path</td>
  13475. <td>string</td>
  13476. <td>true</td>
  13477. <td>the board ID</td>
  13478. </tr>
  13479. <tr>
  13480. <td>int</td>
  13481. <td>path</td>
  13482. <td>string</td>
  13483. <td>true</td>
  13484. <td>the integration ID</td>
  13485. </tr>
  13486. </tbody>
  13487. </table>
  13488. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13489. <p><strong>board</strong>: the board ID</p>
  13490. <p><strong>int</strong>: the integration ID</p>
  13491. <blockquote>
  13492. <p>Example responses</p>
  13493. </blockquote>
  13494. <blockquote>
  13495. <p>200 Response</p>
  13496. </blockquote>
  13497. <pre class="highlight tab tab-json"><code>{
  13498. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13499. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13500. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13501. <span class="hljs-attr">&quot;activities&quot;</span>: [
  13502. <span class="hljs-string">&quot;string&quot;</span>
  13503. ],
  13504. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13505. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13506. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13507. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13508. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13509. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13510. }
  13511. </code></pre>
  13512. <h3 id="delete_integration_activities-responses">Responses</h3>
  13513. <table>
  13514. <thead>
  13515. <tr>
  13516. <th>Status</th>
  13517. <th>Meaning</th>
  13518. <th>Description</th>
  13519. <th>Schema</th>
  13520. </tr>
  13521. </thead>
  13522. <tbody>
  13523. <tr>
  13524. <td>200</td>
  13525. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13526. <td>200 response</td>
  13527. <td><a href="#schemaintegrations">Integrations</a></td>
  13528. </tr>
  13529. </tbody>
  13530. </table>
  13531. <aside class="warning">
  13532. To perform this operation, you must be authenticated by means of one of the following methods:
  13533. UserSecurity
  13534. </aside>
  13535. <h2 id="new_integration_activities">new_integration_activities</h2>
  13536. <p><a id="opIdnew_integration_activities"></a></p>
  13537. <blockquote>
  13538. <p>Code samples</p>
  13539. </blockquote>
  13540. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13541. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  13542. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13543. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13544. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13545. </code></pre>
  13546. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> <span class="hljs-meta">HTTP/1.1</span>
  13547. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13548. Accept: application/json
  13549. </span></code></pre>
  13550. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13551. &quot;activities&quot;: &quot;string&quot;
  13552. }&#x27;</span>;
  13553. <span class="hljs-keyword">const</span> headers = {
  13554. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13555. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13556. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13557. };
  13558. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13559. {
  13560. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13561. <span class="hljs-attr">body</span>: inputBody,
  13562. <span class="hljs-attr">headers</span>: headers
  13563. })
  13564. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13565. <span class="hljs-keyword">return</span> res.json();
  13566. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13567. <span class="hljs-built_in">console</span>.log(body);
  13568. });
  13569. </code></pre>
  13570. <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">&#x27;node-fetch&#x27;</span>);
  13571. <span class="hljs-keyword">const</span> inputBody = {
  13572. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13573. };
  13574. <span class="hljs-keyword">const</span> headers = {
  13575. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13576. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13577. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13578. };
  13579. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13580. {
  13581. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13582. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13583. <span class="hljs-attr">headers</span>: headers
  13584. })
  13585. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13586. <span class="hljs-keyword">return</span> res.json();
  13587. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13588. <span class="hljs-built_in">console</span>.log(body);
  13589. });
  13590. </code></pre>
  13591. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13592. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13593. headers = {
  13594. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13595. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13596. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13597. }
  13598. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13599. <span class="hljs-symbol">params:</span> {
  13600. }, <span class="hljs-symbol">headers:</span> headers
  13601. p JSON.parse(result)
  13602. </code></pre>
  13603. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13604. headers = {
  13605. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13606. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13607. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13608. }
  13609. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  13610. <span class="hljs-built_in">print</span>(r.json())
  13611. </code></pre>
  13612. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>);
  13613. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13614. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13615. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13616. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13617. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13618. String inputLine;
  13619. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13620. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13621. response.append(inputLine);
  13622. }
  13623. in.close();
  13624. System.out.println(response.toString());
  13625. </code></pre>
  13626. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13627. <span class="hljs-keyword">import</span> (
  13628. <span class="hljs-string">&quot;bytes&quot;</span>
  13629. <span class="hljs-string">&quot;net/http&quot;</span>
  13630. )
  13631. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13632. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13633. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  13634. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13635. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13636. }
  13637. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13638. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>, data)
  13639. req.Header = headers
  13640. client := &amp;http.Client{}
  13641. resp, err := client.Do(req)
  13642. <span class="hljs-comment">// ...</span>
  13643. }
  13644. </code></pre>
  13645. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13646. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13647. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13648. );
  13649. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13650. <span class="hljs-comment">// Define array of request body.</span>
  13651. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13652. <span class="hljs-keyword">try</span> {
  13653. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, <span class="hljs-keyword">array</span>(
  13654. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13655. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13656. )
  13657. );
  13658. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13659. }
  13660. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13661. <span class="hljs-comment">// handle exception or api errors.</span>
  13662. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13663. }
  13664. <span class="hljs-comment">// ...</span>
  13665. </code></pre>
  13666. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  13667. <p><em>Add subscribed activities</em></p>
  13668. <blockquote>
  13669. <p>Body parameter</p>
  13670. </blockquote>
  13671. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  13672. </code></pre>
  13673. <h3 id="new_integration_activities-parameters">Parameters</h3>
  13674. <table>
  13675. <thead>
  13676. <tr>
  13677. <th>Name</th>
  13678. <th>In</th>
  13679. <th>Type</th>
  13680. <th>Required</th>
  13681. <th>Description</th>
  13682. </tr>
  13683. </thead>
  13684. <tbody>
  13685. <tr>
  13686. <td>board</td>
  13687. <td>path</td>
  13688. <td>string</td>
  13689. <td>true</td>
  13690. <td>the board ID</td>
  13691. </tr>
  13692. <tr>
  13693. <td>int</td>
  13694. <td>path</td>
  13695. <td>string</td>
  13696. <td>true</td>
  13697. <td>the integration ID</td>
  13698. </tr>
  13699. <tr>
  13700. <td>body</td>
  13701. <td>body</td>
  13702. <td>object</td>
  13703. <td>true</td>
  13704. <td>none</td>
  13705. </tr>
  13706. <tr>
  13707. <td>» activities</td>
  13708. <td>body</td>
  13709. <td>string</td>
  13710. <td>true</td>
  13711. <td>the activities value</td>
  13712. </tr>
  13713. </tbody>
  13714. </table>
  13715. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13716. <p><strong>board</strong>: the board ID</p>
  13717. <p><strong>int</strong>: the integration ID</p>
  13718. <blockquote>
  13719. <p>Example responses</p>
  13720. </blockquote>
  13721. <blockquote>
  13722. <p>200 Response</p>
  13723. </blockquote>
  13724. <pre class="highlight tab tab-json"><code>{
  13725. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13726. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13727. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13728. <span class="hljs-attr">&quot;activities&quot;</span>: [
  13729. <span class="hljs-string">&quot;string&quot;</span>
  13730. ],
  13731. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13732. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13733. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13734. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13735. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13736. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13737. }
  13738. </code></pre>
  13739. <h3 id="new_integration_activities-responses">Responses</h3>
  13740. <table>
  13741. <thead>
  13742. <tr>
  13743. <th>Status</th>
  13744. <th>Meaning</th>
  13745. <th>Description</th>
  13746. <th>Schema</th>
  13747. </tr>
  13748. </thead>
  13749. <tbody>
  13750. <tr>
  13751. <td>200</td>
  13752. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13753. <td>200 response</td>
  13754. <td><a href="#schemaintegrations">Integrations</a></td>
  13755. </tr>
  13756. </tbody>
  13757. </table>
  13758. <aside class="warning">
  13759. To perform this operation, you must be authenticated by means of one of the following methods:
  13760. UserSecurity
  13761. </aside>
  13762. <h1 id="wekan-rest-api-lists">Lists</h1>
  13763. <h2 id="get_all_lists">get_all_lists</h2>
  13764. <p><a id="opIdget_all_lists"></a></p>
  13765. <blockquote>
  13766. <p>Code samples</p>
  13767. </blockquote>
  13768. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13769. curl -X GET /api/boards/{board}/lists \
  13770. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13771. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13772. </code></pre>
  13773. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists</span> <span class="hljs-meta">HTTP/1.1</span>
  13774. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13775. </span></code></pre>
  13776. <pre class="highlight tab tab-javascript"><code>
  13777. <span class="hljs-keyword">const</span> headers = {
  13778. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13779. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13780. };
  13781. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13782. {
  13783. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13784. <span class="hljs-attr">headers</span>: headers
  13785. })
  13786. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13787. <span class="hljs-keyword">return</span> res.json();
  13788. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13789. <span class="hljs-built_in">console</span>.log(body);
  13790. });
  13791. </code></pre>
  13792. <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">&#x27;node-fetch&#x27;</span>);
  13793. <span class="hljs-keyword">const</span> headers = {
  13794. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13795. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13796. };
  13797. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13798. {
  13799. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13800. <span class="hljs-attr">headers</span>: headers
  13801. })
  13802. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13803. <span class="hljs-keyword">return</span> res.json();
  13804. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13805. <span class="hljs-built_in">console</span>.log(body);
  13806. });
  13807. </code></pre>
  13808. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13809. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13810. headers = {
  13811. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13812. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13813. }
  13814. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13815. <span class="hljs-symbol">params:</span> {
  13816. }, <span class="hljs-symbol">headers:</span> headers
  13817. p JSON.parse(result)
  13818. </code></pre>
  13819. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13820. headers = {
  13821. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13822. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13823. }
  13824. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  13825. <span class="hljs-built_in">print</span>(r.json())
  13826. </code></pre>
  13827. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>);
  13828. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13829. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  13830. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13831. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13832. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13833. String inputLine;
  13834. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13835. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13836. response.append(inputLine);
  13837. }
  13838. in.close();
  13839. System.out.println(response.toString());
  13840. </code></pre>
  13841. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13842. <span class="hljs-keyword">import</span> (
  13843. <span class="hljs-string">&quot;bytes&quot;</span>
  13844. <span class="hljs-string">&quot;net/http&quot;</span>
  13845. )
  13846. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13847. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13848. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13849. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13850. }
  13851. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13852. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  13853. req.Header = headers
  13854. client := &amp;http.Client{}
  13855. resp, err := client.Do(req)
  13856. <span class="hljs-comment">// ...</span>
  13857. }
  13858. </code></pre>
  13859. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13860. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13861. );
  13862. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13863. <span class="hljs-comment">// Define array of request body.</span>
  13864. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13865. <span class="hljs-keyword">try</span> {
  13866. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, <span class="hljs-keyword">array</span>(
  13867. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13868. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13869. )
  13870. );
  13871. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13872. }
  13873. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13874. <span class="hljs-comment">// handle exception or api errors.</span>
  13875. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13876. }
  13877. <span class="hljs-comment">// ...</span>
  13878. </code></pre>
  13879. <p><code>GET /api/boards/{board}/lists</code></p>
  13880. <p><em>Get the list of Lists attached to a board</em></p>
  13881. <h3 id="get_all_lists-parameters">Parameters</h3>
  13882. <table>
  13883. <thead>
  13884. <tr>
  13885. <th>Name</th>
  13886. <th>In</th>
  13887. <th>Type</th>
  13888. <th>Required</th>
  13889. <th>Description</th>
  13890. </tr>
  13891. </thead>
  13892. <tbody>
  13893. <tr>
  13894. <td>board</td>
  13895. <td>path</td>
  13896. <td>string</td>
  13897. <td>true</td>
  13898. <td>the board ID</td>
  13899. </tr>
  13900. </tbody>
  13901. </table>
  13902. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13903. <p><strong>board</strong>: the board ID</p>
  13904. <blockquote>
  13905. <p>Example responses</p>
  13906. </blockquote>
  13907. <blockquote>
  13908. <p>200 Response</p>
  13909. </blockquote>
  13910. <pre class="highlight tab tab-json"><code>[
  13911. {
  13912. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13913. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13914. }
  13915. ]
  13916. </code></pre>
  13917. <h3 id="get_all_lists-responses">Responses</h3>
  13918. <table>
  13919. <thead>
  13920. <tr>
  13921. <th>Status</th>
  13922. <th>Meaning</th>
  13923. <th>Description</th>
  13924. <th>Schema</th>
  13925. </tr>
  13926. </thead>
  13927. <tbody>
  13928. <tr>
  13929. <td>200</td>
  13930. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13931. <td>200 response</td>
  13932. <td>Inline</td>
  13933. </tr>
  13934. </tbody>
  13935. </table>
  13936. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  13937. <p>Status Code <strong>200</strong></p>
  13938. <table>
  13939. <thead>
  13940. <tr>
  13941. <th>Name</th>
  13942. <th>Type</th>
  13943. <th>Required</th>
  13944. <th>Restrictions</th>
  13945. <th>Description</th>
  13946. </tr>
  13947. </thead>
  13948. <tbody>
  13949. <tr>
  13950. <td>» _id</td>
  13951. <td>string</td>
  13952. <td>false</td>
  13953. <td>none</td>
  13954. <td>none</td>
  13955. </tr>
  13956. <tr>
  13957. <td>» title</td>
  13958. <td>string</td>
  13959. <td>false</td>
  13960. <td>none</td>
  13961. <td>none</td>
  13962. </tr>
  13963. </tbody>
  13964. </table>
  13965. <aside class="warning">
  13966. To perform this operation, you must be authenticated by means of one of the following methods:
  13967. UserSecurity
  13968. </aside>
  13969. <h2 id="new_list">new_list</h2>
  13970. <p><a id="opIdnew_list"></a></p>
  13971. <blockquote>
  13972. <p>Code samples</p>
  13973. </blockquote>
  13974. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13975. curl -X POST /api/boards/{board}/lists \
  13976. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13977. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13978. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13979. </code></pre>
  13980. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists</span> <span class="hljs-meta">HTTP/1.1</span>
  13981. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13982. Accept: application/json
  13983. </span></code></pre>
  13984. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13985. &quot;title&quot;: &quot;string&quot;
  13986. }&#x27;</span>;
  13987. <span class="hljs-keyword">const</span> headers = {
  13988. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13989. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13990. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13991. };
  13992. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13993. {
  13994. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13995. <span class="hljs-attr">body</span>: inputBody,
  13996. <span class="hljs-attr">headers</span>: headers
  13997. })
  13998. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13999. <span class="hljs-keyword">return</span> res.json();
  14000. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14001. <span class="hljs-built_in">console</span>.log(body);
  14002. });
  14003. </code></pre>
  14004. <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">&#x27;node-fetch&#x27;</span>);
  14005. <span class="hljs-keyword">const</span> inputBody = {
  14006. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14007. };
  14008. <span class="hljs-keyword">const</span> headers = {
  14009. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14010. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14011. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14012. };
  14013. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  14014. {
  14015. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14016. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14017. <span class="hljs-attr">headers</span>: headers
  14018. })
  14019. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14020. <span class="hljs-keyword">return</span> res.json();
  14021. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14022. <span class="hljs-built_in">console</span>.log(body);
  14023. });
  14024. </code></pre>
  14025. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14026. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14027. headers = {
  14028. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14029. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14030. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14031. }
  14032. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  14033. <span class="hljs-symbol">params:</span> {
  14034. }, <span class="hljs-symbol">headers:</span> headers
  14035. p JSON.parse(result)
  14036. </code></pre>
  14037. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14038. headers = {
  14039. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14040. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14041. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14042. }
  14043. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  14044. <span class="hljs-built_in">print</span>(r.json())
  14045. </code></pre>
  14046. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>);
  14047. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14048. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14049. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14050. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14051. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14052. String inputLine;
  14053. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14054. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14055. response.append(inputLine);
  14056. }
  14057. in.close();
  14058. System.out.println(response.toString());
  14059. </code></pre>
  14060. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14061. <span class="hljs-keyword">import</span> (
  14062. <span class="hljs-string">&quot;bytes&quot;</span>
  14063. <span class="hljs-string">&quot;net/http&quot;</span>
  14064. )
  14065. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14066. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14067. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  14068. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14069. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14070. }
  14071. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14072. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  14073. req.Header = headers
  14074. client := &amp;http.Client{}
  14075. resp, err := client.Do(req)
  14076. <span class="hljs-comment">// ...</span>
  14077. }
  14078. </code></pre>
  14079. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14080. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14081. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14082. );
  14083. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14084. <span class="hljs-comment">// Define array of request body.</span>
  14085. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14086. <span class="hljs-keyword">try</span> {
  14087. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, <span class="hljs-keyword">array</span>(
  14088. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14089. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14090. )
  14091. );
  14092. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14093. }
  14094. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14095. <span class="hljs-comment">// handle exception or api errors.</span>
  14096. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14097. }
  14098. <span class="hljs-comment">// ...</span>
  14099. </code></pre>
  14100. <p><code>POST /api/boards/{board}/lists</code></p>
  14101. <p><em>Add a List to a board</em></p>
  14102. <blockquote>
  14103. <p>Body parameter</p>
  14104. </blockquote>
  14105. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  14106. </code></pre>
  14107. <h3 id="new_list-parameters">Parameters</h3>
  14108. <table>
  14109. <thead>
  14110. <tr>
  14111. <th>Name</th>
  14112. <th>In</th>
  14113. <th>Type</th>
  14114. <th>Required</th>
  14115. <th>Description</th>
  14116. </tr>
  14117. </thead>
  14118. <tbody>
  14119. <tr>
  14120. <td>board</td>
  14121. <td>path</td>
  14122. <td>string</td>
  14123. <td>true</td>
  14124. <td>the board ID</td>
  14125. </tr>
  14126. <tr>
  14127. <td>body</td>
  14128. <td>body</td>
  14129. <td>object</td>
  14130. <td>true</td>
  14131. <td>none</td>
  14132. </tr>
  14133. <tr>
  14134. <td>» title</td>
  14135. <td>body</td>
  14136. <td>string</td>
  14137. <td>true</td>
  14138. <td>the title of the List</td>
  14139. </tr>
  14140. </tbody>
  14141. </table>
  14142. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14143. <p><strong>board</strong>: the board ID</p>
  14144. <blockquote>
  14145. <p>Example responses</p>
  14146. </blockquote>
  14147. <blockquote>
  14148. <p>200 Response</p>
  14149. </blockquote>
  14150. <pre class="highlight tab tab-json"><code>{
  14151. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14152. }
  14153. </code></pre>
  14154. <h3 id="new_list-responses">Responses</h3>
  14155. <table>
  14156. <thead>
  14157. <tr>
  14158. <th>Status</th>
  14159. <th>Meaning</th>
  14160. <th>Description</th>
  14161. <th>Schema</th>
  14162. </tr>
  14163. </thead>
  14164. <tbody>
  14165. <tr>
  14166. <td>200</td>
  14167. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14168. <td>200 response</td>
  14169. <td>Inline</td>
  14170. </tr>
  14171. </tbody>
  14172. </table>
  14173. <h3 id="new_list-responseschema">Response Schema</h3>
  14174. <p>Status Code <strong>200</strong></p>
  14175. <table>
  14176. <thead>
  14177. <tr>
  14178. <th>Name</th>
  14179. <th>Type</th>
  14180. <th>Required</th>
  14181. <th>Restrictions</th>
  14182. <th>Description</th>
  14183. </tr>
  14184. </thead>
  14185. <tbody>
  14186. <tr>
  14187. <td>» _id</td>
  14188. <td>string</td>
  14189. <td>false</td>
  14190. <td>none</td>
  14191. <td>none</td>
  14192. </tr>
  14193. </tbody>
  14194. </table>
  14195. <aside class="warning">
  14196. To perform this operation, you must be authenticated by means of one of the following methods:
  14197. UserSecurity
  14198. </aside>
  14199. <h2 id="get_list">get_list</h2>
  14200. <p><a id="opIdget_list"></a></p>
  14201. <blockquote>
  14202. <p>Code samples</p>
  14203. </blockquote>
  14204. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14205. curl -X GET /api/boards/{board}/lists/{list} \
  14206. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14207. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14208. </code></pre>
  14209. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> <span class="hljs-meta">HTTP/1.1</span>
  14210. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14211. </span></code></pre>
  14212. <pre class="highlight tab tab-javascript"><code>
  14213. <span class="hljs-keyword">const</span> headers = {
  14214. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14215. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14216. };
  14217. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14218. {
  14219. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14220. <span class="hljs-attr">headers</span>: headers
  14221. })
  14222. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14223. <span class="hljs-keyword">return</span> res.json();
  14224. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14225. <span class="hljs-built_in">console</span>.log(body);
  14226. });
  14227. </code></pre>
  14228. <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">&#x27;node-fetch&#x27;</span>);
  14229. <span class="hljs-keyword">const</span> headers = {
  14230. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14231. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14232. };
  14233. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14234. {
  14235. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14236. <span class="hljs-attr">headers</span>: headers
  14237. })
  14238. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14239. <span class="hljs-keyword">return</span> res.json();
  14240. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14241. <span class="hljs-built_in">console</span>.log(body);
  14242. });
  14243. </code></pre>
  14244. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14245. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14246. headers = {
  14247. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14248. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14249. }
  14250. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14251. <span class="hljs-symbol">params:</span> {
  14252. }, <span class="hljs-symbol">headers:</span> headers
  14253. p JSON.parse(result)
  14254. </code></pre>
  14255. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14256. headers = {
  14257. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14258. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14259. }
  14260. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  14261. <span class="hljs-built_in">print</span>(r.json())
  14262. </code></pre>
  14263. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>);
  14264. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14265. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14266. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14267. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14268. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14269. String inputLine;
  14270. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14271. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14272. response.append(inputLine);
  14273. }
  14274. in.close();
  14275. System.out.println(response.toString());
  14276. </code></pre>
  14277. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14278. <span class="hljs-keyword">import</span> (
  14279. <span class="hljs-string">&quot;bytes&quot;</span>
  14280. <span class="hljs-string">&quot;net/http&quot;</span>
  14281. )
  14282. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14283. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14284. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14285. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14286. }
  14287. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14288. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>, data)
  14289. req.Header = headers
  14290. client := &amp;http.Client{}
  14291. resp, err := client.Do(req)
  14292. <span class="hljs-comment">// ...</span>
  14293. }
  14294. </code></pre>
  14295. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14296. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14297. );
  14298. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14299. <span class="hljs-comment">// Define array of request body.</span>
  14300. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14301. <span class="hljs-keyword">try</span> {
  14302. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, <span class="hljs-keyword">array</span>(
  14303. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14304. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14305. )
  14306. );
  14307. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14308. }
  14309. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14310. <span class="hljs-comment">// handle exception or api errors.</span>
  14311. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14312. }
  14313. <span class="hljs-comment">// ...</span>
  14314. </code></pre>
  14315. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  14316. <p><em>Get a List attached to a board</em></p>
  14317. <h3 id="get_list-parameters">Parameters</h3>
  14318. <table>
  14319. <thead>
  14320. <tr>
  14321. <th>Name</th>
  14322. <th>In</th>
  14323. <th>Type</th>
  14324. <th>Required</th>
  14325. <th>Description</th>
  14326. </tr>
  14327. </thead>
  14328. <tbody>
  14329. <tr>
  14330. <td>board</td>
  14331. <td>path</td>
  14332. <td>string</td>
  14333. <td>true</td>
  14334. <td>the board ID</td>
  14335. </tr>
  14336. <tr>
  14337. <td>list</td>
  14338. <td>path</td>
  14339. <td>string</td>
  14340. <td>true</td>
  14341. <td>the List ID</td>
  14342. </tr>
  14343. </tbody>
  14344. </table>
  14345. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  14346. <p><strong>board</strong>: the board ID</p>
  14347. <p><strong>list</strong>: the List ID</p>
  14348. <blockquote>
  14349. <p>Example responses</p>
  14350. </blockquote>
  14351. <blockquote>
  14352. <p>200 Response</p>
  14353. </blockquote>
  14354. <pre class="highlight tab tab-json"><code>{
  14355. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14356. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  14357. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  14358. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14359. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14360. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14361. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14362. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  14363. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14364. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14365. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  14366. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  14367. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  14368. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  14369. },
  14370. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  14371. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14372. <span class="hljs-attr">&quot;collapsed&quot;</span>: <span class="hljs-literal">true</span>
  14373. }
  14374. </code></pre>
  14375. <h3 id="get_list-responses">Responses</h3>
  14376. <table>
  14377. <thead>
  14378. <tr>
  14379. <th>Status</th>
  14380. <th>Meaning</th>
  14381. <th>Description</th>
  14382. <th>Schema</th>
  14383. </tr>
  14384. </thead>
  14385. <tbody>
  14386. <tr>
  14387. <td>200</td>
  14388. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14389. <td>200 response</td>
  14390. <td><a href="#schemalists">Lists</a></td>
  14391. </tr>
  14392. </tbody>
  14393. </table>
  14394. <aside class="warning">
  14395. To perform this operation, you must be authenticated by means of one of the following methods:
  14396. UserSecurity
  14397. </aside>
  14398. <h2 id="delete_list">delete_list</h2>
  14399. <p><a id="opIddelete_list"></a></p>
  14400. <blockquote>
  14401. <p>Code samples</p>
  14402. </blockquote>
  14403. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14404. curl -X DELETE /api/boards/{board}/lists/{list} \
  14405. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14406. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14407. </code></pre>
  14408. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> <span class="hljs-meta">HTTP/1.1</span>
  14409. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14410. </span></code></pre>
  14411. <pre class="highlight tab tab-javascript"><code>
  14412. <span class="hljs-keyword">const</span> headers = {
  14413. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14414. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14415. };
  14416. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14417. {
  14418. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  14419. <span class="hljs-attr">headers</span>: headers
  14420. })
  14421. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14422. <span class="hljs-keyword">return</span> res.json();
  14423. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14424. <span class="hljs-built_in">console</span>.log(body);
  14425. });
  14426. </code></pre>
  14427. <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">&#x27;node-fetch&#x27;</span>);
  14428. <span class="hljs-keyword">const</span> headers = {
  14429. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14430. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14431. };
  14432. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14433. {
  14434. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  14435. <span class="hljs-attr">headers</span>: headers
  14436. })
  14437. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14438. <span class="hljs-keyword">return</span> res.json();
  14439. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14440. <span class="hljs-built_in">console</span>.log(body);
  14441. });
  14442. </code></pre>
  14443. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14444. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14445. headers = {
  14446. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14447. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14448. }
  14449. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14450. <span class="hljs-symbol">params:</span> {
  14451. }, <span class="hljs-symbol">headers:</span> headers
  14452. p JSON.parse(result)
  14453. </code></pre>
  14454. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14455. headers = {
  14456. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14457. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14458. }
  14459. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  14460. <span class="hljs-built_in">print</span>(r.json())
  14461. </code></pre>
  14462. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>);
  14463. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14464. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  14465. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14466. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14467. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14468. String inputLine;
  14469. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14470. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14471. response.append(inputLine);
  14472. }
  14473. in.close();
  14474. System.out.println(response.toString());
  14475. </code></pre>
  14476. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14477. <span class="hljs-keyword">import</span> (
  14478. <span class="hljs-string">&quot;bytes&quot;</span>
  14479. <span class="hljs-string">&quot;net/http&quot;</span>
  14480. )
  14481. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14482. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14483. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14484. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14485. }
  14486. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14487. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>, data)
  14488. req.Header = headers
  14489. client := &amp;http.Client{}
  14490. resp, err := client.Do(req)
  14491. <span class="hljs-comment">// ...</span>
  14492. }
  14493. </code></pre>
  14494. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14495. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14496. );
  14497. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14498. <span class="hljs-comment">// Define array of request body.</span>
  14499. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14500. <span class="hljs-keyword">try</span> {
  14501. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, <span class="hljs-keyword">array</span>(
  14502. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14503. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14504. )
  14505. );
  14506. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14507. }
  14508. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14509. <span class="hljs-comment">// handle exception or api errors.</span>
  14510. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14511. }
  14512. <span class="hljs-comment">// ...</span>
  14513. </code></pre>
  14514. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  14515. <p><em>Delete a List</em></p>
  14516. <p>This <strong>deletes</strong> a list from a board.
  14517. The list is not put in the recycle bin.</p>
  14518. <h3 id="delete_list-parameters">Parameters</h3>
  14519. <table>
  14520. <thead>
  14521. <tr>
  14522. <th>Name</th>
  14523. <th>In</th>
  14524. <th>Type</th>
  14525. <th>Required</th>
  14526. <th>Description</th>
  14527. </tr>
  14528. </thead>
  14529. <tbody>
  14530. <tr>
  14531. <td>board</td>
  14532. <td>path</td>
  14533. <td>string</td>
  14534. <td>true</td>
  14535. <td>the board ID</td>
  14536. </tr>
  14537. <tr>
  14538. <td>list</td>
  14539. <td>path</td>
  14540. <td>string</td>
  14541. <td>true</td>
  14542. <td>the ID of the list to remove</td>
  14543. </tr>
  14544. </tbody>
  14545. </table>
  14546. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  14547. <p><strong>board</strong>: the board ID</p>
  14548. <p><strong>list</strong>: the ID of the list to remove</p>
  14549. <blockquote>
  14550. <p>Example responses</p>
  14551. </blockquote>
  14552. <blockquote>
  14553. <p>200 Response</p>
  14554. </blockquote>
  14555. <pre class="highlight tab tab-json"><code>{
  14556. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14557. }
  14558. </code></pre>
  14559. <h3 id="delete_list-responses">Responses</h3>
  14560. <table>
  14561. <thead>
  14562. <tr>
  14563. <th>Status</th>
  14564. <th>Meaning</th>
  14565. <th>Description</th>
  14566. <th>Schema</th>
  14567. </tr>
  14568. </thead>
  14569. <tbody>
  14570. <tr>
  14571. <td>200</td>
  14572. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14573. <td>200 response</td>
  14574. <td>Inline</td>
  14575. </tr>
  14576. </tbody>
  14577. </table>
  14578. <h3 id="delete_list-responseschema">Response Schema</h3>
  14579. <p>Status Code <strong>200</strong></p>
  14580. <table>
  14581. <thead>
  14582. <tr>
  14583. <th>Name</th>
  14584. <th>Type</th>
  14585. <th>Required</th>
  14586. <th>Restrictions</th>
  14587. <th>Description</th>
  14588. </tr>
  14589. </thead>
  14590. <tbody>
  14591. <tr>
  14592. <td>» _id</td>
  14593. <td>string</td>
  14594. <td>false</td>
  14595. <td>none</td>
  14596. <td>none</td>
  14597. </tr>
  14598. </tbody>
  14599. </table>
  14600. <aside class="warning">
  14601. To perform this operation, you must be authenticated by means of one of the following methods:
  14602. UserSecurity
  14603. </aside>
  14604. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  14605. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  14606. <p><a id="opIdget_all_swimlanes"></a></p>
  14607. <blockquote>
  14608. <p>Code samples</p>
  14609. </blockquote>
  14610. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14611. curl -X GET /api/boards/{board}/swimlanes \
  14612. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14613. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14614. </code></pre>
  14615. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> <span class="hljs-meta">HTTP/1.1</span>
  14616. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14617. </span></code></pre>
  14618. <pre class="highlight tab tab-javascript"><code>
  14619. <span class="hljs-keyword">const</span> headers = {
  14620. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14621. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14622. };
  14623. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14624. {
  14625. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14626. <span class="hljs-attr">headers</span>: headers
  14627. })
  14628. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14629. <span class="hljs-keyword">return</span> res.json();
  14630. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14631. <span class="hljs-built_in">console</span>.log(body);
  14632. });
  14633. </code></pre>
  14634. <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">&#x27;node-fetch&#x27;</span>);
  14635. <span class="hljs-keyword">const</span> headers = {
  14636. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14637. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14638. };
  14639. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14640. {
  14641. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14642. <span class="hljs-attr">headers</span>: headers
  14643. })
  14644. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14645. <span class="hljs-keyword">return</span> res.json();
  14646. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14647. <span class="hljs-built_in">console</span>.log(body);
  14648. });
  14649. </code></pre>
  14650. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14651. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14652. headers = {
  14653. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14654. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14655. }
  14656. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14657. <span class="hljs-symbol">params:</span> {
  14658. }, <span class="hljs-symbol">headers:</span> headers
  14659. p JSON.parse(result)
  14660. </code></pre>
  14661. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14662. headers = {
  14663. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14664. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14665. }
  14666. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  14667. <span class="hljs-built_in">print</span>(r.json())
  14668. </code></pre>
  14669. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>);
  14670. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14671. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14672. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14673. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14674. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14675. String inputLine;
  14676. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14677. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14678. response.append(inputLine);
  14679. }
  14680. in.close();
  14681. System.out.println(response.toString());
  14682. </code></pre>
  14683. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14684. <span class="hljs-keyword">import</span> (
  14685. <span class="hljs-string">&quot;bytes&quot;</span>
  14686. <span class="hljs-string">&quot;net/http&quot;</span>
  14687. )
  14688. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14689. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14690. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14691. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14692. }
  14693. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14694. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  14695. req.Header = headers
  14696. client := &amp;http.Client{}
  14697. resp, err := client.Do(req)
  14698. <span class="hljs-comment">// ...</span>
  14699. }
  14700. </code></pre>
  14701. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14702. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14703. );
  14704. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14705. <span class="hljs-comment">// Define array of request body.</span>
  14706. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14707. <span class="hljs-keyword">try</span> {
  14708. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, <span class="hljs-keyword">array</span>(
  14709. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14710. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14711. )
  14712. );
  14713. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14714. }
  14715. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14716. <span class="hljs-comment">// handle exception or api errors.</span>
  14717. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14718. }
  14719. <span class="hljs-comment">// ...</span>
  14720. </code></pre>
  14721. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  14722. <p><em>Get the list of swimlanes attached to a board</em></p>
  14723. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  14724. <table>
  14725. <thead>
  14726. <tr>
  14727. <th>Name</th>
  14728. <th>In</th>
  14729. <th>Type</th>
  14730. <th>Required</th>
  14731. <th>Description</th>
  14732. </tr>
  14733. </thead>
  14734. <tbody>
  14735. <tr>
  14736. <td>board</td>
  14737. <td>path</td>
  14738. <td>string</td>
  14739. <td>true</td>
  14740. <td>the ID of the board</td>
  14741. </tr>
  14742. </tbody>
  14743. </table>
  14744. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  14745. <p><strong>board</strong>: the ID of the board</p>
  14746. <blockquote>
  14747. <p>Example responses</p>
  14748. </blockquote>
  14749. <blockquote>
  14750. <p>200 Response</p>
  14751. </blockquote>
  14752. <pre class="highlight tab tab-json"><code>[
  14753. {
  14754. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14755. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14756. }
  14757. ]
  14758. </code></pre>
  14759. <h3 id="get_all_swimlanes-responses">Responses</h3>
  14760. <table>
  14761. <thead>
  14762. <tr>
  14763. <th>Status</th>
  14764. <th>Meaning</th>
  14765. <th>Description</th>
  14766. <th>Schema</th>
  14767. </tr>
  14768. </thead>
  14769. <tbody>
  14770. <tr>
  14771. <td>200</td>
  14772. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14773. <td>200 response</td>
  14774. <td>Inline</td>
  14775. </tr>
  14776. </tbody>
  14777. </table>
  14778. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  14779. <p>Status Code <strong>200</strong></p>
  14780. <table>
  14781. <thead>
  14782. <tr>
  14783. <th>Name</th>
  14784. <th>Type</th>
  14785. <th>Required</th>
  14786. <th>Restrictions</th>
  14787. <th>Description</th>
  14788. </tr>
  14789. </thead>
  14790. <tbody>
  14791. <tr>
  14792. <td>» _id</td>
  14793. <td>string</td>
  14794. <td>false</td>
  14795. <td>none</td>
  14796. <td>none</td>
  14797. </tr>
  14798. <tr>
  14799. <td>» title</td>
  14800. <td>string</td>
  14801. <td>false</td>
  14802. <td>none</td>
  14803. <td>none</td>
  14804. </tr>
  14805. </tbody>
  14806. </table>
  14807. <aside class="warning">
  14808. To perform this operation, you must be authenticated by means of one of the following methods:
  14809. UserSecurity
  14810. </aside>
  14811. <h2 id="new_swimlane">new_swimlane</h2>
  14812. <p><a id="opIdnew_swimlane"></a></p>
  14813. <blockquote>
  14814. <p>Code samples</p>
  14815. </blockquote>
  14816. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14817. curl -X POST /api/boards/{board}/swimlanes \
  14818. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14819. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14820. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14821. </code></pre>
  14822. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> <span class="hljs-meta">HTTP/1.1</span>
  14823. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14824. Accept: application/json
  14825. </span></code></pre>
  14826. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14827. &quot;title&quot;: &quot;string&quot;
  14828. }&#x27;</span>;
  14829. <span class="hljs-keyword">const</span> headers = {
  14830. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14831. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14832. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14833. };
  14834. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14835. {
  14836. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14837. <span class="hljs-attr">body</span>: inputBody,
  14838. <span class="hljs-attr">headers</span>: headers
  14839. })
  14840. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14841. <span class="hljs-keyword">return</span> res.json();
  14842. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14843. <span class="hljs-built_in">console</span>.log(body);
  14844. });
  14845. </code></pre>
  14846. <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">&#x27;node-fetch&#x27;</span>);
  14847. <span class="hljs-keyword">const</span> inputBody = {
  14848. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14849. };
  14850. <span class="hljs-keyword">const</span> headers = {
  14851. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14852. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14853. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14854. };
  14855. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14856. {
  14857. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14858. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14859. <span class="hljs-attr">headers</span>: headers
  14860. })
  14861. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14862. <span class="hljs-keyword">return</span> res.json();
  14863. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14864. <span class="hljs-built_in">console</span>.log(body);
  14865. });
  14866. </code></pre>
  14867. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14868. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14869. headers = {
  14870. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14871. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14872. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14873. }
  14874. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14875. <span class="hljs-symbol">params:</span> {
  14876. }, <span class="hljs-symbol">headers:</span> headers
  14877. p JSON.parse(result)
  14878. </code></pre>
  14879. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14880. headers = {
  14881. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14882. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14883. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14884. }
  14885. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  14886. <span class="hljs-built_in">print</span>(r.json())
  14887. </code></pre>
  14888. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>);
  14889. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14890. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14891. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14892. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14893. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14894. String inputLine;
  14895. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14896. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14897. response.append(inputLine);
  14898. }
  14899. in.close();
  14900. System.out.println(response.toString());
  14901. </code></pre>
  14902. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14903. <span class="hljs-keyword">import</span> (
  14904. <span class="hljs-string">&quot;bytes&quot;</span>
  14905. <span class="hljs-string">&quot;net/http&quot;</span>
  14906. )
  14907. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14908. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14909. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  14910. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14911. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14912. }
  14913. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14914. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  14915. req.Header = headers
  14916. client := &amp;http.Client{}
  14917. resp, err := client.Do(req)
  14918. <span class="hljs-comment">// ...</span>
  14919. }
  14920. </code></pre>
  14921. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14922. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14923. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14924. );
  14925. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14926. <span class="hljs-comment">// Define array of request body.</span>
  14927. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14928. <span class="hljs-keyword">try</span> {
  14929. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, <span class="hljs-keyword">array</span>(
  14930. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14931. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14932. )
  14933. );
  14934. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14935. }
  14936. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14937. <span class="hljs-comment">// handle exception or api errors.</span>
  14938. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14939. }
  14940. <span class="hljs-comment">// ...</span>
  14941. </code></pre>
  14942. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  14943. <p><em>Add a swimlane to a board</em></p>
  14944. <blockquote>
  14945. <p>Body parameter</p>
  14946. </blockquote>
  14947. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  14948. </code></pre>
  14949. <h3 id="new_swimlane-parameters">Parameters</h3>
  14950. <table>
  14951. <thead>
  14952. <tr>
  14953. <th>Name</th>
  14954. <th>In</th>
  14955. <th>Type</th>
  14956. <th>Required</th>
  14957. <th>Description</th>
  14958. </tr>
  14959. </thead>
  14960. <tbody>
  14961. <tr>
  14962. <td>board</td>
  14963. <td>path</td>
  14964. <td>string</td>
  14965. <td>true</td>
  14966. <td>the ID of the board</td>
  14967. </tr>
  14968. <tr>
  14969. <td>body</td>
  14970. <td>body</td>
  14971. <td>object</td>
  14972. <td>true</td>
  14973. <td>none</td>
  14974. </tr>
  14975. <tr>
  14976. <td>» title</td>
  14977. <td>body</td>
  14978. <td>string</td>
  14979. <td>true</td>
  14980. <td>the new title of the swimlane</td>
  14981. </tr>
  14982. </tbody>
  14983. </table>
  14984. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  14985. <p><strong>board</strong>: the ID of the board</p>
  14986. <blockquote>
  14987. <p>Example responses</p>
  14988. </blockquote>
  14989. <blockquote>
  14990. <p>200 Response</p>
  14991. </blockquote>
  14992. <pre class="highlight tab tab-json"><code>{
  14993. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14994. }
  14995. </code></pre>
  14996. <h3 id="new_swimlane-responses">Responses</h3>
  14997. <table>
  14998. <thead>
  14999. <tr>
  15000. <th>Status</th>
  15001. <th>Meaning</th>
  15002. <th>Description</th>
  15003. <th>Schema</th>
  15004. </tr>
  15005. </thead>
  15006. <tbody>
  15007. <tr>
  15008. <td>200</td>
  15009. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15010. <td>200 response</td>
  15011. <td>Inline</td>
  15012. </tr>
  15013. </tbody>
  15014. </table>
  15015. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  15016. <p>Status Code <strong>200</strong></p>
  15017. <table>
  15018. <thead>
  15019. <tr>
  15020. <th>Name</th>
  15021. <th>Type</th>
  15022. <th>Required</th>
  15023. <th>Restrictions</th>
  15024. <th>Description</th>
  15025. </tr>
  15026. </thead>
  15027. <tbody>
  15028. <tr>
  15029. <td>» _id</td>
  15030. <td>string</td>
  15031. <td>false</td>
  15032. <td>none</td>
  15033. <td>none</td>
  15034. </tr>
  15035. </tbody>
  15036. </table>
  15037. <aside class="warning">
  15038. To perform this operation, you must be authenticated by means of one of the following methods:
  15039. UserSecurity
  15040. </aside>
  15041. <h2 id="get_swimlane">get_swimlane</h2>
  15042. <p><a id="opIdget_swimlane"></a></p>
  15043. <blockquote>
  15044. <p>Code samples</p>
  15045. </blockquote>
  15046. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15047. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  15048. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15049. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15050. </code></pre>
  15051. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> <span class="hljs-meta">HTTP/1.1</span>
  15052. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15053. </span></code></pre>
  15054. <pre class="highlight tab tab-javascript"><code>
  15055. <span class="hljs-keyword">const</span> headers = {
  15056. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15057. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15058. };
  15059. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15060. {
  15061. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15062. <span class="hljs-attr">headers</span>: headers
  15063. })
  15064. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15065. <span class="hljs-keyword">return</span> res.json();
  15066. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15067. <span class="hljs-built_in">console</span>.log(body);
  15068. });
  15069. </code></pre>
  15070. <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">&#x27;node-fetch&#x27;</span>);
  15071. <span class="hljs-keyword">const</span> headers = {
  15072. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15073. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15074. };
  15075. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15076. {
  15077. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15078. <span class="hljs-attr">headers</span>: headers
  15079. })
  15080. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15081. <span class="hljs-keyword">return</span> res.json();
  15082. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15083. <span class="hljs-built_in">console</span>.log(body);
  15084. });
  15085. </code></pre>
  15086. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15087. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15088. headers = {
  15089. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15090. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15091. }
  15092. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15093. <span class="hljs-symbol">params:</span> {
  15094. }, <span class="hljs-symbol">headers:</span> headers
  15095. p JSON.parse(result)
  15096. </code></pre>
  15097. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15098. headers = {
  15099. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15100. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15101. }
  15102. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15103. <span class="hljs-built_in">print</span>(r.json())
  15104. </code></pre>
  15105. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>);
  15106. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15107. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15108. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15109. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15110. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15111. String inputLine;
  15112. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15113. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15114. response.append(inputLine);
  15115. }
  15116. in.close();
  15117. System.out.println(response.toString());
  15118. </code></pre>
  15119. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15120. <span class="hljs-keyword">import</span> (
  15121. <span class="hljs-string">&quot;bytes&quot;</span>
  15122. <span class="hljs-string">&quot;net/http&quot;</span>
  15123. )
  15124. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15125. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15126. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15127. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15128. }
  15129. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15130. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>, data)
  15131. req.Header = headers
  15132. client := &amp;http.Client{}
  15133. resp, err := client.Do(req)
  15134. <span class="hljs-comment">// ...</span>
  15135. }
  15136. </code></pre>
  15137. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15138. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15139. );
  15140. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15141. <span class="hljs-comment">// Define array of request body.</span>
  15142. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15143. <span class="hljs-keyword">try</span> {
  15144. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, <span class="hljs-keyword">array</span>(
  15145. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15146. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15147. )
  15148. );
  15149. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15150. }
  15151. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15152. <span class="hljs-comment">// handle exception or api errors.</span>
  15153. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15154. }
  15155. <span class="hljs-comment">// ...</span>
  15156. </code></pre>
  15157. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15158. <p><em>Get a swimlane</em></p>
  15159. <h3 id="get_swimlane-parameters">Parameters</h3>
  15160. <table>
  15161. <thead>
  15162. <tr>
  15163. <th>Name</th>
  15164. <th>In</th>
  15165. <th>Type</th>
  15166. <th>Required</th>
  15167. <th>Description</th>
  15168. </tr>
  15169. </thead>
  15170. <tbody>
  15171. <tr>
  15172. <td>board</td>
  15173. <td>path</td>
  15174. <td>string</td>
  15175. <td>true</td>
  15176. <td>the ID of the board</td>
  15177. </tr>
  15178. <tr>
  15179. <td>swimlane</td>
  15180. <td>path</td>
  15181. <td>string</td>
  15182. <td>true</td>
  15183. <td>the ID of the swimlane</td>
  15184. </tr>
  15185. </tbody>
  15186. </table>
  15187. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  15188. <p><strong>board</strong>: the ID of the board</p>
  15189. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15190. <blockquote>
  15191. <p>Example responses</p>
  15192. </blockquote>
  15193. <blockquote>
  15194. <p>200 Response</p>
  15195. </blockquote>
  15196. <pre class="highlight tab tab-json"><code>{
  15197. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15198. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  15199. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15200. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15201. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15202. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  15203. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  15204. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15205. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15206. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15207. <span class="hljs-attr">&quot;collapsed&quot;</span>: <span class="hljs-literal">true</span>
  15208. }
  15209. </code></pre>
  15210. <h3 id="get_swimlane-responses">Responses</h3>
  15211. <table>
  15212. <thead>
  15213. <tr>
  15214. <th>Status</th>
  15215. <th>Meaning</th>
  15216. <th>Description</th>
  15217. <th>Schema</th>
  15218. </tr>
  15219. </thead>
  15220. <tbody>
  15221. <tr>
  15222. <td>200</td>
  15223. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15224. <td>200 response</td>
  15225. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  15226. </tr>
  15227. </tbody>
  15228. </table>
  15229. <aside class="warning">
  15230. To perform this operation, you must be authenticated by means of one of the following methods:
  15231. UserSecurity
  15232. </aside>
  15233. <h2 id="edit_swimlane">edit_swimlane</h2>
  15234. <p><a id="opIdedit_swimlane"></a></p>
  15235. <blockquote>
  15236. <p>Code samples</p>
  15237. </blockquote>
  15238. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15239. curl -X PUT /api/boards/{board}/swimlanes/{swimlane} \
  15240. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15241. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15242. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15243. </code></pre>
  15244. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> <span class="hljs-meta">HTTP/1.1</span>
  15245. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15246. Accept: application/json
  15247. </span></code></pre>
  15248. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15249. &quot;title&quot;: &quot;string&quot;
  15250. }&#x27;</span>;
  15251. <span class="hljs-keyword">const</span> headers = {
  15252. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15253. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15254. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15255. };
  15256. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15257. {
  15258. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  15259. <span class="hljs-attr">body</span>: inputBody,
  15260. <span class="hljs-attr">headers</span>: headers
  15261. })
  15262. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15263. <span class="hljs-keyword">return</span> res.json();
  15264. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15265. <span class="hljs-built_in">console</span>.log(body);
  15266. });
  15267. </code></pre>
  15268. <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">&#x27;node-fetch&#x27;</span>);
  15269. <span class="hljs-keyword">const</span> inputBody = {
  15270. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15271. };
  15272. <span class="hljs-keyword">const</span> headers = {
  15273. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15274. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15275. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15276. };
  15277. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15278. {
  15279. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  15280. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15281. <span class="hljs-attr">headers</span>: headers
  15282. })
  15283. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15284. <span class="hljs-keyword">return</span> res.json();
  15285. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15286. <span class="hljs-built_in">console</span>.log(body);
  15287. });
  15288. </code></pre>
  15289. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15290. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15291. headers = {
  15292. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15293. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15294. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15295. }
  15296. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15297. <span class="hljs-symbol">params:</span> {
  15298. }, <span class="hljs-symbol">headers:</span> headers
  15299. p JSON.parse(result)
  15300. </code></pre>
  15301. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15302. headers = {
  15303. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15304. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15305. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15306. }
  15307. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15308. <span class="hljs-built_in">print</span>(r.json())
  15309. </code></pre>
  15310. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>);
  15311. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15312. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  15313. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15314. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15315. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15316. String inputLine;
  15317. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15318. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15319. response.append(inputLine);
  15320. }
  15321. in.close();
  15322. System.out.println(response.toString());
  15323. </code></pre>
  15324. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15325. <span class="hljs-keyword">import</span> (
  15326. <span class="hljs-string">&quot;bytes&quot;</span>
  15327. <span class="hljs-string">&quot;net/http&quot;</span>
  15328. )
  15329. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15330. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15331. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  15332. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15333. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15334. }
  15335. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15336. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>, data)
  15337. req.Header = headers
  15338. client := &amp;http.Client{}
  15339. resp, err := client.Do(req)
  15340. <span class="hljs-comment">// ...</span>
  15341. }
  15342. </code></pre>
  15343. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15344. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15345. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15346. );
  15347. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15348. <span class="hljs-comment">// Define array of request body.</span>
  15349. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15350. <span class="hljs-keyword">try</span> {
  15351. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, <span class="hljs-keyword">array</span>(
  15352. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15353. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15354. )
  15355. );
  15356. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15357. }
  15358. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15359. <span class="hljs-comment">// handle exception or api errors.</span>
  15360. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15361. }
  15362. <span class="hljs-comment">// ...</span>
  15363. </code></pre>
  15364. <p><code>PUT /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15365. <p><em>Edit the title of a swimlane</em></p>
  15366. <blockquote>
  15367. <p>Body parameter</p>
  15368. </blockquote>
  15369. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  15370. </code></pre>
  15371. <h3 id="edit_swimlane-parameters">Parameters</h3>
  15372. <table>
  15373. <thead>
  15374. <tr>
  15375. <th>Name</th>
  15376. <th>In</th>
  15377. <th>Type</th>
  15378. <th>Required</th>
  15379. <th>Description</th>
  15380. </tr>
  15381. </thead>
  15382. <tbody>
  15383. <tr>
  15384. <td>board</td>
  15385. <td>path</td>
  15386. <td>string</td>
  15387. <td>true</td>
  15388. <td>the ID of the board</td>
  15389. </tr>
  15390. <tr>
  15391. <td>swimlane</td>
  15392. <td>path</td>
  15393. <td>string</td>
  15394. <td>true</td>
  15395. <td>the ID of the swimlane to edit</td>
  15396. </tr>
  15397. <tr>
  15398. <td>body</td>
  15399. <td>body</td>
  15400. <td>object</td>
  15401. <td>true</td>
  15402. <td>none</td>
  15403. </tr>
  15404. <tr>
  15405. <td>» title</td>
  15406. <td>body</td>
  15407. <td>string</td>
  15408. <td>true</td>
  15409. <td>the new title of the swimlane</td>
  15410. </tr>
  15411. </tbody>
  15412. </table>
  15413. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  15414. <p><strong>board</strong>: the ID of the board</p>
  15415. <p><strong>swimlane</strong>: the ID of the swimlane to edit</p>
  15416. <blockquote>
  15417. <p>Example responses</p>
  15418. </blockquote>
  15419. <blockquote>
  15420. <p>200 Response</p>
  15421. </blockquote>
  15422. <pre class="highlight tab tab-json"><code>{
  15423. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15424. }
  15425. </code></pre>
  15426. <h3 id="edit_swimlane-responses">Responses</h3>
  15427. <table>
  15428. <thead>
  15429. <tr>
  15430. <th>Status</th>
  15431. <th>Meaning</th>
  15432. <th>Description</th>
  15433. <th>Schema</th>
  15434. </tr>
  15435. </thead>
  15436. <tbody>
  15437. <tr>
  15438. <td>200</td>
  15439. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15440. <td>200 response</td>
  15441. <td>Inline</td>
  15442. </tr>
  15443. </tbody>
  15444. </table>
  15445. <h3 id="edit_swimlane-responseschema">Response Schema</h3>
  15446. <p>Status Code <strong>200</strong></p>
  15447. <table>
  15448. <thead>
  15449. <tr>
  15450. <th>Name</th>
  15451. <th>Type</th>
  15452. <th>Required</th>
  15453. <th>Restrictions</th>
  15454. <th>Description</th>
  15455. </tr>
  15456. </thead>
  15457. <tbody>
  15458. <tr>
  15459. <td>» _id</td>
  15460. <td>string</td>
  15461. <td>false</td>
  15462. <td>none</td>
  15463. <td>none</td>
  15464. </tr>
  15465. </tbody>
  15466. </table>
  15467. <aside class="warning">
  15468. To perform this operation, you must be authenticated by means of one of the following methods:
  15469. UserSecurity
  15470. </aside>
  15471. <h2 id="delete_swimlane">delete_swimlane</h2>
  15472. <p><a id="opIddelete_swimlane"></a></p>
  15473. <blockquote>
  15474. <p>Code samples</p>
  15475. </blockquote>
  15476. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15477. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  15478. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15479. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15480. </code></pre>
  15481. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> <span class="hljs-meta">HTTP/1.1</span>
  15482. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15483. </span></code></pre>
  15484. <pre class="highlight tab tab-javascript"><code>
  15485. <span class="hljs-keyword">const</span> headers = {
  15486. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15487. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15488. };
  15489. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15490. {
  15491. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15492. <span class="hljs-attr">headers</span>: headers
  15493. })
  15494. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15495. <span class="hljs-keyword">return</span> res.json();
  15496. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15497. <span class="hljs-built_in">console</span>.log(body);
  15498. });
  15499. </code></pre>
  15500. <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">&#x27;node-fetch&#x27;</span>);
  15501. <span class="hljs-keyword">const</span> headers = {
  15502. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15503. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15504. };
  15505. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15506. {
  15507. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15508. <span class="hljs-attr">headers</span>: headers
  15509. })
  15510. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15511. <span class="hljs-keyword">return</span> res.json();
  15512. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15513. <span class="hljs-built_in">console</span>.log(body);
  15514. });
  15515. </code></pre>
  15516. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15517. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15518. headers = {
  15519. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15520. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15521. }
  15522. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15523. <span class="hljs-symbol">params:</span> {
  15524. }, <span class="hljs-symbol">headers:</span> headers
  15525. p JSON.parse(result)
  15526. </code></pre>
  15527. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15528. headers = {
  15529. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15530. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15531. }
  15532. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15533. <span class="hljs-built_in">print</span>(r.json())
  15534. </code></pre>
  15535. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>);
  15536. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15537. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15538. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15539. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15540. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15541. String inputLine;
  15542. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15543. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15544. response.append(inputLine);
  15545. }
  15546. in.close();
  15547. System.out.println(response.toString());
  15548. </code></pre>
  15549. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15550. <span class="hljs-keyword">import</span> (
  15551. <span class="hljs-string">&quot;bytes&quot;</span>
  15552. <span class="hljs-string">&quot;net/http&quot;</span>
  15553. )
  15554. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15555. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15556. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15557. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15558. }
  15559. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15560. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>, data)
  15561. req.Header = headers
  15562. client := &amp;http.Client{}
  15563. resp, err := client.Do(req)
  15564. <span class="hljs-comment">// ...</span>
  15565. }
  15566. </code></pre>
  15567. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15568. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15569. );
  15570. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15571. <span class="hljs-comment">// Define array of request body.</span>
  15572. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15573. <span class="hljs-keyword">try</span> {
  15574. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, <span class="hljs-keyword">array</span>(
  15575. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15576. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15577. )
  15578. );
  15579. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15580. }
  15581. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15582. <span class="hljs-comment">// handle exception or api errors.</span>
  15583. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15584. }
  15585. <span class="hljs-comment">// ...</span>
  15586. </code></pre>
  15587. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15588. <p><em>Delete a swimlane</em></p>
  15589. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  15590. <h3 id="delete_swimlane-parameters">Parameters</h3>
  15591. <table>
  15592. <thead>
  15593. <tr>
  15594. <th>Name</th>
  15595. <th>In</th>
  15596. <th>Type</th>
  15597. <th>Required</th>
  15598. <th>Description</th>
  15599. </tr>
  15600. </thead>
  15601. <tbody>
  15602. <tr>
  15603. <td>board</td>
  15604. <td>path</td>
  15605. <td>string</td>
  15606. <td>true</td>
  15607. <td>the ID of the board</td>
  15608. </tr>
  15609. <tr>
  15610. <td>swimlane</td>
  15611. <td>path</td>
  15612. <td>string</td>
  15613. <td>true</td>
  15614. <td>the ID of the swimlane</td>
  15615. </tr>
  15616. </tbody>
  15617. </table>
  15618. <h4 id="detailed-descriptions-50">Detailed descriptions</h4>
  15619. <p><strong>board</strong>: the ID of the board</p>
  15620. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15621. <blockquote>
  15622. <p>Example responses</p>
  15623. </blockquote>
  15624. <blockquote>
  15625. <p>200 Response</p>
  15626. </blockquote>
  15627. <pre class="highlight tab tab-json"><code>{
  15628. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15629. }
  15630. </code></pre>
  15631. <h3 id="delete_swimlane-responses">Responses</h3>
  15632. <table>
  15633. <thead>
  15634. <tr>
  15635. <th>Status</th>
  15636. <th>Meaning</th>
  15637. <th>Description</th>
  15638. <th>Schema</th>
  15639. </tr>
  15640. </thead>
  15641. <tbody>
  15642. <tr>
  15643. <td>200</td>
  15644. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15645. <td>200 response</td>
  15646. <td>Inline</td>
  15647. </tr>
  15648. </tbody>
  15649. </table>
  15650. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  15651. <p>Status Code <strong>200</strong></p>
  15652. <table>
  15653. <thead>
  15654. <tr>
  15655. <th>Name</th>
  15656. <th>Type</th>
  15657. <th>Required</th>
  15658. <th>Restrictions</th>
  15659. <th>Description</th>
  15660. </tr>
  15661. </thead>
  15662. <tbody>
  15663. <tr>
  15664. <td>» _id</td>
  15665. <td>string</td>
  15666. <td>false</td>
  15667. <td>none</td>
  15668. <td>none</td>
  15669. </tr>
  15670. </tbody>
  15671. </table>
  15672. <aside class="warning">
  15673. To perform this operation, you must be authenticated by means of one of the following methods:
  15674. UserSecurity
  15675. </aside>
  15676. <h1 id="schemas">Schemas</h1>
  15677. <h2 id="tocs_boards">Boards</h2>
  15678. <p><a id="schemaboards"></a>
  15679. <a id="schema_Boards"></a>
  15680. <a id="tocSboards"></a>
  15681. <a id="tocsboards"></a></p>
  15682. <pre class="highlight tab tab-json"><code>{
  15683. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15684. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15685. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  15686. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15687. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15688. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15689. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  15690. <span class="hljs-attr">&quot;labels&quot;</span>: [
  15691. {
  15692. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15693. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15694. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  15695. }
  15696. ],
  15697. <span class="hljs-attr">&quot;members&quot;</span>: [
  15698. {
  15699. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15700. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  15701. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  15702. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  15703. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  15704. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  15705. }
  15706. ],
  15707. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  15708. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  15709. {
  15710. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15711. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15712. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  15713. }
  15714. ],
  15715. <span class="hljs-attr">&quot;teams&quot;</span>: [
  15716. {
  15717. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15718. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15719. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  15720. }
  15721. ],
  15722. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  15723. <span class="hljs-attr">&quot;backgroundImageURL&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15724. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  15725. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  15726. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15727. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15728. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15729. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15730. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15731. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  15732. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  15733. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  15734. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  15735. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  15736. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  15737. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15738. <span class="hljs-attr">&quot;allowsCoverAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15739. <span class="hljs-attr">&quot;allowsBadgeAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15740. <span class="hljs-attr">&quot;allowsCardSortingByNumberOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15741. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  15742. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  15743. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  15744. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  15745. <span class="hljs-attr">&quot;allowsCreatorOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15746. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  15747. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  15748. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  15749. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  15750. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  15751. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  15752. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  15753. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  15754. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  15755. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  15756. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  15757. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15758. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15759. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15760. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15761. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  15762. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  15763. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  15764. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  15765. }
  15766. </code></pre>
  15767. <p>This is a Board.</p>
  15768. <h3 id="properties">Properties</h3>
  15769. <table>
  15770. <thead>
  15771. <tr>
  15772. <th>Name</th>
  15773. <th>Type</th>
  15774. <th>Required</th>
  15775. <th>Restrictions</th>
  15776. <th>Description</th>
  15777. </tr>
  15778. </thead>
  15779. <tbody>
  15780. <tr>
  15781. <td>title</td>
  15782. <td>string</td>
  15783. <td>true</td>
  15784. <td>none</td>
  15785. <td>The title of the board</td>
  15786. </tr>
  15787. <tr>
  15788. <td>slug</td>
  15789. <td>string</td>
  15790. <td>true</td>
  15791. <td>none</td>
  15792. <td>The title slugified.</td>
  15793. </tr>
  15794. <tr>
  15795. <td>archived</td>
  15796. <td>boolean</td>
  15797. <td>true</td>
  15798. <td>none</td>
  15799. <td>Is the board archived?</td>
  15800. </tr>
  15801. <tr>
  15802. <td>archivedAt</td>
  15803. <td>string¦null</td>
  15804. <td>false</td>
  15805. <td>none</td>
  15806. <td>Latest archiving time of the board</td>
  15807. </tr>
  15808. <tr>
  15809. <td>createdAt</td>
  15810. <td>string</td>
  15811. <td>true</td>
  15812. <td>none</td>
  15813. <td>Creation time of the board</td>
  15814. </tr>
  15815. <tr>
  15816. <td>modifiedAt</td>
  15817. <td>string¦null</td>
  15818. <td>false</td>
  15819. <td>none</td>
  15820. <td>Last modification time of the board</td>
  15821. </tr>
  15822. <tr>
  15823. <td>stars</td>
  15824. <td>number</td>
  15825. <td>true</td>
  15826. <td>none</td>
  15827. <td>How many stars the board has</td>
  15828. </tr>
  15829. <tr>
  15830. <td>labels</td>
  15831. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  15832. <td>false</td>
  15833. <td>none</td>
  15834. <td>List of labels attached to a board</td>
  15835. </tr>
  15836. <tr>
  15837. <td>members</td>
  15838. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  15839. <td>true</td>
  15840. <td>none</td>
  15841. <td>List of members of a board</td>
  15842. </tr>
  15843. <tr>
  15844. <td>permission</td>
  15845. <td>string</td>
  15846. <td>true</td>
  15847. <td>none</td>
  15848. <td>visibility of the board</td>
  15849. </tr>
  15850. <tr>
  15851. <td>orgs</td>
  15852. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  15853. <td>false</td>
  15854. <td>none</td>
  15855. <td>the list of organizations that a board belongs to</td>
  15856. </tr>
  15857. <tr>
  15858. <td>teams</td>
  15859. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  15860. <td>false</td>
  15861. <td>none</td>
  15862. <td>the list of teams that a board belongs to</td>
  15863. </tr>
  15864. <tr>
  15865. <td>color</td>
  15866. <td>string</td>
  15867. <td>true</td>
  15868. <td>none</td>
  15869. <td>The color of the board.</td>
  15870. </tr>
  15871. <tr>
  15872. <td>backgroundImageURL</td>
  15873. <td>string¦null</td>
  15874. <td>false</td>
  15875. <td>none</td>
  15876. <td>The background image URL of the board.</td>
  15877. </tr>
  15878. <tr>
  15879. <td>allowsCardCounterList</td>
  15880. <td>boolean</td>
  15881. <td>true</td>
  15882. <td>none</td>
  15883. <td>Show card counter per list</td>
  15884. </tr>
  15885. <tr>
  15886. <td>allowsBoardMemberList</td>
  15887. <td>boolean</td>
  15888. <td>true</td>
  15889. <td>none</td>
  15890. <td>Show board member list</td>
  15891. </tr>
  15892. <tr>
  15893. <td>description</td>
  15894. <td>string¦null</td>
  15895. <td>false</td>
  15896. <td>none</td>
  15897. <td>The description of the board</td>
  15898. </tr>
  15899. <tr>
  15900. <td>subtasksDefaultBoardId</td>
  15901. <td>string¦null</td>
  15902. <td>false</td>
  15903. <td>none</td>
  15904. <td>The default board ID assigned to subtasks.</td>
  15905. </tr>
  15906. <tr>
  15907. <td>subtasksDefaultListId</td>
  15908. <td>string¦null</td>
  15909. <td>false</td>
  15910. <td>none</td>
  15911. <td>The default List ID assigned to subtasks.</td>
  15912. </tr>
  15913. <tr>
  15914. <td>dateSettingsDefaultBoardId</td>
  15915. <td>string¦null</td>
  15916. <td>false</td>
  15917. <td>none</td>
  15918. <td>none</td>
  15919. </tr>
  15920. <tr>
  15921. <td>dateSettingsDefaultListId</td>
  15922. <td>string¦null</td>
  15923. <td>false</td>
  15924. <td>none</td>
  15925. <td>none</td>
  15926. </tr>
  15927. <tr>
  15928. <td>allowsSubtasks</td>
  15929. <td>boolean</td>
  15930. <td>true</td>
  15931. <td>none</td>
  15932. <td>Does the board allows subtasks?</td>
  15933. </tr>
  15934. <tr>
  15935. <td>allowsAttachments</td>
  15936. <td>boolean</td>
  15937. <td>true</td>
  15938. <td>none</td>
  15939. <td>Does the board allows attachments?</td>
  15940. </tr>
  15941. <tr>
  15942. <td>allowsChecklists</td>
  15943. <td>boolean</td>
  15944. <td>true</td>
  15945. <td>none</td>
  15946. <td>Does the board allows checklists?</td>
  15947. </tr>
  15948. <tr>
  15949. <td>allowsComments</td>
  15950. <td>boolean</td>
  15951. <td>true</td>
  15952. <td>none</td>
  15953. <td>Does the board allows comments?</td>
  15954. </tr>
  15955. <tr>
  15956. <td>allowsDescriptionTitle</td>
  15957. <td>boolean</td>
  15958. <td>true</td>
  15959. <td>none</td>
  15960. <td>Does the board allows description title?</td>
  15961. </tr>
  15962. <tr>
  15963. <td>allowsDescriptionText</td>
  15964. <td>boolean</td>
  15965. <td>true</td>
  15966. <td>none</td>
  15967. <td>Does the board allows description text?</td>
  15968. </tr>
  15969. <tr>
  15970. <td>allowsDescriptionTextOnMinicard</td>
  15971. <td>boolean</td>
  15972. <td>true</td>
  15973. <td>none</td>
  15974. <td>Does the board allows description text on minicard?</td>
  15975. </tr>
  15976. <tr>
  15977. <td>allowsCoverAttachmentOnMinicard</td>
  15978. <td>boolean</td>
  15979. <td>true</td>
  15980. <td>none</td>
  15981. <td>Does the board allows cover attachment on minicard?</td>
  15982. </tr>
  15983. <tr>
  15984. <td>allowsBadgeAttachmentOnMinicard</td>
  15985. <td>boolean</td>
  15986. <td>true</td>
  15987. <td>none</td>
  15988. <td>Does the board allows badge attachment on minicard?</td>
  15989. </tr>
  15990. <tr>
  15991. <td>allowsCardSortingByNumberOnMinicard</td>
  15992. <td>boolean</td>
  15993. <td>true</td>
  15994. <td>none</td>
  15995. <td>Does the board allows card sorting by number on minicard?</td>
  15996. </tr>
  15997. <tr>
  15998. <td>allowsCardNumber</td>
  15999. <td>boolean</td>
  16000. <td>true</td>
  16001. <td>none</td>
  16002. <td>Does the board allows card numbers?</td>
  16003. </tr>
  16004. <tr>
  16005. <td>allowsActivities</td>
  16006. <td>boolean</td>
  16007. <td>true</td>
  16008. <td>none</td>
  16009. <td>Does the board allows comments?</td>
  16010. </tr>
  16011. <tr>
  16012. <td>allowsLabels</td>
  16013. <td>boolean</td>
  16014. <td>true</td>
  16015. <td>none</td>
  16016. <td>Does the board allows labels?</td>
  16017. </tr>
  16018. <tr>
  16019. <td>allowsCreator</td>
  16020. <td>boolean</td>
  16021. <td>true</td>
  16022. <td>none</td>
  16023. <td>Does the board allow creator?</td>
  16024. </tr>
  16025. <tr>
  16026. <td>allowsCreatorOnMinicard</td>
  16027. <td>boolean</td>
  16028. <td>true</td>
  16029. <td>none</td>
  16030. <td>Does the board allow creator?</td>
  16031. </tr>
  16032. <tr>
  16033. <td>allowsAssignee</td>
  16034. <td>boolean</td>
  16035. <td>true</td>
  16036. <td>none</td>
  16037. <td>Does the board allows assignee?</td>
  16038. </tr>
  16039. <tr>
  16040. <td>allowsMembers</td>
  16041. <td>boolean</td>
  16042. <td>true</td>
  16043. <td>none</td>
  16044. <td>Does the board allows members?</td>
  16045. </tr>
  16046. <tr>
  16047. <td>allowsRequestedBy</td>
  16048. <td>boolean</td>
  16049. <td>true</td>
  16050. <td>none</td>
  16051. <td>Does the board allows requested by?</td>
  16052. </tr>
  16053. <tr>
  16054. <td>allowsCardSortingByNumber</td>
  16055. <td>boolean</td>
  16056. <td>true</td>
  16057. <td>none</td>
  16058. <td>Does the board allows card sorting by number?</td>
  16059. </tr>
  16060. <tr>
  16061. <td>allowsShowLists</td>
  16062. <td>boolean</td>
  16063. <td>true</td>
  16064. <td>none</td>
  16065. <td>Does the board allows show lists on the card?</td>
  16066. </tr>
  16067. <tr>
  16068. <td>allowsAssignedBy</td>
  16069. <td>boolean</td>
  16070. <td>true</td>
  16071. <td>none</td>
  16072. <td>Does the board allows requested by?</td>
  16073. </tr>
  16074. <tr>
  16075. <td>allowsReceivedDate</td>
  16076. <td>boolean</td>
  16077. <td>true</td>
  16078. <td>none</td>
  16079. <td>Does the board allows received date?</td>
  16080. </tr>
  16081. <tr>
  16082. <td>allowsStartDate</td>
  16083. <td>boolean</td>
  16084. <td>true</td>
  16085. <td>none</td>
  16086. <td>Does the board allows start date?</td>
  16087. </tr>
  16088. <tr>
  16089. <td>allowsEndDate</td>
  16090. <td>boolean</td>
  16091. <td>true</td>
  16092. <td>none</td>
  16093. <td>Does the board allows end date?</td>
  16094. </tr>
  16095. <tr>
  16096. <td>allowsDueDate</td>
  16097. <td>boolean</td>
  16098. <td>true</td>
  16099. <td>none</td>
  16100. <td>Does the board allows due date?</td>
  16101. </tr>
  16102. <tr>
  16103. <td>presentParentTask</td>
  16104. <td>string¦null</td>
  16105. <td>false</td>
  16106. <td>none</td>
  16107. <td>Controls how to present the parent task:<br /><br />- <code>prefix-with-full-path</code>: add a prefix with the full path<br />- <code>prefix-with-parent</code>: add a prefisx with the parent name<br />- <code>subtext-with-full-path</code>: add a subtext with the full path<br />- <code>subtext-with-parent</code>: add a subtext with the parent name<br />- <code>no-parent</code>: does not show the parent at all</td>
  16108. </tr>
  16109. <tr>
  16110. <td>receivedAt</td>
  16111. <td>string¦null</td>
  16112. <td>false</td>
  16113. <td>none</td>
  16114. <td>Date the card was received</td>
  16115. </tr>
  16116. <tr>
  16117. <td>startAt</td>
  16118. <td>string¦null</td>
  16119. <td>false</td>
  16120. <td>none</td>
  16121. <td>Starting date of the board.</td>
  16122. </tr>
  16123. <tr>
  16124. <td>dueAt</td>
  16125. <td>string¦null</td>
  16126. <td>false</td>
  16127. <td>none</td>
  16128. <td>Due date of the board.</td>
  16129. </tr>
  16130. <tr>
  16131. <td>endAt</td>
  16132. <td>string¦null</td>
  16133. <td>false</td>
  16134. <td>none</td>
  16135. <td>End date of the board.</td>
  16136. </tr>
  16137. <tr>
  16138. <td>spentTime</td>
  16139. <td>number¦null</td>
  16140. <td>false</td>
  16141. <td>none</td>
  16142. <td>Time spent in the board.</td>
  16143. </tr>
  16144. <tr>
  16145. <td>isOvertime</td>
  16146. <td>boolean¦null</td>
  16147. <td>false</td>
  16148. <td>none</td>
  16149. <td>Is the board overtimed?</td>
  16150. </tr>
  16151. <tr>
  16152. <td>type</td>
  16153. <td>string</td>
  16154. <td>true</td>
  16155. <td>none</td>
  16156. <td>The type of board<br />possible values: board, template-board, template-container</td>
  16157. </tr>
  16158. <tr>
  16159. <td>sort</td>
  16160. <td>number</td>
  16161. <td>true</td>
  16162. <td>none</td>
  16163. <td>Sort value</td>
  16164. </tr>
  16165. </tbody>
  16166. </table>
  16167. <h4 id="enumerated-values">Enumerated Values</h4>
  16168. <table>
  16169. <thead>
  16170. <tr>
  16171. <th>Property</th>
  16172. <th>Value</th>
  16173. </tr>
  16174. </thead>
  16175. <tbody>
  16176. <tr>
  16177. <td>permission</td>
  16178. <td>public</td>
  16179. </tr>
  16180. <tr>
  16181. <td>permission</td>
  16182. <td>private</td>
  16183. </tr>
  16184. <tr>
  16185. <td>color</td>
  16186. <td>belize</td>
  16187. </tr>
  16188. <tr>
  16189. <td>color</td>
  16190. <td>nephritis</td>
  16191. </tr>
  16192. <tr>
  16193. <td>color</td>
  16194. <td>pomegranate</td>
  16195. </tr>
  16196. <tr>
  16197. <td>color</td>
  16198. <td>pumpkin</td>
  16199. </tr>
  16200. <tr>
  16201. <td>color</td>
  16202. <td>wisteria</td>
  16203. </tr>
  16204. <tr>
  16205. <td>color</td>
  16206. <td>moderatepink</td>
  16207. </tr>
  16208. <tr>
  16209. <td>color</td>
  16210. <td>strongcyan</td>
  16211. </tr>
  16212. <tr>
  16213. <td>color</td>
  16214. <td>limegreen</td>
  16215. </tr>
  16216. <tr>
  16217. <td>color</td>
  16218. <td>midnight</td>
  16219. </tr>
  16220. <tr>
  16221. <td>color</td>
  16222. <td>dark</td>
  16223. </tr>
  16224. <tr>
  16225. <td>color</td>
  16226. <td>relax</td>
  16227. </tr>
  16228. <tr>
  16229. <td>color</td>
  16230. <td>corteza</td>
  16231. </tr>
  16232. <tr>
  16233. <td>color</td>
  16234. <td>clearblue</td>
  16235. </tr>
  16236. <tr>
  16237. <td>color</td>
  16238. <td>natural</td>
  16239. </tr>
  16240. <tr>
  16241. <td>color</td>
  16242. <td>modern</td>
  16243. </tr>
  16244. <tr>
  16245. <td>color</td>
  16246. <td>moderndark</td>
  16247. </tr>
  16248. <tr>
  16249. <td>color</td>
  16250. <td>exodark</td>
  16251. </tr>
  16252. <tr>
  16253. <td>presentParentTask</td>
  16254. <td>prefix-with-full-path</td>
  16255. </tr>
  16256. <tr>
  16257. <td>presentParentTask</td>
  16258. <td>prefix-with-parent</td>
  16259. </tr>
  16260. <tr>
  16261. <td>presentParentTask</td>
  16262. <td>subtext-with-full-path</td>
  16263. </tr>
  16264. <tr>
  16265. <td>presentParentTask</td>
  16266. <td>subtext-with-parent</td>
  16267. </tr>
  16268. <tr>
  16269. <td>presentParentTask</td>
  16270. <td>no-parent</td>
  16271. </tr>
  16272. <tr>
  16273. <td>type</td>
  16274. <td>board</td>
  16275. </tr>
  16276. <tr>
  16277. <td>type</td>
  16278. <td>template-board</td>
  16279. </tr>
  16280. <tr>
  16281. <td>type</td>
  16282. <td>template-container</td>
  16283. </tr>
  16284. </tbody>
  16285. </table>
  16286. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  16287. <p><a id="schemaboardslabels"></a>
  16288. <a id="schema_BoardsLabels"></a>
  16289. <a id="tocSboardslabels"></a>
  16290. <a id="tocsboardslabels"></a></p>
  16291. <pre class="highlight tab tab-json"><code>{
  16292. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16293. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16294. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16295. }
  16296. </code></pre>
  16297. <h3 id="properties-2">Properties</h3>
  16298. <table>
  16299. <thead>
  16300. <tr>
  16301. <th>Name</th>
  16302. <th>Type</th>
  16303. <th>Required</th>
  16304. <th>Restrictions</th>
  16305. <th>Description</th>
  16306. </tr>
  16307. </thead>
  16308. <tbody>
  16309. <tr>
  16310. <td>_id</td>
  16311. <td>string</td>
  16312. <td>true</td>
  16313. <td>none</td>
  16314. <td>Unique id of a label</td>
  16315. </tr>
  16316. <tr>
  16317. <td>name</td>
  16318. <td>string</td>
  16319. <td>false</td>
  16320. <td>none</td>
  16321. <td>Name of a label</td>
  16322. </tr>
  16323. <tr>
  16324. <td>color</td>
  16325. <td>string</td>
  16326. <td>true</td>
  16327. <td>none</td>
  16328. <td>color of a label.<br /><br />Can be amongst <code>green</code>, <code>yellow</code>, <code>orange</code>, <code>red</code>, <code>purple</code>,<br /><code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>,<br /><code>silver</code>, <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>,<br /><code>slateblue</code>, <code>magenta</code>, <code>gold</code>, <code>navy</code>, <code>gray</code>,<br /><code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>, <code>indigo</code></td>
  16329. </tr>
  16330. </tbody>
  16331. </table>
  16332. <h4 id="enumerated-values-2">Enumerated Values</h4>
  16333. <table>
  16334. <thead>
  16335. <tr>
  16336. <th>Property</th>
  16337. <th>Value</th>
  16338. </tr>
  16339. </thead>
  16340. <tbody>
  16341. <tr>
  16342. <td>color</td>
  16343. <td>white</td>
  16344. </tr>
  16345. <tr>
  16346. <td>color</td>
  16347. <td>green</td>
  16348. </tr>
  16349. <tr>
  16350. <td>color</td>
  16351. <td>yellow</td>
  16352. </tr>
  16353. <tr>
  16354. <td>color</td>
  16355. <td>orange</td>
  16356. </tr>
  16357. <tr>
  16358. <td>color</td>
  16359. <td>red</td>
  16360. </tr>
  16361. <tr>
  16362. <td>color</td>
  16363. <td>purple</td>
  16364. </tr>
  16365. <tr>
  16366. <td>color</td>
  16367. <td>blue</td>
  16368. </tr>
  16369. <tr>
  16370. <td>color</td>
  16371. <td>sky</td>
  16372. </tr>
  16373. <tr>
  16374. <td>color</td>
  16375. <td>lime</td>
  16376. </tr>
  16377. <tr>
  16378. <td>color</td>
  16379. <td>pink</td>
  16380. </tr>
  16381. <tr>
  16382. <td>color</td>
  16383. <td>black</td>
  16384. </tr>
  16385. <tr>
  16386. <td>color</td>
  16387. <td>silver</td>
  16388. </tr>
  16389. <tr>
  16390. <td>color</td>
  16391. <td>peachpuff</td>
  16392. </tr>
  16393. <tr>
  16394. <td>color</td>
  16395. <td>crimson</td>
  16396. </tr>
  16397. <tr>
  16398. <td>color</td>
  16399. <td>plum</td>
  16400. </tr>
  16401. <tr>
  16402. <td>color</td>
  16403. <td>darkgreen</td>
  16404. </tr>
  16405. <tr>
  16406. <td>color</td>
  16407. <td>slateblue</td>
  16408. </tr>
  16409. <tr>
  16410. <td>color</td>
  16411. <td>magenta</td>
  16412. </tr>
  16413. <tr>
  16414. <td>color</td>
  16415. <td>gold</td>
  16416. </tr>
  16417. <tr>
  16418. <td>color</td>
  16419. <td>navy</td>
  16420. </tr>
  16421. <tr>
  16422. <td>color</td>
  16423. <td>gray</td>
  16424. </tr>
  16425. <tr>
  16426. <td>color</td>
  16427. <td>saddlebrown</td>
  16428. </tr>
  16429. <tr>
  16430. <td>color</td>
  16431. <td>paleturquoise</td>
  16432. </tr>
  16433. <tr>
  16434. <td>color</td>
  16435. <td>mistyrose</td>
  16436. </tr>
  16437. <tr>
  16438. <td>color</td>
  16439. <td>indigo</td>
  16440. </tr>
  16441. </tbody>
  16442. </table>
  16443. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  16444. <p><a id="schemaboardsmembers"></a>
  16445. <a id="schema_BoardsMembers"></a>
  16446. <a id="tocSboardsmembers"></a>
  16447. <a id="tocsboardsmembers"></a></p>
  16448. <pre class="highlight tab tab-json"><code>{
  16449. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16450. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16451. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16452. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16453. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16454. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16455. }
  16456. </code></pre>
  16457. <h3 id="properties-3">Properties</h3>
  16458. <table>
  16459. <thead>
  16460. <tr>
  16461. <th>Name</th>
  16462. <th>Type</th>
  16463. <th>Required</th>
  16464. <th>Restrictions</th>
  16465. <th>Description</th>
  16466. </tr>
  16467. </thead>
  16468. <tbody>
  16469. <tr>
  16470. <td>userId</td>
  16471. <td>string</td>
  16472. <td>true</td>
  16473. <td>none</td>
  16474. <td>The uniq ID of the member</td>
  16475. </tr>
  16476. <tr>
  16477. <td>isAdmin</td>
  16478. <td>boolean</td>
  16479. <td>true</td>
  16480. <td>none</td>
  16481. <td>Is the member an admin of the board?</td>
  16482. </tr>
  16483. <tr>
  16484. <td>isActive</td>
  16485. <td>boolean</td>
  16486. <td>true</td>
  16487. <td>none</td>
  16488. <td>Is the member active?</td>
  16489. </tr>
  16490. <tr>
  16491. <td>isNoComments</td>
  16492. <td>boolean</td>
  16493. <td>false</td>
  16494. <td>none</td>
  16495. <td>Is the member not allowed to make comments</td>
  16496. </tr>
  16497. <tr>
  16498. <td>isCommentOnly</td>
  16499. <td>boolean</td>
  16500. <td>false</td>
  16501. <td>none</td>
  16502. <td>Is the member only allowed to comment on the board</td>
  16503. </tr>
  16504. <tr>
  16505. <td>isWorker</td>
  16506. <td>boolean</td>
  16507. <td>false</td>
  16508. <td>none</td>
  16509. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  16510. </tr>
  16511. </tbody>
  16512. </table>
  16513. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  16514. <p><a id="schemaboardsorgs"></a>
  16515. <a id="schema_BoardsOrgs"></a>
  16516. <a id="tocSboardsorgs"></a>
  16517. <a id="tocsboardsorgs"></a></p>
  16518. <pre class="highlight tab tab-json"><code>{
  16519. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16520. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16521. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16522. }
  16523. </code></pre>
  16524. <h3 id="properties-4">Properties</h3>
  16525. <table>
  16526. <thead>
  16527. <tr>
  16528. <th>Name</th>
  16529. <th>Type</th>
  16530. <th>Required</th>
  16531. <th>Restrictions</th>
  16532. <th>Description</th>
  16533. </tr>
  16534. </thead>
  16535. <tbody>
  16536. <tr>
  16537. <td>orgId</td>
  16538. <td>string</td>
  16539. <td>true</td>
  16540. <td>none</td>
  16541. <td>The uniq ID of the organization</td>
  16542. </tr>
  16543. <tr>
  16544. <td>orgDisplayName</td>
  16545. <td>string</td>
  16546. <td>true</td>
  16547. <td>none</td>
  16548. <td>The display name of the organization</td>
  16549. </tr>
  16550. <tr>
  16551. <td>isActive</td>
  16552. <td>boolean</td>
  16553. <td>true</td>
  16554. <td>none</td>
  16555. <td>Is the organization active?</td>
  16556. </tr>
  16557. </tbody>
  16558. </table>
  16559. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  16560. <p><a id="schemaboardsteams"></a>
  16561. <a id="schema_BoardsTeams"></a>
  16562. <a id="tocSboardsteams"></a>
  16563. <a id="tocsboardsteams"></a></p>
  16564. <pre class="highlight tab tab-json"><code>{
  16565. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16566. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16567. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16568. }
  16569. </code></pre>
  16570. <h3 id="properties-5">Properties</h3>
  16571. <table>
  16572. <thead>
  16573. <tr>
  16574. <th>Name</th>
  16575. <th>Type</th>
  16576. <th>Required</th>
  16577. <th>Restrictions</th>
  16578. <th>Description</th>
  16579. </tr>
  16580. </thead>
  16581. <tbody>
  16582. <tr>
  16583. <td>teamId</td>
  16584. <td>string</td>
  16585. <td>true</td>
  16586. <td>none</td>
  16587. <td>The uniq ID of the team</td>
  16588. </tr>
  16589. <tr>
  16590. <td>teamDisplayName</td>
  16591. <td>string</td>
  16592. <td>true</td>
  16593. <td>none</td>
  16594. <td>The display name of the team</td>
  16595. </tr>
  16596. <tr>
  16597. <td>isActive</td>
  16598. <td>boolean</td>
  16599. <td>true</td>
  16600. <td>none</td>
  16601. <td>Is the team active?</td>
  16602. </tr>
  16603. </tbody>
  16604. </table>
  16605. <h2 id="tocs_cardcomments">CardComments</h2>
  16606. <p><a id="schemacardcomments"></a>
  16607. <a id="schema_CardComments"></a>
  16608. <a id="tocScardcomments"></a>
  16609. <a id="tocscardcomments"></a></p>
  16610. <pre class="highlight tab tab-json"><code>{
  16611. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16612. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16613. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16614. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16615. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16616. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16617. }
  16618. </code></pre>
  16619. <p>A comment on a card</p>
  16620. <h3 id="properties-6">Properties</h3>
  16621. <table>
  16622. <thead>
  16623. <tr>
  16624. <th>Name</th>
  16625. <th>Type</th>
  16626. <th>Required</th>
  16627. <th>Restrictions</th>
  16628. <th>Description</th>
  16629. </tr>
  16630. </thead>
  16631. <tbody>
  16632. <tr>
  16633. <td>boardId</td>
  16634. <td>string</td>
  16635. <td>true</td>
  16636. <td>none</td>
  16637. <td>the board ID</td>
  16638. </tr>
  16639. <tr>
  16640. <td>cardId</td>
  16641. <td>string</td>
  16642. <td>true</td>
  16643. <td>none</td>
  16644. <td>the card ID</td>
  16645. </tr>
  16646. <tr>
  16647. <td>text</td>
  16648. <td>string</td>
  16649. <td>true</td>
  16650. <td>none</td>
  16651. <td>the text of the comment</td>
  16652. </tr>
  16653. <tr>
  16654. <td>createdAt</td>
  16655. <td>string</td>
  16656. <td>true</td>
  16657. <td>none</td>
  16658. <td>when was the comment created</td>
  16659. </tr>
  16660. <tr>
  16661. <td>modifiedAt</td>
  16662. <td>string</td>
  16663. <td>true</td>
  16664. <td>none</td>
  16665. <td>none</td>
  16666. </tr>
  16667. <tr>
  16668. <td>userId</td>
  16669. <td>string</td>
  16670. <td>true</td>
  16671. <td>none</td>
  16672. <td>the author ID of the comment</td>
  16673. </tr>
  16674. </tbody>
  16675. </table>
  16676. <h2 id="tocs_cards">Cards</h2>
  16677. <p><a id="schemacards"></a>
  16678. <a id="schema_Cards"></a>
  16679. <a id="tocScards"></a>
  16680. <a id="tocscards"></a></p>
  16681. <pre class="highlight tab tab-json"><code>{
  16682. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16683. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16684. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16685. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16686. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16687. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16688. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16689. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16690. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  16691. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16692. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16693. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  16694. {}
  16695. ],
  16696. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16697. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16698. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16699. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16700. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  16701. <span class="hljs-string">&quot;string&quot;</span>
  16702. ],
  16703. <span class="hljs-attr">&quot;members&quot;</span>: [
  16704. <span class="hljs-string">&quot;string&quot;</span>
  16705. ],
  16706. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  16707. <span class="hljs-string">&quot;string&quot;</span>
  16708. ],
  16709. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16710. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16711. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16712. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16713. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16714. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16715. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16716. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  16717. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  16718. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16719. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16720. <span class="hljs-attr">&quot;vote&quot;</span>: {
  16721. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16722. <span class="hljs-attr">&quot;positive&quot;</span>: [
  16723. <span class="hljs-string">&quot;string&quot;</span>
  16724. ],
  16725. <span class="hljs-attr">&quot;negative&quot;</span>: [
  16726. <span class="hljs-string">&quot;string&quot;</span>
  16727. ],
  16728. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16729. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  16730. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  16731. },
  16732. <span class="hljs-attr">&quot;poker&quot;</span>: {
  16733. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  16734. <span class="hljs-attr">&quot;one&quot;</span>: [
  16735. <span class="hljs-string">&quot;string&quot;</span>
  16736. ],
  16737. <span class="hljs-attr">&quot;two&quot;</span>: [
  16738. <span class="hljs-string">&quot;string&quot;</span>
  16739. ],
  16740. <span class="hljs-attr">&quot;three&quot;</span>: [
  16741. <span class="hljs-string">&quot;string&quot;</span>
  16742. ],
  16743. <span class="hljs-attr">&quot;five&quot;</span>: [
  16744. <span class="hljs-string">&quot;string&quot;</span>
  16745. ],
  16746. <span class="hljs-attr">&quot;eight&quot;</span>: [
  16747. <span class="hljs-string">&quot;string&quot;</span>
  16748. ],
  16749. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  16750. <span class="hljs-string">&quot;string&quot;</span>
  16751. ],
  16752. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  16753. <span class="hljs-string">&quot;string&quot;</span>
  16754. ],
  16755. <span class="hljs-attr">&quot;forty&quot;</span>: [
  16756. <span class="hljs-string">&quot;string&quot;</span>
  16757. ],
  16758. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  16759. <span class="hljs-string">&quot;string&quot;</span>
  16760. ],
  16761. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  16762. <span class="hljs-string">&quot;string&quot;</span>
  16763. ],
  16764. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16765. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16766. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  16767. },
  16768. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  16769. <span class="hljs-string">&quot;string&quot;</span>
  16770. ],
  16771. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  16772. <span class="hljs-number">0</span>
  16773. ],
  16774. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  16775. <span class="hljs-string">&quot;string&quot;</span>
  16776. ],
  16777. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  16778. }
  16779. </code></pre>
  16780. <h3 id="properties-7">Properties</h3>
  16781. <table>
  16782. <thead>
  16783. <tr>
  16784. <th>Name</th>
  16785. <th>Type</th>
  16786. <th>Required</th>
  16787. <th>Restrictions</th>
  16788. <th>Description</th>
  16789. </tr>
  16790. </thead>
  16791. <tbody>
  16792. <tr>
  16793. <td>title</td>
  16794. <td>string¦null</td>
  16795. <td>false</td>
  16796. <td>none</td>
  16797. <td>the title of the card</td>
  16798. </tr>
  16799. <tr>
  16800. <td>archived</td>
  16801. <td>boolean</td>
  16802. <td>true</td>
  16803. <td>none</td>
  16804. <td>is the card archived</td>
  16805. </tr>
  16806. <tr>
  16807. <td>archivedAt</td>
  16808. <td>string¦null</td>
  16809. <td>false</td>
  16810. <td>none</td>
  16811. <td>latest archiving date</td>
  16812. </tr>
  16813. <tr>
  16814. <td>parentId</td>
  16815. <td>string¦null</td>
  16816. <td>false</td>
  16817. <td>none</td>
  16818. <td>ID of the parent card</td>
  16819. </tr>
  16820. <tr>
  16821. <td>listId</td>
  16822. <td>string¦null</td>
  16823. <td>false</td>
  16824. <td>none</td>
  16825. <td>List ID where the card is</td>
  16826. </tr>
  16827. <tr>
  16828. <td>swimlaneId</td>
  16829. <td>string</td>
  16830. <td>true</td>
  16831. <td>none</td>
  16832. <td>Swimlane ID where the card is</td>
  16833. </tr>
  16834. <tr>
  16835. <td>boardId</td>
  16836. <td>string¦null</td>
  16837. <td>false</td>
  16838. <td>none</td>
  16839. <td>Board ID of the card</td>
  16840. </tr>
  16841. <tr>
  16842. <td>coverId</td>
  16843. <td>string¦null</td>
  16844. <td>false</td>
  16845. <td>none</td>
  16846. <td>Cover ID of the card</td>
  16847. </tr>
  16848. <tr>
  16849. <td>color</td>
  16850. <td>string¦null</td>
  16851. <td>false</td>
  16852. <td>none</td>
  16853. <td>none</td>
  16854. </tr>
  16855. <tr>
  16856. <td>createdAt</td>
  16857. <td>string</td>
  16858. <td>true</td>
  16859. <td>none</td>
  16860. <td>creation date</td>
  16861. </tr>
  16862. <tr>
  16863. <td>modifiedAt</td>
  16864. <td>string</td>
  16865. <td>true</td>
  16866. <td>none</td>
  16867. <td>none</td>
  16868. </tr>
  16869. <tr>
  16870. <td>customFields</td>
  16871. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  16872. <td>false</td>
  16873. <td>none</td>
  16874. <td>list of custom fields</td>
  16875. </tr>
  16876. <tr>
  16877. <td>dateLastActivity</td>
  16878. <td>string</td>
  16879. <td>true</td>
  16880. <td>none</td>
  16881. <td>Date of last activity</td>
  16882. </tr>
  16883. <tr>
  16884. <td>description</td>
  16885. <td>string¦null</td>
  16886. <td>false</td>
  16887. <td>none</td>
  16888. <td>description of the card</td>
  16889. </tr>
  16890. <tr>
  16891. <td>requestedBy</td>
  16892. <td>string¦null</td>
  16893. <td>false</td>
  16894. <td>none</td>
  16895. <td>who requested the card (ID of the user)</td>
  16896. </tr>
  16897. <tr>
  16898. <td>assignedBy</td>
  16899. <td>string¦null</td>
  16900. <td>false</td>
  16901. <td>none</td>
  16902. <td>who assigned the card (ID of the user)</td>
  16903. </tr>
  16904. <tr>
  16905. <td>labelIds</td>
  16906. <td>[string]¦null</td>
  16907. <td>false</td>
  16908. <td>none</td>
  16909. <td>list of labels ID the card has</td>
  16910. </tr>
  16911. <tr>
  16912. <td>members</td>
  16913. <td>[string]¦null</td>
  16914. <td>false</td>
  16915. <td>none</td>
  16916. <td>list of members (user IDs)</td>
  16917. </tr>
  16918. <tr>
  16919. <td>assignees</td>
  16920. <td>[string]¦null</td>
  16921. <td>false</td>
  16922. <td>none</td>
  16923. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  16924. </tr>
  16925. <tr>
  16926. <td>receivedAt</td>
  16927. <td>string¦null</td>
  16928. <td>false</td>
  16929. <td>none</td>
  16930. <td>Date the card was received</td>
  16931. </tr>
  16932. <tr>
  16933. <td>startAt</td>
  16934. <td>string¦null</td>
  16935. <td>false</td>
  16936. <td>none</td>
  16937. <td>Date the card was started to be worked on</td>
  16938. </tr>
  16939. <tr>
  16940. <td>dueAt</td>
  16941. <td>string¦null</td>
  16942. <td>false</td>
  16943. <td>none</td>
  16944. <td>Date the card is due</td>
  16945. </tr>
  16946. <tr>
  16947. <td>endAt</td>
  16948. <td>string¦null</td>
  16949. <td>false</td>
  16950. <td>none</td>
  16951. <td>Date the card ended</td>
  16952. </tr>
  16953. <tr>
  16954. <td>spentTime</td>
  16955. <td>number¦null</td>
  16956. <td>false</td>
  16957. <td>none</td>
  16958. <td>How much time has been spent on this</td>
  16959. </tr>
  16960. <tr>
  16961. <td>isOvertime</td>
  16962. <td>boolean¦null</td>
  16963. <td>false</td>
  16964. <td>none</td>
  16965. <td>is the card over time?</td>
  16966. </tr>
  16967. <tr>
  16968. <td>userId</td>
  16969. <td>string</td>
  16970. <td>true</td>
  16971. <td>none</td>
  16972. <td>user ID of the author of the card</td>
  16973. </tr>
  16974. <tr>
  16975. <td>sort</td>
  16976. <td>number¦null</td>
  16977. <td>false</td>
  16978. <td>none</td>
  16979. <td>Sort value</td>
  16980. </tr>
  16981. <tr>
  16982. <td>subtaskSort</td>
  16983. <td>number¦null</td>
  16984. <td>false</td>
  16985. <td>none</td>
  16986. <td>subtask sort value</td>
  16987. </tr>
  16988. <tr>
  16989. <td>type</td>
  16990. <td>string</td>
  16991. <td>true</td>
  16992. <td>none</td>
  16993. <td>type of the card</td>
  16994. </tr>
  16995. <tr>
  16996. <td>linkedId</td>
  16997. <td>string¦null</td>
  16998. <td>false</td>
  16999. <td>none</td>
  17000. <td>ID of the linked card</td>
  17001. </tr>
  17002. <tr>
  17003. <td>vote</td>
  17004. <td><a href="#schemacardsvote">CardsVote</a></td>
  17005. <td>false</td>
  17006. <td>none</td>
  17007. <td>none</td>
  17008. </tr>
  17009. <tr>
  17010. <td>poker</td>
  17011. <td><a href="#schemacardspoker">CardsPoker</a></td>
  17012. <td>false</td>
  17013. <td>none</td>
  17014. <td>none</td>
  17015. </tr>
  17016. <tr>
  17017. <td>targetId_gantt</td>
  17018. <td>[string]¦null</td>
  17019. <td>false</td>
  17020. <td>none</td>
  17021. <td>ID of card which is the child link in gantt view</td>
  17022. </tr>
  17023. <tr>
  17024. <td>linkType_gantt</td>
  17025. <td>[number]¦null</td>
  17026. <td>false</td>
  17027. <td>none</td>
  17028. <td>ID of card which is the parent link in gantt view</td>
  17029. </tr>
  17030. <tr>
  17031. <td>linkId_gantt</td>
  17032. <td>[string]¦null</td>
  17033. <td>false</td>
  17034. <td>none</td>
  17035. <td>ID of card which is the parent link in gantt view</td>
  17036. </tr>
  17037. <tr>
  17038. <td>cardNumber</td>
  17039. <td>number¦null</td>
  17040. <td>false</td>
  17041. <td>none</td>
  17042. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  17043. </tr>
  17044. </tbody>
  17045. </table>
  17046. <h4 id="enumerated-values-3">Enumerated Values</h4>
  17047. <table>
  17048. <thead>
  17049. <tr>
  17050. <th>Property</th>
  17051. <th>Value</th>
  17052. </tr>
  17053. </thead>
  17054. <tbody>
  17055. <tr>
  17056. <td>color</td>
  17057. <td>white</td>
  17058. </tr>
  17059. <tr>
  17060. <td>color</td>
  17061. <td>green</td>
  17062. </tr>
  17063. <tr>
  17064. <td>color</td>
  17065. <td>yellow</td>
  17066. </tr>
  17067. <tr>
  17068. <td>color</td>
  17069. <td>orange</td>
  17070. </tr>
  17071. <tr>
  17072. <td>color</td>
  17073. <td>red</td>
  17074. </tr>
  17075. <tr>
  17076. <td>color</td>
  17077. <td>purple</td>
  17078. </tr>
  17079. <tr>
  17080. <td>color</td>
  17081. <td>blue</td>
  17082. </tr>
  17083. <tr>
  17084. <td>color</td>
  17085. <td>sky</td>
  17086. </tr>
  17087. <tr>
  17088. <td>color</td>
  17089. <td>lime</td>
  17090. </tr>
  17091. <tr>
  17092. <td>color</td>
  17093. <td>pink</td>
  17094. </tr>
  17095. <tr>
  17096. <td>color</td>
  17097. <td>black</td>
  17098. </tr>
  17099. <tr>
  17100. <td>color</td>
  17101. <td>silver</td>
  17102. </tr>
  17103. <tr>
  17104. <td>color</td>
  17105. <td>peachpuff</td>
  17106. </tr>
  17107. <tr>
  17108. <td>color</td>
  17109. <td>crimson</td>
  17110. </tr>
  17111. <tr>
  17112. <td>color</td>
  17113. <td>plum</td>
  17114. </tr>
  17115. <tr>
  17116. <td>color</td>
  17117. <td>darkgreen</td>
  17118. </tr>
  17119. <tr>
  17120. <td>color</td>
  17121. <td>slateblue</td>
  17122. </tr>
  17123. <tr>
  17124. <td>color</td>
  17125. <td>magenta</td>
  17126. </tr>
  17127. <tr>
  17128. <td>color</td>
  17129. <td>gold</td>
  17130. </tr>
  17131. <tr>
  17132. <td>color</td>
  17133. <td>navy</td>
  17134. </tr>
  17135. <tr>
  17136. <td>color</td>
  17137. <td>gray</td>
  17138. </tr>
  17139. <tr>
  17140. <td>color</td>
  17141. <td>saddlebrown</td>
  17142. </tr>
  17143. <tr>
  17144. <td>color</td>
  17145. <td>paleturquoise</td>
  17146. </tr>
  17147. <tr>
  17148. <td>color</td>
  17149. <td>mistyrose</td>
  17150. </tr>
  17151. <tr>
  17152. <td>color</td>
  17153. <td>indigo</td>
  17154. </tr>
  17155. </tbody>
  17156. </table>
  17157. <h2 id="tocs_cardsvote">CardsVote</h2>
  17158. <p><a id="schemacardsvote"></a>
  17159. <a id="schema_CardsVote"></a>
  17160. <a id="tocScardsvote"></a>
  17161. <a id="tocscardsvote"></a></p>
  17162. <pre class="highlight tab tab-json"><code>{
  17163. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17164. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17165. <span class="hljs-string">&quot;string&quot;</span>
  17166. ],
  17167. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17168. <span class="hljs-string">&quot;string&quot;</span>
  17169. ],
  17170. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17171. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17172. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17173. }
  17174. </code></pre>
  17175. <h3 id="properties-8">Properties</h3>
  17176. <table>
  17177. <thead>
  17178. <tr>
  17179. <th>Name</th>
  17180. <th>Type</th>
  17181. <th>Required</th>
  17182. <th>Restrictions</th>
  17183. <th>Description</th>
  17184. </tr>
  17185. </thead>
  17186. <tbody>
  17187. <tr>
  17188. <td>question</td>
  17189. <td>string</td>
  17190. <td>true</td>
  17191. <td>none</td>
  17192. <td>none</td>
  17193. </tr>
  17194. <tr>
  17195. <td>positive</td>
  17196. <td>[string]</td>
  17197. <td>false</td>
  17198. <td>none</td>
  17199. <td>list of members (user IDs)</td>
  17200. </tr>
  17201. <tr>
  17202. <td>negative</td>
  17203. <td>[string]</td>
  17204. <td>false</td>
  17205. <td>none</td>
  17206. <td>list of members (user IDs)</td>
  17207. </tr>
  17208. <tr>
  17209. <td>end</td>
  17210. <td>string</td>
  17211. <td>false</td>
  17212. <td>none</td>
  17213. <td>none</td>
  17214. </tr>
  17215. <tr>
  17216. <td>public</td>
  17217. <td>boolean</td>
  17218. <td>true</td>
  17219. <td>none</td>
  17220. <td>none</td>
  17221. </tr>
  17222. <tr>
  17223. <td>allowNonBoardMembers</td>
  17224. <td>boolean</td>
  17225. <td>true</td>
  17226. <td>none</td>
  17227. <td>none</td>
  17228. </tr>
  17229. </tbody>
  17230. </table>
  17231. <h2 id="tocs_cardspoker">CardsPoker</h2>
  17232. <p><a id="schemacardspoker"></a>
  17233. <a id="schema_CardsPoker"></a>
  17234. <a id="tocScardspoker"></a>
  17235. <a id="tocscardspoker"></a></p>
  17236. <pre class="highlight tab tab-json"><code>{
  17237. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17238. <span class="hljs-attr">&quot;one&quot;</span>: [
  17239. <span class="hljs-string">&quot;string&quot;</span>
  17240. ],
  17241. <span class="hljs-attr">&quot;two&quot;</span>: [
  17242. <span class="hljs-string">&quot;string&quot;</span>
  17243. ],
  17244. <span class="hljs-attr">&quot;three&quot;</span>: [
  17245. <span class="hljs-string">&quot;string&quot;</span>
  17246. ],
  17247. <span class="hljs-attr">&quot;five&quot;</span>: [
  17248. <span class="hljs-string">&quot;string&quot;</span>
  17249. ],
  17250. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17251. <span class="hljs-string">&quot;string&quot;</span>
  17252. ],
  17253. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17254. <span class="hljs-string">&quot;string&quot;</span>
  17255. ],
  17256. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17257. <span class="hljs-string">&quot;string&quot;</span>
  17258. ],
  17259. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17260. <span class="hljs-string">&quot;string&quot;</span>
  17261. ],
  17262. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17263. <span class="hljs-string">&quot;string&quot;</span>
  17264. ],
  17265. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17266. <span class="hljs-string">&quot;string&quot;</span>
  17267. ],
  17268. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17269. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17270. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17271. }
  17272. </code></pre>
  17273. <h3 id="properties-9">Properties</h3>
  17274. <table>
  17275. <thead>
  17276. <tr>
  17277. <th>Name</th>
  17278. <th>Type</th>
  17279. <th>Required</th>
  17280. <th>Restrictions</th>
  17281. <th>Description</th>
  17282. </tr>
  17283. </thead>
  17284. <tbody>
  17285. <tr>
  17286. <td>question</td>
  17287. <td>boolean</td>
  17288. <td>true</td>
  17289. <td>none</td>
  17290. <td>none</td>
  17291. </tr>
  17292. <tr>
  17293. <td>one</td>
  17294. <td>[string]</td>
  17295. <td>false</td>
  17296. <td>none</td>
  17297. <td>poker card one</td>
  17298. </tr>
  17299. <tr>
  17300. <td>two</td>
  17301. <td>[string]</td>
  17302. <td>false</td>
  17303. <td>none</td>
  17304. <td>poker card two</td>
  17305. </tr>
  17306. <tr>
  17307. <td>three</td>
  17308. <td>[string]</td>
  17309. <td>false</td>
  17310. <td>none</td>
  17311. <td>poker card three</td>
  17312. </tr>
  17313. <tr>
  17314. <td>five</td>
  17315. <td>[string]</td>
  17316. <td>false</td>
  17317. <td>none</td>
  17318. <td>poker card five</td>
  17319. </tr>
  17320. <tr>
  17321. <td>eight</td>
  17322. <td>[string]</td>
  17323. <td>false</td>
  17324. <td>none</td>
  17325. <td>poker card eight</td>
  17326. </tr>
  17327. <tr>
  17328. <td>thirteen</td>
  17329. <td>[string]</td>
  17330. <td>false</td>
  17331. <td>none</td>
  17332. <td>poker card thirteen</td>
  17333. </tr>
  17334. <tr>
  17335. <td>twenty</td>
  17336. <td>[string]</td>
  17337. <td>false</td>
  17338. <td>none</td>
  17339. <td>poker card twenty</td>
  17340. </tr>
  17341. <tr>
  17342. <td>forty</td>
  17343. <td>[string]</td>
  17344. <td>false</td>
  17345. <td>none</td>
  17346. <td>poker card forty</td>
  17347. </tr>
  17348. <tr>
  17349. <td>oneHundred</td>
  17350. <td>[string]</td>
  17351. <td>false</td>
  17352. <td>none</td>
  17353. <td>poker card oneHundred</td>
  17354. </tr>
  17355. <tr>
  17356. <td>unsure</td>
  17357. <td>[string]</td>
  17358. <td>false</td>
  17359. <td>none</td>
  17360. <td>poker card unsure</td>
  17361. </tr>
  17362. <tr>
  17363. <td>end</td>
  17364. <td>string</td>
  17365. <td>false</td>
  17366. <td>none</td>
  17367. <td>none</td>
  17368. </tr>
  17369. <tr>
  17370. <td>allowNonBoardMembers</td>
  17371. <td>boolean</td>
  17372. <td>true</td>
  17373. <td>none</td>
  17374. <td>none</td>
  17375. </tr>
  17376. <tr>
  17377. <td>estimation</td>
  17378. <td>number</td>
  17379. <td>false</td>
  17380. <td>none</td>
  17381. <td>poker estimation value</td>
  17382. </tr>
  17383. </tbody>
  17384. </table>
  17385. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  17386. <p><a id="schemacardscustomfields"></a>
  17387. <a id="schema_CardsCustomfields"></a>
  17388. <a id="tocScardscustomfields"></a>
  17389. <a id="tocscardscustomfields"></a></p>
  17390. <pre class="highlight tab tab-json"><code>{}
  17391. </code></pre>
  17392. <h3 id="properties-10">Properties</h3>
  17393. <p><em>None</em></p>
  17394. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  17395. <p><a id="schemachecklistitems"></a>
  17396. <a id="schema_ChecklistItems"></a>
  17397. <a id="tocSchecklistitems"></a>
  17398. <a id="tocschecklistitems"></a></p>
  17399. <pre class="highlight tab tab-json"><code>{
  17400. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17401. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17402. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  17403. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17404. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17405. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17406. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17407. }
  17408. </code></pre>
  17409. <p>An item in a checklist</p>
  17410. <h3 id="properties-11">Properties</h3>
  17411. <table>
  17412. <thead>
  17413. <tr>
  17414. <th>Name</th>
  17415. <th>Type</th>
  17416. <th>Required</th>
  17417. <th>Restrictions</th>
  17418. <th>Description</th>
  17419. </tr>
  17420. </thead>
  17421. <tbody>
  17422. <tr>
  17423. <td>title</td>
  17424. <td>string</td>
  17425. <td>true</td>
  17426. <td>none</td>
  17427. <td>the text of the item</td>
  17428. </tr>
  17429. <tr>
  17430. <td>sort</td>
  17431. <td>number</td>
  17432. <td>true</td>
  17433. <td>none</td>
  17434. <td>the sorting field of the item</td>
  17435. </tr>
  17436. <tr>
  17437. <td>isFinished</td>
  17438. <td>boolean</td>
  17439. <td>true</td>
  17440. <td>none</td>
  17441. <td>Is the item checked?</td>
  17442. </tr>
  17443. <tr>
  17444. <td>checklistId</td>
  17445. <td>string</td>
  17446. <td>true</td>
  17447. <td>none</td>
  17448. <td>the checklist ID the item is attached to</td>
  17449. </tr>
  17450. <tr>
  17451. <td>cardId</td>
  17452. <td>string</td>
  17453. <td>true</td>
  17454. <td>none</td>
  17455. <td>the card ID the item is attached to</td>
  17456. </tr>
  17457. <tr>
  17458. <td>createdAt</td>
  17459. <td>string¦null</td>
  17460. <td>false</td>
  17461. <td>none</td>
  17462. <td>none</td>
  17463. </tr>
  17464. <tr>
  17465. <td>modifiedAt</td>
  17466. <td>string</td>
  17467. <td>true</td>
  17468. <td>none</td>
  17469. <td>none</td>
  17470. </tr>
  17471. </tbody>
  17472. </table>
  17473. <h2 id="tocs_checklists">Checklists</h2>
  17474. <p><a id="schemachecklists"></a>
  17475. <a id="schema_Checklists"></a>
  17476. <a id="tocSchecklists"></a>
  17477. <a id="tocschecklists"></a></p>
  17478. <pre class="highlight tab tab-json"><code>{
  17479. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17480. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17481. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17482. <span class="hljs-attr">&quot;showAtMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  17483. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17484. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17485. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  17486. }
  17487. </code></pre>
  17488. <p>A Checklist</p>
  17489. <h3 id="properties-12">Properties</h3>
  17490. <table>
  17491. <thead>
  17492. <tr>
  17493. <th>Name</th>
  17494. <th>Type</th>
  17495. <th>Required</th>
  17496. <th>Restrictions</th>
  17497. <th>Description</th>
  17498. </tr>
  17499. </thead>
  17500. <tbody>
  17501. <tr>
  17502. <td>cardId</td>
  17503. <td>string</td>
  17504. <td>true</td>
  17505. <td>none</td>
  17506. <td>The ID of the card the checklist is in</td>
  17507. </tr>
  17508. <tr>
  17509. <td>title</td>
  17510. <td>string</td>
  17511. <td>true</td>
  17512. <td>none</td>
  17513. <td>the title of the checklist</td>
  17514. </tr>
  17515. <tr>
  17516. <td>finishedAt</td>
  17517. <td>string¦null</td>
  17518. <td>false</td>
  17519. <td>none</td>
  17520. <td>When was the checklist finished</td>
  17521. </tr>
  17522. <tr>
  17523. <td>showAtMinicard</td>
  17524. <td>boolean¦null</td>
  17525. <td>false</td>
  17526. <td>none</td>
  17527. <td>Show at minicard. Default: false.</td>
  17528. </tr>
  17529. <tr>
  17530. <td>createdAt</td>
  17531. <td>string</td>
  17532. <td>true</td>
  17533. <td>none</td>
  17534. <td>Creation date of the checklist</td>
  17535. </tr>
  17536. <tr>
  17537. <td>modifiedAt</td>
  17538. <td>string</td>
  17539. <td>true</td>
  17540. <td>none</td>
  17541. <td>none</td>
  17542. </tr>
  17543. <tr>
  17544. <td>sort</td>
  17545. <td>number</td>
  17546. <td>true</td>
  17547. <td>none</td>
  17548. <td>sorting value of the checklist</td>
  17549. </tr>
  17550. </tbody>
  17551. </table>
  17552. <h2 id="tocs_customfields">CustomFields</h2>
  17553. <p><a id="schemacustomfields"></a>
  17554. <a id="schema_CustomFields"></a>
  17555. <a id="tocScustomfields"></a>
  17556. <a id="tocscustomfields"></a></p>
  17557. <pre class="highlight tab tab-json"><code>{
  17558. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  17559. <span class="hljs-string">&quot;string&quot;</span>
  17560. ],
  17561. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17562. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  17563. <span class="hljs-attr">&quot;settings&quot;</span>: {
  17564. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17565. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17566. {}
  17567. ],
  17568. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17569. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17570. },
  17571. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17572. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17573. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17574. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  17575. <span class="hljs-attr">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  17576. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17577. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17578. }
  17579. </code></pre>
  17580. <p>A custom field on a card in the board</p>
  17581. <h3 id="properties-13">Properties</h3>
  17582. <table>
  17583. <thead>
  17584. <tr>
  17585. <th>Name</th>
  17586. <th>Type</th>
  17587. <th>Required</th>
  17588. <th>Restrictions</th>
  17589. <th>Description</th>
  17590. </tr>
  17591. </thead>
  17592. <tbody>
  17593. <tr>
  17594. <td>boardIds</td>
  17595. <td>[string]</td>
  17596. <td>true</td>
  17597. <td>none</td>
  17598. <td>the ID of the board</td>
  17599. </tr>
  17600. <tr>
  17601. <td>name</td>
  17602. <td>string</td>
  17603. <td>true</td>
  17604. <td>none</td>
  17605. <td>name of the custom field</td>
  17606. </tr>
  17607. <tr>
  17608. <td>type</td>
  17609. <td>string</td>
  17610. <td>true</td>
  17611. <td>none</td>
  17612. <td>type of the custom field</td>
  17613. </tr>
  17614. <tr>
  17615. <td>settings</td>
  17616. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  17617. <td>true</td>
  17618. <td>none</td>
  17619. <td>none</td>
  17620. </tr>
  17621. <tr>
  17622. <td>showOnCard</td>
  17623. <td>boolean</td>
  17624. <td>true</td>
  17625. <td>none</td>
  17626. <td>should we show on the cards this custom field</td>
  17627. </tr>
  17628. <tr>
  17629. <td>automaticallyOnCard</td>
  17630. <td>boolean</td>
  17631. <td>true</td>
  17632. <td>none</td>
  17633. <td>should the custom fields automatically be added on cards?</td>
  17634. </tr>
  17635. <tr>
  17636. <td>alwaysOnCard</td>
  17637. <td>boolean</td>
  17638. <td>true</td>
  17639. <td>none</td>
  17640. <td>should the custom field be automatically added to all cards?</td>
  17641. </tr>
  17642. <tr>
  17643. <td>showLabelOnMiniCard</td>
  17644. <td>boolean</td>
  17645. <td>true</td>
  17646. <td>none</td>
  17647. <td>should the label of the custom field be shown on minicards?</td>
  17648. </tr>
  17649. <tr>
  17650. <td>showSumAtTopOfList</td>
  17651. <td>boolean</td>
  17652. <td>true</td>
  17653. <td>none</td>
  17654. <td>should the sum of the custom fields be shown at top of list?</td>
  17655. </tr>
  17656. <tr>
  17657. <td>createdAt</td>
  17658. <td>string¦null</td>
  17659. <td>false</td>
  17660. <td>none</td>
  17661. <td>none</td>
  17662. </tr>
  17663. <tr>
  17664. <td>modifiedAt</td>
  17665. <td>string</td>
  17666. <td>true</td>
  17667. <td>none</td>
  17668. <td>none</td>
  17669. </tr>
  17670. </tbody>
  17671. </table>
  17672. <h4 id="enumerated-values-4">Enumerated Values</h4>
  17673. <table>
  17674. <thead>
  17675. <tr>
  17676. <th>Property</th>
  17677. <th>Value</th>
  17678. </tr>
  17679. </thead>
  17680. <tbody>
  17681. <tr>
  17682. <td>type</td>
  17683. <td>text</td>
  17684. </tr>
  17685. <tr>
  17686. <td>type</td>
  17687. <td>number</td>
  17688. </tr>
  17689. <tr>
  17690. <td>type</td>
  17691. <td>date</td>
  17692. </tr>
  17693. <tr>
  17694. <td>type</td>
  17695. <td>dropdown</td>
  17696. </tr>
  17697. <tr>
  17698. <td>type</td>
  17699. <td>checkbox</td>
  17700. </tr>
  17701. <tr>
  17702. <td>type</td>
  17703. <td>currency</td>
  17704. </tr>
  17705. <tr>
  17706. <td>type</td>
  17707. <td>stringtemplate</td>
  17708. </tr>
  17709. </tbody>
  17710. </table>
  17711. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  17712. <p><a id="schemacustomfieldssettings"></a>
  17713. <a id="schema_CustomFieldsSettings"></a>
  17714. <a id="tocScustomfieldssettings"></a>
  17715. <a id="tocscustomfieldssettings"></a></p>
  17716. <pre class="highlight tab tab-json"><code>{
  17717. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17718. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17719. {}
  17720. ],
  17721. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17722. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17723. }
  17724. </code></pre>
  17725. <h3 id="properties-14">Properties</h3>
  17726. <table>
  17727. <thead>
  17728. <tr>
  17729. <th>Name</th>
  17730. <th>Type</th>
  17731. <th>Required</th>
  17732. <th>Restrictions</th>
  17733. <th>Description</th>
  17734. </tr>
  17735. </thead>
  17736. <tbody>
  17737. <tr>
  17738. <td>currencyCode</td>
  17739. <td>string</td>
  17740. <td>false</td>
  17741. <td>none</td>
  17742. <td>none</td>
  17743. </tr>
  17744. <tr>
  17745. <td>dropdownItems</td>
  17746. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  17747. <td>false</td>
  17748. <td>none</td>
  17749. <td>list of drop down items objects</td>
  17750. </tr>
  17751. <tr>
  17752. <td>stringtemplateFormat</td>
  17753. <td>string</td>
  17754. <td>false</td>
  17755. <td>none</td>
  17756. <td>none</td>
  17757. </tr>
  17758. <tr>
  17759. <td>stringtemplateSeparator</td>
  17760. <td>string</td>
  17761. <td>false</td>
  17762. <td>none</td>
  17763. <td>none</td>
  17764. </tr>
  17765. </tbody>
  17766. </table>
  17767. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  17768. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  17769. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  17770. <a id="tocScustomfieldssettingsdropdownitems"></a>
  17771. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  17772. <pre class="highlight tab tab-json"><code>{}
  17773. </code></pre>
  17774. <h3 id="properties-15">Properties</h3>
  17775. <p><em>None</em></p>
  17776. <h2 id="tocs_integrations">Integrations</h2>
  17777. <p><a id="schemaintegrations"></a>
  17778. <a id="schema_Integrations"></a>
  17779. <a id="tocSintegrations"></a>
  17780. <a id="tocsintegrations"></a></p>
  17781. <pre class="highlight tab tab-json"><code>{
  17782. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  17783. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17784. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17785. <span class="hljs-attr">&quot;activities&quot;</span>: [
  17786. <span class="hljs-string">&quot;string&quot;</span>
  17787. ],
  17788. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17789. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17790. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17791. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17792. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17793. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17794. }
  17795. </code></pre>
  17796. <p>Integration with third-party applications</p>
  17797. <h3 id="properties-16">Properties</h3>
  17798. <table>
  17799. <thead>
  17800. <tr>
  17801. <th>Name</th>
  17802. <th>Type</th>
  17803. <th>Required</th>
  17804. <th>Restrictions</th>
  17805. <th>Description</th>
  17806. </tr>
  17807. </thead>
  17808. <tbody>
  17809. <tr>
  17810. <td>enabled</td>
  17811. <td>boolean</td>
  17812. <td>true</td>
  17813. <td>none</td>
  17814. <td>is the integration enabled?</td>
  17815. </tr>
  17816. <tr>
  17817. <td>title</td>
  17818. <td>string¦null</td>
  17819. <td>false</td>
  17820. <td>none</td>
  17821. <td>name of the integration</td>
  17822. </tr>
  17823. <tr>
  17824. <td>type</td>
  17825. <td>string</td>
  17826. <td>true</td>
  17827. <td>none</td>
  17828. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  17829. </tr>
  17830. <tr>
  17831. <td>activities</td>
  17832. <td>[string]</td>
  17833. <td>true</td>
  17834. <td>none</td>
  17835. <td>activities the integration gets triggered (list)</td>
  17836. </tr>
  17837. <tr>
  17838. <td>url</td>
  17839. <td>string</td>
  17840. <td>true</td>
  17841. <td>none</td>
  17842. <td>none</td>
  17843. </tr>
  17844. <tr>
  17845. <td>token</td>
  17846. <td>string¦null</td>
  17847. <td>false</td>
  17848. <td>none</td>
  17849. <td>token of the integration</td>
  17850. </tr>
  17851. <tr>
  17852. <td>boardId</td>
  17853. <td>string</td>
  17854. <td>true</td>
  17855. <td>none</td>
  17856. <td>Board ID of the integration</td>
  17857. </tr>
  17858. <tr>
  17859. <td>createdAt</td>
  17860. <td>string</td>
  17861. <td>true</td>
  17862. <td>none</td>
  17863. <td>Creation date of the integration</td>
  17864. </tr>
  17865. <tr>
  17866. <td>modifiedAt</td>
  17867. <td>string</td>
  17868. <td>true</td>
  17869. <td>none</td>
  17870. <td>none</td>
  17871. </tr>
  17872. <tr>
  17873. <td>userId</td>
  17874. <td>string</td>
  17875. <td>true</td>
  17876. <td>none</td>
  17877. <td>user ID who created the interation</td>
  17878. </tr>
  17879. </tbody>
  17880. </table>
  17881. <h2 id="tocs_lists">Lists</h2>
  17882. <p><a id="schemalists"></a>
  17883. <a id="schema_Lists"></a>
  17884. <a id="tocSlists"></a>
  17885. <a id="tocslists"></a></p>
  17886. <pre class="highlight tab tab-json"><code>{
  17887. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17888. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  17889. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17890. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17891. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17892. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17893. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17894. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17895. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17896. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17897. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  17898. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  17899. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  17900. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  17901. },
  17902. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17903. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17904. <span class="hljs-attr">&quot;collapsed&quot;</span>: <span class="hljs-literal">true</span>
  17905. }
  17906. </code></pre>
  17907. <p>A list (column) in the Wekan board.</p>
  17908. <h3 id="properties-17">Properties</h3>
  17909. <table>
  17910. <thead>
  17911. <tr>
  17912. <th>Name</th>
  17913. <th>Type</th>
  17914. <th>Required</th>
  17915. <th>Restrictions</th>
  17916. <th>Description</th>
  17917. </tr>
  17918. </thead>
  17919. <tbody>
  17920. <tr>
  17921. <td>title</td>
  17922. <td>string</td>
  17923. <td>true</td>
  17924. <td>none</td>
  17925. <td>the title of the list</td>
  17926. </tr>
  17927. <tr>
  17928. <td>starred</td>
  17929. <td>boolean¦null</td>
  17930. <td>false</td>
  17931. <td>none</td>
  17932. <td>if a list is stared<br />then we put it on the top</td>
  17933. </tr>
  17934. <tr>
  17935. <td>archived</td>
  17936. <td>boolean</td>
  17937. <td>true</td>
  17938. <td>none</td>
  17939. <td>is the list archived</td>
  17940. </tr>
  17941. <tr>
  17942. <td>archivedAt</td>
  17943. <td>string¦null</td>
  17944. <td>false</td>
  17945. <td>none</td>
  17946. <td>latest archiving date</td>
  17947. </tr>
  17948. <tr>
  17949. <td>boardId</td>
  17950. <td>string</td>
  17951. <td>true</td>
  17952. <td>none</td>
  17953. <td>the board associated to this list</td>
  17954. </tr>
  17955. <tr>
  17956. <td>swimlaneId</td>
  17957. <td>string</td>
  17958. <td>true</td>
  17959. <td>none</td>
  17960. <td>the swimlane associated to this list. Used for templates</td>
  17961. </tr>
  17962. <tr>
  17963. <td>createdAt</td>
  17964. <td>string</td>
  17965. <td>true</td>
  17966. <td>none</td>
  17967. <td>creation date</td>
  17968. </tr>
  17969. <tr>
  17970. <td>sort</td>
  17971. <td>number¦null</td>
  17972. <td>false</td>
  17973. <td>none</td>
  17974. <td>is the list sorted</td>
  17975. </tr>
  17976. <tr>
  17977. <td>updatedAt</td>
  17978. <td>string¦null</td>
  17979. <td>false</td>
  17980. <td>none</td>
  17981. <td>last update of the list</td>
  17982. </tr>
  17983. <tr>
  17984. <td>modifiedAt</td>
  17985. <td>string</td>
  17986. <td>true</td>
  17987. <td>none</td>
  17988. <td>none</td>
  17989. </tr>
  17990. <tr>
  17991. <td>wipLimit</td>
  17992. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  17993. <td>false</td>
  17994. <td>none</td>
  17995. <td>none</td>
  17996. </tr>
  17997. <tr>
  17998. <td>color</td>
  17999. <td>string¦null</td>
  18000. <td>false</td>
  18001. <td>none</td>
  18002. <td>the color of the list</td>
  18003. </tr>
  18004. <tr>
  18005. <td>type</td>
  18006. <td>string</td>
  18007. <td>true</td>
  18008. <td>none</td>
  18009. <td>The type of list</td>
  18010. </tr>
  18011. <tr>
  18012. <td>collapsed</td>
  18013. <td>boolean</td>
  18014. <td>true</td>
  18015. <td>none</td>
  18016. <td>is the list collapsed</td>
  18017. </tr>
  18018. </tbody>
  18019. </table>
  18020. <h4 id="enumerated-values-5">Enumerated Values</h4>
  18021. <table>
  18022. <thead>
  18023. <tr>
  18024. <th>Property</th>
  18025. <th>Value</th>
  18026. </tr>
  18027. </thead>
  18028. <tbody>
  18029. <tr>
  18030. <td>color</td>
  18031. <td>white</td>
  18032. </tr>
  18033. <tr>
  18034. <td>color</td>
  18035. <td>green</td>
  18036. </tr>
  18037. <tr>
  18038. <td>color</td>
  18039. <td>yellow</td>
  18040. </tr>
  18041. <tr>
  18042. <td>color</td>
  18043. <td>orange</td>
  18044. </tr>
  18045. <tr>
  18046. <td>color</td>
  18047. <td>red</td>
  18048. </tr>
  18049. <tr>
  18050. <td>color</td>
  18051. <td>purple</td>
  18052. </tr>
  18053. <tr>
  18054. <td>color</td>
  18055. <td>blue</td>
  18056. </tr>
  18057. <tr>
  18058. <td>color</td>
  18059. <td>sky</td>
  18060. </tr>
  18061. <tr>
  18062. <td>color</td>
  18063. <td>lime</td>
  18064. </tr>
  18065. <tr>
  18066. <td>color</td>
  18067. <td>pink</td>
  18068. </tr>
  18069. <tr>
  18070. <td>color</td>
  18071. <td>black</td>
  18072. </tr>
  18073. <tr>
  18074. <td>color</td>
  18075. <td>silver</td>
  18076. </tr>
  18077. <tr>
  18078. <td>color</td>
  18079. <td>peachpuff</td>
  18080. </tr>
  18081. <tr>
  18082. <td>color</td>
  18083. <td>crimson</td>
  18084. </tr>
  18085. <tr>
  18086. <td>color</td>
  18087. <td>plum</td>
  18088. </tr>
  18089. <tr>
  18090. <td>color</td>
  18091. <td>darkgreen</td>
  18092. </tr>
  18093. <tr>
  18094. <td>color</td>
  18095. <td>slateblue</td>
  18096. </tr>
  18097. <tr>
  18098. <td>color</td>
  18099. <td>magenta</td>
  18100. </tr>
  18101. <tr>
  18102. <td>color</td>
  18103. <td>gold</td>
  18104. </tr>
  18105. <tr>
  18106. <td>color</td>
  18107. <td>navy</td>
  18108. </tr>
  18109. <tr>
  18110. <td>color</td>
  18111. <td>gray</td>
  18112. </tr>
  18113. <tr>
  18114. <td>color</td>
  18115. <td>saddlebrown</td>
  18116. </tr>
  18117. <tr>
  18118. <td>color</td>
  18119. <td>paleturquoise</td>
  18120. </tr>
  18121. <tr>
  18122. <td>color</td>
  18123. <td>mistyrose</td>
  18124. </tr>
  18125. <tr>
  18126. <td>color</td>
  18127. <td>indigo</td>
  18128. </tr>
  18129. </tbody>
  18130. </table>
  18131. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  18132. <p><a id="schemalistswiplimit"></a>
  18133. <a id="schema_ListsWiplimit"></a>
  18134. <a id="tocSlistswiplimit"></a>
  18135. <a id="tocslistswiplimit"></a></p>
  18136. <pre class="highlight tab tab-json"><code>{
  18137. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18138. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18139. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18140. }
  18141. </code></pre>
  18142. <h3 id="properties-18">Properties</h3>
  18143. <table>
  18144. <thead>
  18145. <tr>
  18146. <th>Name</th>
  18147. <th>Type</th>
  18148. <th>Required</th>
  18149. <th>Restrictions</th>
  18150. <th>Description</th>
  18151. </tr>
  18152. </thead>
  18153. <tbody>
  18154. <tr>
  18155. <td>value</td>
  18156. <td>number</td>
  18157. <td>true</td>
  18158. <td>none</td>
  18159. <td>value of the WIP</td>
  18160. </tr>
  18161. <tr>
  18162. <td>enabled</td>
  18163. <td>boolean</td>
  18164. <td>true</td>
  18165. <td>none</td>
  18166. <td>is the WIP enabled</td>
  18167. </tr>
  18168. <tr>
  18169. <td>soft</td>
  18170. <td>boolean</td>
  18171. <td>true</td>
  18172. <td>none</td>
  18173. <td>is the WIP a soft or hard requirement</td>
  18174. </tr>
  18175. </tbody>
  18176. </table>
  18177. <h2 id="tocs_swimlanes">Swimlanes</h2>
  18178. <p><a id="schemaswimlanes"></a>
  18179. <a id="schema_Swimlanes"></a>
  18180. <a id="tocSswimlanes"></a>
  18181. <a id="tocsswimlanes"></a></p>
  18182. <pre class="highlight tab tab-json"><code>{
  18183. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18184. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18185. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18186. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18187. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18188. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18189. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18190. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18191. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18192. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18193. <span class="hljs-attr">&quot;collapsed&quot;</span>: <span class="hljs-literal">true</span>
  18194. }
  18195. </code></pre>
  18196. <p>A swimlane is an line in the kaban board.</p>
  18197. <h3 id="properties-19">Properties</h3>
  18198. <table>
  18199. <thead>
  18200. <tr>
  18201. <th>Name</th>
  18202. <th>Type</th>
  18203. <th>Required</th>
  18204. <th>Restrictions</th>
  18205. <th>Description</th>
  18206. </tr>
  18207. </thead>
  18208. <tbody>
  18209. <tr>
  18210. <td>title</td>
  18211. <td>string</td>
  18212. <td>true</td>
  18213. <td>none</td>
  18214. <td>the title of the swimlane</td>
  18215. </tr>
  18216. <tr>
  18217. <td>archived</td>
  18218. <td>boolean</td>
  18219. <td>true</td>
  18220. <td>none</td>
  18221. <td>is the swimlane archived?</td>
  18222. </tr>
  18223. <tr>
  18224. <td>archivedAt</td>
  18225. <td>string¦null</td>
  18226. <td>false</td>
  18227. <td>none</td>
  18228. <td>latest archiving date of the swimlane</td>
  18229. </tr>
  18230. <tr>
  18231. <td>boardId</td>
  18232. <td>string</td>
  18233. <td>true</td>
  18234. <td>none</td>
  18235. <td>the ID of the board the swimlane is attached to</td>
  18236. </tr>
  18237. <tr>
  18238. <td>createdAt</td>
  18239. <td>string</td>
  18240. <td>true</td>
  18241. <td>none</td>
  18242. <td>creation date of the swimlane</td>
  18243. </tr>
  18244. <tr>
  18245. <td>sort</td>
  18246. <td>number¦null</td>
  18247. <td>false</td>
  18248. <td>none</td>
  18249. <td>the sort value of the swimlane</td>
  18250. </tr>
  18251. <tr>
  18252. <td>color</td>
  18253. <td>string¦null</td>
  18254. <td>false</td>
  18255. <td>none</td>
  18256. <td>the color of the swimlane</td>
  18257. </tr>
  18258. <tr>
  18259. <td>updatedAt</td>
  18260. <td>string¦null</td>
  18261. <td>false</td>
  18262. <td>none</td>
  18263. <td>when was the swimlane last edited</td>
  18264. </tr>
  18265. <tr>
  18266. <td>modifiedAt</td>
  18267. <td>string</td>
  18268. <td>true</td>
  18269. <td>none</td>
  18270. <td>none</td>
  18271. </tr>
  18272. <tr>
  18273. <td>type</td>
  18274. <td>string</td>
  18275. <td>true</td>
  18276. <td>none</td>
  18277. <td>The type of swimlane</td>
  18278. </tr>
  18279. <tr>
  18280. <td>collapsed</td>
  18281. <td>boolean</td>
  18282. <td>true</td>
  18283. <td>none</td>
  18284. <td>is the swimlane collapsed</td>
  18285. </tr>
  18286. </tbody>
  18287. </table>
  18288. <h4 id="enumerated-values-6">Enumerated Values</h4>
  18289. <table>
  18290. <thead>
  18291. <tr>
  18292. <th>Property</th>
  18293. <th>Value</th>
  18294. </tr>
  18295. </thead>
  18296. <tbody>
  18297. <tr>
  18298. <td>color</td>
  18299. <td>white</td>
  18300. </tr>
  18301. <tr>
  18302. <td>color</td>
  18303. <td>green</td>
  18304. </tr>
  18305. <tr>
  18306. <td>color</td>
  18307. <td>yellow</td>
  18308. </tr>
  18309. <tr>
  18310. <td>color</td>
  18311. <td>orange</td>
  18312. </tr>
  18313. <tr>
  18314. <td>color</td>
  18315. <td>red</td>
  18316. </tr>
  18317. <tr>
  18318. <td>color</td>
  18319. <td>purple</td>
  18320. </tr>
  18321. <tr>
  18322. <td>color</td>
  18323. <td>blue</td>
  18324. </tr>
  18325. <tr>
  18326. <td>color</td>
  18327. <td>sky</td>
  18328. </tr>
  18329. <tr>
  18330. <td>color</td>
  18331. <td>lime</td>
  18332. </tr>
  18333. <tr>
  18334. <td>color</td>
  18335. <td>pink</td>
  18336. </tr>
  18337. <tr>
  18338. <td>color</td>
  18339. <td>black</td>
  18340. </tr>
  18341. <tr>
  18342. <td>color</td>
  18343. <td>silver</td>
  18344. </tr>
  18345. <tr>
  18346. <td>color</td>
  18347. <td>peachpuff</td>
  18348. </tr>
  18349. <tr>
  18350. <td>color</td>
  18351. <td>crimson</td>
  18352. </tr>
  18353. <tr>
  18354. <td>color</td>
  18355. <td>plum</td>
  18356. </tr>
  18357. <tr>
  18358. <td>color</td>
  18359. <td>darkgreen</td>
  18360. </tr>
  18361. <tr>
  18362. <td>color</td>
  18363. <td>slateblue</td>
  18364. </tr>
  18365. <tr>
  18366. <td>color</td>
  18367. <td>magenta</td>
  18368. </tr>
  18369. <tr>
  18370. <td>color</td>
  18371. <td>gold</td>
  18372. </tr>
  18373. <tr>
  18374. <td>color</td>
  18375. <td>navy</td>
  18376. </tr>
  18377. <tr>
  18378. <td>color</td>
  18379. <td>gray</td>
  18380. </tr>
  18381. <tr>
  18382. <td>color</td>
  18383. <td>saddlebrown</td>
  18384. </tr>
  18385. <tr>
  18386. <td>color</td>
  18387. <td>paleturquoise</td>
  18388. </tr>
  18389. <tr>
  18390. <td>color</td>
  18391. <td>mistyrose</td>
  18392. </tr>
  18393. <tr>
  18394. <td>color</td>
  18395. <td>indigo</td>
  18396. </tr>
  18397. </tbody>
  18398. </table>
  18399. <!-- Renderer: Shins v2.6.0 -->
  18400. <!-- Generator: Widdershins v4.0.1 -->
  18401. <!-- backwards compatibility -->
  18402. <!-- backwards compatibility -->
  18403. <!-- backwards compatibility -->
  18404. <!-- backwards compatibility -->
  18405. <!-- backwards compatibility -->
  18406. <!-- backwards compatibility -->
  18407. <!-- backwards compatibility -->
  18408. <!-- backwards compatibility -->
  18409. <!-- backwards compatibility -->
  18410. <!-- backwards compatibility -->
  18411. <!-- backwards compatibility -->
  18412. <!-- backwards compatibility -->
  18413. <!-- backwards compatibility -->
  18414. <!-- backwards compatibility -->
  18415. <!-- backwards compatibility -->
  18416. <!-- backwards compatibility -->
  18417. <!-- backwards compatibility -->
  18418. <!-- backwards compatibility -->
  18419. <!-- backwards compatibility -->
  18420. </div>
  18421. <div class="dark-box">
  18422. <div class="lang-selector">
  18423. <a href="#" data-language-name="shell">Shell</a>
  18424. <a href="#" data-language-name="http">HTTP</a>
  18425. <a href="#" data-language-name="javascript">JavaScript</a>
  18426. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  18427. <a href="#" data-language-name="ruby">Ruby</a>
  18428. <a href="#" data-language-name="python">Python</a>
  18429. <a href="#" data-language-name="java">Java</a>
  18430. <a href="#" data-language-name="go">Go</a>
  18431. <a href="#" data-language-name="php">PHP</a>
  18432. </div>
  18433. </div>
  18434. </div>
  18435. </body>
  18436. </html>