wekan.html 857 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033
  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.07</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.07">Wekan REST API v7.07</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="#add_board_label" class="toc-h2 toc-link" data-title="">add_board_label</a>
  1409. </li>
  1410. <li>
  1411. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="">set_board_member_permission</a>
  1412. </li>
  1413. <li>
  1414. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="">get_boards_count</a>
  1415. </li>
  1416. <li>
  1417. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="">get_boards_from_user</a>
  1418. </li>
  1419. </ul>
  1420. </li>
  1421. <li>
  1422. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1423. <ul class="toc-list-h2">
  1424. <li>
  1425. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="">get_all_checklists</a>
  1426. </li>
  1427. <li>
  1428. <a href="#new_checklist" class="toc-h2 toc-link" data-title="">new_checklist</a>
  1429. </li>
  1430. <li>
  1431. <a href="#get_checklist" class="toc-h2 toc-link" data-title="">get_checklist</a>
  1432. </li>
  1433. <li>
  1434. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="">delete_checklist</a>
  1435. </li>
  1436. </ul>
  1437. </li>
  1438. <li>
  1439. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1440. <ul class="toc-list-h2">
  1441. <li>
  1442. <a href="#new_checklist_item" class="toc-h2 toc-link" data-title="">new_checklist_item</a>
  1443. </li>
  1444. <li>
  1445. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1446. </li>
  1447. <li>
  1448. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1449. </li>
  1450. <li>
  1451. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1452. </li>
  1453. </ul>
  1454. </li>
  1455. <li>
  1456. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1457. <ul class="toc-list-h2">
  1458. <li>
  1459. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1460. </li>
  1461. <li>
  1462. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1463. </li>
  1464. <li>
  1465. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1466. </li>
  1467. <li>
  1468. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1469. </li>
  1470. </ul>
  1471. </li>
  1472. <li>
  1473. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1474. <ul class="toc-list-h2">
  1475. <li>
  1476. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1477. </li>
  1478. <li>
  1479. <a href="#get_board_cards_count" class="toc-h2 toc-link" data-title="">get_board_cards_count</a>
  1480. </li>
  1481. <li>
  1482. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1483. </li>
  1484. <li>
  1485. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1486. </li>
  1487. <li>
  1488. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1489. </li>
  1490. <li>
  1491. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1492. </li>
  1493. <li>
  1494. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1495. </li>
  1496. <li>
  1497. <a href="#edit_card_custom_field" class="toc-h2 toc-link" data-title="">edit_card_custom_field</a>
  1498. </li>
  1499. <li>
  1500. <a href="#get_list_cards_count" class="toc-h2 toc-link" data-title="">get_list_cards_count</a>
  1501. </li>
  1502. <li>
  1503. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1504. </li>
  1505. </ul>
  1506. </li>
  1507. <li>
  1508. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1509. <ul class="toc-list-h2">
  1510. <li>
  1511. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1512. </li>
  1513. <li>
  1514. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1515. </li>
  1516. <li>
  1517. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1518. </li>
  1519. <li>
  1520. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1521. </li>
  1522. <li>
  1523. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1524. </li>
  1525. <li>
  1526. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1527. </li>
  1528. <li>
  1529. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1530. </li>
  1531. <li>
  1532. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1533. </li>
  1534. </ul>
  1535. </li>
  1536. <li>
  1537. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1538. <ul class="toc-list-h2">
  1539. <li>
  1540. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1541. </li>
  1542. <li>
  1543. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1544. </li>
  1545. <li>
  1546. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1547. </li>
  1548. <li>
  1549. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1550. </li>
  1551. <li>
  1552. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1553. </li>
  1554. <li>
  1555. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1556. </li>
  1557. <li>
  1558. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1559. </li>
  1560. </ul>
  1561. </li>
  1562. <li>
  1563. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1564. <ul class="toc-list-h2">
  1565. <li>
  1566. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1567. </li>
  1568. <li>
  1569. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1570. </li>
  1571. <li>
  1572. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1573. </li>
  1574. <li>
  1575. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1576. </li>
  1577. </ul>
  1578. </li>
  1579. <li>
  1580. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1581. <ul class="toc-list-h2">
  1582. <li>
  1583. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1584. </li>
  1585. <li>
  1586. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1587. </li>
  1588. <li>
  1589. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1590. </li>
  1591. <li>
  1592. <a href="#edit_swimlane" class="toc-h2 toc-link" data-title="">edit_swimlane</a>
  1593. </li>
  1594. <li>
  1595. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1596. </li>
  1597. </ul>
  1598. </li>
  1599. <li>
  1600. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1601. <ul class="toc-list-h2">
  1602. <li>
  1603. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1604. </li>
  1605. <li>
  1606. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1607. </li>
  1608. <li>
  1609. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1610. </li>
  1611. <li>
  1612. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1613. </li>
  1614. <li>
  1615. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1616. </li>
  1617. <li>
  1618. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1619. </li>
  1620. <li>
  1621. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1622. </li>
  1623. <li>
  1624. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1625. </li>
  1626. <li>
  1627. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1628. </li>
  1629. <li>
  1630. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1631. </li>
  1632. <li>
  1633. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1634. </li>
  1635. <li>
  1636. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1637. </li>
  1638. <li>
  1639. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1640. </li>
  1641. <li>
  1642. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1643. </li>
  1644. <li>
  1645. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1646. </li>
  1647. <li>
  1648. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1658. </li>
  1659. </ul>
  1660. </li>
  1661. </ul>
  1662. </div>
  1663. <ul class="toc-footer">
  1664. </ul>
  1665. </div>
  1666. <div class="page-wrapper">
  1667. <div class="dark-box"></div>
  1668. <div class="content">
  1669. <h1 id="wekan-rest-api">Wekan REST API v7.07</h1>
  1670. <blockquote>
  1671. <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>
  1672. </blockquote>
  1673. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1674. <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>
  1675. <blockquote>
  1676. <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>
  1677. </blockquote>
  1678. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1679. <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>
  1680. <ul>
  1681. <li>Only call via HTTPS</li>
  1682. <li>Implement a timed authorization token expiration strategy</li>
  1683. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1684. </ul>
  1685. <h1 id="authentication">Authentication</h1>
  1686. <ul>
  1687. <li>API Key (UserSecurity)
  1688. <ul>
  1689. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1690. </ul>
  1691. </li>
  1692. </ul>
  1693. <h1 id="wekan-rest-api-login">Login</h1>
  1694. <h2 id="login">login</h2>
  1695. <p><a id="opIdlogin"></a></p>
  1696. <blockquote>
  1697. <p>Code samples</p>
  1698. </blockquote>
  1699. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1700. curl -X POST /users/login \
  1701. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1702. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1703. </code></pre>
  1704. <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>
  1705. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1706. <span class="hljs-keyword">Accept</span>: */*
  1707. </span></code></pre>
  1708. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1709. &quot;username&quot;: &quot;string&quot;,
  1710. &quot;password&quot;: &quot;pa$$word&quot;
  1711. }&#x27;</span>;
  1712. <span class="hljs-keyword">const</span> headers = {
  1713. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1714. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1715. };
  1716. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1717. {
  1718. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1719. <span class="hljs-attr">body</span>: inputBody,
  1720. <span class="hljs-attr">headers</span>: headers
  1721. })
  1722. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1723. <span class="hljs-keyword">return</span> res.json();
  1724. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1725. <span class="hljs-built_in">console</span>.log(body);
  1726. });
  1727. </code></pre>
  1728. <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>);
  1729. <span class="hljs-keyword">const</span> inputBody = {
  1730. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1731. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1732. };
  1733. <span class="hljs-keyword">const</span> headers = {
  1734. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1735. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1736. };
  1737. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1738. {
  1739. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1740. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1741. <span class="hljs-attr">headers</span>: headers
  1742. })
  1743. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1744. <span class="hljs-keyword">return</span> res.json();
  1745. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1746. <span class="hljs-built_in">console</span>.log(body);
  1747. });
  1748. </code></pre>
  1749. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1750. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1751. headers = {
  1752. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1753. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1754. }
  1755. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1756. <span class="hljs-symbol">params:</span> {
  1757. }, <span class="hljs-symbol">headers:</span> headers
  1758. p JSON.parse(result)
  1759. </code></pre>
  1760. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1761. headers = {
  1762. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1763. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1764. }
  1765. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1766. <span class="hljs-built_in">print</span>(r.json())
  1767. </code></pre>
  1768. <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>);
  1769. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1770. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1771. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1772. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1773. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1774. String inputLine;
  1775. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1776. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1777. response.append(inputLine);
  1778. }
  1779. in.close();
  1780. System.out.println(response.toString());
  1781. </code></pre>
  1782. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1783. <span class="hljs-keyword">import</span> (
  1784. <span class="hljs-string">&quot;bytes&quot;</span>
  1785. <span class="hljs-string">&quot;net/http&quot;</span>
  1786. )
  1787. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1788. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1789. <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>},
  1790. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1791. }
  1792. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1793. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1794. req.Header = headers
  1795. client := &amp;http.Client{}
  1796. resp, err := client.Do(req)
  1797. <span class="hljs-comment">// ...</span>
  1798. }
  1799. </code></pre>
  1800. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1801. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1802. );
  1803. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1804. <span class="hljs-comment">// Define array of request body.</span>
  1805. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1806. <span class="hljs-keyword">try</span> {
  1807. <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>(
  1808. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1809. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1810. )
  1811. );
  1812. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1813. }
  1814. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1815. <span class="hljs-comment">// handle exception or api errors.</span>
  1816. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1817. }
  1818. <span class="hljs-comment">// ...</span>
  1819. </code></pre>
  1820. <p><code>POST /users/login</code></p>
  1821. <p><em>Login with REST API</em></p>
  1822. <blockquote>
  1823. <p>Body parameter</p>
  1824. </blockquote>
  1825. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1826. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1827. </code></pre>
  1828. <h3 id="login-parameters">Parameters</h3>
  1829. <table>
  1830. <thead>
  1831. <tr>
  1832. <th>Name</th>
  1833. <th>In</th>
  1834. <th>Type</th>
  1835. <th>Required</th>
  1836. <th>Description</th>
  1837. </tr>
  1838. </thead>
  1839. <tbody>
  1840. <tr>
  1841. <td>body</td>
  1842. <td>body</td>
  1843. <td>object</td>
  1844. <td>true</td>
  1845. <td>none</td>
  1846. </tr>
  1847. <tr>
  1848. <td>» username</td>
  1849. <td>body</td>
  1850. <td>string</td>
  1851. <td>true</td>
  1852. <td>Your username</td>
  1853. </tr>
  1854. <tr>
  1855. <td>» password</td>
  1856. <td>body</td>
  1857. <td>string(password)</td>
  1858. <td>true</td>
  1859. <td>Your password</td>
  1860. </tr>
  1861. </tbody>
  1862. </table>
  1863. <blockquote>
  1864. <p>Example responses</p>
  1865. </blockquote>
  1866. <blockquote>
  1867. <p>200 Response</p>
  1868. </blockquote>
  1869. <h3 id="login-responses">Responses</h3>
  1870. <table>
  1871. <thead>
  1872. <tr>
  1873. <th>Status</th>
  1874. <th>Meaning</th>
  1875. <th>Description</th>
  1876. <th>Schema</th>
  1877. </tr>
  1878. </thead>
  1879. <tbody>
  1880. <tr>
  1881. <td>200</td>
  1882. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1883. <td>Successful authentication</td>
  1884. <td>Inline</td>
  1885. </tr>
  1886. <tr>
  1887. <td>400</td>
  1888. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1889. <td>Error in authentication</td>
  1890. <td>Inline</td>
  1891. </tr>
  1892. <tr>
  1893. <td>default</td>
  1894. <td>Default</td>
  1895. <td>Error in authentication</td>
  1896. <td>None</td>
  1897. </tr>
  1898. </tbody>
  1899. </table>
  1900. <h3 id="login-responseschema">Response Schema</h3>
  1901. <p>Status Code <strong>200</strong></p>
  1902. <table>
  1903. <thead>
  1904. <tr>
  1905. <th>Name</th>
  1906. <th>Type</th>
  1907. <th>Required</th>
  1908. <th>Restrictions</th>
  1909. <th>Description</th>
  1910. </tr>
  1911. </thead>
  1912. <tbody>
  1913. <tr>
  1914. <td>» id</td>
  1915. <td>string</td>
  1916. <td>false</td>
  1917. <td>none</td>
  1918. <td>none</td>
  1919. </tr>
  1920. <tr>
  1921. <td>» token</td>
  1922. <td>string</td>
  1923. <td>false</td>
  1924. <td>none</td>
  1925. <td>none</td>
  1926. </tr>
  1927. <tr>
  1928. <td>» tokenExpires</td>
  1929. <td>string</td>
  1930. <td>false</td>
  1931. <td>none</td>
  1932. <td>none</td>
  1933. </tr>
  1934. </tbody>
  1935. </table>
  1936. <p>Status Code <strong>400</strong></p>
  1937. <table>
  1938. <thead>
  1939. <tr>
  1940. <th>Name</th>
  1941. <th>Type</th>
  1942. <th>Required</th>
  1943. <th>Restrictions</th>
  1944. <th>Description</th>
  1945. </tr>
  1946. </thead>
  1947. <tbody>
  1948. <tr>
  1949. <td>» error</td>
  1950. <td>number</td>
  1951. <td>false</td>
  1952. <td>none</td>
  1953. <td>none</td>
  1954. </tr>
  1955. <tr>
  1956. <td>» reason</td>
  1957. <td>string</td>
  1958. <td>false</td>
  1959. <td>none</td>
  1960. <td>none</td>
  1961. </tr>
  1962. </tbody>
  1963. </table>
  1964. <aside class="success">
  1965. This operation does not require authentication
  1966. </aside>
  1967. <h2 id="register">register</h2>
  1968. <p><a id="opIdregister"></a></p>
  1969. <blockquote>
  1970. <p>Code samples</p>
  1971. </blockquote>
  1972. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1973. curl -X POST /users/register \
  1974. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1975. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1976. </code></pre>
  1977. <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>
  1978. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1979. <span class="hljs-keyword">Accept</span>: */*
  1980. </span></code></pre>
  1981. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1982. &quot;username&quot;: &quot;string&quot;,
  1983. &quot;password&quot;: &quot;pa$$word&quot;,
  1984. &quot;email&quot;: &quot;string&quot;
  1985. }&#x27;</span>;
  1986. <span class="hljs-keyword">const</span> headers = {
  1987. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1988. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1989. };
  1990. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  1991. {
  1992. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1993. <span class="hljs-attr">body</span>: inputBody,
  1994. <span class="hljs-attr">headers</span>: headers
  1995. })
  1996. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1997. <span class="hljs-keyword">return</span> res.json();
  1998. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1999. <span class="hljs-built_in">console</span>.log(body);
  2000. });
  2001. </code></pre>
  2002. <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>);
  2003. <span class="hljs-keyword">const</span> inputBody = {
  2004. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2005. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2006. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2007. };
  2008. <span class="hljs-keyword">const</span> headers = {
  2009. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2010. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2011. };
  2012. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2013. {
  2014. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2015. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2016. <span class="hljs-attr">headers</span>: headers
  2017. })
  2018. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2019. <span class="hljs-keyword">return</span> res.json();
  2020. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2021. <span class="hljs-built_in">console</span>.log(body);
  2022. });
  2023. </code></pre>
  2024. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2025. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2026. headers = {
  2027. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2028. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2029. }
  2030. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2031. <span class="hljs-symbol">params:</span> {
  2032. }, <span class="hljs-symbol">headers:</span> headers
  2033. p JSON.parse(result)
  2034. </code></pre>
  2035. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2036. headers = {
  2037. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2038. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2039. }
  2040. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2041. <span class="hljs-built_in">print</span>(r.json())
  2042. </code></pre>
  2043. <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>);
  2044. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2045. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2046. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2047. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2048. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2049. String inputLine;
  2050. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2051. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2052. response.append(inputLine);
  2053. }
  2054. in.close();
  2055. System.out.println(response.toString());
  2056. </code></pre>
  2057. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2058. <span class="hljs-keyword">import</span> (
  2059. <span class="hljs-string">&quot;bytes&quot;</span>
  2060. <span class="hljs-string">&quot;net/http&quot;</span>
  2061. )
  2062. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2063. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2064. <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>},
  2065. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2066. }
  2067. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2068. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2069. req.Header = headers
  2070. client := &amp;http.Client{}
  2071. resp, err := client.Do(req)
  2072. <span class="hljs-comment">// ...</span>
  2073. }
  2074. </code></pre>
  2075. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2076. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2077. );
  2078. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2079. <span class="hljs-comment">// Define array of request body.</span>
  2080. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2081. <span class="hljs-keyword">try</span> {
  2082. <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>(
  2083. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2084. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2085. )
  2086. );
  2087. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2088. }
  2089. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2090. <span class="hljs-comment">// handle exception or api errors.</span>
  2091. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2092. }
  2093. <span class="hljs-comment">// ...</span>
  2094. </code></pre>
  2095. <p><code>POST /users/register</code></p>
  2096. <p><em>Register with REST API</em></p>
  2097. <p>Notes:</p>
  2098. <ul>
  2099. <li>You will need to provide the token for any of the authenticated methods.</li>
  2100. </ul>
  2101. <blockquote>
  2102. <p>Body parameter</p>
  2103. </blockquote>
  2104. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2105. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2106. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2107. </code></pre>
  2108. <h3 id="register-parameters">Parameters</h3>
  2109. <table>
  2110. <thead>
  2111. <tr>
  2112. <th>Name</th>
  2113. <th>In</th>
  2114. <th>Type</th>
  2115. <th>Required</th>
  2116. <th>Description</th>
  2117. </tr>
  2118. </thead>
  2119. <tbody>
  2120. <tr>
  2121. <td>body</td>
  2122. <td>body</td>
  2123. <td>object</td>
  2124. <td>true</td>
  2125. <td>none</td>
  2126. </tr>
  2127. <tr>
  2128. <td>» username</td>
  2129. <td>body</td>
  2130. <td>string</td>
  2131. <td>true</td>
  2132. <td>Your username</td>
  2133. </tr>
  2134. <tr>
  2135. <td>» password</td>
  2136. <td>body</td>
  2137. <td>string(password)</td>
  2138. <td>true</td>
  2139. <td>Your password</td>
  2140. </tr>
  2141. <tr>
  2142. <td>» email</td>
  2143. <td>body</td>
  2144. <td>string</td>
  2145. <td>true</td>
  2146. <td>Your email</td>
  2147. </tr>
  2148. </tbody>
  2149. </table>
  2150. <blockquote>
  2151. <p>Example responses</p>
  2152. </blockquote>
  2153. <blockquote>
  2154. <p>200 Response</p>
  2155. </blockquote>
  2156. <h3 id="register-responses">Responses</h3>
  2157. <table>
  2158. <thead>
  2159. <tr>
  2160. <th>Status</th>
  2161. <th>Meaning</th>
  2162. <th>Description</th>
  2163. <th>Schema</th>
  2164. </tr>
  2165. </thead>
  2166. <tbody>
  2167. <tr>
  2168. <td>200</td>
  2169. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2170. <td>Successful registration</td>
  2171. <td>Inline</td>
  2172. </tr>
  2173. <tr>
  2174. <td>400</td>
  2175. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2176. <td>Error in registration</td>
  2177. <td>Inline</td>
  2178. </tr>
  2179. <tr>
  2180. <td>default</td>
  2181. <td>Default</td>
  2182. <td>Error in registration</td>
  2183. <td>None</td>
  2184. </tr>
  2185. </tbody>
  2186. </table>
  2187. <h3 id="register-responseschema">Response Schema</h3>
  2188. <p>Status Code <strong>200</strong></p>
  2189. <table>
  2190. <thead>
  2191. <tr>
  2192. <th>Name</th>
  2193. <th>Type</th>
  2194. <th>Required</th>
  2195. <th>Restrictions</th>
  2196. <th>Description</th>
  2197. </tr>
  2198. </thead>
  2199. <tbody>
  2200. <tr>
  2201. <td>» id</td>
  2202. <td>string</td>
  2203. <td>false</td>
  2204. <td>none</td>
  2205. <td>none</td>
  2206. </tr>
  2207. <tr>
  2208. <td>» token</td>
  2209. <td>string</td>
  2210. <td>false</td>
  2211. <td>none</td>
  2212. <td>none</td>
  2213. </tr>
  2214. <tr>
  2215. <td>» tokenExpires</td>
  2216. <td>string</td>
  2217. <td>false</td>
  2218. <td>none</td>
  2219. <td>none</td>
  2220. </tr>
  2221. </tbody>
  2222. </table>
  2223. <p>Status Code <strong>400</strong></p>
  2224. <table>
  2225. <thead>
  2226. <tr>
  2227. <th>Name</th>
  2228. <th>Type</th>
  2229. <th>Required</th>
  2230. <th>Restrictions</th>
  2231. <th>Description</th>
  2232. </tr>
  2233. </thead>
  2234. <tbody>
  2235. <tr>
  2236. <td>» error</td>
  2237. <td>number</td>
  2238. <td>false</td>
  2239. <td>none</td>
  2240. <td>none</td>
  2241. </tr>
  2242. <tr>
  2243. <td>» reason</td>
  2244. <td>string</td>
  2245. <td>false</td>
  2246. <td>none</td>
  2247. <td>none</td>
  2248. </tr>
  2249. </tbody>
  2250. </table>
  2251. <aside class="success">
  2252. This operation does not require authentication
  2253. </aside>
  2254. <h1 id="wekan-rest-api-boards">Boards</h1>
  2255. <h2 id="get_public_boards">get_public_boards</h2>
  2256. <p><a id="opIdget_public_boards"></a></p>
  2257. <blockquote>
  2258. <p>Code samples</p>
  2259. </blockquote>
  2260. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2261. curl -X GET /api/boards \
  2262. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2263. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2264. </code></pre>
  2265. <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>
  2266. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2267. </span></code></pre>
  2268. <pre class="highlight tab tab-javascript"><code>
  2269. <span class="hljs-keyword">const</span> headers = {
  2270. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2271. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2272. };
  2273. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2274. {
  2275. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2276. <span class="hljs-attr">headers</span>: headers
  2277. })
  2278. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2279. <span class="hljs-keyword">return</span> res.json();
  2280. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2281. <span class="hljs-built_in">console</span>.log(body);
  2282. });
  2283. </code></pre>
  2284. <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>);
  2285. <span class="hljs-keyword">const</span> headers = {
  2286. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2287. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2288. };
  2289. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2290. {
  2291. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2292. <span class="hljs-attr">headers</span>: headers
  2293. })
  2294. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2295. <span class="hljs-keyword">return</span> res.json();
  2296. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2297. <span class="hljs-built_in">console</span>.log(body);
  2298. });
  2299. </code></pre>
  2300. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2301. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2302. headers = {
  2303. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2304. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2305. }
  2306. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2307. <span class="hljs-symbol">params:</span> {
  2308. }, <span class="hljs-symbol">headers:</span> headers
  2309. p JSON.parse(result)
  2310. </code></pre>
  2311. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2312. headers = {
  2313. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2314. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2315. }
  2316. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2317. <span class="hljs-built_in">print</span>(r.json())
  2318. </code></pre>
  2319. <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>);
  2320. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2321. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2322. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2323. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2324. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2325. String inputLine;
  2326. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2327. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2328. response.append(inputLine);
  2329. }
  2330. in.close();
  2331. System.out.println(response.toString());
  2332. </code></pre>
  2333. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2334. <span class="hljs-keyword">import</span> (
  2335. <span class="hljs-string">&quot;bytes&quot;</span>
  2336. <span class="hljs-string">&quot;net/http&quot;</span>
  2337. )
  2338. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2339. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2340. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2341. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2342. }
  2343. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2344. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2345. req.Header = headers
  2346. client := &amp;http.Client{}
  2347. resp, err := client.Do(req)
  2348. <span class="hljs-comment">// ...</span>
  2349. }
  2350. </code></pre>
  2351. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2352. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2353. );
  2354. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2355. <span class="hljs-comment">// Define array of request body.</span>
  2356. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2357. <span class="hljs-keyword">try</span> {
  2358. <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>(
  2359. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2360. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2361. )
  2362. );
  2363. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2364. }
  2365. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2366. <span class="hljs-comment">// handle exception or api errors.</span>
  2367. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2368. }
  2369. <span class="hljs-comment">// ...</span>
  2370. </code></pre>
  2371. <p><code>GET /api/boards</code></p>
  2372. <p><em>Get all public boards</em></p>
  2373. <blockquote>
  2374. <p>Example responses</p>
  2375. </blockquote>
  2376. <blockquote>
  2377. <p>200 Response</p>
  2378. </blockquote>
  2379. <pre class="highlight tab tab-json"><code>[
  2380. {
  2381. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2382. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2383. }
  2384. ]
  2385. </code></pre>
  2386. <h3 id="get_public_boards-responses">Responses</h3>
  2387. <table>
  2388. <thead>
  2389. <tr>
  2390. <th>Status</th>
  2391. <th>Meaning</th>
  2392. <th>Description</th>
  2393. <th>Schema</th>
  2394. </tr>
  2395. </thead>
  2396. <tbody>
  2397. <tr>
  2398. <td>200</td>
  2399. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2400. <td>200 response</td>
  2401. <td>Inline</td>
  2402. </tr>
  2403. </tbody>
  2404. </table>
  2405. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2406. <p>Status Code <strong>200</strong></p>
  2407. <table>
  2408. <thead>
  2409. <tr>
  2410. <th>Name</th>
  2411. <th>Type</th>
  2412. <th>Required</th>
  2413. <th>Restrictions</th>
  2414. <th>Description</th>
  2415. </tr>
  2416. </thead>
  2417. <tbody>
  2418. <tr>
  2419. <td>» _id</td>
  2420. <td>string</td>
  2421. <td>false</td>
  2422. <td>none</td>
  2423. <td>none</td>
  2424. </tr>
  2425. <tr>
  2426. <td>» title</td>
  2427. <td>string</td>
  2428. <td>false</td>
  2429. <td>none</td>
  2430. <td>none</td>
  2431. </tr>
  2432. </tbody>
  2433. </table>
  2434. <aside class="warning">
  2435. To perform this operation, you must be authenticated by means of one of the following methods:
  2436. UserSecurity
  2437. </aside>
  2438. <h2 id="new_board">new_board</h2>
  2439. <p><a id="opIdnew_board"></a></p>
  2440. <blockquote>
  2441. <p>Code samples</p>
  2442. </blockquote>
  2443. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2444. curl -X POST /api/boards \
  2445. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2446. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2447. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2448. </code></pre>
  2449. <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>
  2450. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2451. Accept: application/json
  2452. </span></code></pre>
  2453. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2454. &quot;title&quot;: &quot;string&quot;,
  2455. &quot;owner&quot;: &quot;string&quot;,
  2456. &quot;isAdmin&quot;: true,
  2457. &quot;isActive&quot;: true,
  2458. &quot;isNoComments&quot;: true,
  2459. &quot;isCommentOnly&quot;: true,
  2460. &quot;isWorker&quot;: true,
  2461. &quot;permission&quot;: &quot;string&quot;,
  2462. &quot;color&quot;: &quot;string&quot;
  2463. }&#x27;</span>;
  2464. <span class="hljs-keyword">const</span> headers = {
  2465. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2466. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2467. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2468. };
  2469. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2470. {
  2471. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2472. <span class="hljs-attr">body</span>: inputBody,
  2473. <span class="hljs-attr">headers</span>: headers
  2474. })
  2475. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2476. <span class="hljs-keyword">return</span> res.json();
  2477. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2478. <span class="hljs-built_in">console</span>.log(body);
  2479. });
  2480. </code></pre>
  2481. <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>);
  2482. <span class="hljs-keyword">const</span> inputBody = {
  2483. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2484. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2485. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2486. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2487. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2488. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2489. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2490. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2491. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2492. };
  2493. <span class="hljs-keyword">const</span> headers = {
  2494. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2495. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2496. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2497. };
  2498. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2499. {
  2500. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2501. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2502. <span class="hljs-attr">headers</span>: headers
  2503. })
  2504. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2505. <span class="hljs-keyword">return</span> res.json();
  2506. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2507. <span class="hljs-built_in">console</span>.log(body);
  2508. });
  2509. </code></pre>
  2510. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2511. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2512. headers = {
  2513. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2514. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2515. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2516. }
  2517. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2518. <span class="hljs-symbol">params:</span> {
  2519. }, <span class="hljs-symbol">headers:</span> headers
  2520. p JSON.parse(result)
  2521. </code></pre>
  2522. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2523. headers = {
  2524. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2525. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2526. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2527. }
  2528. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2529. <span class="hljs-built_in">print</span>(r.json())
  2530. </code></pre>
  2531. <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>);
  2532. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2533. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2534. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2535. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2536. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2537. String inputLine;
  2538. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2539. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2540. response.append(inputLine);
  2541. }
  2542. in.close();
  2543. System.out.println(response.toString());
  2544. </code></pre>
  2545. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2546. <span class="hljs-keyword">import</span> (
  2547. <span class="hljs-string">&quot;bytes&quot;</span>
  2548. <span class="hljs-string">&quot;net/http&quot;</span>
  2549. )
  2550. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2551. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2552. <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>},
  2553. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2554. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2555. }
  2556. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2557. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2558. req.Header = headers
  2559. client := &amp;http.Client{}
  2560. resp, err := client.Do(req)
  2561. <span class="hljs-comment">// ...</span>
  2562. }
  2563. </code></pre>
  2564. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2565. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2566. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2567. );
  2568. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2569. <span class="hljs-comment">// Define array of request body.</span>
  2570. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2571. <span class="hljs-keyword">try</span> {
  2572. <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>(
  2573. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2574. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2575. )
  2576. );
  2577. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2578. }
  2579. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2580. <span class="hljs-comment">// handle exception or api errors.</span>
  2581. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2582. }
  2583. <span class="hljs-comment">// ...</span>
  2584. </code></pre>
  2585. <p><code>POST /api/boards</code></p>
  2586. <p><em>Create a board</em></p>
  2587. <p>This allows to create a board.</p>
  2588. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2589. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2590. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2591. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2592. <blockquote>
  2593. <p>Body parameter</p>
  2594. </blockquote>
  2595. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2596. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2597. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2598. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2599. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2600. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2601. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2602. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2603. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2604. </code></pre>
  2605. <h3 id="new_board-parameters">Parameters</h3>
  2606. <table>
  2607. <thead>
  2608. <tr>
  2609. <th>Name</th>
  2610. <th>In</th>
  2611. <th>Type</th>
  2612. <th>Required</th>
  2613. <th>Description</th>
  2614. </tr>
  2615. </thead>
  2616. <tbody>
  2617. <tr>
  2618. <td>body</td>
  2619. <td>body</td>
  2620. <td>object</td>
  2621. <td>true</td>
  2622. <td>none</td>
  2623. </tr>
  2624. <tr>
  2625. <td>» title</td>
  2626. <td>body</td>
  2627. <td>string</td>
  2628. <td>true</td>
  2629. <td>the new title of the board</td>
  2630. </tr>
  2631. <tr>
  2632. <td>» owner</td>
  2633. <td>body</td>
  2634. <td>string</td>
  2635. <td>true</td>
  2636. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2637. </tr>
  2638. <tr>
  2639. <td>» isAdmin</td>
  2640. <td>body</td>
  2641. <td>boolean</td>
  2642. <td>false</td>
  2643. <td>is the owner an admin of the board (default true)</td>
  2644. </tr>
  2645. <tr>
  2646. <td>» isActive</td>
  2647. <td>body</td>
  2648. <td>boolean</td>
  2649. <td>false</td>
  2650. <td>is the board active (default true)</td>
  2651. </tr>
  2652. <tr>
  2653. <td>» isNoComments</td>
  2654. <td>body</td>
  2655. <td>boolean</td>
  2656. <td>false</td>
  2657. <td>disable comments (default false)</td>
  2658. </tr>
  2659. <tr>
  2660. <td>» isCommentOnly</td>
  2661. <td>body</td>
  2662. <td>boolean</td>
  2663. <td>false</td>
  2664. <td>only enable comments (default false)</td>
  2665. </tr>
  2666. <tr>
  2667. <td>» isWorker</td>
  2668. <td>body</td>
  2669. <td>boolean</td>
  2670. <td>false</td>
  2671. <td>only move cards, assign himself to card and comment (default false)</td>
  2672. </tr>
  2673. <tr>
  2674. <td>» permission</td>
  2675. <td>body</td>
  2676. <td>string</td>
  2677. <td>false</td>
  2678. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2679. </tr>
  2680. <tr>
  2681. <td>» color</td>
  2682. <td>body</td>
  2683. <td>string</td>
  2684. <td>false</td>
  2685. <td>the color of the board</td>
  2686. </tr>
  2687. </tbody>
  2688. </table>
  2689. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2690. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2691. (Not username or email)</p>
  2692. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2693. want public Wekan board</p>
  2694. <blockquote>
  2695. <p>Example responses</p>
  2696. </blockquote>
  2697. <blockquote>
  2698. <p>200 Response</p>
  2699. </blockquote>
  2700. <pre class="highlight tab tab-json"><code>{
  2701. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2702. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2703. }
  2704. </code></pre>
  2705. <h3 id="new_board-responses">Responses</h3>
  2706. <table>
  2707. <thead>
  2708. <tr>
  2709. <th>Status</th>
  2710. <th>Meaning</th>
  2711. <th>Description</th>
  2712. <th>Schema</th>
  2713. </tr>
  2714. </thead>
  2715. <tbody>
  2716. <tr>
  2717. <td>200</td>
  2718. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2719. <td>200 response</td>
  2720. <td>Inline</td>
  2721. </tr>
  2722. </tbody>
  2723. </table>
  2724. <h3 id="new_board-responseschema">Response Schema</h3>
  2725. <p>Status Code <strong>200</strong></p>
  2726. <table>
  2727. <thead>
  2728. <tr>
  2729. <th>Name</th>
  2730. <th>Type</th>
  2731. <th>Required</th>
  2732. <th>Restrictions</th>
  2733. <th>Description</th>
  2734. </tr>
  2735. </thead>
  2736. <tbody>
  2737. <tr>
  2738. <td>» _id</td>
  2739. <td>string</td>
  2740. <td>false</td>
  2741. <td>none</td>
  2742. <td>none</td>
  2743. </tr>
  2744. <tr>
  2745. <td>» defaultSwimlaneId</td>
  2746. <td>string</td>
  2747. <td>false</td>
  2748. <td>none</td>
  2749. <td>none</td>
  2750. </tr>
  2751. </tbody>
  2752. </table>
  2753. <aside class="warning">
  2754. To perform this operation, you must be authenticated by means of one of the following methods:
  2755. UserSecurity
  2756. </aside>
  2757. <h2 id="get_board">get_board</h2>
  2758. <p><a id="opIdget_board"></a></p>
  2759. <blockquote>
  2760. <p>Code samples</p>
  2761. </blockquote>
  2762. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2763. curl -X GET /api/boards/{board} \
  2764. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2765. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2766. </code></pre>
  2767. <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>
  2768. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2769. </span></code></pre>
  2770. <pre class="highlight tab tab-javascript"><code>
  2771. <span class="hljs-keyword">const</span> headers = {
  2772. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2773. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2774. };
  2775. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2776. {
  2777. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2778. <span class="hljs-attr">headers</span>: headers
  2779. })
  2780. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2781. <span class="hljs-keyword">return</span> res.json();
  2782. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2783. <span class="hljs-built_in">console</span>.log(body);
  2784. });
  2785. </code></pre>
  2786. <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>);
  2787. <span class="hljs-keyword">const</span> headers = {
  2788. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2789. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2790. };
  2791. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2792. {
  2793. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2794. <span class="hljs-attr">headers</span>: headers
  2795. })
  2796. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2797. <span class="hljs-keyword">return</span> res.json();
  2798. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2799. <span class="hljs-built_in">console</span>.log(body);
  2800. });
  2801. </code></pre>
  2802. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2803. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2804. headers = {
  2805. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2806. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2807. }
  2808. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2809. <span class="hljs-symbol">params:</span> {
  2810. }, <span class="hljs-symbol">headers:</span> headers
  2811. p JSON.parse(result)
  2812. </code></pre>
  2813. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2814. headers = {
  2815. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2816. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2817. }
  2818. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2819. <span class="hljs-built_in">print</span>(r.json())
  2820. </code></pre>
  2821. <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>);
  2822. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2823. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2824. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2825. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2826. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2827. String inputLine;
  2828. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2829. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2830. response.append(inputLine);
  2831. }
  2832. in.close();
  2833. System.out.println(response.toString());
  2834. </code></pre>
  2835. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2836. <span class="hljs-keyword">import</span> (
  2837. <span class="hljs-string">&quot;bytes&quot;</span>
  2838. <span class="hljs-string">&quot;net/http&quot;</span>
  2839. )
  2840. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2841. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2842. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2843. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2844. }
  2845. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2846. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2847. req.Header = headers
  2848. client := &amp;http.Client{}
  2849. resp, err := client.Do(req)
  2850. <span class="hljs-comment">// ...</span>
  2851. }
  2852. </code></pre>
  2853. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2854. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2855. );
  2856. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2857. <span class="hljs-comment">// Define array of request body.</span>
  2858. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2859. <span class="hljs-keyword">try</span> {
  2860. <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>(
  2861. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2862. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2863. )
  2864. );
  2865. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2866. }
  2867. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2868. <span class="hljs-comment">// handle exception or api errors.</span>
  2869. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2870. }
  2871. <span class="hljs-comment">// ...</span>
  2872. </code></pre>
  2873. <p><code>GET /api/boards/{board}</code></p>
  2874. <p><em>Get the board with that particular ID</em></p>
  2875. <h3 id="get_board-parameters">Parameters</h3>
  2876. <table>
  2877. <thead>
  2878. <tr>
  2879. <th>Name</th>
  2880. <th>In</th>
  2881. <th>Type</th>
  2882. <th>Required</th>
  2883. <th>Description</th>
  2884. </tr>
  2885. </thead>
  2886. <tbody>
  2887. <tr>
  2888. <td>board</td>
  2889. <td>path</td>
  2890. <td>string</td>
  2891. <td>true</td>
  2892. <td>the ID of the board to retrieve the data</td>
  2893. </tr>
  2894. </tbody>
  2895. </table>
  2896. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2897. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2898. <blockquote>
  2899. <p>Example responses</p>
  2900. </blockquote>
  2901. <blockquote>
  2902. <p>200 Response</p>
  2903. </blockquote>
  2904. <pre class="highlight tab tab-json"><code>{
  2905. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2906. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2907. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2908. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2909. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2910. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2911. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2912. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2913. {
  2914. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2915. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2916. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2917. }
  2918. ],
  2919. <span class="hljs-attr">&quot;members&quot;</span>: [
  2920. {
  2921. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2922. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2923. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2924. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2925. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2926. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2927. }
  2928. ],
  2929. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2930. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  2931. {
  2932. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2933. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2934. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2935. }
  2936. ],
  2937. <span class="hljs-attr">&quot;teams&quot;</span>: [
  2938. {
  2939. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2940. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2941. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2942. }
  2943. ],
  2944. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  2945. <span class="hljs-attr">&quot;backgroundImageURL&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2946. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  2947. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  2948. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2949. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2950. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2951. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2952. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2953. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  2954. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  2955. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  2956. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  2957. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  2958. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  2959. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2960. <span class="hljs-attr">&quot;allowsCoverAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2961. <span class="hljs-attr">&quot;allowsBadgeAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2962. <span class="hljs-attr">&quot;allowsCardSortingByNumberOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  2963. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  2964. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  2965. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  2966. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  2967. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  2968. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  2969. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  2970. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  2971. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  2972. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  2973. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  2974. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  2975. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  2976. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  2977. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  2978. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2979. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2980. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2981. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2982. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  2983. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  2984. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  2985. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  2986. }
  2987. </code></pre>
  2988. <h3 id="get_board-responses">Responses</h3>
  2989. <table>
  2990. <thead>
  2991. <tr>
  2992. <th>Status</th>
  2993. <th>Meaning</th>
  2994. <th>Description</th>
  2995. <th>Schema</th>
  2996. </tr>
  2997. </thead>
  2998. <tbody>
  2999. <tr>
  3000. <td>200</td>
  3001. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3002. <td>200 response</td>
  3003. <td><a href="#schemaboards">Boards</a></td>
  3004. </tr>
  3005. </tbody>
  3006. </table>
  3007. <aside class="warning">
  3008. To perform this operation, you must be authenticated by means of one of the following methods:
  3009. UserSecurity
  3010. </aside>
  3011. <h2 id="delete_board">delete_board</h2>
  3012. <p><a id="opIddelete_board"></a></p>
  3013. <blockquote>
  3014. <p>Code samples</p>
  3015. </blockquote>
  3016. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3017. curl -X DELETE /api/boards/{board} \
  3018. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3019. </code></pre>
  3020. <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>
  3021. </code></pre>
  3022. <pre class="highlight tab tab-javascript"><code>
  3023. <span class="hljs-keyword">const</span> headers = {
  3024. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3025. };
  3026. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3027. {
  3028. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3029. <span class="hljs-attr">headers</span>: headers
  3030. })
  3031. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3032. <span class="hljs-keyword">return</span> res.json();
  3033. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3034. <span class="hljs-built_in">console</span>.log(body);
  3035. });
  3036. </code></pre>
  3037. <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>);
  3038. <span class="hljs-keyword">const</span> headers = {
  3039. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3040. };
  3041. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3042. {
  3043. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3044. <span class="hljs-attr">headers</span>: headers
  3045. })
  3046. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3047. <span class="hljs-keyword">return</span> res.json();
  3048. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3049. <span class="hljs-built_in">console</span>.log(body);
  3050. });
  3051. </code></pre>
  3052. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3053. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3054. headers = {
  3055. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3056. }
  3057. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3058. <span class="hljs-symbol">params:</span> {
  3059. }, <span class="hljs-symbol">headers:</span> headers
  3060. p JSON.parse(result)
  3061. </code></pre>
  3062. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3063. headers = {
  3064. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3065. }
  3066. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3067. <span class="hljs-built_in">print</span>(r.json())
  3068. </code></pre>
  3069. <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>);
  3070. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3071. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3072. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3073. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3074. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3075. String inputLine;
  3076. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3077. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3078. response.append(inputLine);
  3079. }
  3080. in.close();
  3081. System.out.println(response.toString());
  3082. </code></pre>
  3083. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3084. <span class="hljs-keyword">import</span> (
  3085. <span class="hljs-string">&quot;bytes&quot;</span>
  3086. <span class="hljs-string">&quot;net/http&quot;</span>
  3087. )
  3088. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3089. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3090. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3091. }
  3092. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3093. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3094. req.Header = headers
  3095. client := &amp;http.Client{}
  3096. resp, err := client.Do(req)
  3097. <span class="hljs-comment">// ...</span>
  3098. }
  3099. </code></pre>
  3100. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3101. );
  3102. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3103. <span class="hljs-comment">// Define array of request body.</span>
  3104. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3105. <span class="hljs-keyword">try</span> {
  3106. <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>(
  3107. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3108. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3109. )
  3110. );
  3111. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3112. }
  3113. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3114. <span class="hljs-comment">// handle exception or api errors.</span>
  3115. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3116. }
  3117. <span class="hljs-comment">// ...</span>
  3118. </code></pre>
  3119. <p><code>DELETE /api/boards/{board}</code></p>
  3120. <p><em>Delete a board</em></p>
  3121. <h3 id="delete_board-parameters">Parameters</h3>
  3122. <table>
  3123. <thead>
  3124. <tr>
  3125. <th>Name</th>
  3126. <th>In</th>
  3127. <th>Type</th>
  3128. <th>Required</th>
  3129. <th>Description</th>
  3130. </tr>
  3131. </thead>
  3132. <tbody>
  3133. <tr>
  3134. <td>board</td>
  3135. <td>path</td>
  3136. <td>string</td>
  3137. <td>true</td>
  3138. <td>the ID of the board</td>
  3139. </tr>
  3140. </tbody>
  3141. </table>
  3142. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3143. <p><strong>board</strong>: the ID of the board</p>
  3144. <h3 id="delete_board-responses">Responses</h3>
  3145. <table>
  3146. <thead>
  3147. <tr>
  3148. <th>Status</th>
  3149. <th>Meaning</th>
  3150. <th>Description</th>
  3151. <th>Schema</th>
  3152. </tr>
  3153. </thead>
  3154. <tbody>
  3155. <tr>
  3156. <td>200</td>
  3157. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3158. <td>200 response</td>
  3159. <td>None</td>
  3160. </tr>
  3161. </tbody>
  3162. </table>
  3163. <aside class="warning">
  3164. To perform this operation, you must be authenticated by means of one of the following methods:
  3165. UserSecurity
  3166. </aside>
  3167. <h2 id="get_board_attachments">get_board_attachments</h2>
  3168. <p><a id="opIdget_board_attachments"></a></p>
  3169. <blockquote>
  3170. <p>Code samples</p>
  3171. </blockquote>
  3172. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3173. curl -X GET /api/boards/{board}/attachments \
  3174. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3175. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3176. </code></pre>
  3177. <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>
  3178. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3179. </span></code></pre>
  3180. <pre class="highlight tab tab-javascript"><code>
  3181. <span class="hljs-keyword">const</span> headers = {
  3182. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3183. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3184. };
  3185. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3186. {
  3187. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3188. <span class="hljs-attr">headers</span>: headers
  3189. })
  3190. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3191. <span class="hljs-keyword">return</span> res.json();
  3192. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3193. <span class="hljs-built_in">console</span>.log(body);
  3194. });
  3195. </code></pre>
  3196. <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>);
  3197. <span class="hljs-keyword">const</span> headers = {
  3198. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3199. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3200. };
  3201. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3202. {
  3203. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3204. <span class="hljs-attr">headers</span>: headers
  3205. })
  3206. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3207. <span class="hljs-keyword">return</span> res.json();
  3208. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3209. <span class="hljs-built_in">console</span>.log(body);
  3210. });
  3211. </code></pre>
  3212. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3213. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3214. headers = {
  3215. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3216. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3217. }
  3218. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3219. <span class="hljs-symbol">params:</span> {
  3220. }, <span class="hljs-symbol">headers:</span> headers
  3221. p JSON.parse(result)
  3222. </code></pre>
  3223. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3224. headers = {
  3225. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3226. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3227. }
  3228. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3229. <span class="hljs-built_in">print</span>(r.json())
  3230. </code></pre>
  3231. <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>);
  3232. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3233. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3234. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3235. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3236. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3237. String inputLine;
  3238. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3239. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3240. response.append(inputLine);
  3241. }
  3242. in.close();
  3243. System.out.println(response.toString());
  3244. </code></pre>
  3245. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3246. <span class="hljs-keyword">import</span> (
  3247. <span class="hljs-string">&quot;bytes&quot;</span>
  3248. <span class="hljs-string">&quot;net/http&quot;</span>
  3249. )
  3250. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3251. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3252. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3253. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3254. }
  3255. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3256. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3257. req.Header = headers
  3258. client := &amp;http.Client{}
  3259. resp, err := client.Do(req)
  3260. <span class="hljs-comment">// ...</span>
  3261. }
  3262. </code></pre>
  3263. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3264. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3265. );
  3266. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3267. <span class="hljs-comment">// Define array of request body.</span>
  3268. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3269. <span class="hljs-keyword">try</span> {
  3270. <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>(
  3271. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3272. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3273. )
  3274. );
  3275. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3276. }
  3277. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3278. <span class="hljs-comment">// handle exception or api errors.</span>
  3279. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3280. }
  3281. <span class="hljs-comment">// ...</span>
  3282. </code></pre>
  3283. <p><code>GET /api/boards/{board}/attachments</code></p>
  3284. <p><em>Get the list of attachments of a board</em></p>
  3285. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3286. <table>
  3287. <thead>
  3288. <tr>
  3289. <th>Name</th>
  3290. <th>In</th>
  3291. <th>Type</th>
  3292. <th>Required</th>
  3293. <th>Description</th>
  3294. </tr>
  3295. </thead>
  3296. <tbody>
  3297. <tr>
  3298. <td>board</td>
  3299. <td>path</td>
  3300. <td>string</td>
  3301. <td>true</td>
  3302. <td>the board ID</td>
  3303. </tr>
  3304. </tbody>
  3305. </table>
  3306. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3307. <p><strong>board</strong>: the board ID</p>
  3308. <blockquote>
  3309. <p>Example responses</p>
  3310. </blockquote>
  3311. <blockquote>
  3312. <p>200 Response</p>
  3313. </blockquote>
  3314. <pre class="highlight tab tab-json"><code>[
  3315. {
  3316. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3317. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3318. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3319. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3320. <span class="hljs-attr">&quot;urlDownload&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3321. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3322. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3323. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3324. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3325. }
  3326. ]
  3327. </code></pre>
  3328. <h3 id="get_board_attachments-responses">Responses</h3>
  3329. <table>
  3330. <thead>
  3331. <tr>
  3332. <th>Status</th>
  3333. <th>Meaning</th>
  3334. <th>Description</th>
  3335. <th>Schema</th>
  3336. </tr>
  3337. </thead>
  3338. <tbody>
  3339. <tr>
  3340. <td>200</td>
  3341. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3342. <td>200 response</td>
  3343. <td>Inline</td>
  3344. </tr>
  3345. </tbody>
  3346. </table>
  3347. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3348. <p>Status Code <strong>200</strong></p>
  3349. <table>
  3350. <thead>
  3351. <tr>
  3352. <th>Name</th>
  3353. <th>Type</th>
  3354. <th>Required</th>
  3355. <th>Restrictions</th>
  3356. <th>Description</th>
  3357. </tr>
  3358. </thead>
  3359. <tbody>
  3360. <tr>
  3361. <td>» attachmentId</td>
  3362. <td>string</td>
  3363. <td>false</td>
  3364. <td>none</td>
  3365. <td>none</td>
  3366. </tr>
  3367. <tr>
  3368. <td>» attachmentName</td>
  3369. <td>string</td>
  3370. <td>false</td>
  3371. <td>none</td>
  3372. <td>none</td>
  3373. </tr>
  3374. <tr>
  3375. <td>» attachmentType</td>
  3376. <td>string</td>
  3377. <td>false</td>
  3378. <td>none</td>
  3379. <td>none</td>
  3380. </tr>
  3381. <tr>
  3382. <td>» url</td>
  3383. <td>string</td>
  3384. <td>false</td>
  3385. <td>none</td>
  3386. <td>none</td>
  3387. </tr>
  3388. <tr>
  3389. <td>» urlDownload</td>
  3390. <td>string</td>
  3391. <td>false</td>
  3392. <td>none</td>
  3393. <td>none</td>
  3394. </tr>
  3395. <tr>
  3396. <td>» boardId</td>
  3397. <td>string</td>
  3398. <td>false</td>
  3399. <td>none</td>
  3400. <td>none</td>
  3401. </tr>
  3402. <tr>
  3403. <td>» swimlaneId</td>
  3404. <td>string</td>
  3405. <td>false</td>
  3406. <td>none</td>
  3407. <td>none</td>
  3408. </tr>
  3409. <tr>
  3410. <td>» listId</td>
  3411. <td>string</td>
  3412. <td>false</td>
  3413. <td>none</td>
  3414. <td>none</td>
  3415. </tr>
  3416. <tr>
  3417. <td>» cardId</td>
  3418. <td>string</td>
  3419. <td>false</td>
  3420. <td>none</td>
  3421. <td>none</td>
  3422. </tr>
  3423. </tbody>
  3424. </table>
  3425. <aside class="warning">
  3426. To perform this operation, you must be authenticated by means of one of the following methods:
  3427. UserSecurity
  3428. </aside>
  3429. <h2 id="exportjson">exportJson</h2>
  3430. <p><a id="opIdexportJson"></a></p>
  3431. <blockquote>
  3432. <p>Code samples</p>
  3433. </blockquote>
  3434. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3435. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3436. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3437. </code></pre>
  3438. <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>
  3439. </code></pre>
  3440. <pre class="highlight tab tab-javascript"><code>
  3441. <span class="hljs-keyword">const</span> headers = {
  3442. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3443. };
  3444. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3445. {
  3446. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3447. <span class="hljs-attr">headers</span>: headers
  3448. })
  3449. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3450. <span class="hljs-keyword">return</span> res.json();
  3451. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3452. <span class="hljs-built_in">console</span>.log(body);
  3453. });
  3454. </code></pre>
  3455. <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>);
  3456. <span class="hljs-keyword">const</span> headers = {
  3457. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3458. };
  3459. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3460. {
  3461. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3462. <span class="hljs-attr">headers</span>: headers
  3463. })
  3464. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3465. <span class="hljs-keyword">return</span> res.json();
  3466. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3467. <span class="hljs-built_in">console</span>.log(body);
  3468. });
  3469. </code></pre>
  3470. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3471. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3472. headers = {
  3473. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3474. }
  3475. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3476. <span class="hljs-symbol">params:</span> {
  3477. }, <span class="hljs-symbol">headers:</span> headers
  3478. p JSON.parse(result)
  3479. </code></pre>
  3480. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3481. headers = {
  3482. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3483. }
  3484. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3485. <span class="hljs-built_in">print</span>(r.json())
  3486. </code></pre>
  3487. <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>);
  3488. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3489. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3490. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3491. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3492. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3493. String inputLine;
  3494. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3495. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3496. response.append(inputLine);
  3497. }
  3498. in.close();
  3499. System.out.println(response.toString());
  3500. </code></pre>
  3501. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3502. <span class="hljs-keyword">import</span> (
  3503. <span class="hljs-string">&quot;bytes&quot;</span>
  3504. <span class="hljs-string">&quot;net/http&quot;</span>
  3505. )
  3506. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3507. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3508. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3509. }
  3510. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3511. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3512. req.Header = headers
  3513. client := &amp;http.Client{}
  3514. resp, err := client.Do(req)
  3515. <span class="hljs-comment">// ...</span>
  3516. }
  3517. </code></pre>
  3518. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3519. );
  3520. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3521. <span class="hljs-comment">// Define array of request body.</span>
  3522. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3523. <span class="hljs-keyword">try</span> {
  3524. <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>(
  3525. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3526. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3527. )
  3528. );
  3529. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3530. }
  3531. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3532. <span class="hljs-comment">// handle exception or api errors.</span>
  3533. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3534. }
  3535. <span class="hljs-comment">// ...</span>
  3536. </code></pre>
  3537. <p><code>GET /api/boards/{board}/export</code></p>
  3538. <p><em>This route is used to export the board to a json file format.</em></p>
  3539. <p>If user is already logged-in, pass loginToken as param
  3540. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3541. <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>
  3542. for detailed explanations</p>
  3543. <h3 id="exportjson-parameters">Parameters</h3>
  3544. <table>
  3545. <thead>
  3546. <tr>
  3547. <th>Name</th>
  3548. <th>In</th>
  3549. <th>Type</th>
  3550. <th>Required</th>
  3551. <th>Description</th>
  3552. </tr>
  3553. </thead>
  3554. <tbody>
  3555. <tr>
  3556. <td>board</td>
  3557. <td>path</td>
  3558. <td>string</td>
  3559. <td>true</td>
  3560. <td>the ID of the board we are exporting</td>
  3561. </tr>
  3562. </tbody>
  3563. </table>
  3564. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3565. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3566. <h3 id="exportjson-responses">Responses</h3>
  3567. <table>
  3568. <thead>
  3569. <tr>
  3570. <th>Status</th>
  3571. <th>Meaning</th>
  3572. <th>Description</th>
  3573. <th>Schema</th>
  3574. </tr>
  3575. </thead>
  3576. <tbody>
  3577. <tr>
  3578. <td>200</td>
  3579. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3580. <td>200 response</td>
  3581. <td>None</td>
  3582. </tr>
  3583. </tbody>
  3584. </table>
  3585. <aside class="warning">
  3586. To perform this operation, you must be authenticated by means of one of the following methods:
  3587. UserSecurity
  3588. </aside>
  3589. <h2 id="add_board_label">add_board_label</h2>
  3590. <p><a id="opIdadd_board_label"></a></p>
  3591. <blockquote>
  3592. <p>Code samples</p>
  3593. </blockquote>
  3594. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3595. curl -X PUT /api/boards/{board}/labels \
  3596. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3597. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3598. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3599. </code></pre>
  3600. <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>
  3601. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3602. Accept: application/json
  3603. </span></code></pre>
  3604. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3605. &quot;label&quot;: &quot;string&quot;
  3606. }&#x27;</span>;
  3607. <span class="hljs-keyword">const</span> headers = {
  3608. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3609. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3610. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3611. };
  3612. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3613. {
  3614. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3615. <span class="hljs-attr">body</span>: inputBody,
  3616. <span class="hljs-attr">headers</span>: headers
  3617. })
  3618. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3619. <span class="hljs-keyword">return</span> res.json();
  3620. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3621. <span class="hljs-built_in">console</span>.log(body);
  3622. });
  3623. </code></pre>
  3624. <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>);
  3625. <span class="hljs-keyword">const</span> inputBody = {
  3626. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3627. };
  3628. <span class="hljs-keyword">const</span> headers = {
  3629. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3630. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3631. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3632. };
  3633. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3634. {
  3635. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3636. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3637. <span class="hljs-attr">headers</span>: headers
  3638. })
  3639. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3640. <span class="hljs-keyword">return</span> res.json();
  3641. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3642. <span class="hljs-built_in">console</span>.log(body);
  3643. });
  3644. </code></pre>
  3645. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3646. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3647. headers = {
  3648. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3649. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3650. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3651. }
  3652. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3653. <span class="hljs-symbol">params:</span> {
  3654. }, <span class="hljs-symbol">headers:</span> headers
  3655. p JSON.parse(result)
  3656. </code></pre>
  3657. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3658. headers = {
  3659. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3660. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3661. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3662. }
  3663. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3664. <span class="hljs-built_in">print</span>(r.json())
  3665. </code></pre>
  3666. <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>);
  3667. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3668. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3669. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3670. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3671. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3672. String inputLine;
  3673. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3674. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3675. response.append(inputLine);
  3676. }
  3677. in.close();
  3678. System.out.println(response.toString());
  3679. </code></pre>
  3680. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3681. <span class="hljs-keyword">import</span> (
  3682. <span class="hljs-string">&quot;bytes&quot;</span>
  3683. <span class="hljs-string">&quot;net/http&quot;</span>
  3684. )
  3685. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3686. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3687. <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>},
  3688. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3689. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3690. }
  3691. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3692. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3693. req.Header = headers
  3694. client := &amp;http.Client{}
  3695. resp, err := client.Do(req)
  3696. <span class="hljs-comment">// ...</span>
  3697. }
  3698. </code></pre>
  3699. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3700. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3701. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3702. );
  3703. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3704. <span class="hljs-comment">// Define array of request body.</span>
  3705. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3706. <span class="hljs-keyword">try</span> {
  3707. <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>(
  3708. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3709. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3710. )
  3711. );
  3712. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3713. }
  3714. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3715. <span class="hljs-comment">// handle exception or api errors.</span>
  3716. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3717. }
  3718. <span class="hljs-comment">// ...</span>
  3719. </code></pre>
  3720. <p><code>PUT /api/boards/{board}/labels</code></p>
  3721. <p><em>Add a label to a board</em></p>
  3722. <p>If the board doesn't have the name/color label, this function
  3723. adds the label to the board.</p>
  3724. <blockquote>
  3725. <p>Body parameter</p>
  3726. </blockquote>
  3727. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3728. </code></pre>
  3729. <h3 id="add_board_label-parameters">Parameters</h3>
  3730. <table>
  3731. <thead>
  3732. <tr>
  3733. <th>Name</th>
  3734. <th>In</th>
  3735. <th>Type</th>
  3736. <th>Required</th>
  3737. <th>Description</th>
  3738. </tr>
  3739. </thead>
  3740. <tbody>
  3741. <tr>
  3742. <td>board</td>
  3743. <td>path</td>
  3744. <td>string</td>
  3745. <td>true</td>
  3746. <td>the board</td>
  3747. </tr>
  3748. <tr>
  3749. <td>body</td>
  3750. <td>body</td>
  3751. <td>object</td>
  3752. <td>true</td>
  3753. <td>none</td>
  3754. </tr>
  3755. <tr>
  3756. <td>» label</td>
  3757. <td>body</td>
  3758. <td>string</td>
  3759. <td>true</td>
  3760. <td>the label value</td>
  3761. </tr>
  3762. </tbody>
  3763. </table>
  3764. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3765. <p><strong>board</strong>: the board</p>
  3766. <blockquote>
  3767. <p>Example responses</p>
  3768. </blockquote>
  3769. <blockquote>
  3770. <p>200 Response</p>
  3771. </blockquote>
  3772. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3773. </code></pre>
  3774. <h3 id="add_board_label-responses">Responses</h3>
  3775. <table>
  3776. <thead>
  3777. <tr>
  3778. <th>Status</th>
  3779. <th>Meaning</th>
  3780. <th>Description</th>
  3781. <th>Schema</th>
  3782. </tr>
  3783. </thead>
  3784. <tbody>
  3785. <tr>
  3786. <td>200</td>
  3787. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3788. <td>200 response</td>
  3789. <td>string</td>
  3790. </tr>
  3791. </tbody>
  3792. </table>
  3793. <aside class="warning">
  3794. To perform this operation, you must be authenticated by means of one of the following methods:
  3795. UserSecurity
  3796. </aside>
  3797. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3798. <p><a id="opIdset_board_member_permission"></a></p>
  3799. <blockquote>
  3800. <p>Code samples</p>
  3801. </blockquote>
  3802. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3803. curl -X POST /api/boards/{board}/members/{member} \
  3804. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3805. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3806. </code></pre>
  3807. <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>
  3808. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3809. </span></code></pre>
  3810. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3811. &quot;isAdmin&quot;: true,
  3812. &quot;isNoComments&quot;: true,
  3813. &quot;isCommentOnly&quot;: true,
  3814. &quot;isWorker&quot;: true
  3815. }&#x27;</span>;
  3816. <span class="hljs-keyword">const</span> headers = {
  3817. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3818. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3819. };
  3820. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3821. {
  3822. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3823. <span class="hljs-attr">body</span>: inputBody,
  3824. <span class="hljs-attr">headers</span>: headers
  3825. })
  3826. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3827. <span class="hljs-keyword">return</span> res.json();
  3828. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3829. <span class="hljs-built_in">console</span>.log(body);
  3830. });
  3831. </code></pre>
  3832. <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>);
  3833. <span class="hljs-keyword">const</span> inputBody = {
  3834. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3835. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3836. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3837. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3838. };
  3839. <span class="hljs-keyword">const</span> headers = {
  3840. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3841. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3842. };
  3843. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3844. {
  3845. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3846. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3847. <span class="hljs-attr">headers</span>: headers
  3848. })
  3849. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3850. <span class="hljs-keyword">return</span> res.json();
  3851. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3852. <span class="hljs-built_in">console</span>.log(body);
  3853. });
  3854. </code></pre>
  3855. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3856. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3857. headers = {
  3858. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3859. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3860. }
  3861. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3862. <span class="hljs-symbol">params:</span> {
  3863. }, <span class="hljs-symbol">headers:</span> headers
  3864. p JSON.parse(result)
  3865. </code></pre>
  3866. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3867. headers = {
  3868. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3869. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3870. }
  3871. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3872. <span class="hljs-built_in">print</span>(r.json())
  3873. </code></pre>
  3874. <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>);
  3875. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3876. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3877. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3878. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3879. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3880. String inputLine;
  3881. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3882. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3883. response.append(inputLine);
  3884. }
  3885. in.close();
  3886. System.out.println(response.toString());
  3887. </code></pre>
  3888. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3889. <span class="hljs-keyword">import</span> (
  3890. <span class="hljs-string">&quot;bytes&quot;</span>
  3891. <span class="hljs-string">&quot;net/http&quot;</span>
  3892. )
  3893. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3894. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3895. <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>},
  3896. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3897. }
  3898. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3899. 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)
  3900. req.Header = headers
  3901. client := &amp;http.Client{}
  3902. resp, err := client.Do(req)
  3903. <span class="hljs-comment">// ...</span>
  3904. }
  3905. </code></pre>
  3906. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3907. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3908. );
  3909. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3910. <span class="hljs-comment">// Define array of request body.</span>
  3911. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3912. <span class="hljs-keyword">try</span> {
  3913. <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>(
  3914. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3915. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3916. )
  3917. );
  3918. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3919. }
  3920. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3921. <span class="hljs-comment">// handle exception or api errors.</span>
  3922. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3923. }
  3924. <span class="hljs-comment">// ...</span>
  3925. </code></pre>
  3926. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3927. <p><em>Change the permission of a member of a board</em></p>
  3928. <blockquote>
  3929. <p>Body parameter</p>
  3930. </blockquote>
  3931. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3932. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3933. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3934. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3935. </code></pre>
  3936. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3937. <table>
  3938. <thead>
  3939. <tr>
  3940. <th>Name</th>
  3941. <th>In</th>
  3942. <th>Type</th>
  3943. <th>Required</th>
  3944. <th>Description</th>
  3945. </tr>
  3946. </thead>
  3947. <tbody>
  3948. <tr>
  3949. <td>board</td>
  3950. <td>path</td>
  3951. <td>string</td>
  3952. <td>true</td>
  3953. <td>the ID of the board that we are changing</td>
  3954. </tr>
  3955. <tr>
  3956. <td>member</td>
  3957. <td>path</td>
  3958. <td>string</td>
  3959. <td>true</td>
  3960. <td>the ID of the user to change permissions</td>
  3961. </tr>
  3962. <tr>
  3963. <td>body</td>
  3964. <td>body</td>
  3965. <td>object</td>
  3966. <td>true</td>
  3967. <td>none</td>
  3968. </tr>
  3969. <tr>
  3970. <td>» isAdmin</td>
  3971. <td>body</td>
  3972. <td>boolean</td>
  3973. <td>true</td>
  3974. <td>admin capability</td>
  3975. </tr>
  3976. <tr>
  3977. <td>» isNoComments</td>
  3978. <td>body</td>
  3979. <td>boolean</td>
  3980. <td>true</td>
  3981. <td>NoComments capability</td>
  3982. </tr>
  3983. <tr>
  3984. <td>» isCommentOnly</td>
  3985. <td>body</td>
  3986. <td>boolean</td>
  3987. <td>true</td>
  3988. <td>CommentsOnly capability</td>
  3989. </tr>
  3990. <tr>
  3991. <td>» isWorker</td>
  3992. <td>body</td>
  3993. <td>boolean</td>
  3994. <td>true</td>
  3995. <td>Worker capability</td>
  3996. </tr>
  3997. </tbody>
  3998. </table>
  3999. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  4000. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4001. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4002. <h3 id="set_board_member_permission-responses">Responses</h3>
  4003. <table>
  4004. <thead>
  4005. <tr>
  4006. <th>Status</th>
  4007. <th>Meaning</th>
  4008. <th>Description</th>
  4009. <th>Schema</th>
  4010. </tr>
  4011. </thead>
  4012. <tbody>
  4013. <tr>
  4014. <td>200</td>
  4015. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4016. <td>200 response</td>
  4017. <td>None</td>
  4018. </tr>
  4019. </tbody>
  4020. </table>
  4021. <aside class="warning">
  4022. To perform this operation, you must be authenticated by means of one of the following methods:
  4023. UserSecurity
  4024. </aside>
  4025. <h2 id="get_boards_count">get_boards_count</h2>
  4026. <p><a id="opIdget_boards_count"></a></p>
  4027. <blockquote>
  4028. <p>Code samples</p>
  4029. </blockquote>
  4030. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4031. curl -X GET /api/boards_count \
  4032. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4033. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4034. </code></pre>
  4035. <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>
  4036. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4037. </span></code></pre>
  4038. <pre class="highlight tab tab-javascript"><code>
  4039. <span class="hljs-keyword">const</span> headers = {
  4040. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4041. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4042. };
  4043. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4044. {
  4045. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4046. <span class="hljs-attr">headers</span>: headers
  4047. })
  4048. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4049. <span class="hljs-keyword">return</span> res.json();
  4050. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4051. <span class="hljs-built_in">console</span>.log(body);
  4052. });
  4053. </code></pre>
  4054. <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>);
  4055. <span class="hljs-keyword">const</span> headers = {
  4056. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4057. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4058. };
  4059. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4060. {
  4061. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  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;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#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.get <span class="hljs-string">&#x27;/api/boards_count&#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;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4084. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4085. }
  4086. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#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_count&quot;</span>);
  4090. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4091. con.setRequestMethod(<span class="hljs-string">&quot;GET&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;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&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;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&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;application/json&#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;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards_count&#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>GET /api/boards_count</code></p>
  4142. <p><em>Get public and private boards count</em></p>
  4143. <blockquote>
  4144. <p>Example responses</p>
  4145. </blockquote>
  4146. <blockquote>
  4147. <p>200 Response</p>
  4148. </blockquote>
  4149. <pre class="highlight tab tab-json"><code>{
  4150. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4151. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4152. }
  4153. </code></pre>
  4154. <h3 id="get_boards_count-responses">Responses</h3>
  4155. <table>
  4156. <thead>
  4157. <tr>
  4158. <th>Status</th>
  4159. <th>Meaning</th>
  4160. <th>Description</th>
  4161. <th>Schema</th>
  4162. </tr>
  4163. </thead>
  4164. <tbody>
  4165. <tr>
  4166. <td>200</td>
  4167. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4168. <td>200 response</td>
  4169. <td>Inline</td>
  4170. </tr>
  4171. </tbody>
  4172. </table>
  4173. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4174. <p>Status Code <strong>200</strong></p>
  4175. <table>
  4176. <thead>
  4177. <tr>
  4178. <th>Name</th>
  4179. <th>Type</th>
  4180. <th>Required</th>
  4181. <th>Restrictions</th>
  4182. <th>Description</th>
  4183. </tr>
  4184. </thead>
  4185. <tbody>
  4186. <tr>
  4187. <td>» private</td>
  4188. <td>integer</td>
  4189. <td>false</td>
  4190. <td>none</td>
  4191. <td>none</td>
  4192. </tr>
  4193. <tr>
  4194. <td>» public</td>
  4195. <td>integer</td>
  4196. <td>false</td>
  4197. <td>none</td>
  4198. <td>none</td>
  4199. </tr>
  4200. </tbody>
  4201. </table>
  4202. <aside class="warning">
  4203. To perform this operation, you must be authenticated by means of one of the following methods:
  4204. UserSecurity
  4205. </aside>
  4206. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4207. <p><a id="opIdget_boards_from_user"></a></p>
  4208. <blockquote>
  4209. <p>Code samples</p>
  4210. </blockquote>
  4211. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4212. curl -X GET /api/users/{user}/boards \
  4213. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4214. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4215. </code></pre>
  4216. <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>
  4217. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4218. </span></code></pre>
  4219. <pre class="highlight tab tab-javascript"><code>
  4220. <span class="hljs-keyword">const</span> headers = {
  4221. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4222. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4223. };
  4224. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4225. {
  4226. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4227. <span class="hljs-attr">headers</span>: headers
  4228. })
  4229. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4230. <span class="hljs-keyword">return</span> res.json();
  4231. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4232. <span class="hljs-built_in">console</span>.log(body);
  4233. });
  4234. </code></pre>
  4235. <pre class="highlight tab tab-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>);
  4236. <span class="hljs-keyword">const</span> headers = {
  4237. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4238. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4239. };
  4240. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4241. {
  4242. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4243. <span class="hljs-attr">headers</span>: headers
  4244. })
  4245. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4246. <span class="hljs-keyword">return</span> res.json();
  4247. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4248. <span class="hljs-built_in">console</span>.log(body);
  4249. });
  4250. </code></pre>
  4251. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4252. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4253. headers = {
  4254. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4255. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4256. }
  4257. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4258. <span class="hljs-symbol">params:</span> {
  4259. }, <span class="hljs-symbol">headers:</span> headers
  4260. p JSON.parse(result)
  4261. </code></pre>
  4262. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4263. headers = {
  4264. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4265. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4266. }
  4267. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4268. <span class="hljs-built_in">print</span>(r.json())
  4269. </code></pre>
  4270. <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>);
  4271. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4272. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4273. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4274. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4275. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4276. String inputLine;
  4277. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4278. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4279. response.append(inputLine);
  4280. }
  4281. in.close();
  4282. System.out.println(response.toString());
  4283. </code></pre>
  4284. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4285. <span class="hljs-keyword">import</span> (
  4286. <span class="hljs-string">&quot;bytes&quot;</span>
  4287. <span class="hljs-string">&quot;net/http&quot;</span>
  4288. )
  4289. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4290. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4291. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4292. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4293. }
  4294. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4295. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4296. req.Header = headers
  4297. client := &amp;http.Client{}
  4298. resp, err := client.Do(req)
  4299. <span class="hljs-comment">// ...</span>
  4300. }
  4301. </code></pre>
  4302. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4303. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4304. );
  4305. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4306. <span class="hljs-comment">// Define array of request body.</span>
  4307. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4308. <span class="hljs-keyword">try</span> {
  4309. <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>(
  4310. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4311. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4312. )
  4313. );
  4314. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4315. }
  4316. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4317. <span class="hljs-comment">// handle exception or api errors.</span>
  4318. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4319. }
  4320. <span class="hljs-comment">// ...</span>
  4321. </code></pre>
  4322. <p><code>GET /api/users/{user}/boards</code></p>
  4323. <p><em>Get all boards attached to a user</em></p>
  4324. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4325. <table>
  4326. <thead>
  4327. <tr>
  4328. <th>Name</th>
  4329. <th>In</th>
  4330. <th>Type</th>
  4331. <th>Required</th>
  4332. <th>Description</th>
  4333. </tr>
  4334. </thead>
  4335. <tbody>
  4336. <tr>
  4337. <td>user</td>
  4338. <td>path</td>
  4339. <td>string</td>
  4340. <td>true</td>
  4341. <td>the ID of the user to retrieve the data</td>
  4342. </tr>
  4343. </tbody>
  4344. </table>
  4345. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4346. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4347. <blockquote>
  4348. <p>Example responses</p>
  4349. </blockquote>
  4350. <blockquote>
  4351. <p>200 Response</p>
  4352. </blockquote>
  4353. <pre class="highlight tab tab-json"><code>[
  4354. {
  4355. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4356. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4357. }
  4358. ]
  4359. </code></pre>
  4360. <h3 id="get_boards_from_user-responses">Responses</h3>
  4361. <table>
  4362. <thead>
  4363. <tr>
  4364. <th>Status</th>
  4365. <th>Meaning</th>
  4366. <th>Description</th>
  4367. <th>Schema</th>
  4368. </tr>
  4369. </thead>
  4370. <tbody>
  4371. <tr>
  4372. <td>200</td>
  4373. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4374. <td>200 response</td>
  4375. <td>Inline</td>
  4376. </tr>
  4377. </tbody>
  4378. </table>
  4379. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4380. <p>Status Code <strong>200</strong></p>
  4381. <table>
  4382. <thead>
  4383. <tr>
  4384. <th>Name</th>
  4385. <th>Type</th>
  4386. <th>Required</th>
  4387. <th>Restrictions</th>
  4388. <th>Description</th>
  4389. </tr>
  4390. </thead>
  4391. <tbody>
  4392. <tr>
  4393. <td>» _id</td>
  4394. <td>string</td>
  4395. <td>false</td>
  4396. <td>none</td>
  4397. <td>none</td>
  4398. </tr>
  4399. <tr>
  4400. <td>» title</td>
  4401. <td>string</td>
  4402. <td>false</td>
  4403. <td>none</td>
  4404. <td>none</td>
  4405. </tr>
  4406. </tbody>
  4407. </table>
  4408. <aside class="warning">
  4409. To perform this operation, you must be authenticated by means of one of the following methods:
  4410. UserSecurity
  4411. </aside>
  4412. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4413. <h2 id="get_all_checklists">get_all_checklists</h2>
  4414. <p><a id="opIdget_all_checklists"></a></p>
  4415. <blockquote>
  4416. <p>Code samples</p>
  4417. </blockquote>
  4418. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4419. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4420. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4421. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4422. </code></pre>
  4423. <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>
  4424. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4425. </span></code></pre>
  4426. <pre class="highlight tab tab-javascript"><code>
  4427. <span class="hljs-keyword">const</span> headers = {
  4428. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4429. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4430. };
  4431. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4432. {
  4433. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4434. <span class="hljs-attr">headers</span>: headers
  4435. })
  4436. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4437. <span class="hljs-keyword">return</span> res.json();
  4438. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4439. <span class="hljs-built_in">console</span>.log(body);
  4440. });
  4441. </code></pre>
  4442. <pre class="highlight tab tab-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>);
  4443. <span class="hljs-keyword">const</span> headers = {
  4444. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4445. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4446. };
  4447. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4448. {
  4449. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4450. <span class="hljs-attr">headers</span>: headers
  4451. })
  4452. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4453. <span class="hljs-keyword">return</span> res.json();
  4454. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4455. <span class="hljs-built_in">console</span>.log(body);
  4456. });
  4457. </code></pre>
  4458. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4459. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4460. headers = {
  4461. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4462. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4463. }
  4464. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4465. <span class="hljs-symbol">params:</span> {
  4466. }, <span class="hljs-symbol">headers:</span> headers
  4467. p JSON.parse(result)
  4468. </code></pre>
  4469. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4470. headers = {
  4471. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4472. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4473. }
  4474. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4475. <span class="hljs-built_in">print</span>(r.json())
  4476. </code></pre>
  4477. <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>);
  4478. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4479. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4480. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4481. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4482. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4483. String inputLine;
  4484. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4485. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4486. response.append(inputLine);
  4487. }
  4488. in.close();
  4489. System.out.println(response.toString());
  4490. </code></pre>
  4491. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4492. <span class="hljs-keyword">import</span> (
  4493. <span class="hljs-string">&quot;bytes&quot;</span>
  4494. <span class="hljs-string">&quot;net/http&quot;</span>
  4495. )
  4496. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4497. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4498. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4499. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4500. }
  4501. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4502. 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)
  4503. req.Header = headers
  4504. client := &amp;http.Client{}
  4505. resp, err := client.Do(req)
  4506. <span class="hljs-comment">// ...</span>
  4507. }
  4508. </code></pre>
  4509. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4510. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4511. );
  4512. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4513. <span class="hljs-comment">// Define array of request body.</span>
  4514. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4515. <span class="hljs-keyword">try</span> {
  4516. <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>(
  4517. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4518. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4519. )
  4520. );
  4521. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4522. }
  4523. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4524. <span class="hljs-comment">// handle exception or api errors.</span>
  4525. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4526. }
  4527. <span class="hljs-comment">// ...</span>
  4528. </code></pre>
  4529. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4530. <p><em>Get the list of checklists attached to a card</em></p>
  4531. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4532. <table>
  4533. <thead>
  4534. <tr>
  4535. <th>Name</th>
  4536. <th>In</th>
  4537. <th>Type</th>
  4538. <th>Required</th>
  4539. <th>Description</th>
  4540. </tr>
  4541. </thead>
  4542. <tbody>
  4543. <tr>
  4544. <td>board</td>
  4545. <td>path</td>
  4546. <td>string</td>
  4547. <td>true</td>
  4548. <td>the board ID</td>
  4549. </tr>
  4550. <tr>
  4551. <td>card</td>
  4552. <td>path</td>
  4553. <td>string</td>
  4554. <td>true</td>
  4555. <td>the card ID</td>
  4556. </tr>
  4557. </tbody>
  4558. </table>
  4559. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4560. <p><strong>board</strong>: the board ID</p>
  4561. <p><strong>card</strong>: the card ID</p>
  4562. <blockquote>
  4563. <p>Example responses</p>
  4564. </blockquote>
  4565. <blockquote>
  4566. <p>200 Response</p>
  4567. </blockquote>
  4568. <pre class="highlight tab tab-json"><code>[
  4569. {
  4570. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4571. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4572. }
  4573. ]
  4574. </code></pre>
  4575. <h3 id="get_all_checklists-responses">Responses</h3>
  4576. <table>
  4577. <thead>
  4578. <tr>
  4579. <th>Status</th>
  4580. <th>Meaning</th>
  4581. <th>Description</th>
  4582. <th>Schema</th>
  4583. </tr>
  4584. </thead>
  4585. <tbody>
  4586. <tr>
  4587. <td>200</td>
  4588. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4589. <td>200 response</td>
  4590. <td>Inline</td>
  4591. </tr>
  4592. </tbody>
  4593. </table>
  4594. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4595. <p>Status Code <strong>200</strong></p>
  4596. <table>
  4597. <thead>
  4598. <tr>
  4599. <th>Name</th>
  4600. <th>Type</th>
  4601. <th>Required</th>
  4602. <th>Restrictions</th>
  4603. <th>Description</th>
  4604. </tr>
  4605. </thead>
  4606. <tbody>
  4607. <tr>
  4608. <td>» _id</td>
  4609. <td>string</td>
  4610. <td>false</td>
  4611. <td>none</td>
  4612. <td>none</td>
  4613. </tr>
  4614. <tr>
  4615. <td>» title</td>
  4616. <td>string</td>
  4617. <td>false</td>
  4618. <td>none</td>
  4619. <td>none</td>
  4620. </tr>
  4621. </tbody>
  4622. </table>
  4623. <aside class="warning">
  4624. To perform this operation, you must be authenticated by means of one of the following methods:
  4625. UserSecurity
  4626. </aside>
  4627. <h2 id="new_checklist">new_checklist</h2>
  4628. <p><a id="opIdnew_checklist"></a></p>
  4629. <blockquote>
  4630. <p>Code samples</p>
  4631. </blockquote>
  4632. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4633. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4634. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4635. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4636. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4637. </code></pre>
  4638. <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>
  4639. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4640. Accept: application/json
  4641. </span></code></pre>
  4642. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4643. &quot;title&quot;: &quot;string&quot;,
  4644. &quot;items&quot;: &quot;string&quot;
  4645. }&#x27;</span>;
  4646. <span class="hljs-keyword">const</span> headers = {
  4647. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4648. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4649. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4650. };
  4651. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4652. {
  4653. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4654. <span class="hljs-attr">body</span>: inputBody,
  4655. <span class="hljs-attr">headers</span>: headers
  4656. })
  4657. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4658. <span class="hljs-keyword">return</span> res.json();
  4659. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4660. <span class="hljs-built_in">console</span>.log(body);
  4661. });
  4662. </code></pre>
  4663. <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>);
  4664. <span class="hljs-keyword">const</span> inputBody = {
  4665. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4666. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4667. };
  4668. <span class="hljs-keyword">const</span> headers = {
  4669. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4670. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4671. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4672. };
  4673. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4674. {
  4675. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4676. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4677. <span class="hljs-attr">headers</span>: headers
  4678. })
  4679. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4680. <span class="hljs-keyword">return</span> res.json();
  4681. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4682. <span class="hljs-built_in">console</span>.log(body);
  4683. });
  4684. </code></pre>
  4685. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4686. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4687. headers = {
  4688. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4689. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4690. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4691. }
  4692. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4693. <span class="hljs-symbol">params:</span> {
  4694. }, <span class="hljs-symbol">headers:</span> headers
  4695. p JSON.parse(result)
  4696. </code></pre>
  4697. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4698. headers = {
  4699. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4700. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4701. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4702. }
  4703. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4704. <span class="hljs-built_in">print</span>(r.json())
  4705. </code></pre>
  4706. <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>);
  4707. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4708. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4709. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4710. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4711. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4712. String inputLine;
  4713. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4714. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4715. response.append(inputLine);
  4716. }
  4717. in.close();
  4718. System.out.println(response.toString());
  4719. </code></pre>
  4720. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4721. <span class="hljs-keyword">import</span> (
  4722. <span class="hljs-string">&quot;bytes&quot;</span>
  4723. <span class="hljs-string">&quot;net/http&quot;</span>
  4724. )
  4725. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4726. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4727. <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>},
  4728. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4729. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4730. }
  4731. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4732. 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)
  4733. req.Header = headers
  4734. client := &amp;http.Client{}
  4735. resp, err := client.Do(req)
  4736. <span class="hljs-comment">// ...</span>
  4737. }
  4738. </code></pre>
  4739. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4740. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4741. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4742. );
  4743. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4744. <span class="hljs-comment">// Define array of request body.</span>
  4745. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4746. <span class="hljs-keyword">try</span> {
  4747. <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>(
  4748. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4749. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4750. )
  4751. );
  4752. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4753. }
  4754. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4755. <span class="hljs-comment">// handle exception or api errors.</span>
  4756. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4757. }
  4758. <span class="hljs-comment">// ...</span>
  4759. </code></pre>
  4760. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4761. <p><em>create a new checklist</em></p>
  4762. <blockquote>
  4763. <p>Body parameter</p>
  4764. </blockquote>
  4765. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4766. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4767. </code></pre>
  4768. <h3 id="new_checklist-parameters">Parameters</h3>
  4769. <table>
  4770. <thead>
  4771. <tr>
  4772. <th>Name</th>
  4773. <th>In</th>
  4774. <th>Type</th>
  4775. <th>Required</th>
  4776. <th>Description</th>
  4777. </tr>
  4778. </thead>
  4779. <tbody>
  4780. <tr>
  4781. <td>board</td>
  4782. <td>path</td>
  4783. <td>string</td>
  4784. <td>true</td>
  4785. <td>the board ID</td>
  4786. </tr>
  4787. <tr>
  4788. <td>card</td>
  4789. <td>path</td>
  4790. <td>string</td>
  4791. <td>true</td>
  4792. <td>the card ID</td>
  4793. </tr>
  4794. <tr>
  4795. <td>body</td>
  4796. <td>body</td>
  4797. <td>object</td>
  4798. <td>true</td>
  4799. <td>none</td>
  4800. </tr>
  4801. <tr>
  4802. <td>» title</td>
  4803. <td>body</td>
  4804. <td>string</td>
  4805. <td>true</td>
  4806. <td>the title of the new checklist</td>
  4807. </tr>
  4808. <tr>
  4809. <td>» items</td>
  4810. <td>body</td>
  4811. <td>string</td>
  4812. <td>false</td>
  4813. <td>the list of items on the new checklist</td>
  4814. </tr>
  4815. </tbody>
  4816. </table>
  4817. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4818. <p><strong>board</strong>: the board ID</p>
  4819. <p><strong>card</strong>: the card ID</p>
  4820. <blockquote>
  4821. <p>Example responses</p>
  4822. </blockquote>
  4823. <blockquote>
  4824. <p>200 Response</p>
  4825. </blockquote>
  4826. <pre class="highlight tab tab-json"><code>{
  4827. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4828. }
  4829. </code></pre>
  4830. <h3 id="new_checklist-responses">Responses</h3>
  4831. <table>
  4832. <thead>
  4833. <tr>
  4834. <th>Status</th>
  4835. <th>Meaning</th>
  4836. <th>Description</th>
  4837. <th>Schema</th>
  4838. </tr>
  4839. </thead>
  4840. <tbody>
  4841. <tr>
  4842. <td>200</td>
  4843. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4844. <td>200 response</td>
  4845. <td>Inline</td>
  4846. </tr>
  4847. </tbody>
  4848. </table>
  4849. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4850. <p>Status Code <strong>200</strong></p>
  4851. <table>
  4852. <thead>
  4853. <tr>
  4854. <th>Name</th>
  4855. <th>Type</th>
  4856. <th>Required</th>
  4857. <th>Restrictions</th>
  4858. <th>Description</th>
  4859. </tr>
  4860. </thead>
  4861. <tbody>
  4862. <tr>
  4863. <td>» _id</td>
  4864. <td>string</td>
  4865. <td>false</td>
  4866. <td>none</td>
  4867. <td>none</td>
  4868. </tr>
  4869. </tbody>
  4870. </table>
  4871. <aside class="warning">
  4872. To perform this operation, you must be authenticated by means of one of the following methods:
  4873. UserSecurity
  4874. </aside>
  4875. <h2 id="get_checklist">get_checklist</h2>
  4876. <p><a id="opIdget_checklist"></a></p>
  4877. <blockquote>
  4878. <p>Code samples</p>
  4879. </blockquote>
  4880. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4881. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4882. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4883. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4884. </code></pre>
  4885. <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>
  4886. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4887. </span></code></pre>
  4888. <pre class="highlight tab tab-javascript"><code>
  4889. <span class="hljs-keyword">const</span> headers = {
  4890. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4891. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4892. };
  4893. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4894. {
  4895. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4896. <span class="hljs-attr">headers</span>: headers
  4897. })
  4898. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4899. <span class="hljs-keyword">return</span> res.json();
  4900. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4901. <span class="hljs-built_in">console</span>.log(body);
  4902. });
  4903. </code></pre>
  4904. <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>);
  4905. <span class="hljs-keyword">const</span> headers = {
  4906. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4907. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4908. };
  4909. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4910. {
  4911. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4912. <span class="hljs-attr">headers</span>: headers
  4913. })
  4914. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4915. <span class="hljs-keyword">return</span> res.json();
  4916. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4917. <span class="hljs-built_in">console</span>.log(body);
  4918. });
  4919. </code></pre>
  4920. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4921. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4922. headers = {
  4923. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4924. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4925. }
  4926. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4927. <span class="hljs-symbol">params:</span> {
  4928. }, <span class="hljs-symbol">headers:</span> headers
  4929. p JSON.parse(result)
  4930. </code></pre>
  4931. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4932. headers = {
  4933. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4934. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4935. }
  4936. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4937. <span class="hljs-built_in">print</span>(r.json())
  4938. </code></pre>
  4939. <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>);
  4940. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4941. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4942. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4943. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4944. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4945. String inputLine;
  4946. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4947. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4948. response.append(inputLine);
  4949. }
  4950. in.close();
  4951. System.out.println(response.toString());
  4952. </code></pre>
  4953. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4954. <span class="hljs-keyword">import</span> (
  4955. <span class="hljs-string">&quot;bytes&quot;</span>
  4956. <span class="hljs-string">&quot;net/http&quot;</span>
  4957. )
  4958. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4959. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4960. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4961. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4962. }
  4963. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4964. 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)
  4965. req.Header = headers
  4966. client := &amp;http.Client{}
  4967. resp, err := client.Do(req)
  4968. <span class="hljs-comment">// ...</span>
  4969. }
  4970. </code></pre>
  4971. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4972. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4973. );
  4974. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4975. <span class="hljs-comment">// Define array of request body.</span>
  4976. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4977. <span class="hljs-keyword">try</span> {
  4978. <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>(
  4979. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4980. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4981. )
  4982. );
  4983. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4984. }
  4985. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4986. <span class="hljs-comment">// handle exception or api errors.</span>
  4987. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4988. }
  4989. <span class="hljs-comment">// ...</span>
  4990. </code></pre>
  4991. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  4992. <p><em>Get a checklist</em></p>
  4993. <h3 id="get_checklist-parameters">Parameters</h3>
  4994. <table>
  4995. <thead>
  4996. <tr>
  4997. <th>Name</th>
  4998. <th>In</th>
  4999. <th>Type</th>
  5000. <th>Required</th>
  5001. <th>Description</th>
  5002. </tr>
  5003. </thead>
  5004. <tbody>
  5005. <tr>
  5006. <td>board</td>
  5007. <td>path</td>
  5008. <td>string</td>
  5009. <td>true</td>
  5010. <td>the board ID</td>
  5011. </tr>
  5012. <tr>
  5013. <td>card</td>
  5014. <td>path</td>
  5015. <td>string</td>
  5016. <td>true</td>
  5017. <td>the card ID</td>
  5018. </tr>
  5019. <tr>
  5020. <td>checklist</td>
  5021. <td>path</td>
  5022. <td>string</td>
  5023. <td>true</td>
  5024. <td>the ID of the checklist</td>
  5025. </tr>
  5026. </tbody>
  5027. </table>
  5028. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5029. <p><strong>board</strong>: the board ID</p>
  5030. <p><strong>card</strong>: the card ID</p>
  5031. <p><strong>checklist</strong>: the ID of the checklist</p>
  5032. <blockquote>
  5033. <p>Example responses</p>
  5034. </blockquote>
  5035. <blockquote>
  5036. <p>200 Response</p>
  5037. </blockquote>
  5038. <pre class="highlight tab tab-json"><code>{
  5039. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5040. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5041. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5042. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5043. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5044. <span class="hljs-attr">&quot;items&quot;</span>: [
  5045. {
  5046. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5047. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5048. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5049. }
  5050. ]
  5051. }
  5052. </code></pre>
  5053. <h3 id="get_checklist-responses">Responses</h3>
  5054. <table>
  5055. <thead>
  5056. <tr>
  5057. <th>Status</th>
  5058. <th>Meaning</th>
  5059. <th>Description</th>
  5060. <th>Schema</th>
  5061. </tr>
  5062. </thead>
  5063. <tbody>
  5064. <tr>
  5065. <td>200</td>
  5066. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5067. <td>200 response</td>
  5068. <td>Inline</td>
  5069. </tr>
  5070. </tbody>
  5071. </table>
  5072. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5073. <p>Status Code <strong>200</strong></p>
  5074. <table>
  5075. <thead>
  5076. <tr>
  5077. <th>Name</th>
  5078. <th>Type</th>
  5079. <th>Required</th>
  5080. <th>Restrictions</th>
  5081. <th>Description</th>
  5082. </tr>
  5083. </thead>
  5084. <tbody>
  5085. <tr>
  5086. <td>» cardId</td>
  5087. <td>string</td>
  5088. <td>false</td>
  5089. <td>none</td>
  5090. <td>none</td>
  5091. </tr>
  5092. <tr>
  5093. <td>» title</td>
  5094. <td>string</td>
  5095. <td>false</td>
  5096. <td>none</td>
  5097. <td>none</td>
  5098. </tr>
  5099. <tr>
  5100. <td>» finishedAt</td>
  5101. <td>string</td>
  5102. <td>false</td>
  5103. <td>none</td>
  5104. <td>none</td>
  5105. </tr>
  5106. <tr>
  5107. <td>» createdAt</td>
  5108. <td>string</td>
  5109. <td>false</td>
  5110. <td>none</td>
  5111. <td>none</td>
  5112. </tr>
  5113. <tr>
  5114. <td>» sort</td>
  5115. <td>number</td>
  5116. <td>false</td>
  5117. <td>none</td>
  5118. <td>none</td>
  5119. </tr>
  5120. <tr>
  5121. <td>» items</td>
  5122. <td>[object]</td>
  5123. <td>false</td>
  5124. <td>none</td>
  5125. <td>none</td>
  5126. </tr>
  5127. <tr>
  5128. <td>»» _id</td>
  5129. <td>string</td>
  5130. <td>false</td>
  5131. <td>none</td>
  5132. <td>none</td>
  5133. </tr>
  5134. <tr>
  5135. <td>»» title</td>
  5136. <td>string</td>
  5137. <td>false</td>
  5138. <td>none</td>
  5139. <td>none</td>
  5140. </tr>
  5141. <tr>
  5142. <td>»» isFinished</td>
  5143. <td>boolean</td>
  5144. <td>false</td>
  5145. <td>none</td>
  5146. <td>none</td>
  5147. </tr>
  5148. </tbody>
  5149. </table>
  5150. <aside class="warning">
  5151. To perform this operation, you must be authenticated by means of one of the following methods:
  5152. UserSecurity
  5153. </aside>
  5154. <h2 id="delete_checklist">delete_checklist</h2>
  5155. <p><a id="opIddelete_checklist"></a></p>
  5156. <blockquote>
  5157. <p>Code samples</p>
  5158. </blockquote>
  5159. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5160. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5161. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5162. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5163. </code></pre>
  5164. <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>
  5165. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5166. </span></code></pre>
  5167. <pre class="highlight tab tab-javascript"><code>
  5168. <span class="hljs-keyword">const</span> headers = {
  5169. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5170. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5171. };
  5172. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5173. {
  5174. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5175. <span class="hljs-attr">headers</span>: headers
  5176. })
  5177. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5178. <span class="hljs-keyword">return</span> res.json();
  5179. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5180. <span class="hljs-built_in">console</span>.log(body);
  5181. });
  5182. </code></pre>
  5183. <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>);
  5184. <span class="hljs-keyword">const</span> headers = {
  5185. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5186. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5187. };
  5188. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5189. {
  5190. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5191. <span class="hljs-attr">headers</span>: headers
  5192. })
  5193. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5194. <span class="hljs-keyword">return</span> res.json();
  5195. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5196. <span class="hljs-built_in">console</span>.log(body);
  5197. });
  5198. </code></pre>
  5199. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5200. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5201. headers = {
  5202. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5203. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5204. }
  5205. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5206. <span class="hljs-symbol">params:</span> {
  5207. }, <span class="hljs-symbol">headers:</span> headers
  5208. p JSON.parse(result)
  5209. </code></pre>
  5210. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5211. headers = {
  5212. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5213. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5214. }
  5215. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5216. <span class="hljs-built_in">print</span>(r.json())
  5217. </code></pre>
  5218. <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>);
  5219. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5220. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5221. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5222. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5223. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5224. String inputLine;
  5225. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5226. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5227. response.append(inputLine);
  5228. }
  5229. in.close();
  5230. System.out.println(response.toString());
  5231. </code></pre>
  5232. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5233. <span class="hljs-keyword">import</span> (
  5234. <span class="hljs-string">&quot;bytes&quot;</span>
  5235. <span class="hljs-string">&quot;net/http&quot;</span>
  5236. )
  5237. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5238. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5239. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5240. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5241. }
  5242. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5243. 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)
  5244. req.Header = headers
  5245. client := &amp;http.Client{}
  5246. resp, err := client.Do(req)
  5247. <span class="hljs-comment">// ...</span>
  5248. }
  5249. </code></pre>
  5250. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5251. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5252. );
  5253. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5254. <span class="hljs-comment">// Define array of request body.</span>
  5255. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5256. <span class="hljs-keyword">try</span> {
  5257. <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>(
  5258. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5259. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5260. )
  5261. );
  5262. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5263. }
  5264. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5265. <span class="hljs-comment">// handle exception or api errors.</span>
  5266. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5267. }
  5268. <span class="hljs-comment">// ...</span>
  5269. </code></pre>
  5270. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5271. <p><em>Delete a checklist</em></p>
  5272. <p>The checklist will be removed, not put in the recycle bin.</p>
  5273. <h3 id="delete_checklist-parameters">Parameters</h3>
  5274. <table>
  5275. <thead>
  5276. <tr>
  5277. <th>Name</th>
  5278. <th>In</th>
  5279. <th>Type</th>
  5280. <th>Required</th>
  5281. <th>Description</th>
  5282. </tr>
  5283. </thead>
  5284. <tbody>
  5285. <tr>
  5286. <td>board</td>
  5287. <td>path</td>
  5288. <td>string</td>
  5289. <td>true</td>
  5290. <td>the board ID</td>
  5291. </tr>
  5292. <tr>
  5293. <td>card</td>
  5294. <td>path</td>
  5295. <td>string</td>
  5296. <td>true</td>
  5297. <td>the card ID</td>
  5298. </tr>
  5299. <tr>
  5300. <td>checklist</td>
  5301. <td>path</td>
  5302. <td>string</td>
  5303. <td>true</td>
  5304. <td>the ID of the checklist to remove</td>
  5305. </tr>
  5306. </tbody>
  5307. </table>
  5308. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5309. <p><strong>board</strong>: the board ID</p>
  5310. <p><strong>card</strong>: the card ID</p>
  5311. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5312. <blockquote>
  5313. <p>Example responses</p>
  5314. </blockquote>
  5315. <blockquote>
  5316. <p>200 Response</p>
  5317. </blockquote>
  5318. <pre class="highlight tab tab-json"><code>{
  5319. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5320. }
  5321. </code></pre>
  5322. <h3 id="delete_checklist-responses">Responses</h3>
  5323. <table>
  5324. <thead>
  5325. <tr>
  5326. <th>Status</th>
  5327. <th>Meaning</th>
  5328. <th>Description</th>
  5329. <th>Schema</th>
  5330. </tr>
  5331. </thead>
  5332. <tbody>
  5333. <tr>
  5334. <td>200</td>
  5335. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5336. <td>200 response</td>
  5337. <td>Inline</td>
  5338. </tr>
  5339. </tbody>
  5340. </table>
  5341. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5342. <p>Status Code <strong>200</strong></p>
  5343. <table>
  5344. <thead>
  5345. <tr>
  5346. <th>Name</th>
  5347. <th>Type</th>
  5348. <th>Required</th>
  5349. <th>Restrictions</th>
  5350. <th>Description</th>
  5351. </tr>
  5352. </thead>
  5353. <tbody>
  5354. <tr>
  5355. <td>» _id</td>
  5356. <td>string</td>
  5357. <td>false</td>
  5358. <td>none</td>
  5359. <td>none</td>
  5360. </tr>
  5361. </tbody>
  5362. </table>
  5363. <aside class="warning">
  5364. To perform this operation, you must be authenticated by means of one of the following methods:
  5365. UserSecurity
  5366. </aside>
  5367. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5368. <h2 id="new_checklist_item">new_checklist_item</h2>
  5369. <p><a id="opIdnew_checklist_item"></a></p>
  5370. <blockquote>
  5371. <p>Code samples</p>
  5372. </blockquote>
  5373. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5374. curl -X POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items \
  5375. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5376. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5377. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5378. </code></pre>
  5379. <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>
  5380. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5381. Accept: application/json
  5382. </span></code></pre>
  5383. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5384. &quot;title&quot;: &quot;string&quot;
  5385. }&#x27;</span>;
  5386. <span class="hljs-keyword">const</span> headers = {
  5387. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5388. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5389. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5390. };
  5391. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5392. {
  5393. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  5394. <span class="hljs-attr">body</span>: inputBody,
  5395. <span class="hljs-attr">headers</span>: headers
  5396. })
  5397. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5398. <span class="hljs-keyword">return</span> res.json();
  5399. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5400. <span class="hljs-built_in">console</span>.log(body);
  5401. });
  5402. </code></pre>
  5403. <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>);
  5404. <span class="hljs-keyword">const</span> inputBody = {
  5405. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5406. };
  5407. <span class="hljs-keyword">const</span> headers = {
  5408. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5409. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5410. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5411. };
  5412. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5413. {
  5414. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  5415. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5416. <span class="hljs-attr">headers</span>: headers
  5417. })
  5418. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5419. <span class="hljs-keyword">return</span> res.json();
  5420. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5421. <span class="hljs-built_in">console</span>.log(body);
  5422. });
  5423. </code></pre>
  5424. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5425. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5426. headers = {
  5427. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5428. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5429. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5430. }
  5431. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>,
  5432. <span class="hljs-symbol">params:</span> {
  5433. }, <span class="hljs-symbol">headers:</span> headers
  5434. p JSON.parse(result)
  5435. </code></pre>
  5436. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5437. headers = {
  5438. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5439. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5440. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5441. }
  5442. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items&#x27;</span>, headers = headers)
  5443. <span class="hljs-built_in">print</span>(r.json())
  5444. </code></pre>
  5445. <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>);
  5446. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5447. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  5448. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5449. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5450. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5451. String inputLine;
  5452. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5453. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5454. response.append(inputLine);
  5455. }
  5456. in.close();
  5457. System.out.println(response.toString());
  5458. </code></pre>
  5459. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5460. <span class="hljs-keyword">import</span> (
  5461. <span class="hljs-string">&quot;bytes&quot;</span>
  5462. <span class="hljs-string">&quot;net/http&quot;</span>
  5463. )
  5464. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5465. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5466. <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>},
  5467. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5468. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5469. }
  5470. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5471. 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)
  5472. req.Header = headers
  5473. client := &amp;http.Client{}
  5474. resp, err := client.Do(req)
  5475. <span class="hljs-comment">// ...</span>
  5476. }
  5477. </code></pre>
  5478. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5479. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5480. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5481. );
  5482. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5483. <span class="hljs-comment">// Define array of request body.</span>
  5484. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5485. <span class="hljs-keyword">try</span> {
  5486. <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>(
  5487. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5488. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5489. )
  5490. );
  5491. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5492. }
  5493. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5494. <span class="hljs-comment">// handle exception or api errors.</span>
  5495. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5496. }
  5497. <span class="hljs-comment">// ...</span>
  5498. </code></pre>
  5499. <p><code>POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items</code></p>
  5500. <p><em>add a new item to a checklist</em></p>
  5501. <blockquote>
  5502. <p>Body parameter</p>
  5503. </blockquote>
  5504. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5505. </code></pre>
  5506. <h3 id="new_checklist_item-parameters">Parameters</h3>
  5507. <table>
  5508. <thead>
  5509. <tr>
  5510. <th>Name</th>
  5511. <th>In</th>
  5512. <th>Type</th>
  5513. <th>Required</th>
  5514. <th>Description</th>
  5515. </tr>
  5516. </thead>
  5517. <tbody>
  5518. <tr>
  5519. <td>board</td>
  5520. <td>path</td>
  5521. <td>string</td>
  5522. <td>true</td>
  5523. <td>the board ID</td>
  5524. </tr>
  5525. <tr>
  5526. <td>card</td>
  5527. <td>path</td>
  5528. <td>string</td>
  5529. <td>true</td>
  5530. <td>the card ID</td>
  5531. </tr>
  5532. <tr>
  5533. <td>checklist</td>
  5534. <td>path</td>
  5535. <td>string</td>
  5536. <td>true</td>
  5537. <td>the ID of the checklist</td>
  5538. </tr>
  5539. <tr>
  5540. <td>body</td>
  5541. <td>body</td>
  5542. <td>object</td>
  5543. <td>true</td>
  5544. <td>none</td>
  5545. </tr>
  5546. <tr>
  5547. <td>» title</td>
  5548. <td>body</td>
  5549. <td>string</td>
  5550. <td>true</td>
  5551. <td>the title of the new item</td>
  5552. </tr>
  5553. </tbody>
  5554. </table>
  5555. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5556. <p><strong>board</strong>: the board ID</p>
  5557. <p><strong>card</strong>: the card ID</p>
  5558. <p><strong>checklist</strong>: the ID of the checklist</p>
  5559. <blockquote>
  5560. <p>Example responses</p>
  5561. </blockquote>
  5562. <blockquote>
  5563. <p>200 Response</p>
  5564. </blockquote>
  5565. <pre class="highlight tab tab-json"><code>{
  5566. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5567. }
  5568. </code></pre>
  5569. <h3 id="new_checklist_item-responses">Responses</h3>
  5570. <table>
  5571. <thead>
  5572. <tr>
  5573. <th>Status</th>
  5574. <th>Meaning</th>
  5575. <th>Description</th>
  5576. <th>Schema</th>
  5577. </tr>
  5578. </thead>
  5579. <tbody>
  5580. <tr>
  5581. <td>200</td>
  5582. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5583. <td>200 response</td>
  5584. <td>Inline</td>
  5585. </tr>
  5586. </tbody>
  5587. </table>
  5588. <h3 id="new_checklist_item-responseschema">Response Schema</h3>
  5589. <p>Status Code <strong>200</strong></p>
  5590. <table>
  5591. <thead>
  5592. <tr>
  5593. <th>Name</th>
  5594. <th>Type</th>
  5595. <th>Required</th>
  5596. <th>Restrictions</th>
  5597. <th>Description</th>
  5598. </tr>
  5599. </thead>
  5600. <tbody>
  5601. <tr>
  5602. <td>» _id</td>
  5603. <td>string</td>
  5604. <td>false</td>
  5605. <td>none</td>
  5606. <td>none</td>
  5607. </tr>
  5608. </tbody>
  5609. </table>
  5610. <aside class="warning">
  5611. To perform this operation, you must be authenticated by means of one of the following methods:
  5612. UserSecurity
  5613. </aside>
  5614. <h2 id="get_checklist_item">get_checklist_item</h2>
  5615. <p><a id="opIdget_checklist_item"></a></p>
  5616. <blockquote>
  5617. <p>Code samples</p>
  5618. </blockquote>
  5619. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5620. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5621. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5622. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5623. </code></pre>
  5624. <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>
  5625. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5626. </span></code></pre>
  5627. <pre class="highlight tab tab-javascript"><code>
  5628. <span class="hljs-keyword">const</span> headers = {
  5629. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5630. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5631. };
  5632. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5633. {
  5634. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5635. <span class="hljs-attr">headers</span>: headers
  5636. })
  5637. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5638. <span class="hljs-keyword">return</span> res.json();
  5639. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5640. <span class="hljs-built_in">console</span>.log(body);
  5641. });
  5642. </code></pre>
  5643. <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>);
  5644. <span class="hljs-keyword">const</span> headers = {
  5645. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5646. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5647. };
  5648. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5649. {
  5650. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5651. <span class="hljs-attr">headers</span>: headers
  5652. })
  5653. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5654. <span class="hljs-keyword">return</span> res.json();
  5655. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5656. <span class="hljs-built_in">console</span>.log(body);
  5657. });
  5658. </code></pre>
  5659. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5660. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5661. headers = {
  5662. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5663. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5664. }
  5665. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5666. <span class="hljs-symbol">params:</span> {
  5667. }, <span class="hljs-symbol">headers:</span> headers
  5668. p JSON.parse(result)
  5669. </code></pre>
  5670. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5671. headers = {
  5672. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5673. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5674. }
  5675. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5676. <span class="hljs-built_in">print</span>(r.json())
  5677. </code></pre>
  5678. <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>);
  5679. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5680. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5681. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5682. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5683. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5684. String inputLine;
  5685. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5686. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5687. response.append(inputLine);
  5688. }
  5689. in.close();
  5690. System.out.println(response.toString());
  5691. </code></pre>
  5692. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5693. <span class="hljs-keyword">import</span> (
  5694. <span class="hljs-string">&quot;bytes&quot;</span>
  5695. <span class="hljs-string">&quot;net/http&quot;</span>
  5696. )
  5697. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5698. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5699. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5700. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5701. }
  5702. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5703. 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)
  5704. req.Header = headers
  5705. client := &amp;http.Client{}
  5706. resp, err := client.Do(req)
  5707. <span class="hljs-comment">// ...</span>
  5708. }
  5709. </code></pre>
  5710. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5711. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5712. );
  5713. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5714. <span class="hljs-comment">// Define array of request body.</span>
  5715. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5716. <span class="hljs-keyword">try</span> {
  5717. <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>(
  5718. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5719. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5720. )
  5721. );
  5722. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5723. }
  5724. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5725. <span class="hljs-comment">// handle exception or api errors.</span>
  5726. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5727. }
  5728. <span class="hljs-comment">// ...</span>
  5729. </code></pre>
  5730. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5731. <p><em>Get a checklist item</em></p>
  5732. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5733. <table>
  5734. <thead>
  5735. <tr>
  5736. <th>Name</th>
  5737. <th>In</th>
  5738. <th>Type</th>
  5739. <th>Required</th>
  5740. <th>Description</th>
  5741. </tr>
  5742. </thead>
  5743. <tbody>
  5744. <tr>
  5745. <td>board</td>
  5746. <td>path</td>
  5747. <td>string</td>
  5748. <td>true</td>
  5749. <td>the board ID</td>
  5750. </tr>
  5751. <tr>
  5752. <td>card</td>
  5753. <td>path</td>
  5754. <td>string</td>
  5755. <td>true</td>
  5756. <td>the card ID</td>
  5757. </tr>
  5758. <tr>
  5759. <td>checklist</td>
  5760. <td>path</td>
  5761. <td>string</td>
  5762. <td>true</td>
  5763. <td>the checklist ID</td>
  5764. </tr>
  5765. <tr>
  5766. <td>item</td>
  5767. <td>path</td>
  5768. <td>string</td>
  5769. <td>true</td>
  5770. <td>the ID of the item</td>
  5771. </tr>
  5772. </tbody>
  5773. </table>
  5774. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5775. <p><strong>board</strong>: the board ID</p>
  5776. <p><strong>card</strong>: the card ID</p>
  5777. <p><strong>checklist</strong>: the checklist ID</p>
  5778. <p><strong>item</strong>: the ID of the item</p>
  5779. <blockquote>
  5780. <p>Example responses</p>
  5781. </blockquote>
  5782. <blockquote>
  5783. <p>200 Response</p>
  5784. </blockquote>
  5785. <pre class="highlight tab tab-json"><code>{
  5786. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5787. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5788. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5789. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5790. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5791. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5792. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5793. }
  5794. </code></pre>
  5795. <h3 id="get_checklist_item-responses">Responses</h3>
  5796. <table>
  5797. <thead>
  5798. <tr>
  5799. <th>Status</th>
  5800. <th>Meaning</th>
  5801. <th>Description</th>
  5802. <th>Schema</th>
  5803. </tr>
  5804. </thead>
  5805. <tbody>
  5806. <tr>
  5807. <td>200</td>
  5808. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5809. <td>200 response</td>
  5810. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5811. </tr>
  5812. </tbody>
  5813. </table>
  5814. <aside class="warning">
  5815. To perform this operation, you must be authenticated by means of one of the following methods:
  5816. UserSecurity
  5817. </aside>
  5818. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5819. <p><a id="opIdedit_checklist_item"></a></p>
  5820. <blockquote>
  5821. <p>Code samples</p>
  5822. </blockquote>
  5823. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5824. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5825. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5826. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5827. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5828. </code></pre>
  5829. <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>
  5830. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5831. Accept: application/json
  5832. </span></code></pre>
  5833. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5834. &quot;isFinished&quot;: &quot;string&quot;,
  5835. &quot;title&quot;: &quot;string&quot;
  5836. }&#x27;</span>;
  5837. <span class="hljs-keyword">const</span> headers = {
  5838. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5839. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5840. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5841. };
  5842. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5843. {
  5844. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5845. <span class="hljs-attr">body</span>: inputBody,
  5846. <span class="hljs-attr">headers</span>: headers
  5847. })
  5848. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5849. <span class="hljs-keyword">return</span> res.json();
  5850. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5851. <span class="hljs-built_in">console</span>.log(body);
  5852. });
  5853. </code></pre>
  5854. <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>);
  5855. <span class="hljs-keyword">const</span> inputBody = {
  5856. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5857. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5858. };
  5859. <span class="hljs-keyword">const</span> headers = {
  5860. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5861. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5862. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5863. };
  5864. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5865. {
  5866. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5867. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5868. <span class="hljs-attr">headers</span>: headers
  5869. })
  5870. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5871. <span class="hljs-keyword">return</span> res.json();
  5872. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5873. <span class="hljs-built_in">console</span>.log(body);
  5874. });
  5875. </code></pre>
  5876. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5877. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5878. headers = {
  5879. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5880. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5881. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5882. }
  5883. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5884. <span class="hljs-symbol">params:</span> {
  5885. }, <span class="hljs-symbol">headers:</span> headers
  5886. p JSON.parse(result)
  5887. </code></pre>
  5888. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5889. headers = {
  5890. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5891. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5892. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5893. }
  5894. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5895. <span class="hljs-built_in">print</span>(r.json())
  5896. </code></pre>
  5897. <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>);
  5898. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5899. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5900. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5901. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5902. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5903. String inputLine;
  5904. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5905. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5906. response.append(inputLine);
  5907. }
  5908. in.close();
  5909. System.out.println(response.toString());
  5910. </code></pre>
  5911. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5912. <span class="hljs-keyword">import</span> (
  5913. <span class="hljs-string">&quot;bytes&quot;</span>
  5914. <span class="hljs-string">&quot;net/http&quot;</span>
  5915. )
  5916. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5917. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5918. <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>},
  5919. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5920. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5921. }
  5922. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5923. 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)
  5924. req.Header = headers
  5925. client := &amp;http.Client{}
  5926. resp, err := client.Do(req)
  5927. <span class="hljs-comment">// ...</span>
  5928. }
  5929. </code></pre>
  5930. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5931. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5932. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5933. );
  5934. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5935. <span class="hljs-comment">// Define array of request body.</span>
  5936. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5937. <span class="hljs-keyword">try</span> {
  5938. <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>(
  5939. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5940. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5941. )
  5942. );
  5943. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5944. }
  5945. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5946. <span class="hljs-comment">// handle exception or api errors.</span>
  5947. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5948. }
  5949. <span class="hljs-comment">// ...</span>
  5950. </code></pre>
  5951. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5952. <p><em>Edit a checklist item</em></p>
  5953. <blockquote>
  5954. <p>Body parameter</p>
  5955. </blockquote>
  5956. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5957. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5958. </code></pre>
  5959. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5960. <table>
  5961. <thead>
  5962. <tr>
  5963. <th>Name</th>
  5964. <th>In</th>
  5965. <th>Type</th>
  5966. <th>Required</th>
  5967. <th>Description</th>
  5968. </tr>
  5969. </thead>
  5970. <tbody>
  5971. <tr>
  5972. <td>board</td>
  5973. <td>path</td>
  5974. <td>string</td>
  5975. <td>true</td>
  5976. <td>the board ID</td>
  5977. </tr>
  5978. <tr>
  5979. <td>card</td>
  5980. <td>path</td>
  5981. <td>string</td>
  5982. <td>true</td>
  5983. <td>the card ID</td>
  5984. </tr>
  5985. <tr>
  5986. <td>checklist</td>
  5987. <td>path</td>
  5988. <td>string</td>
  5989. <td>true</td>
  5990. <td>the checklist ID</td>
  5991. </tr>
  5992. <tr>
  5993. <td>item</td>
  5994. <td>path</td>
  5995. <td>string</td>
  5996. <td>true</td>
  5997. <td>the ID of the item</td>
  5998. </tr>
  5999. <tr>
  6000. <td>body</td>
  6001. <td>body</td>
  6002. <td>object</td>
  6003. <td>false</td>
  6004. <td>none</td>
  6005. </tr>
  6006. <tr>
  6007. <td>» isFinished</td>
  6008. <td>body</td>
  6009. <td>string</td>
  6010. <td>false</td>
  6011. <td>is the item checked?</td>
  6012. </tr>
  6013. <tr>
  6014. <td>» title</td>
  6015. <td>body</td>
  6016. <td>string</td>
  6017. <td>false</td>
  6018. <td>the new text of the item</td>
  6019. </tr>
  6020. </tbody>
  6021. </table>
  6022. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  6023. <p><strong>board</strong>: the board ID</p>
  6024. <p><strong>card</strong>: the card ID</p>
  6025. <p><strong>checklist</strong>: the checklist ID</p>
  6026. <p><strong>item</strong>: the ID of the item</p>
  6027. <blockquote>
  6028. <p>Example responses</p>
  6029. </blockquote>
  6030. <blockquote>
  6031. <p>200 Response</p>
  6032. </blockquote>
  6033. <pre class="highlight tab tab-json"><code>{
  6034. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6035. }
  6036. </code></pre>
  6037. <h3 id="edit_checklist_item-responses">Responses</h3>
  6038. <table>
  6039. <thead>
  6040. <tr>
  6041. <th>Status</th>
  6042. <th>Meaning</th>
  6043. <th>Description</th>
  6044. <th>Schema</th>
  6045. </tr>
  6046. </thead>
  6047. <tbody>
  6048. <tr>
  6049. <td>200</td>
  6050. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6051. <td>200 response</td>
  6052. <td>Inline</td>
  6053. </tr>
  6054. </tbody>
  6055. </table>
  6056. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  6057. <p>Status Code <strong>200</strong></p>
  6058. <table>
  6059. <thead>
  6060. <tr>
  6061. <th>Name</th>
  6062. <th>Type</th>
  6063. <th>Required</th>
  6064. <th>Restrictions</th>
  6065. <th>Description</th>
  6066. </tr>
  6067. </thead>
  6068. <tbody>
  6069. <tr>
  6070. <td>» _id</td>
  6071. <td>string</td>
  6072. <td>false</td>
  6073. <td>none</td>
  6074. <td>none</td>
  6075. </tr>
  6076. </tbody>
  6077. </table>
  6078. <aside class="warning">
  6079. To perform this operation, you must be authenticated by means of one of the following methods:
  6080. UserSecurity
  6081. </aside>
  6082. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  6083. <p><a id="opIddelete_checklist_item"></a></p>
  6084. <blockquote>
  6085. <p>Code samples</p>
  6086. </blockquote>
  6087. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6088. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  6089. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6090. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6091. </code></pre>
  6092. <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>
  6093. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6094. </span></code></pre>
  6095. <pre class="highlight tab tab-javascript"><code>
  6096. <span class="hljs-keyword">const</span> headers = {
  6097. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6098. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6099. };
  6100. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6101. {
  6102. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6103. <span class="hljs-attr">headers</span>: headers
  6104. })
  6105. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6106. <span class="hljs-keyword">return</span> res.json();
  6107. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6108. <span class="hljs-built_in">console</span>.log(body);
  6109. });
  6110. </code></pre>
  6111. <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>);
  6112. <span class="hljs-keyword">const</span> headers = {
  6113. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6114. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6115. };
  6116. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6117. {
  6118. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6119. <span class="hljs-attr">headers</span>: headers
  6120. })
  6121. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6122. <span class="hljs-keyword">return</span> res.json();
  6123. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6124. <span class="hljs-built_in">console</span>.log(body);
  6125. });
  6126. </code></pre>
  6127. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6128. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6129. headers = {
  6130. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6131. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6132. }
  6133. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  6134. <span class="hljs-symbol">params:</span> {
  6135. }, <span class="hljs-symbol">headers:</span> headers
  6136. p JSON.parse(result)
  6137. </code></pre>
  6138. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6139. headers = {
  6140. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6141. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6142. }
  6143. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  6144. <span class="hljs-built_in">print</span>(r.json())
  6145. </code></pre>
  6146. <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>);
  6147. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6148. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6149. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6150. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6151. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6152. String inputLine;
  6153. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6154. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6155. response.append(inputLine);
  6156. }
  6157. in.close();
  6158. System.out.println(response.toString());
  6159. </code></pre>
  6160. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6161. <span class="hljs-keyword">import</span> (
  6162. <span class="hljs-string">&quot;bytes&quot;</span>
  6163. <span class="hljs-string">&quot;net/http&quot;</span>
  6164. )
  6165. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6166. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6167. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6168. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6169. }
  6170. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6171. 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)
  6172. req.Header = headers
  6173. client := &amp;http.Client{}
  6174. resp, err := client.Do(req)
  6175. <span class="hljs-comment">// ...</span>
  6176. }
  6177. </code></pre>
  6178. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6179. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6180. );
  6181. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6182. <span class="hljs-comment">// Define array of request body.</span>
  6183. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6184. <span class="hljs-keyword">try</span> {
  6185. <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>(
  6186. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6187. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6188. )
  6189. );
  6190. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6191. }
  6192. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6193. <span class="hljs-comment">// handle exception or api errors.</span>
  6194. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6195. }
  6196. <span class="hljs-comment">// ...</span>
  6197. </code></pre>
  6198. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  6199. <p><em>Delete a checklist item</em></p>
  6200. <p>Note: this operation can't be reverted.</p>
  6201. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  6202. <table>
  6203. <thead>
  6204. <tr>
  6205. <th>Name</th>
  6206. <th>In</th>
  6207. <th>Type</th>
  6208. <th>Required</th>
  6209. <th>Description</th>
  6210. </tr>
  6211. </thead>
  6212. <tbody>
  6213. <tr>
  6214. <td>board</td>
  6215. <td>path</td>
  6216. <td>string</td>
  6217. <td>true</td>
  6218. <td>the board ID</td>
  6219. </tr>
  6220. <tr>
  6221. <td>card</td>
  6222. <td>path</td>
  6223. <td>string</td>
  6224. <td>true</td>
  6225. <td>the card ID</td>
  6226. </tr>
  6227. <tr>
  6228. <td>checklist</td>
  6229. <td>path</td>
  6230. <td>string</td>
  6231. <td>true</td>
  6232. <td>the checklist ID</td>
  6233. </tr>
  6234. <tr>
  6235. <td>item</td>
  6236. <td>path</td>
  6237. <td>string</td>
  6238. <td>true</td>
  6239. <td>the ID of the item to be removed</td>
  6240. </tr>
  6241. </tbody>
  6242. </table>
  6243. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6244. <p><strong>board</strong>: the board ID</p>
  6245. <p><strong>card</strong>: the card ID</p>
  6246. <p><strong>checklist</strong>: the checklist ID</p>
  6247. <p><strong>item</strong>: the ID of the item to be removed</p>
  6248. <blockquote>
  6249. <p>Example responses</p>
  6250. </blockquote>
  6251. <blockquote>
  6252. <p>200 Response</p>
  6253. </blockquote>
  6254. <pre class="highlight tab tab-json"><code>{
  6255. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6256. }
  6257. </code></pre>
  6258. <h3 id="delete_checklist_item-responses">Responses</h3>
  6259. <table>
  6260. <thead>
  6261. <tr>
  6262. <th>Status</th>
  6263. <th>Meaning</th>
  6264. <th>Description</th>
  6265. <th>Schema</th>
  6266. </tr>
  6267. </thead>
  6268. <tbody>
  6269. <tr>
  6270. <td>200</td>
  6271. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6272. <td>200 response</td>
  6273. <td>Inline</td>
  6274. </tr>
  6275. </tbody>
  6276. </table>
  6277. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6278. <p>Status Code <strong>200</strong></p>
  6279. <table>
  6280. <thead>
  6281. <tr>
  6282. <th>Name</th>
  6283. <th>Type</th>
  6284. <th>Required</th>
  6285. <th>Restrictions</th>
  6286. <th>Description</th>
  6287. </tr>
  6288. </thead>
  6289. <tbody>
  6290. <tr>
  6291. <td>» _id</td>
  6292. <td>string</td>
  6293. <td>false</td>
  6294. <td>none</td>
  6295. <td>none</td>
  6296. </tr>
  6297. </tbody>
  6298. </table>
  6299. <aside class="warning">
  6300. To perform this operation, you must be authenticated by means of one of the following methods:
  6301. UserSecurity
  6302. </aside>
  6303. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6304. <h2 id="get_all_comments">get_all_comments</h2>
  6305. <p><a id="opIdget_all_comments"></a></p>
  6306. <blockquote>
  6307. <p>Code samples</p>
  6308. </blockquote>
  6309. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6310. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6311. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6312. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6313. </code></pre>
  6314. <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>
  6315. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6316. </span></code></pre>
  6317. <pre class="highlight tab tab-javascript"><code>
  6318. <span class="hljs-keyword">const</span> headers = {
  6319. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6320. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6321. };
  6322. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6323. {
  6324. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6325. <span class="hljs-attr">headers</span>: headers
  6326. })
  6327. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6328. <span class="hljs-keyword">return</span> res.json();
  6329. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6330. <span class="hljs-built_in">console</span>.log(body);
  6331. });
  6332. </code></pre>
  6333. <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>);
  6334. <span class="hljs-keyword">const</span> headers = {
  6335. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6336. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6337. };
  6338. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6339. {
  6340. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6341. <span class="hljs-attr">headers</span>: headers
  6342. })
  6343. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6344. <span class="hljs-keyword">return</span> res.json();
  6345. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6346. <span class="hljs-built_in">console</span>.log(body);
  6347. });
  6348. </code></pre>
  6349. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6350. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6351. headers = {
  6352. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6353. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6354. }
  6355. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6356. <span class="hljs-symbol">params:</span> {
  6357. }, <span class="hljs-symbol">headers:</span> headers
  6358. p JSON.parse(result)
  6359. </code></pre>
  6360. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6361. headers = {
  6362. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6363. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6364. }
  6365. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6366. <span class="hljs-built_in">print</span>(r.json())
  6367. </code></pre>
  6368. <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>);
  6369. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6370. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6371. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6372. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6373. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6374. String inputLine;
  6375. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6376. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6377. response.append(inputLine);
  6378. }
  6379. in.close();
  6380. System.out.println(response.toString());
  6381. </code></pre>
  6382. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6383. <span class="hljs-keyword">import</span> (
  6384. <span class="hljs-string">&quot;bytes&quot;</span>
  6385. <span class="hljs-string">&quot;net/http&quot;</span>
  6386. )
  6387. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6388. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6389. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6390. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6391. }
  6392. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6393. 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)
  6394. req.Header = headers
  6395. client := &amp;http.Client{}
  6396. resp, err := client.Do(req)
  6397. <span class="hljs-comment">// ...</span>
  6398. }
  6399. </code></pre>
  6400. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6401. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6402. );
  6403. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6404. <span class="hljs-comment">// Define array of request body.</span>
  6405. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6406. <span class="hljs-keyword">try</span> {
  6407. <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>(
  6408. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6409. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6410. )
  6411. );
  6412. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6413. }
  6414. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6415. <span class="hljs-comment">// handle exception or api errors.</span>
  6416. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6417. }
  6418. <span class="hljs-comment">// ...</span>
  6419. </code></pre>
  6420. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6421. <p><em>Get all comments attached to a card</em></p>
  6422. <h3 id="get_all_comments-parameters">Parameters</h3>
  6423. <table>
  6424. <thead>
  6425. <tr>
  6426. <th>Name</th>
  6427. <th>In</th>
  6428. <th>Type</th>
  6429. <th>Required</th>
  6430. <th>Description</th>
  6431. </tr>
  6432. </thead>
  6433. <tbody>
  6434. <tr>
  6435. <td>board</td>
  6436. <td>path</td>
  6437. <td>string</td>
  6438. <td>true</td>
  6439. <td>the board ID of the card</td>
  6440. </tr>
  6441. <tr>
  6442. <td>card</td>
  6443. <td>path</td>
  6444. <td>string</td>
  6445. <td>true</td>
  6446. <td>the ID of the card</td>
  6447. </tr>
  6448. </tbody>
  6449. </table>
  6450. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6451. <p><strong>board</strong>: the board ID of the card</p>
  6452. <p><strong>card</strong>: the ID of the card</p>
  6453. <blockquote>
  6454. <p>Example responses</p>
  6455. </blockquote>
  6456. <blockquote>
  6457. <p>200 Response</p>
  6458. </blockquote>
  6459. <pre class="highlight tab tab-json"><code>[
  6460. {
  6461. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6462. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6463. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6464. }
  6465. ]
  6466. </code></pre>
  6467. <h3 id="get_all_comments-responses">Responses</h3>
  6468. <table>
  6469. <thead>
  6470. <tr>
  6471. <th>Status</th>
  6472. <th>Meaning</th>
  6473. <th>Description</th>
  6474. <th>Schema</th>
  6475. </tr>
  6476. </thead>
  6477. <tbody>
  6478. <tr>
  6479. <td>200</td>
  6480. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6481. <td>200 response</td>
  6482. <td>Inline</td>
  6483. </tr>
  6484. </tbody>
  6485. </table>
  6486. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6487. <p>Status Code <strong>200</strong></p>
  6488. <table>
  6489. <thead>
  6490. <tr>
  6491. <th>Name</th>
  6492. <th>Type</th>
  6493. <th>Required</th>
  6494. <th>Restrictions</th>
  6495. <th>Description</th>
  6496. </tr>
  6497. </thead>
  6498. <tbody>
  6499. <tr>
  6500. <td>» _id</td>
  6501. <td>string</td>
  6502. <td>false</td>
  6503. <td>none</td>
  6504. <td>none</td>
  6505. </tr>
  6506. <tr>
  6507. <td>» comment</td>
  6508. <td>string</td>
  6509. <td>false</td>
  6510. <td>none</td>
  6511. <td>none</td>
  6512. </tr>
  6513. <tr>
  6514. <td>» authorId</td>
  6515. <td>string</td>
  6516. <td>false</td>
  6517. <td>none</td>
  6518. <td>none</td>
  6519. </tr>
  6520. </tbody>
  6521. </table>
  6522. <aside class="warning">
  6523. To perform this operation, you must be authenticated by means of one of the following methods:
  6524. UserSecurity
  6525. </aside>
  6526. <h2 id="new_comment">new_comment</h2>
  6527. <p><a id="opIdnew_comment"></a></p>
  6528. <blockquote>
  6529. <p>Code samples</p>
  6530. </blockquote>
  6531. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6532. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6533. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6534. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6535. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6536. </code></pre>
  6537. <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>
  6538. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6539. Accept: application/json
  6540. </span></code></pre>
  6541. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6542. &quot;authorId&quot;: &quot;string&quot;,
  6543. &quot;comment&quot;: &quot;string&quot;
  6544. }&#x27;</span>;
  6545. <span class="hljs-keyword">const</span> headers = {
  6546. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6547. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6548. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6549. };
  6550. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6551. {
  6552. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6553. <span class="hljs-attr">body</span>: inputBody,
  6554. <span class="hljs-attr">headers</span>: headers
  6555. })
  6556. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6557. <span class="hljs-keyword">return</span> res.json();
  6558. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6559. <span class="hljs-built_in">console</span>.log(body);
  6560. });
  6561. </code></pre>
  6562. <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>);
  6563. <span class="hljs-keyword">const</span> inputBody = {
  6564. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6565. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6566. };
  6567. <span class="hljs-keyword">const</span> headers = {
  6568. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6569. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6570. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6571. };
  6572. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6573. {
  6574. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6575. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6576. <span class="hljs-attr">headers</span>: headers
  6577. })
  6578. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6579. <span class="hljs-keyword">return</span> res.json();
  6580. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6581. <span class="hljs-built_in">console</span>.log(body);
  6582. });
  6583. </code></pre>
  6584. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6585. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6586. headers = {
  6587. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6588. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6589. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6590. }
  6591. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6592. <span class="hljs-symbol">params:</span> {
  6593. }, <span class="hljs-symbol">headers:</span> headers
  6594. p JSON.parse(result)
  6595. </code></pre>
  6596. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6597. headers = {
  6598. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6599. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6600. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6601. }
  6602. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6603. <span class="hljs-built_in">print</span>(r.json())
  6604. </code></pre>
  6605. <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>);
  6606. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6607. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6608. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6609. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6610. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6611. String inputLine;
  6612. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6613. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6614. response.append(inputLine);
  6615. }
  6616. in.close();
  6617. System.out.println(response.toString());
  6618. </code></pre>
  6619. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6620. <span class="hljs-keyword">import</span> (
  6621. <span class="hljs-string">&quot;bytes&quot;</span>
  6622. <span class="hljs-string">&quot;net/http&quot;</span>
  6623. )
  6624. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6625. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6626. <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>},
  6627. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6628. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6629. }
  6630. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6631. 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)
  6632. req.Header = headers
  6633. client := &amp;http.Client{}
  6634. resp, err := client.Do(req)
  6635. <span class="hljs-comment">// ...</span>
  6636. }
  6637. </code></pre>
  6638. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6639. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6640. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6641. );
  6642. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6643. <span class="hljs-comment">// Define array of request body.</span>
  6644. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6645. <span class="hljs-keyword">try</span> {
  6646. <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>(
  6647. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6648. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6649. )
  6650. );
  6651. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6652. }
  6653. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6654. <span class="hljs-comment">// handle exception or api errors.</span>
  6655. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6656. }
  6657. <span class="hljs-comment">// ...</span>
  6658. </code></pre>
  6659. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6660. <p><em>Add a comment on a card</em></p>
  6661. <blockquote>
  6662. <p>Body parameter</p>
  6663. </blockquote>
  6664. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6665. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6666. </code></pre>
  6667. <h3 id="new_comment-parameters">Parameters</h3>
  6668. <table>
  6669. <thead>
  6670. <tr>
  6671. <th>Name</th>
  6672. <th>In</th>
  6673. <th>Type</th>
  6674. <th>Required</th>
  6675. <th>Description</th>
  6676. </tr>
  6677. </thead>
  6678. <tbody>
  6679. <tr>
  6680. <td>board</td>
  6681. <td>path</td>
  6682. <td>string</td>
  6683. <td>true</td>
  6684. <td>the board ID of the card</td>
  6685. </tr>
  6686. <tr>
  6687. <td>card</td>
  6688. <td>path</td>
  6689. <td>string</td>
  6690. <td>true</td>
  6691. <td>the ID of the card</td>
  6692. </tr>
  6693. <tr>
  6694. <td>body</td>
  6695. <td>body</td>
  6696. <td>object</td>
  6697. <td>true</td>
  6698. <td>none</td>
  6699. </tr>
  6700. <tr>
  6701. <td>» authorId</td>
  6702. <td>body</td>
  6703. <td>string</td>
  6704. <td>true</td>
  6705. <td>the user who 'posted' the comment</td>
  6706. </tr>
  6707. <tr>
  6708. <td>» comment</td>
  6709. <td>body</td>
  6710. <td>string</td>
  6711. <td>true</td>
  6712. <td>the comment value</td>
  6713. </tr>
  6714. </tbody>
  6715. </table>
  6716. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6717. <p><strong>board</strong>: the board ID of the card</p>
  6718. <p><strong>card</strong>: the ID of the card</p>
  6719. <blockquote>
  6720. <p>Example responses</p>
  6721. </blockquote>
  6722. <blockquote>
  6723. <p>200 Response</p>
  6724. </blockquote>
  6725. <pre class="highlight tab tab-json"><code>{
  6726. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6727. }
  6728. </code></pre>
  6729. <h3 id="new_comment-responses">Responses</h3>
  6730. <table>
  6731. <thead>
  6732. <tr>
  6733. <th>Status</th>
  6734. <th>Meaning</th>
  6735. <th>Description</th>
  6736. <th>Schema</th>
  6737. </tr>
  6738. </thead>
  6739. <tbody>
  6740. <tr>
  6741. <td>200</td>
  6742. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6743. <td>200 response</td>
  6744. <td>Inline</td>
  6745. </tr>
  6746. </tbody>
  6747. </table>
  6748. <h3 id="new_comment-responseschema">Response Schema</h3>
  6749. <p>Status Code <strong>200</strong></p>
  6750. <table>
  6751. <thead>
  6752. <tr>
  6753. <th>Name</th>
  6754. <th>Type</th>
  6755. <th>Required</th>
  6756. <th>Restrictions</th>
  6757. <th>Description</th>
  6758. </tr>
  6759. </thead>
  6760. <tbody>
  6761. <tr>
  6762. <td>» _id</td>
  6763. <td>string</td>
  6764. <td>false</td>
  6765. <td>none</td>
  6766. <td>none</td>
  6767. </tr>
  6768. </tbody>
  6769. </table>
  6770. <aside class="warning">
  6771. To perform this operation, you must be authenticated by means of one of the following methods:
  6772. UserSecurity
  6773. </aside>
  6774. <h2 id="get_comment">get_comment</h2>
  6775. <p><a id="opIdget_comment"></a></p>
  6776. <blockquote>
  6777. <p>Code samples</p>
  6778. </blockquote>
  6779. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6780. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6781. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6782. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6783. </code></pre>
  6784. <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>
  6785. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6786. </span></code></pre>
  6787. <pre class="highlight tab tab-javascript"><code>
  6788. <span class="hljs-keyword">const</span> headers = {
  6789. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6790. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6791. };
  6792. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6793. {
  6794. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6795. <span class="hljs-attr">headers</span>: headers
  6796. })
  6797. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6798. <span class="hljs-keyword">return</span> res.json();
  6799. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6800. <span class="hljs-built_in">console</span>.log(body);
  6801. });
  6802. </code></pre>
  6803. <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>);
  6804. <span class="hljs-keyword">const</span> headers = {
  6805. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6806. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6807. };
  6808. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6809. {
  6810. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6811. <span class="hljs-attr">headers</span>: headers
  6812. })
  6813. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6814. <span class="hljs-keyword">return</span> res.json();
  6815. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6816. <span class="hljs-built_in">console</span>.log(body);
  6817. });
  6818. </code></pre>
  6819. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6820. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6821. headers = {
  6822. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6823. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6824. }
  6825. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6826. <span class="hljs-symbol">params:</span> {
  6827. }, <span class="hljs-symbol">headers:</span> headers
  6828. p JSON.parse(result)
  6829. </code></pre>
  6830. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6831. headers = {
  6832. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6833. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6834. }
  6835. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6836. <span class="hljs-built_in">print</span>(r.json())
  6837. </code></pre>
  6838. <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>);
  6839. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6840. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6841. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6842. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6843. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6844. String inputLine;
  6845. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6846. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6847. response.append(inputLine);
  6848. }
  6849. in.close();
  6850. System.out.println(response.toString());
  6851. </code></pre>
  6852. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6853. <span class="hljs-keyword">import</span> (
  6854. <span class="hljs-string">&quot;bytes&quot;</span>
  6855. <span class="hljs-string">&quot;net/http&quot;</span>
  6856. )
  6857. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6858. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6859. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6860. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6861. }
  6862. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6863. 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)
  6864. req.Header = headers
  6865. client := &amp;http.Client{}
  6866. resp, err := client.Do(req)
  6867. <span class="hljs-comment">// ...</span>
  6868. }
  6869. </code></pre>
  6870. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6871. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6872. );
  6873. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6874. <span class="hljs-comment">// Define array of request body.</span>
  6875. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6876. <span class="hljs-keyword">try</span> {
  6877. <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>(
  6878. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6879. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6880. )
  6881. );
  6882. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6883. }
  6884. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6885. <span class="hljs-comment">// handle exception or api errors.</span>
  6886. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6887. }
  6888. <span class="hljs-comment">// ...</span>
  6889. </code></pre>
  6890. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6891. <p><em>Get a comment on a card</em></p>
  6892. <h3 id="get_comment-parameters">Parameters</h3>
  6893. <table>
  6894. <thead>
  6895. <tr>
  6896. <th>Name</th>
  6897. <th>In</th>
  6898. <th>Type</th>
  6899. <th>Required</th>
  6900. <th>Description</th>
  6901. </tr>
  6902. </thead>
  6903. <tbody>
  6904. <tr>
  6905. <td>board</td>
  6906. <td>path</td>
  6907. <td>string</td>
  6908. <td>true</td>
  6909. <td>the board ID of the card</td>
  6910. </tr>
  6911. <tr>
  6912. <td>card</td>
  6913. <td>path</td>
  6914. <td>string</td>
  6915. <td>true</td>
  6916. <td>the ID of the card</td>
  6917. </tr>
  6918. <tr>
  6919. <td>comment</td>
  6920. <td>path</td>
  6921. <td>string</td>
  6922. <td>true</td>
  6923. <td>the ID of the comment to retrieve</td>
  6924. </tr>
  6925. </tbody>
  6926. </table>
  6927. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6928. <p><strong>board</strong>: the board ID of the card</p>
  6929. <p><strong>card</strong>: the ID of the card</p>
  6930. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6931. <blockquote>
  6932. <p>Example responses</p>
  6933. </blockquote>
  6934. <blockquote>
  6935. <p>200 Response</p>
  6936. </blockquote>
  6937. <pre class="highlight tab tab-json"><code>{
  6938. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6939. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6940. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6941. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6942. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6943. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6944. }
  6945. </code></pre>
  6946. <h3 id="get_comment-responses">Responses</h3>
  6947. <table>
  6948. <thead>
  6949. <tr>
  6950. <th>Status</th>
  6951. <th>Meaning</th>
  6952. <th>Description</th>
  6953. <th>Schema</th>
  6954. </tr>
  6955. </thead>
  6956. <tbody>
  6957. <tr>
  6958. <td>200</td>
  6959. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6960. <td>200 response</td>
  6961. <td><a href="#schemacardcomments">CardComments</a></td>
  6962. </tr>
  6963. </tbody>
  6964. </table>
  6965. <aside class="warning">
  6966. To perform this operation, you must be authenticated by means of one of the following methods:
  6967. UserSecurity
  6968. </aside>
  6969. <h2 id="delete_comment">delete_comment</h2>
  6970. <p><a id="opIddelete_comment"></a></p>
  6971. <blockquote>
  6972. <p>Code samples</p>
  6973. </blockquote>
  6974. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6975. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6976. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6977. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6978. </code></pre>
  6979. <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>
  6980. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6981. </span></code></pre>
  6982. <pre class="highlight tab tab-javascript"><code>
  6983. <span class="hljs-keyword">const</span> headers = {
  6984. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6985. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6986. };
  6987. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6988. {
  6989. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6990. <span class="hljs-attr">headers</span>: headers
  6991. })
  6992. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6993. <span class="hljs-keyword">return</span> res.json();
  6994. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6995. <span class="hljs-built_in">console</span>.log(body);
  6996. });
  6997. </code></pre>
  6998. <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>);
  6999. <span class="hljs-keyword">const</span> headers = {
  7000. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7001. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7002. };
  7003. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7004. {
  7005. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  7006. <span class="hljs-attr">headers</span>: headers
  7007. })
  7008. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7009. <span class="hljs-keyword">return</span> res.json();
  7010. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7011. <span class="hljs-built_in">console</span>.log(body);
  7012. });
  7013. </code></pre>
  7014. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7015. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7016. headers = {
  7017. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7018. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7019. }
  7020. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  7021. <span class="hljs-symbol">params:</span> {
  7022. }, <span class="hljs-symbol">headers:</span> headers
  7023. p JSON.parse(result)
  7024. </code></pre>
  7025. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7026. headers = {
  7027. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7028. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7029. }
  7030. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  7031. <span class="hljs-built_in">print</span>(r.json())
  7032. </code></pre>
  7033. <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>);
  7034. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7035. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  7036. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7037. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7038. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7039. String inputLine;
  7040. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7041. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7042. response.append(inputLine);
  7043. }
  7044. in.close();
  7045. System.out.println(response.toString());
  7046. </code></pre>
  7047. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7048. <span class="hljs-keyword">import</span> (
  7049. <span class="hljs-string">&quot;bytes&quot;</span>
  7050. <span class="hljs-string">&quot;net/http&quot;</span>
  7051. )
  7052. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7053. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7054. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7055. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7056. }
  7057. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7058. 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)
  7059. req.Header = headers
  7060. client := &amp;http.Client{}
  7061. resp, err := client.Do(req)
  7062. <span class="hljs-comment">// ...</span>
  7063. }
  7064. </code></pre>
  7065. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7066. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7067. );
  7068. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7069. <span class="hljs-comment">// Define array of request body.</span>
  7070. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7071. <span class="hljs-keyword">try</span> {
  7072. <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>(
  7073. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7074. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7075. )
  7076. );
  7077. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7078. }
  7079. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7080. <span class="hljs-comment">// handle exception or api errors.</span>
  7081. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7082. }
  7083. <span class="hljs-comment">// ...</span>
  7084. </code></pre>
  7085. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  7086. <p><em>Delete a comment on a card</em></p>
  7087. <h3 id="delete_comment-parameters">Parameters</h3>
  7088. <table>
  7089. <thead>
  7090. <tr>
  7091. <th>Name</th>
  7092. <th>In</th>
  7093. <th>Type</th>
  7094. <th>Required</th>
  7095. <th>Description</th>
  7096. </tr>
  7097. </thead>
  7098. <tbody>
  7099. <tr>
  7100. <td>board</td>
  7101. <td>path</td>
  7102. <td>string</td>
  7103. <td>true</td>
  7104. <td>the board ID of the card</td>
  7105. </tr>
  7106. <tr>
  7107. <td>card</td>
  7108. <td>path</td>
  7109. <td>string</td>
  7110. <td>true</td>
  7111. <td>the ID of the card</td>
  7112. </tr>
  7113. <tr>
  7114. <td>comment</td>
  7115. <td>path</td>
  7116. <td>string</td>
  7117. <td>true</td>
  7118. <td>the ID of the comment to delete</td>
  7119. </tr>
  7120. </tbody>
  7121. </table>
  7122. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7123. <p><strong>board</strong>: the board ID of the card</p>
  7124. <p><strong>card</strong>: the ID of the card</p>
  7125. <p><strong>comment</strong>: the ID of the comment to delete</p>
  7126. <blockquote>
  7127. <p>Example responses</p>
  7128. </blockquote>
  7129. <blockquote>
  7130. <p>200 Response</p>
  7131. </blockquote>
  7132. <pre class="highlight tab tab-json"><code>{
  7133. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7134. }
  7135. </code></pre>
  7136. <h3 id="delete_comment-responses">Responses</h3>
  7137. <table>
  7138. <thead>
  7139. <tr>
  7140. <th>Status</th>
  7141. <th>Meaning</th>
  7142. <th>Description</th>
  7143. <th>Schema</th>
  7144. </tr>
  7145. </thead>
  7146. <tbody>
  7147. <tr>
  7148. <td>200</td>
  7149. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7150. <td>200 response</td>
  7151. <td>Inline</td>
  7152. </tr>
  7153. </tbody>
  7154. </table>
  7155. <h3 id="delete_comment-responseschema">Response Schema</h3>
  7156. <p>Status Code <strong>200</strong></p>
  7157. <table>
  7158. <thead>
  7159. <tr>
  7160. <th>Name</th>
  7161. <th>Type</th>
  7162. <th>Required</th>
  7163. <th>Restrictions</th>
  7164. <th>Description</th>
  7165. </tr>
  7166. </thead>
  7167. <tbody>
  7168. <tr>
  7169. <td>» _id</td>
  7170. <td>string</td>
  7171. <td>false</td>
  7172. <td>none</td>
  7173. <td>none</td>
  7174. </tr>
  7175. </tbody>
  7176. </table>
  7177. <aside class="warning">
  7178. To perform this operation, you must be authenticated by means of one of the following methods:
  7179. UserSecurity
  7180. </aside>
  7181. <h1 id="wekan-rest-api-cards">Cards</h1>
  7182. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  7183. <p><a id="opIdget_cards_by_custom_field"></a></p>
  7184. <blockquote>
  7185. <p>Code samples</p>
  7186. </blockquote>
  7187. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7188. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  7189. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7190. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7191. </code></pre>
  7192. <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>
  7193. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7194. </span></code></pre>
  7195. <pre class="highlight tab tab-javascript"><code>
  7196. <span class="hljs-keyword">const</span> headers = {
  7197. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7198. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7199. };
  7200. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7201. {
  7202. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7203. <span class="hljs-attr">headers</span>: headers
  7204. })
  7205. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7206. <span class="hljs-keyword">return</span> res.json();
  7207. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7208. <span class="hljs-built_in">console</span>.log(body);
  7209. });
  7210. </code></pre>
  7211. <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>);
  7212. <span class="hljs-keyword">const</span> headers = {
  7213. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7214. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7215. };
  7216. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7217. {
  7218. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7219. <span class="hljs-attr">headers</span>: headers
  7220. })
  7221. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7222. <span class="hljs-keyword">return</span> res.json();
  7223. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7224. <span class="hljs-built_in">console</span>.log(body);
  7225. });
  7226. </code></pre>
  7227. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7228. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7229. headers = {
  7230. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7231. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7232. }
  7233. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7234. <span class="hljs-symbol">params:</span> {
  7235. }, <span class="hljs-symbol">headers:</span> headers
  7236. p JSON.parse(result)
  7237. </code></pre>
  7238. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7239. headers = {
  7240. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7241. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7242. }
  7243. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7244. <span class="hljs-built_in">print</span>(r.json())
  7245. </code></pre>
  7246. <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>);
  7247. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7248. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7249. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7250. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7251. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7252. String inputLine;
  7253. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7254. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7255. response.append(inputLine);
  7256. }
  7257. in.close();
  7258. System.out.println(response.toString());
  7259. </code></pre>
  7260. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7261. <span class="hljs-keyword">import</span> (
  7262. <span class="hljs-string">&quot;bytes&quot;</span>
  7263. <span class="hljs-string">&quot;net/http&quot;</span>
  7264. )
  7265. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7266. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7267. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7268. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7269. }
  7270. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7271. 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)
  7272. req.Header = headers
  7273. client := &amp;http.Client{}
  7274. resp, err := client.Do(req)
  7275. <span class="hljs-comment">// ...</span>
  7276. }
  7277. </code></pre>
  7278. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7279. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7280. );
  7281. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7282. <span class="hljs-comment">// Define array of request body.</span>
  7283. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7284. <span class="hljs-keyword">try</span> {
  7285. <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>(
  7286. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7287. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7288. )
  7289. );
  7290. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7291. }
  7292. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7293. <span class="hljs-comment">// handle exception or api errors.</span>
  7294. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7295. }
  7296. <span class="hljs-comment">// ...</span>
  7297. </code></pre>
  7298. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7299. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7300. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7301. <table>
  7302. <thead>
  7303. <tr>
  7304. <th>Name</th>
  7305. <th>In</th>
  7306. <th>Type</th>
  7307. <th>Required</th>
  7308. <th>Description</th>
  7309. </tr>
  7310. </thead>
  7311. <tbody>
  7312. <tr>
  7313. <td>board</td>
  7314. <td>path</td>
  7315. <td>string</td>
  7316. <td>true</td>
  7317. <td>the board ID</td>
  7318. </tr>
  7319. <tr>
  7320. <td>customField</td>
  7321. <td>path</td>
  7322. <td>string</td>
  7323. <td>true</td>
  7324. <td>the list ID</td>
  7325. </tr>
  7326. <tr>
  7327. <td>customFieldValue</td>
  7328. <td>path</td>
  7329. <td>string</td>
  7330. <td>true</td>
  7331. <td>the value to look for</td>
  7332. </tr>
  7333. </tbody>
  7334. </table>
  7335. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7336. <p><strong>board</strong>: the board ID</p>
  7337. <p><strong>customField</strong>: the list ID</p>
  7338. <p><strong>customFieldValue</strong>: the value to look for</p>
  7339. <blockquote>
  7340. <p>Example responses</p>
  7341. </blockquote>
  7342. <blockquote>
  7343. <p>200 Response</p>
  7344. </blockquote>
  7345. <pre class="highlight tab tab-json"><code>[
  7346. {
  7347. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7348. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7349. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7350. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7351. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7352. }
  7353. ]
  7354. </code></pre>
  7355. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7356. <table>
  7357. <thead>
  7358. <tr>
  7359. <th>Status</th>
  7360. <th>Meaning</th>
  7361. <th>Description</th>
  7362. <th>Schema</th>
  7363. </tr>
  7364. </thead>
  7365. <tbody>
  7366. <tr>
  7367. <td>200</td>
  7368. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7369. <td>200 response</td>
  7370. <td>Inline</td>
  7371. </tr>
  7372. </tbody>
  7373. </table>
  7374. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7375. <p>Status Code <strong>200</strong></p>
  7376. <table>
  7377. <thead>
  7378. <tr>
  7379. <th>Name</th>
  7380. <th>Type</th>
  7381. <th>Required</th>
  7382. <th>Restrictions</th>
  7383. <th>Description</th>
  7384. </tr>
  7385. </thead>
  7386. <tbody>
  7387. <tr>
  7388. <td>» _id</td>
  7389. <td>string</td>
  7390. <td>false</td>
  7391. <td>none</td>
  7392. <td>none</td>
  7393. </tr>
  7394. <tr>
  7395. <td>» title</td>
  7396. <td>string</td>
  7397. <td>false</td>
  7398. <td>none</td>
  7399. <td>none</td>
  7400. </tr>
  7401. <tr>
  7402. <td>» description</td>
  7403. <td>string</td>
  7404. <td>false</td>
  7405. <td>none</td>
  7406. <td>none</td>
  7407. </tr>
  7408. <tr>
  7409. <td>» listId</td>
  7410. <td>string</td>
  7411. <td>false</td>
  7412. <td>none</td>
  7413. <td>none</td>
  7414. </tr>
  7415. <tr>
  7416. <td>» swinlaneId</td>
  7417. <td>string</td>
  7418. <td>false</td>
  7419. <td>none</td>
  7420. <td>none</td>
  7421. </tr>
  7422. </tbody>
  7423. </table>
  7424. <aside class="warning">
  7425. To perform this operation, you must be authenticated by means of one of the following methods:
  7426. UserSecurity
  7427. </aside>
  7428. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  7429. <p><a id="opIdget_board_cards_count"></a></p>
  7430. <blockquote>
  7431. <p>Code samples</p>
  7432. </blockquote>
  7433. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7434. curl -X GET /api/boards/{board}/cards_count \
  7435. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7436. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7437. </code></pre>
  7438. <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>
  7439. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7440. </span></code></pre>
  7441. <pre class="highlight tab tab-javascript"><code>
  7442. <span class="hljs-keyword">const</span> headers = {
  7443. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7444. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7445. };
  7446. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7447. {
  7448. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7449. <span class="hljs-attr">headers</span>: headers
  7450. })
  7451. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7452. <span class="hljs-keyword">return</span> res.json();
  7453. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7454. <span class="hljs-built_in">console</span>.log(body);
  7455. });
  7456. </code></pre>
  7457. <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>);
  7458. <span class="hljs-keyword">const</span> headers = {
  7459. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7460. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7461. };
  7462. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7463. {
  7464. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7465. <span class="hljs-attr">headers</span>: headers
  7466. })
  7467. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7468. <span class="hljs-keyword">return</span> res.json();
  7469. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7470. <span class="hljs-built_in">console</span>.log(body);
  7471. });
  7472. </code></pre>
  7473. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7474. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7475. headers = {
  7476. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7477. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7478. }
  7479. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7480. <span class="hljs-symbol">params:</span> {
  7481. }, <span class="hljs-symbol">headers:</span> headers
  7482. p JSON.parse(result)
  7483. </code></pre>
  7484. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7485. headers = {
  7486. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7487. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7488. }
  7489. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>, headers = headers)
  7490. <span class="hljs-built_in">print</span>(r.json())
  7491. </code></pre>
  7492. <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>);
  7493. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7494. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7495. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7496. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7497. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7498. String inputLine;
  7499. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7500. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7501. response.append(inputLine);
  7502. }
  7503. in.close();
  7504. System.out.println(response.toString());
  7505. </code></pre>
  7506. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7507. <span class="hljs-keyword">import</span> (
  7508. <span class="hljs-string">&quot;bytes&quot;</span>
  7509. <span class="hljs-string">&quot;net/http&quot;</span>
  7510. )
  7511. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7512. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7513. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7514. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7515. }
  7516. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7517. 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)
  7518. req.Header = headers
  7519. client := &amp;http.Client{}
  7520. resp, err := client.Do(req)
  7521. <span class="hljs-comment">// ...</span>
  7522. }
  7523. </code></pre>
  7524. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7525. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7526. );
  7527. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7528. <span class="hljs-comment">// Define array of request body.</span>
  7529. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7530. <span class="hljs-keyword">try</span> {
  7531. <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>(
  7532. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7533. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7534. )
  7535. );
  7536. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7537. }
  7538. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7539. <span class="hljs-comment">// handle exception or api errors.</span>
  7540. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7541. }
  7542. <span class="hljs-comment">// ...</span>
  7543. </code></pre>
  7544. <p><code>GET /api/boards/{board}/cards_count</code></p>
  7545. <p><em>Get a cards count to a board</em></p>
  7546. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  7547. <table>
  7548. <thead>
  7549. <tr>
  7550. <th>Name</th>
  7551. <th>In</th>
  7552. <th>Type</th>
  7553. <th>Required</th>
  7554. <th>Description</th>
  7555. </tr>
  7556. </thead>
  7557. <tbody>
  7558. <tr>
  7559. <td>board</td>
  7560. <td>path</td>
  7561. <td>string</td>
  7562. <td>true</td>
  7563. <td>the board ID</td>
  7564. </tr>
  7565. </tbody>
  7566. </table>
  7567. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7568. <p><strong>board</strong>: the board ID</p>
  7569. <blockquote>
  7570. <p>Example responses</p>
  7571. </blockquote>
  7572. <blockquote>
  7573. <p>200 Response</p>
  7574. </blockquote>
  7575. <pre class="highlight tab tab-json"><code>{
  7576. <span class="hljs-attr">&quot;board_cards_count&quot;</span>: <span class="hljs-number">0</span>
  7577. }
  7578. </code></pre>
  7579. <h3 id="get_board_cards_count-responses">Responses</h3>
  7580. <table>
  7581. <thead>
  7582. <tr>
  7583. <th>Status</th>
  7584. <th>Meaning</th>
  7585. <th>Description</th>
  7586. <th>Schema</th>
  7587. </tr>
  7588. </thead>
  7589. <tbody>
  7590. <tr>
  7591. <td>200</td>
  7592. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7593. <td>200 response</td>
  7594. <td>Inline</td>
  7595. </tr>
  7596. </tbody>
  7597. </table>
  7598. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  7599. <p>Status Code <strong>200</strong></p>
  7600. <table>
  7601. <thead>
  7602. <tr>
  7603. <th>Name</th>
  7604. <th>Type</th>
  7605. <th>Required</th>
  7606. <th>Restrictions</th>
  7607. <th>Description</th>
  7608. </tr>
  7609. </thead>
  7610. <tbody>
  7611. <tr>
  7612. <td>» board_cards_count</td>
  7613. <td>integer</td>
  7614. <td>false</td>
  7615. <td>none</td>
  7616. <td>none</td>
  7617. </tr>
  7618. </tbody>
  7619. </table>
  7620. <aside class="warning">
  7621. To perform this operation, you must be authenticated by means of one of the following methods:
  7622. UserSecurity
  7623. </aside>
  7624. <h2 id="get_all_cards">get_all_cards</h2>
  7625. <p><a id="opIdget_all_cards"></a></p>
  7626. <blockquote>
  7627. <p>Code samples</p>
  7628. </blockquote>
  7629. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7630. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7631. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7632. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7633. </code></pre>
  7634. <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>
  7635. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7636. </span></code></pre>
  7637. <pre class="highlight tab tab-javascript"><code>
  7638. <span class="hljs-keyword">const</span> headers = {
  7639. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7640. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7641. };
  7642. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7643. {
  7644. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7645. <span class="hljs-attr">headers</span>: headers
  7646. })
  7647. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7648. <span class="hljs-keyword">return</span> res.json();
  7649. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7650. <span class="hljs-built_in">console</span>.log(body);
  7651. });
  7652. </code></pre>
  7653. <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>);
  7654. <span class="hljs-keyword">const</span> headers = {
  7655. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7656. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7657. };
  7658. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7659. {
  7660. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7661. <span class="hljs-attr">headers</span>: headers
  7662. })
  7663. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7664. <span class="hljs-keyword">return</span> res.json();
  7665. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7666. <span class="hljs-built_in">console</span>.log(body);
  7667. });
  7668. </code></pre>
  7669. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7670. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7671. headers = {
  7672. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7673. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7674. }
  7675. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7676. <span class="hljs-symbol">params:</span> {
  7677. }, <span class="hljs-symbol">headers:</span> headers
  7678. p JSON.parse(result)
  7679. </code></pre>
  7680. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7681. headers = {
  7682. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7683. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7684. }
  7685. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7686. <span class="hljs-built_in">print</span>(r.json())
  7687. </code></pre>
  7688. <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>);
  7689. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7690. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7691. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7692. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7693. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7694. String inputLine;
  7695. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7696. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7697. response.append(inputLine);
  7698. }
  7699. in.close();
  7700. System.out.println(response.toString());
  7701. </code></pre>
  7702. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7703. <span class="hljs-keyword">import</span> (
  7704. <span class="hljs-string">&quot;bytes&quot;</span>
  7705. <span class="hljs-string">&quot;net/http&quot;</span>
  7706. )
  7707. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7708. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7709. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7710. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7711. }
  7712. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7713. 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)
  7714. req.Header = headers
  7715. client := &amp;http.Client{}
  7716. resp, err := client.Do(req)
  7717. <span class="hljs-comment">// ...</span>
  7718. }
  7719. </code></pre>
  7720. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7721. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7722. );
  7723. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7724. <span class="hljs-comment">// Define array of request body.</span>
  7725. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7726. <span class="hljs-keyword">try</span> {
  7727. <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>(
  7728. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7729. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7730. )
  7731. );
  7732. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7733. }
  7734. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7735. <span class="hljs-comment">// handle exception or api errors.</span>
  7736. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7737. }
  7738. <span class="hljs-comment">// ...</span>
  7739. </code></pre>
  7740. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7741. <p><em>Get all Cards attached to a List</em></p>
  7742. <h3 id="get_all_cards-parameters">Parameters</h3>
  7743. <table>
  7744. <thead>
  7745. <tr>
  7746. <th>Name</th>
  7747. <th>In</th>
  7748. <th>Type</th>
  7749. <th>Required</th>
  7750. <th>Description</th>
  7751. </tr>
  7752. </thead>
  7753. <tbody>
  7754. <tr>
  7755. <td>board</td>
  7756. <td>path</td>
  7757. <td>string</td>
  7758. <td>true</td>
  7759. <td>the board ID</td>
  7760. </tr>
  7761. <tr>
  7762. <td>list</td>
  7763. <td>path</td>
  7764. <td>string</td>
  7765. <td>true</td>
  7766. <td>the list ID</td>
  7767. </tr>
  7768. </tbody>
  7769. </table>
  7770. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7771. <p><strong>board</strong>: the board ID</p>
  7772. <p><strong>list</strong>: the list ID</p>
  7773. <blockquote>
  7774. <p>Example responses</p>
  7775. </blockquote>
  7776. <blockquote>
  7777. <p>200 Response</p>
  7778. </blockquote>
  7779. <pre class="highlight tab tab-json"><code>[
  7780. {
  7781. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7782. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7783. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7784. }
  7785. ]
  7786. </code></pre>
  7787. <h3 id="get_all_cards-responses">Responses</h3>
  7788. <table>
  7789. <thead>
  7790. <tr>
  7791. <th>Status</th>
  7792. <th>Meaning</th>
  7793. <th>Description</th>
  7794. <th>Schema</th>
  7795. </tr>
  7796. </thead>
  7797. <tbody>
  7798. <tr>
  7799. <td>200</td>
  7800. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7801. <td>200 response</td>
  7802. <td>Inline</td>
  7803. </tr>
  7804. </tbody>
  7805. </table>
  7806. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7807. <p>Status Code <strong>200</strong></p>
  7808. <table>
  7809. <thead>
  7810. <tr>
  7811. <th>Name</th>
  7812. <th>Type</th>
  7813. <th>Required</th>
  7814. <th>Restrictions</th>
  7815. <th>Description</th>
  7816. </tr>
  7817. </thead>
  7818. <tbody>
  7819. <tr>
  7820. <td>» _id</td>
  7821. <td>string</td>
  7822. <td>false</td>
  7823. <td>none</td>
  7824. <td>none</td>
  7825. </tr>
  7826. <tr>
  7827. <td>» title</td>
  7828. <td>string</td>
  7829. <td>false</td>
  7830. <td>none</td>
  7831. <td>none</td>
  7832. </tr>
  7833. <tr>
  7834. <td>» description</td>
  7835. <td>string</td>
  7836. <td>false</td>
  7837. <td>none</td>
  7838. <td>none</td>
  7839. </tr>
  7840. </tbody>
  7841. </table>
  7842. <aside class="warning">
  7843. To perform this operation, you must be authenticated by means of one of the following methods:
  7844. UserSecurity
  7845. </aside>
  7846. <h2 id="new_card">new_card</h2>
  7847. <p><a id="opIdnew_card"></a></p>
  7848. <blockquote>
  7849. <p>Code samples</p>
  7850. </blockquote>
  7851. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7852. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7853. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7854. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7855. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7856. </code></pre>
  7857. <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>
  7858. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7859. Accept: application/json
  7860. </span></code></pre>
  7861. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7862. &quot;authorId&quot;: &quot;string&quot;,
  7863. &quot;members&quot;: &quot;string&quot;,
  7864. &quot;assignees&quot;: &quot;string&quot;,
  7865. &quot;title&quot;: &quot;string&quot;,
  7866. &quot;description&quot;: &quot;string&quot;,
  7867. &quot;swimlaneId&quot;: &quot;string&quot;
  7868. }&#x27;</span>;
  7869. <span class="hljs-keyword">const</span> headers = {
  7870. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7871. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7872. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7873. };
  7874. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7875. {
  7876. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7877. <span class="hljs-attr">body</span>: inputBody,
  7878. <span class="hljs-attr">headers</span>: headers
  7879. })
  7880. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7881. <span class="hljs-keyword">return</span> res.json();
  7882. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7883. <span class="hljs-built_in">console</span>.log(body);
  7884. });
  7885. </code></pre>
  7886. <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>);
  7887. <span class="hljs-keyword">const</span> inputBody = {
  7888. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7889. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7890. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7891. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7892. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7893. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7894. };
  7895. <span class="hljs-keyword">const</span> headers = {
  7896. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7897. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7898. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7899. };
  7900. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7901. {
  7902. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7903. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7904. <span class="hljs-attr">headers</span>: headers
  7905. })
  7906. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7907. <span class="hljs-keyword">return</span> res.json();
  7908. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7909. <span class="hljs-built_in">console</span>.log(body);
  7910. });
  7911. </code></pre>
  7912. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7913. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7914. headers = {
  7915. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7916. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7917. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7918. }
  7919. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7920. <span class="hljs-symbol">params:</span> {
  7921. }, <span class="hljs-symbol">headers:</span> headers
  7922. p JSON.parse(result)
  7923. </code></pre>
  7924. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7925. headers = {
  7926. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7927. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7928. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7929. }
  7930. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7931. <span class="hljs-built_in">print</span>(r.json())
  7932. </code></pre>
  7933. <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>);
  7934. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7935. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7936. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7937. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7938. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7939. String inputLine;
  7940. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7941. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7942. response.append(inputLine);
  7943. }
  7944. in.close();
  7945. System.out.println(response.toString());
  7946. </code></pre>
  7947. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7948. <span class="hljs-keyword">import</span> (
  7949. <span class="hljs-string">&quot;bytes&quot;</span>
  7950. <span class="hljs-string">&quot;net/http&quot;</span>
  7951. )
  7952. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7953. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7954. <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>},
  7955. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7956. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7957. }
  7958. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7959. 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)
  7960. req.Header = headers
  7961. client := &amp;http.Client{}
  7962. resp, err := client.Do(req)
  7963. <span class="hljs-comment">// ...</span>
  7964. }
  7965. </code></pre>
  7966. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7967. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7968. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7969. );
  7970. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7971. <span class="hljs-comment">// Define array of request body.</span>
  7972. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7973. <span class="hljs-keyword">try</span> {
  7974. <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>(
  7975. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7976. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7977. )
  7978. );
  7979. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7980. }
  7981. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7982. <span class="hljs-comment">// handle exception or api errors.</span>
  7983. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7984. }
  7985. <span class="hljs-comment">// ...</span>
  7986. </code></pre>
  7987. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7988. <p><em>Create a new Card</em></p>
  7989. <blockquote>
  7990. <p>Body parameter</p>
  7991. </blockquote>
  7992. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7993. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7994. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7995. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7996. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7997. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7998. </code></pre>
  7999. <h3 id="new_card-parameters">Parameters</h3>
  8000. <table>
  8001. <thead>
  8002. <tr>
  8003. <th>Name</th>
  8004. <th>In</th>
  8005. <th>Type</th>
  8006. <th>Required</th>
  8007. <th>Description</th>
  8008. </tr>
  8009. </thead>
  8010. <tbody>
  8011. <tr>
  8012. <td>board</td>
  8013. <td>path</td>
  8014. <td>string</td>
  8015. <td>true</td>
  8016. <td>the board ID of the new card</td>
  8017. </tr>
  8018. <tr>
  8019. <td>list</td>
  8020. <td>path</td>
  8021. <td>string</td>
  8022. <td>true</td>
  8023. <td>the list ID of the new card</td>
  8024. </tr>
  8025. <tr>
  8026. <td>body</td>
  8027. <td>body</td>
  8028. <td>object</td>
  8029. <td>true</td>
  8030. <td>none</td>
  8031. </tr>
  8032. <tr>
  8033. <td>» authorId</td>
  8034. <td>body</td>
  8035. <td>string</td>
  8036. <td>true</td>
  8037. <td>the authorId value</td>
  8038. </tr>
  8039. <tr>
  8040. <td>» members</td>
  8041. <td>body</td>
  8042. <td>string</td>
  8043. <td>false</td>
  8044. <td>the member IDs list of the new card</td>
  8045. </tr>
  8046. <tr>
  8047. <td>» assignees</td>
  8048. <td>body</td>
  8049. <td>string</td>
  8050. <td>false</td>
  8051. <td>the assignee IDs list of the new card</td>
  8052. </tr>
  8053. <tr>
  8054. <td>» title</td>
  8055. <td>body</td>
  8056. <td>string</td>
  8057. <td>true</td>
  8058. <td>the title of the new card</td>
  8059. </tr>
  8060. <tr>
  8061. <td>» description</td>
  8062. <td>body</td>
  8063. <td>string</td>
  8064. <td>true</td>
  8065. <td>the description of the new card</td>
  8066. </tr>
  8067. <tr>
  8068. <td>» swimlaneId</td>
  8069. <td>body</td>
  8070. <td>string</td>
  8071. <td>true</td>
  8072. <td>the swimlane ID of the new card</td>
  8073. </tr>
  8074. </tbody>
  8075. </table>
  8076. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8077. <p><strong>board</strong>: the board ID of the new card</p>
  8078. <p><strong>list</strong>: the list ID of the new card</p>
  8079. <blockquote>
  8080. <p>Example responses</p>
  8081. </blockquote>
  8082. <blockquote>
  8083. <p>200 Response</p>
  8084. </blockquote>
  8085. <pre class="highlight tab tab-json"><code>{
  8086. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8087. }
  8088. </code></pre>
  8089. <h3 id="new_card-responses">Responses</h3>
  8090. <table>
  8091. <thead>
  8092. <tr>
  8093. <th>Status</th>
  8094. <th>Meaning</th>
  8095. <th>Description</th>
  8096. <th>Schema</th>
  8097. </tr>
  8098. </thead>
  8099. <tbody>
  8100. <tr>
  8101. <td>200</td>
  8102. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8103. <td>200 response</td>
  8104. <td>Inline</td>
  8105. </tr>
  8106. </tbody>
  8107. </table>
  8108. <h3 id="new_card-responseschema">Response Schema</h3>
  8109. <p>Status Code <strong>200</strong></p>
  8110. <table>
  8111. <thead>
  8112. <tr>
  8113. <th>Name</th>
  8114. <th>Type</th>
  8115. <th>Required</th>
  8116. <th>Restrictions</th>
  8117. <th>Description</th>
  8118. </tr>
  8119. </thead>
  8120. <tbody>
  8121. <tr>
  8122. <td>» _id</td>
  8123. <td>string</td>
  8124. <td>false</td>
  8125. <td>none</td>
  8126. <td>none</td>
  8127. </tr>
  8128. </tbody>
  8129. </table>
  8130. <aside class="warning">
  8131. To perform this operation, you must be authenticated by means of one of the following methods:
  8132. UserSecurity
  8133. </aside>
  8134. <h2 id="get_card">get_card</h2>
  8135. <p><a id="opIdget_card"></a></p>
  8136. <blockquote>
  8137. <p>Code samples</p>
  8138. </blockquote>
  8139. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8140. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  8141. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8142. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8143. </code></pre>
  8144. <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>
  8145. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8146. </span></code></pre>
  8147. <pre class="highlight tab tab-javascript"><code>
  8148. <span class="hljs-keyword">const</span> headers = {
  8149. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8150. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8151. };
  8152. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8153. {
  8154. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8155. <span class="hljs-attr">headers</span>: headers
  8156. })
  8157. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8158. <span class="hljs-keyword">return</span> res.json();
  8159. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8160. <span class="hljs-built_in">console</span>.log(body);
  8161. });
  8162. </code></pre>
  8163. <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>);
  8164. <span class="hljs-keyword">const</span> headers = {
  8165. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8166. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8167. };
  8168. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8169. {
  8170. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8171. <span class="hljs-attr">headers</span>: headers
  8172. })
  8173. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8174. <span class="hljs-keyword">return</span> res.json();
  8175. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8176. <span class="hljs-built_in">console</span>.log(body);
  8177. });
  8178. </code></pre>
  8179. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8180. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8181. headers = {
  8182. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8183. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8184. }
  8185. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8186. <span class="hljs-symbol">params:</span> {
  8187. }, <span class="hljs-symbol">headers:</span> headers
  8188. p JSON.parse(result)
  8189. </code></pre>
  8190. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8191. headers = {
  8192. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8193. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8194. }
  8195. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8196. <span class="hljs-built_in">print</span>(r.json())
  8197. </code></pre>
  8198. <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>);
  8199. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8200. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8201. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8202. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8203. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8204. String inputLine;
  8205. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8206. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8207. response.append(inputLine);
  8208. }
  8209. in.close();
  8210. System.out.println(response.toString());
  8211. </code></pre>
  8212. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8213. <span class="hljs-keyword">import</span> (
  8214. <span class="hljs-string">&quot;bytes&quot;</span>
  8215. <span class="hljs-string">&quot;net/http&quot;</span>
  8216. )
  8217. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8218. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8219. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8220. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8221. }
  8222. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8223. 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)
  8224. req.Header = headers
  8225. client := &amp;http.Client{}
  8226. resp, err := client.Do(req)
  8227. <span class="hljs-comment">// ...</span>
  8228. }
  8229. </code></pre>
  8230. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8231. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8232. );
  8233. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8234. <span class="hljs-comment">// Define array of request body.</span>
  8235. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8236. <span class="hljs-keyword">try</span> {
  8237. <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>(
  8238. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8239. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8240. )
  8241. );
  8242. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8243. }
  8244. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8245. <span class="hljs-comment">// handle exception or api errors.</span>
  8246. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8247. }
  8248. <span class="hljs-comment">// ...</span>
  8249. </code></pre>
  8250. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8251. <p><em>Get a Card</em></p>
  8252. <h3 id="get_card-parameters">Parameters</h3>
  8253. <table>
  8254. <thead>
  8255. <tr>
  8256. <th>Name</th>
  8257. <th>In</th>
  8258. <th>Type</th>
  8259. <th>Required</th>
  8260. <th>Description</th>
  8261. </tr>
  8262. </thead>
  8263. <tbody>
  8264. <tr>
  8265. <td>board</td>
  8266. <td>path</td>
  8267. <td>string</td>
  8268. <td>true</td>
  8269. <td>the board ID</td>
  8270. </tr>
  8271. <tr>
  8272. <td>list</td>
  8273. <td>path</td>
  8274. <td>string</td>
  8275. <td>true</td>
  8276. <td>the list ID of the card</td>
  8277. </tr>
  8278. <tr>
  8279. <td>card</td>
  8280. <td>path</td>
  8281. <td>string</td>
  8282. <td>true</td>
  8283. <td>the card ID</td>
  8284. </tr>
  8285. </tbody>
  8286. </table>
  8287. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8288. <p><strong>board</strong>: the board ID</p>
  8289. <p><strong>list</strong>: the list ID of the card</p>
  8290. <p><strong>card</strong>: the card ID</p>
  8291. <blockquote>
  8292. <p>Example responses</p>
  8293. </blockquote>
  8294. <blockquote>
  8295. <p>200 Response</p>
  8296. </blockquote>
  8297. <pre class="highlight tab tab-json"><code>{
  8298. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8299. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  8300. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8301. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8302. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8303. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8304. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8305. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8306. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  8307. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8308. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8309. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  8310. {}
  8311. ],
  8312. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8313. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8314. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8315. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8316. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  8317. <span class="hljs-string">&quot;string&quot;</span>
  8318. ],
  8319. <span class="hljs-attr">&quot;members&quot;</span>: [
  8320. <span class="hljs-string">&quot;string&quot;</span>
  8321. ],
  8322. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  8323. <span class="hljs-string">&quot;string&quot;</span>
  8324. ],
  8325. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8326. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8327. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8328. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8329. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  8330. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  8331. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8332. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  8333. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  8334. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8335. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8336. <span class="hljs-attr">&quot;vote&quot;</span>: {
  8337. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8338. <span class="hljs-attr">&quot;positive&quot;</span>: [
  8339. <span class="hljs-string">&quot;string&quot;</span>
  8340. ],
  8341. <span class="hljs-attr">&quot;negative&quot;</span>: [
  8342. <span class="hljs-string">&quot;string&quot;</span>
  8343. ],
  8344. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8345. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  8346. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  8347. },
  8348. <span class="hljs-attr">&quot;poker&quot;</span>: {
  8349. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  8350. <span class="hljs-attr">&quot;one&quot;</span>: [
  8351. <span class="hljs-string">&quot;string&quot;</span>
  8352. ],
  8353. <span class="hljs-attr">&quot;two&quot;</span>: [
  8354. <span class="hljs-string">&quot;string&quot;</span>
  8355. ],
  8356. <span class="hljs-attr">&quot;three&quot;</span>: [
  8357. <span class="hljs-string">&quot;string&quot;</span>
  8358. ],
  8359. <span class="hljs-attr">&quot;five&quot;</span>: [
  8360. <span class="hljs-string">&quot;string&quot;</span>
  8361. ],
  8362. <span class="hljs-attr">&quot;eight&quot;</span>: [
  8363. <span class="hljs-string">&quot;string&quot;</span>
  8364. ],
  8365. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  8366. <span class="hljs-string">&quot;string&quot;</span>
  8367. ],
  8368. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  8369. <span class="hljs-string">&quot;string&quot;</span>
  8370. ],
  8371. <span class="hljs-attr">&quot;forty&quot;</span>: [
  8372. <span class="hljs-string">&quot;string&quot;</span>
  8373. ],
  8374. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  8375. <span class="hljs-string">&quot;string&quot;</span>
  8376. ],
  8377. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  8378. <span class="hljs-string">&quot;string&quot;</span>
  8379. ],
  8380. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8381. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  8382. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  8383. },
  8384. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  8385. <span class="hljs-string">&quot;string&quot;</span>
  8386. ],
  8387. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  8388. <span class="hljs-number">0</span>
  8389. ],
  8390. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  8391. <span class="hljs-string">&quot;string&quot;</span>
  8392. ],
  8393. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  8394. }
  8395. </code></pre>
  8396. <h3 id="get_card-responses">Responses</h3>
  8397. <table>
  8398. <thead>
  8399. <tr>
  8400. <th>Status</th>
  8401. <th>Meaning</th>
  8402. <th>Description</th>
  8403. <th>Schema</th>
  8404. </tr>
  8405. </thead>
  8406. <tbody>
  8407. <tr>
  8408. <td>200</td>
  8409. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8410. <td>200 response</td>
  8411. <td><a href="#schemacards">Cards</a></td>
  8412. </tr>
  8413. </tbody>
  8414. </table>
  8415. <aside class="warning">
  8416. To perform this operation, you must be authenticated by means of one of the following methods:
  8417. UserSecurity
  8418. </aside>
  8419. <h2 id="edit_card">edit_card</h2>
  8420. <p><a id="opIdedit_card"></a></p>
  8421. <blockquote>
  8422. <p>Code samples</p>
  8423. </blockquote>
  8424. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8425. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8426. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8427. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8428. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8429. </code></pre>
  8430. <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>
  8431. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8432. Accept: application/json
  8433. </span></code></pre>
  8434. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8435. &quot;title&quot;: &quot;string&quot;,
  8436. &quot;sort&quot;: &quot;string&quot;,
  8437. &quot;parentId&quot;: &quot;string&quot;,
  8438. &quot;description&quot;: &quot;string&quot;,
  8439. &quot;color&quot;: &quot;string&quot;,
  8440. &quot;vote&quot;: {},
  8441. &quot;poker&quot;: {},
  8442. &quot;labelIds&quot;: &quot;string&quot;,
  8443. &quot;requestedBy&quot;: &quot;string&quot;,
  8444. &quot;assignedBy&quot;: &quot;string&quot;,
  8445. &quot;receivedAt&quot;: &quot;string&quot;,
  8446. &quot;startAt&quot;: &quot;string&quot;,
  8447. &quot;dueAt&quot;: &quot;string&quot;,
  8448. &quot;endAt&quot;: &quot;string&quot;,
  8449. &quot;spentTime&quot;: &quot;string&quot;,
  8450. &quot;isOverTime&quot;: true,
  8451. &quot;customFields&quot;: &quot;string&quot;,
  8452. &quot;members&quot;: &quot;string&quot;,
  8453. &quot;assignees&quot;: &quot;string&quot;,
  8454. &quot;swimlaneId&quot;: &quot;string&quot;,
  8455. &quot;listId&quot;: &quot;string&quot;,
  8456. &quot;authorId&quot;: &quot;string&quot;
  8457. }&#x27;</span>;
  8458. <span class="hljs-keyword">const</span> headers = {
  8459. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8460. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8461. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8462. };
  8463. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8464. {
  8465. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8466. <span class="hljs-attr">body</span>: inputBody,
  8467. <span class="hljs-attr">headers</span>: headers
  8468. })
  8469. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8470. <span class="hljs-keyword">return</span> res.json();
  8471. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8472. <span class="hljs-built_in">console</span>.log(body);
  8473. });
  8474. </code></pre>
  8475. <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>);
  8476. <span class="hljs-keyword">const</span> inputBody = {
  8477. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8478. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8479. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8480. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8481. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8482. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8483. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8484. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8485. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8486. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8487. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8488. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8489. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8490. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8491. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8492. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8493. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8494. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8495. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8496. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8497. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8498. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8499. };
  8500. <span class="hljs-keyword">const</span> headers = {
  8501. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8502. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8503. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8504. };
  8505. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8506. {
  8507. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8508. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8509. <span class="hljs-attr">headers</span>: headers
  8510. })
  8511. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8512. <span class="hljs-keyword">return</span> res.json();
  8513. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8514. <span class="hljs-built_in">console</span>.log(body);
  8515. });
  8516. </code></pre>
  8517. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8518. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8519. headers = {
  8520. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8521. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8522. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8523. }
  8524. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8525. <span class="hljs-symbol">params:</span> {
  8526. }, <span class="hljs-symbol">headers:</span> headers
  8527. p JSON.parse(result)
  8528. </code></pre>
  8529. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8530. headers = {
  8531. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8532. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8533. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8534. }
  8535. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8536. <span class="hljs-built_in">print</span>(r.json())
  8537. </code></pre>
  8538. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>);
  8539. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8540. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8541. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8542. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8543. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8544. String inputLine;
  8545. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8546. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8547. response.append(inputLine);
  8548. }
  8549. in.close();
  8550. System.out.println(response.toString());
  8551. </code></pre>
  8552. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8553. <span class="hljs-keyword">import</span> (
  8554. <span class="hljs-string">&quot;bytes&quot;</span>
  8555. <span class="hljs-string">&quot;net/http&quot;</span>
  8556. )
  8557. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8558. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8559. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  8560. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8561. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8562. }
  8563. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8564. 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)
  8565. req.Header = headers
  8566. client := &amp;http.Client{}
  8567. resp, err := client.Do(req)
  8568. <span class="hljs-comment">// ...</span>
  8569. }
  8570. </code></pre>
  8571. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8572. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8573. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8574. );
  8575. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8576. <span class="hljs-comment">// Define array of request body.</span>
  8577. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8578. <span class="hljs-keyword">try</span> {
  8579. <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>(
  8580. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8581. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8582. )
  8583. );
  8584. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8585. }
  8586. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8587. <span class="hljs-comment">// handle exception or api errors.</span>
  8588. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8589. }
  8590. <span class="hljs-comment">// ...</span>
  8591. </code></pre>
  8592. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8593. <p><em>Edit Fields in a Card</em></p>
  8594. <p>Edit a card</p>
  8595. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8596. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8597. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8598. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8599. <code>indigo</code>:</p>
  8600. <img src="/card-colors.png" alt="Wekan card colors" />
  8601. <p>Note: setting the color to white has the same effect than removing it.</p>
  8602. <blockquote>
  8603. <p>Body parameter</p>
  8604. </blockquote>
  8605. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8606. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8607. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8608. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8609. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8610. <span class="hljs-attr">vote:</span> {}
  8611. <span class="hljs-attr">poker:</span> {}
  8612. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8613. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8614. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8615. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8616. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8617. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8618. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8619. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8620. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8621. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8622. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8623. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8624. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8625. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8626. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8627. </code></pre>
  8628. <h3 id="edit_card-parameters">Parameters</h3>
  8629. <table>
  8630. <thead>
  8631. <tr>
  8632. <th>Name</th>
  8633. <th>In</th>
  8634. <th>Type</th>
  8635. <th>Required</th>
  8636. <th>Description</th>
  8637. </tr>
  8638. </thead>
  8639. <tbody>
  8640. <tr>
  8641. <td>board</td>
  8642. <td>path</td>
  8643. <td>string</td>
  8644. <td>true</td>
  8645. <td>the board ID of the card</td>
  8646. </tr>
  8647. <tr>
  8648. <td>list</td>
  8649. <td>path</td>
  8650. <td>string</td>
  8651. <td>true</td>
  8652. <td>the list ID of the card</td>
  8653. </tr>
  8654. <tr>
  8655. <td>card</td>
  8656. <td>path</td>
  8657. <td>string</td>
  8658. <td>true</td>
  8659. <td>the ID of the card</td>
  8660. </tr>
  8661. <tr>
  8662. <td>body</td>
  8663. <td>body</td>
  8664. <td>object</td>
  8665. <td>false</td>
  8666. <td>none</td>
  8667. </tr>
  8668. <tr>
  8669. <td>» title</td>
  8670. <td>body</td>
  8671. <td>string</td>
  8672. <td>false</td>
  8673. <td>the new title of the card</td>
  8674. </tr>
  8675. <tr>
  8676. <td>» sort</td>
  8677. <td>body</td>
  8678. <td>string</td>
  8679. <td>false</td>
  8680. <td>the new sort value of the card</td>
  8681. </tr>
  8682. <tr>
  8683. <td>» parentId</td>
  8684. <td>body</td>
  8685. <td>string</td>
  8686. <td>false</td>
  8687. <td>change the parent of the card</td>
  8688. </tr>
  8689. <tr>
  8690. <td>» description</td>
  8691. <td>body</td>
  8692. <td>string</td>
  8693. <td>false</td>
  8694. <td>the new description of the card</td>
  8695. </tr>
  8696. <tr>
  8697. <td>» color</td>
  8698. <td>body</td>
  8699. <td>string</td>
  8700. <td>false</td>
  8701. <td>the new color of the card</td>
  8702. </tr>
  8703. <tr>
  8704. <td>» vote</td>
  8705. <td>body</td>
  8706. <td>object</td>
  8707. <td>false</td>
  8708. <td>the vote object</td>
  8709. </tr>
  8710. <tr>
  8711. <td>» poker</td>
  8712. <td>body</td>
  8713. <td>object</td>
  8714. <td>false</td>
  8715. <td>the poker object</td>
  8716. </tr>
  8717. <tr>
  8718. <td>» labelIds</td>
  8719. <td>body</td>
  8720. <td>string</td>
  8721. <td>false</td>
  8722. <td>the new list of label IDs attached to the card</td>
  8723. </tr>
  8724. <tr>
  8725. <td>» requestedBy</td>
  8726. <td>body</td>
  8727. <td>string</td>
  8728. <td>false</td>
  8729. <td>the new requestedBy field of the card</td>
  8730. </tr>
  8731. <tr>
  8732. <td>» assignedBy</td>
  8733. <td>body</td>
  8734. <td>string</td>
  8735. <td>false</td>
  8736. <td>the new assignedBy field of the card</td>
  8737. </tr>
  8738. <tr>
  8739. <td>» receivedAt</td>
  8740. <td>body</td>
  8741. <td>string</td>
  8742. <td>false</td>
  8743. <td>the new receivedAt field of the card</td>
  8744. </tr>
  8745. <tr>
  8746. <td>» startAt</td>
  8747. <td>body</td>
  8748. <td>string</td>
  8749. <td>false</td>
  8750. <td>the new startAt field of the card</td>
  8751. </tr>
  8752. <tr>
  8753. <td>» dueAt</td>
  8754. <td>body</td>
  8755. <td>string</td>
  8756. <td>false</td>
  8757. <td>the new dueAt field of the card</td>
  8758. </tr>
  8759. <tr>
  8760. <td>» endAt</td>
  8761. <td>body</td>
  8762. <td>string</td>
  8763. <td>false</td>
  8764. <td>the new endAt field of the card</td>
  8765. </tr>
  8766. <tr>
  8767. <td>» spentTime</td>
  8768. <td>body</td>
  8769. <td>string</td>
  8770. <td>false</td>
  8771. <td>the new spentTime field of the card</td>
  8772. </tr>
  8773. <tr>
  8774. <td>» isOverTime</td>
  8775. <td>body</td>
  8776. <td>boolean</td>
  8777. <td>false</td>
  8778. <td>the new isOverTime field of the card</td>
  8779. </tr>
  8780. <tr>
  8781. <td>» customFields</td>
  8782. <td>body</td>
  8783. <td>string</td>
  8784. <td>false</td>
  8785. <td>the new customFields value of the card</td>
  8786. </tr>
  8787. <tr>
  8788. <td>» members</td>
  8789. <td>body</td>
  8790. <td>string</td>
  8791. <td>false</td>
  8792. <td>the new list of member IDs attached to the card</td>
  8793. </tr>
  8794. <tr>
  8795. <td>» assignees</td>
  8796. <td>body</td>
  8797. <td>string</td>
  8798. <td>false</td>
  8799. <td>the array of maximum one ID of assignee attached to the card</td>
  8800. </tr>
  8801. <tr>
  8802. <td>» swimlaneId</td>
  8803. <td>body</td>
  8804. <td>string</td>
  8805. <td>false</td>
  8806. <td>the new swimlane ID of the card</td>
  8807. </tr>
  8808. <tr>
  8809. <td>» listId</td>
  8810. <td>body</td>
  8811. <td>string</td>
  8812. <td>false</td>
  8813. <td>the new list ID of the card (move operation)</td>
  8814. </tr>
  8815. <tr>
  8816. <td>» authorId</td>
  8817. <td>body</td>
  8818. <td>string</td>
  8819. <td>false</td>
  8820. <td>change the owner of the card</td>
  8821. </tr>
  8822. </tbody>
  8823. </table>
  8824. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8825. <p><strong>board</strong>: the board ID of the card</p>
  8826. <p><strong>list</strong>: the list ID of the card</p>
  8827. <p><strong>card</strong>: the ID of the card</p>
  8828. <blockquote>
  8829. <p>Example responses</p>
  8830. </blockquote>
  8831. <blockquote>
  8832. <p>200 Response</p>
  8833. </blockquote>
  8834. <pre class="highlight tab tab-json"><code>{
  8835. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8836. }
  8837. </code></pre>
  8838. <h3 id="edit_card-responses">Responses</h3>
  8839. <table>
  8840. <thead>
  8841. <tr>
  8842. <th>Status</th>
  8843. <th>Meaning</th>
  8844. <th>Description</th>
  8845. <th>Schema</th>
  8846. </tr>
  8847. </thead>
  8848. <tbody>
  8849. <tr>
  8850. <td>200</td>
  8851. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8852. <td>200 response</td>
  8853. <td>Inline</td>
  8854. </tr>
  8855. </tbody>
  8856. </table>
  8857. <h3 id="edit_card-responseschema">Response Schema</h3>
  8858. <p>Status Code <strong>200</strong></p>
  8859. <table>
  8860. <thead>
  8861. <tr>
  8862. <th>Name</th>
  8863. <th>Type</th>
  8864. <th>Required</th>
  8865. <th>Restrictions</th>
  8866. <th>Description</th>
  8867. </tr>
  8868. </thead>
  8869. <tbody>
  8870. <tr>
  8871. <td>» _id</td>
  8872. <td>string</td>
  8873. <td>false</td>
  8874. <td>none</td>
  8875. <td>none</td>
  8876. </tr>
  8877. </tbody>
  8878. </table>
  8879. <aside class="warning">
  8880. To perform this operation, you must be authenticated by means of one of the following methods:
  8881. UserSecurity
  8882. </aside>
  8883. <h2 id="delete_card">delete_card</h2>
  8884. <p><a id="opIddelete_card"></a></p>
  8885. <blockquote>
  8886. <p>Code samples</p>
  8887. </blockquote>
  8888. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8889. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8890. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8891. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8892. </code></pre>
  8893. <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>
  8894. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8895. </span></code></pre>
  8896. <pre class="highlight tab tab-javascript"><code>
  8897. <span class="hljs-keyword">const</span> headers = {
  8898. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8899. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8900. };
  8901. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8902. {
  8903. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8904. <span class="hljs-attr">headers</span>: headers
  8905. })
  8906. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8907. <span class="hljs-keyword">return</span> res.json();
  8908. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8909. <span class="hljs-built_in">console</span>.log(body);
  8910. });
  8911. </code></pre>
  8912. <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>);
  8913. <span class="hljs-keyword">const</span> headers = {
  8914. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8915. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8916. };
  8917. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8918. {
  8919. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8920. <span class="hljs-attr">headers</span>: headers
  8921. })
  8922. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8923. <span class="hljs-keyword">return</span> res.json();
  8924. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8925. <span class="hljs-built_in">console</span>.log(body);
  8926. });
  8927. </code></pre>
  8928. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8929. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8930. headers = {
  8931. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8932. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8933. }
  8934. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8935. <span class="hljs-symbol">params:</span> {
  8936. }, <span class="hljs-symbol">headers:</span> headers
  8937. p JSON.parse(result)
  8938. </code></pre>
  8939. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8940. headers = {
  8941. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8942. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8943. }
  8944. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8945. <span class="hljs-built_in">print</span>(r.json())
  8946. </code></pre>
  8947. <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>);
  8948. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8949. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  8950. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8951. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8952. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8953. String inputLine;
  8954. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8955. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8956. response.append(inputLine);
  8957. }
  8958. in.close();
  8959. System.out.println(response.toString());
  8960. </code></pre>
  8961. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8962. <span class="hljs-keyword">import</span> (
  8963. <span class="hljs-string">&quot;bytes&quot;</span>
  8964. <span class="hljs-string">&quot;net/http&quot;</span>
  8965. )
  8966. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8967. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8968. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8969. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8970. }
  8971. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8972. 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)
  8973. req.Header = headers
  8974. client := &amp;http.Client{}
  8975. resp, err := client.Do(req)
  8976. <span class="hljs-comment">// ...</span>
  8977. }
  8978. </code></pre>
  8979. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8980. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8981. );
  8982. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8983. <span class="hljs-comment">// Define array of request body.</span>
  8984. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8985. <span class="hljs-keyword">try</span> {
  8986. <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>(
  8987. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8988. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8989. )
  8990. );
  8991. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8992. }
  8993. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8994. <span class="hljs-comment">// handle exception or api errors.</span>
  8995. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8996. }
  8997. <span class="hljs-comment">// ...</span>
  8998. </code></pre>
  8999. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  9000. <p><em>Delete a card from a board</em></p>
  9001. <p>This operation <strong>deletes</strong> a card, and therefore the card
  9002. is not put in the recycle bin.</p>
  9003. <h3 id="delete_card-parameters">Parameters</h3>
  9004. <table>
  9005. <thead>
  9006. <tr>
  9007. <th>Name</th>
  9008. <th>In</th>
  9009. <th>Type</th>
  9010. <th>Required</th>
  9011. <th>Description</th>
  9012. </tr>
  9013. </thead>
  9014. <tbody>
  9015. <tr>
  9016. <td>board</td>
  9017. <td>path</td>
  9018. <td>string</td>
  9019. <td>true</td>
  9020. <td>the board ID of the card</td>
  9021. </tr>
  9022. <tr>
  9023. <td>list</td>
  9024. <td>path</td>
  9025. <td>string</td>
  9026. <td>true</td>
  9027. <td>the list ID of the card</td>
  9028. </tr>
  9029. <tr>
  9030. <td>card</td>
  9031. <td>path</td>
  9032. <td>string</td>
  9033. <td>true</td>
  9034. <td>the ID of the card</td>
  9035. </tr>
  9036. </tbody>
  9037. </table>
  9038. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9039. <p><strong>board</strong>: the board ID of the card</p>
  9040. <p><strong>list</strong>: the list ID of the card</p>
  9041. <p><strong>card</strong>: the ID of the card</p>
  9042. <blockquote>
  9043. <p>Example responses</p>
  9044. </blockquote>
  9045. <blockquote>
  9046. <p>200 Response</p>
  9047. </blockquote>
  9048. <pre class="highlight tab tab-json"><code>{
  9049. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9050. }
  9051. </code></pre>
  9052. <h3 id="delete_card-responses">Responses</h3>
  9053. <table>
  9054. <thead>
  9055. <tr>
  9056. <th>Status</th>
  9057. <th>Meaning</th>
  9058. <th>Description</th>
  9059. <th>Schema</th>
  9060. </tr>
  9061. </thead>
  9062. <tbody>
  9063. <tr>
  9064. <td>200</td>
  9065. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9066. <td>200 response</td>
  9067. <td>Inline</td>
  9068. </tr>
  9069. </tbody>
  9070. </table>
  9071. <h3 id="delete_card-responseschema">Response Schema</h3>
  9072. <p>Status Code <strong>200</strong></p>
  9073. <table>
  9074. <thead>
  9075. <tr>
  9076. <th>Name</th>
  9077. <th>Type</th>
  9078. <th>Required</th>
  9079. <th>Restrictions</th>
  9080. <th>Description</th>
  9081. </tr>
  9082. </thead>
  9083. <tbody>
  9084. <tr>
  9085. <td>» _id</td>
  9086. <td>string</td>
  9087. <td>false</td>
  9088. <td>none</td>
  9089. <td>none</td>
  9090. </tr>
  9091. </tbody>
  9092. </table>
  9093. <aside class="warning">
  9094. To perform this operation, you must be authenticated by means of one of the following methods:
  9095. UserSecurity
  9096. </aside>
  9097. <h2 id="edit_card_custom_field">edit_card_custom_field</h2>
  9098. <p><a id="opIdedit_card_custom_field"></a></p>
  9099. <blockquote>
  9100. <p>Code samples</p>
  9101. </blockquote>
  9102. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9103. curl -X POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField} \
  9104. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9105. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9106. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9107. </code></pre>
  9108. <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>
  9109. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9110. Accept: application/json
  9111. </span></code></pre>
  9112. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9113. &quot;value&quot;: &quot;string&quot;
  9114. }&#x27;</span>;
  9115. <span class="hljs-keyword">const</span> headers = {
  9116. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9117. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9118. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9119. };
  9120. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9121. {
  9122. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9123. <span class="hljs-attr">body</span>: inputBody,
  9124. <span class="hljs-attr">headers</span>: headers
  9125. })
  9126. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9127. <span class="hljs-keyword">return</span> res.json();
  9128. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9129. <span class="hljs-built_in">console</span>.log(body);
  9130. });
  9131. </code></pre>
  9132. <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>);
  9133. <span class="hljs-keyword">const</span> inputBody = {
  9134. <span class="hljs-string">&quot;value&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9135. };
  9136. <span class="hljs-keyword">const</span> headers = {
  9137. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9138. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9139. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9140. };
  9141. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9142. {
  9143. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9144. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9145. <span class="hljs-attr">headers</span>: headers
  9146. })
  9147. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9148. <span class="hljs-keyword">return</span> res.json();
  9149. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9150. <span class="hljs-built_in">console</span>.log(body);
  9151. });
  9152. </code></pre>
  9153. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9154. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9155. headers = {
  9156. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9157. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9158. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9159. }
  9160. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>,
  9161. <span class="hljs-symbol">params:</span> {
  9162. }, <span class="hljs-symbol">headers:</span> headers
  9163. p JSON.parse(result)
  9164. </code></pre>
  9165. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9166. headers = {
  9167. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9168. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9169. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9170. }
  9171. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}&#x27;</span>, headers = headers)
  9172. <span class="hljs-built_in">print</span>(r.json())
  9173. </code></pre>
  9174. <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>);
  9175. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9176. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9177. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9178. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9179. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9180. String inputLine;
  9181. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9182. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9183. response.append(inputLine);
  9184. }
  9185. in.close();
  9186. System.out.println(response.toString());
  9187. </code></pre>
  9188. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9189. <span class="hljs-keyword">import</span> (
  9190. <span class="hljs-string">&quot;bytes&quot;</span>
  9191. <span class="hljs-string">&quot;net/http&quot;</span>
  9192. )
  9193. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9194. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9195. <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>},
  9196. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9197. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9198. }
  9199. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9200. 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)
  9201. req.Header = headers
  9202. client := &amp;http.Client{}
  9203. resp, err := client.Do(req)
  9204. <span class="hljs-comment">// ...</span>
  9205. }
  9206. </code></pre>
  9207. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9208. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9209. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9210. );
  9211. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9212. <span class="hljs-comment">// Define array of request body.</span>
  9213. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9214. <span class="hljs-keyword">try</span> {
  9215. <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>(
  9216. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9217. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9218. )
  9219. );
  9220. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9221. }
  9222. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9223. <span class="hljs-comment">// handle exception or api errors.</span>
  9224. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9225. }
  9226. <span class="hljs-comment">// ...</span>
  9227. </code></pre>
  9228. <p><code>POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</code></p>
  9229. <p><em>Edit Custom Field in a Card</em></p>
  9230. <p>Edit a custom field value in a card</p>
  9231. <blockquote>
  9232. <p>Body parameter</p>
  9233. </blockquote>
  9234. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">value:</span> <span class="hljs-string">string</span>
  9235. </code></pre>
  9236. <h3 id="edit_card_custom_field-parameters">Parameters</h3>
  9237. <table>
  9238. <thead>
  9239. <tr>
  9240. <th>Name</th>
  9241. <th>In</th>
  9242. <th>Type</th>
  9243. <th>Required</th>
  9244. <th>Description</th>
  9245. </tr>
  9246. </thead>
  9247. <tbody>
  9248. <tr>
  9249. <td>board</td>
  9250. <td>path</td>
  9251. <td>string</td>
  9252. <td>true</td>
  9253. <td>the board ID of the card</td>
  9254. </tr>
  9255. <tr>
  9256. <td>list</td>
  9257. <td>path</td>
  9258. <td>string</td>
  9259. <td>true</td>
  9260. <td>the list ID of the card</td>
  9261. </tr>
  9262. <tr>
  9263. <td>card</td>
  9264. <td>path</td>
  9265. <td>string</td>
  9266. <td>true</td>
  9267. <td>the ID of the card</td>
  9268. </tr>
  9269. <tr>
  9270. <td>customField</td>
  9271. <td>path</td>
  9272. <td>string</td>
  9273. <td>true</td>
  9274. <td>the ID of the custom field</td>
  9275. </tr>
  9276. <tr>
  9277. <td>body</td>
  9278. <td>body</td>
  9279. <td>object</td>
  9280. <td>true</td>
  9281. <td>none</td>
  9282. </tr>
  9283. <tr>
  9284. <td>» value</td>
  9285. <td>body</td>
  9286. <td>string</td>
  9287. <td>true</td>
  9288. <td>the new custom field value</td>
  9289. </tr>
  9290. </tbody>
  9291. </table>
  9292. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  9293. <p><strong>board</strong>: the board ID of the card</p>
  9294. <p><strong>list</strong>: the list ID of the card</p>
  9295. <p><strong>card</strong>: the ID of the card</p>
  9296. <p><strong>customField</strong>: the ID of the custom field</p>
  9297. <blockquote>
  9298. <p>Example responses</p>
  9299. </blockquote>
  9300. <blockquote>
  9301. <p>200 Response</p>
  9302. </blockquote>
  9303. <pre class="highlight tab tab-json"><code>{
  9304. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9305. <span class="hljs-attr">&quot;customFields&quot;</span>: {}
  9306. }
  9307. </code></pre>
  9308. <h3 id="edit_card_custom_field-responses">Responses</h3>
  9309. <table>
  9310. <thead>
  9311. <tr>
  9312. <th>Status</th>
  9313. <th>Meaning</th>
  9314. <th>Description</th>
  9315. <th>Schema</th>
  9316. </tr>
  9317. </thead>
  9318. <tbody>
  9319. <tr>
  9320. <td>200</td>
  9321. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9322. <td>200 response</td>
  9323. <td>Inline</td>
  9324. </tr>
  9325. </tbody>
  9326. </table>
  9327. <h3 id="edit_card_custom_field-responseschema">Response Schema</h3>
  9328. <p>Status Code <strong>200</strong></p>
  9329. <table>
  9330. <thead>
  9331. <tr>
  9332. <th>Name</th>
  9333. <th>Type</th>
  9334. <th>Required</th>
  9335. <th>Restrictions</th>
  9336. <th>Description</th>
  9337. </tr>
  9338. </thead>
  9339. <tbody>
  9340. <tr>
  9341. <td>» _id</td>
  9342. <td>string</td>
  9343. <td>false</td>
  9344. <td>none</td>
  9345. <td>none</td>
  9346. </tr>
  9347. <tr>
  9348. <td>» customFields</td>
  9349. <td>object</td>
  9350. <td>false</td>
  9351. <td>none</td>
  9352. <td>none</td>
  9353. </tr>
  9354. </tbody>
  9355. </table>
  9356. <aside class="warning">
  9357. To perform this operation, you must be authenticated by means of one of the following methods:
  9358. UserSecurity
  9359. </aside>
  9360. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  9361. <p><a id="opIdget_list_cards_count"></a></p>
  9362. <blockquote>
  9363. <p>Code samples</p>
  9364. </blockquote>
  9365. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9366. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  9367. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9368. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9369. </code></pre>
  9370. <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>
  9371. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9372. </span></code></pre>
  9373. <pre class="highlight tab tab-javascript"><code>
  9374. <span class="hljs-keyword">const</span> headers = {
  9375. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9376. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9377. };
  9378. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9379. {
  9380. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9381. <span class="hljs-attr">headers</span>: headers
  9382. })
  9383. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9384. <span class="hljs-keyword">return</span> res.json();
  9385. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9386. <span class="hljs-built_in">console</span>.log(body);
  9387. });
  9388. </code></pre>
  9389. <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>);
  9390. <span class="hljs-keyword">const</span> headers = {
  9391. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9392. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9393. };
  9394. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9395. {
  9396. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9397. <span class="hljs-attr">headers</span>: headers
  9398. })
  9399. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9400. <span class="hljs-keyword">return</span> res.json();
  9401. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9402. <span class="hljs-built_in">console</span>.log(body);
  9403. });
  9404. </code></pre>
  9405. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9406. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9407. headers = {
  9408. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9409. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9410. }
  9411. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  9412. <span class="hljs-symbol">params:</span> {
  9413. }, <span class="hljs-symbol">headers:</span> headers
  9414. p JSON.parse(result)
  9415. </code></pre>
  9416. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9417. headers = {
  9418. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9419. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9420. }
  9421. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>, headers = headers)
  9422. <span class="hljs-built_in">print</span>(r.json())
  9423. </code></pre>
  9424. <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>);
  9425. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9426. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9427. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9428. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9429. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9430. String inputLine;
  9431. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9432. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9433. response.append(inputLine);
  9434. }
  9435. in.close();
  9436. System.out.println(response.toString());
  9437. </code></pre>
  9438. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9439. <span class="hljs-keyword">import</span> (
  9440. <span class="hljs-string">&quot;bytes&quot;</span>
  9441. <span class="hljs-string">&quot;net/http&quot;</span>
  9442. )
  9443. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9444. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9445. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9446. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9447. }
  9448. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9449. 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)
  9450. req.Header = headers
  9451. client := &amp;http.Client{}
  9452. resp, err := client.Do(req)
  9453. <span class="hljs-comment">// ...</span>
  9454. }
  9455. </code></pre>
  9456. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9457. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9458. );
  9459. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9460. <span class="hljs-comment">// Define array of request body.</span>
  9461. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9462. <span class="hljs-keyword">try</span> {
  9463. <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>(
  9464. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9465. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9466. )
  9467. );
  9468. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9469. }
  9470. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9471. <span class="hljs-comment">// handle exception or api errors.</span>
  9472. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9473. }
  9474. <span class="hljs-comment">// ...</span>
  9475. </code></pre>
  9476. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  9477. <p><em>Get a cards count to a list</em></p>
  9478. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  9479. <table>
  9480. <thead>
  9481. <tr>
  9482. <th>Name</th>
  9483. <th>In</th>
  9484. <th>Type</th>
  9485. <th>Required</th>
  9486. <th>Description</th>
  9487. </tr>
  9488. </thead>
  9489. <tbody>
  9490. <tr>
  9491. <td>board</td>
  9492. <td>path</td>
  9493. <td>string</td>
  9494. <td>true</td>
  9495. <td>the board ID</td>
  9496. </tr>
  9497. <tr>
  9498. <td>list</td>
  9499. <td>path</td>
  9500. <td>string</td>
  9501. <td>true</td>
  9502. <td>the List ID</td>
  9503. </tr>
  9504. </tbody>
  9505. </table>
  9506. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  9507. <p><strong>board</strong>: the board ID</p>
  9508. <p><strong>list</strong>: the List ID</p>
  9509. <blockquote>
  9510. <p>Example responses</p>
  9511. </blockquote>
  9512. <blockquote>
  9513. <p>200 Response</p>
  9514. </blockquote>
  9515. <pre class="highlight tab tab-json"><code>{
  9516. <span class="hljs-attr">&quot;list_cards_count&quot;</span>: <span class="hljs-number">0</span>
  9517. }
  9518. </code></pre>
  9519. <h3 id="get_list_cards_count-responses">Responses</h3>
  9520. <table>
  9521. <thead>
  9522. <tr>
  9523. <th>Status</th>
  9524. <th>Meaning</th>
  9525. <th>Description</th>
  9526. <th>Schema</th>
  9527. </tr>
  9528. </thead>
  9529. <tbody>
  9530. <tr>
  9531. <td>200</td>
  9532. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9533. <td>200 response</td>
  9534. <td>Inline</td>
  9535. </tr>
  9536. </tbody>
  9537. </table>
  9538. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  9539. <p>Status Code <strong>200</strong></p>
  9540. <table>
  9541. <thead>
  9542. <tr>
  9543. <th>Name</th>
  9544. <th>Type</th>
  9545. <th>Required</th>
  9546. <th>Restrictions</th>
  9547. <th>Description</th>
  9548. </tr>
  9549. </thead>
  9550. <tbody>
  9551. <tr>
  9552. <td>» list_cards_count</td>
  9553. <td>integer</td>
  9554. <td>false</td>
  9555. <td>none</td>
  9556. <td>none</td>
  9557. </tr>
  9558. </tbody>
  9559. </table>
  9560. <aside class="warning">
  9561. To perform this operation, you must be authenticated by means of one of the following methods:
  9562. UserSecurity
  9563. </aside>
  9564. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  9565. <p><a id="opIdget_swimlane_cards"></a></p>
  9566. <blockquote>
  9567. <p>Code samples</p>
  9568. </blockquote>
  9569. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9570. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  9571. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9572. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9573. </code></pre>
  9574. <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>
  9575. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9576. </span></code></pre>
  9577. <pre class="highlight tab tab-javascript"><code>
  9578. <span class="hljs-keyword">const</span> headers = {
  9579. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9580. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9581. };
  9582. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9583. {
  9584. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9585. <span class="hljs-attr">headers</span>: headers
  9586. })
  9587. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9588. <span class="hljs-keyword">return</span> res.json();
  9589. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9590. <span class="hljs-built_in">console</span>.log(body);
  9591. });
  9592. </code></pre>
  9593. <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>);
  9594. <span class="hljs-keyword">const</span> headers = {
  9595. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9596. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9597. };
  9598. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9599. {
  9600. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9601. <span class="hljs-attr">headers</span>: headers
  9602. })
  9603. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9604. <span class="hljs-keyword">return</span> res.json();
  9605. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9606. <span class="hljs-built_in">console</span>.log(body);
  9607. });
  9608. </code></pre>
  9609. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9610. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9611. headers = {
  9612. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9613. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9614. }
  9615. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9616. <span class="hljs-symbol">params:</span> {
  9617. }, <span class="hljs-symbol">headers:</span> headers
  9618. p JSON.parse(result)
  9619. </code></pre>
  9620. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9621. headers = {
  9622. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9623. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9624. }
  9625. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  9626. <span class="hljs-built_in">print</span>(r.json())
  9627. </code></pre>
  9628. <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>);
  9629. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9630. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9631. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9632. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9633. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9634. String inputLine;
  9635. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9636. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9637. response.append(inputLine);
  9638. }
  9639. in.close();
  9640. System.out.println(response.toString());
  9641. </code></pre>
  9642. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9643. <span class="hljs-keyword">import</span> (
  9644. <span class="hljs-string">&quot;bytes&quot;</span>
  9645. <span class="hljs-string">&quot;net/http&quot;</span>
  9646. )
  9647. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9648. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9649. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9650. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9651. }
  9652. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9653. 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)
  9654. req.Header = headers
  9655. client := &amp;http.Client{}
  9656. resp, err := client.Do(req)
  9657. <span class="hljs-comment">// ...</span>
  9658. }
  9659. </code></pre>
  9660. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9661. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9662. );
  9663. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9664. <span class="hljs-comment">// Define array of request body.</span>
  9665. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9666. <span class="hljs-keyword">try</span> {
  9667. <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>(
  9668. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9669. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9670. )
  9671. );
  9672. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9673. }
  9674. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9675. <span class="hljs-comment">// handle exception or api errors.</span>
  9676. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9677. }
  9678. <span class="hljs-comment">// ...</span>
  9679. </code></pre>
  9680. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  9681. <p><em>get all cards attached to a swimlane</em></p>
  9682. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  9683. <table>
  9684. <thead>
  9685. <tr>
  9686. <th>Name</th>
  9687. <th>In</th>
  9688. <th>Type</th>
  9689. <th>Required</th>
  9690. <th>Description</th>
  9691. </tr>
  9692. </thead>
  9693. <tbody>
  9694. <tr>
  9695. <td>board</td>
  9696. <td>path</td>
  9697. <td>string</td>
  9698. <td>true</td>
  9699. <td>the board ID</td>
  9700. </tr>
  9701. <tr>
  9702. <td>swimlane</td>
  9703. <td>path</td>
  9704. <td>string</td>
  9705. <td>true</td>
  9706. <td>the swimlane ID</td>
  9707. </tr>
  9708. </tbody>
  9709. </table>
  9710. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  9711. <p><strong>board</strong>: the board ID</p>
  9712. <p><strong>swimlane</strong>: the swimlane ID</p>
  9713. <blockquote>
  9714. <p>Example responses</p>
  9715. </blockquote>
  9716. <blockquote>
  9717. <p>200 Response</p>
  9718. </blockquote>
  9719. <pre class="highlight tab tab-json"><code>[
  9720. {
  9721. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9722. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9723. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9724. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9725. }
  9726. ]
  9727. </code></pre>
  9728. <h3 id="get_swimlane_cards-responses">Responses</h3>
  9729. <table>
  9730. <thead>
  9731. <tr>
  9732. <th>Status</th>
  9733. <th>Meaning</th>
  9734. <th>Description</th>
  9735. <th>Schema</th>
  9736. </tr>
  9737. </thead>
  9738. <tbody>
  9739. <tr>
  9740. <td>200</td>
  9741. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9742. <td>200 response</td>
  9743. <td>Inline</td>
  9744. </tr>
  9745. </tbody>
  9746. </table>
  9747. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  9748. <p>Status Code <strong>200</strong></p>
  9749. <table>
  9750. <thead>
  9751. <tr>
  9752. <th>Name</th>
  9753. <th>Type</th>
  9754. <th>Required</th>
  9755. <th>Restrictions</th>
  9756. <th>Description</th>
  9757. </tr>
  9758. </thead>
  9759. <tbody>
  9760. <tr>
  9761. <td>» _id</td>
  9762. <td>string</td>
  9763. <td>false</td>
  9764. <td>none</td>
  9765. <td>none</td>
  9766. </tr>
  9767. <tr>
  9768. <td>» title</td>
  9769. <td>string</td>
  9770. <td>false</td>
  9771. <td>none</td>
  9772. <td>none</td>
  9773. </tr>
  9774. <tr>
  9775. <td>» description</td>
  9776. <td>string</td>
  9777. <td>false</td>
  9778. <td>none</td>
  9779. <td>none</td>
  9780. </tr>
  9781. <tr>
  9782. <td>» listId</td>
  9783. <td>string</td>
  9784. <td>false</td>
  9785. <td>none</td>
  9786. <td>none</td>
  9787. </tr>
  9788. </tbody>
  9789. </table>
  9790. <aside class="warning">
  9791. To perform this operation, you must be authenticated by means of one of the following methods:
  9792. UserSecurity
  9793. </aside>
  9794. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  9795. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  9796. <p><a id="opIdget_all_custom_fields"></a></p>
  9797. <blockquote>
  9798. <p>Code samples</p>
  9799. </blockquote>
  9800. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9801. curl -X GET /api/boards/{board}/custom-fields \
  9802. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9803. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9804. </code></pre>
  9805. <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>
  9806. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9807. </span></code></pre>
  9808. <pre class="highlight tab tab-javascript"><code>
  9809. <span class="hljs-keyword">const</span> headers = {
  9810. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9811. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9812. };
  9813. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9814. {
  9815. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9816. <span class="hljs-attr">headers</span>: headers
  9817. })
  9818. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9819. <span class="hljs-keyword">return</span> res.json();
  9820. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9821. <span class="hljs-built_in">console</span>.log(body);
  9822. });
  9823. </code></pre>
  9824. <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>);
  9825. <span class="hljs-keyword">const</span> headers = {
  9826. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9827. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9828. };
  9829. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9830. {
  9831. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9832. <span class="hljs-attr">headers</span>: headers
  9833. })
  9834. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9835. <span class="hljs-keyword">return</span> res.json();
  9836. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9837. <span class="hljs-built_in">console</span>.log(body);
  9838. });
  9839. </code></pre>
  9840. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9841. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9842. headers = {
  9843. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9844. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9845. }
  9846. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9847. <span class="hljs-symbol">params:</span> {
  9848. }, <span class="hljs-symbol">headers:</span> headers
  9849. p JSON.parse(result)
  9850. </code></pre>
  9851. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9852. headers = {
  9853. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9854. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9855. }
  9856. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9857. <span class="hljs-built_in">print</span>(r.json())
  9858. </code></pre>
  9859. <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>);
  9860. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9861. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9862. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9863. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9864. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9865. String inputLine;
  9866. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9867. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9868. response.append(inputLine);
  9869. }
  9870. in.close();
  9871. System.out.println(response.toString());
  9872. </code></pre>
  9873. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9874. <span class="hljs-keyword">import</span> (
  9875. <span class="hljs-string">&quot;bytes&quot;</span>
  9876. <span class="hljs-string">&quot;net/http&quot;</span>
  9877. )
  9878. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9879. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9880. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9881. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9882. }
  9883. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9884. 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)
  9885. req.Header = headers
  9886. client := &amp;http.Client{}
  9887. resp, err := client.Do(req)
  9888. <span class="hljs-comment">// ...</span>
  9889. }
  9890. </code></pre>
  9891. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9892. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9893. );
  9894. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9895. <span class="hljs-comment">// Define array of request body.</span>
  9896. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9897. <span class="hljs-keyword">try</span> {
  9898. <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>(
  9899. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9900. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9901. )
  9902. );
  9903. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9904. }
  9905. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9906. <span class="hljs-comment">// handle exception or api errors.</span>
  9907. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9908. }
  9909. <span class="hljs-comment">// ...</span>
  9910. </code></pre>
  9911. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9912. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9913. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9914. <table>
  9915. <thead>
  9916. <tr>
  9917. <th>Name</th>
  9918. <th>In</th>
  9919. <th>Type</th>
  9920. <th>Required</th>
  9921. <th>Description</th>
  9922. </tr>
  9923. </thead>
  9924. <tbody>
  9925. <tr>
  9926. <td>board</td>
  9927. <td>path</td>
  9928. <td>string</td>
  9929. <td>true</td>
  9930. <td>the board value</td>
  9931. </tr>
  9932. </tbody>
  9933. </table>
  9934. <blockquote>
  9935. <p>Example responses</p>
  9936. </blockquote>
  9937. <blockquote>
  9938. <p>200 Response</p>
  9939. </blockquote>
  9940. <pre class="highlight tab tab-json"><code>[
  9941. {
  9942. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9943. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9944. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9945. }
  9946. ]
  9947. </code></pre>
  9948. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9949. <table>
  9950. <thead>
  9951. <tr>
  9952. <th>Status</th>
  9953. <th>Meaning</th>
  9954. <th>Description</th>
  9955. <th>Schema</th>
  9956. </tr>
  9957. </thead>
  9958. <tbody>
  9959. <tr>
  9960. <td>200</td>
  9961. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9962. <td>200 response</td>
  9963. <td>Inline</td>
  9964. </tr>
  9965. </tbody>
  9966. </table>
  9967. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9968. <p>Status Code <strong>200</strong></p>
  9969. <table>
  9970. <thead>
  9971. <tr>
  9972. <th>Name</th>
  9973. <th>Type</th>
  9974. <th>Required</th>
  9975. <th>Restrictions</th>
  9976. <th>Description</th>
  9977. </tr>
  9978. </thead>
  9979. <tbody>
  9980. <tr>
  9981. <td>» _id</td>
  9982. <td>string</td>
  9983. <td>false</td>
  9984. <td>none</td>
  9985. <td>none</td>
  9986. </tr>
  9987. <tr>
  9988. <td>» name</td>
  9989. <td>string</td>
  9990. <td>false</td>
  9991. <td>none</td>
  9992. <td>none</td>
  9993. </tr>
  9994. <tr>
  9995. <td>» type</td>
  9996. <td>string</td>
  9997. <td>false</td>
  9998. <td>none</td>
  9999. <td>none</td>
  10000. </tr>
  10001. </tbody>
  10002. </table>
  10003. <aside class="warning">
  10004. To perform this operation, you must be authenticated by means of one of the following methods:
  10005. UserSecurity
  10006. </aside>
  10007. <h2 id="new_custom_field">new_custom_field</h2>
  10008. <p><a id="opIdnew_custom_field"></a></p>
  10009. <blockquote>
  10010. <p>Code samples</p>
  10011. </blockquote>
  10012. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10013. curl -X POST /api/boards/{board}/custom-fields \
  10014. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10015. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10016. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10017. </code></pre>
  10018. <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>
  10019. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10020. Accept: application/json
  10021. </span></code></pre>
  10022. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10023. &quot;name&quot;: &quot;string&quot;,
  10024. &quot;type&quot;: &quot;string&quot;,
  10025. &quot;settings&quot;: &quot;string&quot;,
  10026. &quot;showOnCard&quot;: true,
  10027. &quot;automaticallyOnCard&quot;: true,
  10028. &quot;showLabelOnMiniCard&quot;: true,
  10029. &quot;showSumAtTopOfList&quot;: true,
  10030. &quot;authorId&quot;: &quot;string&quot;
  10031. }&#x27;</span>;
  10032. <span class="hljs-keyword">const</span> headers = {
  10033. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10034. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10035. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10036. };
  10037. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10038. {
  10039. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10040. <span class="hljs-attr">body</span>: inputBody,
  10041. <span class="hljs-attr">headers</span>: headers
  10042. })
  10043. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10044. <span class="hljs-keyword">return</span> res.json();
  10045. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10046. <span class="hljs-built_in">console</span>.log(body);
  10047. });
  10048. </code></pre>
  10049. <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>);
  10050. <span class="hljs-keyword">const</span> inputBody = {
  10051. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10052. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10053. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10054. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10055. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10056. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  10057. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  10058. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10059. };
  10060. <span class="hljs-keyword">const</span> headers = {
  10061. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10062. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10063. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10064. };
  10065. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10066. {
  10067. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10068. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10069. <span class="hljs-attr">headers</span>: headers
  10070. })
  10071. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10072. <span class="hljs-keyword">return</span> res.json();
  10073. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10074. <span class="hljs-built_in">console</span>.log(body);
  10075. });
  10076. </code></pre>
  10077. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10078. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10079. headers = {
  10080. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10081. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10082. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10083. }
  10084. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  10085. <span class="hljs-symbol">params:</span> {
  10086. }, <span class="hljs-symbol">headers:</span> headers
  10087. p JSON.parse(result)
  10088. </code></pre>
  10089. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10090. headers = {
  10091. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10092. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10093. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10094. }
  10095. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  10096. <span class="hljs-built_in">print</span>(r.json())
  10097. </code></pre>
  10098. <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>);
  10099. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10100. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10101. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10102. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10103. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10104. String inputLine;
  10105. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10106. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10107. response.append(inputLine);
  10108. }
  10109. in.close();
  10110. System.out.println(response.toString());
  10111. </code></pre>
  10112. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10113. <span class="hljs-keyword">import</span> (
  10114. <span class="hljs-string">&quot;bytes&quot;</span>
  10115. <span class="hljs-string">&quot;net/http&quot;</span>
  10116. )
  10117. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10118. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10119. <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>},
  10120. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10121. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10122. }
  10123. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10124. 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)
  10125. req.Header = headers
  10126. client := &amp;http.Client{}
  10127. resp, err := client.Do(req)
  10128. <span class="hljs-comment">// ...</span>
  10129. }
  10130. </code></pre>
  10131. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10132. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10133. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10134. );
  10135. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10136. <span class="hljs-comment">// Define array of request body.</span>
  10137. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10138. <span class="hljs-keyword">try</span> {
  10139. <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>(
  10140. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10141. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10142. )
  10143. );
  10144. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10145. }
  10146. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10147. <span class="hljs-comment">// handle exception or api errors.</span>
  10148. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10149. }
  10150. <span class="hljs-comment">// ...</span>
  10151. </code></pre>
  10152. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  10153. <p><em>Create a Custom Field</em></p>
  10154. <blockquote>
  10155. <p>Body parameter</p>
  10156. </blockquote>
  10157. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10158. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10159. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10160. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10161. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10162. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10163. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10164. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  10165. </code></pre>
  10166. <h3 id="new_custom_field-parameters">Parameters</h3>
  10167. <table>
  10168. <thead>
  10169. <tr>
  10170. <th>Name</th>
  10171. <th>In</th>
  10172. <th>Type</th>
  10173. <th>Required</th>
  10174. <th>Description</th>
  10175. </tr>
  10176. </thead>
  10177. <tbody>
  10178. <tr>
  10179. <td>board</td>
  10180. <td>path</td>
  10181. <td>string</td>
  10182. <td>true</td>
  10183. <td>the board value</td>
  10184. </tr>
  10185. <tr>
  10186. <td>body</td>
  10187. <td>body</td>
  10188. <td>object</td>
  10189. <td>true</td>
  10190. <td>none</td>
  10191. </tr>
  10192. <tr>
  10193. <td>» name</td>
  10194. <td>body</td>
  10195. <td>string</td>
  10196. <td>true</td>
  10197. <td>the name of the custom field</td>
  10198. </tr>
  10199. <tr>
  10200. <td>» type</td>
  10201. <td>body</td>
  10202. <td>string</td>
  10203. <td>true</td>
  10204. <td>the type of the custom field</td>
  10205. </tr>
  10206. <tr>
  10207. <td>» settings</td>
  10208. <td>body</td>
  10209. <td>string</td>
  10210. <td>true</td>
  10211. <td>the settings object of the custom field</td>
  10212. </tr>
  10213. <tr>
  10214. <td>» showOnCard</td>
  10215. <td>body</td>
  10216. <td>boolean</td>
  10217. <td>true</td>
  10218. <td>should we show the custom field on cards?</td>
  10219. </tr>
  10220. <tr>
  10221. <td>» automaticallyOnCard</td>
  10222. <td>body</td>
  10223. <td>boolean</td>
  10224. <td>true</td>
  10225. <td>should the custom fields automatically be added on cards?</td>
  10226. </tr>
  10227. <tr>
  10228. <td>» showLabelOnMiniCard</td>
  10229. <td>body</td>
  10230. <td>boolean</td>
  10231. <td>true</td>
  10232. <td>should the label of the custom field be shown on minicards?</td>
  10233. </tr>
  10234. <tr>
  10235. <td>» showSumAtTopOfList</td>
  10236. <td>body</td>
  10237. <td>boolean</td>
  10238. <td>true</td>
  10239. <td>should the sum of the custom fields be shown at top of list?</td>
  10240. </tr>
  10241. <tr>
  10242. <td>» authorId</td>
  10243. <td>body</td>
  10244. <td>string</td>
  10245. <td>true</td>
  10246. <td>the authorId value</td>
  10247. </tr>
  10248. </tbody>
  10249. </table>
  10250. <blockquote>
  10251. <p>Example responses</p>
  10252. </blockquote>
  10253. <blockquote>
  10254. <p>200 Response</p>
  10255. </blockquote>
  10256. <pre class="highlight tab tab-json"><code>{
  10257. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10258. }
  10259. </code></pre>
  10260. <h3 id="new_custom_field-responses">Responses</h3>
  10261. <table>
  10262. <thead>
  10263. <tr>
  10264. <th>Status</th>
  10265. <th>Meaning</th>
  10266. <th>Description</th>
  10267. <th>Schema</th>
  10268. </tr>
  10269. </thead>
  10270. <tbody>
  10271. <tr>
  10272. <td>200</td>
  10273. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10274. <td>200 response</td>
  10275. <td>Inline</td>
  10276. </tr>
  10277. </tbody>
  10278. </table>
  10279. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  10280. <p>Status Code <strong>200</strong></p>
  10281. <table>
  10282. <thead>
  10283. <tr>
  10284. <th>Name</th>
  10285. <th>Type</th>
  10286. <th>Required</th>
  10287. <th>Restrictions</th>
  10288. <th>Description</th>
  10289. </tr>
  10290. </thead>
  10291. <tbody>
  10292. <tr>
  10293. <td>» _id</td>
  10294. <td>string</td>
  10295. <td>false</td>
  10296. <td>none</td>
  10297. <td>none</td>
  10298. </tr>
  10299. </tbody>
  10300. </table>
  10301. <aside class="warning">
  10302. To perform this operation, you must be authenticated by means of one of the following methods:
  10303. UserSecurity
  10304. </aside>
  10305. <h2 id="get_custom_field">get_custom_field</h2>
  10306. <p><a id="opIdget_custom_field"></a></p>
  10307. <blockquote>
  10308. <p>Code samples</p>
  10309. </blockquote>
  10310. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10311. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  10312. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10313. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10314. </code></pre>
  10315. <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>
  10316. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10317. </span></code></pre>
  10318. <pre class="highlight tab tab-javascript"><code>
  10319. <span class="hljs-keyword">const</span> headers = {
  10320. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10321. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10322. };
  10323. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10324. {
  10325. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10326. <span class="hljs-attr">headers</span>: headers
  10327. })
  10328. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10329. <span class="hljs-keyword">return</span> res.json();
  10330. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10331. <span class="hljs-built_in">console</span>.log(body);
  10332. });
  10333. </code></pre>
  10334. <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>);
  10335. <span class="hljs-keyword">const</span> headers = {
  10336. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10337. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10338. };
  10339. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10340. {
  10341. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10342. <span class="hljs-attr">headers</span>: headers
  10343. })
  10344. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10345. <span class="hljs-keyword">return</span> res.json();
  10346. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10347. <span class="hljs-built_in">console</span>.log(body);
  10348. });
  10349. </code></pre>
  10350. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10351. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10352. headers = {
  10353. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10354. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10355. }
  10356. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10357. <span class="hljs-symbol">params:</span> {
  10358. }, <span class="hljs-symbol">headers:</span> headers
  10359. p JSON.parse(result)
  10360. </code></pre>
  10361. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10362. headers = {
  10363. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10364. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10365. }
  10366. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10367. <span class="hljs-built_in">print</span>(r.json())
  10368. </code></pre>
  10369. <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>);
  10370. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10371. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10372. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10373. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10374. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10375. String inputLine;
  10376. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10377. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10378. response.append(inputLine);
  10379. }
  10380. in.close();
  10381. System.out.println(response.toString());
  10382. </code></pre>
  10383. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10384. <span class="hljs-keyword">import</span> (
  10385. <span class="hljs-string">&quot;bytes&quot;</span>
  10386. <span class="hljs-string">&quot;net/http&quot;</span>
  10387. )
  10388. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10389. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10390. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10391. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10392. }
  10393. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10394. 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)
  10395. req.Header = headers
  10396. client := &amp;http.Client{}
  10397. resp, err := client.Do(req)
  10398. <span class="hljs-comment">// ...</span>
  10399. }
  10400. </code></pre>
  10401. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10402. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10403. );
  10404. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10405. <span class="hljs-comment">// Define array of request body.</span>
  10406. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10407. <span class="hljs-keyword">try</span> {
  10408. <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>(
  10409. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10410. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10411. )
  10412. );
  10413. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10414. }
  10415. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10416. <span class="hljs-comment">// handle exception or api errors.</span>
  10417. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10418. }
  10419. <span class="hljs-comment">// ...</span>
  10420. </code></pre>
  10421. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  10422. <p><em>Get a Custom Fields attached to a board</em></p>
  10423. <h3 id="get_custom_field-parameters">Parameters</h3>
  10424. <table>
  10425. <thead>
  10426. <tr>
  10427. <th>Name</th>
  10428. <th>In</th>
  10429. <th>Type</th>
  10430. <th>Required</th>
  10431. <th>Description</th>
  10432. </tr>
  10433. </thead>
  10434. <tbody>
  10435. <tr>
  10436. <td>board</td>
  10437. <td>path</td>
  10438. <td>string</td>
  10439. <td>true</td>
  10440. <td>the board value</td>
  10441. </tr>
  10442. <tr>
  10443. <td>customField</td>
  10444. <td>path</td>
  10445. <td>string</td>
  10446. <td>true</td>
  10447. <td>the ID of the custom field</td>
  10448. </tr>
  10449. </tbody>
  10450. </table>
  10451. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  10452. <p><strong>customField</strong>: the ID of the custom field</p>
  10453. <blockquote>
  10454. <p>Example responses</p>
  10455. </blockquote>
  10456. <blockquote>
  10457. <p>200 Response</p>
  10458. </blockquote>
  10459. <pre class="highlight tab tab-json"><code>[
  10460. {
  10461. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10462. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10463. }
  10464. ]
  10465. </code></pre>
  10466. <h3 id="get_custom_field-responses">Responses</h3>
  10467. <table>
  10468. <thead>
  10469. <tr>
  10470. <th>Status</th>
  10471. <th>Meaning</th>
  10472. <th>Description</th>
  10473. <th>Schema</th>
  10474. </tr>
  10475. </thead>
  10476. <tbody>
  10477. <tr>
  10478. <td>200</td>
  10479. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10480. <td>200 response</td>
  10481. <td>Inline</td>
  10482. </tr>
  10483. </tbody>
  10484. </table>
  10485. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  10486. <p>Status Code <strong>200</strong></p>
  10487. <table>
  10488. <thead>
  10489. <tr>
  10490. <th>Name</th>
  10491. <th>Type</th>
  10492. <th>Required</th>
  10493. <th>Restrictions</th>
  10494. <th>Description</th>
  10495. </tr>
  10496. </thead>
  10497. <tbody>
  10498. <tr>
  10499. <td>» _id</td>
  10500. <td>string</td>
  10501. <td>false</td>
  10502. <td>none</td>
  10503. <td>none</td>
  10504. </tr>
  10505. <tr>
  10506. <td>» boardIds</td>
  10507. <td>string</td>
  10508. <td>false</td>
  10509. <td>none</td>
  10510. <td>none</td>
  10511. </tr>
  10512. </tbody>
  10513. </table>
  10514. <aside class="warning">
  10515. To perform this operation, you must be authenticated by means of one of the following methods:
  10516. UserSecurity
  10517. </aside>
  10518. <h2 id="edit_custom_field">edit_custom_field</h2>
  10519. <p><a id="opIdedit_custom_field"></a></p>
  10520. <blockquote>
  10521. <p>Code samples</p>
  10522. </blockquote>
  10523. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10524. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  10525. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10526. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10527. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10528. </code></pre>
  10529. <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>
  10530. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10531. Accept: application/json
  10532. </span></code></pre>
  10533. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10534. &quot;name&quot;: &quot;string&quot;,
  10535. &quot;type&quot;: &quot;string&quot;,
  10536. &quot;settings&quot;: &quot;string&quot;,
  10537. &quot;showOnCard&quot;: true,
  10538. &quot;automaticallyOnCard&quot;: true,
  10539. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  10540. &quot;showLabelOnMiniCard&quot;: true,
  10541. &quot;showSumAtTopOfList&quot;: true
  10542. }&#x27;</span>;
  10543. <span class="hljs-keyword">const</span> headers = {
  10544. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10545. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10546. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10547. };
  10548. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10549. {
  10550. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10551. <span class="hljs-attr">body</span>: inputBody,
  10552. <span class="hljs-attr">headers</span>: headers
  10553. })
  10554. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10555. <span class="hljs-keyword">return</span> res.json();
  10556. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10557. <span class="hljs-built_in">console</span>.log(body);
  10558. });
  10559. </code></pre>
  10560. <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>);
  10561. <span class="hljs-keyword">const</span> inputBody = {
  10562. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10563. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10564. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10565. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10566. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10567. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10568. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  10569. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>
  10570. };
  10571. <span class="hljs-keyword">const</span> headers = {
  10572. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10573. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10574. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10575. };
  10576. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10577. {
  10578. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10579. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10580. <span class="hljs-attr">headers</span>: headers
  10581. })
  10582. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10583. <span class="hljs-keyword">return</span> res.json();
  10584. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10585. <span class="hljs-built_in">console</span>.log(body);
  10586. });
  10587. </code></pre>
  10588. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10589. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10590. headers = {
  10591. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10592. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10593. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10594. }
  10595. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10596. <span class="hljs-symbol">params:</span> {
  10597. }, <span class="hljs-symbol">headers:</span> headers
  10598. p JSON.parse(result)
  10599. </code></pre>
  10600. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10601. headers = {
  10602. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10603. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10604. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10605. }
  10606. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10607. <span class="hljs-built_in">print</span>(r.json())
  10608. </code></pre>
  10609. <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>);
  10610. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10611. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10612. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10613. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10614. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10615. String inputLine;
  10616. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10617. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10618. response.append(inputLine);
  10619. }
  10620. in.close();
  10621. System.out.println(response.toString());
  10622. </code></pre>
  10623. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10624. <span class="hljs-keyword">import</span> (
  10625. <span class="hljs-string">&quot;bytes&quot;</span>
  10626. <span class="hljs-string">&quot;net/http&quot;</span>
  10627. )
  10628. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10629. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10630. <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>},
  10631. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10632. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10633. }
  10634. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10635. 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)
  10636. req.Header = headers
  10637. client := &amp;http.Client{}
  10638. resp, err := client.Do(req)
  10639. <span class="hljs-comment">// ...</span>
  10640. }
  10641. </code></pre>
  10642. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10643. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10644. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10645. );
  10646. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10647. <span class="hljs-comment">// Define array of request body.</span>
  10648. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10649. <span class="hljs-keyword">try</span> {
  10650. <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>(
  10651. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10652. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10653. )
  10654. );
  10655. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10656. }
  10657. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10658. <span class="hljs-comment">// handle exception or api errors.</span>
  10659. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10660. }
  10661. <span class="hljs-comment">// ...</span>
  10662. </code></pre>
  10663. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  10664. <p><em>Update a Custom Field</em></p>
  10665. <blockquote>
  10666. <p>Body parameter</p>
  10667. </blockquote>
  10668. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10669. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10670. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10671. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10672. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10673. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  10674. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10675. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10676. </code></pre>
  10677. <h3 id="edit_custom_field-parameters">Parameters</h3>
  10678. <table>
  10679. <thead>
  10680. <tr>
  10681. <th>Name</th>
  10682. <th>In</th>
  10683. <th>Type</th>
  10684. <th>Required</th>
  10685. <th>Description</th>
  10686. </tr>
  10687. </thead>
  10688. <tbody>
  10689. <tr>
  10690. <td>board</td>
  10691. <td>path</td>
  10692. <td>string</td>
  10693. <td>true</td>
  10694. <td>the board value</td>
  10695. </tr>
  10696. <tr>
  10697. <td>customField</td>
  10698. <td>path</td>
  10699. <td>string</td>
  10700. <td>true</td>
  10701. <td>the customField value</td>
  10702. </tr>
  10703. <tr>
  10704. <td>body</td>
  10705. <td>body</td>
  10706. <td>object</td>
  10707. <td>true</td>
  10708. <td>none</td>
  10709. </tr>
  10710. <tr>
  10711. <td>» name</td>
  10712. <td>body</td>
  10713. <td>string</td>
  10714. <td>true</td>
  10715. <td>the name of the custom field</td>
  10716. </tr>
  10717. <tr>
  10718. <td>» type</td>
  10719. <td>body</td>
  10720. <td>string</td>
  10721. <td>true</td>
  10722. <td>the type of the custom field</td>
  10723. </tr>
  10724. <tr>
  10725. <td>» settings</td>
  10726. <td>body</td>
  10727. <td>string</td>
  10728. <td>true</td>
  10729. <td>the settings object of the custom field</td>
  10730. </tr>
  10731. <tr>
  10732. <td>» showOnCard</td>
  10733. <td>body</td>
  10734. <td>boolean</td>
  10735. <td>true</td>
  10736. <td>should we show the custom field on cards</td>
  10737. </tr>
  10738. <tr>
  10739. <td>» automaticallyOnCard</td>
  10740. <td>body</td>
  10741. <td>boolean</td>
  10742. <td>true</td>
  10743. <td>should the custom fields automatically be added on cards</td>
  10744. </tr>
  10745. <tr>
  10746. <td>» alwaysOnCard</td>
  10747. <td>body</td>
  10748. <td>string</td>
  10749. <td>true</td>
  10750. <td>the alwaysOnCard value</td>
  10751. </tr>
  10752. <tr>
  10753. <td>» showLabelOnMiniCard</td>
  10754. <td>body</td>
  10755. <td>boolean</td>
  10756. <td>true</td>
  10757. <td>should the label of the custom field be shown on minicards</td>
  10758. </tr>
  10759. <tr>
  10760. <td>» showSumAtTopOfList</td>
  10761. <td>body</td>
  10762. <td>boolean</td>
  10763. <td>true</td>
  10764. <td>should the sum of the custom fields be shown at top of list</td>
  10765. </tr>
  10766. </tbody>
  10767. </table>
  10768. <blockquote>
  10769. <p>Example responses</p>
  10770. </blockquote>
  10771. <blockquote>
  10772. <p>200 Response</p>
  10773. </blockquote>
  10774. <pre class="highlight tab tab-json"><code>{
  10775. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10776. }
  10777. </code></pre>
  10778. <h3 id="edit_custom_field-responses">Responses</h3>
  10779. <table>
  10780. <thead>
  10781. <tr>
  10782. <th>Status</th>
  10783. <th>Meaning</th>
  10784. <th>Description</th>
  10785. <th>Schema</th>
  10786. </tr>
  10787. </thead>
  10788. <tbody>
  10789. <tr>
  10790. <td>200</td>
  10791. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10792. <td>200 response</td>
  10793. <td>Inline</td>
  10794. </tr>
  10795. </tbody>
  10796. </table>
  10797. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  10798. <p>Status Code <strong>200</strong></p>
  10799. <table>
  10800. <thead>
  10801. <tr>
  10802. <th>Name</th>
  10803. <th>Type</th>
  10804. <th>Required</th>
  10805. <th>Restrictions</th>
  10806. <th>Description</th>
  10807. </tr>
  10808. </thead>
  10809. <tbody>
  10810. <tr>
  10811. <td>» _id</td>
  10812. <td>string</td>
  10813. <td>false</td>
  10814. <td>none</td>
  10815. <td>none</td>
  10816. </tr>
  10817. </tbody>
  10818. </table>
  10819. <aside class="warning">
  10820. To perform this operation, you must be authenticated by means of one of the following methods:
  10821. UserSecurity
  10822. </aside>
  10823. <h2 id="delete_custom_field">delete_custom_field</h2>
  10824. <p><a id="opIddelete_custom_field"></a></p>
  10825. <blockquote>
  10826. <p>Code samples</p>
  10827. </blockquote>
  10828. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10829. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  10830. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10831. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10832. </code></pre>
  10833. <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>
  10834. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10835. </span></code></pre>
  10836. <pre class="highlight tab tab-javascript"><code>
  10837. <span class="hljs-keyword">const</span> headers = {
  10838. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10839. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10840. };
  10841. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10842. {
  10843. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10844. <span class="hljs-attr">headers</span>: headers
  10845. })
  10846. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10847. <span class="hljs-keyword">return</span> res.json();
  10848. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10849. <span class="hljs-built_in">console</span>.log(body);
  10850. });
  10851. </code></pre>
  10852. <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>);
  10853. <span class="hljs-keyword">const</span> headers = {
  10854. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10855. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10856. };
  10857. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10858. {
  10859. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10860. <span class="hljs-attr">headers</span>: headers
  10861. })
  10862. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10863. <span class="hljs-keyword">return</span> res.json();
  10864. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10865. <span class="hljs-built_in">console</span>.log(body);
  10866. });
  10867. </code></pre>
  10868. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10869. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10870. headers = {
  10871. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10872. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10873. }
  10874. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10875. <span class="hljs-symbol">params:</span> {
  10876. }, <span class="hljs-symbol">headers:</span> headers
  10877. p JSON.parse(result)
  10878. </code></pre>
  10879. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10880. headers = {
  10881. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10882. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10883. }
  10884. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10885. <span class="hljs-built_in">print</span>(r.json())
  10886. </code></pre>
  10887. <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>);
  10888. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10889. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10890. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10891. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10892. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10893. String inputLine;
  10894. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10895. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10896. response.append(inputLine);
  10897. }
  10898. in.close();
  10899. System.out.println(response.toString());
  10900. </code></pre>
  10901. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10902. <span class="hljs-keyword">import</span> (
  10903. <span class="hljs-string">&quot;bytes&quot;</span>
  10904. <span class="hljs-string">&quot;net/http&quot;</span>
  10905. )
  10906. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10907. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10908. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10909. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10910. }
  10911. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10912. 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)
  10913. req.Header = headers
  10914. client := &amp;http.Client{}
  10915. resp, err := client.Do(req)
  10916. <span class="hljs-comment">// ...</span>
  10917. }
  10918. </code></pre>
  10919. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10920. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10921. );
  10922. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10923. <span class="hljs-comment">// Define array of request body.</span>
  10924. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10925. <span class="hljs-keyword">try</span> {
  10926. <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>(
  10927. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10928. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10929. )
  10930. );
  10931. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10932. }
  10933. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10934. <span class="hljs-comment">// handle exception or api errors.</span>
  10935. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10936. }
  10937. <span class="hljs-comment">// ...</span>
  10938. </code></pre>
  10939. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10940. <p><em>Delete a Custom Fields attached to a board</em></p>
  10941. <p>The Custom Field can't be retrieved after this operation</p>
  10942. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10943. <table>
  10944. <thead>
  10945. <tr>
  10946. <th>Name</th>
  10947. <th>In</th>
  10948. <th>Type</th>
  10949. <th>Required</th>
  10950. <th>Description</th>
  10951. </tr>
  10952. </thead>
  10953. <tbody>
  10954. <tr>
  10955. <td>board</td>
  10956. <td>path</td>
  10957. <td>string</td>
  10958. <td>true</td>
  10959. <td>the board value</td>
  10960. </tr>
  10961. <tr>
  10962. <td>customField</td>
  10963. <td>path</td>
  10964. <td>string</td>
  10965. <td>true</td>
  10966. <td>the ID of the custom field</td>
  10967. </tr>
  10968. </tbody>
  10969. </table>
  10970. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  10971. <p><strong>customField</strong>: the ID of the custom field</p>
  10972. <blockquote>
  10973. <p>Example responses</p>
  10974. </blockquote>
  10975. <blockquote>
  10976. <p>200 Response</p>
  10977. </blockquote>
  10978. <pre class="highlight tab tab-json"><code>{
  10979. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10980. }
  10981. </code></pre>
  10982. <h3 id="delete_custom_field-responses">Responses</h3>
  10983. <table>
  10984. <thead>
  10985. <tr>
  10986. <th>Status</th>
  10987. <th>Meaning</th>
  10988. <th>Description</th>
  10989. <th>Schema</th>
  10990. </tr>
  10991. </thead>
  10992. <tbody>
  10993. <tr>
  10994. <td>200</td>
  10995. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10996. <td>200 response</td>
  10997. <td>Inline</td>
  10998. </tr>
  10999. </tbody>
  11000. </table>
  11001. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  11002. <p>Status Code <strong>200</strong></p>
  11003. <table>
  11004. <thead>
  11005. <tr>
  11006. <th>Name</th>
  11007. <th>Type</th>
  11008. <th>Required</th>
  11009. <th>Restrictions</th>
  11010. <th>Description</th>
  11011. </tr>
  11012. </thead>
  11013. <tbody>
  11014. <tr>
  11015. <td>» _id</td>
  11016. <td>string</td>
  11017. <td>false</td>
  11018. <td>none</td>
  11019. <td>none</td>
  11020. </tr>
  11021. </tbody>
  11022. </table>
  11023. <aside class="warning">
  11024. To perform this operation, you must be authenticated by means of one of the following methods:
  11025. UserSecurity
  11026. </aside>
  11027. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  11028. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  11029. <blockquote>
  11030. <p>Code samples</p>
  11031. </blockquote>
  11032. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11033. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  11034. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11035. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11036. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11037. </code></pre>
  11038. <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>
  11039. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11040. Accept: application/json
  11041. </span></code></pre>
  11042. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11043. &quot;items&quot;: &quot;string&quot;
  11044. }&#x27;</span>;
  11045. <span class="hljs-keyword">const</span> headers = {
  11046. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11047. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11048. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11049. };
  11050. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11051. {
  11052. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11053. <span class="hljs-attr">body</span>: inputBody,
  11054. <span class="hljs-attr">headers</span>: headers
  11055. })
  11056. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11057. <span class="hljs-keyword">return</span> res.json();
  11058. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11059. <span class="hljs-built_in">console</span>.log(body);
  11060. });
  11061. </code></pre>
  11062. <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>);
  11063. <span class="hljs-keyword">const</span> inputBody = {
  11064. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11065. };
  11066. <span class="hljs-keyword">const</span> headers = {
  11067. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11068. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11069. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11070. };
  11071. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11072. {
  11073. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11074. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11075. <span class="hljs-attr">headers</span>: headers
  11076. })
  11077. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11078. <span class="hljs-keyword">return</span> res.json();
  11079. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11080. <span class="hljs-built_in">console</span>.log(body);
  11081. });
  11082. </code></pre>
  11083. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11084. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11085. headers = {
  11086. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11087. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11088. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11089. }
  11090. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  11091. <span class="hljs-symbol">params:</span> {
  11092. }, <span class="hljs-symbol">headers:</span> headers
  11093. p JSON.parse(result)
  11094. </code></pre>
  11095. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11096. headers = {
  11097. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11098. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11099. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11100. }
  11101. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  11102. <span class="hljs-built_in">print</span>(r.json())
  11103. </code></pre>
  11104. <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>);
  11105. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11106. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11107. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11108. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11109. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11110. String inputLine;
  11111. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11112. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11113. response.append(inputLine);
  11114. }
  11115. in.close();
  11116. System.out.println(response.toString());
  11117. </code></pre>
  11118. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11119. <span class="hljs-keyword">import</span> (
  11120. <span class="hljs-string">&quot;bytes&quot;</span>
  11121. <span class="hljs-string">&quot;net/http&quot;</span>
  11122. )
  11123. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11124. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11125. <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>},
  11126. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11127. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11128. }
  11129. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11130. 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)
  11131. req.Header = headers
  11132. client := &amp;http.Client{}
  11133. resp, err := client.Do(req)
  11134. <span class="hljs-comment">// ...</span>
  11135. }
  11136. </code></pre>
  11137. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11138. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11139. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11140. );
  11141. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11142. <span class="hljs-comment">// Define array of request body.</span>
  11143. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11144. <span class="hljs-keyword">try</span> {
  11145. <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>(
  11146. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11147. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11148. )
  11149. );
  11150. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11151. }
  11152. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11153. <span class="hljs-comment">// handle exception or api errors.</span>
  11154. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11155. }
  11156. <span class="hljs-comment">// ...</span>
  11157. </code></pre>
  11158. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  11159. <p><em>Update a Custom Field's dropdown items</em></p>
  11160. <blockquote>
  11161. <p>Body parameter</p>
  11162. </blockquote>
  11163. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  11164. </code></pre>
  11165. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  11166. <table>
  11167. <thead>
  11168. <tr>
  11169. <th>Name</th>
  11170. <th>In</th>
  11171. <th>Type</th>
  11172. <th>Required</th>
  11173. <th>Description</th>
  11174. </tr>
  11175. </thead>
  11176. <tbody>
  11177. <tr>
  11178. <td>board</td>
  11179. <td>path</td>
  11180. <td>string</td>
  11181. <td>true</td>
  11182. <td>the board value</td>
  11183. </tr>
  11184. <tr>
  11185. <td>customField</td>
  11186. <td>path</td>
  11187. <td>string</td>
  11188. <td>true</td>
  11189. <td>the customField value</td>
  11190. </tr>
  11191. <tr>
  11192. <td>body</td>
  11193. <td>body</td>
  11194. <td>object</td>
  11195. <td>false</td>
  11196. <td>none</td>
  11197. </tr>
  11198. <tr>
  11199. <td>» items</td>
  11200. <td>body</td>
  11201. <td>string</td>
  11202. <td>false</td>
  11203. <td>names of the custom field</td>
  11204. </tr>
  11205. </tbody>
  11206. </table>
  11207. <blockquote>
  11208. <p>Example responses</p>
  11209. </blockquote>
  11210. <blockquote>
  11211. <p>200 Response</p>
  11212. </blockquote>
  11213. <pre class="highlight tab tab-json"><code>{
  11214. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11215. }
  11216. </code></pre>
  11217. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  11218. <table>
  11219. <thead>
  11220. <tr>
  11221. <th>Status</th>
  11222. <th>Meaning</th>
  11223. <th>Description</th>
  11224. <th>Schema</th>
  11225. </tr>
  11226. </thead>
  11227. <tbody>
  11228. <tr>
  11229. <td>200</td>
  11230. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11231. <td>200 response</td>
  11232. <td>Inline</td>
  11233. </tr>
  11234. </tbody>
  11235. </table>
  11236. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  11237. <p>Status Code <strong>200</strong></p>
  11238. <table>
  11239. <thead>
  11240. <tr>
  11241. <th>Name</th>
  11242. <th>Type</th>
  11243. <th>Required</th>
  11244. <th>Restrictions</th>
  11245. <th>Description</th>
  11246. </tr>
  11247. </thead>
  11248. <tbody>
  11249. <tr>
  11250. <td>» _id</td>
  11251. <td>string</td>
  11252. <td>false</td>
  11253. <td>none</td>
  11254. <td>none</td>
  11255. </tr>
  11256. </tbody>
  11257. </table>
  11258. <aside class="warning">
  11259. To perform this operation, you must be authenticated by means of one of the following methods:
  11260. UserSecurity
  11261. </aside>
  11262. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  11263. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  11264. <blockquote>
  11265. <p>Code samples</p>
  11266. </blockquote>
  11267. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11268. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11269. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11270. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11271. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11272. </code></pre>
  11273. <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>
  11274. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11275. Accept: application/json
  11276. </span></code></pre>
  11277. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11278. &quot;name&quot;: &quot;string&quot;
  11279. }&#x27;</span>;
  11280. <span class="hljs-keyword">const</span> headers = {
  11281. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11282. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11283. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11284. };
  11285. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11286. {
  11287. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11288. <span class="hljs-attr">body</span>: inputBody,
  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> inputBody = {
  11299. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11300. };
  11301. <span class="hljs-keyword">const</span> headers = {
  11302. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11303. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11304. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11305. };
  11306. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11307. {
  11308. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11309. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11310. <span class="hljs-attr">headers</span>: headers
  11311. })
  11312. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11313. <span class="hljs-keyword">return</span> res.json();
  11314. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11315. <span class="hljs-built_in">console</span>.log(body);
  11316. });
  11317. </code></pre>
  11318. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11319. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11320. headers = {
  11321. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11322. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11323. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11324. }
  11325. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11326. <span class="hljs-symbol">params:</span> {
  11327. }, <span class="hljs-symbol">headers:</span> headers
  11328. p JSON.parse(result)
  11329. </code></pre>
  11330. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11331. headers = {
  11332. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11333. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11334. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11335. }
  11336. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  11337. <span class="hljs-built_in">print</span>(r.json())
  11338. </code></pre>
  11339. <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>);
  11340. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11341. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11342. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11343. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11344. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11345. String inputLine;
  11346. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11347. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11348. response.append(inputLine);
  11349. }
  11350. in.close();
  11351. System.out.println(response.toString());
  11352. </code></pre>
  11353. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11354. <span class="hljs-keyword">import</span> (
  11355. <span class="hljs-string">&quot;bytes&quot;</span>
  11356. <span class="hljs-string">&quot;net/http&quot;</span>
  11357. )
  11358. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11359. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11360. <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>},
  11361. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11362. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11363. }
  11364. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11365. 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)
  11366. req.Header = headers
  11367. client := &amp;http.Client{}
  11368. resp, err := client.Do(req)
  11369. <span class="hljs-comment">// ...</span>
  11370. }
  11371. </code></pre>
  11372. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11373. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11374. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11375. );
  11376. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11377. <span class="hljs-comment">// Define array of request body.</span>
  11378. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11379. <span class="hljs-keyword">try</span> {
  11380. <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>(
  11381. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11382. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11383. )
  11384. );
  11385. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11386. }
  11387. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11388. <span class="hljs-comment">// handle exception or api errors.</span>
  11389. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11390. }
  11391. <span class="hljs-comment">// ...</span>
  11392. </code></pre>
  11393. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11394. <p><em>Update a Custom Field's dropdown item</em></p>
  11395. <blockquote>
  11396. <p>Body parameter</p>
  11397. </blockquote>
  11398. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  11399. </code></pre>
  11400. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  11401. <table>
  11402. <thead>
  11403. <tr>
  11404. <th>Name</th>
  11405. <th>In</th>
  11406. <th>Type</th>
  11407. <th>Required</th>
  11408. <th>Description</th>
  11409. </tr>
  11410. </thead>
  11411. <tbody>
  11412. <tr>
  11413. <td>board</td>
  11414. <td>path</td>
  11415. <td>string</td>
  11416. <td>true</td>
  11417. <td>the board value</td>
  11418. </tr>
  11419. <tr>
  11420. <td>customField</td>
  11421. <td>path</td>
  11422. <td>string</td>
  11423. <td>true</td>
  11424. <td>the customField value</td>
  11425. </tr>
  11426. <tr>
  11427. <td>dropdownItem</td>
  11428. <td>path</td>
  11429. <td>string</td>
  11430. <td>true</td>
  11431. <td>the dropdownItem value</td>
  11432. </tr>
  11433. <tr>
  11434. <td>body</td>
  11435. <td>body</td>
  11436. <td>object</td>
  11437. <td>true</td>
  11438. <td>none</td>
  11439. </tr>
  11440. <tr>
  11441. <td>» name</td>
  11442. <td>body</td>
  11443. <td>string</td>
  11444. <td>true</td>
  11445. <td>names of the custom field</td>
  11446. </tr>
  11447. </tbody>
  11448. </table>
  11449. <blockquote>
  11450. <p>Example responses</p>
  11451. </blockquote>
  11452. <blockquote>
  11453. <p>200 Response</p>
  11454. </blockquote>
  11455. <pre class="highlight tab tab-json"><code>{
  11456. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11457. }
  11458. </code></pre>
  11459. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  11460. <table>
  11461. <thead>
  11462. <tr>
  11463. <th>Status</th>
  11464. <th>Meaning</th>
  11465. <th>Description</th>
  11466. <th>Schema</th>
  11467. </tr>
  11468. </thead>
  11469. <tbody>
  11470. <tr>
  11471. <td>200</td>
  11472. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11473. <td>200 response</td>
  11474. <td>Inline</td>
  11475. </tr>
  11476. </tbody>
  11477. </table>
  11478. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11479. <p>Status Code <strong>200</strong></p>
  11480. <table>
  11481. <thead>
  11482. <tr>
  11483. <th>Name</th>
  11484. <th>Type</th>
  11485. <th>Required</th>
  11486. <th>Restrictions</th>
  11487. <th>Description</th>
  11488. </tr>
  11489. </thead>
  11490. <tbody>
  11491. <tr>
  11492. <td>» _id</td>
  11493. <td>string</td>
  11494. <td>false</td>
  11495. <td>none</td>
  11496. <td>none</td>
  11497. </tr>
  11498. </tbody>
  11499. </table>
  11500. <aside class="warning">
  11501. To perform this operation, you must be authenticated by means of one of the following methods:
  11502. UserSecurity
  11503. </aside>
  11504. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  11505. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  11506. <blockquote>
  11507. <p>Code samples</p>
  11508. </blockquote>
  11509. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11510. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11511. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11512. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11513. </code></pre>
  11514. <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>
  11515. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11516. </span></code></pre>
  11517. <pre class="highlight tab tab-javascript"><code>
  11518. <span class="hljs-keyword">const</span> headers = {
  11519. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11520. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11521. };
  11522. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11523. {
  11524. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11525. <span class="hljs-attr">headers</span>: headers
  11526. })
  11527. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11528. <span class="hljs-keyword">return</span> res.json();
  11529. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11530. <span class="hljs-built_in">console</span>.log(body);
  11531. });
  11532. </code></pre>
  11533. <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>);
  11534. <span class="hljs-keyword">const</span> headers = {
  11535. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11536. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11537. };
  11538. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11539. {
  11540. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11541. <span class="hljs-attr">headers</span>: headers
  11542. })
  11543. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11544. <span class="hljs-keyword">return</span> res.json();
  11545. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11546. <span class="hljs-built_in">console</span>.log(body);
  11547. });
  11548. </code></pre>
  11549. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11550. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11551. headers = {
  11552. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11553. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11554. }
  11555. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11556. <span class="hljs-symbol">params:</span> {
  11557. }, <span class="hljs-symbol">headers:</span> headers
  11558. p JSON.parse(result)
  11559. </code></pre>
  11560. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11561. headers = {
  11562. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11563. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11564. }
  11565. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  11566. <span class="hljs-built_in">print</span>(r.json())
  11567. </code></pre>
  11568. <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>);
  11569. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11570. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11571. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11572. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11573. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11574. String inputLine;
  11575. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11576. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11577. response.append(inputLine);
  11578. }
  11579. in.close();
  11580. System.out.println(response.toString());
  11581. </code></pre>
  11582. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11583. <span class="hljs-keyword">import</span> (
  11584. <span class="hljs-string">&quot;bytes&quot;</span>
  11585. <span class="hljs-string">&quot;net/http&quot;</span>
  11586. )
  11587. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11588. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11589. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11590. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11591. }
  11592. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11593. 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)
  11594. req.Header = headers
  11595. client := &amp;http.Client{}
  11596. resp, err := client.Do(req)
  11597. <span class="hljs-comment">// ...</span>
  11598. }
  11599. </code></pre>
  11600. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11601. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11602. );
  11603. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11604. <span class="hljs-comment">// Define array of request body.</span>
  11605. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11606. <span class="hljs-keyword">try</span> {
  11607. <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>(
  11608. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11609. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11610. )
  11611. );
  11612. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11613. }
  11614. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11615. <span class="hljs-comment">// handle exception or api errors.</span>
  11616. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11617. }
  11618. <span class="hljs-comment">// ...</span>
  11619. </code></pre>
  11620. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11621. <p><em>Update a Custom Field's dropdown items</em></p>
  11622. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  11623. <table>
  11624. <thead>
  11625. <tr>
  11626. <th>Name</th>
  11627. <th>In</th>
  11628. <th>Type</th>
  11629. <th>Required</th>
  11630. <th>Description</th>
  11631. </tr>
  11632. </thead>
  11633. <tbody>
  11634. <tr>
  11635. <td>board</td>
  11636. <td>path</td>
  11637. <td>string</td>
  11638. <td>true</td>
  11639. <td>the board value</td>
  11640. </tr>
  11641. <tr>
  11642. <td>customField</td>
  11643. <td>path</td>
  11644. <td>string</td>
  11645. <td>true</td>
  11646. <td>the customField value</td>
  11647. </tr>
  11648. <tr>
  11649. <td>dropdownItem</td>
  11650. <td>path</td>
  11651. <td>string</td>
  11652. <td>true</td>
  11653. <td>the dropdownItem value</td>
  11654. </tr>
  11655. </tbody>
  11656. </table>
  11657. <blockquote>
  11658. <p>Example responses</p>
  11659. </blockquote>
  11660. <blockquote>
  11661. <p>200 Response</p>
  11662. </blockquote>
  11663. <pre class="highlight tab tab-json"><code>{
  11664. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11665. }
  11666. </code></pre>
  11667. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  11668. <table>
  11669. <thead>
  11670. <tr>
  11671. <th>Status</th>
  11672. <th>Meaning</th>
  11673. <th>Description</th>
  11674. <th>Schema</th>
  11675. </tr>
  11676. </thead>
  11677. <tbody>
  11678. <tr>
  11679. <td>200</td>
  11680. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11681. <td>200 response</td>
  11682. <td>Inline</td>
  11683. </tr>
  11684. </tbody>
  11685. </table>
  11686. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11687. <p>Status Code <strong>200</strong></p>
  11688. <table>
  11689. <thead>
  11690. <tr>
  11691. <th>Name</th>
  11692. <th>Type</th>
  11693. <th>Required</th>
  11694. <th>Restrictions</th>
  11695. <th>Description</th>
  11696. </tr>
  11697. </thead>
  11698. <tbody>
  11699. <tr>
  11700. <td>» _id</td>
  11701. <td>string</td>
  11702. <td>false</td>
  11703. <td>none</td>
  11704. <td>none</td>
  11705. </tr>
  11706. </tbody>
  11707. </table>
  11708. <aside class="warning">
  11709. To perform this operation, you must be authenticated by means of one of the following methods:
  11710. UserSecurity
  11711. </aside>
  11712. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  11713. <h2 id="get_all_integrations">get_all_integrations</h2>
  11714. <p><a id="opIdget_all_integrations"></a></p>
  11715. <blockquote>
  11716. <p>Code samples</p>
  11717. </blockquote>
  11718. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11719. curl -X GET /api/boards/{board}/integrations \
  11720. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11721. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11722. </code></pre>
  11723. <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>
  11724. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11725. </span></code></pre>
  11726. <pre class="highlight tab tab-javascript"><code>
  11727. <span class="hljs-keyword">const</span> headers = {
  11728. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11729. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11730. };
  11731. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11732. {
  11733. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  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> headers = {
  11744. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11745. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11746. };
  11747. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11748. {
  11749. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11750. <span class="hljs-attr">headers</span>: headers
  11751. })
  11752. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11753. <span class="hljs-keyword">return</span> res.json();
  11754. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11755. <span class="hljs-built_in">console</span>.log(body);
  11756. });
  11757. </code></pre>
  11758. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11759. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11760. headers = {
  11761. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11762. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11763. }
  11764. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11765. <span class="hljs-symbol">params:</span> {
  11766. }, <span class="hljs-symbol">headers:</span> headers
  11767. p JSON.parse(result)
  11768. </code></pre>
  11769. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11770. headers = {
  11771. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11772. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11773. }
  11774. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11775. <span class="hljs-built_in">print</span>(r.json())
  11776. </code></pre>
  11777. <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>);
  11778. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11779. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11780. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11781. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11782. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11783. String inputLine;
  11784. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11785. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11786. response.append(inputLine);
  11787. }
  11788. in.close();
  11789. System.out.println(response.toString());
  11790. </code></pre>
  11791. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11792. <span class="hljs-keyword">import</span> (
  11793. <span class="hljs-string">&quot;bytes&quot;</span>
  11794. <span class="hljs-string">&quot;net/http&quot;</span>
  11795. )
  11796. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11797. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11798. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11799. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11800. }
  11801. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11802. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11803. req.Header = headers
  11804. client := &amp;http.Client{}
  11805. resp, err := client.Do(req)
  11806. <span class="hljs-comment">// ...</span>
  11807. }
  11808. </code></pre>
  11809. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11810. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11811. );
  11812. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11813. <span class="hljs-comment">// Define array of request body.</span>
  11814. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11815. <span class="hljs-keyword">try</span> {
  11816. <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>(
  11817. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11818. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11819. )
  11820. );
  11821. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11822. }
  11823. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11824. <span class="hljs-comment">// handle exception or api errors.</span>
  11825. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11826. }
  11827. <span class="hljs-comment">// ...</span>
  11828. </code></pre>
  11829. <p><code>GET /api/boards/{board}/integrations</code></p>
  11830. <p><em>Get all integrations in board</em></p>
  11831. <h3 id="get_all_integrations-parameters">Parameters</h3>
  11832. <table>
  11833. <thead>
  11834. <tr>
  11835. <th>Name</th>
  11836. <th>In</th>
  11837. <th>Type</th>
  11838. <th>Required</th>
  11839. <th>Description</th>
  11840. </tr>
  11841. </thead>
  11842. <tbody>
  11843. <tr>
  11844. <td>board</td>
  11845. <td>path</td>
  11846. <td>string</td>
  11847. <td>true</td>
  11848. <td>the board ID</td>
  11849. </tr>
  11850. </tbody>
  11851. </table>
  11852. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11853. <p><strong>board</strong>: the board ID</p>
  11854. <blockquote>
  11855. <p>Example responses</p>
  11856. </blockquote>
  11857. <blockquote>
  11858. <p>200 Response</p>
  11859. </blockquote>
  11860. <pre class="highlight tab tab-json"><code>[
  11861. {
  11862. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11863. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11864. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11865. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11866. <span class="hljs-string">&quot;string&quot;</span>
  11867. ],
  11868. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11869. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11870. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11871. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11872. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11873. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11874. }
  11875. ]
  11876. </code></pre>
  11877. <h3 id="get_all_integrations-responses">Responses</h3>
  11878. <table>
  11879. <thead>
  11880. <tr>
  11881. <th>Status</th>
  11882. <th>Meaning</th>
  11883. <th>Description</th>
  11884. <th>Schema</th>
  11885. </tr>
  11886. </thead>
  11887. <tbody>
  11888. <tr>
  11889. <td>200</td>
  11890. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11891. <td>200 response</td>
  11892. <td>Inline</td>
  11893. </tr>
  11894. </tbody>
  11895. </table>
  11896. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11897. <p>Status Code <strong>200</strong></p>
  11898. <table>
  11899. <thead>
  11900. <tr>
  11901. <th>Name</th>
  11902. <th>Type</th>
  11903. <th>Required</th>
  11904. <th>Restrictions</th>
  11905. <th>Description</th>
  11906. </tr>
  11907. </thead>
  11908. <tbody>
  11909. <tr>
  11910. <td><em>anonymous</em></td>
  11911. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11912. <td>false</td>
  11913. <td>none</td>
  11914. <td>[Integration with third-party applications]</td>
  11915. </tr>
  11916. <tr>
  11917. <td>» enabled</td>
  11918. <td>boolean</td>
  11919. <td>true</td>
  11920. <td>none</td>
  11921. <td>is the integration enabled?</td>
  11922. </tr>
  11923. <tr>
  11924. <td>» title</td>
  11925. <td>string¦null</td>
  11926. <td>false</td>
  11927. <td>none</td>
  11928. <td>name of the integration</td>
  11929. </tr>
  11930. <tr>
  11931. <td>» type</td>
  11932. <td>string</td>
  11933. <td>true</td>
  11934. <td>none</td>
  11935. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11936. </tr>
  11937. <tr>
  11938. <td>» activities</td>
  11939. <td>[string]</td>
  11940. <td>true</td>
  11941. <td>none</td>
  11942. <td>activities the integration gets triggered (list)</td>
  11943. </tr>
  11944. <tr>
  11945. <td>» url</td>
  11946. <td>string</td>
  11947. <td>true</td>
  11948. <td>none</td>
  11949. <td>none</td>
  11950. </tr>
  11951. <tr>
  11952. <td>» token</td>
  11953. <td>string¦null</td>
  11954. <td>false</td>
  11955. <td>none</td>
  11956. <td>token of the integration</td>
  11957. </tr>
  11958. <tr>
  11959. <td>» boardId</td>
  11960. <td>string</td>
  11961. <td>true</td>
  11962. <td>none</td>
  11963. <td>Board ID of the integration</td>
  11964. </tr>
  11965. <tr>
  11966. <td>» createdAt</td>
  11967. <td>string</td>
  11968. <td>true</td>
  11969. <td>none</td>
  11970. <td>Creation date of the integration</td>
  11971. </tr>
  11972. <tr>
  11973. <td>» modifiedAt</td>
  11974. <td>string</td>
  11975. <td>true</td>
  11976. <td>none</td>
  11977. <td>none</td>
  11978. </tr>
  11979. <tr>
  11980. <td>» userId</td>
  11981. <td>string</td>
  11982. <td>true</td>
  11983. <td>none</td>
  11984. <td>user ID who created the interation</td>
  11985. </tr>
  11986. </tbody>
  11987. </table>
  11988. <aside class="warning">
  11989. To perform this operation, you must be authenticated by means of one of the following methods:
  11990. UserSecurity
  11991. </aside>
  11992. <h2 id="new_integration">new_integration</h2>
  11993. <p><a id="opIdnew_integration"></a></p>
  11994. <blockquote>
  11995. <p>Code samples</p>
  11996. </blockquote>
  11997. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11998. curl -X POST /api/boards/{board}/integrations \
  11999. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12000. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12001. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12002. </code></pre>
  12003. <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>
  12004. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12005. Accept: application/json
  12006. </span></code></pre>
  12007. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12008. &quot;url&quot;: &quot;string&quot;
  12009. }&#x27;</span>;
  12010. <span class="hljs-keyword">const</span> headers = {
  12011. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12012. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12013. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12014. };
  12015. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12016. {
  12017. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12018. <span class="hljs-attr">body</span>: inputBody,
  12019. <span class="hljs-attr">headers</span>: headers
  12020. })
  12021. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12022. <span class="hljs-keyword">return</span> res.json();
  12023. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12024. <span class="hljs-built_in">console</span>.log(body);
  12025. });
  12026. </code></pre>
  12027. <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>);
  12028. <span class="hljs-keyword">const</span> inputBody = {
  12029. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12030. };
  12031. <span class="hljs-keyword">const</span> headers = {
  12032. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12033. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12034. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12035. };
  12036. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12037. {
  12038. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12039. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12040. <span class="hljs-attr">headers</span>: headers
  12041. })
  12042. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12043. <span class="hljs-keyword">return</span> res.json();
  12044. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12045. <span class="hljs-built_in">console</span>.log(body);
  12046. });
  12047. </code></pre>
  12048. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12049. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12050. headers = {
  12051. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12052. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12053. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12054. }
  12055. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  12056. <span class="hljs-symbol">params:</span> {
  12057. }, <span class="hljs-symbol">headers:</span> headers
  12058. p JSON.parse(result)
  12059. </code></pre>
  12060. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12061. headers = {
  12062. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12063. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12064. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12065. }
  12066. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  12067. <span class="hljs-built_in">print</span>(r.json())
  12068. </code></pre>
  12069. <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>);
  12070. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12071. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12072. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12073. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12074. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12075. String inputLine;
  12076. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12077. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12078. response.append(inputLine);
  12079. }
  12080. in.close();
  12081. System.out.println(response.toString());
  12082. </code></pre>
  12083. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12084. <span class="hljs-keyword">import</span> (
  12085. <span class="hljs-string">&quot;bytes&quot;</span>
  12086. <span class="hljs-string">&quot;net/http&quot;</span>
  12087. )
  12088. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12089. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12090. <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>},
  12091. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12092. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12093. }
  12094. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12095. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  12096. req.Header = headers
  12097. client := &amp;http.Client{}
  12098. resp, err := client.Do(req)
  12099. <span class="hljs-comment">// ...</span>
  12100. }
  12101. </code></pre>
  12102. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12103. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12104. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12105. );
  12106. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12107. <span class="hljs-comment">// Define array of request body.</span>
  12108. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12109. <span class="hljs-keyword">try</span> {
  12110. <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>(
  12111. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12112. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12113. )
  12114. );
  12115. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12116. }
  12117. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12118. <span class="hljs-comment">// handle exception or api errors.</span>
  12119. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12120. }
  12121. <span class="hljs-comment">// ...</span>
  12122. </code></pre>
  12123. <p><code>POST /api/boards/{board}/integrations</code></p>
  12124. <p><em>Create a new integration</em></p>
  12125. <blockquote>
  12126. <p>Body parameter</p>
  12127. </blockquote>
  12128. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12129. </code></pre>
  12130. <h3 id="new_integration-parameters">Parameters</h3>
  12131. <table>
  12132. <thead>
  12133. <tr>
  12134. <th>Name</th>
  12135. <th>In</th>
  12136. <th>Type</th>
  12137. <th>Required</th>
  12138. <th>Description</th>
  12139. </tr>
  12140. </thead>
  12141. <tbody>
  12142. <tr>
  12143. <td>board</td>
  12144. <td>path</td>
  12145. <td>string</td>
  12146. <td>true</td>
  12147. <td>the board ID</td>
  12148. </tr>
  12149. <tr>
  12150. <td>body</td>
  12151. <td>body</td>
  12152. <td>object</td>
  12153. <td>true</td>
  12154. <td>none</td>
  12155. </tr>
  12156. <tr>
  12157. <td>» url</td>
  12158. <td>body</td>
  12159. <td>string</td>
  12160. <td>true</td>
  12161. <td>the URL of the integration</td>
  12162. </tr>
  12163. </tbody>
  12164. </table>
  12165. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12166. <p><strong>board</strong>: the board ID</p>
  12167. <blockquote>
  12168. <p>Example responses</p>
  12169. </blockquote>
  12170. <blockquote>
  12171. <p>200 Response</p>
  12172. </blockquote>
  12173. <pre class="highlight tab tab-json"><code>{
  12174. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12175. }
  12176. </code></pre>
  12177. <h3 id="new_integration-responses">Responses</h3>
  12178. <table>
  12179. <thead>
  12180. <tr>
  12181. <th>Status</th>
  12182. <th>Meaning</th>
  12183. <th>Description</th>
  12184. <th>Schema</th>
  12185. </tr>
  12186. </thead>
  12187. <tbody>
  12188. <tr>
  12189. <td>200</td>
  12190. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12191. <td>200 response</td>
  12192. <td>Inline</td>
  12193. </tr>
  12194. </tbody>
  12195. </table>
  12196. <h3 id="new_integration-responseschema">Response Schema</h3>
  12197. <p>Status Code <strong>200</strong></p>
  12198. <table>
  12199. <thead>
  12200. <tr>
  12201. <th>Name</th>
  12202. <th>Type</th>
  12203. <th>Required</th>
  12204. <th>Restrictions</th>
  12205. <th>Description</th>
  12206. </tr>
  12207. </thead>
  12208. <tbody>
  12209. <tr>
  12210. <td>» _id</td>
  12211. <td>string</td>
  12212. <td>false</td>
  12213. <td>none</td>
  12214. <td>none</td>
  12215. </tr>
  12216. </tbody>
  12217. </table>
  12218. <aside class="warning">
  12219. To perform this operation, you must be authenticated by means of one of the following methods:
  12220. UserSecurity
  12221. </aside>
  12222. <h2 id="get_integration">get_integration</h2>
  12223. <p><a id="opIdget_integration"></a></p>
  12224. <blockquote>
  12225. <p>Code samples</p>
  12226. </blockquote>
  12227. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12228. curl -X GET /api/boards/{board}/integrations/{int} \
  12229. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12230. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12231. </code></pre>
  12232. <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>
  12233. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12234. </span></code></pre>
  12235. <pre class="highlight tab tab-javascript"><code>
  12236. <span class="hljs-keyword">const</span> headers = {
  12237. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12238. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12239. };
  12240. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12241. {
  12242. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12243. <span class="hljs-attr">headers</span>: headers
  12244. })
  12245. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12246. <span class="hljs-keyword">return</span> res.json();
  12247. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12248. <span class="hljs-built_in">console</span>.log(body);
  12249. });
  12250. </code></pre>
  12251. <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>);
  12252. <span class="hljs-keyword">const</span> headers = {
  12253. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12254. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12255. };
  12256. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12257. {
  12258. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12259. <span class="hljs-attr">headers</span>: headers
  12260. })
  12261. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12262. <span class="hljs-keyword">return</span> res.json();
  12263. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12264. <span class="hljs-built_in">console</span>.log(body);
  12265. });
  12266. </code></pre>
  12267. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12268. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12269. headers = {
  12270. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12271. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12272. }
  12273. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12274. <span class="hljs-symbol">params:</span> {
  12275. }, <span class="hljs-symbol">headers:</span> headers
  12276. p JSON.parse(result)
  12277. </code></pre>
  12278. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12279. headers = {
  12280. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12281. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12282. }
  12283. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12284. <span class="hljs-built_in">print</span>(r.json())
  12285. </code></pre>
  12286. <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>);
  12287. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12288. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12289. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12290. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12291. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12292. String inputLine;
  12293. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12294. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12295. response.append(inputLine);
  12296. }
  12297. in.close();
  12298. System.out.println(response.toString());
  12299. </code></pre>
  12300. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12301. <span class="hljs-keyword">import</span> (
  12302. <span class="hljs-string">&quot;bytes&quot;</span>
  12303. <span class="hljs-string">&quot;net/http&quot;</span>
  12304. )
  12305. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12306. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12307. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12308. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12309. }
  12310. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12311. 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)
  12312. req.Header = headers
  12313. client := &amp;http.Client{}
  12314. resp, err := client.Do(req)
  12315. <span class="hljs-comment">// ...</span>
  12316. }
  12317. </code></pre>
  12318. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12319. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12320. );
  12321. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12322. <span class="hljs-comment">// Define array of request body.</span>
  12323. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12324. <span class="hljs-keyword">try</span> {
  12325. <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>(
  12326. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12327. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12328. )
  12329. );
  12330. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12331. }
  12332. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12333. <span class="hljs-comment">// handle exception or api errors.</span>
  12334. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12335. }
  12336. <span class="hljs-comment">// ...</span>
  12337. </code></pre>
  12338. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  12339. <p><em>Get a single integration in board</em></p>
  12340. <h3 id="get_integration-parameters">Parameters</h3>
  12341. <table>
  12342. <thead>
  12343. <tr>
  12344. <th>Name</th>
  12345. <th>In</th>
  12346. <th>Type</th>
  12347. <th>Required</th>
  12348. <th>Description</th>
  12349. </tr>
  12350. </thead>
  12351. <tbody>
  12352. <tr>
  12353. <td>board</td>
  12354. <td>path</td>
  12355. <td>string</td>
  12356. <td>true</td>
  12357. <td>the board ID</td>
  12358. </tr>
  12359. <tr>
  12360. <td>int</td>
  12361. <td>path</td>
  12362. <td>string</td>
  12363. <td>true</td>
  12364. <td>the integration ID</td>
  12365. </tr>
  12366. </tbody>
  12367. </table>
  12368. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12369. <p><strong>board</strong>: the board ID</p>
  12370. <p><strong>int</strong>: the integration ID</p>
  12371. <blockquote>
  12372. <p>Example responses</p>
  12373. </blockquote>
  12374. <blockquote>
  12375. <p>200 Response</p>
  12376. </blockquote>
  12377. <pre class="highlight tab tab-json"><code>{
  12378. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12379. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12380. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12381. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12382. <span class="hljs-string">&quot;string&quot;</span>
  12383. ],
  12384. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12385. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12386. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12387. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12388. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12389. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12390. }
  12391. </code></pre>
  12392. <h3 id="get_integration-responses">Responses</h3>
  12393. <table>
  12394. <thead>
  12395. <tr>
  12396. <th>Status</th>
  12397. <th>Meaning</th>
  12398. <th>Description</th>
  12399. <th>Schema</th>
  12400. </tr>
  12401. </thead>
  12402. <tbody>
  12403. <tr>
  12404. <td>200</td>
  12405. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12406. <td>200 response</td>
  12407. <td><a href="#schemaintegrations">Integrations</a></td>
  12408. </tr>
  12409. </tbody>
  12410. </table>
  12411. <aside class="warning">
  12412. To perform this operation, you must be authenticated by means of one of the following methods:
  12413. UserSecurity
  12414. </aside>
  12415. <h2 id="edit_integration">edit_integration</h2>
  12416. <p><a id="opIdedit_integration"></a></p>
  12417. <blockquote>
  12418. <p>Code samples</p>
  12419. </blockquote>
  12420. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12421. curl -X PUT /api/boards/{board}/integrations/{int} \
  12422. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12423. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12424. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12425. </code></pre>
  12426. <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>
  12427. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12428. Accept: application/json
  12429. </span></code></pre>
  12430. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12431. &quot;enabled&quot;: &quot;string&quot;,
  12432. &quot;title&quot;: &quot;string&quot;,
  12433. &quot;url&quot;: &quot;string&quot;,
  12434. &quot;token&quot;: &quot;string&quot;,
  12435. &quot;activities&quot;: &quot;string&quot;
  12436. }&#x27;</span>;
  12437. <span class="hljs-keyword">const</span> headers = {
  12438. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12439. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12440. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12441. };
  12442. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12443. {
  12444. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  12445. <span class="hljs-attr">body</span>: inputBody,
  12446. <span class="hljs-attr">headers</span>: headers
  12447. })
  12448. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12449. <span class="hljs-keyword">return</span> res.json();
  12450. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12451. <span class="hljs-built_in">console</span>.log(body);
  12452. });
  12453. </code></pre>
  12454. <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>);
  12455. <span class="hljs-keyword">const</span> inputBody = {
  12456. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12457. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12458. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12459. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12460. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12461. };
  12462. <span class="hljs-keyword">const</span> headers = {
  12463. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12464. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12465. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12466. };
  12467. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12468. {
  12469. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  12470. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12471. <span class="hljs-attr">headers</span>: headers
  12472. })
  12473. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12474. <span class="hljs-keyword">return</span> res.json();
  12475. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12476. <span class="hljs-built_in">console</span>.log(body);
  12477. });
  12478. </code></pre>
  12479. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12480. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12481. headers = {
  12482. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12483. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12484. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12485. }
  12486. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12487. <span class="hljs-symbol">params:</span> {
  12488. }, <span class="hljs-symbol">headers:</span> headers
  12489. p JSON.parse(result)
  12490. </code></pre>
  12491. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12492. headers = {
  12493. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12494. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12495. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12496. }
  12497. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12498. <span class="hljs-built_in">print</span>(r.json())
  12499. </code></pre>
  12500. <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>);
  12501. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12502. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  12503. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12504. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12505. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12506. String inputLine;
  12507. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12508. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12509. response.append(inputLine);
  12510. }
  12511. in.close();
  12512. System.out.println(response.toString());
  12513. </code></pre>
  12514. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12515. <span class="hljs-keyword">import</span> (
  12516. <span class="hljs-string">&quot;bytes&quot;</span>
  12517. <span class="hljs-string">&quot;net/http&quot;</span>
  12518. )
  12519. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12520. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12521. <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>},
  12522. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12523. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12524. }
  12525. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12526. 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)
  12527. req.Header = headers
  12528. client := &amp;http.Client{}
  12529. resp, err := client.Do(req)
  12530. <span class="hljs-comment">// ...</span>
  12531. }
  12532. </code></pre>
  12533. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12534. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12535. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12536. );
  12537. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12538. <span class="hljs-comment">// Define array of request body.</span>
  12539. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12540. <span class="hljs-keyword">try</span> {
  12541. <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>(
  12542. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12543. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12544. )
  12545. );
  12546. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12547. }
  12548. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12549. <span class="hljs-comment">// handle exception or api errors.</span>
  12550. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12551. }
  12552. <span class="hljs-comment">// ...</span>
  12553. </code></pre>
  12554. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  12555. <p><em>Edit integration data</em></p>
  12556. <blockquote>
  12557. <p>Body parameter</p>
  12558. </blockquote>
  12559. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  12560. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12561. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12562. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  12563. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12564. </code></pre>
  12565. <h3 id="edit_integration-parameters">Parameters</h3>
  12566. <table>
  12567. <thead>
  12568. <tr>
  12569. <th>Name</th>
  12570. <th>In</th>
  12571. <th>Type</th>
  12572. <th>Required</th>
  12573. <th>Description</th>
  12574. </tr>
  12575. </thead>
  12576. <tbody>
  12577. <tr>
  12578. <td>board</td>
  12579. <td>path</td>
  12580. <td>string</td>
  12581. <td>true</td>
  12582. <td>the board ID</td>
  12583. </tr>
  12584. <tr>
  12585. <td>int</td>
  12586. <td>path</td>
  12587. <td>string</td>
  12588. <td>true</td>
  12589. <td>the integration ID</td>
  12590. </tr>
  12591. <tr>
  12592. <td>body</td>
  12593. <td>body</td>
  12594. <td>object</td>
  12595. <td>false</td>
  12596. <td>none</td>
  12597. </tr>
  12598. <tr>
  12599. <td>» enabled</td>
  12600. <td>body</td>
  12601. <td>string</td>
  12602. <td>false</td>
  12603. <td>is the integration enabled?</td>
  12604. </tr>
  12605. <tr>
  12606. <td>» title</td>
  12607. <td>body</td>
  12608. <td>string</td>
  12609. <td>false</td>
  12610. <td>new name of the integration</td>
  12611. </tr>
  12612. <tr>
  12613. <td>» url</td>
  12614. <td>body</td>
  12615. <td>string</td>
  12616. <td>false</td>
  12617. <td>new URL of the integration</td>
  12618. </tr>
  12619. <tr>
  12620. <td>» token</td>
  12621. <td>body</td>
  12622. <td>string</td>
  12623. <td>false</td>
  12624. <td>new token of the integration</td>
  12625. </tr>
  12626. <tr>
  12627. <td>» activities</td>
  12628. <td>body</td>
  12629. <td>string</td>
  12630. <td>false</td>
  12631. <td>new list of activities of the integration</td>
  12632. </tr>
  12633. </tbody>
  12634. </table>
  12635. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12636. <p><strong>board</strong>: the board ID</p>
  12637. <p><strong>int</strong>: the integration ID</p>
  12638. <blockquote>
  12639. <p>Example responses</p>
  12640. </blockquote>
  12641. <blockquote>
  12642. <p>200 Response</p>
  12643. </blockquote>
  12644. <pre class="highlight tab tab-json"><code>{
  12645. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12646. }
  12647. </code></pre>
  12648. <h3 id="edit_integration-responses">Responses</h3>
  12649. <table>
  12650. <thead>
  12651. <tr>
  12652. <th>Status</th>
  12653. <th>Meaning</th>
  12654. <th>Description</th>
  12655. <th>Schema</th>
  12656. </tr>
  12657. </thead>
  12658. <tbody>
  12659. <tr>
  12660. <td>200</td>
  12661. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12662. <td>200 response</td>
  12663. <td>Inline</td>
  12664. </tr>
  12665. </tbody>
  12666. </table>
  12667. <h3 id="edit_integration-responseschema">Response Schema</h3>
  12668. <p>Status Code <strong>200</strong></p>
  12669. <table>
  12670. <thead>
  12671. <tr>
  12672. <th>Name</th>
  12673. <th>Type</th>
  12674. <th>Required</th>
  12675. <th>Restrictions</th>
  12676. <th>Description</th>
  12677. </tr>
  12678. </thead>
  12679. <tbody>
  12680. <tr>
  12681. <td>» _id</td>
  12682. <td>string</td>
  12683. <td>false</td>
  12684. <td>none</td>
  12685. <td>none</td>
  12686. </tr>
  12687. </tbody>
  12688. </table>
  12689. <aside class="warning">
  12690. To perform this operation, you must be authenticated by means of one of the following methods:
  12691. UserSecurity
  12692. </aside>
  12693. <h2 id="delete_integration">delete_integration</h2>
  12694. <p><a id="opIddelete_integration"></a></p>
  12695. <blockquote>
  12696. <p>Code samples</p>
  12697. </blockquote>
  12698. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12699. curl -X DELETE /api/boards/{board}/integrations/{int} \
  12700. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12701. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12702. </code></pre>
  12703. <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>
  12704. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12705. </span></code></pre>
  12706. <pre class="highlight tab tab-javascript"><code>
  12707. <span class="hljs-keyword">const</span> headers = {
  12708. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12709. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12710. };
  12711. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12712. {
  12713. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12714. <span class="hljs-attr">headers</span>: headers
  12715. })
  12716. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12717. <span class="hljs-keyword">return</span> res.json();
  12718. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12719. <span class="hljs-built_in">console</span>.log(body);
  12720. });
  12721. </code></pre>
  12722. <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>);
  12723. <span class="hljs-keyword">const</span> headers = {
  12724. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12725. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12726. };
  12727. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12728. {
  12729. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12730. <span class="hljs-attr">headers</span>: headers
  12731. })
  12732. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12733. <span class="hljs-keyword">return</span> res.json();
  12734. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12735. <span class="hljs-built_in">console</span>.log(body);
  12736. });
  12737. </code></pre>
  12738. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12739. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12740. headers = {
  12741. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12742. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12743. }
  12744. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12745. <span class="hljs-symbol">params:</span> {
  12746. }, <span class="hljs-symbol">headers:</span> headers
  12747. p JSON.parse(result)
  12748. </code></pre>
  12749. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12750. headers = {
  12751. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12752. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12753. }
  12754. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12755. <span class="hljs-built_in">print</span>(r.json())
  12756. </code></pre>
  12757. <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>);
  12758. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12759. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12760. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12761. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12762. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12763. String inputLine;
  12764. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12765. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12766. response.append(inputLine);
  12767. }
  12768. in.close();
  12769. System.out.println(response.toString());
  12770. </code></pre>
  12771. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12772. <span class="hljs-keyword">import</span> (
  12773. <span class="hljs-string">&quot;bytes&quot;</span>
  12774. <span class="hljs-string">&quot;net/http&quot;</span>
  12775. )
  12776. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12777. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12778. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12779. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12780. }
  12781. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12782. 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)
  12783. req.Header = headers
  12784. client := &amp;http.Client{}
  12785. resp, err := client.Do(req)
  12786. <span class="hljs-comment">// ...</span>
  12787. }
  12788. </code></pre>
  12789. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12790. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12791. );
  12792. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12793. <span class="hljs-comment">// Define array of request body.</span>
  12794. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12795. <span class="hljs-keyword">try</span> {
  12796. <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>(
  12797. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12798. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12799. )
  12800. );
  12801. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12802. }
  12803. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12804. <span class="hljs-comment">// handle exception or api errors.</span>
  12805. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12806. }
  12807. <span class="hljs-comment">// ...</span>
  12808. </code></pre>
  12809. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  12810. <p><em>Delete integration</em></p>
  12811. <h3 id="delete_integration-parameters">Parameters</h3>
  12812. <table>
  12813. <thead>
  12814. <tr>
  12815. <th>Name</th>
  12816. <th>In</th>
  12817. <th>Type</th>
  12818. <th>Required</th>
  12819. <th>Description</th>
  12820. </tr>
  12821. </thead>
  12822. <tbody>
  12823. <tr>
  12824. <td>board</td>
  12825. <td>path</td>
  12826. <td>string</td>
  12827. <td>true</td>
  12828. <td>the board ID</td>
  12829. </tr>
  12830. <tr>
  12831. <td>int</td>
  12832. <td>path</td>
  12833. <td>string</td>
  12834. <td>true</td>
  12835. <td>the integration ID</td>
  12836. </tr>
  12837. </tbody>
  12838. </table>
  12839. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12840. <p><strong>board</strong>: the board ID</p>
  12841. <p><strong>int</strong>: the integration ID</p>
  12842. <blockquote>
  12843. <p>Example responses</p>
  12844. </blockquote>
  12845. <blockquote>
  12846. <p>200 Response</p>
  12847. </blockquote>
  12848. <pre class="highlight tab tab-json"><code>{
  12849. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12850. }
  12851. </code></pre>
  12852. <h3 id="delete_integration-responses">Responses</h3>
  12853. <table>
  12854. <thead>
  12855. <tr>
  12856. <th>Status</th>
  12857. <th>Meaning</th>
  12858. <th>Description</th>
  12859. <th>Schema</th>
  12860. </tr>
  12861. </thead>
  12862. <tbody>
  12863. <tr>
  12864. <td>200</td>
  12865. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12866. <td>200 response</td>
  12867. <td>Inline</td>
  12868. </tr>
  12869. </tbody>
  12870. </table>
  12871. <h3 id="delete_integration-responseschema">Response Schema</h3>
  12872. <p>Status Code <strong>200</strong></p>
  12873. <table>
  12874. <thead>
  12875. <tr>
  12876. <th>Name</th>
  12877. <th>Type</th>
  12878. <th>Required</th>
  12879. <th>Restrictions</th>
  12880. <th>Description</th>
  12881. </tr>
  12882. </thead>
  12883. <tbody>
  12884. <tr>
  12885. <td>» _id</td>
  12886. <td>string</td>
  12887. <td>false</td>
  12888. <td>none</td>
  12889. <td>none</td>
  12890. </tr>
  12891. </tbody>
  12892. </table>
  12893. <aside class="warning">
  12894. To perform this operation, you must be authenticated by means of one of the following methods:
  12895. UserSecurity
  12896. </aside>
  12897. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12898. <p><a id="opIddelete_integration_activities"></a></p>
  12899. <blockquote>
  12900. <p>Code samples</p>
  12901. </blockquote>
  12902. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12903. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12904. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12905. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12906. </code></pre>
  12907. <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>
  12908. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12909. </span></code></pre>
  12910. <pre class="highlight tab tab-javascript"><code>
  12911. <span class="hljs-keyword">const</span> headers = {
  12912. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12913. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12914. };
  12915. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12916. {
  12917. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12918. <span class="hljs-attr">headers</span>: headers
  12919. })
  12920. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12921. <span class="hljs-keyword">return</span> res.json();
  12922. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12923. <span class="hljs-built_in">console</span>.log(body);
  12924. });
  12925. </code></pre>
  12926. <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>);
  12927. <span class="hljs-keyword">const</span> headers = {
  12928. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12929. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12930. };
  12931. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12932. {
  12933. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12934. <span class="hljs-attr">headers</span>: headers
  12935. })
  12936. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12937. <span class="hljs-keyword">return</span> res.json();
  12938. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12939. <span class="hljs-built_in">console</span>.log(body);
  12940. });
  12941. </code></pre>
  12942. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12943. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12944. headers = {
  12945. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12946. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12947. }
  12948. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12949. <span class="hljs-symbol">params:</span> {
  12950. }, <span class="hljs-symbol">headers:</span> headers
  12951. p JSON.parse(result)
  12952. </code></pre>
  12953. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12954. headers = {
  12955. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12956. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12957. }
  12958. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12959. <span class="hljs-built_in">print</span>(r.json())
  12960. </code></pre>
  12961. <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>);
  12962. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12963. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12964. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12965. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12966. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12967. String inputLine;
  12968. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12969. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12970. response.append(inputLine);
  12971. }
  12972. in.close();
  12973. System.out.println(response.toString());
  12974. </code></pre>
  12975. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12976. <span class="hljs-keyword">import</span> (
  12977. <span class="hljs-string">&quot;bytes&quot;</span>
  12978. <span class="hljs-string">&quot;net/http&quot;</span>
  12979. )
  12980. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12981. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12982. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12983. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12984. }
  12985. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12986. 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)
  12987. req.Header = headers
  12988. client := &amp;http.Client{}
  12989. resp, err := client.Do(req)
  12990. <span class="hljs-comment">// ...</span>
  12991. }
  12992. </code></pre>
  12993. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12994. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12995. );
  12996. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12997. <span class="hljs-comment">// Define array of request body.</span>
  12998. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12999. <span class="hljs-keyword">try</span> {
  13000. <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>(
  13001. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13002. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13003. )
  13004. );
  13005. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13006. }
  13007. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13008. <span class="hljs-comment">// handle exception or api errors.</span>
  13009. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13010. }
  13011. <span class="hljs-comment">// ...</span>
  13012. </code></pre>
  13013. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  13014. <p><em>Delete subscribed activities</em></p>
  13015. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  13016. <table>
  13017. <thead>
  13018. <tr>
  13019. <th>Name</th>
  13020. <th>In</th>
  13021. <th>Type</th>
  13022. <th>Required</th>
  13023. <th>Description</th>
  13024. </tr>
  13025. </thead>
  13026. <tbody>
  13027. <tr>
  13028. <td>board</td>
  13029. <td>path</td>
  13030. <td>string</td>
  13031. <td>true</td>
  13032. <td>the board ID</td>
  13033. </tr>
  13034. <tr>
  13035. <td>int</td>
  13036. <td>path</td>
  13037. <td>string</td>
  13038. <td>true</td>
  13039. <td>the integration ID</td>
  13040. </tr>
  13041. </tbody>
  13042. </table>
  13043. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  13044. <p><strong>board</strong>: the board ID</p>
  13045. <p><strong>int</strong>: the integration ID</p>
  13046. <blockquote>
  13047. <p>Example responses</p>
  13048. </blockquote>
  13049. <blockquote>
  13050. <p>200 Response</p>
  13051. </blockquote>
  13052. <pre class="highlight tab tab-json"><code>{
  13053. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13054. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13055. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13056. <span class="hljs-attr">&quot;activities&quot;</span>: [
  13057. <span class="hljs-string">&quot;string&quot;</span>
  13058. ],
  13059. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13060. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13061. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13062. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13063. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13064. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13065. }
  13066. </code></pre>
  13067. <h3 id="delete_integration_activities-responses">Responses</h3>
  13068. <table>
  13069. <thead>
  13070. <tr>
  13071. <th>Status</th>
  13072. <th>Meaning</th>
  13073. <th>Description</th>
  13074. <th>Schema</th>
  13075. </tr>
  13076. </thead>
  13077. <tbody>
  13078. <tr>
  13079. <td>200</td>
  13080. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13081. <td>200 response</td>
  13082. <td><a href="#schemaintegrations">Integrations</a></td>
  13083. </tr>
  13084. </tbody>
  13085. </table>
  13086. <aside class="warning">
  13087. To perform this operation, you must be authenticated by means of one of the following methods:
  13088. UserSecurity
  13089. </aside>
  13090. <h2 id="new_integration_activities">new_integration_activities</h2>
  13091. <p><a id="opIdnew_integration_activities"></a></p>
  13092. <blockquote>
  13093. <p>Code samples</p>
  13094. </blockquote>
  13095. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13096. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  13097. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13098. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13099. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13100. </code></pre>
  13101. <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>
  13102. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13103. Accept: application/json
  13104. </span></code></pre>
  13105. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13106. &quot;activities&quot;: &quot;string&quot;
  13107. }&#x27;</span>;
  13108. <span class="hljs-keyword">const</span> headers = {
  13109. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13110. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13111. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13112. };
  13113. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13114. {
  13115. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13116. <span class="hljs-attr">body</span>: inputBody,
  13117. <span class="hljs-attr">headers</span>: headers
  13118. })
  13119. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13120. <span class="hljs-keyword">return</span> res.json();
  13121. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13122. <span class="hljs-built_in">console</span>.log(body);
  13123. });
  13124. </code></pre>
  13125. <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>);
  13126. <span class="hljs-keyword">const</span> inputBody = {
  13127. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13128. };
  13129. <span class="hljs-keyword">const</span> headers = {
  13130. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13131. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13132. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13133. };
  13134. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13135. {
  13136. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13137. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13138. <span class="hljs-attr">headers</span>: headers
  13139. })
  13140. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13141. <span class="hljs-keyword">return</span> res.json();
  13142. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13143. <span class="hljs-built_in">console</span>.log(body);
  13144. });
  13145. </code></pre>
  13146. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13147. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13148. headers = {
  13149. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13150. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13151. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13152. }
  13153. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  13154. <span class="hljs-symbol">params:</span> {
  13155. }, <span class="hljs-symbol">headers:</span> headers
  13156. p JSON.parse(result)
  13157. </code></pre>
  13158. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13159. headers = {
  13160. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13161. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13162. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13163. }
  13164. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  13165. <span class="hljs-built_in">print</span>(r.json())
  13166. </code></pre>
  13167. <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>);
  13168. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13169. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13170. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13171. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13172. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13173. String inputLine;
  13174. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13175. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13176. response.append(inputLine);
  13177. }
  13178. in.close();
  13179. System.out.println(response.toString());
  13180. </code></pre>
  13181. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13182. <span class="hljs-keyword">import</span> (
  13183. <span class="hljs-string">&quot;bytes&quot;</span>
  13184. <span class="hljs-string">&quot;net/http&quot;</span>
  13185. )
  13186. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13187. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13188. <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>},
  13189. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13190. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13191. }
  13192. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13193. 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)
  13194. req.Header = headers
  13195. client := &amp;http.Client{}
  13196. resp, err := client.Do(req)
  13197. <span class="hljs-comment">// ...</span>
  13198. }
  13199. </code></pre>
  13200. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13201. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13202. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13203. );
  13204. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13205. <span class="hljs-comment">// Define array of request body.</span>
  13206. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13207. <span class="hljs-keyword">try</span> {
  13208. <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>(
  13209. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13210. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13211. )
  13212. );
  13213. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13214. }
  13215. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13216. <span class="hljs-comment">// handle exception or api errors.</span>
  13217. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13218. }
  13219. <span class="hljs-comment">// ...</span>
  13220. </code></pre>
  13221. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  13222. <p><em>Add subscribed activities</em></p>
  13223. <blockquote>
  13224. <p>Body parameter</p>
  13225. </blockquote>
  13226. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  13227. </code></pre>
  13228. <h3 id="new_integration_activities-parameters">Parameters</h3>
  13229. <table>
  13230. <thead>
  13231. <tr>
  13232. <th>Name</th>
  13233. <th>In</th>
  13234. <th>Type</th>
  13235. <th>Required</th>
  13236. <th>Description</th>
  13237. </tr>
  13238. </thead>
  13239. <tbody>
  13240. <tr>
  13241. <td>board</td>
  13242. <td>path</td>
  13243. <td>string</td>
  13244. <td>true</td>
  13245. <td>the board ID</td>
  13246. </tr>
  13247. <tr>
  13248. <td>int</td>
  13249. <td>path</td>
  13250. <td>string</td>
  13251. <td>true</td>
  13252. <td>the integration ID</td>
  13253. </tr>
  13254. <tr>
  13255. <td>body</td>
  13256. <td>body</td>
  13257. <td>object</td>
  13258. <td>true</td>
  13259. <td>none</td>
  13260. </tr>
  13261. <tr>
  13262. <td>» activities</td>
  13263. <td>body</td>
  13264. <td>string</td>
  13265. <td>true</td>
  13266. <td>the activities value</td>
  13267. </tr>
  13268. </tbody>
  13269. </table>
  13270. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13271. <p><strong>board</strong>: the board ID</p>
  13272. <p><strong>int</strong>: the integration ID</p>
  13273. <blockquote>
  13274. <p>Example responses</p>
  13275. </blockquote>
  13276. <blockquote>
  13277. <p>200 Response</p>
  13278. </blockquote>
  13279. <pre class="highlight tab tab-json"><code>{
  13280. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13281. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13282. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13283. <span class="hljs-attr">&quot;activities&quot;</span>: [
  13284. <span class="hljs-string">&quot;string&quot;</span>
  13285. ],
  13286. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13287. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13288. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13289. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13290. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13291. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13292. }
  13293. </code></pre>
  13294. <h3 id="new_integration_activities-responses">Responses</h3>
  13295. <table>
  13296. <thead>
  13297. <tr>
  13298. <th>Status</th>
  13299. <th>Meaning</th>
  13300. <th>Description</th>
  13301. <th>Schema</th>
  13302. </tr>
  13303. </thead>
  13304. <tbody>
  13305. <tr>
  13306. <td>200</td>
  13307. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13308. <td>200 response</td>
  13309. <td><a href="#schemaintegrations">Integrations</a></td>
  13310. </tr>
  13311. </tbody>
  13312. </table>
  13313. <aside class="warning">
  13314. To perform this operation, you must be authenticated by means of one of the following methods:
  13315. UserSecurity
  13316. </aside>
  13317. <h1 id="wekan-rest-api-lists">Lists</h1>
  13318. <h2 id="get_all_lists">get_all_lists</h2>
  13319. <p><a id="opIdget_all_lists"></a></p>
  13320. <blockquote>
  13321. <p>Code samples</p>
  13322. </blockquote>
  13323. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13324. curl -X GET /api/boards/{board}/lists \
  13325. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13326. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13327. </code></pre>
  13328. <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>
  13329. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13330. </span></code></pre>
  13331. <pre class="highlight tab tab-javascript"><code>
  13332. <span class="hljs-keyword">const</span> headers = {
  13333. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13334. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13335. };
  13336. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13337. {
  13338. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13339. <span class="hljs-attr">headers</span>: headers
  13340. })
  13341. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13342. <span class="hljs-keyword">return</span> res.json();
  13343. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13344. <span class="hljs-built_in">console</span>.log(body);
  13345. });
  13346. </code></pre>
  13347. <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>);
  13348. <span class="hljs-keyword">const</span> headers = {
  13349. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13350. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13351. };
  13352. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13353. {
  13354. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13355. <span class="hljs-attr">headers</span>: headers
  13356. })
  13357. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13358. <span class="hljs-keyword">return</span> res.json();
  13359. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13360. <span class="hljs-built_in">console</span>.log(body);
  13361. });
  13362. </code></pre>
  13363. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13364. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13365. headers = {
  13366. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13367. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13368. }
  13369. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13370. <span class="hljs-symbol">params:</span> {
  13371. }, <span class="hljs-symbol">headers:</span> headers
  13372. p JSON.parse(result)
  13373. </code></pre>
  13374. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13375. headers = {
  13376. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13377. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13378. }
  13379. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  13380. <span class="hljs-built_in">print</span>(r.json())
  13381. </code></pre>
  13382. <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>);
  13383. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13384. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  13385. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13386. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13387. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13388. String inputLine;
  13389. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13390. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13391. response.append(inputLine);
  13392. }
  13393. in.close();
  13394. System.out.println(response.toString());
  13395. </code></pre>
  13396. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13397. <span class="hljs-keyword">import</span> (
  13398. <span class="hljs-string">&quot;bytes&quot;</span>
  13399. <span class="hljs-string">&quot;net/http&quot;</span>
  13400. )
  13401. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13402. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13403. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13404. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13405. }
  13406. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13407. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  13408. req.Header = headers
  13409. client := &amp;http.Client{}
  13410. resp, err := client.Do(req)
  13411. <span class="hljs-comment">// ...</span>
  13412. }
  13413. </code></pre>
  13414. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13415. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13416. );
  13417. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13418. <span class="hljs-comment">// Define array of request body.</span>
  13419. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13420. <span class="hljs-keyword">try</span> {
  13421. <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>(
  13422. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13423. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13424. )
  13425. );
  13426. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13427. }
  13428. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13429. <span class="hljs-comment">// handle exception or api errors.</span>
  13430. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13431. }
  13432. <span class="hljs-comment">// ...</span>
  13433. </code></pre>
  13434. <p><code>GET /api/boards/{board}/lists</code></p>
  13435. <p><em>Get the list of Lists attached to a board</em></p>
  13436. <h3 id="get_all_lists-parameters">Parameters</h3>
  13437. <table>
  13438. <thead>
  13439. <tr>
  13440. <th>Name</th>
  13441. <th>In</th>
  13442. <th>Type</th>
  13443. <th>Required</th>
  13444. <th>Description</th>
  13445. </tr>
  13446. </thead>
  13447. <tbody>
  13448. <tr>
  13449. <td>board</td>
  13450. <td>path</td>
  13451. <td>string</td>
  13452. <td>true</td>
  13453. <td>the board ID</td>
  13454. </tr>
  13455. </tbody>
  13456. </table>
  13457. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13458. <p><strong>board</strong>: the board ID</p>
  13459. <blockquote>
  13460. <p>Example responses</p>
  13461. </blockquote>
  13462. <blockquote>
  13463. <p>200 Response</p>
  13464. </blockquote>
  13465. <pre class="highlight tab tab-json"><code>[
  13466. {
  13467. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13468. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13469. }
  13470. ]
  13471. </code></pre>
  13472. <h3 id="get_all_lists-responses">Responses</h3>
  13473. <table>
  13474. <thead>
  13475. <tr>
  13476. <th>Status</th>
  13477. <th>Meaning</th>
  13478. <th>Description</th>
  13479. <th>Schema</th>
  13480. </tr>
  13481. </thead>
  13482. <tbody>
  13483. <tr>
  13484. <td>200</td>
  13485. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13486. <td>200 response</td>
  13487. <td>Inline</td>
  13488. </tr>
  13489. </tbody>
  13490. </table>
  13491. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  13492. <p>Status Code <strong>200</strong></p>
  13493. <table>
  13494. <thead>
  13495. <tr>
  13496. <th>Name</th>
  13497. <th>Type</th>
  13498. <th>Required</th>
  13499. <th>Restrictions</th>
  13500. <th>Description</th>
  13501. </tr>
  13502. </thead>
  13503. <tbody>
  13504. <tr>
  13505. <td>» _id</td>
  13506. <td>string</td>
  13507. <td>false</td>
  13508. <td>none</td>
  13509. <td>none</td>
  13510. </tr>
  13511. <tr>
  13512. <td>» title</td>
  13513. <td>string</td>
  13514. <td>false</td>
  13515. <td>none</td>
  13516. <td>none</td>
  13517. </tr>
  13518. </tbody>
  13519. </table>
  13520. <aside class="warning">
  13521. To perform this operation, you must be authenticated by means of one of the following methods:
  13522. UserSecurity
  13523. </aside>
  13524. <h2 id="new_list">new_list</h2>
  13525. <p><a id="opIdnew_list"></a></p>
  13526. <blockquote>
  13527. <p>Code samples</p>
  13528. </blockquote>
  13529. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13530. curl -X POST /api/boards/{board}/lists \
  13531. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13532. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13533. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13534. </code></pre>
  13535. <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>
  13536. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13537. Accept: application/json
  13538. </span></code></pre>
  13539. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13540. &quot;title&quot;: &quot;string&quot;
  13541. }&#x27;</span>;
  13542. <span class="hljs-keyword">const</span> headers = {
  13543. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13544. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13545. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13546. };
  13547. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13548. {
  13549. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13550. <span class="hljs-attr">body</span>: inputBody,
  13551. <span class="hljs-attr">headers</span>: headers
  13552. })
  13553. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13554. <span class="hljs-keyword">return</span> res.json();
  13555. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13556. <span class="hljs-built_in">console</span>.log(body);
  13557. });
  13558. </code></pre>
  13559. <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>);
  13560. <span class="hljs-keyword">const</span> inputBody = {
  13561. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13562. };
  13563. <span class="hljs-keyword">const</span> headers = {
  13564. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13565. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13566. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13567. };
  13568. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13569. {
  13570. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13571. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13572. <span class="hljs-attr">headers</span>: headers
  13573. })
  13574. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13575. <span class="hljs-keyword">return</span> res.json();
  13576. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13577. <span class="hljs-built_in">console</span>.log(body);
  13578. });
  13579. </code></pre>
  13580. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13581. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13582. headers = {
  13583. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13584. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13585. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13586. }
  13587. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13588. <span class="hljs-symbol">params:</span> {
  13589. }, <span class="hljs-symbol">headers:</span> headers
  13590. p JSON.parse(result)
  13591. </code></pre>
  13592. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13593. headers = {
  13594. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13595. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13596. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13597. }
  13598. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  13599. <span class="hljs-built_in">print</span>(r.json())
  13600. </code></pre>
  13601. <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>);
  13602. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13603. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13604. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13605. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13606. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13607. String inputLine;
  13608. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13609. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13610. response.append(inputLine);
  13611. }
  13612. in.close();
  13613. System.out.println(response.toString());
  13614. </code></pre>
  13615. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13616. <span class="hljs-keyword">import</span> (
  13617. <span class="hljs-string">&quot;bytes&quot;</span>
  13618. <span class="hljs-string">&quot;net/http&quot;</span>
  13619. )
  13620. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13621. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13622. <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>},
  13623. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13624. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13625. }
  13626. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13627. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  13628. req.Header = headers
  13629. client := &amp;http.Client{}
  13630. resp, err := client.Do(req)
  13631. <span class="hljs-comment">// ...</span>
  13632. }
  13633. </code></pre>
  13634. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13635. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13636. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13637. );
  13638. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13639. <span class="hljs-comment">// Define array of request body.</span>
  13640. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13641. <span class="hljs-keyword">try</span> {
  13642. <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>(
  13643. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13644. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13645. )
  13646. );
  13647. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13648. }
  13649. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13650. <span class="hljs-comment">// handle exception or api errors.</span>
  13651. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13652. }
  13653. <span class="hljs-comment">// ...</span>
  13654. </code></pre>
  13655. <p><code>POST /api/boards/{board}/lists</code></p>
  13656. <p><em>Add a List to a board</em></p>
  13657. <blockquote>
  13658. <p>Body parameter</p>
  13659. </blockquote>
  13660. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13661. </code></pre>
  13662. <h3 id="new_list-parameters">Parameters</h3>
  13663. <table>
  13664. <thead>
  13665. <tr>
  13666. <th>Name</th>
  13667. <th>In</th>
  13668. <th>Type</th>
  13669. <th>Required</th>
  13670. <th>Description</th>
  13671. </tr>
  13672. </thead>
  13673. <tbody>
  13674. <tr>
  13675. <td>board</td>
  13676. <td>path</td>
  13677. <td>string</td>
  13678. <td>true</td>
  13679. <td>the board ID</td>
  13680. </tr>
  13681. <tr>
  13682. <td>body</td>
  13683. <td>body</td>
  13684. <td>object</td>
  13685. <td>true</td>
  13686. <td>none</td>
  13687. </tr>
  13688. <tr>
  13689. <td>» title</td>
  13690. <td>body</td>
  13691. <td>string</td>
  13692. <td>true</td>
  13693. <td>the title of the List</td>
  13694. </tr>
  13695. </tbody>
  13696. </table>
  13697. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13698. <p><strong>board</strong>: the board ID</p>
  13699. <blockquote>
  13700. <p>Example responses</p>
  13701. </blockquote>
  13702. <blockquote>
  13703. <p>200 Response</p>
  13704. </blockquote>
  13705. <pre class="highlight tab tab-json"><code>{
  13706. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13707. }
  13708. </code></pre>
  13709. <h3 id="new_list-responses">Responses</h3>
  13710. <table>
  13711. <thead>
  13712. <tr>
  13713. <th>Status</th>
  13714. <th>Meaning</th>
  13715. <th>Description</th>
  13716. <th>Schema</th>
  13717. </tr>
  13718. </thead>
  13719. <tbody>
  13720. <tr>
  13721. <td>200</td>
  13722. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13723. <td>200 response</td>
  13724. <td>Inline</td>
  13725. </tr>
  13726. </tbody>
  13727. </table>
  13728. <h3 id="new_list-responseschema">Response Schema</h3>
  13729. <p>Status Code <strong>200</strong></p>
  13730. <table>
  13731. <thead>
  13732. <tr>
  13733. <th>Name</th>
  13734. <th>Type</th>
  13735. <th>Required</th>
  13736. <th>Restrictions</th>
  13737. <th>Description</th>
  13738. </tr>
  13739. </thead>
  13740. <tbody>
  13741. <tr>
  13742. <td>» _id</td>
  13743. <td>string</td>
  13744. <td>false</td>
  13745. <td>none</td>
  13746. <td>none</td>
  13747. </tr>
  13748. </tbody>
  13749. </table>
  13750. <aside class="warning">
  13751. To perform this operation, you must be authenticated by means of one of the following methods:
  13752. UserSecurity
  13753. </aside>
  13754. <h2 id="get_list">get_list</h2>
  13755. <p><a id="opIdget_list"></a></p>
  13756. <blockquote>
  13757. <p>Code samples</p>
  13758. </blockquote>
  13759. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13760. curl -X GET /api/boards/{board}/lists/{list} \
  13761. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13762. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13763. </code></pre>
  13764. <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>
  13765. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13766. </span></code></pre>
  13767. <pre class="highlight tab tab-javascript"><code>
  13768. <span class="hljs-keyword">const</span> headers = {
  13769. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13770. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13771. };
  13772. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13773. {
  13774. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13775. <span class="hljs-attr">headers</span>: headers
  13776. })
  13777. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13778. <span class="hljs-keyword">return</span> res.json();
  13779. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13780. <span class="hljs-built_in">console</span>.log(body);
  13781. });
  13782. </code></pre>
  13783. <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>);
  13784. <span class="hljs-keyword">const</span> headers = {
  13785. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13786. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13787. };
  13788. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13789. {
  13790. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13791. <span class="hljs-attr">headers</span>: headers
  13792. })
  13793. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13794. <span class="hljs-keyword">return</span> res.json();
  13795. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13796. <span class="hljs-built_in">console</span>.log(body);
  13797. });
  13798. </code></pre>
  13799. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13800. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13801. headers = {
  13802. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13803. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13804. }
  13805. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13806. <span class="hljs-symbol">params:</span> {
  13807. }, <span class="hljs-symbol">headers:</span> headers
  13808. p JSON.parse(result)
  13809. </code></pre>
  13810. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13811. headers = {
  13812. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13813. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13814. }
  13815. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13816. <span class="hljs-built_in">print</span>(r.json())
  13817. </code></pre>
  13818. <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>);
  13819. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13820. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  13821. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13822. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13823. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13824. String inputLine;
  13825. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13826. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13827. response.append(inputLine);
  13828. }
  13829. in.close();
  13830. System.out.println(response.toString());
  13831. </code></pre>
  13832. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13833. <span class="hljs-keyword">import</span> (
  13834. <span class="hljs-string">&quot;bytes&quot;</span>
  13835. <span class="hljs-string">&quot;net/http&quot;</span>
  13836. )
  13837. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13838. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13839. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13840. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13841. }
  13842. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13843. 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)
  13844. req.Header = headers
  13845. client := &amp;http.Client{}
  13846. resp, err := client.Do(req)
  13847. <span class="hljs-comment">// ...</span>
  13848. }
  13849. </code></pre>
  13850. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13851. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13852. );
  13853. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13854. <span class="hljs-comment">// Define array of request body.</span>
  13855. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13856. <span class="hljs-keyword">try</span> {
  13857. <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>(
  13858. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13859. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13860. )
  13861. );
  13862. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13863. }
  13864. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13865. <span class="hljs-comment">// handle exception or api errors.</span>
  13866. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13867. }
  13868. <span class="hljs-comment">// ...</span>
  13869. </code></pre>
  13870. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  13871. <p><em>Get a List attached to a board</em></p>
  13872. <h3 id="get_list-parameters">Parameters</h3>
  13873. <table>
  13874. <thead>
  13875. <tr>
  13876. <th>Name</th>
  13877. <th>In</th>
  13878. <th>Type</th>
  13879. <th>Required</th>
  13880. <th>Description</th>
  13881. </tr>
  13882. </thead>
  13883. <tbody>
  13884. <tr>
  13885. <td>board</td>
  13886. <td>path</td>
  13887. <td>string</td>
  13888. <td>true</td>
  13889. <td>the board ID</td>
  13890. </tr>
  13891. <tr>
  13892. <td>list</td>
  13893. <td>path</td>
  13894. <td>string</td>
  13895. <td>true</td>
  13896. <td>the List ID</td>
  13897. </tr>
  13898. </tbody>
  13899. </table>
  13900. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13901. <p><strong>board</strong>: the board ID</p>
  13902. <p><strong>list</strong>: the List ID</p>
  13903. <blockquote>
  13904. <p>Example responses</p>
  13905. </blockquote>
  13906. <blockquote>
  13907. <p>200 Response</p>
  13908. </blockquote>
  13909. <pre class="highlight tab tab-json"><code>{
  13910. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13911. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  13912. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  13913. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13914. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13915. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13916. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13917. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  13918. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13919. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13920. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  13921. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  13922. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13923. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  13924. },
  13925. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  13926. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13927. }
  13928. </code></pre>
  13929. <h3 id="get_list-responses">Responses</h3>
  13930. <table>
  13931. <thead>
  13932. <tr>
  13933. <th>Status</th>
  13934. <th>Meaning</th>
  13935. <th>Description</th>
  13936. <th>Schema</th>
  13937. </tr>
  13938. </thead>
  13939. <tbody>
  13940. <tr>
  13941. <td>200</td>
  13942. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13943. <td>200 response</td>
  13944. <td><a href="#schemalists">Lists</a></td>
  13945. </tr>
  13946. </tbody>
  13947. </table>
  13948. <aside class="warning">
  13949. To perform this operation, you must be authenticated by means of one of the following methods:
  13950. UserSecurity
  13951. </aside>
  13952. <h2 id="delete_list">delete_list</h2>
  13953. <p><a id="opIddelete_list"></a></p>
  13954. <blockquote>
  13955. <p>Code samples</p>
  13956. </blockquote>
  13957. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13958. curl -X DELETE /api/boards/{board}/lists/{list} \
  13959. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13960. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13961. </code></pre>
  13962. <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>
  13963. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13964. </span></code></pre>
  13965. <pre class="highlight tab tab-javascript"><code>
  13966. <span class="hljs-keyword">const</span> headers = {
  13967. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13968. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13969. };
  13970. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13971. {
  13972. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13973. <span class="hljs-attr">headers</span>: headers
  13974. })
  13975. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13976. <span class="hljs-keyword">return</span> res.json();
  13977. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13978. <span class="hljs-built_in">console</span>.log(body);
  13979. });
  13980. </code></pre>
  13981. <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>);
  13982. <span class="hljs-keyword">const</span> headers = {
  13983. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13984. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13985. };
  13986. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13987. {
  13988. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13989. <span class="hljs-attr">headers</span>: headers
  13990. })
  13991. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13992. <span class="hljs-keyword">return</span> res.json();
  13993. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13994. <span class="hljs-built_in">console</span>.log(body);
  13995. });
  13996. </code></pre>
  13997. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13998. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13999. headers = {
  14000. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14001. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14002. }
  14003. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  14004. <span class="hljs-symbol">params:</span> {
  14005. }, <span class="hljs-symbol">headers:</span> headers
  14006. p JSON.parse(result)
  14007. </code></pre>
  14008. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14009. headers = {
  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. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  14014. <span class="hljs-built_in">print</span>(r.json())
  14015. </code></pre>
  14016. <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>);
  14017. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14018. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  14019. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14020. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14021. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14022. String inputLine;
  14023. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14024. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14025. response.append(inputLine);
  14026. }
  14027. in.close();
  14028. System.out.println(response.toString());
  14029. </code></pre>
  14030. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14031. <span class="hljs-keyword">import</span> (
  14032. <span class="hljs-string">&quot;bytes&quot;</span>
  14033. <span class="hljs-string">&quot;net/http&quot;</span>
  14034. )
  14035. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14036. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14037. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14038. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14039. }
  14040. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14041. 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)
  14042. req.Header = headers
  14043. client := &amp;http.Client{}
  14044. resp, err := client.Do(req)
  14045. <span class="hljs-comment">// ...</span>
  14046. }
  14047. </code></pre>
  14048. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14049. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14050. );
  14051. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14052. <span class="hljs-comment">// Define array of request body.</span>
  14053. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14054. <span class="hljs-keyword">try</span> {
  14055. <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>(
  14056. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14057. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14058. )
  14059. );
  14060. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14061. }
  14062. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14063. <span class="hljs-comment">// handle exception or api errors.</span>
  14064. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14065. }
  14066. <span class="hljs-comment">// ...</span>
  14067. </code></pre>
  14068. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  14069. <p><em>Delete a List</em></p>
  14070. <p>This <strong>deletes</strong> a list from a board.
  14071. The list is not put in the recycle bin.</p>
  14072. <h3 id="delete_list-parameters">Parameters</h3>
  14073. <table>
  14074. <thead>
  14075. <tr>
  14076. <th>Name</th>
  14077. <th>In</th>
  14078. <th>Type</th>
  14079. <th>Required</th>
  14080. <th>Description</th>
  14081. </tr>
  14082. </thead>
  14083. <tbody>
  14084. <tr>
  14085. <td>board</td>
  14086. <td>path</td>
  14087. <td>string</td>
  14088. <td>true</td>
  14089. <td>the board ID</td>
  14090. </tr>
  14091. <tr>
  14092. <td>list</td>
  14093. <td>path</td>
  14094. <td>string</td>
  14095. <td>true</td>
  14096. <td>the ID of the list to remove</td>
  14097. </tr>
  14098. </tbody>
  14099. </table>
  14100. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14101. <p><strong>board</strong>: the board ID</p>
  14102. <p><strong>list</strong>: the ID of the list to remove</p>
  14103. <blockquote>
  14104. <p>Example responses</p>
  14105. </blockquote>
  14106. <blockquote>
  14107. <p>200 Response</p>
  14108. </blockquote>
  14109. <pre class="highlight tab tab-json"><code>{
  14110. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14111. }
  14112. </code></pre>
  14113. <h3 id="delete_list-responses">Responses</h3>
  14114. <table>
  14115. <thead>
  14116. <tr>
  14117. <th>Status</th>
  14118. <th>Meaning</th>
  14119. <th>Description</th>
  14120. <th>Schema</th>
  14121. </tr>
  14122. </thead>
  14123. <tbody>
  14124. <tr>
  14125. <td>200</td>
  14126. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14127. <td>200 response</td>
  14128. <td>Inline</td>
  14129. </tr>
  14130. </tbody>
  14131. </table>
  14132. <h3 id="delete_list-responseschema">Response Schema</h3>
  14133. <p>Status Code <strong>200</strong></p>
  14134. <table>
  14135. <thead>
  14136. <tr>
  14137. <th>Name</th>
  14138. <th>Type</th>
  14139. <th>Required</th>
  14140. <th>Restrictions</th>
  14141. <th>Description</th>
  14142. </tr>
  14143. </thead>
  14144. <tbody>
  14145. <tr>
  14146. <td>» _id</td>
  14147. <td>string</td>
  14148. <td>false</td>
  14149. <td>none</td>
  14150. <td>none</td>
  14151. </tr>
  14152. </tbody>
  14153. </table>
  14154. <aside class="warning">
  14155. To perform this operation, you must be authenticated by means of one of the following methods:
  14156. UserSecurity
  14157. </aside>
  14158. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  14159. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  14160. <p><a id="opIdget_all_swimlanes"></a></p>
  14161. <blockquote>
  14162. <p>Code samples</p>
  14163. </blockquote>
  14164. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14165. curl -X GET /api/boards/{board}/swimlanes \
  14166. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14167. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14168. </code></pre>
  14169. <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>
  14170. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14171. </span></code></pre>
  14172. <pre class="highlight tab tab-javascript"><code>
  14173. <span class="hljs-keyword">const</span> headers = {
  14174. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14175. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14176. };
  14177. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14178. {
  14179. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14180. <span class="hljs-attr">headers</span>: headers
  14181. })
  14182. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14183. <span class="hljs-keyword">return</span> res.json();
  14184. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14185. <span class="hljs-built_in">console</span>.log(body);
  14186. });
  14187. </code></pre>
  14188. <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>);
  14189. <span class="hljs-keyword">const</span> headers = {
  14190. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14191. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14192. };
  14193. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14194. {
  14195. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14196. <span class="hljs-attr">headers</span>: headers
  14197. })
  14198. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14199. <span class="hljs-keyword">return</span> res.json();
  14200. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14201. <span class="hljs-built_in">console</span>.log(body);
  14202. });
  14203. </code></pre>
  14204. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14205. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14206. headers = {
  14207. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14208. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14209. }
  14210. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14211. <span class="hljs-symbol">params:</span> {
  14212. }, <span class="hljs-symbol">headers:</span> headers
  14213. p JSON.parse(result)
  14214. </code></pre>
  14215. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14216. headers = {
  14217. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14218. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14219. }
  14220. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  14221. <span class="hljs-built_in">print</span>(r.json())
  14222. </code></pre>
  14223. <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>);
  14224. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14225. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14226. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14227. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14228. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14229. String inputLine;
  14230. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14231. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14232. response.append(inputLine);
  14233. }
  14234. in.close();
  14235. System.out.println(response.toString());
  14236. </code></pre>
  14237. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14238. <span class="hljs-keyword">import</span> (
  14239. <span class="hljs-string">&quot;bytes&quot;</span>
  14240. <span class="hljs-string">&quot;net/http&quot;</span>
  14241. )
  14242. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14243. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14244. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14245. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14246. }
  14247. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14248. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  14249. req.Header = headers
  14250. client := &amp;http.Client{}
  14251. resp, err := client.Do(req)
  14252. <span class="hljs-comment">// ...</span>
  14253. }
  14254. </code></pre>
  14255. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14256. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14257. );
  14258. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14259. <span class="hljs-comment">// Define array of request body.</span>
  14260. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14261. <span class="hljs-keyword">try</span> {
  14262. <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>(
  14263. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14264. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14265. )
  14266. );
  14267. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14268. }
  14269. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14270. <span class="hljs-comment">// handle exception or api errors.</span>
  14271. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14272. }
  14273. <span class="hljs-comment">// ...</span>
  14274. </code></pre>
  14275. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  14276. <p><em>Get the list of swimlanes attached to a board</em></p>
  14277. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  14278. <table>
  14279. <thead>
  14280. <tr>
  14281. <th>Name</th>
  14282. <th>In</th>
  14283. <th>Type</th>
  14284. <th>Required</th>
  14285. <th>Description</th>
  14286. </tr>
  14287. </thead>
  14288. <tbody>
  14289. <tr>
  14290. <td>board</td>
  14291. <td>path</td>
  14292. <td>string</td>
  14293. <td>true</td>
  14294. <td>the ID of the board</td>
  14295. </tr>
  14296. </tbody>
  14297. </table>
  14298. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  14299. <p><strong>board</strong>: the ID of the board</p>
  14300. <blockquote>
  14301. <p>Example responses</p>
  14302. </blockquote>
  14303. <blockquote>
  14304. <p>200 Response</p>
  14305. </blockquote>
  14306. <pre class="highlight tab tab-json"><code>[
  14307. {
  14308. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14309. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14310. }
  14311. ]
  14312. </code></pre>
  14313. <h3 id="get_all_swimlanes-responses">Responses</h3>
  14314. <table>
  14315. <thead>
  14316. <tr>
  14317. <th>Status</th>
  14318. <th>Meaning</th>
  14319. <th>Description</th>
  14320. <th>Schema</th>
  14321. </tr>
  14322. </thead>
  14323. <tbody>
  14324. <tr>
  14325. <td>200</td>
  14326. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14327. <td>200 response</td>
  14328. <td>Inline</td>
  14329. </tr>
  14330. </tbody>
  14331. </table>
  14332. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  14333. <p>Status Code <strong>200</strong></p>
  14334. <table>
  14335. <thead>
  14336. <tr>
  14337. <th>Name</th>
  14338. <th>Type</th>
  14339. <th>Required</th>
  14340. <th>Restrictions</th>
  14341. <th>Description</th>
  14342. </tr>
  14343. </thead>
  14344. <tbody>
  14345. <tr>
  14346. <td>» _id</td>
  14347. <td>string</td>
  14348. <td>false</td>
  14349. <td>none</td>
  14350. <td>none</td>
  14351. </tr>
  14352. <tr>
  14353. <td>» title</td>
  14354. <td>string</td>
  14355. <td>false</td>
  14356. <td>none</td>
  14357. <td>none</td>
  14358. </tr>
  14359. </tbody>
  14360. </table>
  14361. <aside class="warning">
  14362. To perform this operation, you must be authenticated by means of one of the following methods:
  14363. UserSecurity
  14364. </aside>
  14365. <h2 id="new_swimlane">new_swimlane</h2>
  14366. <p><a id="opIdnew_swimlane"></a></p>
  14367. <blockquote>
  14368. <p>Code samples</p>
  14369. </blockquote>
  14370. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14371. curl -X POST /api/boards/{board}/swimlanes \
  14372. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14373. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14374. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14375. </code></pre>
  14376. <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>
  14377. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14378. Accept: application/json
  14379. </span></code></pre>
  14380. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14381. &quot;title&quot;: &quot;string&quot;
  14382. }&#x27;</span>;
  14383. <span class="hljs-keyword">const</span> headers = {
  14384. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14385. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14386. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14387. };
  14388. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14389. {
  14390. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14391. <span class="hljs-attr">body</span>: inputBody,
  14392. <span class="hljs-attr">headers</span>: headers
  14393. })
  14394. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14395. <span class="hljs-keyword">return</span> res.json();
  14396. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14397. <span class="hljs-built_in">console</span>.log(body);
  14398. });
  14399. </code></pre>
  14400. <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>);
  14401. <span class="hljs-keyword">const</span> inputBody = {
  14402. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14403. };
  14404. <span class="hljs-keyword">const</span> headers = {
  14405. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14406. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14407. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14408. };
  14409. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14410. {
  14411. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14412. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14413. <span class="hljs-attr">headers</span>: headers
  14414. })
  14415. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14416. <span class="hljs-keyword">return</span> res.json();
  14417. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14418. <span class="hljs-built_in">console</span>.log(body);
  14419. });
  14420. </code></pre>
  14421. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14422. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14423. headers = {
  14424. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14425. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14426. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14427. }
  14428. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  14429. <span class="hljs-symbol">params:</span> {
  14430. }, <span class="hljs-symbol">headers:</span> headers
  14431. p JSON.parse(result)
  14432. </code></pre>
  14433. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14434. headers = {
  14435. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14436. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14437. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14438. }
  14439. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  14440. <span class="hljs-built_in">print</span>(r.json())
  14441. </code></pre>
  14442. <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>);
  14443. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14444. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14445. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14446. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14447. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14448. String inputLine;
  14449. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14450. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14451. response.append(inputLine);
  14452. }
  14453. in.close();
  14454. System.out.println(response.toString());
  14455. </code></pre>
  14456. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14457. <span class="hljs-keyword">import</span> (
  14458. <span class="hljs-string">&quot;bytes&quot;</span>
  14459. <span class="hljs-string">&quot;net/http&quot;</span>
  14460. )
  14461. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14462. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14463. <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>},
  14464. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14465. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14466. }
  14467. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14468. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  14469. req.Header = headers
  14470. client := &amp;http.Client{}
  14471. resp, err := client.Do(req)
  14472. <span class="hljs-comment">// ...</span>
  14473. }
  14474. </code></pre>
  14475. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14476. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14477. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14478. );
  14479. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14480. <span class="hljs-comment">// Define array of request body.</span>
  14481. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14482. <span class="hljs-keyword">try</span> {
  14483. <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>(
  14484. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14485. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14486. )
  14487. );
  14488. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14489. }
  14490. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14491. <span class="hljs-comment">// handle exception or api errors.</span>
  14492. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14493. }
  14494. <span class="hljs-comment">// ...</span>
  14495. </code></pre>
  14496. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  14497. <p><em>Add a swimlane to a board</em></p>
  14498. <blockquote>
  14499. <p>Body parameter</p>
  14500. </blockquote>
  14501. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  14502. </code></pre>
  14503. <h3 id="new_swimlane-parameters">Parameters</h3>
  14504. <table>
  14505. <thead>
  14506. <tr>
  14507. <th>Name</th>
  14508. <th>In</th>
  14509. <th>Type</th>
  14510. <th>Required</th>
  14511. <th>Description</th>
  14512. </tr>
  14513. </thead>
  14514. <tbody>
  14515. <tr>
  14516. <td>board</td>
  14517. <td>path</td>
  14518. <td>string</td>
  14519. <td>true</td>
  14520. <td>the ID of the board</td>
  14521. </tr>
  14522. <tr>
  14523. <td>body</td>
  14524. <td>body</td>
  14525. <td>object</td>
  14526. <td>true</td>
  14527. <td>none</td>
  14528. </tr>
  14529. <tr>
  14530. <td>» title</td>
  14531. <td>body</td>
  14532. <td>string</td>
  14533. <td>true</td>
  14534. <td>the new title of the swimlane</td>
  14535. </tr>
  14536. </tbody>
  14537. </table>
  14538. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  14539. <p><strong>board</strong>: the ID of the board</p>
  14540. <blockquote>
  14541. <p>Example responses</p>
  14542. </blockquote>
  14543. <blockquote>
  14544. <p>200 Response</p>
  14545. </blockquote>
  14546. <pre class="highlight tab tab-json"><code>{
  14547. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14548. }
  14549. </code></pre>
  14550. <h3 id="new_swimlane-responses">Responses</h3>
  14551. <table>
  14552. <thead>
  14553. <tr>
  14554. <th>Status</th>
  14555. <th>Meaning</th>
  14556. <th>Description</th>
  14557. <th>Schema</th>
  14558. </tr>
  14559. </thead>
  14560. <tbody>
  14561. <tr>
  14562. <td>200</td>
  14563. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14564. <td>200 response</td>
  14565. <td>Inline</td>
  14566. </tr>
  14567. </tbody>
  14568. </table>
  14569. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  14570. <p>Status Code <strong>200</strong></p>
  14571. <table>
  14572. <thead>
  14573. <tr>
  14574. <th>Name</th>
  14575. <th>Type</th>
  14576. <th>Required</th>
  14577. <th>Restrictions</th>
  14578. <th>Description</th>
  14579. </tr>
  14580. </thead>
  14581. <tbody>
  14582. <tr>
  14583. <td>» _id</td>
  14584. <td>string</td>
  14585. <td>false</td>
  14586. <td>none</td>
  14587. <td>none</td>
  14588. </tr>
  14589. </tbody>
  14590. </table>
  14591. <aside class="warning">
  14592. To perform this operation, you must be authenticated by means of one of the following methods:
  14593. UserSecurity
  14594. </aside>
  14595. <h2 id="get_swimlane">get_swimlane</h2>
  14596. <p><a id="opIdget_swimlane"></a></p>
  14597. <blockquote>
  14598. <p>Code samples</p>
  14599. </blockquote>
  14600. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14601. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  14602. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14603. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14604. </code></pre>
  14605. <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>
  14606. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14607. </span></code></pre>
  14608. <pre class="highlight tab tab-javascript"><code>
  14609. <span class="hljs-keyword">const</span> headers = {
  14610. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14611. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14612. };
  14613. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  14614. {
  14615. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14616. <span class="hljs-attr">headers</span>: headers
  14617. })
  14618. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14619. <span class="hljs-keyword">return</span> res.json();
  14620. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14621. <span class="hljs-built_in">console</span>.log(body);
  14622. });
  14623. </code></pre>
  14624. <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>);
  14625. <span class="hljs-keyword">const</span> headers = {
  14626. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14627. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14628. };
  14629. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  14630. {
  14631. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14632. <span class="hljs-attr">headers</span>: headers
  14633. })
  14634. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14635. <span class="hljs-keyword">return</span> res.json();
  14636. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14637. <span class="hljs-built_in">console</span>.log(body);
  14638. });
  14639. </code></pre>
  14640. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14641. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14642. headers = {
  14643. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14644. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14645. }
  14646. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  14647. <span class="hljs-symbol">params:</span> {
  14648. }, <span class="hljs-symbol">headers:</span> headers
  14649. p JSON.parse(result)
  14650. </code></pre>
  14651. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14652. headers = {
  14653. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14654. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14655. }
  14656. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  14657. <span class="hljs-built_in">print</span>(r.json())
  14658. </code></pre>
  14659. <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>);
  14660. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14661. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14662. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14663. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14664. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14665. String inputLine;
  14666. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14667. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14668. response.append(inputLine);
  14669. }
  14670. in.close();
  14671. System.out.println(response.toString());
  14672. </code></pre>
  14673. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14674. <span class="hljs-keyword">import</span> (
  14675. <span class="hljs-string">&quot;bytes&quot;</span>
  14676. <span class="hljs-string">&quot;net/http&quot;</span>
  14677. )
  14678. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14679. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14680. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14681. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14682. }
  14683. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14684. 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)
  14685. req.Header = headers
  14686. client := &amp;http.Client{}
  14687. resp, err := client.Do(req)
  14688. <span class="hljs-comment">// ...</span>
  14689. }
  14690. </code></pre>
  14691. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14692. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14693. );
  14694. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14695. <span class="hljs-comment">// Define array of request body.</span>
  14696. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14697. <span class="hljs-keyword">try</span> {
  14698. <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>(
  14699. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14700. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14701. )
  14702. );
  14703. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14704. }
  14705. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14706. <span class="hljs-comment">// handle exception or api errors.</span>
  14707. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14708. }
  14709. <span class="hljs-comment">// ...</span>
  14710. </code></pre>
  14711. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  14712. <p><em>Get a swimlane</em></p>
  14713. <h3 id="get_swimlane-parameters">Parameters</h3>
  14714. <table>
  14715. <thead>
  14716. <tr>
  14717. <th>Name</th>
  14718. <th>In</th>
  14719. <th>Type</th>
  14720. <th>Required</th>
  14721. <th>Description</th>
  14722. </tr>
  14723. </thead>
  14724. <tbody>
  14725. <tr>
  14726. <td>board</td>
  14727. <td>path</td>
  14728. <td>string</td>
  14729. <td>true</td>
  14730. <td>the ID of the board</td>
  14731. </tr>
  14732. <tr>
  14733. <td>swimlane</td>
  14734. <td>path</td>
  14735. <td>string</td>
  14736. <td>true</td>
  14737. <td>the ID of the swimlane</td>
  14738. </tr>
  14739. </tbody>
  14740. </table>
  14741. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  14742. <p><strong>board</strong>: the ID of the board</p>
  14743. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  14744. <blockquote>
  14745. <p>Example responses</p>
  14746. </blockquote>
  14747. <blockquote>
  14748. <p>200 Response</p>
  14749. </blockquote>
  14750. <pre class="highlight tab tab-json"><code>{
  14751. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14752. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  14753. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14754. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14755. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14756. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  14757. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  14758. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14759. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14760. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14761. }
  14762. </code></pre>
  14763. <h3 id="get_swimlane-responses">Responses</h3>
  14764. <table>
  14765. <thead>
  14766. <tr>
  14767. <th>Status</th>
  14768. <th>Meaning</th>
  14769. <th>Description</th>
  14770. <th>Schema</th>
  14771. </tr>
  14772. </thead>
  14773. <tbody>
  14774. <tr>
  14775. <td>200</td>
  14776. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14777. <td>200 response</td>
  14778. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  14779. </tr>
  14780. </tbody>
  14781. </table>
  14782. <aside class="warning">
  14783. To perform this operation, you must be authenticated by means of one of the following methods:
  14784. UserSecurity
  14785. </aside>
  14786. <h2 id="edit_swimlane">edit_swimlane</h2>
  14787. <p><a id="opIdedit_swimlane"></a></p>
  14788. <blockquote>
  14789. <p>Code samples</p>
  14790. </blockquote>
  14791. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14792. curl -X PUT /api/boards/{board}/swimlanes/{swimlane} \
  14793. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14794. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14795. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14796. </code></pre>
  14797. <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>
  14798. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14799. Accept: application/json
  14800. </span></code></pre>
  14801. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14802. &quot;title&quot;: &quot;string&quot;
  14803. }&#x27;</span>;
  14804. <span class="hljs-keyword">const</span> headers = {
  14805. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14806. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14807. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14808. };
  14809. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  14810. {
  14811. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14812. <span class="hljs-attr">body</span>: inputBody,
  14813. <span class="hljs-attr">headers</span>: headers
  14814. })
  14815. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14816. <span class="hljs-keyword">return</span> res.json();
  14817. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14818. <span class="hljs-built_in">console</span>.log(body);
  14819. });
  14820. </code></pre>
  14821. <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>);
  14822. <span class="hljs-keyword">const</span> inputBody = {
  14823. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14824. };
  14825. <span class="hljs-keyword">const</span> headers = {
  14826. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14827. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14828. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14829. };
  14830. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  14831. {
  14832. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14833. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14834. <span class="hljs-attr">headers</span>: headers
  14835. })
  14836. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14837. <span class="hljs-keyword">return</span> res.json();
  14838. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14839. <span class="hljs-built_in">console</span>.log(body);
  14840. });
  14841. </code></pre>
  14842. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14843. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14844. headers = {
  14845. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14846. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14847. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14848. }
  14849. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  14850. <span class="hljs-symbol">params:</span> {
  14851. }, <span class="hljs-symbol">headers:</span> headers
  14852. p JSON.parse(result)
  14853. </code></pre>
  14854. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14855. headers = {
  14856. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14857. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14858. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14859. }
  14860. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  14861. <span class="hljs-built_in">print</span>(r.json())
  14862. </code></pre>
  14863. <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>);
  14864. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14865. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  14866. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14867. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14868. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14869. String inputLine;
  14870. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14871. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14872. response.append(inputLine);
  14873. }
  14874. in.close();
  14875. System.out.println(response.toString());
  14876. </code></pre>
  14877. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14878. <span class="hljs-keyword">import</span> (
  14879. <span class="hljs-string">&quot;bytes&quot;</span>
  14880. <span class="hljs-string">&quot;net/http&quot;</span>
  14881. )
  14882. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14883. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14884. <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>},
  14885. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14886. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14887. }
  14888. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14889. 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)
  14890. req.Header = headers
  14891. client := &amp;http.Client{}
  14892. resp, err := client.Do(req)
  14893. <span class="hljs-comment">// ...</span>
  14894. }
  14895. </code></pre>
  14896. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14897. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14898. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14899. );
  14900. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14901. <span class="hljs-comment">// Define array of request body.</span>
  14902. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14903. <span class="hljs-keyword">try</span> {
  14904. <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>(
  14905. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14906. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14907. )
  14908. );
  14909. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14910. }
  14911. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14912. <span class="hljs-comment">// handle exception or api errors.</span>
  14913. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14914. }
  14915. <span class="hljs-comment">// ...</span>
  14916. </code></pre>
  14917. <p><code>PUT /api/boards/{board}/swimlanes/{swimlane}</code></p>
  14918. <p><em>Edit the title of a swimlane</em></p>
  14919. <blockquote>
  14920. <p>Body parameter</p>
  14921. </blockquote>
  14922. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  14923. </code></pre>
  14924. <h3 id="edit_swimlane-parameters">Parameters</h3>
  14925. <table>
  14926. <thead>
  14927. <tr>
  14928. <th>Name</th>
  14929. <th>In</th>
  14930. <th>Type</th>
  14931. <th>Required</th>
  14932. <th>Description</th>
  14933. </tr>
  14934. </thead>
  14935. <tbody>
  14936. <tr>
  14937. <td>board</td>
  14938. <td>path</td>
  14939. <td>string</td>
  14940. <td>true</td>
  14941. <td>the ID of the board</td>
  14942. </tr>
  14943. <tr>
  14944. <td>swimlane</td>
  14945. <td>path</td>
  14946. <td>string</td>
  14947. <td>true</td>
  14948. <td>the ID of the swimlane to edit</td>
  14949. </tr>
  14950. <tr>
  14951. <td>body</td>
  14952. <td>body</td>
  14953. <td>object</td>
  14954. <td>true</td>
  14955. <td>none</td>
  14956. </tr>
  14957. <tr>
  14958. <td>» title</td>
  14959. <td>body</td>
  14960. <td>string</td>
  14961. <td>true</td>
  14962. <td>the new title of the swimlane</td>
  14963. </tr>
  14964. </tbody>
  14965. </table>
  14966. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  14967. <p><strong>board</strong>: the ID of the board</p>
  14968. <p><strong>swimlane</strong>: the ID of the swimlane to edit</p>
  14969. <blockquote>
  14970. <p>Example responses</p>
  14971. </blockquote>
  14972. <blockquote>
  14973. <p>200 Response</p>
  14974. </blockquote>
  14975. <pre class="highlight tab tab-json"><code>{
  14976. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14977. }
  14978. </code></pre>
  14979. <h3 id="edit_swimlane-responses">Responses</h3>
  14980. <table>
  14981. <thead>
  14982. <tr>
  14983. <th>Status</th>
  14984. <th>Meaning</th>
  14985. <th>Description</th>
  14986. <th>Schema</th>
  14987. </tr>
  14988. </thead>
  14989. <tbody>
  14990. <tr>
  14991. <td>200</td>
  14992. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14993. <td>200 response</td>
  14994. <td>Inline</td>
  14995. </tr>
  14996. </tbody>
  14997. </table>
  14998. <h3 id="edit_swimlane-responseschema">Response Schema</h3>
  14999. <p>Status Code <strong>200</strong></p>
  15000. <table>
  15001. <thead>
  15002. <tr>
  15003. <th>Name</th>
  15004. <th>Type</th>
  15005. <th>Required</th>
  15006. <th>Restrictions</th>
  15007. <th>Description</th>
  15008. </tr>
  15009. </thead>
  15010. <tbody>
  15011. <tr>
  15012. <td>» _id</td>
  15013. <td>string</td>
  15014. <td>false</td>
  15015. <td>none</td>
  15016. <td>none</td>
  15017. </tr>
  15018. </tbody>
  15019. </table>
  15020. <aside class="warning">
  15021. To perform this operation, you must be authenticated by means of one of the following methods:
  15022. UserSecurity
  15023. </aside>
  15024. <h2 id="delete_swimlane">delete_swimlane</h2>
  15025. <p><a id="opIddelete_swimlane"></a></p>
  15026. <blockquote>
  15027. <p>Code samples</p>
  15028. </blockquote>
  15029. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15030. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  15031. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15032. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15033. </code></pre>
  15034. <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>
  15035. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15036. </span></code></pre>
  15037. <pre class="highlight tab tab-javascript"><code>
  15038. <span class="hljs-keyword">const</span> headers = {
  15039. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15040. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15041. };
  15042. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15043. {
  15044. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15045. <span class="hljs-attr">headers</span>: headers
  15046. })
  15047. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15048. <span class="hljs-keyword">return</span> res.json();
  15049. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15050. <span class="hljs-built_in">console</span>.log(body);
  15051. });
  15052. </code></pre>
  15053. <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>);
  15054. <span class="hljs-keyword">const</span> headers = {
  15055. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15056. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15057. };
  15058. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15059. {
  15060. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15061. <span class="hljs-attr">headers</span>: headers
  15062. })
  15063. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15064. <span class="hljs-keyword">return</span> res.json();
  15065. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15066. <span class="hljs-built_in">console</span>.log(body);
  15067. });
  15068. </code></pre>
  15069. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15070. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15071. headers = {
  15072. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15073. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15074. }
  15075. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15076. <span class="hljs-symbol">params:</span> {
  15077. }, <span class="hljs-symbol">headers:</span> headers
  15078. p JSON.parse(result)
  15079. </code></pre>
  15080. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15081. headers = {
  15082. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15083. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15084. }
  15085. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15086. <span class="hljs-built_in">print</span>(r.json())
  15087. </code></pre>
  15088. <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>);
  15089. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15090. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15091. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15092. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15093. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15094. String inputLine;
  15095. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15096. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15097. response.append(inputLine);
  15098. }
  15099. in.close();
  15100. System.out.println(response.toString());
  15101. </code></pre>
  15102. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15103. <span class="hljs-keyword">import</span> (
  15104. <span class="hljs-string">&quot;bytes&quot;</span>
  15105. <span class="hljs-string">&quot;net/http&quot;</span>
  15106. )
  15107. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15108. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15109. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15110. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15111. }
  15112. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15113. 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)
  15114. req.Header = headers
  15115. client := &amp;http.Client{}
  15116. resp, err := client.Do(req)
  15117. <span class="hljs-comment">// ...</span>
  15118. }
  15119. </code></pre>
  15120. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15121. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15122. );
  15123. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15124. <span class="hljs-comment">// Define array of request body.</span>
  15125. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15126. <span class="hljs-keyword">try</span> {
  15127. <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>(
  15128. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15129. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15130. )
  15131. );
  15132. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15133. }
  15134. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15135. <span class="hljs-comment">// handle exception or api errors.</span>
  15136. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15137. }
  15138. <span class="hljs-comment">// ...</span>
  15139. </code></pre>
  15140. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15141. <p><em>Delete a swimlane</em></p>
  15142. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  15143. <h3 id="delete_swimlane-parameters">Parameters</h3>
  15144. <table>
  15145. <thead>
  15146. <tr>
  15147. <th>Name</th>
  15148. <th>In</th>
  15149. <th>Type</th>
  15150. <th>Required</th>
  15151. <th>Description</th>
  15152. </tr>
  15153. </thead>
  15154. <tbody>
  15155. <tr>
  15156. <td>board</td>
  15157. <td>path</td>
  15158. <td>string</td>
  15159. <td>true</td>
  15160. <td>the ID of the board</td>
  15161. </tr>
  15162. <tr>
  15163. <td>swimlane</td>
  15164. <td>path</td>
  15165. <td>string</td>
  15166. <td>true</td>
  15167. <td>the ID of the swimlane</td>
  15168. </tr>
  15169. </tbody>
  15170. </table>
  15171. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  15172. <p><strong>board</strong>: the ID of the board</p>
  15173. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15174. <blockquote>
  15175. <p>Example responses</p>
  15176. </blockquote>
  15177. <blockquote>
  15178. <p>200 Response</p>
  15179. </blockquote>
  15180. <pre class="highlight tab tab-json"><code>{
  15181. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15182. }
  15183. </code></pre>
  15184. <h3 id="delete_swimlane-responses">Responses</h3>
  15185. <table>
  15186. <thead>
  15187. <tr>
  15188. <th>Status</th>
  15189. <th>Meaning</th>
  15190. <th>Description</th>
  15191. <th>Schema</th>
  15192. </tr>
  15193. </thead>
  15194. <tbody>
  15195. <tr>
  15196. <td>200</td>
  15197. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15198. <td>200 response</td>
  15199. <td>Inline</td>
  15200. </tr>
  15201. </tbody>
  15202. </table>
  15203. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  15204. <p>Status Code <strong>200</strong></p>
  15205. <table>
  15206. <thead>
  15207. <tr>
  15208. <th>Name</th>
  15209. <th>Type</th>
  15210. <th>Required</th>
  15211. <th>Restrictions</th>
  15212. <th>Description</th>
  15213. </tr>
  15214. </thead>
  15215. <tbody>
  15216. <tr>
  15217. <td>» _id</td>
  15218. <td>string</td>
  15219. <td>false</td>
  15220. <td>none</td>
  15221. <td>none</td>
  15222. </tr>
  15223. </tbody>
  15224. </table>
  15225. <aside class="warning">
  15226. To perform this operation, you must be authenticated by means of one of the following methods:
  15227. UserSecurity
  15228. </aside>
  15229. <h1 id="schemas">Schemas</h1>
  15230. <h2 id="tocs_boards">Boards</h2>
  15231. <p><a id="schemaboards"></a>
  15232. <a id="schema_Boards"></a>
  15233. <a id="tocSboards"></a>
  15234. <a id="tocsboards"></a></p>
  15235. <pre class="highlight tab tab-json"><code>{
  15236. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15237. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15238. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  15239. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15240. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15241. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15242. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  15243. <span class="hljs-attr">&quot;labels&quot;</span>: [
  15244. {
  15245. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15246. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15247. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  15248. }
  15249. ],
  15250. <span class="hljs-attr">&quot;members&quot;</span>: [
  15251. {
  15252. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15253. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  15254. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  15255. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  15256. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  15257. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  15258. }
  15259. ],
  15260. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  15261. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  15262. {
  15263. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15264. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15265. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  15266. }
  15267. ],
  15268. <span class="hljs-attr">&quot;teams&quot;</span>: [
  15269. {
  15270. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15271. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15272. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  15273. }
  15274. ],
  15275. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  15276. <span class="hljs-attr">&quot;backgroundImageURL&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15277. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  15278. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  15279. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15280. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15281. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15282. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15283. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15284. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  15285. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  15286. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  15287. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  15288. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  15289. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  15290. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15291. <span class="hljs-attr">&quot;allowsCoverAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15292. <span class="hljs-attr">&quot;allowsBadgeAttachmentOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15293. <span class="hljs-attr">&quot;allowsCardSortingByNumberOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  15294. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  15295. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  15296. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  15297. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  15298. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  15299. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  15300. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  15301. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  15302. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  15303. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  15304. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  15305. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  15306. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  15307. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  15308. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  15309. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15310. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15311. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15312. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15313. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  15314. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  15315. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  15316. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  15317. }
  15318. </code></pre>
  15319. <p>This is a Board.</p>
  15320. <h3 id="properties">Properties</h3>
  15321. <table>
  15322. <thead>
  15323. <tr>
  15324. <th>Name</th>
  15325. <th>Type</th>
  15326. <th>Required</th>
  15327. <th>Restrictions</th>
  15328. <th>Description</th>
  15329. </tr>
  15330. </thead>
  15331. <tbody>
  15332. <tr>
  15333. <td>title</td>
  15334. <td>string</td>
  15335. <td>true</td>
  15336. <td>none</td>
  15337. <td>The title of the board</td>
  15338. </tr>
  15339. <tr>
  15340. <td>slug</td>
  15341. <td>string</td>
  15342. <td>true</td>
  15343. <td>none</td>
  15344. <td>The title slugified.</td>
  15345. </tr>
  15346. <tr>
  15347. <td>archived</td>
  15348. <td>boolean</td>
  15349. <td>true</td>
  15350. <td>none</td>
  15351. <td>Is the board archived?</td>
  15352. </tr>
  15353. <tr>
  15354. <td>archivedAt</td>
  15355. <td>string¦null</td>
  15356. <td>false</td>
  15357. <td>none</td>
  15358. <td>Latest archiving time of the board</td>
  15359. </tr>
  15360. <tr>
  15361. <td>createdAt</td>
  15362. <td>string</td>
  15363. <td>true</td>
  15364. <td>none</td>
  15365. <td>Creation time of the board</td>
  15366. </tr>
  15367. <tr>
  15368. <td>modifiedAt</td>
  15369. <td>string¦null</td>
  15370. <td>false</td>
  15371. <td>none</td>
  15372. <td>Last modification time of the board</td>
  15373. </tr>
  15374. <tr>
  15375. <td>stars</td>
  15376. <td>number</td>
  15377. <td>true</td>
  15378. <td>none</td>
  15379. <td>How many stars the board has</td>
  15380. </tr>
  15381. <tr>
  15382. <td>labels</td>
  15383. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  15384. <td>false</td>
  15385. <td>none</td>
  15386. <td>List of labels attached to a board</td>
  15387. </tr>
  15388. <tr>
  15389. <td>members</td>
  15390. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  15391. <td>true</td>
  15392. <td>none</td>
  15393. <td>List of members of a board</td>
  15394. </tr>
  15395. <tr>
  15396. <td>permission</td>
  15397. <td>string</td>
  15398. <td>true</td>
  15399. <td>none</td>
  15400. <td>visibility of the board</td>
  15401. </tr>
  15402. <tr>
  15403. <td>orgs</td>
  15404. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  15405. <td>false</td>
  15406. <td>none</td>
  15407. <td>the list of organizations that a board belongs to</td>
  15408. </tr>
  15409. <tr>
  15410. <td>teams</td>
  15411. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  15412. <td>false</td>
  15413. <td>none</td>
  15414. <td>the list of teams that a board belongs to</td>
  15415. </tr>
  15416. <tr>
  15417. <td>color</td>
  15418. <td>string</td>
  15419. <td>true</td>
  15420. <td>none</td>
  15421. <td>The color of the board.</td>
  15422. </tr>
  15423. <tr>
  15424. <td>backgroundImageURL</td>
  15425. <td>string¦null</td>
  15426. <td>false</td>
  15427. <td>none</td>
  15428. <td>The background image URL of the board.</td>
  15429. </tr>
  15430. <tr>
  15431. <td>allowsCardCounterList</td>
  15432. <td>boolean</td>
  15433. <td>true</td>
  15434. <td>none</td>
  15435. <td>Show card counter per list</td>
  15436. </tr>
  15437. <tr>
  15438. <td>allowsBoardMemberList</td>
  15439. <td>boolean</td>
  15440. <td>true</td>
  15441. <td>none</td>
  15442. <td>Show board member list</td>
  15443. </tr>
  15444. <tr>
  15445. <td>description</td>
  15446. <td>string¦null</td>
  15447. <td>false</td>
  15448. <td>none</td>
  15449. <td>The description of the board</td>
  15450. </tr>
  15451. <tr>
  15452. <td>subtasksDefaultBoardId</td>
  15453. <td>string¦null</td>
  15454. <td>false</td>
  15455. <td>none</td>
  15456. <td>The default board ID assigned to subtasks.</td>
  15457. </tr>
  15458. <tr>
  15459. <td>subtasksDefaultListId</td>
  15460. <td>string¦null</td>
  15461. <td>false</td>
  15462. <td>none</td>
  15463. <td>The default List ID assigned to subtasks.</td>
  15464. </tr>
  15465. <tr>
  15466. <td>dateSettingsDefaultBoardId</td>
  15467. <td>string¦null</td>
  15468. <td>false</td>
  15469. <td>none</td>
  15470. <td>none</td>
  15471. </tr>
  15472. <tr>
  15473. <td>dateSettingsDefaultListId</td>
  15474. <td>string¦null</td>
  15475. <td>false</td>
  15476. <td>none</td>
  15477. <td>none</td>
  15478. </tr>
  15479. <tr>
  15480. <td>allowsSubtasks</td>
  15481. <td>boolean</td>
  15482. <td>true</td>
  15483. <td>none</td>
  15484. <td>Does the board allows subtasks?</td>
  15485. </tr>
  15486. <tr>
  15487. <td>allowsAttachments</td>
  15488. <td>boolean</td>
  15489. <td>true</td>
  15490. <td>none</td>
  15491. <td>Does the board allows attachments?</td>
  15492. </tr>
  15493. <tr>
  15494. <td>allowsChecklists</td>
  15495. <td>boolean</td>
  15496. <td>true</td>
  15497. <td>none</td>
  15498. <td>Does the board allows checklists?</td>
  15499. </tr>
  15500. <tr>
  15501. <td>allowsComments</td>
  15502. <td>boolean</td>
  15503. <td>true</td>
  15504. <td>none</td>
  15505. <td>Does the board allows comments?</td>
  15506. </tr>
  15507. <tr>
  15508. <td>allowsDescriptionTitle</td>
  15509. <td>boolean</td>
  15510. <td>true</td>
  15511. <td>none</td>
  15512. <td>Does the board allows description title?</td>
  15513. </tr>
  15514. <tr>
  15515. <td>allowsDescriptionText</td>
  15516. <td>boolean</td>
  15517. <td>true</td>
  15518. <td>none</td>
  15519. <td>Does the board allows description text?</td>
  15520. </tr>
  15521. <tr>
  15522. <td>allowsDescriptionTextOnMinicard</td>
  15523. <td>boolean</td>
  15524. <td>true</td>
  15525. <td>none</td>
  15526. <td>Does the board allows description text on minicard?</td>
  15527. </tr>
  15528. <tr>
  15529. <td>allowsCoverAttachmentOnMinicard</td>
  15530. <td>boolean</td>
  15531. <td>true</td>
  15532. <td>none</td>
  15533. <td>Does the board allows cover attachment on minicard?</td>
  15534. </tr>
  15535. <tr>
  15536. <td>allowsBadgeAttachmentOnMinicard</td>
  15537. <td>boolean</td>
  15538. <td>true</td>
  15539. <td>none</td>
  15540. <td>Does the board allows badge attachment on minicard?</td>
  15541. </tr>
  15542. <tr>
  15543. <td>allowsCardSortingByNumberOnMinicard</td>
  15544. <td>boolean</td>
  15545. <td>true</td>
  15546. <td>none</td>
  15547. <td>Does the board allows card sorting by number on minicard?</td>
  15548. </tr>
  15549. <tr>
  15550. <td>allowsCardNumber</td>
  15551. <td>boolean</td>
  15552. <td>true</td>
  15553. <td>none</td>
  15554. <td>Does the board allows card numbers?</td>
  15555. </tr>
  15556. <tr>
  15557. <td>allowsActivities</td>
  15558. <td>boolean</td>
  15559. <td>true</td>
  15560. <td>none</td>
  15561. <td>Does the board allows comments?</td>
  15562. </tr>
  15563. <tr>
  15564. <td>allowsLabels</td>
  15565. <td>boolean</td>
  15566. <td>true</td>
  15567. <td>none</td>
  15568. <td>Does the board allows labels?</td>
  15569. </tr>
  15570. <tr>
  15571. <td>allowsCreator</td>
  15572. <td>boolean</td>
  15573. <td>true</td>
  15574. <td>none</td>
  15575. <td>Does the board allow creator?</td>
  15576. </tr>
  15577. <tr>
  15578. <td>allowsAssignee</td>
  15579. <td>boolean</td>
  15580. <td>true</td>
  15581. <td>none</td>
  15582. <td>Does the board allows assignee?</td>
  15583. </tr>
  15584. <tr>
  15585. <td>allowsMembers</td>
  15586. <td>boolean</td>
  15587. <td>true</td>
  15588. <td>none</td>
  15589. <td>Does the board allows members?</td>
  15590. </tr>
  15591. <tr>
  15592. <td>allowsRequestedBy</td>
  15593. <td>boolean</td>
  15594. <td>true</td>
  15595. <td>none</td>
  15596. <td>Does the board allows requested by?</td>
  15597. </tr>
  15598. <tr>
  15599. <td>allowsCardSortingByNumber</td>
  15600. <td>boolean</td>
  15601. <td>true</td>
  15602. <td>none</td>
  15603. <td>Does the board allows card sorting by number?</td>
  15604. </tr>
  15605. <tr>
  15606. <td>allowsShowLists</td>
  15607. <td>boolean</td>
  15608. <td>true</td>
  15609. <td>none</td>
  15610. <td>Does the board allows show lists on the card?</td>
  15611. </tr>
  15612. <tr>
  15613. <td>allowsAssignedBy</td>
  15614. <td>boolean</td>
  15615. <td>true</td>
  15616. <td>none</td>
  15617. <td>Does the board allows requested by?</td>
  15618. </tr>
  15619. <tr>
  15620. <td>allowsReceivedDate</td>
  15621. <td>boolean</td>
  15622. <td>true</td>
  15623. <td>none</td>
  15624. <td>Does the board allows received date?</td>
  15625. </tr>
  15626. <tr>
  15627. <td>allowsStartDate</td>
  15628. <td>boolean</td>
  15629. <td>true</td>
  15630. <td>none</td>
  15631. <td>Does the board allows start date?</td>
  15632. </tr>
  15633. <tr>
  15634. <td>allowsEndDate</td>
  15635. <td>boolean</td>
  15636. <td>true</td>
  15637. <td>none</td>
  15638. <td>Does the board allows end date?</td>
  15639. </tr>
  15640. <tr>
  15641. <td>allowsDueDate</td>
  15642. <td>boolean</td>
  15643. <td>true</td>
  15644. <td>none</td>
  15645. <td>Does the board allows due date?</td>
  15646. </tr>
  15647. <tr>
  15648. <td>presentParentTask</td>
  15649. <td>string¦null</td>
  15650. <td>false</td>
  15651. <td>none</td>
  15652. <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>
  15653. </tr>
  15654. <tr>
  15655. <td>receivedAt</td>
  15656. <td>string¦null</td>
  15657. <td>false</td>
  15658. <td>none</td>
  15659. <td>Date the card was received</td>
  15660. </tr>
  15661. <tr>
  15662. <td>startAt</td>
  15663. <td>string¦null</td>
  15664. <td>false</td>
  15665. <td>none</td>
  15666. <td>Starting date of the board.</td>
  15667. </tr>
  15668. <tr>
  15669. <td>dueAt</td>
  15670. <td>string¦null</td>
  15671. <td>false</td>
  15672. <td>none</td>
  15673. <td>Due date of the board.</td>
  15674. </tr>
  15675. <tr>
  15676. <td>endAt</td>
  15677. <td>string¦null</td>
  15678. <td>false</td>
  15679. <td>none</td>
  15680. <td>End date of the board.</td>
  15681. </tr>
  15682. <tr>
  15683. <td>spentTime</td>
  15684. <td>number¦null</td>
  15685. <td>false</td>
  15686. <td>none</td>
  15687. <td>Time spent in the board.</td>
  15688. </tr>
  15689. <tr>
  15690. <td>isOvertime</td>
  15691. <td>boolean¦null</td>
  15692. <td>false</td>
  15693. <td>none</td>
  15694. <td>Is the board overtimed?</td>
  15695. </tr>
  15696. <tr>
  15697. <td>type</td>
  15698. <td>string</td>
  15699. <td>true</td>
  15700. <td>none</td>
  15701. <td>The type of board<br />possible values: board, template-board, template-container</td>
  15702. </tr>
  15703. <tr>
  15704. <td>sort</td>
  15705. <td>number</td>
  15706. <td>true</td>
  15707. <td>none</td>
  15708. <td>Sort value</td>
  15709. </tr>
  15710. </tbody>
  15711. </table>
  15712. <h4 id="enumerated-values">Enumerated Values</h4>
  15713. <table>
  15714. <thead>
  15715. <tr>
  15716. <th>Property</th>
  15717. <th>Value</th>
  15718. </tr>
  15719. </thead>
  15720. <tbody>
  15721. <tr>
  15722. <td>permission</td>
  15723. <td>public</td>
  15724. </tr>
  15725. <tr>
  15726. <td>permission</td>
  15727. <td>private</td>
  15728. </tr>
  15729. <tr>
  15730. <td>color</td>
  15731. <td>belize</td>
  15732. </tr>
  15733. <tr>
  15734. <td>color</td>
  15735. <td>nephritis</td>
  15736. </tr>
  15737. <tr>
  15738. <td>color</td>
  15739. <td>pomegranate</td>
  15740. </tr>
  15741. <tr>
  15742. <td>color</td>
  15743. <td>pumpkin</td>
  15744. </tr>
  15745. <tr>
  15746. <td>color</td>
  15747. <td>wisteria</td>
  15748. </tr>
  15749. <tr>
  15750. <td>color</td>
  15751. <td>moderatepink</td>
  15752. </tr>
  15753. <tr>
  15754. <td>color</td>
  15755. <td>strongcyan</td>
  15756. </tr>
  15757. <tr>
  15758. <td>color</td>
  15759. <td>limegreen</td>
  15760. </tr>
  15761. <tr>
  15762. <td>color</td>
  15763. <td>midnight</td>
  15764. </tr>
  15765. <tr>
  15766. <td>color</td>
  15767. <td>dark</td>
  15768. </tr>
  15769. <tr>
  15770. <td>color</td>
  15771. <td>relax</td>
  15772. </tr>
  15773. <tr>
  15774. <td>color</td>
  15775. <td>corteza</td>
  15776. </tr>
  15777. <tr>
  15778. <td>color</td>
  15779. <td>clearblue</td>
  15780. </tr>
  15781. <tr>
  15782. <td>color</td>
  15783. <td>natural</td>
  15784. </tr>
  15785. <tr>
  15786. <td>color</td>
  15787. <td>modern</td>
  15788. </tr>
  15789. <tr>
  15790. <td>color</td>
  15791. <td>moderndark</td>
  15792. </tr>
  15793. <tr>
  15794. <td>color</td>
  15795. <td>exodark</td>
  15796. </tr>
  15797. <tr>
  15798. <td>presentParentTask</td>
  15799. <td>prefix-with-full-path</td>
  15800. </tr>
  15801. <tr>
  15802. <td>presentParentTask</td>
  15803. <td>prefix-with-parent</td>
  15804. </tr>
  15805. <tr>
  15806. <td>presentParentTask</td>
  15807. <td>subtext-with-full-path</td>
  15808. </tr>
  15809. <tr>
  15810. <td>presentParentTask</td>
  15811. <td>subtext-with-parent</td>
  15812. </tr>
  15813. <tr>
  15814. <td>presentParentTask</td>
  15815. <td>no-parent</td>
  15816. </tr>
  15817. <tr>
  15818. <td>type</td>
  15819. <td>board</td>
  15820. </tr>
  15821. <tr>
  15822. <td>type</td>
  15823. <td>template-board</td>
  15824. </tr>
  15825. <tr>
  15826. <td>type</td>
  15827. <td>template-container</td>
  15828. </tr>
  15829. </tbody>
  15830. </table>
  15831. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  15832. <p><a id="schemaboardslabels"></a>
  15833. <a id="schema_BoardsLabels"></a>
  15834. <a id="tocSboardslabels"></a>
  15835. <a id="tocsboardslabels"></a></p>
  15836. <pre class="highlight tab tab-json"><code>{
  15837. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15838. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15839. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  15840. }
  15841. </code></pre>
  15842. <h3 id="properties-2">Properties</h3>
  15843. <table>
  15844. <thead>
  15845. <tr>
  15846. <th>Name</th>
  15847. <th>Type</th>
  15848. <th>Required</th>
  15849. <th>Restrictions</th>
  15850. <th>Description</th>
  15851. </tr>
  15852. </thead>
  15853. <tbody>
  15854. <tr>
  15855. <td>_id</td>
  15856. <td>string</td>
  15857. <td>true</td>
  15858. <td>none</td>
  15859. <td>Unique id of a label</td>
  15860. </tr>
  15861. <tr>
  15862. <td>name</td>
  15863. <td>string</td>
  15864. <td>false</td>
  15865. <td>none</td>
  15866. <td>Name of a label</td>
  15867. </tr>
  15868. <tr>
  15869. <td>color</td>
  15870. <td>string</td>
  15871. <td>true</td>
  15872. <td>none</td>
  15873. <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>
  15874. </tr>
  15875. </tbody>
  15876. </table>
  15877. <h4 id="enumerated-values-2">Enumerated Values</h4>
  15878. <table>
  15879. <thead>
  15880. <tr>
  15881. <th>Property</th>
  15882. <th>Value</th>
  15883. </tr>
  15884. </thead>
  15885. <tbody>
  15886. <tr>
  15887. <td>color</td>
  15888. <td>white</td>
  15889. </tr>
  15890. <tr>
  15891. <td>color</td>
  15892. <td>green</td>
  15893. </tr>
  15894. <tr>
  15895. <td>color</td>
  15896. <td>yellow</td>
  15897. </tr>
  15898. <tr>
  15899. <td>color</td>
  15900. <td>orange</td>
  15901. </tr>
  15902. <tr>
  15903. <td>color</td>
  15904. <td>red</td>
  15905. </tr>
  15906. <tr>
  15907. <td>color</td>
  15908. <td>purple</td>
  15909. </tr>
  15910. <tr>
  15911. <td>color</td>
  15912. <td>blue</td>
  15913. </tr>
  15914. <tr>
  15915. <td>color</td>
  15916. <td>sky</td>
  15917. </tr>
  15918. <tr>
  15919. <td>color</td>
  15920. <td>lime</td>
  15921. </tr>
  15922. <tr>
  15923. <td>color</td>
  15924. <td>pink</td>
  15925. </tr>
  15926. <tr>
  15927. <td>color</td>
  15928. <td>black</td>
  15929. </tr>
  15930. <tr>
  15931. <td>color</td>
  15932. <td>silver</td>
  15933. </tr>
  15934. <tr>
  15935. <td>color</td>
  15936. <td>peachpuff</td>
  15937. </tr>
  15938. <tr>
  15939. <td>color</td>
  15940. <td>crimson</td>
  15941. </tr>
  15942. <tr>
  15943. <td>color</td>
  15944. <td>plum</td>
  15945. </tr>
  15946. <tr>
  15947. <td>color</td>
  15948. <td>darkgreen</td>
  15949. </tr>
  15950. <tr>
  15951. <td>color</td>
  15952. <td>slateblue</td>
  15953. </tr>
  15954. <tr>
  15955. <td>color</td>
  15956. <td>magenta</td>
  15957. </tr>
  15958. <tr>
  15959. <td>color</td>
  15960. <td>gold</td>
  15961. </tr>
  15962. <tr>
  15963. <td>color</td>
  15964. <td>navy</td>
  15965. </tr>
  15966. <tr>
  15967. <td>color</td>
  15968. <td>gray</td>
  15969. </tr>
  15970. <tr>
  15971. <td>color</td>
  15972. <td>saddlebrown</td>
  15973. </tr>
  15974. <tr>
  15975. <td>color</td>
  15976. <td>paleturquoise</td>
  15977. </tr>
  15978. <tr>
  15979. <td>color</td>
  15980. <td>mistyrose</td>
  15981. </tr>
  15982. <tr>
  15983. <td>color</td>
  15984. <td>indigo</td>
  15985. </tr>
  15986. </tbody>
  15987. </table>
  15988. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  15989. <p><a id="schemaboardsmembers"></a>
  15990. <a id="schema_BoardsMembers"></a>
  15991. <a id="tocSboardsmembers"></a>
  15992. <a id="tocsboardsmembers"></a></p>
  15993. <pre class="highlight tab tab-json"><code>{
  15994. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15995. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  15996. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  15997. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  15998. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  15999. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16000. }
  16001. </code></pre>
  16002. <h3 id="properties-3">Properties</h3>
  16003. <table>
  16004. <thead>
  16005. <tr>
  16006. <th>Name</th>
  16007. <th>Type</th>
  16008. <th>Required</th>
  16009. <th>Restrictions</th>
  16010. <th>Description</th>
  16011. </tr>
  16012. </thead>
  16013. <tbody>
  16014. <tr>
  16015. <td>userId</td>
  16016. <td>string</td>
  16017. <td>true</td>
  16018. <td>none</td>
  16019. <td>The uniq ID of the member</td>
  16020. </tr>
  16021. <tr>
  16022. <td>isAdmin</td>
  16023. <td>boolean</td>
  16024. <td>true</td>
  16025. <td>none</td>
  16026. <td>Is the member an admin of the board?</td>
  16027. </tr>
  16028. <tr>
  16029. <td>isActive</td>
  16030. <td>boolean</td>
  16031. <td>true</td>
  16032. <td>none</td>
  16033. <td>Is the member active?</td>
  16034. </tr>
  16035. <tr>
  16036. <td>isNoComments</td>
  16037. <td>boolean</td>
  16038. <td>false</td>
  16039. <td>none</td>
  16040. <td>Is the member not allowed to make comments</td>
  16041. </tr>
  16042. <tr>
  16043. <td>isCommentOnly</td>
  16044. <td>boolean</td>
  16045. <td>false</td>
  16046. <td>none</td>
  16047. <td>Is the member only allowed to comment on the board</td>
  16048. </tr>
  16049. <tr>
  16050. <td>isWorker</td>
  16051. <td>boolean</td>
  16052. <td>false</td>
  16053. <td>none</td>
  16054. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  16055. </tr>
  16056. </tbody>
  16057. </table>
  16058. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  16059. <p><a id="schemaboardsorgs"></a>
  16060. <a id="schema_BoardsOrgs"></a>
  16061. <a id="tocSboardsorgs"></a>
  16062. <a id="tocsboardsorgs"></a></p>
  16063. <pre class="highlight tab tab-json"><code>{
  16064. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16065. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16066. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16067. }
  16068. </code></pre>
  16069. <h3 id="properties-4">Properties</h3>
  16070. <table>
  16071. <thead>
  16072. <tr>
  16073. <th>Name</th>
  16074. <th>Type</th>
  16075. <th>Required</th>
  16076. <th>Restrictions</th>
  16077. <th>Description</th>
  16078. </tr>
  16079. </thead>
  16080. <tbody>
  16081. <tr>
  16082. <td>orgId</td>
  16083. <td>string</td>
  16084. <td>true</td>
  16085. <td>none</td>
  16086. <td>The uniq ID of the organization</td>
  16087. </tr>
  16088. <tr>
  16089. <td>orgDisplayName</td>
  16090. <td>string</td>
  16091. <td>true</td>
  16092. <td>none</td>
  16093. <td>The display name of the organization</td>
  16094. </tr>
  16095. <tr>
  16096. <td>isActive</td>
  16097. <td>boolean</td>
  16098. <td>true</td>
  16099. <td>none</td>
  16100. <td>Is the organization active?</td>
  16101. </tr>
  16102. </tbody>
  16103. </table>
  16104. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  16105. <p><a id="schemaboardsteams"></a>
  16106. <a id="schema_BoardsTeams"></a>
  16107. <a id="tocSboardsteams"></a>
  16108. <a id="tocsboardsteams"></a></p>
  16109. <pre class="highlight tab tab-json"><code>{
  16110. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16111. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16112. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16113. }
  16114. </code></pre>
  16115. <h3 id="properties-5">Properties</h3>
  16116. <table>
  16117. <thead>
  16118. <tr>
  16119. <th>Name</th>
  16120. <th>Type</th>
  16121. <th>Required</th>
  16122. <th>Restrictions</th>
  16123. <th>Description</th>
  16124. </tr>
  16125. </thead>
  16126. <tbody>
  16127. <tr>
  16128. <td>teamId</td>
  16129. <td>string</td>
  16130. <td>true</td>
  16131. <td>none</td>
  16132. <td>The uniq ID of the team</td>
  16133. </tr>
  16134. <tr>
  16135. <td>teamDisplayName</td>
  16136. <td>string</td>
  16137. <td>true</td>
  16138. <td>none</td>
  16139. <td>The display name of the team</td>
  16140. </tr>
  16141. <tr>
  16142. <td>isActive</td>
  16143. <td>boolean</td>
  16144. <td>true</td>
  16145. <td>none</td>
  16146. <td>Is the team active?</td>
  16147. </tr>
  16148. </tbody>
  16149. </table>
  16150. <h2 id="tocs_cardcomments">CardComments</h2>
  16151. <p><a id="schemacardcomments"></a>
  16152. <a id="schema_CardComments"></a>
  16153. <a id="tocScardcomments"></a>
  16154. <a id="tocscardcomments"></a></p>
  16155. <pre class="highlight tab tab-json"><code>{
  16156. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16157. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16158. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16159. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16160. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16161. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16162. }
  16163. </code></pre>
  16164. <p>A comment on a card</p>
  16165. <h3 id="properties-6">Properties</h3>
  16166. <table>
  16167. <thead>
  16168. <tr>
  16169. <th>Name</th>
  16170. <th>Type</th>
  16171. <th>Required</th>
  16172. <th>Restrictions</th>
  16173. <th>Description</th>
  16174. </tr>
  16175. </thead>
  16176. <tbody>
  16177. <tr>
  16178. <td>boardId</td>
  16179. <td>string</td>
  16180. <td>true</td>
  16181. <td>none</td>
  16182. <td>the board ID</td>
  16183. </tr>
  16184. <tr>
  16185. <td>cardId</td>
  16186. <td>string</td>
  16187. <td>true</td>
  16188. <td>none</td>
  16189. <td>the card ID</td>
  16190. </tr>
  16191. <tr>
  16192. <td>text</td>
  16193. <td>string</td>
  16194. <td>true</td>
  16195. <td>none</td>
  16196. <td>the text of the comment</td>
  16197. </tr>
  16198. <tr>
  16199. <td>createdAt</td>
  16200. <td>string</td>
  16201. <td>true</td>
  16202. <td>none</td>
  16203. <td>when was the comment created</td>
  16204. </tr>
  16205. <tr>
  16206. <td>modifiedAt</td>
  16207. <td>string</td>
  16208. <td>true</td>
  16209. <td>none</td>
  16210. <td>none</td>
  16211. </tr>
  16212. <tr>
  16213. <td>userId</td>
  16214. <td>string</td>
  16215. <td>true</td>
  16216. <td>none</td>
  16217. <td>the author ID of the comment</td>
  16218. </tr>
  16219. </tbody>
  16220. </table>
  16221. <h2 id="tocs_cards">Cards</h2>
  16222. <p><a id="schemacards"></a>
  16223. <a id="schema_Cards"></a>
  16224. <a id="tocScards"></a>
  16225. <a id="tocscards"></a></p>
  16226. <pre class="highlight tab tab-json"><code>{
  16227. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16228. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16229. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16230. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16231. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16232. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16233. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16234. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16235. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  16236. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16237. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16238. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  16239. {}
  16240. ],
  16241. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16242. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16243. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16244. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16245. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  16246. <span class="hljs-string">&quot;string&quot;</span>
  16247. ],
  16248. <span class="hljs-attr">&quot;members&quot;</span>: [
  16249. <span class="hljs-string">&quot;string&quot;</span>
  16250. ],
  16251. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  16252. <span class="hljs-string">&quot;string&quot;</span>
  16253. ],
  16254. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16255. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16256. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16257. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16258. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16259. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16260. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16261. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  16262. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  16263. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16264. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16265. <span class="hljs-attr">&quot;vote&quot;</span>: {
  16266. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16267. <span class="hljs-attr">&quot;positive&quot;</span>: [
  16268. <span class="hljs-string">&quot;string&quot;</span>
  16269. ],
  16270. <span class="hljs-attr">&quot;negative&quot;</span>: [
  16271. <span class="hljs-string">&quot;string&quot;</span>
  16272. ],
  16273. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16274. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  16275. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  16276. },
  16277. <span class="hljs-attr">&quot;poker&quot;</span>: {
  16278. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  16279. <span class="hljs-attr">&quot;one&quot;</span>: [
  16280. <span class="hljs-string">&quot;string&quot;</span>
  16281. ],
  16282. <span class="hljs-attr">&quot;two&quot;</span>: [
  16283. <span class="hljs-string">&quot;string&quot;</span>
  16284. ],
  16285. <span class="hljs-attr">&quot;three&quot;</span>: [
  16286. <span class="hljs-string">&quot;string&quot;</span>
  16287. ],
  16288. <span class="hljs-attr">&quot;five&quot;</span>: [
  16289. <span class="hljs-string">&quot;string&quot;</span>
  16290. ],
  16291. <span class="hljs-attr">&quot;eight&quot;</span>: [
  16292. <span class="hljs-string">&quot;string&quot;</span>
  16293. ],
  16294. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  16295. <span class="hljs-string">&quot;string&quot;</span>
  16296. ],
  16297. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  16298. <span class="hljs-string">&quot;string&quot;</span>
  16299. ],
  16300. <span class="hljs-attr">&quot;forty&quot;</span>: [
  16301. <span class="hljs-string">&quot;string&quot;</span>
  16302. ],
  16303. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  16304. <span class="hljs-string">&quot;string&quot;</span>
  16305. ],
  16306. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  16307. <span class="hljs-string">&quot;string&quot;</span>
  16308. ],
  16309. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16310. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16311. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  16312. },
  16313. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  16314. <span class="hljs-string">&quot;string&quot;</span>
  16315. ],
  16316. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  16317. <span class="hljs-number">0</span>
  16318. ],
  16319. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  16320. <span class="hljs-string">&quot;string&quot;</span>
  16321. ],
  16322. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  16323. }
  16324. </code></pre>
  16325. <h3 id="properties-7">Properties</h3>
  16326. <table>
  16327. <thead>
  16328. <tr>
  16329. <th>Name</th>
  16330. <th>Type</th>
  16331. <th>Required</th>
  16332. <th>Restrictions</th>
  16333. <th>Description</th>
  16334. </tr>
  16335. </thead>
  16336. <tbody>
  16337. <tr>
  16338. <td>title</td>
  16339. <td>string¦null</td>
  16340. <td>false</td>
  16341. <td>none</td>
  16342. <td>the title of the card</td>
  16343. </tr>
  16344. <tr>
  16345. <td>archived</td>
  16346. <td>boolean</td>
  16347. <td>true</td>
  16348. <td>none</td>
  16349. <td>is the card archived</td>
  16350. </tr>
  16351. <tr>
  16352. <td>archivedAt</td>
  16353. <td>string¦null</td>
  16354. <td>false</td>
  16355. <td>none</td>
  16356. <td>latest archiving date</td>
  16357. </tr>
  16358. <tr>
  16359. <td>parentId</td>
  16360. <td>string¦null</td>
  16361. <td>false</td>
  16362. <td>none</td>
  16363. <td>ID of the parent card</td>
  16364. </tr>
  16365. <tr>
  16366. <td>listId</td>
  16367. <td>string¦null</td>
  16368. <td>false</td>
  16369. <td>none</td>
  16370. <td>List ID where the card is</td>
  16371. </tr>
  16372. <tr>
  16373. <td>swimlaneId</td>
  16374. <td>string</td>
  16375. <td>true</td>
  16376. <td>none</td>
  16377. <td>Swimlane ID where the card is</td>
  16378. </tr>
  16379. <tr>
  16380. <td>boardId</td>
  16381. <td>string¦null</td>
  16382. <td>false</td>
  16383. <td>none</td>
  16384. <td>Board ID of the card</td>
  16385. </tr>
  16386. <tr>
  16387. <td>coverId</td>
  16388. <td>string¦null</td>
  16389. <td>false</td>
  16390. <td>none</td>
  16391. <td>Cover ID of the card</td>
  16392. </tr>
  16393. <tr>
  16394. <td>color</td>
  16395. <td>string¦null</td>
  16396. <td>false</td>
  16397. <td>none</td>
  16398. <td>none</td>
  16399. </tr>
  16400. <tr>
  16401. <td>createdAt</td>
  16402. <td>string</td>
  16403. <td>true</td>
  16404. <td>none</td>
  16405. <td>creation date</td>
  16406. </tr>
  16407. <tr>
  16408. <td>modifiedAt</td>
  16409. <td>string</td>
  16410. <td>true</td>
  16411. <td>none</td>
  16412. <td>none</td>
  16413. </tr>
  16414. <tr>
  16415. <td>customFields</td>
  16416. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  16417. <td>false</td>
  16418. <td>none</td>
  16419. <td>list of custom fields</td>
  16420. </tr>
  16421. <tr>
  16422. <td>dateLastActivity</td>
  16423. <td>string</td>
  16424. <td>true</td>
  16425. <td>none</td>
  16426. <td>Date of last activity</td>
  16427. </tr>
  16428. <tr>
  16429. <td>description</td>
  16430. <td>string¦null</td>
  16431. <td>false</td>
  16432. <td>none</td>
  16433. <td>description of the card</td>
  16434. </tr>
  16435. <tr>
  16436. <td>requestedBy</td>
  16437. <td>string¦null</td>
  16438. <td>false</td>
  16439. <td>none</td>
  16440. <td>who requested the card (ID of the user)</td>
  16441. </tr>
  16442. <tr>
  16443. <td>assignedBy</td>
  16444. <td>string¦null</td>
  16445. <td>false</td>
  16446. <td>none</td>
  16447. <td>who assigned the card (ID of the user)</td>
  16448. </tr>
  16449. <tr>
  16450. <td>labelIds</td>
  16451. <td>[string]¦null</td>
  16452. <td>false</td>
  16453. <td>none</td>
  16454. <td>list of labels ID the card has</td>
  16455. </tr>
  16456. <tr>
  16457. <td>members</td>
  16458. <td>[string]¦null</td>
  16459. <td>false</td>
  16460. <td>none</td>
  16461. <td>list of members (user IDs)</td>
  16462. </tr>
  16463. <tr>
  16464. <td>assignees</td>
  16465. <td>[string]¦null</td>
  16466. <td>false</td>
  16467. <td>none</td>
  16468. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  16469. </tr>
  16470. <tr>
  16471. <td>receivedAt</td>
  16472. <td>string¦null</td>
  16473. <td>false</td>
  16474. <td>none</td>
  16475. <td>Date the card was received</td>
  16476. </tr>
  16477. <tr>
  16478. <td>startAt</td>
  16479. <td>string¦null</td>
  16480. <td>false</td>
  16481. <td>none</td>
  16482. <td>Date the card was started to be worked on</td>
  16483. </tr>
  16484. <tr>
  16485. <td>dueAt</td>
  16486. <td>string¦null</td>
  16487. <td>false</td>
  16488. <td>none</td>
  16489. <td>Date the card is due</td>
  16490. </tr>
  16491. <tr>
  16492. <td>endAt</td>
  16493. <td>string¦null</td>
  16494. <td>false</td>
  16495. <td>none</td>
  16496. <td>Date the card ended</td>
  16497. </tr>
  16498. <tr>
  16499. <td>spentTime</td>
  16500. <td>number¦null</td>
  16501. <td>false</td>
  16502. <td>none</td>
  16503. <td>How much time has been spent on this</td>
  16504. </tr>
  16505. <tr>
  16506. <td>isOvertime</td>
  16507. <td>boolean¦null</td>
  16508. <td>false</td>
  16509. <td>none</td>
  16510. <td>is the card over time?</td>
  16511. </tr>
  16512. <tr>
  16513. <td>userId</td>
  16514. <td>string</td>
  16515. <td>true</td>
  16516. <td>none</td>
  16517. <td>user ID of the author of the card</td>
  16518. </tr>
  16519. <tr>
  16520. <td>sort</td>
  16521. <td>number¦null</td>
  16522. <td>false</td>
  16523. <td>none</td>
  16524. <td>Sort value</td>
  16525. </tr>
  16526. <tr>
  16527. <td>subtaskSort</td>
  16528. <td>number¦null</td>
  16529. <td>false</td>
  16530. <td>none</td>
  16531. <td>subtask sort value</td>
  16532. </tr>
  16533. <tr>
  16534. <td>type</td>
  16535. <td>string</td>
  16536. <td>true</td>
  16537. <td>none</td>
  16538. <td>type of the card</td>
  16539. </tr>
  16540. <tr>
  16541. <td>linkedId</td>
  16542. <td>string¦null</td>
  16543. <td>false</td>
  16544. <td>none</td>
  16545. <td>ID of the linked card</td>
  16546. </tr>
  16547. <tr>
  16548. <td>vote</td>
  16549. <td><a href="#schemacardsvote">CardsVote</a></td>
  16550. <td>false</td>
  16551. <td>none</td>
  16552. <td>none</td>
  16553. </tr>
  16554. <tr>
  16555. <td>poker</td>
  16556. <td><a href="#schemacardspoker">CardsPoker</a></td>
  16557. <td>false</td>
  16558. <td>none</td>
  16559. <td>none</td>
  16560. </tr>
  16561. <tr>
  16562. <td>targetId_gantt</td>
  16563. <td>[string]¦null</td>
  16564. <td>false</td>
  16565. <td>none</td>
  16566. <td>ID of card which is the child link in gantt view</td>
  16567. </tr>
  16568. <tr>
  16569. <td>linkType_gantt</td>
  16570. <td>[number]¦null</td>
  16571. <td>false</td>
  16572. <td>none</td>
  16573. <td>ID of card which is the parent link in gantt view</td>
  16574. </tr>
  16575. <tr>
  16576. <td>linkId_gantt</td>
  16577. <td>[string]¦null</td>
  16578. <td>false</td>
  16579. <td>none</td>
  16580. <td>ID of card which is the parent link in gantt view</td>
  16581. </tr>
  16582. <tr>
  16583. <td>cardNumber</td>
  16584. <td>number¦null</td>
  16585. <td>false</td>
  16586. <td>none</td>
  16587. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  16588. </tr>
  16589. </tbody>
  16590. </table>
  16591. <h4 id="enumerated-values-3">Enumerated Values</h4>
  16592. <table>
  16593. <thead>
  16594. <tr>
  16595. <th>Property</th>
  16596. <th>Value</th>
  16597. </tr>
  16598. </thead>
  16599. <tbody>
  16600. <tr>
  16601. <td>color</td>
  16602. <td>white</td>
  16603. </tr>
  16604. <tr>
  16605. <td>color</td>
  16606. <td>green</td>
  16607. </tr>
  16608. <tr>
  16609. <td>color</td>
  16610. <td>yellow</td>
  16611. </tr>
  16612. <tr>
  16613. <td>color</td>
  16614. <td>orange</td>
  16615. </tr>
  16616. <tr>
  16617. <td>color</td>
  16618. <td>red</td>
  16619. </tr>
  16620. <tr>
  16621. <td>color</td>
  16622. <td>purple</td>
  16623. </tr>
  16624. <tr>
  16625. <td>color</td>
  16626. <td>blue</td>
  16627. </tr>
  16628. <tr>
  16629. <td>color</td>
  16630. <td>sky</td>
  16631. </tr>
  16632. <tr>
  16633. <td>color</td>
  16634. <td>lime</td>
  16635. </tr>
  16636. <tr>
  16637. <td>color</td>
  16638. <td>pink</td>
  16639. </tr>
  16640. <tr>
  16641. <td>color</td>
  16642. <td>black</td>
  16643. </tr>
  16644. <tr>
  16645. <td>color</td>
  16646. <td>silver</td>
  16647. </tr>
  16648. <tr>
  16649. <td>color</td>
  16650. <td>peachpuff</td>
  16651. </tr>
  16652. <tr>
  16653. <td>color</td>
  16654. <td>crimson</td>
  16655. </tr>
  16656. <tr>
  16657. <td>color</td>
  16658. <td>plum</td>
  16659. </tr>
  16660. <tr>
  16661. <td>color</td>
  16662. <td>darkgreen</td>
  16663. </tr>
  16664. <tr>
  16665. <td>color</td>
  16666. <td>slateblue</td>
  16667. </tr>
  16668. <tr>
  16669. <td>color</td>
  16670. <td>magenta</td>
  16671. </tr>
  16672. <tr>
  16673. <td>color</td>
  16674. <td>gold</td>
  16675. </tr>
  16676. <tr>
  16677. <td>color</td>
  16678. <td>navy</td>
  16679. </tr>
  16680. <tr>
  16681. <td>color</td>
  16682. <td>gray</td>
  16683. </tr>
  16684. <tr>
  16685. <td>color</td>
  16686. <td>saddlebrown</td>
  16687. </tr>
  16688. <tr>
  16689. <td>color</td>
  16690. <td>paleturquoise</td>
  16691. </tr>
  16692. <tr>
  16693. <td>color</td>
  16694. <td>mistyrose</td>
  16695. </tr>
  16696. <tr>
  16697. <td>color</td>
  16698. <td>indigo</td>
  16699. </tr>
  16700. </tbody>
  16701. </table>
  16702. <h2 id="tocs_cardsvote">CardsVote</h2>
  16703. <p><a id="schemacardsvote"></a>
  16704. <a id="schema_CardsVote"></a>
  16705. <a id="tocScardsvote"></a>
  16706. <a id="tocscardsvote"></a></p>
  16707. <pre class="highlight tab tab-json"><code>{
  16708. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16709. <span class="hljs-attr">&quot;positive&quot;</span>: [
  16710. <span class="hljs-string">&quot;string&quot;</span>
  16711. ],
  16712. <span class="hljs-attr">&quot;negative&quot;</span>: [
  16713. <span class="hljs-string">&quot;string&quot;</span>
  16714. ],
  16715. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16716. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  16717. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  16718. }
  16719. </code></pre>
  16720. <h3 id="properties-8">Properties</h3>
  16721. <table>
  16722. <thead>
  16723. <tr>
  16724. <th>Name</th>
  16725. <th>Type</th>
  16726. <th>Required</th>
  16727. <th>Restrictions</th>
  16728. <th>Description</th>
  16729. </tr>
  16730. </thead>
  16731. <tbody>
  16732. <tr>
  16733. <td>question</td>
  16734. <td>string</td>
  16735. <td>true</td>
  16736. <td>none</td>
  16737. <td>none</td>
  16738. </tr>
  16739. <tr>
  16740. <td>positive</td>
  16741. <td>[string]</td>
  16742. <td>false</td>
  16743. <td>none</td>
  16744. <td>list of members (user IDs)</td>
  16745. </tr>
  16746. <tr>
  16747. <td>negative</td>
  16748. <td>[string]</td>
  16749. <td>false</td>
  16750. <td>none</td>
  16751. <td>list of members (user IDs)</td>
  16752. </tr>
  16753. <tr>
  16754. <td>end</td>
  16755. <td>string</td>
  16756. <td>false</td>
  16757. <td>none</td>
  16758. <td>none</td>
  16759. </tr>
  16760. <tr>
  16761. <td>public</td>
  16762. <td>boolean</td>
  16763. <td>true</td>
  16764. <td>none</td>
  16765. <td>none</td>
  16766. </tr>
  16767. <tr>
  16768. <td>allowNonBoardMembers</td>
  16769. <td>boolean</td>
  16770. <td>true</td>
  16771. <td>none</td>
  16772. <td>none</td>
  16773. </tr>
  16774. </tbody>
  16775. </table>
  16776. <h2 id="tocs_cardspoker">CardsPoker</h2>
  16777. <p><a id="schemacardspoker"></a>
  16778. <a id="schema_CardsPoker"></a>
  16779. <a id="tocScardspoker"></a>
  16780. <a id="tocscardspoker"></a></p>
  16781. <pre class="highlight tab tab-json"><code>{
  16782. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  16783. <span class="hljs-attr">&quot;one&quot;</span>: [
  16784. <span class="hljs-string">&quot;string&quot;</span>
  16785. ],
  16786. <span class="hljs-attr">&quot;two&quot;</span>: [
  16787. <span class="hljs-string">&quot;string&quot;</span>
  16788. ],
  16789. <span class="hljs-attr">&quot;three&quot;</span>: [
  16790. <span class="hljs-string">&quot;string&quot;</span>
  16791. ],
  16792. <span class="hljs-attr">&quot;five&quot;</span>: [
  16793. <span class="hljs-string">&quot;string&quot;</span>
  16794. ],
  16795. <span class="hljs-attr">&quot;eight&quot;</span>: [
  16796. <span class="hljs-string">&quot;string&quot;</span>
  16797. ],
  16798. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  16799. <span class="hljs-string">&quot;string&quot;</span>
  16800. ],
  16801. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  16802. <span class="hljs-string">&quot;string&quot;</span>
  16803. ],
  16804. <span class="hljs-attr">&quot;forty&quot;</span>: [
  16805. <span class="hljs-string">&quot;string&quot;</span>
  16806. ],
  16807. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  16808. <span class="hljs-string">&quot;string&quot;</span>
  16809. ],
  16810. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  16811. <span class="hljs-string">&quot;string&quot;</span>
  16812. ],
  16813. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16814. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16815. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  16816. }
  16817. </code></pre>
  16818. <h3 id="properties-9">Properties</h3>
  16819. <table>
  16820. <thead>
  16821. <tr>
  16822. <th>Name</th>
  16823. <th>Type</th>
  16824. <th>Required</th>
  16825. <th>Restrictions</th>
  16826. <th>Description</th>
  16827. </tr>
  16828. </thead>
  16829. <tbody>
  16830. <tr>
  16831. <td>question</td>
  16832. <td>boolean</td>
  16833. <td>true</td>
  16834. <td>none</td>
  16835. <td>none</td>
  16836. </tr>
  16837. <tr>
  16838. <td>one</td>
  16839. <td>[string]</td>
  16840. <td>false</td>
  16841. <td>none</td>
  16842. <td>poker card one</td>
  16843. </tr>
  16844. <tr>
  16845. <td>two</td>
  16846. <td>[string]</td>
  16847. <td>false</td>
  16848. <td>none</td>
  16849. <td>poker card two</td>
  16850. </tr>
  16851. <tr>
  16852. <td>three</td>
  16853. <td>[string]</td>
  16854. <td>false</td>
  16855. <td>none</td>
  16856. <td>poker card three</td>
  16857. </tr>
  16858. <tr>
  16859. <td>five</td>
  16860. <td>[string]</td>
  16861. <td>false</td>
  16862. <td>none</td>
  16863. <td>poker card five</td>
  16864. </tr>
  16865. <tr>
  16866. <td>eight</td>
  16867. <td>[string]</td>
  16868. <td>false</td>
  16869. <td>none</td>
  16870. <td>poker card eight</td>
  16871. </tr>
  16872. <tr>
  16873. <td>thirteen</td>
  16874. <td>[string]</td>
  16875. <td>false</td>
  16876. <td>none</td>
  16877. <td>poker card thirteen</td>
  16878. </tr>
  16879. <tr>
  16880. <td>twenty</td>
  16881. <td>[string]</td>
  16882. <td>false</td>
  16883. <td>none</td>
  16884. <td>poker card twenty</td>
  16885. </tr>
  16886. <tr>
  16887. <td>forty</td>
  16888. <td>[string]</td>
  16889. <td>false</td>
  16890. <td>none</td>
  16891. <td>poker card forty</td>
  16892. </tr>
  16893. <tr>
  16894. <td>oneHundred</td>
  16895. <td>[string]</td>
  16896. <td>false</td>
  16897. <td>none</td>
  16898. <td>poker card oneHundred</td>
  16899. </tr>
  16900. <tr>
  16901. <td>unsure</td>
  16902. <td>[string]</td>
  16903. <td>false</td>
  16904. <td>none</td>
  16905. <td>poker card unsure</td>
  16906. </tr>
  16907. <tr>
  16908. <td>end</td>
  16909. <td>string</td>
  16910. <td>false</td>
  16911. <td>none</td>
  16912. <td>none</td>
  16913. </tr>
  16914. <tr>
  16915. <td>allowNonBoardMembers</td>
  16916. <td>boolean</td>
  16917. <td>true</td>
  16918. <td>none</td>
  16919. <td>none</td>
  16920. </tr>
  16921. <tr>
  16922. <td>estimation</td>
  16923. <td>number</td>
  16924. <td>false</td>
  16925. <td>none</td>
  16926. <td>poker estimation value</td>
  16927. </tr>
  16928. </tbody>
  16929. </table>
  16930. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  16931. <p><a id="schemacardscustomfields"></a>
  16932. <a id="schema_CardsCustomfields"></a>
  16933. <a id="tocScardscustomfields"></a>
  16934. <a id="tocscardscustomfields"></a></p>
  16935. <pre class="highlight tab tab-json"><code>{}
  16936. </code></pre>
  16937. <h3 id="properties-10">Properties</h3>
  16938. <p><em>None</em></p>
  16939. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  16940. <p><a id="schemachecklistitems"></a>
  16941. <a id="schema_ChecklistItems"></a>
  16942. <a id="tocSchecklistitems"></a>
  16943. <a id="tocschecklistitems"></a></p>
  16944. <pre class="highlight tab tab-json"><code>{
  16945. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16946. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  16947. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  16948. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16949. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16950. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16951. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16952. }
  16953. </code></pre>
  16954. <p>An item in a checklist</p>
  16955. <h3 id="properties-11">Properties</h3>
  16956. <table>
  16957. <thead>
  16958. <tr>
  16959. <th>Name</th>
  16960. <th>Type</th>
  16961. <th>Required</th>
  16962. <th>Restrictions</th>
  16963. <th>Description</th>
  16964. </tr>
  16965. </thead>
  16966. <tbody>
  16967. <tr>
  16968. <td>title</td>
  16969. <td>string</td>
  16970. <td>true</td>
  16971. <td>none</td>
  16972. <td>the text of the item</td>
  16973. </tr>
  16974. <tr>
  16975. <td>sort</td>
  16976. <td>number</td>
  16977. <td>true</td>
  16978. <td>none</td>
  16979. <td>the sorting field of the item</td>
  16980. </tr>
  16981. <tr>
  16982. <td>isFinished</td>
  16983. <td>boolean</td>
  16984. <td>true</td>
  16985. <td>none</td>
  16986. <td>Is the item checked?</td>
  16987. </tr>
  16988. <tr>
  16989. <td>checklistId</td>
  16990. <td>string</td>
  16991. <td>true</td>
  16992. <td>none</td>
  16993. <td>the checklist ID the item is attached to</td>
  16994. </tr>
  16995. <tr>
  16996. <td>cardId</td>
  16997. <td>string</td>
  16998. <td>true</td>
  16999. <td>none</td>
  17000. <td>the card ID the item is attached to</td>
  17001. </tr>
  17002. <tr>
  17003. <td>createdAt</td>
  17004. <td>string¦null</td>
  17005. <td>false</td>
  17006. <td>none</td>
  17007. <td>none</td>
  17008. </tr>
  17009. <tr>
  17010. <td>modifiedAt</td>
  17011. <td>string</td>
  17012. <td>true</td>
  17013. <td>none</td>
  17014. <td>none</td>
  17015. </tr>
  17016. </tbody>
  17017. </table>
  17018. <h2 id="tocs_checklists">Checklists</h2>
  17019. <p><a id="schemachecklists"></a>
  17020. <a id="schema_Checklists"></a>
  17021. <a id="tocSchecklists"></a>
  17022. <a id="tocschecklists"></a></p>
  17023. <pre class="highlight tab tab-json"><code>{
  17024. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17025. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17026. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17027. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17028. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17029. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  17030. }
  17031. </code></pre>
  17032. <p>A Checklist</p>
  17033. <h3 id="properties-12">Properties</h3>
  17034. <table>
  17035. <thead>
  17036. <tr>
  17037. <th>Name</th>
  17038. <th>Type</th>
  17039. <th>Required</th>
  17040. <th>Restrictions</th>
  17041. <th>Description</th>
  17042. </tr>
  17043. </thead>
  17044. <tbody>
  17045. <tr>
  17046. <td>cardId</td>
  17047. <td>string</td>
  17048. <td>true</td>
  17049. <td>none</td>
  17050. <td>The ID of the card the checklist is in</td>
  17051. </tr>
  17052. <tr>
  17053. <td>title</td>
  17054. <td>string</td>
  17055. <td>true</td>
  17056. <td>none</td>
  17057. <td>the title of the checklist</td>
  17058. </tr>
  17059. <tr>
  17060. <td>finishedAt</td>
  17061. <td>string¦null</td>
  17062. <td>false</td>
  17063. <td>none</td>
  17064. <td>When was the checklist finished</td>
  17065. </tr>
  17066. <tr>
  17067. <td>createdAt</td>
  17068. <td>string</td>
  17069. <td>true</td>
  17070. <td>none</td>
  17071. <td>Creation date of the checklist</td>
  17072. </tr>
  17073. <tr>
  17074. <td>modifiedAt</td>
  17075. <td>string</td>
  17076. <td>true</td>
  17077. <td>none</td>
  17078. <td>none</td>
  17079. </tr>
  17080. <tr>
  17081. <td>sort</td>
  17082. <td>number</td>
  17083. <td>true</td>
  17084. <td>none</td>
  17085. <td>sorting value of the checklist</td>
  17086. </tr>
  17087. </tbody>
  17088. </table>
  17089. <h2 id="tocs_customfields">CustomFields</h2>
  17090. <p><a id="schemacustomfields"></a>
  17091. <a id="schema_CustomFields"></a>
  17092. <a id="tocScustomfields"></a>
  17093. <a id="tocscustomfields"></a></p>
  17094. <pre class="highlight tab tab-json"><code>{
  17095. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  17096. <span class="hljs-string">&quot;string&quot;</span>
  17097. ],
  17098. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17099. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  17100. <span class="hljs-attr">&quot;settings&quot;</span>: {
  17101. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17102. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17103. {}
  17104. ],
  17105. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17106. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17107. },
  17108. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17109. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17110. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17111. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  17112. <span class="hljs-attr">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  17113. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17114. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17115. }
  17116. </code></pre>
  17117. <p>A custom field on a card in the board</p>
  17118. <h3 id="properties-13">Properties</h3>
  17119. <table>
  17120. <thead>
  17121. <tr>
  17122. <th>Name</th>
  17123. <th>Type</th>
  17124. <th>Required</th>
  17125. <th>Restrictions</th>
  17126. <th>Description</th>
  17127. </tr>
  17128. </thead>
  17129. <tbody>
  17130. <tr>
  17131. <td>boardIds</td>
  17132. <td>[string]</td>
  17133. <td>true</td>
  17134. <td>none</td>
  17135. <td>the ID of the board</td>
  17136. </tr>
  17137. <tr>
  17138. <td>name</td>
  17139. <td>string</td>
  17140. <td>true</td>
  17141. <td>none</td>
  17142. <td>name of the custom field</td>
  17143. </tr>
  17144. <tr>
  17145. <td>type</td>
  17146. <td>string</td>
  17147. <td>true</td>
  17148. <td>none</td>
  17149. <td>type of the custom field</td>
  17150. </tr>
  17151. <tr>
  17152. <td>settings</td>
  17153. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  17154. <td>true</td>
  17155. <td>none</td>
  17156. <td>none</td>
  17157. </tr>
  17158. <tr>
  17159. <td>showOnCard</td>
  17160. <td>boolean</td>
  17161. <td>true</td>
  17162. <td>none</td>
  17163. <td>should we show on the cards this custom field</td>
  17164. </tr>
  17165. <tr>
  17166. <td>automaticallyOnCard</td>
  17167. <td>boolean</td>
  17168. <td>true</td>
  17169. <td>none</td>
  17170. <td>should the custom fields automatically be added on cards?</td>
  17171. </tr>
  17172. <tr>
  17173. <td>alwaysOnCard</td>
  17174. <td>boolean</td>
  17175. <td>true</td>
  17176. <td>none</td>
  17177. <td>should the custom field be automatically added to all cards?</td>
  17178. </tr>
  17179. <tr>
  17180. <td>showLabelOnMiniCard</td>
  17181. <td>boolean</td>
  17182. <td>true</td>
  17183. <td>none</td>
  17184. <td>should the label of the custom field be shown on minicards?</td>
  17185. </tr>
  17186. <tr>
  17187. <td>showSumAtTopOfList</td>
  17188. <td>boolean</td>
  17189. <td>true</td>
  17190. <td>none</td>
  17191. <td>should the sum of the custom fields be shown at top of list?</td>
  17192. </tr>
  17193. <tr>
  17194. <td>createdAt</td>
  17195. <td>string¦null</td>
  17196. <td>false</td>
  17197. <td>none</td>
  17198. <td>none</td>
  17199. </tr>
  17200. <tr>
  17201. <td>modifiedAt</td>
  17202. <td>string</td>
  17203. <td>true</td>
  17204. <td>none</td>
  17205. <td>none</td>
  17206. </tr>
  17207. </tbody>
  17208. </table>
  17209. <h4 id="enumerated-values-4">Enumerated Values</h4>
  17210. <table>
  17211. <thead>
  17212. <tr>
  17213. <th>Property</th>
  17214. <th>Value</th>
  17215. </tr>
  17216. </thead>
  17217. <tbody>
  17218. <tr>
  17219. <td>type</td>
  17220. <td>text</td>
  17221. </tr>
  17222. <tr>
  17223. <td>type</td>
  17224. <td>number</td>
  17225. </tr>
  17226. <tr>
  17227. <td>type</td>
  17228. <td>date</td>
  17229. </tr>
  17230. <tr>
  17231. <td>type</td>
  17232. <td>dropdown</td>
  17233. </tr>
  17234. <tr>
  17235. <td>type</td>
  17236. <td>checkbox</td>
  17237. </tr>
  17238. <tr>
  17239. <td>type</td>
  17240. <td>currency</td>
  17241. </tr>
  17242. <tr>
  17243. <td>type</td>
  17244. <td>stringtemplate</td>
  17245. </tr>
  17246. </tbody>
  17247. </table>
  17248. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  17249. <p><a id="schemacustomfieldssettings"></a>
  17250. <a id="schema_CustomFieldsSettings"></a>
  17251. <a id="tocScustomfieldssettings"></a>
  17252. <a id="tocscustomfieldssettings"></a></p>
  17253. <pre class="highlight tab tab-json"><code>{
  17254. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17255. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17256. {}
  17257. ],
  17258. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17259. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17260. }
  17261. </code></pre>
  17262. <h3 id="properties-14">Properties</h3>
  17263. <table>
  17264. <thead>
  17265. <tr>
  17266. <th>Name</th>
  17267. <th>Type</th>
  17268. <th>Required</th>
  17269. <th>Restrictions</th>
  17270. <th>Description</th>
  17271. </tr>
  17272. </thead>
  17273. <tbody>
  17274. <tr>
  17275. <td>currencyCode</td>
  17276. <td>string</td>
  17277. <td>false</td>
  17278. <td>none</td>
  17279. <td>none</td>
  17280. </tr>
  17281. <tr>
  17282. <td>dropdownItems</td>
  17283. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  17284. <td>false</td>
  17285. <td>none</td>
  17286. <td>list of drop down items objects</td>
  17287. </tr>
  17288. <tr>
  17289. <td>stringtemplateFormat</td>
  17290. <td>string</td>
  17291. <td>false</td>
  17292. <td>none</td>
  17293. <td>none</td>
  17294. </tr>
  17295. <tr>
  17296. <td>stringtemplateSeparator</td>
  17297. <td>string</td>
  17298. <td>false</td>
  17299. <td>none</td>
  17300. <td>none</td>
  17301. </tr>
  17302. </tbody>
  17303. </table>
  17304. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  17305. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  17306. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  17307. <a id="tocScustomfieldssettingsdropdownitems"></a>
  17308. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  17309. <pre class="highlight tab tab-json"><code>{}
  17310. </code></pre>
  17311. <h3 id="properties-15">Properties</h3>
  17312. <p><em>None</em></p>
  17313. <h2 id="tocs_integrations">Integrations</h2>
  17314. <p><a id="schemaintegrations"></a>
  17315. <a id="schema_Integrations"></a>
  17316. <a id="tocSintegrations"></a>
  17317. <a id="tocsintegrations"></a></p>
  17318. <pre class="highlight tab tab-json"><code>{
  17319. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  17320. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17321. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17322. <span class="hljs-attr">&quot;activities&quot;</span>: [
  17323. <span class="hljs-string">&quot;string&quot;</span>
  17324. ],
  17325. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17326. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17327. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17328. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17329. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17330. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17331. }
  17332. </code></pre>
  17333. <p>Integration with third-party applications</p>
  17334. <h3 id="properties-16">Properties</h3>
  17335. <table>
  17336. <thead>
  17337. <tr>
  17338. <th>Name</th>
  17339. <th>Type</th>
  17340. <th>Required</th>
  17341. <th>Restrictions</th>
  17342. <th>Description</th>
  17343. </tr>
  17344. </thead>
  17345. <tbody>
  17346. <tr>
  17347. <td>enabled</td>
  17348. <td>boolean</td>
  17349. <td>true</td>
  17350. <td>none</td>
  17351. <td>is the integration enabled?</td>
  17352. </tr>
  17353. <tr>
  17354. <td>title</td>
  17355. <td>string¦null</td>
  17356. <td>false</td>
  17357. <td>none</td>
  17358. <td>name of the integration</td>
  17359. </tr>
  17360. <tr>
  17361. <td>type</td>
  17362. <td>string</td>
  17363. <td>true</td>
  17364. <td>none</td>
  17365. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  17366. </tr>
  17367. <tr>
  17368. <td>activities</td>
  17369. <td>[string]</td>
  17370. <td>true</td>
  17371. <td>none</td>
  17372. <td>activities the integration gets triggered (list)</td>
  17373. </tr>
  17374. <tr>
  17375. <td>url</td>
  17376. <td>string</td>
  17377. <td>true</td>
  17378. <td>none</td>
  17379. <td>none</td>
  17380. </tr>
  17381. <tr>
  17382. <td>token</td>
  17383. <td>string¦null</td>
  17384. <td>false</td>
  17385. <td>none</td>
  17386. <td>token of the integration</td>
  17387. </tr>
  17388. <tr>
  17389. <td>boardId</td>
  17390. <td>string</td>
  17391. <td>true</td>
  17392. <td>none</td>
  17393. <td>Board ID of the integration</td>
  17394. </tr>
  17395. <tr>
  17396. <td>createdAt</td>
  17397. <td>string</td>
  17398. <td>true</td>
  17399. <td>none</td>
  17400. <td>Creation date of the integration</td>
  17401. </tr>
  17402. <tr>
  17403. <td>modifiedAt</td>
  17404. <td>string</td>
  17405. <td>true</td>
  17406. <td>none</td>
  17407. <td>none</td>
  17408. </tr>
  17409. <tr>
  17410. <td>userId</td>
  17411. <td>string</td>
  17412. <td>true</td>
  17413. <td>none</td>
  17414. <td>user ID who created the interation</td>
  17415. </tr>
  17416. </tbody>
  17417. </table>
  17418. <h2 id="tocs_lists">Lists</h2>
  17419. <p><a id="schemalists"></a>
  17420. <a id="schema_Lists"></a>
  17421. <a id="tocSlists"></a>
  17422. <a id="tocslists"></a></p>
  17423. <pre class="highlight tab tab-json"><code>{
  17424. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17425. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  17426. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17427. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17428. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17429. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17430. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17431. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17432. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17433. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17434. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  17435. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  17436. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  17437. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  17438. },
  17439. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17440. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17441. }
  17442. </code></pre>
  17443. <p>A list (column) in the Wekan board.</p>
  17444. <h3 id="properties-17">Properties</h3>
  17445. <table>
  17446. <thead>
  17447. <tr>
  17448. <th>Name</th>
  17449. <th>Type</th>
  17450. <th>Required</th>
  17451. <th>Restrictions</th>
  17452. <th>Description</th>
  17453. </tr>
  17454. </thead>
  17455. <tbody>
  17456. <tr>
  17457. <td>title</td>
  17458. <td>string</td>
  17459. <td>true</td>
  17460. <td>none</td>
  17461. <td>the title of the list</td>
  17462. </tr>
  17463. <tr>
  17464. <td>starred</td>
  17465. <td>boolean¦null</td>
  17466. <td>false</td>
  17467. <td>none</td>
  17468. <td>if a list is stared<br />then we put it on the top</td>
  17469. </tr>
  17470. <tr>
  17471. <td>archived</td>
  17472. <td>boolean</td>
  17473. <td>true</td>
  17474. <td>none</td>
  17475. <td>is the list archived</td>
  17476. </tr>
  17477. <tr>
  17478. <td>archivedAt</td>
  17479. <td>string¦null</td>
  17480. <td>false</td>
  17481. <td>none</td>
  17482. <td>latest archiving date</td>
  17483. </tr>
  17484. <tr>
  17485. <td>boardId</td>
  17486. <td>string</td>
  17487. <td>true</td>
  17488. <td>none</td>
  17489. <td>the board associated to this list</td>
  17490. </tr>
  17491. <tr>
  17492. <td>swimlaneId</td>
  17493. <td>string</td>
  17494. <td>true</td>
  17495. <td>none</td>
  17496. <td>the swimlane associated to this list. Used for templates</td>
  17497. </tr>
  17498. <tr>
  17499. <td>createdAt</td>
  17500. <td>string</td>
  17501. <td>true</td>
  17502. <td>none</td>
  17503. <td>creation date</td>
  17504. </tr>
  17505. <tr>
  17506. <td>sort</td>
  17507. <td>number¦null</td>
  17508. <td>false</td>
  17509. <td>none</td>
  17510. <td>is the list sorted</td>
  17511. </tr>
  17512. <tr>
  17513. <td>updatedAt</td>
  17514. <td>string¦null</td>
  17515. <td>false</td>
  17516. <td>none</td>
  17517. <td>last update of the list</td>
  17518. </tr>
  17519. <tr>
  17520. <td>modifiedAt</td>
  17521. <td>string</td>
  17522. <td>true</td>
  17523. <td>none</td>
  17524. <td>none</td>
  17525. </tr>
  17526. <tr>
  17527. <td>wipLimit</td>
  17528. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  17529. <td>false</td>
  17530. <td>none</td>
  17531. <td>none</td>
  17532. </tr>
  17533. <tr>
  17534. <td>color</td>
  17535. <td>string¦null</td>
  17536. <td>false</td>
  17537. <td>none</td>
  17538. <td>the color of the list</td>
  17539. </tr>
  17540. <tr>
  17541. <td>type</td>
  17542. <td>string</td>
  17543. <td>true</td>
  17544. <td>none</td>
  17545. <td>The type of list</td>
  17546. </tr>
  17547. </tbody>
  17548. </table>
  17549. <h4 id="enumerated-values-5">Enumerated Values</h4>
  17550. <table>
  17551. <thead>
  17552. <tr>
  17553. <th>Property</th>
  17554. <th>Value</th>
  17555. </tr>
  17556. </thead>
  17557. <tbody>
  17558. <tr>
  17559. <td>color</td>
  17560. <td>white</td>
  17561. </tr>
  17562. <tr>
  17563. <td>color</td>
  17564. <td>green</td>
  17565. </tr>
  17566. <tr>
  17567. <td>color</td>
  17568. <td>yellow</td>
  17569. </tr>
  17570. <tr>
  17571. <td>color</td>
  17572. <td>orange</td>
  17573. </tr>
  17574. <tr>
  17575. <td>color</td>
  17576. <td>red</td>
  17577. </tr>
  17578. <tr>
  17579. <td>color</td>
  17580. <td>purple</td>
  17581. </tr>
  17582. <tr>
  17583. <td>color</td>
  17584. <td>blue</td>
  17585. </tr>
  17586. <tr>
  17587. <td>color</td>
  17588. <td>sky</td>
  17589. </tr>
  17590. <tr>
  17591. <td>color</td>
  17592. <td>lime</td>
  17593. </tr>
  17594. <tr>
  17595. <td>color</td>
  17596. <td>pink</td>
  17597. </tr>
  17598. <tr>
  17599. <td>color</td>
  17600. <td>black</td>
  17601. </tr>
  17602. <tr>
  17603. <td>color</td>
  17604. <td>silver</td>
  17605. </tr>
  17606. <tr>
  17607. <td>color</td>
  17608. <td>peachpuff</td>
  17609. </tr>
  17610. <tr>
  17611. <td>color</td>
  17612. <td>crimson</td>
  17613. </tr>
  17614. <tr>
  17615. <td>color</td>
  17616. <td>plum</td>
  17617. </tr>
  17618. <tr>
  17619. <td>color</td>
  17620. <td>darkgreen</td>
  17621. </tr>
  17622. <tr>
  17623. <td>color</td>
  17624. <td>slateblue</td>
  17625. </tr>
  17626. <tr>
  17627. <td>color</td>
  17628. <td>magenta</td>
  17629. </tr>
  17630. <tr>
  17631. <td>color</td>
  17632. <td>gold</td>
  17633. </tr>
  17634. <tr>
  17635. <td>color</td>
  17636. <td>navy</td>
  17637. </tr>
  17638. <tr>
  17639. <td>color</td>
  17640. <td>gray</td>
  17641. </tr>
  17642. <tr>
  17643. <td>color</td>
  17644. <td>saddlebrown</td>
  17645. </tr>
  17646. <tr>
  17647. <td>color</td>
  17648. <td>paleturquoise</td>
  17649. </tr>
  17650. <tr>
  17651. <td>color</td>
  17652. <td>mistyrose</td>
  17653. </tr>
  17654. <tr>
  17655. <td>color</td>
  17656. <td>indigo</td>
  17657. </tr>
  17658. </tbody>
  17659. </table>
  17660. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  17661. <p><a id="schemalistswiplimit"></a>
  17662. <a id="schema_ListsWiplimit"></a>
  17663. <a id="tocSlistswiplimit"></a>
  17664. <a id="tocslistswiplimit"></a></p>
  17665. <pre class="highlight tab tab-json"><code>{
  17666. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  17667. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  17668. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  17669. }
  17670. </code></pre>
  17671. <h3 id="properties-18">Properties</h3>
  17672. <table>
  17673. <thead>
  17674. <tr>
  17675. <th>Name</th>
  17676. <th>Type</th>
  17677. <th>Required</th>
  17678. <th>Restrictions</th>
  17679. <th>Description</th>
  17680. </tr>
  17681. </thead>
  17682. <tbody>
  17683. <tr>
  17684. <td>value</td>
  17685. <td>number</td>
  17686. <td>true</td>
  17687. <td>none</td>
  17688. <td>value of the WIP</td>
  17689. </tr>
  17690. <tr>
  17691. <td>enabled</td>
  17692. <td>boolean</td>
  17693. <td>true</td>
  17694. <td>none</td>
  17695. <td>is the WIP enabled</td>
  17696. </tr>
  17697. <tr>
  17698. <td>soft</td>
  17699. <td>boolean</td>
  17700. <td>true</td>
  17701. <td>none</td>
  17702. <td>is the WIP a soft or hard requirement</td>
  17703. </tr>
  17704. </tbody>
  17705. </table>
  17706. <h2 id="tocs_swimlanes">Swimlanes</h2>
  17707. <p><a id="schemaswimlanes"></a>
  17708. <a id="schema_Swimlanes"></a>
  17709. <a id="tocSswimlanes"></a>
  17710. <a id="tocsswimlanes"></a></p>
  17711. <pre class="highlight tab tab-json"><code>{
  17712. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17713. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17714. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17715. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17716. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17717. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17718. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17719. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17720. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17721. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17722. }
  17723. </code></pre>
  17724. <p>A swimlane is an line in the kaban board.</p>
  17725. <h3 id="properties-19">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>title</td>
  17739. <td>string</td>
  17740. <td>true</td>
  17741. <td>none</td>
  17742. <td>the title of the swimlane</td>
  17743. </tr>
  17744. <tr>
  17745. <td>archived</td>
  17746. <td>boolean</td>
  17747. <td>true</td>
  17748. <td>none</td>
  17749. <td>is the swimlane archived?</td>
  17750. </tr>
  17751. <tr>
  17752. <td>archivedAt</td>
  17753. <td>string¦null</td>
  17754. <td>false</td>
  17755. <td>none</td>
  17756. <td>latest archiving date of the swimlane</td>
  17757. </tr>
  17758. <tr>
  17759. <td>boardId</td>
  17760. <td>string</td>
  17761. <td>true</td>
  17762. <td>none</td>
  17763. <td>the ID of the board the swimlane is attached to</td>
  17764. </tr>
  17765. <tr>
  17766. <td>createdAt</td>
  17767. <td>string</td>
  17768. <td>true</td>
  17769. <td>none</td>
  17770. <td>creation date of the swimlane</td>
  17771. </tr>
  17772. <tr>
  17773. <td>sort</td>
  17774. <td>number¦null</td>
  17775. <td>false</td>
  17776. <td>none</td>
  17777. <td>the sort value of the swimlane</td>
  17778. </tr>
  17779. <tr>
  17780. <td>color</td>
  17781. <td>string¦null</td>
  17782. <td>false</td>
  17783. <td>none</td>
  17784. <td>the color of the swimlane</td>
  17785. </tr>
  17786. <tr>
  17787. <td>updatedAt</td>
  17788. <td>string¦null</td>
  17789. <td>false</td>
  17790. <td>none</td>
  17791. <td>when was the swimlane last edited</td>
  17792. </tr>
  17793. <tr>
  17794. <td>modifiedAt</td>
  17795. <td>string</td>
  17796. <td>true</td>
  17797. <td>none</td>
  17798. <td>none</td>
  17799. </tr>
  17800. <tr>
  17801. <td>type</td>
  17802. <td>string</td>
  17803. <td>true</td>
  17804. <td>none</td>
  17805. <td>The type of swimlane</td>
  17806. </tr>
  17807. </tbody>
  17808. </table>
  17809. <h4 id="enumerated-values-6">Enumerated Values</h4>
  17810. <table>
  17811. <thead>
  17812. <tr>
  17813. <th>Property</th>
  17814. <th>Value</th>
  17815. </tr>
  17816. </thead>
  17817. <tbody>
  17818. <tr>
  17819. <td>color</td>
  17820. <td>white</td>
  17821. </tr>
  17822. <tr>
  17823. <td>color</td>
  17824. <td>green</td>
  17825. </tr>
  17826. <tr>
  17827. <td>color</td>
  17828. <td>yellow</td>
  17829. </tr>
  17830. <tr>
  17831. <td>color</td>
  17832. <td>orange</td>
  17833. </tr>
  17834. <tr>
  17835. <td>color</td>
  17836. <td>red</td>
  17837. </tr>
  17838. <tr>
  17839. <td>color</td>
  17840. <td>purple</td>
  17841. </tr>
  17842. <tr>
  17843. <td>color</td>
  17844. <td>blue</td>
  17845. </tr>
  17846. <tr>
  17847. <td>color</td>
  17848. <td>sky</td>
  17849. </tr>
  17850. <tr>
  17851. <td>color</td>
  17852. <td>lime</td>
  17853. </tr>
  17854. <tr>
  17855. <td>color</td>
  17856. <td>pink</td>
  17857. </tr>
  17858. <tr>
  17859. <td>color</td>
  17860. <td>black</td>
  17861. </tr>
  17862. <tr>
  17863. <td>color</td>
  17864. <td>silver</td>
  17865. </tr>
  17866. <tr>
  17867. <td>color</td>
  17868. <td>peachpuff</td>
  17869. </tr>
  17870. <tr>
  17871. <td>color</td>
  17872. <td>crimson</td>
  17873. </tr>
  17874. <tr>
  17875. <td>color</td>
  17876. <td>plum</td>
  17877. </tr>
  17878. <tr>
  17879. <td>color</td>
  17880. <td>darkgreen</td>
  17881. </tr>
  17882. <tr>
  17883. <td>color</td>
  17884. <td>slateblue</td>
  17885. </tr>
  17886. <tr>
  17887. <td>color</td>
  17888. <td>magenta</td>
  17889. </tr>
  17890. <tr>
  17891. <td>color</td>
  17892. <td>gold</td>
  17893. </tr>
  17894. <tr>
  17895. <td>color</td>
  17896. <td>navy</td>
  17897. </tr>
  17898. <tr>
  17899. <td>color</td>
  17900. <td>gray</td>
  17901. </tr>
  17902. <tr>
  17903. <td>color</td>
  17904. <td>saddlebrown</td>
  17905. </tr>
  17906. <tr>
  17907. <td>color</td>
  17908. <td>paleturquoise</td>
  17909. </tr>
  17910. <tr>
  17911. <td>color</td>
  17912. <td>mistyrose</td>
  17913. </tr>
  17914. <tr>
  17915. <td>color</td>
  17916. <td>indigo</td>
  17917. </tr>
  17918. </tbody>
  17919. </table>
  17920. <!-- Renderer: Shins v2.6.0 -->
  17921. <!-- Generator: Widdershins v4.0.1 -->
  17922. <!-- backwards compatibility -->
  17923. <!-- backwards compatibility -->
  17924. <!-- backwards compatibility -->
  17925. <!-- backwards compatibility -->
  17926. <!-- backwards compatibility -->
  17927. <!-- backwards compatibility -->
  17928. <!-- backwards compatibility -->
  17929. <!-- backwards compatibility -->
  17930. <!-- backwards compatibility -->
  17931. <!-- backwards compatibility -->
  17932. <!-- backwards compatibility -->
  17933. <!-- backwards compatibility -->
  17934. <!-- backwards compatibility -->
  17935. <!-- backwards compatibility -->
  17936. <!-- backwards compatibility -->
  17937. <!-- backwards compatibility -->
  17938. <!-- backwards compatibility -->
  17939. <!-- backwards compatibility -->
  17940. <!-- backwards compatibility -->
  17941. </div>
  17942. <div class="dark-box">
  17943. <div class="lang-selector">
  17944. <a href="#" data-language-name="shell">Shell</a>
  17945. <a href="#" data-language-name="http">HTTP</a>
  17946. <a href="#" data-language-name="javascript">JavaScript</a>
  17947. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  17948. <a href="#" data-language-name="ruby">Ruby</a>
  17949. <a href="#" data-language-name="python">Python</a>
  17950. <a href="#" data-language-name="java">Java</a>
  17951. <a href="#" data-language-name="go">Go</a>
  17952. <a href="#" data-language-name="php">PHP</a>
  17953. </div>
  17954. </div>
  17955. </div>
  17956. </body>
  17957. </html>