wekan.html 760 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>Wekan REST API</title>
  8. <style>
  9. </style>
  10. <style media="screen">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  11. /**
  12. * 1. Set default font family to sans-serif.
  13. * 2. Prevent iOS text size adjust after orientation change, without disabling
  14. * user zoom.
  15. */
  16. html {
  17. font-family: sans-serif;
  18. /* 1 */
  19. -ms-text-size-adjust: 100%;
  20. /* 2 */
  21. -webkit-text-size-adjust: 100%;
  22. /* 2 */ }
  23. /**
  24. * Remove default margin.
  25. */
  26. body {
  27. margin: 0; }
  28. /* HTML5 display definitions
  29. ========================================================================== */
  30. /**
  31. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  32. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  33. * and Firefox.
  34. * Correct `block` display not defined for `main` in IE 11.
  35. */
  36. article,
  37. aside,
  38. details,
  39. figcaption,
  40. figure,
  41. footer,
  42. header,
  43. hgroup,
  44. main,
  45. menu,
  46. nav,
  47. section,
  48. summary {
  49. display: block; }
  50. /**
  51. * 1. Correct `inline-block` display not defined in IE 8/9.
  52. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  53. */
  54. audio,
  55. canvas,
  56. progress,
  57. video {
  58. display: inline-block;
  59. /* 1 */
  60. vertical-align: baseline;
  61. /* 2 */ }
  62. /**
  63. * Prevent modern browsers from displaying `audio` without controls.
  64. * Remove excess height in iOS 5 devices.
  65. */
  66. audio:not([controls]) {
  67. display: none;
  68. height: 0; }
  69. /**
  70. * Address `[hidden]` styling not present in IE 8/9/10.
  71. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  72. */
  73. [hidden],
  74. template {
  75. display: none; }
  76. /* Links
  77. ========================================================================== */
  78. /**
  79. * Remove the gray background color from active links in IE 10.
  80. */
  81. a {
  82. background-color: transparent; }
  83. /**
  84. * Improve readability when focused and also mouse hovered in all browsers.
  85. */
  86. a:active,
  87. a:hover {
  88. outline: 0; }
  89. /* Text-level semantics
  90. ========================================================================== */
  91. /**
  92. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  93. */
  94. abbr[title] {
  95. border-bottom: 1px dotted; }
  96. /**
  97. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  98. */
  99. b,
  100. strong {
  101. font-weight: bold; }
  102. /**
  103. * Address styling not present in Safari and Chrome.
  104. */
  105. dfn {
  106. font-style: italic; }
  107. /**
  108. * Address variable `h1` font-size and margin within `section` and `article`
  109. * contexts in Firefox 4+, Safari, and Chrome.
  110. */
  111. h1 {
  112. font-size: 2em;
  113. margin: 0.67em 0; }
  114. /**
  115. * Address styling not present in IE 8/9.
  116. */
  117. mark {
  118. background: #ff0;
  119. color: #000; }
  120. /**
  121. * Address inconsistent and variable font size in all browsers.
  122. */
  123. small {
  124. font-size: 80%; }
  125. /**
  126. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  127. */
  128. sub,
  129. sup {
  130. font-size: 75%;
  131. line-height: 0;
  132. position: relative;
  133. vertical-align: baseline; }
  134. sup {
  135. top: -0.5em; }
  136. sub {
  137. bottom: -0.25em; }
  138. /* Embedded content
  139. ========================================================================== */
  140. /**
  141. * Remove border when inside `a` element in IE 8/9/10.
  142. */
  143. img {
  144. border: 0; }
  145. /**
  146. * Correct overflow not hidden in IE 9/10/11.
  147. */
  148. svg:not(:root) {
  149. overflow: hidden; }
  150. /* Grouping content
  151. ========================================================================== */
  152. /**
  153. * Address margin not present in IE 8/9 and Safari.
  154. */
  155. figure {
  156. margin: 1em 40px; }
  157. /**
  158. * Address differences between Firefox and other browsers.
  159. */
  160. hr {
  161. -moz-box-sizing: content-box;
  162. box-sizing: content-box;
  163. height: 0; }
  164. /**
  165. * Contain overflow in all browsers.
  166. */
  167. pre {
  168. overflow: auto; }
  169. /**
  170. * Address odd `em`-unit font size rendering in all browsers.
  171. */
  172. code,
  173. kbd,
  174. pre,
  175. samp {
  176. font-family: monospace, monospace;
  177. font-size: 1em; }
  178. /* Forms
  179. ========================================================================== */
  180. /**
  181. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  182. * styling of `select`, unless a `border` property is set.
  183. */
  184. /**
  185. * 1. Correct color not being inherited.
  186. * Known issue: affects color of disabled elements.
  187. * 2. Correct font properties not being inherited.
  188. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  189. */
  190. button,
  191. input,
  192. optgroup,
  193. select,
  194. textarea {
  195. color: inherit;
  196. /* 1 */
  197. font: inherit;
  198. /* 2 */
  199. margin: 0;
  200. /* 3 */ }
  201. /**
  202. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  203. */
  204. button {
  205. overflow: visible; }
  206. /**
  207. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  208. * All other form control elements do not inherit `text-transform` values.
  209. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  210. * Correct `select` style inheritance in Firefox.
  211. */
  212. button,
  213. select {
  214. text-transform: none; }
  215. /**
  216. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  217. * and `video` controls.
  218. * 2. Correct inability to style clickable `input` types in iOS.
  219. * 3. Improve usability and consistency of cursor style between image-type
  220. * `input` and others.
  221. */
  222. button,
  223. html input[type="button"],
  224. input[type="reset"],
  225. input[type="submit"] {
  226. -webkit-appearance: button;
  227. /* 2 */
  228. cursor: pointer;
  229. /* 3 */ }
  230. /**
  231. * Re-set default cursor for disabled elements.
  232. */
  233. button[disabled],
  234. html input[disabled] {
  235. cursor: default; }
  236. /**
  237. * Remove inner padding and border in Firefox 4+.
  238. */
  239. button::-moz-focus-inner,
  240. input::-moz-focus-inner {
  241. border: 0;
  242. padding: 0; }
  243. /**
  244. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  245. * the UA stylesheet.
  246. */
  247. input {
  248. line-height: normal; }
  249. /**
  250. * It's recommended that you don't attempt to style these elements.
  251. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  252. *
  253. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  254. * 2. Remove excess padding in IE 8/9/10.
  255. */
  256. input[type="checkbox"],
  257. input[type="radio"] {
  258. box-sizing: border-box;
  259. /* 1 */
  260. padding: 0;
  261. /* 2 */ }
  262. /**
  263. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  264. * `font-size` values of the `input`, it causes the cursor style of the
  265. * decrement button to change from `default` to `text`.
  266. */
  267. input[type="number"]::-webkit-inner-spin-button,
  268. input[type="number"]::-webkit-outer-spin-button {
  269. height: auto; }
  270. /**
  271. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  272. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  273. * (include `-moz` to future-proof).
  274. */
  275. input[type="search"] {
  276. -webkit-appearance: textfield;
  277. /* 1 */
  278. -moz-box-sizing: content-box;
  279. -webkit-box-sizing: content-box;
  280. /* 2 */
  281. box-sizing: content-box; }
  282. /**
  283. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  284. * Safari (but not Chrome) clips the cancel button when the search input has
  285. * padding (and `textfield` appearance).
  286. */
  287. input[type="search"]::-webkit-search-cancel-button,
  288. input[type="search"]::-webkit-search-decoration {
  289. -webkit-appearance: none; }
  290. /**
  291. * Define consistent border, margin, and padding.
  292. */
  293. fieldset {
  294. border: 1px solid #c0c0c0;
  295. margin: 0 2px;
  296. padding: 0.35em 0.625em 0.75em; }
  297. /**
  298. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  299. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  300. */
  301. legend {
  302. border: 0;
  303. /* 1 */
  304. padding: 0;
  305. /* 2 */ }
  306. /**
  307. * Remove default vertical scrollbar in IE 8/9/10/11.
  308. */
  309. textarea {
  310. overflow: auto; }
  311. /**
  312. * Don't inherit the `font-weight` (applied by a rule above).
  313. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  314. */
  315. optgroup {
  316. font-weight: bold; }
  317. /* Tables
  318. ========================================================================== */
  319. /**
  320. * Remove most spacing between table cells.
  321. */
  322. table {
  323. border-collapse: collapse;
  324. border-spacing: 0; }
  325. td,
  326. th {
  327. padding: 0; }
  328. /*
  329. Copyright 2008-2013 Concur Technologies, Inc.
  330. Licensed under the Apache License, Version 2.0 (the "License"); you may
  331. not use this file except in compliance with the License. You may obtain
  332. a copy of the License at
  333. http://www.apache.org/licenses/LICENSE-2.0
  334. Unless required by applicable law or agreed to in writing, software
  335. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  336. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  337. License for the specific language governing permissions and limitations
  338. under the License.
  339. */
  340. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, html, body {
  341. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  342. font-size: 14px; }
  343. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  344. font-weight: bold; }
  345. .content code, .content pre {
  346. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  347. font-size: 12px;
  348. line-height: 1.5; }
  349. .content code {
  350. word-break: break-all;
  351. hyphens: auto; }
  352. @font-face {
  353. font-family: 'slate';
  354. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  355. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  356. font-weight: normal;
  357. font-style: normal; }
  358. .content aside.warning:before, .content aside.notice:before, .content aside.success:before, .toc-wrapper > .search:before {
  359. font-family: 'slate';
  360. speak: none;
  361. font-style: normal;
  362. font-weight: normal;
  363. font-variant: normal;
  364. text-transform: none;
  365. line-height: 1; }
  366. .content aside.warning:before {
  367. content: "\e600"; }
  368. .content aside.notice:before {
  369. content: "\e602"; }
  370. .content aside.success:before {
  371. content: "\e606"; }
  372. .toc-wrapper > .search:before {
  373. content: "\e607"; }
  374. /*
  375. Copyright 2008-2013 Concur Technologies, Inc.
  376. Licensed under the Apache License, Version 2.0 (the "License"); you may
  377. not use this file except in compliance with the License. You may obtain
  378. a copy of the License at
  379. http://www.apache.org/licenses/LICENSE-2.0
  380. Unless required by applicable law or agreed to in writing, software
  381. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  382. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  383. License for the specific language governing permissions and limitations
  384. under the License.
  385. */
  386. html, body {
  387. color: #333;
  388. padding: 0;
  389. margin: 0;
  390. -webkit-font-smoothing: antialiased;
  391. -moz-osx-font-smoothing: grayscale;
  392. background-color: #F3F7F9;
  393. height: 100%;
  394. -webkit-text-size-adjust: none;
  395. /* Never autoresize text */ }
  396. #toc > ul > li > a > span {
  397. float: right;
  398. background-color: #2484FF;
  399. border-radius: 40px;
  400. width: 20px; }
  401. .toc-wrapper {
  402. transition: left 0.3s ease-in-out;
  403. overflow-y: auto;
  404. overflow-x: hidden;
  405. position: fixed;
  406. z-index: 30;
  407. top: 0;
  408. left: 0;
  409. bottom: 0;
  410. width: 230px;
  411. background-color: #2E3336;
  412. font-size: 13px;
  413. font-weight: bold; }
  414. .toc-wrapper .lang-selector {
  415. display: none; }
  416. .toc-wrapper .lang-selector a {
  417. padding-top: 0.5em;
  418. padding-bottom: 0.5em; }
  419. .toc-wrapper .logo {
  420. display: block;
  421. max-width: 100%;
  422. margin-bottom: 0px; }
  423. .toc-wrapper > .search {
  424. position: relative; }
  425. .toc-wrapper > .search input {
  426. background: #2E3336;
  427. border-width: 0 0 1px 0;
  428. border-color: #666;
  429. padding: 6px 0 6px 20px;
  430. box-sizing: border-box;
  431. margin: 10px 15px;
  432. width: 200px;
  433. outline: none;
  434. color: #fff;
  435. border-radius: 0;
  436. /* ios has a default border radius */ }
  437. .toc-wrapper > .search:before {
  438. position: absolute;
  439. top: 17px;
  440. left: 15px;
  441. color: #fff; }
  442. .toc-wrapper .search-results {
  443. margin-top: 0;
  444. box-sizing: border-box;
  445. height: 0;
  446. overflow-y: auto;
  447. overflow-x: hidden;
  448. transition-property: height, margin;
  449. transition-duration: 180ms;
  450. transition-timing-function: ease-in-out;
  451. background: #1E2224; }
  452. .toc-wrapper .search-results.visible {
  453. height: 30%;
  454. margin-bottom: 1em; }
  455. .toc-wrapper .search-results li {
  456. margin: 1em 15px;
  457. line-height: 1; }
  458. .toc-wrapper .search-results a {
  459. color: #fff;
  460. text-decoration: none; }
  461. .toc-wrapper .search-results a:hover {
  462. text-decoration: underline; }
  463. .toc-wrapper ul, .toc-wrapper li {
  464. list-style: none;
  465. margin: 0;
  466. padding: 0;
  467. line-height: 28px; }
  468. .toc-wrapper li {
  469. color: #fff;
  470. transition-property: background;
  471. transition-timing-function: linear;
  472. transition-duration: 200ms; }
  473. .toc-wrapper .toc-link.active {
  474. background-color: #0F75D4;
  475. color: #fff; }
  476. .toc-wrapper .toc-link.active-parent {
  477. background-color: #1E2224;
  478. color: #fff; }
  479. .toc-wrapper .toc-list-h2 {
  480. display: none;
  481. background-color: #1E2224;
  482. font-weight: 500; }
  483. .toc-wrapper .toc-h2 {
  484. padding-left: 25px;
  485. font-size: 12px; }
  486. .toc-wrapper .toc-footer {
  487. padding: 1em 0;
  488. margin-top: 1em;
  489. border-top: 1px dashed #666; }
  490. .toc-wrapper .toc-footer li, .toc-wrapper .toc-footer a {
  491. color: #fff;
  492. text-decoration: none; }
  493. .toc-wrapper .toc-footer a:hover {
  494. text-decoration: underline; }
  495. .toc-wrapper .toc-footer li {
  496. font-size: 0.8em;
  497. line-height: 1.7;
  498. text-decoration: none; }
  499. .toc-link, .toc-footer li {
  500. padding: 0 15px 0 15px;
  501. display: block;
  502. overflow-x: hidden;
  503. white-space: nowrap;
  504. text-overflow: ellipsis;
  505. text-decoration: none;
  506. color: #fff;
  507. transition-property: background;
  508. transition-timing-function: linear;
  509. transition-duration: 130ms; }
  510. #nav-button {
  511. padding: 0 1.5em 5em 0;
  512. display: none;
  513. position: fixed;
  514. top: 0;
  515. left: 0;
  516. z-index: 100;
  517. color: #000;
  518. text-decoration: none;
  519. font-weight: bold;
  520. opacity: 0.7;
  521. line-height: 16px;
  522. transition: left 0.3s ease-in-out; }
  523. #nav-button span {
  524. display: block;
  525. padding: 6px 6px 6px;
  526. background-color: rgba(243, 247, 249, 0.7);
  527. transform-origin: 0 0;
  528. transform: rotate(-90deg) translate(-100%, 0);
  529. border-radius: 0 0 0 5px; }
  530. #nav-button img {
  531. height: 16px;
  532. vertical-align: bottom; }
  533. #nav-button:hover {
  534. opacity: 1; }
  535. #nav-button.open {
  536. left: 230px; }
  537. .page-wrapper {
  538. margin-left: 230px;
  539. position: relative;
  540. z-index: 10;
  541. background-color: #F3F7F9;
  542. min-height: 100%;
  543. padding-bottom: 1px; }
  544. .page-wrapper .dark-box {
  545. width: 50%;
  546. background-color: #2E3336;
  547. position: absolute;
  548. right: 0;
  549. top: 0;
  550. bottom: 0; }
  551. .page-wrapper .lang-selector {
  552. position: fixed;
  553. z-index: 50;
  554. border-bottom: 5px solid #2E3336; }
  555. .lang-selector {
  556. background-color: #1E2224;
  557. width: 100%;
  558. font-weight: bold; }
  559. .lang-selector a {
  560. display: block;
  561. float: left;
  562. color: #fff;
  563. text-decoration: none;
  564. padding: 0 10px;
  565. line-height: 30px;
  566. outline: 0; }
  567. .lang-selector a:active, .lang-selector a:focus {
  568. background-color: #111;
  569. color: #fff; }
  570. .lang-selector a.active {
  571. background-color: #2E3336;
  572. color: #fff; }
  573. .lang-selector:after {
  574. content: '';
  575. clear: both;
  576. display: block; }
  577. .content {
  578. -webkit-transform: translateZ(0);
  579. position: relative;
  580. z-index: 30; }
  581. .content:after {
  582. content: '';
  583. display: block;
  584. clear: both; }
  585. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  586. margin-right: 50%;
  587. padding: 0 28px;
  588. box-sizing: border-box;
  589. display: block; }
  590. .content > ul, .content > ol {
  591. padding-left: 43px; }
  592. .content > h1, .content > h2, .content > div {
  593. clear: both; }
  594. .content h1 {
  595. font-size: 25px;
  596. padding-top: 0.5em;
  597. padding-bottom: 0.5em;
  598. margin-bottom: 21px;
  599. margin-top: 2em;
  600. border-top: 1px solid #ccc;
  601. border-bottom: 1px solid #ccc;
  602. background-color: #fdfdfd; }
  603. .content h1:first-child, .content div:first-child + h1 {
  604. border-top-width: 0;
  605. margin-top: 0; }
  606. .content h2 {
  607. font-size: 19px;
  608. margin-top: 4em;
  609. margin-bottom: 0;
  610. border-top: 1px solid #ccc;
  611. padding-top: 1.2em;
  612. padding-bottom: 1.2em;
  613. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); }
  614. .content h1 + h2, .content h1 + div + h2 {
  615. margin-top: -21px;
  616. border-top: none; }
  617. .content h3, .content h4, .content h5, .content h6 {
  618. font-size: 15px;
  619. margin-top: 2.5em;
  620. margin-bottom: 0.8em; }
  621. .content h4, .content h5, .content h6 {
  622. font-size: 10px; }
  623. .content hr {
  624. margin: 2em 0;
  625. border-top: 2px solid #2E3336;
  626. border-bottom: 2px solid #F3F7F9; }
  627. .content table {
  628. margin-bottom: 1em;
  629. overflow: auto; }
  630. .content table th, .content table td {
  631. text-align: left;
  632. vertical-align: top;
  633. line-height: 1.6; }
  634. .content table th code, .content table td code {
  635. white-space: nowrap; }
  636. .content table th {
  637. padding: 5px 10px;
  638. border-bottom: 1px solid #ccc;
  639. vertical-align: bottom; }
  640. .content table td {
  641. padding: 10px; }
  642. .content table tr:last-child {
  643. border-bottom: 1px solid #ccc; }
  644. .content table tr:nth-child(odd) > td {
  645. background-color: white; }
  646. .content table tr:nth-child(even) > td {
  647. background-color: #fbfcfd; }
  648. .content dt {
  649. font-weight: bold; }
  650. .content dd {
  651. margin-left: 15px; }
  652. .content p, .content li, .content dt, .content dd {
  653. line-height: 1.6;
  654. margin-top: 0; }
  655. .content img {
  656. max-width: 100%; }
  657. .content code {
  658. background-color: rgba(0, 0, 0, 0.05);
  659. padding: 3px;
  660. border-radius: 3px; }
  661. .content pre > code {
  662. background-color: transparent;
  663. padding: 0; }
  664. .content aside {
  665. padding-top: 1em;
  666. padding-bottom: 1em;
  667. margin-top: 1.5em;
  668. margin-bottom: 1.5em;
  669. background: #8fbcd4;
  670. line-height: 1.6; }
  671. .content aside.warning {
  672. background-color: #c97a7e; }
  673. .content aside.success {
  674. background-color: #6ac174; }
  675. .content aside:before {
  676. vertical-align: middle;
  677. padding-right: 0.5em;
  678. font-size: 14px; }
  679. .content .search-highlight {
  680. padding: 2px;
  681. margin: -3px;
  682. border-radius: 4px;
  683. border: 1px solid #F7E633;
  684. background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%); }
  685. .content pre, .content blockquote {
  686. background-color: #1E2224;
  687. color: #fff;
  688. margin: 0;
  689. width: 50%;
  690. float: right;
  691. clear: right;
  692. box-sizing: border-box; }
  693. .content pre > p, .content blockquote > p {
  694. margin: 0; }
  695. .content pre a, .content blockquote a {
  696. color: #fff;
  697. text-decoration: none;
  698. border-bottom: dashed 1px #ccc; }
  699. .content pre {
  700. padding-top: 2em;
  701. padding-bottom: 2em;
  702. padding: 2em 28px; }
  703. .content blockquote > p {
  704. background-color: #191D1F;
  705. padding: 13px 2em;
  706. color: #eee; }
  707. @media (max-width: 930px) {
  708. .toc-wrapper {
  709. left: -230px; }
  710. .toc-wrapper.open {
  711. left: 0; }
  712. .page-wrapper {
  713. margin-left: 0; }
  714. #nav-button {
  715. display: block; }
  716. .toc-link {
  717. padding-top: 0.3em;
  718. padding-bottom: 0.3em; } }
  719. @media (max-width: 700px) {
  720. .dark-box {
  721. display: none; }
  722. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  723. margin-right: 0; }
  724. .toc-wrapper .lang-selector {
  725. display: block; }
  726. .page-wrapper .lang-selector {
  727. display: none; }
  728. .content pre, .content blockquote {
  729. width: auto;
  730. float: none; }
  731. .content > pre + h1, .content > blockquote + h1, .content > pre + h2, .content > blockquote + h2, .content > pre + h3, .content > blockquote + h3, .content > pre + h4, .content > blockquote + h4, .content > pre + h5, .content > blockquote + h5, .content > pre + h6, .content > blockquote + h6, .content > pre + p, .content > blockquote + p, .content > pre + table, .content > blockquote + table, .content > pre + ul, .content > blockquote + ul, .content > pre + ol, .content > blockquote + ol, .content > pre + aside, .content > blockquote + aside, .content > pre + dl, .content > blockquote + dl {
  732. margin-top: 28px; } }
  733. .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
  734. color: #909090; }
  735. .highlight, .highlight .w {
  736. background-color: #1E2224; }
  737. </style>
  738. <style media="print">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  739. /**
  740. * 1. Set default font family to sans-serif.
  741. * 2. Prevent iOS text size adjust after orientation change, without disabling
  742. * user zoom.
  743. */
  744. html {
  745. font-family: sans-serif;
  746. /* 1 */
  747. -ms-text-size-adjust: 100%;
  748. /* 2 */
  749. -webkit-text-size-adjust: 100%;
  750. /* 2 */ }
  751. /**
  752. * Remove default margin.
  753. */
  754. body {
  755. margin: 0; }
  756. /* HTML5 display definitions
  757. ========================================================================== */
  758. /**
  759. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  760. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  761. * and Firefox.
  762. * Correct `block` display not defined for `main` in IE 11.
  763. */
  764. article,
  765. aside,
  766. details,
  767. figcaption,
  768. figure,
  769. footer,
  770. header,
  771. hgroup,
  772. main,
  773. menu,
  774. nav,
  775. section,
  776. summary {
  777. display: block; }
  778. /**
  779. * 1. Correct `inline-block` display not defined in IE 8/9.
  780. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  781. */
  782. audio,
  783. canvas,
  784. progress,
  785. video {
  786. display: inline-block;
  787. /* 1 */
  788. vertical-align: baseline;
  789. /* 2 */ }
  790. /**
  791. * Prevent modern browsers from displaying `audio` without controls.
  792. * Remove excess height in iOS 5 devices.
  793. */
  794. audio:not([controls]) {
  795. display: none;
  796. height: 0; }
  797. /**
  798. * Address `[hidden]` styling not present in IE 8/9/10.
  799. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  800. */
  801. [hidden],
  802. template {
  803. display: none; }
  804. /* Links
  805. ========================================================================== */
  806. /**
  807. * Remove the gray background color from active links in IE 10.
  808. */
  809. a {
  810. background-color: transparent; }
  811. /**
  812. * Improve readability when focused and also mouse hovered in all browsers.
  813. */
  814. a:active,
  815. a:hover {
  816. outline: 0; }
  817. /* Text-level semantics
  818. ========================================================================== */
  819. /**
  820. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  821. */
  822. abbr[title] {
  823. border-bottom: 1px dotted; }
  824. /**
  825. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  826. */
  827. b,
  828. strong {
  829. font-weight: bold; }
  830. /**
  831. * Address styling not present in Safari and Chrome.
  832. */
  833. dfn {
  834. font-style: italic; }
  835. /**
  836. * Address variable `h1` font-size and margin within `section` and `article`
  837. * contexts in Firefox 4+, Safari, and Chrome.
  838. */
  839. h1 {
  840. font-size: 2em;
  841. margin: 0.67em 0; }
  842. /**
  843. * Address styling not present in IE 8/9.
  844. */
  845. mark {
  846. background: #ff0;
  847. color: #000; }
  848. /**
  849. * Address inconsistent and variable font size in all browsers.
  850. */
  851. small {
  852. font-size: 80%; }
  853. /**
  854. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  855. */
  856. sub,
  857. sup {
  858. font-size: 75%;
  859. line-height: 0;
  860. position: relative;
  861. vertical-align: baseline; }
  862. sup {
  863. top: -0.5em; }
  864. sub {
  865. bottom: -0.25em; }
  866. /* Embedded content
  867. ========================================================================== */
  868. /**
  869. * Remove border when inside `a` element in IE 8/9/10.
  870. */
  871. img {
  872. border: 0; }
  873. /**
  874. * Correct overflow not hidden in IE 9/10/11.
  875. */
  876. svg:not(:root) {
  877. overflow: hidden; }
  878. /* Grouping content
  879. ========================================================================== */
  880. /**
  881. * Address margin not present in IE 8/9 and Safari.
  882. */
  883. figure {
  884. margin: 1em 40px; }
  885. /**
  886. * Address differences between Firefox and other browsers.
  887. */
  888. hr {
  889. -moz-box-sizing: content-box;
  890. box-sizing: content-box;
  891. height: 0; }
  892. /**
  893. * Contain overflow in all browsers.
  894. */
  895. pre {
  896. overflow: auto; }
  897. /**
  898. * Address odd `em`-unit font size rendering in all browsers.
  899. */
  900. code,
  901. kbd,
  902. pre,
  903. samp {
  904. font-family: monospace, monospace;
  905. font-size: 1em; }
  906. /* Forms
  907. ========================================================================== */
  908. /**
  909. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  910. * styling of `select`, unless a `border` property is set.
  911. */
  912. /**
  913. * 1. Correct color not being inherited.
  914. * Known issue: affects color of disabled elements.
  915. * 2. Correct font properties not being inherited.
  916. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  917. */
  918. button,
  919. input,
  920. optgroup,
  921. select,
  922. textarea {
  923. color: inherit;
  924. /* 1 */
  925. font: inherit;
  926. /* 2 */
  927. margin: 0;
  928. /* 3 */ }
  929. /**
  930. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  931. */
  932. button {
  933. overflow: visible; }
  934. /**
  935. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  936. * All other form control elements do not inherit `text-transform` values.
  937. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  938. * Correct `select` style inheritance in Firefox.
  939. */
  940. button,
  941. select {
  942. text-transform: none; }
  943. /**
  944. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  945. * and `video` controls.
  946. * 2. Correct inability to style clickable `input` types in iOS.
  947. * 3. Improve usability and consistency of cursor style between image-type
  948. * `input` and others.
  949. */
  950. button,
  951. html input[type="button"],
  952. input[type="reset"],
  953. input[type="submit"] {
  954. -webkit-appearance: button;
  955. /* 2 */
  956. cursor: pointer;
  957. /* 3 */ }
  958. /**
  959. * Re-set default cursor for disabled elements.
  960. */
  961. button[disabled],
  962. html input[disabled] {
  963. cursor: default; }
  964. /**
  965. * Remove inner padding and border in Firefox 4+.
  966. */
  967. button::-moz-focus-inner,
  968. input::-moz-focus-inner {
  969. border: 0;
  970. padding: 0; }
  971. /**
  972. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  973. * the UA stylesheet.
  974. */
  975. input {
  976. line-height: normal; }
  977. /**
  978. * It's recommended that you don't attempt to style these elements.
  979. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  980. *
  981. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  982. * 2. Remove excess padding in IE 8/9/10.
  983. */
  984. input[type="checkbox"],
  985. input[type="radio"] {
  986. box-sizing: border-box;
  987. /* 1 */
  988. padding: 0;
  989. /* 2 */ }
  990. /**
  991. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  992. * `font-size` values of the `input`, it causes the cursor style of the
  993. * decrement button to change from `default` to `text`.
  994. */
  995. input[type="number"]::-webkit-inner-spin-button,
  996. input[type="number"]::-webkit-outer-spin-button {
  997. height: auto; }
  998. /**
  999. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  1000. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  1001. * (include `-moz` to future-proof).
  1002. */
  1003. input[type="search"] {
  1004. -webkit-appearance: textfield;
  1005. /* 1 */
  1006. -moz-box-sizing: content-box;
  1007. -webkit-box-sizing: content-box;
  1008. /* 2 */
  1009. box-sizing: content-box; }
  1010. /**
  1011. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  1012. * Safari (but not Chrome) clips the cancel button when the search input has
  1013. * padding (and `textfield` appearance).
  1014. */
  1015. input[type="search"]::-webkit-search-cancel-button,
  1016. input[type="search"]::-webkit-search-decoration {
  1017. -webkit-appearance: none; }
  1018. /**
  1019. * Define consistent border, margin, and padding.
  1020. */
  1021. fieldset {
  1022. border: 1px solid #c0c0c0;
  1023. margin: 0 2px;
  1024. padding: 0.35em 0.625em 0.75em; }
  1025. /**
  1026. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  1027. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  1028. */
  1029. legend {
  1030. border: 0;
  1031. /* 1 */
  1032. padding: 0;
  1033. /* 2 */ }
  1034. /**
  1035. * Remove default vertical scrollbar in IE 8/9/10/11.
  1036. */
  1037. textarea {
  1038. overflow: auto; }
  1039. /**
  1040. * Don't inherit the `font-weight` (applied by a rule above).
  1041. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  1042. */
  1043. optgroup {
  1044. font-weight: bold; }
  1045. /* Tables
  1046. ========================================================================== */
  1047. /**
  1048. * Remove most spacing between table cells.
  1049. */
  1050. table {
  1051. border-collapse: collapse;
  1052. border-spacing: 0; }
  1053. td,
  1054. th {
  1055. padding: 0; }
  1056. /*
  1057. Copyright 2008-2013 Concur Technologies, Inc.
  1058. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1059. not use this file except in compliance with the License. You may obtain
  1060. a copy of the License at
  1061. http://www.apache.org/licenses/LICENSE-2.0
  1062. Unless required by applicable law or agreed to in writing, software
  1063. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1064. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1065. License for the specific language governing permissions and limitations
  1066. under the License.
  1067. */
  1068. .content h1, .content h2, .content h3, .content h4, body {
  1069. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  1070. font-size: 14px; }
  1071. .content h1, .content h2, .content h3, .content h4 {
  1072. font-weight: bold; }
  1073. .content pre, .content code {
  1074. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  1075. font-size: 12px;
  1076. line-height: 1.5; }
  1077. .content pre, .content code {
  1078. word-break: break-all;
  1079. hyphens: auto; }
  1080. @font-face {
  1081. font-family: 'slate';
  1082. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  1083. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  1084. font-weight: normal;
  1085. font-style: normal; }
  1086. .content aside.warning:before, .content aside.notice:before, .content aside.success:before {
  1087. font-family: 'slate';
  1088. speak: none;
  1089. font-style: normal;
  1090. font-weight: normal;
  1091. font-variant: normal;
  1092. text-transform: none;
  1093. line-height: 1; }
  1094. .content aside.warning:before {
  1095. content: "\e600"; }
  1096. .content aside.notice:before {
  1097. content: "\e602"; }
  1098. .content aside.success:before {
  1099. content: "\e606"; }
  1100. /*
  1101. Copyright 2008-2013 Concur Technologies, Inc.
  1102. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1103. not use this file except in compliance with the License. You may obtain
  1104. a copy of the License at
  1105. http://www.apache.org/licenses/LICENSE-2.0
  1106. Unless required by applicable law or agreed to in writing, software
  1107. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1108. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1109. License for the specific language governing permissions and limitations
  1110. under the License.
  1111. */
  1112. .tocify, .toc-footer, .lang-selector, .search, #nav-button {
  1113. display: none; }
  1114. .tocify-wrapper > img {
  1115. margin: 0 auto;
  1116. display: block; }
  1117. .content {
  1118. font-size: 12px; }
  1119. .content pre, .content code {
  1120. border: 1px solid #999;
  1121. border-radius: 5px;
  1122. font-size: 0.8em; }
  1123. .content pre code {
  1124. border: 0; }
  1125. .content pre {
  1126. padding: 1.3em; }
  1127. .content code {
  1128. padding: 0.2em; }
  1129. .content table {
  1130. border: 1px solid #999; }
  1131. .content table tr {
  1132. border-bottom: 1px solid #999; }
  1133. .content table td, .content table th {
  1134. padding: 0.7em; }
  1135. .content p {
  1136. line-height: 1.5; }
  1137. .content a {
  1138. text-decoration: none;
  1139. color: #000; }
  1140. .content h1 {
  1141. font-size: 2.5em;
  1142. padding-top: 0.5em;
  1143. padding-bottom: 0.5em;
  1144. margin-top: 1em;
  1145. margin-bottom: 21px;
  1146. border: 2px solid #ccc;
  1147. border-width: 2px 0;
  1148. text-align: center; }
  1149. .content h2 {
  1150. font-size: 1.8em;
  1151. margin-top: 2em;
  1152. border-top: 2px solid #ccc;
  1153. padding-top: 0.8em; }
  1154. .content h1 + h2, .content h1 + div + h2 {
  1155. border-top: none;
  1156. padding-top: 0;
  1157. margin-top: 0; }
  1158. .content h3, .content h4 {
  1159. font-size: 0.8em;
  1160. margin-top: 1.5em;
  1161. margin-bottom: 0.8em;
  1162. text-transform: uppercase; }
  1163. .content h5, .content h6 {
  1164. text-transform: uppercase; }
  1165. .content aside {
  1166. padding: 1em;
  1167. border: 1px solid #ccc;
  1168. border-radius: 5px;
  1169. margin-top: 1.5em;
  1170. margin-bottom: 1.5em;
  1171. line-height: 1.6; }
  1172. .content aside:before {
  1173. vertical-align: middle;
  1174. padding-right: 0.5em;
  1175. font-size: 14px; }
  1176. </style>
  1177. <style media="screen">/*
  1178. Darkula color scheme from the JetBrains family of IDEs
  1179. */
  1180. .hljs {
  1181. display: block;
  1182. overflow-x: auto;
  1183. padding: 0.5em;
  1184. background: #2b2b2b;
  1185. -webkit-text-size-adjust: none;
  1186. }
  1187. .hljs,
  1188. .hljs-tag,
  1189. .hljs-title,
  1190. .css .hljs-rule,
  1191. .css .hljs-value,
  1192. .aspectj .hljs-function,
  1193. .css .hljs-function .hljs-preprocessor,
  1194. .hljs-pragma {
  1195. color: #bababa;
  1196. }
  1197. .hljs-strongemphasis,
  1198. .hljs-strong,
  1199. .hljs-emphasis {
  1200. color: #a8a8a2;
  1201. }
  1202. .hljs-bullet,
  1203. .hljs-blockquote,
  1204. .hljs-horizontal_rule,
  1205. .hljs-number,
  1206. .hljs-regexp,
  1207. .alias .hljs-keyword,
  1208. .hljs-literal,
  1209. .hljs-hexcolor {
  1210. color: #6896ba;
  1211. }
  1212. .hljs-tag .hljs-value,
  1213. .hljs-code,
  1214. .css .hljs-class,
  1215. .hljs-class .hljs-title:last-child {
  1216. color: #a6e22e;
  1217. }
  1218. .hljs-link_url {
  1219. font-size: 80%;
  1220. }
  1221. .hljs-emphasis,
  1222. .hljs-strongemphasis,
  1223. .hljs-class .hljs-title:last-child,
  1224. .hljs-typename {
  1225. font-style: italic;
  1226. }
  1227. .hljs-keyword,
  1228. .ruby .hljs-class .hljs-keyword:first-child,
  1229. .ruby .hljs-function .hljs-keyword,
  1230. .hljs-function,
  1231. .hljs-change,
  1232. .hljs-winutils,
  1233. .hljs-flow,
  1234. .nginx .hljs-title,
  1235. .tex .hljs-special,
  1236. .hljs-header,
  1237. .hljs-attribute,
  1238. .hljs-symbol,
  1239. .hljs-symbol .hljs-string,
  1240. .hljs-tag .hljs-title,
  1241. .hljs-value,
  1242. .alias .hljs-keyword:first-child,
  1243. .css .hljs-tag,
  1244. .css .unit,
  1245. .css .hljs-important {
  1246. color: #cb7832;
  1247. }
  1248. .hljs-function .hljs-keyword,
  1249. .hljs-class .hljs-keyword:first-child,
  1250. .hljs-aspect .hljs-keyword:first-child,
  1251. .hljs-constant,
  1252. .hljs-typename,
  1253. .css .hljs-attribute {
  1254. color: #cb7832;
  1255. }
  1256. .hljs-variable,
  1257. .hljs-params,
  1258. .hljs-class .hljs-title,
  1259. .hljs-aspect .hljs-title {
  1260. color: #b9b9b9;
  1261. }
  1262. .hljs-string,
  1263. .css .hljs-id,
  1264. .hljs-subst,
  1265. .hljs-type,
  1266. .ruby .hljs-class .hljs-parent,
  1267. .hljs-built_in,
  1268. .django .hljs-template_tag,
  1269. .django .hljs-variable,
  1270. .smalltalk .hljs-class,
  1271. .django .hljs-filter .hljs-argument,
  1272. .smalltalk .hljs-localvars,
  1273. .smalltalk .hljs-array,
  1274. .hljs-attr_selector,
  1275. .hljs-pseudo,
  1276. .hljs-addition,
  1277. .hljs-stream,
  1278. .hljs-envvar,
  1279. .apache .hljs-tag,
  1280. .apache .hljs-cbracket,
  1281. .tex .hljs-command,
  1282. .hljs-prompt,
  1283. .hljs-link_label,
  1284. .hljs-link_url,
  1285. .hljs-name {
  1286. color: #e0c46c;
  1287. }
  1288. .hljs-comment,
  1289. .hljs-annotation,
  1290. .hljs-pi,
  1291. .hljs-doctype,
  1292. .hljs-deletion,
  1293. .hljs-shebang,
  1294. .apache .hljs-sqbracket,
  1295. .tex .hljs-formula {
  1296. color: #7f7f7f;
  1297. }
  1298. .hljs-decorator {
  1299. color: #bab429;
  1300. }
  1301. .coffeescript .javascript,
  1302. .javascript .xml,
  1303. .tex .hljs-formula,
  1304. .xml .javascript,
  1305. .xml .vbscript,
  1306. .xml .css,
  1307. .xml .hljs-cdata,
  1308. .xml .php,
  1309. .php .xml {
  1310. opacity: 0.5;
  1311. }
  1312. </style>
  1313. <script>!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return ae.call(t,e)>-1!==n}):Ee.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return ae.call(t,e)>-1!==n&&1===e.nodeType}))}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Pe.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}$e.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=a(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),l=(he.cssNumber[t]||"px"!==c&&+u)&&Re.exec(he.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,he.style(e,t,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Be[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Fe.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Me(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Fe.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)Fe.set(e[n],"globalEval",!t||Fe.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Qe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ve.exec(o)||["",""])[1].toLowerCase(),u=Ue[a]||Ue._default,s.innerHTML=u[1]+he.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;he.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(c=he.contains(o.ownerDocument,o),s=y(f.appendChild(o),"script"),c&&x(s),n)for(l=0;o=s[l++];)Xe.test(o.type||"")&&n.push(o);return f}function w(){return!0}function T(){return!1}function S(){try{return ne.activeElement}catch(e){}}function E(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)E(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=T;else if(!i)return e;return 1===o&&(s=i,i=function(e){return he().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function C(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function j(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Fe.hasData(e)&&(o=Fe.access(e),s=Fe.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)he.event.add(t,i,c[i][n])}$e.hasData(e)&&(a=$e.access(e),u=he.extend({},a),$e.set(t,u))}}function A(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ze.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(e,t,r,i){t=oe.apply([],t);var o,s,a,u,c,l,f=0,d=e.length,p=d-1,h=t[0],g=he.isFunction(h);if(g||d>1&&"string"==typeof h&&!pe.checkClone&&tt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),L(o,t,r,i)});if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=he.map(y(o,"script"),k),u=a.length;f<d;f++)c=o,f!==p&&(c=he.clone(c,!0,!0),u&&he.merge(a,y(c,"script"))),r.call(e[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,he.map(a,N),f=0;f<u;f++)c=a[f],Xe.test(c.type||"")&&!Fe.access(c,"globalEval")&&he.contains(l,c)&&(c.src?he._evalUrl&&he._evalUrl(c.src):n(c.textContent.replace(rt,""),l))}return e}function D(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(y(r)),r.parentNode&&(n&&he.contains(r.ownerDocument,r)&&x(y(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,s,a=e.style;return n=n||st(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||he.contains(e.ownerDocument,e)||(s=he.style(e,t)),!pe.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function q(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in dt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if((e=ft[n]+t)in dt)return e}function $(e){var t=he.cssProps[e];return t||(t=he.cssProps[e]=F(e)||e),t}function P(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function H(e,t,n,r,i){var o,s=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=he.css(e,n+_e[o],!0,i)),r?("content"===n&&(s-=he.css(e,"padding"+_e[o],!0,i)),"margin"!==n&&(s-=he.css(e,"border"+_e[o]+"Width",!0,i))):(s+=he.css(e,"padding"+_e[o],!0,i),"padding"!==n&&(s+=he.css(e,"border"+_e[o]+"Width",!0,i)));return s}function I(e,t,n){var r,i=st(e),o=O(e,t,i),s="border-box"===he.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=s&&(pe.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+H(e,t,n||(s?"border":"content"),r,i)+"px")}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function _(){ht&&(!1===ne.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(_):e.setTimeout(_,he.fx.interval),he.fx.tick())}function M(){return e.setTimeout(function(){pt=void 0}),pt=he.now()}function W(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=_e[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(X.tweeners[t]||[]).concat(X.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function z(e,t,n){var r,i,o,s,a,u,c,l,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&Me(e),v=Fe.get(e,"fxshow");n.queue||(s=he._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,he.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(p)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=v&&v.display,null==c&&(c=Fe.get(e,"display")),l=he.css(e,"display"),"none"===l&&(c?l=c:(m([e],!0),c=e.style.display||c,l=he.css(e,"display"),m([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===he.css(e,"float")&&(u||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in p)u||(v?"hidden"in v&&(g=v.hidden):v=Fe.access(e,"fxshow",{display:c}),o&&(v.hidden=!g),g&&m([e],!0),d.done(function(){g||m([e]),Fe.remove(e,"fxshow");for(r in p)he.style(e,r,p[r])})),u=B(g?v[r]:0,r,d),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}}function V(e,t){var n,r,i,o,s;for(n in e)if(r=he.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=he.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function X(e,t,n){var r,i,o=0,s=X.prefilters.length,a=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=pt||M(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(e,[c,o,n]),o<1&&u?n:(u||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||M(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for(V(l,c.opts.specialEasing);o<s;o++)if(r=X.prefilters[o].call(c,e,l,c.opts))return he.isFunction(r.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=he.proxy(r.stop,r)),r;return he.map(l,B,c),he.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Ae)||[]).join(" ")}function Q(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e,t,n,r){var i;if(Array.isArray(t))he.each(t,function(t,i){n||kt.test(e)?r(e,i):Y(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==he.type(t))r(e,t);else for(i in t)Y(e+"["+i+"]",t[i],n,r)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ae)||[];if(he.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function G(e,t,n,r){function i(a){var u;return o[a]=!0,he.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===It;return i(t.dataTypes[0])||!o["*"]&&i("*")}function K(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}function Z(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ee(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,oe=te.concat,se=te.push,ae=te.indexOf,ue={},ce=ue.toString,le=ue.hasOwnProperty,fe=le.toString,de=fe.call(Object),pe={},he=function(e,t){return new he.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ve=/^-ms-/,me=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:"3.2.1",constructor:he,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:se,sort:te.sort,splice:te.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||he.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&he.isPlainObject(n)?n:{},s[t]=he.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},he.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e))&&(!(t=re(e))||"function"==typeof(n=le.call(t,"constructor")&&t.constructor)&&fe.call(n)===de)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[ce.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ve,"ms-").replace(me,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):se.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ae.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return oe.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),he.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:Date.now,support:pe}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=te[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var xe=function(e){function t(e,t,n,r){var i,o,s,a,u,l,d,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:R)!==D&&L(t),t=t||D,q)){if(11!==h&&(u=ge.exec(e)))if(i=u[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&H(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!z[e+" "]&&(!F||!F.test(e))){if(1!==h)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,be):t.setAttribute("id",a=I),l=E(e),o=l.length;o--;)l[o]="#"+a+" "+f(l[o]);d=l.join(","),p=ve.test(e)&&c(t.parentNode)||t}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{a===I&&t.removeAttribute("id")}}}return k(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,f,d=[_,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(f=t[I]||(t[I]={}),l=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,f,d=[],p=[],v=s.length,m=r||h(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?m:g(m,d,e,a,u),x=n?o||(r?e:v||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(c=g(x,p),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(x[p[l]]=!(y[p[l]]=f));if(r){if(o||e){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(y[l]=f);o(null,x=[],c,u)}for(l=x.length;l--;)(f=x[l])&&(c=o?K(r,f):d[l])>-1&&(r[c]=!(s[c]=f))}}else x=g(x===s?x.splice(v,x.length):x),o?o(null,s,x,u):J.apply(s,x)})}function m(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return K(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=w.relative[e[a].type])l=[d(p(l),n)];else{if(n=w.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;r<i&&!w.relative[e[r].type];r++);return v(a>1&&p(l),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&m(e.slice(a,r)),r<i&&m(e=e.slice(r)),r<i&&f(e))}l.push(n)}return p(l)}function y(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,f,d,p=0,h="0",v=r&&[],m=[],y=N,x=r||o&&w.find.TAG("*",c),b=_+=null==y?1:Math.random()||.1,T=x.length;for(c&&(N=s===D||s||c);h!==T&&null!=(l=x[h]);h++){if(o&&l){for(f=0,s||l.ownerDocument===D||(L(l),a=!q);d=e[f++];)if(d(l,s||D,a)){u.push(l);break}c&&(_=b)}i&&((l=!d&&l)&&p--,r&&v.push(l))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(v,m,s,a);if(r){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=Q.call(u));m=g(m)}J.apply(u,m),c&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return c&&(_=b,N=y),v};return i?r(s):s}var x,b,w,T,S,E,C,k,N,j,A,L,D,O,q,F,$,P,H,I="sizzle"+1*new Date,R=e.document,_=0,M=0,W=n(),B=n(),z=n(),V=function(e,t){return e===t&&(A=!0),0},X={}.hasOwnProperty,U=[],Q=U.pop,Y=U.push,J=U.push,G=U.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,me=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){L()},Te=d(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(U=G.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(e){J={apply:U.length?function(e,t){Y.apply(e,G.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,O=D.documentElement,q=!S(D),R!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=he.test(D.getElementsByClassName),b.getById=i(function(e){return O.appendChild(e).id=I,!D.getElementsByName||!D.getElementsByName(I).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&q)return t.getElementsByClassName(e)},$=[],F=[],(b.qsa=he.test(D.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+I+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||F.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(b.matchesSelector=he.test(P=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){b.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),$.push("!=",re)}),F=F.length&&new RegExp(F.join("|")),$=$.length&&new RegExp($.join("|")),t=he.test(O.compareDocumentPosition),H=t||he.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===R&&H(R,e)?-1:t===D||t.ownerDocument===R&&H(R,t)?1:j?K(j,e)-K(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:j?K(j,e)-K(j,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===R?-1:u[r]===R?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&L(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&q&&!z[n+" "]&&(!$||!$.test(n))&&(!F||!F.test(n)))try{var r=P.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&L(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&L(e);var n=w.attrHandle[t.toLowerCase()],r=n&&X.call(w.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:b.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,j=!b.sortStable&&e.slice(0),e.sort(V),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},w=t.selectors={cacheLength:50,createPseudo:r,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(me,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(me,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(me,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,p,h,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(v){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(d=v,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[_,p,x];break}}else if(y&&(d=t,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p),!1===x)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++x||(y&&(f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),l[e]=[_,x]),d!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=K(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(oe,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(me,ye),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(me,ye).toLowerCase(),function(t){var n;do{if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase()
  1314. ;return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(x);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,E=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=B[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=w.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in w.filter)!(i=fe[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},C=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=m(t[n]),o[I]?r.push(o):i.push(o);o=z(e,y(i,r)),o.selector=e}return o},k=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&q&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(me,ye),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((u=w.find[a])&&(r=u(s.matches[0].replace(me,ye),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return J.apply(n,r),n;break}}return(l||C(e,d))(r,t,!q,n,!t||ve.test(e)&&c(t.parentNode)||t),n},b.sortStable=I.split("").sort(V).join("")===I,b.detectDuplicates=!!A,L(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=xe,he.expr=xe.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=xe.uniqueSort,he.text=xe.getText,he.isXMLDoc=xe.isXML,he.contains=xe.contains,he.escapeSelector=xe.escape;var be=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=he.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ee=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&Te.test(e)?he(e):e||[],!1).length}});var Ce,ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ke.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),Se.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,Ce=he(ne);var Ne=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&he(e);if(!Te.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ae.call(he(e),this[0]):ae.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),this.length>1&&(je[e]||he.uniqueSort(i),Ne.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){e="string"==typeof e?a(e):he.extend({},e);var t,n,r,i,o=[],s=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,s.push(n)),function t(n){he.each(n,function(n,r){he.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==he.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;(n=he.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?he.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=he.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var a=this,l=arguments,f=function(){var e,f;if(!(t<s)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,he.isFunction(f)?i?f.call(e,o(s,n,u,i),o(s,n,c,i)):(s++,f.call(e,o(s,n,u,i),o(s,n,c,i),o(s,n,u,n.notifyWith))):(r!==u&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},d=i?f:function(){try{f()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,d.stackTrace),t+1>=s&&(r!==c&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?d():(he.Deferred.getStackHook&&(d.stackTrace=he.Deferred.getStackHook()),e.setTimeout(d))}}var s=0;return he.Deferred(function(e){n[0][3].add(o(0,e,he.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,he.isFunction(t)?t:u)),n[2][3].add(o(0,e,he.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),o=he.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||he.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Le.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var De=he.Deferred();he.fn.ready=function(e){return De.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||De.resolveWith(ne,[he]))}}),he.ready.then=De.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(he.ready):(ne.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Oe=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===he.type(n)){i=!0;for(a in n)Oe(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,he.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={cache:function(e){var t=e[this.expando];return t||(t={},qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[he.camelCase(t)]=n;else for(r in t)i[he.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][he.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(he.camelCase):(t=he.camelCase(t),t=t in r?[t]:t.match(Ae)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Fe=new d,$e=new d,Pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/[A-Z]/g;he.extend({hasData:function(e){return $e.hasData(e)||Fe.hasData(e)},data:function(e,t,n){return $e.access(e,t,n)},removeData:function(e,t){$e.remove(e,t)},_data:function(e,t,n){return Fe.access(e,t,n)},_removeData:function(e,t){Fe.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=$e.get(o),1===o.nodeType&&!Fe.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=he.camelCase(r.slice(5)),h(o,r,i[r])));Fe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){$e.set(this,e)}):Oe(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=$e.get(o,e)))return n;if(void 0!==(n=h(o,e)))return n}else this.each(function(){$e.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){$e.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||Array.isArray(n)?r=Fe.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t),s=function(){he.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:he.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Fe.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Me=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&he.contains(e.ownerDocument,e)&&"none"===he.css(e,"display")},We=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},Be={};he.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Me(this)?he(this).show():he(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ve=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Xe=/^$|\/(?:java|ecma)script/i,Ue={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Qe=/<|&#?\w+;/;!function(){var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ye=ne.documentElement,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.get(e);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&he.find.matchesSelector(Ye,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p&&(f=he.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=he.event.special[p]||{},l=he.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),he.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.hasData(e)&&Fe.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p){for(f=he.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)l=d[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)he.event.remove(e,p+t[c],n,r,!0);he.isEmptyObject(u)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=he.event.fix(e),u=new Array(arguments.length),c=(Fe.get(this,"events")||{})[a.type]||[],l=he.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=he.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?he(i,this).index(c)>-1:he.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:he.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||he.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=T),this.each(function(){he.event.remove(this,e,n,t)})}});var Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(Ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=he.contains(e.ownerDocument,e);if(!(pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(s=y(a),o=y(e),r=0,i=o.length;r<i;r++)A(o[r],s[r]);if(t)if(n)for(o=o||y(e),s=s||y(a),r=0,i=o.length;r<i;r++)j(o[r],s[r]);else j(e,a);return s=y(a,"script"),s.length>0&&x(s,!u&&y(e,"script")),a},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(qe(n)){if(t=n[Fe.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[Fe.expando]=void 0}n[$e.expando]&&(n[$e.expando]=void 0)}}}),he.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Oe(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){C(this,e).appendChild(e)}})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Oe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Ue[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),he(i[s])[t](n),se.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ye.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ye.removeChild(s),a=null}}var n,r,i,o,s=ne.createElement("div"),a=ne.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",pe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),he.extend(pe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,ut=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","Moz","ms"],dt=ne.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=he.camelCase(t),u=ut.test(t),c=e.style;if(u||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];o=typeof n,"string"===o&&(i=Re.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[a]?"":"px")),pe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=he.camelCase(t);return ut.test(t)||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=O(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?I(e,t,r):We(e,ct,function(){return I(e,t,r)})},set:function(e,n,r){var i,o=r&&st(e),s=r&&H(e,t,r,"border-box"===he.css(e,"boxSizing",!1,o),o);return s&&(i=Re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),P(e,n,s)}}}),he.cssHooks.marginLeft=q(pe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+_e[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(he.cssHooks[e+t].set=P)}),he.fn.extend({css:function(e,t){return Oe(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=st(e),i=t.length;s<i;s++)o[t[s]]=he.css(e,t[s],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)}}),he.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=R.prototype.init,he.fx.step={};var pt,ht,gt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;he.Animation=he.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[z],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),s=function(){var t=X(this,he.extend({},e),o);(i||Fe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,s=Fe.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&vt.test(i)&&r(s[i])
  1315. ;for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Fe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,s=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(W(t,!0),e,r,i)}}),he.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(pt=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),pt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,_())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var mt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Oe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=yt[s],yt[s]=i,i=null!=n(e,t,r)?s:null,yt[s]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Oe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Q(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(Ae)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=Q(this),t&&Fe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+U(Q(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;he.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=he.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,he(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:U(he.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],c=a?s+1:o.length;for(r=s<0?c:a?s:0;r<c;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=he(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=he.inArray(he.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},pe.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;he.extend(he.event,{trigger:function(t,n,r,i){var o,s,a,u,c,l,f,d=[r||ne],p=le.call(t,"type")?t.type:t,h=le.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+he.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[he.expando]?t:new he.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),f=he.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!he.isWindow(r)){for(u=f.delegateType||p,Tt.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(r.ownerDocument||ne)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||p,l=(Fe.get(s,"events")||{})[t.type]&&Fe.get(s,"handle"),l&&l.apply(s,n),(l=c&&s[c])&&l.apply&&qe(s)&&(t.result=l.apply(s,n),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!qe(r)||c&&he.isFunction(r[p])&&!he.isWindow(r)&&(a=r[c],a&&(r[c]=null),he.event.triggered=p,r[p](),he.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),pe.focusin="onfocusin"in e,pe.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Fe.access(r,t);i||r.addEventListener(e,n,!0),Fe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Fe.access(r,t)-1;i?Fe.access(r,t,i):(r.removeEventListener(e,n,!0),Fe.remove(r,t))}}});var St=e.location,Et=he.now(),Ct=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var kt=/\[\]$/,Nt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=he.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)Y(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&At.test(this.nodeName)&&!jt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}});var Lt=/%20/g,Dt=/#.*$/,Ot=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$t=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ht={},It={},Rt="*/".concat("*"),_t=ne.createElement("a");_t.href=St.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Ft.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?K(K(e,he.ajaxSettings),t):K(he.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(It),ajax:function(t,n){function r(t,n,r,a){var c,d,p,b,w,T=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=Z(h,S,r)),b=ee(h,b,S,c),c?(h.ifModified&&(w=S.getResponseHeader("Last-Modified"),w&&(he.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,p=b.error,c=!p)):(p=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(n||T)+"",c?m.resolveWith(g,[d,T,S]):m.rejectWith(g,[S,T,p]),S.statusCode(x),x=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[S,h,c?d:p]),y.fireWith(g,[S,T]),f&&(v.trigger("ajaxComplete",[S,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,c,l,f,d,p,h=he.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?he(g):he.event,m=he.Deferred(),y=he.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=qt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(m.promise(S),h.url=((t||h.url||St.href)+"").replace(Pt,St.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ae)||[""],null==h.crossDomain){c=ne.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),G(Ht,h,n,S),l)return S;f=he.event&&h.global,f&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(p=h.url.slice(o.length),h.data&&(o+=(Ct.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ot,"$1"),p=(Ct.test(o)?"&":"?")+"_="+Et+++p),h.url=o+p),h.ifModified&&(he.lastModified[o]&&S.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&S.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(g,S,h)||l))return S.abort();if(T="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),i=G(It,h,n,S)){if(S.readyState=1,f&&v.trigger("ajaxSend",[S,h]),l)return S;h.async&&h.timeout>0&&(u=e.setTimeout(function(){S.abort("timeout")},h.timeout));try{l=!1,i.send(b,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return he.isFunction(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(he.isFunction(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Wt=he.ajaxSettings.xhr();pe.cors=!!Wt&&"withCredentials"in Wt,pe.ajax=Wt=!!Wt,he.ajaxTransport(function(t){var n,r;if(pe.cors||Wt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=he("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Bt=[],zt=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||he.expando+"_"+Et++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(zt,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||he.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(i)),s&&he.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),pe.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),he.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(pe.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))},he.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=U(e.slice(a)),e=e.slice(0,a)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c,l=he.css(e,"position"),f=he(e),d={};"static"===l&&(e.style.position="relative"),a=f.offset(),o=he.css(e,"top"),u=he.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):f.css(d)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===he.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+he.css(e[0],"borderTopWidth",!0),left:r.left+he.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-he.css(n,"marginTop",!0),left:t.left-r.left-he.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ye})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Oe(this,function(e,r,i){var o;if(he.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=q(pe.pixelPosition,function(e,n){if(n)return n=O(e,t),ot.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Oe(this,function(t,n,i){var o;return he.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)},t,s?i:void 0,s)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Vt=e.jQuery,Xt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Xt),t&&e.jQuery===he&&(e.jQuery=Vt),he},t||(e.jQuery=e.$=he),he}),jQuery.extend({highlight:function(e,t,n,r){if(3===e.nodeType){var i=e.data.match(t);if(i){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(i.index);s.splitText(i[0].length);var a=s.cloneNode(!0);return o.appendChild(a),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var u=0;u<e.childNodes.length;u++)u+=jQuery.highlight(e.childNodes[u],t,n,r);return 0}}),jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};return jQuery.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(n,t),e.constructor===String&&(e=[e]),e=jQuery.grep(e,function(e,t){return""!=e}),e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),0==e.length)return this;var r=n.caseSensitive?"":"i",i="("+e.join("|")+")";n.wordsOnly&&(i="\\b"+i+"\\b");var o=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,o,n.element,n.className)})},function(){var e=function(t){var n=new e.Index;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),t&&t.call(n,n),n};e.version="0.5.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.EventEmitter=function(){this.events={}},e.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},e.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||delete this.events[e]}},e.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)})}},e.EventEmitter.prototype.hasHandler=function(e){return e in this.events},e.tokenizer=function(e){if(!arguments.length||null==e||void 0==e)return[];if(Array.isArray(e))return e.map(function(e){return e.toLowerCase()});for(var t=e.toString().replace(/^\s+/,""),n=t.length-1;n>=0;n--)if(/\S/.test(t.charAt(n))){t=t.substring(0,n+1);break}return t.split(/(?:\s+|\-)/).filter(function(e){return!!e}).map(function(e){return e.toLowerCase()})},e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions={},e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(t){var r=e.Pipeline.registeredFunctions[t];if(!r)throw new Error("Cannot load un-registered function: "+t);n.add(r)}),n},e.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t)+1;this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);this._stack.splice(t,1)},e.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,r=this._stack.length,i=0;i<n;i++){for(var o=e[i],s=0;s<r&&void 0!==(o=this._stack[s](o,i,e));s++);void 0!==o&&t.push(o)}return t},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})},e.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},e.Vector.Node=function(e,t,n){this.idx=e,this.val=t,this.next=n},e.Vector.prototype.insert=function(t,n){var r=this.list;if(!r)return this.list=new e.Vector.Node(t,n,r),this.length++;for(var i=r,o=r.next;void 0!=o;){if(t<o.idx)return i.next=new e.Vector.Node(t,n,o),this.length++;i=o,o=o.next}return i.next=new e.Vector.Node(t,n,o),this.length++},e.Vector.prototype.magnitude=function(){if(this._magniture)return this._magnitude;for(var e,t=this.list,n=0;t;)e=t.val,n+=e*e,t=t.next;return this._magnitude=Math.sqrt(n)},e.Vector.prototype.dot=function(e){for(var t=this.list,n=e.list,r=0;t&&n;)t.idx<n.idx?t=t.next:t.idx>n.idx?n=n.next:(r+=t.val*n.val,t=t.next,n=n.next);return r},e.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},e.SortedSet=function(){this.length=0,this.elements=[]},e.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},e.SortedSet.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){~this.indexOf(e)||this.elements.splice(this.locationFor(e),0,e)},this),this.length=this.elements.length},e.SortedSet.prototype.toArray=function(){return this.elements.slice()},e.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},e.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},e.SortedSet.prototype.indexOf=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];return r<=1?o===e?i:-1:o<e?this.indexOf(e,i,n):o>e?this.indexOf(e,t,i):o===e?i:void 0},e.SortedSet.prototype.locationFor=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];if(r<=1){if(o>e)return i;if(o<e)return i+1}return o<e?this.locationFor(e,i,n):o>e?this.locationFor(e,t,i):void 0},e.SortedSet.prototype.intersect=function(t){for(var n=new e.SortedSet,r=0,i=0,o=this.length,s=t.length,a=this.elements,u=t.elements;;){if(r>o-1||i>s-1)break;a[r]!==u[i]?a[r]<u[i]?r++:a[r]>u[i]&&i++:(n.add(a[r]),r++,i++)}return n},e.SortedSet.prototype.clone=function(){var t=new e.SortedSet;return t.elements=this.toArray(),t.length=t.elements.length,t},e.SortedSet.prototype.union=function(e){var t,n,r;return this.length>=e.length?(t=this,n=e):(t=e,n=this),r=t.clone(),r.add.apply(r,n.toArray()),r},e.SortedSet.prototype.toJSON=function(){return this.toArray()},e.Index=function(){this._fields=[],this._ref="id",this.pipeline=new e.Pipeline,this.documentStore=new e.Store,this.tokenStore=new e.TokenStore,this.corpusTokens=new e.SortedSet,this.eventEmitter=new e.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},e.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},e.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},e.Index.load=function(t){t.version!==e.version&&e.utils.warn("version mismatch: current "+e.version+" importing "+t.version);var n=new this;return n._fields=t.fields,n._ref=t.ref,n.documentStore=e.Store.load(t.documentStore),n.tokenStore=e.TokenStore.load(t.tokenStore),n.corpusTokens=e.SortedSet.load(t.corpusTokens),n.pipeline=e.Pipeline.load(t.pipeline),n},e.Index.prototype.field=function(e,t){var t=t||{},n={name:e,boost:t.boost||1};return this._fields.push(n),this},e.Index.prototype.ref=function(e){return this._ref=e,this},e.Index.prototype.add=function(t,n){var r={},i=new e.SortedSet,o=t[this._ref],n=void 0===n||n;this._fields.forEach(function(n){var o=this.pipeline.run(e.tokenizer(t[n.name]));r[n.name]=o,e.SortedSet.prototype.add.apply(i,o)},this),this.documentStore.set(o,i),e.SortedSet.prototype.add.apply(this.corpusTokens,i.toArray());for(var s=0;s<i.length;s++){var a=i.elements[s],u=this._fields.reduce(function(e,t){var n=r[t.name].length;return n?e+r[t.name].filter(function(e){return e===a}).length/n*t.boost:e},0);this.tokenStore.add(a,{ref:o,tf:u})}n&&this.eventEmitter.emit("add",t,this)},e.Index.prototype.remove=function(e,t){var n=e[this._ref],t=void 0===t||t;if(this.documentStore.has(n)){var r=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},e.Index.prototype.update=function(e,t){var t=void 0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},e.Index.prototype.idf=function(e){var t="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))return this._idfCache[t];var n=this.tokenStore.count(e),r=1;return n>0&&(r=1+Math.log(this.tokenStore.length/n)),this._idfCache[t]=r},e.Index.prototype.search=function(t){
  1316. var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduce(function(e,t){return e+t.boost},0);return n.some(function(e){return this.tokenStore.has(e)},this)?(n.forEach(function(t,n,s){var a=1/s.length*this._fields.length*o,u=this,c=this.tokenStore.expand(t).reduce(function(n,i){var o=u.corpusTokens.indexOf(i),s=u.idf(i),c=1,l=new e.SortedSet;if(i!==t){var f=Math.max(3,i.length-t.length);c=1/Math.log(f)}return o>-1&&r.insert(o,a*s*c),Object.keys(u.tokenStore.get(i)).forEach(function(e){l.add(e)}),n.union(l)},new e.SortedSet);i.push(c)},this),i.reduce(function(e,t){return e.intersect(t)}).map(function(e){return{ref:e,score:r.similarity(this.documentVector(e))}},this).sort(function(e,t){return t.score-e.score})):[]},e.Index.prototype.documentVector=function(t){for(var n=this.documentStore.get(t),r=n.length,i=new e.Vector,o=0;o<r;o++){var s=n.elements[o],a=this.tokenStore.get(s)[t].tf,u=this.idf(s);i.insert(this.corpusTokens.indexOf(s),a*u)}return i},e.Index.prototype.toJSON=function(){return{version:e.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},e.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},e.Store=function(){this.store={},this.length=0},e.Store.load=function(t){var n=new this;return n.length=t.length,n.store=Object.keys(t.store).reduce(function(n,r){return n[r]=e.SortedSet.load(t.store[r]),n},{}),n},e.Store.prototype.set=function(e,t){this.has(e)||this.length++,this.store[e]=t},e.Store.prototype.get=function(e){return this.store[e]},e.Store.prototype.has=function(e){return e in this.store},e.Store.prototype.remove=function(e){this.has(e)&&(delete this.store[e],this.length--)},e.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},e.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[aeiouy]",r="[^aeiou][^aeiouy]*",i=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),o=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),u=/^(.+?)(ss|i)es$/,c=/^(.+?)([^s])s$/,l=/^(.+?)eed$/,f=/^(.+?)(ed|ing)$/,d=/.$/,p=/(at|bl|iz)$/,h=new RegExp("([^aeiouylsz])\\1$"),g=new RegExp("^"+r+n+"[^aeiouwxy]$"),v=/^(.+?[^aeiou])y$/,m=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,y=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,x=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,w=/^(.+?)e$/,T=/ll$/,S=new RegExp("^"+r+n+"[^aeiouwxy]$");return function(n){var r,E,C,k,N,j,A;if(n.length<3)return n;if(C=n.substr(0,1),"y"==C&&(n=C.toUpperCase()+n.substr(1)),k=u,N=c,k.test(n)?n=n.replace(k,"$1$2"):N.test(n)&&(n=n.replace(N,"$1$2")),k=l,N=f,k.test(n)){var L=k.exec(n);k=i,k.test(L[1])&&(k=d,n=n.replace(k,""))}else if(N.test(n)){var L=N.exec(n);r=L[1],N=a,N.test(r)&&(n=r,N=p,j=h,A=g,N.test(n)?n+="e":j.test(n)?(k=d,n=n.replace(k,"")):A.test(n)&&(n+="e"))}if(k=v,k.test(n)){var L=k.exec(n);r=L[1],n=r+"i"}if(k=m,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+e[E])}if(k=y,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+t[E])}if(k=x,N=b,k.test(n)){var L=k.exec(n);r=L[1],k=o,k.test(r)&&(n=r)}else if(N.test(n)){var L=N.exec(n);r=L[1]+L[2],N=o,N.test(r)&&(n=r)}if(k=w,k.test(n)){var L=k.exec(n);r=L[1],k=o,N=s,j=S,(k.test(r)||N.test(r)&&!j.test(r))&&(n=r)}return k=T,N=o,k.test(n)&&N.test(n)&&(k=d,n=n.replace(k,"")),"y"==C&&(n=C.toLowerCase()+n.substr(1)),n}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer"),e.stopWordFilter=function(t){if(-1===e.stopWordFilter.stopWords.indexOf(t))return t},e.stopWordFilter.stopWords=new e.SortedSet,e.stopWordFilter.stopWords.length=119,e.stopWordFilter.stopWords.elements=["","a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"],e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter"),e.trimmer=function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")},e.Pipeline.registerFunction(e.trimmer,"trimmer"),e.TokenStore=function(){this.root={docs:{}},this.length=0},e.TokenStore.load=function(e){var t=new this;return t.root=e.root,t.length=e.length,t},e.TokenStore.prototype.add=function(e,t,n){var n=n||this.root,r=e[0],i=e.slice(1);return r in n||(n[r]={docs:{}}),0===i.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(i,t,n[r])},e.TokenStore.prototype.has=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},e.TokenStore.prototype.getNode=function(e){if(!e)return{};for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return{};t=t[e[n]]}return t},e.TokenStore.prototype.get=function(e,t){return this.getNode(e,t).docs||{}},e.TokenStore.prototype.count=function(e,t){return Object.keys(this.get(e,t)).length},e.TokenStore.prototype.remove=function(e,t){if(e){for(var n=this.root,r=0;r<e.length;r++){if(!(e[r]in n))return;n=n[e[r]]}delete n.docs[t]}},e.TokenStore.prototype.expand=function(e,t){var n=this.getNode(e),r=n.docs||{},t=t||[];return Object.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},e.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.lunr=t()}(this,function(){return e})}(),function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,o=i.EventEmitter;r.getListeners=function(e){var t,n,r=this._getEvents();if("object"==typeof e){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},r.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},r.addListener=function(e,n){var r,i=this.getListenersAsObject(e),o="object"==typeof n;for(r in i)i.hasOwnProperty(r)&&-1===t(i[r],n)&&i[r].push(o?n:{listener:n,once:!1});return this},r.on=n("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=n("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,n){var r,i,o=this.getListenersAsObject(e);for(i in o)o.hasOwnProperty(i)&&-1!==(r=t(o[i],n))&&o[i].splice(r,1);return this},r.off=n("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},r.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if("object"===n)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=n("removeEvent"),r.emitEvent=function(e,t){var n,r,i,o=this.getListenersAsObject(e);for(i in o)if(o.hasOwnProperty(i))for(r=o[i].length;r--;)n=o[i][r],!0===n.once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},r.trigger=n("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,r=function(){};n.addEventListener?r=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(r=function(e,n,r){e[n+r]=r.handleEvent?function(){var n=t(e);r.handleEvent.call(r,n)}:function(){var n=t(e);r.call(e,n)},e.attachEvent("on"+n,e[n+r])});var i=function(){};n.removeEventListener?i=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(i=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(r){e[t+n]=void 0}});var o={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,r){return t(e,n,r)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(i(e))t=e;else if("number"==typeof e.length)for(var n=0,r=e.length;r>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function a(e){this.img=e}function u(e){this.src=e,p[e]=this}var c=e.jQuery,l=e.console,f=void 0!==l,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var r=n.nodeType;if(r&&(1===r||9===r||11===r))for(var i=n.querySelectorAll("img"),o=0,s=i.length;s>o;o++){var a=i[o];this.addImage(a)}}},s.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},s.prototype.check=function(){function e(e,i){return t.options.debug&&f&&l.log("confirm",e,i),t.progress(e),n++,n===r&&t.complete(),!0}var t=this,n=0,r=this.images.length;if(this.hasAnyBroken=!1,!r)return void this.complete();for(var i=0;r>i;i++){var o=this.images[i];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},c&&(c.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(c(this))}),a.prototype=new t,a.prototype.check=function(){var e=p[this.img.src]||new u(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var p={};return u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},u.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},u.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}),function(){if("ontouchstart"in window){var e,t,n,r,i,o,s={};e=function(e,t){return Math.abs(e[0]-t[0])>5||Math.abs(e[1]-t[1])>5},t=function(e){this.startXY=[e.touches[0].clientX,e.touches[0].clientY],this.threshold=!1},n=function(t){if(this.threshold)return!1;this.threshold=e(this.startXY,[t.touches[0].clientX,t.touches[0].clientY])},r=function(t){if(!this.threshold&&!e(this.startXY,[t.changedTouches[0].clientX,t.changedTouches[0].clientY])){var n=t.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.simulated=!0,t.target.dispatchEvent(r)}},i=function(e){var t=Date.now(),n=t-s.time,r=e.clientX,i=e.clientY,a=[Math.abs(s.x-r),Math.abs(s.y-i)],u=o(e.target,"A")||e.target,c=u.nodeName,l="A"===c,f=window.navigator.standalone&&l&&e.target.getAttribute("href");if(s.time=t,s.x=r,s.y=i,(!e.simulated&&(n<500||n<1500&&a[0]<50&&a[1]<50)||f)&&(e.preventDefault(),e.stopPropagation(),!f))return!1;f&&(window.location=u.getAttribute("href")),u&&u.classList&&(u.classList.add("energize-focus"),window.setTimeout(function(){u.classList.remove("energize-focus")},150))},o=function(e,t){for(var n=e;n!==document.body;){if(!n||n.nodeName===t)return n;n=n.parentNode}return null},document.addEventListener("touchstart",t,!1),document.addEventListener("touchmove",n,!1),document.addEventListener("touchend",r,!1),document.addEventListener("click",i,!0)}}(),function(){"use strict";function e(e){if(e&&""!==e){$(".lang-selector a").removeClass("active"),$(".lang-selector a[data-language-name='"+e+"']").addClass("active");for(var t=0;t<a.length;t++)$(".highlight.tab-"+a[t]).hide(),$(".lang-specific."+a[t]).hide();$(".highlight.tab-"+e).show(),$(".lang-specific."+e).show(),window.recacheHeights(),$(window.location.hash).get(0)&&$(window.location.hash).get(0).scrollIntoView(!0)}}function t(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n[0],i=n[1];return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i,e},{}):{})}function n(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return Array.isArray(n)?n.sort().map(function(e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"):""}function r(){if(location.search.length>=1){var e=t(location.search).language;if(e)return e;if(-1!=jQuery.inArray(location.search.substr(1),a))return location.search.substr(1)}return!1}function i(e){var r=t(location.search);return r.language?(r.language=e,n(r)):e}function o(e){if(history){var t=window.location.hash;t&&(t=t.replace(/^#+/,"")),history.pushState({},"","?"+i(e)+"#"+t),localStorage.setItem("language",e)}}function s(t){var n=localStorage.getItem("language");a=t;var i=r();i?(e(i),localStorage.setItem("language",i)):e(null!==n&&-1!=jQuery.inArray(n,a)?n:a[0])}var a=[];window.setupLanguages=s,window.activateLanguage=e,window.getLanguageFromQueryString=r,$(function(){$(".lang-selector a").on("click",function(){var t=$(this).data("language-name");return o(t),e(t),!1})})}(),function(){"use strict";function e(){$("h1, h2").each(function(){var e=$(this),t=e.nextUntil("h1, h2");f.add({id:e.prop("id"),title:e.text(),body:t.text()})}),t()}function t(){f.tokenStore.length>5e3&&(c=300)}function n(){s=$(".content"),a=$(".search-results"),$("#input-search").on("keyup",function(e){!function(){return function(e,t){clearTimeout(l),l=setTimeout(e,t)}}()(function(){r(e)},c)})}function r(e){var t=$("#input-search")[0];if(o(),a.addClass("visible"),27===e.keyCode&&(t.value=""),t.value){var n=f.search(t.value).filter(function(e){return e.score>1e-4});n.length?(a.empty(),$.each(n,function(e,t){var n=document.getElementById(t.ref);a.append("<li><a href='#"+t.ref+"'>"+$(n).text()+"</a></li>")}),i.call(t)):(a.html("<li></li>"),$(".search-results li").text('No Results Found for "'+t.value+'"'))}else o(),a.removeClass("visible")}function i(){this.value&&s.highlight(this.value,u)}function o(){s.unhighlight(u)}var s,a,u={element:"span",className:"search-highlight"},c=0,l=0,f=new lunr.Index;f.ref("id"),f.field("title",{boost:10}),f.field("body"),f.pipeline.add(lunr.trimmer,lunr.stopWordFilter),$(e),$(n)}(),function(){"use strict";function e(e,i,o,s){var a={},u=0,c=0,l=document.title,f=function(){a={},u=$(document).height(),c=$(window).height(),e.find(i).each(function(){var e=$(this).attr("href");"#"===e[0]&&(a[e]=$(e).offset().top)})},d=function(){var n=$(document).scrollTop()+s;n+c>=u&&(n=u+1e3);var r=null;for(var f in a)(a[f]<n&&a[f]>a[r]||null===r)&&(r=f);n!=s||t||(r=window.location.hash,t=!0);var d=e.find("[href='"+r+"']").first();if(!d.hasClass("active")){e.find(".active").removeClass("active"),e.find(".active-parent").removeClass("active-parent"),d.addClass("active"),d.parents(o).addClass("active").siblings(i).addClass("active-parent"),d.siblings(o).addClass("active"),e.find(o).filter(":not(.active)").slideUp(150),e.find(o).filter(".active").slideDown(150),window.history.replaceState&&window.history.replaceState(null,"",r);var p=d.data("title");void 0!==p&&p.length>0?document.title=p+" – "+l:document.title=l}};!function(){f(),d(),$("#nav-button").click(function(){return $(".toc-wrapper").toggleClass("open"),$("#nav-button").toggleClass("open"),!1}),$(".page-wrapper").click(r),$(".toc-link").click(r),e.find(i).click(function(){setTimeout(function(){d()},0)}),$(window).scroll(n(d,200)),$(window).resize(n(f,200))}(),window.recacheHeights=f,window.refreshToc=d}var t=!1,n=function(e,t){var n=!1;return function(){!1===n&&(setTimeout(function(){e(),n=!1},t),n=!0)}},r=function(){$(".toc-wrapper").removeClass("open"),$("#nav-button").removeClass("open")};window.loadToc=e}(),$(function(){loadToc($("#toc"),".toc-link",".toc-list-h2, .toc-list-h3, .toc-list-h4, .toc-list-h5, .toc-list-h6",10),setupLanguages($("body").data("languages")),$(".content").imagesLoaded(function(){window.recacheHeights(),window.refreshToc()})}),window.onpopstate=function(){activateLanguage(getLanguageFromQueryString())};</script>
  1317. <meta name="theme-color" content="#F3F7F9" />
  1318. </head>
  1319. <body data-languages="[&quot;shell&quot;,&quot;http&quot;,&quot;javascript&quot;,&quot;javascript--nodejs&quot;,&quot;ruby&quot;,&quot;python&quot;,&quot;java&quot;,&quot;go&quot;]">
  1320. <a href="#" id="nav-button">
  1321. <span>
  1322. NAV
  1323. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1324. </span>
  1325. </a>
  1326. <div class="toc-wrapper">
  1327. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAQAAADbsxk3AAAGF0lEQVR42r3XA5AkexIH4Fx7n23btm3btm3btm3btm2uvTuzs4PvLjK6Kjq6n9/cfRUYT2dnVv5/Fe1FV+d61oFm0zNSLadocnq0Ax10101eOkd70cGmpJctFHXMqVGrC6MdWNVtbsrrRkdH+zGZlyXPmjhqOFWLcXaKduBpVeKPmMDxPnC3af7iKN0oGWXZSAV9PI9GS/0fSzCfuxSaHKnLXxilqxTWjVSwpF8xxlTRDjz1JyWY2MrlDw3VRLpFr6iwprX0jRq6uEFhzSgku4BREf/zEkxsJ8+SfnS+XXxDetEkUeFLPGo9HWvG7lHSIItHFT1cDb6P32VCC1rTlna0Wn4+rT3tZnc71+8cz6sS1Wznda2g1enmibC2RtK5xZ+ygFGg0ZE6RMmMPiK9bqqoYlIfgqeiXuhua3d4y/eGGYd3TRhhH4Vpo4b9DPCzn/J6LAqm8YpWyWcW0Smn+zhJo82jwplaJK9U98HimiSXRiGZSXJF1HG4fppU+9ZcEQ5TmDnC7O70nOe84AlT6KxPefXIP6OjfRWa3aFTJON7RPKlOcpRe1PhAmUXdLS7ZIT1opBsJjk8quhodYPU+8bs1SWYJcIOmhTWiFomd7vCYPtEyXQGS56OCusarbB+lHQty/2wdnpdLNksSqZwlXptGjyjV4SdNRlhpEZT5Yg3KKwepaS3ZxR+LCtMVpa0ODmSbi5WGGv2KJlMYe+o4QPJElFhNq+r1t/jLnCgraxv/srtvXZuvtV0+LMSTlUYbpkoJGdJGoqjylQGKLxtiig5SPJL1FGYOpJZ9VMY6SLLmdYEusbvsr3GuoVdMFBh06jhQ8mQSJX2DpfcoGeU9K8droJ5JMrFMUzyuS3iL7Gmwdq0aiO7VE2D5MaoYXyFuyPp4F3vGSo5LEo2lTwfdewqacjPJvIB2rxvi/gbdNFdV12jnlslE0UNWylsXt4bDa6SjLZhlLwLBlnI9JaygAmj5ErJZ3nTX4ERjjV+faSxoXWtZLZyFa9gI1tYtXxLV7e1yaOWWYzIP1/H3Qq9InnPK86WfGPeqh6MBV971sd28aiPXKp3JO9IHo+wDr6sD3s286xvnelbg3ztMj3s4SsDjNbi2vyJbb1lGDaPepY3zFtRxxjJm5Esi+3K1fmGPmV8eFrShr31cjfafCFL1yi5Qic/+MKskQr6etBYPK+3XySLu1NhqwgHawRjsif1TG3bqGFuhSMjedwvxvOd5IGosIlGhWE6mMhLoNkBeeq0SA5xgFG1HTCRx8A4B5jKEMmyXlKY0SpaJZ+aPf4qeykskJ8vrcnOppG0OLEMdy8quUQH0xkF2uySvWuV7GaYfeoC+lmS/iazg0YwzrS+UOjtc2Mlj+kRf5XbJYONl2HgSr/qZgnJWBtHcqBq60XYSPKsHhF20ip5UkPt0rAAFBHQLZKXdTVc8p6jfOJR0Oa8yo2/cPw5H0ge1DPCvJrsGGEb0hhzVg6pNtXmjfAxuFzuHA8pjNPqLl2iinsVtjG5j0hnRmgiPWyUtb0LRtsy/svbf2GcTF3O/LE66+JSn5kiwnGkEflTnfyIZi2kAaZ2Kj60dCRL6Idq5+oaJUq9reN9TRhpA72NIzW43hxawcBMrct4K/6chfWrGo25tdkuv34B6ds8bO7FQCf5jPSTY11alYR6uVyLWofpHMkFVJ0ZZzjDYHxpWjMbpzCj9UlfVNbKcvHnzKUfGGVRXbzjUd2rk5DXI1yOETbX1etVg1TFcU70JanJKIXTTJKb/nGFi/Vxjx0MxXO56JtJ70bYkXRThFVdF3+Nx8Bwa7tPP1OWAa0/+NE9GCzjny0UrokKPd3uJNP4XGFt/RTe87ynTelN0gG2dL6FDNfq4jxW25QxxiqkI3RwqRnjr9HX++V4TB0lqxlKesNMVTGskXSBmczpBP1tkY+c3yhMazLPKHyRz2ZT+BqM9kauje/wghOdR8pQZ0afgxddZL34O+zlHofrWPeIdLK77aBDTQw70odGg4EuKM/uo7zqBwMMkjvM1t432M0mLrt1uHudpHOly5/7zPI628nFbneRjClW87kG31g/6vwHQzOUbn+MgQEAAAAASUVORK5CYII=" class="logo" alt="Logo">
  1328. <div class="lang-selector">
  1329. <a href="#" data-language-name="shell">Shell</a>
  1330. <a href="#" data-language-name="http">HTTP</a>
  1331. <a href="#" data-language-name="javascript">JavaScript</a>
  1332. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1333. <a href="#" data-language-name="ruby">Ruby</a>
  1334. <a href="#" data-language-name="python">Python</a>
  1335. <a href="#" data-language-name="java">Java</a>
  1336. <a href="#" data-language-name="go">Go</a>
  1337. </div>
  1338. <div class="search">
  1339. <input type="text" class="search" id="input-search" placeholder="Search">
  1340. </div>
  1341. <ul class="search-results"></ul>
  1342. <div id="toc" class="toc-list-h1">
  1343. <ul class="toc-list-h1">
  1344. <li>
  1345. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v8.01">Wekan REST API v8.01</a>
  1346. </li>
  1347. <li>
  1348. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1349. </li>
  1350. <li>
  1351. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1352. </li>
  1353. <li>
  1354. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1355. <ul class="toc-list-h2">
  1356. <li>
  1357. <a href="#login" class="toc-h2 toc-link" data-title="login">login</a>
  1358. </li>
  1359. <li>
  1360. <a href="#register" class="toc-h2 toc-link" data-title="register">register</a>
  1361. </li>
  1362. </ul>
  1363. </li>
  1364. <li>
  1365. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1366. <ul class="toc-list-h2">
  1367. <li>
  1368. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="get_public_boards">get_public_boards</a>
  1369. </li>
  1370. <li>
  1371. <a href="#new_board" class="toc-h2 toc-link" data-title="new_board">new_board</a>
  1372. </li>
  1373. <li>
  1374. <a href="#get_board" class="toc-h2 toc-link" data-title="get_board">get_board</a>
  1375. </li>
  1376. <li>
  1377. <a href="#delete_board" class="toc-h2 toc-link" data-title="delete_board">delete_board</a>
  1378. </li>
  1379. <li>
  1380. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="get_board_attachments">get_board_attachments</a>
  1381. </li>
  1382. <li>
  1383. <a href="#exportjson" class="toc-h2 toc-link" data-title="exportJson">exportJson</a>
  1384. </li>
  1385. <li>
  1386. <a href="#copy_board" class="toc-h2 toc-link" data-title="copy_board">copy_board</a>
  1387. </li>
  1388. <li>
  1389. <a href="#add_board_label" class="toc-h2 toc-link" data-title="add_board_label">add_board_label</a>
  1390. </li>
  1391. <li>
  1392. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="set_board_member_permission">set_board_member_permission</a>
  1393. </li>
  1394. <li>
  1395. <a href="#update_board_title" class="toc-h2 toc-link" data-title="update_board_title">update_board_title</a>
  1396. </li>
  1397. <li>
  1398. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="get_boards_count">get_boards_count</a>
  1399. </li>
  1400. <li>
  1401. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="get_boards_from_user">get_boards_from_user</a>
  1402. </li>
  1403. </ul>
  1404. </li>
  1405. <li>
  1406. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1407. <ul class="toc-list-h2">
  1408. <li>
  1409. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="get_all_checklists">get_all_checklists</a>
  1410. </li>
  1411. <li>
  1412. <a href="#new_checklist" class="toc-h2 toc-link" data-title="new_checklist">new_checklist</a>
  1413. </li>
  1414. <li>
  1415. <a href="#get_checklist" class="toc-h2 toc-link" data-title="get_checklist">get_checklist</a>
  1416. </li>
  1417. <li>
  1418. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="delete_checklist">delete_checklist</a>
  1419. </li>
  1420. </ul>
  1421. </li>
  1422. <li>
  1423. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1424. <ul class="toc-list-h2">
  1425. <li>
  1426. <a href="#new_checklist_item" class="toc-h2 toc-link" data-title="new_checklist_item">new_checklist_item</a>
  1427. </li>
  1428. <li>
  1429. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="get_checklist_item">get_checklist_item</a>
  1430. </li>
  1431. <li>
  1432. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="edit_checklist_item">edit_checklist_item</a>
  1433. </li>
  1434. <li>
  1435. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="delete_checklist_item">delete_checklist_item</a>
  1436. </li>
  1437. </ul>
  1438. </li>
  1439. <li>
  1440. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1441. <ul class="toc-list-h2">
  1442. <li>
  1443. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="get_all_comments">get_all_comments</a>
  1444. </li>
  1445. <li>
  1446. <a href="#new_comment" class="toc-h2 toc-link" data-title="new_comment">new_comment</a>
  1447. </li>
  1448. <li>
  1449. <a href="#get_comment" class="toc-h2 toc-link" data-title="get_comment">get_comment</a>
  1450. </li>
  1451. <li>
  1452. <a href="#delete_comment" class="toc-h2 toc-link" data-title="delete_comment">delete_comment</a>
  1453. </li>
  1454. </ul>
  1455. </li>
  1456. <li>
  1457. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1458. <ul class="toc-list-h2">
  1459. <li>
  1460. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="get_cards_by_custom_field">get_cards_by_custom_field</a>
  1461. </li>
  1462. <li>
  1463. <a href="#get_board_cards_count" class="toc-h2 toc-link" data-title="get_board_cards_count">get_board_cards_count</a>
  1464. </li>
  1465. <li>
  1466. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="get_all_cards">get_all_cards</a>
  1467. </li>
  1468. <li>
  1469. <a href="#new_card" class="toc-h2 toc-link" data-title="new_card">new_card</a>
  1470. </li>
  1471. <li>
  1472. <a href="#get_card" class="toc-h2 toc-link" data-title="get_card">get_card</a>
  1473. </li>
  1474. <li>
  1475. <a href="#edit_card" class="toc-h2 toc-link" data-title="edit_card">edit_card</a>
  1476. </li>
  1477. <li>
  1478. <a href="#delete_card" class="toc-h2 toc-link" data-title="delete_card">delete_card</a>
  1479. </li>
  1480. <li>
  1481. <a href="#edit_card_custom_field" class="toc-h2 toc-link" data-title="edit_card_custom_field">edit_card_custom_field</a>
  1482. </li>
  1483. <li>
  1484. <a href="#get_list_cards_count" class="toc-h2 toc-link" data-title="get_list_cards_count">get_list_cards_count</a>
  1485. </li>
  1486. <li>
  1487. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="get_swimlane_cards">get_swimlane_cards</a>
  1488. </li>
  1489. <li>
  1490. <a href="#get_card_by_id" class="toc-h2 toc-link" data-title="get_card_by_id">get_card_by_id</a>
  1491. </li>
  1492. </ul>
  1493. </li>
  1494. <li>
  1495. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1496. <ul class="toc-list-h2">
  1497. <li>
  1498. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="get_all_custom_fields">get_all_custom_fields</a>
  1499. </li>
  1500. <li>
  1501. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="new_custom_field">new_custom_field</a>
  1502. </li>
  1503. <li>
  1504. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="get_custom_field">get_custom_field</a>
  1505. </li>
  1506. <li>
  1507. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="edit_custom_field">edit_custom_field</a>
  1508. </li>
  1509. <li>
  1510. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="delete_custom_field">delete_custom_field</a>
  1511. </li>
  1512. <li>
  1513. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="add_custom_field_dropdown_items">add_custom_field_dropdown_items</a>
  1514. </li>
  1515. <li>
  1516. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</a>
  1517. </li>
  1518. <li>
  1519. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</a>
  1520. </li>
  1521. </ul>
  1522. </li>
  1523. <li>
  1524. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1525. <ul class="toc-list-h2">
  1526. <li>
  1527. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="get_all_integrations">get_all_integrations</a>
  1528. </li>
  1529. <li>
  1530. <a href="#new_integration" class="toc-h2 toc-link" data-title="new_integration">new_integration</a>
  1531. </li>
  1532. <li>
  1533. <a href="#get_integration" class="toc-h2 toc-link" data-title="get_integration">get_integration</a>
  1534. </li>
  1535. <li>
  1536. <a href="#edit_integration" class="toc-h2 toc-link" data-title="edit_integration">edit_integration</a>
  1537. </li>
  1538. <li>
  1539. <a href="#delete_integration" class="toc-h2 toc-link" data-title="delete_integration">delete_integration</a>
  1540. </li>
  1541. <li>
  1542. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="delete_integration_activities">delete_integration_activities</a>
  1543. </li>
  1544. <li>
  1545. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="new_integration_activities">new_integration_activities</a>
  1546. </li>
  1547. </ul>
  1548. </li>
  1549. <li>
  1550. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1551. <ul class="toc-list-h2">
  1552. <li>
  1553. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="get_all_lists">get_all_lists</a>
  1554. </li>
  1555. <li>
  1556. <a href="#new_list" class="toc-h2 toc-link" data-title="new_list">new_list</a>
  1557. </li>
  1558. <li>
  1559. <a href="#get_list" class="toc-h2 toc-link" data-title="get_list">get_list</a>
  1560. </li>
  1561. <li>
  1562. <a href="#edit_list" class="toc-h2 toc-link" data-title="edit_list">edit_list</a>
  1563. </li>
  1564. <li>
  1565. <a href="#delete_list" class="toc-h2 toc-link" data-title="delete_list">delete_list</a>
  1566. </li>
  1567. </ul>
  1568. </li>
  1569. <li>
  1570. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1571. <ul class="toc-list-h2">
  1572. <li>
  1573. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="get_all_swimlanes">get_all_swimlanes</a>
  1574. </li>
  1575. <li>
  1576. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="new_swimlane">new_swimlane</a>
  1577. </li>
  1578. <li>
  1579. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="get_swimlane">get_swimlane</a>
  1580. </li>
  1581. <li>
  1582. <a href="#edit_swimlane" class="toc-h2 toc-link" data-title="edit_swimlane">edit_swimlane</a>
  1583. </li>
  1584. <li>
  1585. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="delete_swimlane">delete_swimlane</a>
  1586. </li>
  1587. </ul>
  1588. </li>
  1589. <li>
  1590. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1591. <ul class="toc-list-h2">
  1592. <li>
  1593. <a href="#tocsboards" class="toc-h2 toc-link" data-title="Boards">Boards</a>
  1594. </li>
  1595. <li>
  1596. <a href="#tocsboardslabels" class="toc-h2 toc-link" data-title="BoardsLabels">BoardsLabels</a>
  1597. </li>
  1598. <li>
  1599. <a href="#tocsboardsmembers" class="toc-h2 toc-link" data-title="BoardsMembers">BoardsMembers</a>
  1600. </li>
  1601. <li>
  1602. <a href="#tocsboardsorgs" class="toc-h2 toc-link" data-title="BoardsOrgs">BoardsOrgs</a>
  1603. </li>
  1604. <li>
  1605. <a href="#tocsboardsteams" class="toc-h2 toc-link" data-title="BoardsTeams">BoardsTeams</a>
  1606. </li>
  1607. <li>
  1608. <a href="#tocscardcomments" class="toc-h2 toc-link" data-title="CardComments">CardComments</a>
  1609. </li>
  1610. <li>
  1611. <a href="#tocscards" class="toc-h2 toc-link" data-title="Cards">Cards</a>
  1612. </li>
  1613. <li>
  1614. <a href="#tocscardsvote" class="toc-h2 toc-link" data-title="CardsVote">CardsVote</a>
  1615. </li>
  1616. <li>
  1617. <a href="#tocscardspoker" class="toc-h2 toc-link" data-title="CardsPoker">CardsPoker</a>
  1618. </li>
  1619. <li>
  1620. <a href="#tocscardscustomfields" class="toc-h2 toc-link" data-title="CardsCustomfields">CardsCustomfields</a>
  1621. </li>
  1622. <li>
  1623. <a href="#tocschecklistitems" class="toc-h2 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1624. </li>
  1625. <li>
  1626. <a href="#tocschecklists" class="toc-h2 toc-link" data-title="Checklists">Checklists</a>
  1627. </li>
  1628. <li>
  1629. <a href="#tocscustomfields" class="toc-h2 toc-link" data-title="CustomFields">CustomFields</a>
  1630. </li>
  1631. <li>
  1632. <a href="#tocscustomfieldssettings" class="toc-h2 toc-link" data-title="CustomFieldsSettings">CustomFieldsSettings</a>
  1633. </li>
  1634. <li>
  1635. <a href="#tocscustomfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="CustomFieldsSettingsDropdownitems">CustomFieldsSettingsDropdownitems</a>
  1636. </li>
  1637. <li>
  1638. <a href="#tocsintegrations" class="toc-h2 toc-link" data-title="Integrations">Integrations</a>
  1639. </li>
  1640. <li>
  1641. <a href="#tocslists" class="toc-h2 toc-link" data-title="Lists">Lists</a>
  1642. </li>
  1643. <li>
  1644. <a href="#tocslistswiplimit" class="toc-h2 toc-link" data-title="ListsWiplimit">ListsWiplimit</a>
  1645. </li>
  1646. <li>
  1647. <a href="#tocsswimlanes" class="toc-h2 toc-link" data-title="Swimlanes">Swimlanes</a>
  1648. </li>
  1649. </ul>
  1650. </li>
  1651. </ul>
  1652. </div>
  1653. <ul class="toc-footer">
  1654. </ul>
  1655. </div>
  1656. <div class="page-wrapper">
  1657. <div class="dark-box"></div>
  1658. <div class="content">
  1659. <h1 id="wekan-rest-api">Wekan REST API v8.01</h1>
  1660. <blockquote>
  1661. <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>
  1662. </blockquote>
  1663. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1664. <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>
  1665. <blockquote>
  1666. <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>
  1667. </blockquote>
  1668. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1669. <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>
  1670. <ul>
  1671. <li>Only call via HTTPS</li>
  1672. <li>Implement a timed authorization token expiration strategy</li>
  1673. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1674. </ul>
  1675. <h1 id="authentication">Authentication</h1>
  1676. <ul>
  1677. <li>API Key (UserSecurity)
  1678. <ul>
  1679. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1680. </ul>
  1681. </li>
  1682. </ul>
  1683. <h1 id="wekan-rest-api-login">Login</h1>
  1684. <h2 id="login">login</h2>
  1685. <p><a id="opIdlogin"></a></p>
  1686. <blockquote>
  1687. <p>Code samples</p>
  1688. </blockquote>
  1689. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1690. curl -X POST /users/login \
  1691. -H <span class="hljs-string">'Content-Type: application/json'</span> \
  1692. -H <span class="hljs-string">'Accept: */*'</span>
  1693. </code></pre>
  1694. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/login</span> HTTP/1.1
  1695. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/json
  1696. <span class="hljs-attribute">Accept</span>: */*
  1697. <span class="undefined"></span></span></code></pre>
  1698. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1699. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/json'</span>,
  1700. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1701. };
  1702. $.ajax({
  1703. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/login'</span>,
  1704. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1705. <span class="hljs-attr">headers</span>: headers,
  1706. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1707. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1708. }
  1709. })
  1710. </code></pre>
  1711. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  1712. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1713. "username": "string",
  1714. "password": "pa$$word"
  1715. }'</span>;
  1716. <span class="hljs-keyword">const</span> headers = {
  1717. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/json'</span>,
  1718. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1719. };
  1720. fetch(<span class="hljs-string">'/users/login'</span>,
  1721. {
  1722. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1723. <span class="hljs-attr">body</span>: inputBody,
  1724. <span class="hljs-attr">headers</span>: headers
  1725. })
  1726. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1727. <span class="hljs-keyword">return</span> res.json();
  1728. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1729. <span class="hljs-built_in">console</span>.log(body);
  1730. });
  1731. </code></pre>
  1732. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1733. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1734. headers = {
  1735. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  1736. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1737. }
  1738. result = RestClient.post <span class="hljs-string">'/users/login'</span>,
  1739. <span class="hljs-symbol">params:</span> {
  1740. }, <span class="hljs-symbol">headers:</span> headers
  1741. p JSON.parse(result)
  1742. </code></pre>
  1743. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1744. headers = {
  1745. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/json'</span>,
  1746. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  1747. }
  1748. r = requests.post(<span class="hljs-string">'/users/login'</span>, params={
  1749. }, headers = headers)
  1750. <span class="hljs-keyword">print</span> r.json()
  1751. </code></pre>
  1752. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/login"</span>);
  1753. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1754. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  1755. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1756. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1757. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1758. String inputLine;
  1759. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1760. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1761. response.append(inputLine);
  1762. }
  1763. in.close();
  1764. System.out.println(response.toString());
  1765. </code></pre>
  1766. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1767. <span class="hljs-keyword">import</span> (
  1768. <span class="hljs-string">"bytes"</span>
  1769. <span class="hljs-string">"net/http"</span>
  1770. )
  1771. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1772. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1773. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  1774. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  1775. }
  1776. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1777. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/login"</span>, data)
  1778. req.Header = headers
  1779. client := &amp;http.Client{}
  1780. resp, err := client.Do(req)
  1781. <span class="hljs-comment">// ...</span>
  1782. }
  1783. </code></pre>
  1784. <p><code>POST /users/login</code></p>
  1785. <p><em>Login with REST API</em></p>
  1786. <blockquote>
  1787. <p>Body parameter</p>
  1788. </blockquote>
  1789. <pre class="highlight tab tab-json"><code>{
  1790. <span class="hljs-attr">"username"</span>: <span class="hljs-string">"string"</span>,
  1791. <span class="hljs-attr">"password"</span>: <span class="hljs-string">"pa$$word"</span>
  1792. }
  1793. </code></pre>
  1794. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1795. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1796. </code></pre>
  1797. <h3 id="login-parameters">Parameters</h3>
  1798. <table>
  1799. <thead>
  1800. <tr>
  1801. <th>Name</th>
  1802. <th>In</th>
  1803. <th>Type</th>
  1804. <th>Required</th>
  1805. <th>Description</th>
  1806. </tr>
  1807. </thead>
  1808. <tbody>
  1809. <tr>
  1810. <td>body</td>
  1811. <td>body</td>
  1812. <td>object</td>
  1813. <td>true</td>
  1814. <td>Login credentials</td>
  1815. </tr>
  1816. <tr>
  1817. <td>» username</td>
  1818. <td>body</td>
  1819. <td>string</td>
  1820. <td>true</td>
  1821. <td>Your username</td>
  1822. </tr>
  1823. <tr>
  1824. <td>» password</td>
  1825. <td>body</td>
  1826. <td>string(password)</td>
  1827. <td>true</td>
  1828. <td>Your password</td>
  1829. </tr>
  1830. </tbody>
  1831. </table>
  1832. <blockquote>
  1833. <p>Example responses</p>
  1834. </blockquote>
  1835. <blockquote>
  1836. <p>200 Response</p>
  1837. </blockquote>
  1838. <h3 id="login-responses">Responses</h3>
  1839. <table>
  1840. <thead>
  1841. <tr>
  1842. <th>Status</th>
  1843. <th>Meaning</th>
  1844. <th>Description</th>
  1845. <th>Schema</th>
  1846. </tr>
  1847. </thead>
  1848. <tbody>
  1849. <tr>
  1850. <td>200</td>
  1851. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1852. <td>Successful authentication</td>
  1853. <td>Inline</td>
  1854. </tr>
  1855. <tr>
  1856. <td>400</td>
  1857. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1858. <td>Error in authentication</td>
  1859. <td>Inline</td>
  1860. </tr>
  1861. <tr>
  1862. <td>default</td>
  1863. <td>Default</td>
  1864. <td>Error in authentication</td>
  1865. <td>None</td>
  1866. </tr>
  1867. </tbody>
  1868. </table>
  1869. <h3 id="login-responseschema">Response Schema</h3>
  1870. <p>Status Code <strong>200</strong></p>
  1871. <table>
  1872. <thead>
  1873. <tr>
  1874. <th>Name</th>
  1875. <th>Type</th>
  1876. <th>Required</th>
  1877. <th>Restrictions</th>
  1878. <th>Description</th>
  1879. </tr>
  1880. </thead>
  1881. <tbody>
  1882. <tr>
  1883. <td>» id</td>
  1884. <td>string</td>
  1885. <td>true</td>
  1886. <td>none</td>
  1887. <td>User ID</td>
  1888. </tr>
  1889. <tr>
  1890. <td>» token</td>
  1891. <td>string</td>
  1892. <td>true</td>
  1893. <td>none</td>
  1894. <td>Authentication token</td>
  1895. </tr>
  1896. <tr>
  1897. <td>» tokenExpires</td>
  1898. <td>string(date-time)</td>
  1899. <td>true</td>
  1900. <td>none</td>
  1901. <td>Token expiration date</td>
  1902. </tr>
  1903. </tbody>
  1904. </table>
  1905. <p>Status Code <strong>400</strong></p>
  1906. <table>
  1907. <thead>
  1908. <tr>
  1909. <th>Name</th>
  1910. <th>Type</th>
  1911. <th>Required</th>
  1912. <th>Restrictions</th>
  1913. <th>Description</th>
  1914. </tr>
  1915. </thead>
  1916. <tbody>
  1917. <tr>
  1918. <td>» error</td>
  1919. <td>string</td>
  1920. <td>false</td>
  1921. <td>none</td>
  1922. <td>none</td>
  1923. </tr>
  1924. <tr>
  1925. <td>» reason</td>
  1926. <td>string</td>
  1927. <td>false</td>
  1928. <td>none</td>
  1929. <td>none</td>
  1930. </tr>
  1931. </tbody>
  1932. </table>
  1933. <aside class="success">
  1934. This operation does not require authentication
  1935. </aside>
  1936. <h2 id="register">register</h2>
  1937. <p><a id="opIdregister"></a></p>
  1938. <blockquote>
  1939. <p>Code samples</p>
  1940. </blockquote>
  1941. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1942. curl -X POST /users/register \
  1943. -H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
  1944. -H <span class="hljs-string">'Accept: */*'</span>
  1945. </code></pre>
  1946. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/register</span> HTTP/1.1
  1947. <span class="http"><span class="hljs-attribute">Content-Type</span>: application/x-www-form-urlencoded
  1948. <span class="hljs-attribute">Accept</span>: */*
  1949. <span class="undefined"></span></span></code></pre>
  1950. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  1951. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1952. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1953. };
  1954. $.ajax({
  1955. <span class="hljs-attr">url</span>: <span class="hljs-string">'/users/register'</span>,
  1956. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  1957. <span class="hljs-attr">headers</span>: headers,
  1958. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  1959. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  1960. }
  1961. })
  1962. </code></pre>
  1963. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  1964. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  1965. "username": "string",
  1966. "password": "pa$$word",
  1967. "email": "string"
  1968. }'</span>;
  1969. <span class="hljs-keyword">const</span> headers = {
  1970. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1971. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'*/*'</span>
  1972. };
  1973. fetch(<span class="hljs-string">'/users/register'</span>,
  1974. {
  1975. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  1976. <span class="hljs-attr">body</span>: inputBody,
  1977. <span class="hljs-attr">headers</span>: headers
  1978. })
  1979. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1980. <span class="hljs-keyword">return</span> res.json();
  1981. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1982. <span class="hljs-built_in">console</span>.log(body);
  1983. });
  1984. </code></pre>
  1985. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  1986. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  1987. headers = {
  1988. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1989. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'*/*'</span>
  1990. }
  1991. result = RestClient.post <span class="hljs-string">'/users/register'</span>,
  1992. <span class="hljs-symbol">params:</span> {
  1993. }, <span class="hljs-symbol">headers:</span> headers
  1994. p JSON.parse(result)
  1995. </code></pre>
  1996. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1997. headers = {
  1998. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'application/x-www-form-urlencoded'</span>,
  1999. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'*/*'</span>
  2000. }
  2001. r = requests.post(<span class="hljs-string">'/users/register'</span>, params={
  2002. }, headers = headers)
  2003. <span class="hljs-keyword">print</span> r.json()
  2004. </code></pre>
  2005. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/users/register"</span>);
  2006. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2007. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  2008. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2009. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2010. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2011. String inputLine;
  2012. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2013. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2014. response.append(inputLine);
  2015. }
  2016. in.close();
  2017. System.out.println(response.toString());
  2018. </code></pre>
  2019. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2020. <span class="hljs-keyword">import</span> (
  2021. <span class="hljs-string">"bytes"</span>
  2022. <span class="hljs-string">"net/http"</span>
  2023. )
  2024. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2025. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2026. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/x-www-form-urlencoded"</span>},
  2027. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"*/*"</span>},
  2028. }
  2029. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2030. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/users/register"</span>, data)
  2031. req.Header = headers
  2032. client := &amp;http.Client{}
  2033. resp, err := client.Do(req)
  2034. <span class="hljs-comment">// ...</span>
  2035. }
  2036. </code></pre>
  2037. <p><code>POST /users/register</code></p>
  2038. <p><em>Register with REST API</em></p>
  2039. <p>Notes:</p>
  2040. <ul>
  2041. <li>You will need to provide the token for any of the authenticated methods.</li>
  2042. </ul>
  2043. <blockquote>
  2044. <p>Body parameter</p>
  2045. </blockquote>
  2046. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2047. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2048. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2049. </code></pre>
  2050. <h3 id="register-parameters">Parameters</h3>
  2051. <table>
  2052. <thead>
  2053. <tr>
  2054. <th>Name</th>
  2055. <th>In</th>
  2056. <th>Type</th>
  2057. <th>Required</th>
  2058. <th>Description</th>
  2059. </tr>
  2060. </thead>
  2061. <tbody>
  2062. <tr>
  2063. <td>body</td>
  2064. <td>body</td>
  2065. <td>object</td>
  2066. <td>false</td>
  2067. <td>none</td>
  2068. </tr>
  2069. <tr>
  2070. <td>» username</td>
  2071. <td>body</td>
  2072. <td>string</td>
  2073. <td>true</td>
  2074. <td>Your username</td>
  2075. </tr>
  2076. <tr>
  2077. <td>» password</td>
  2078. <td>body</td>
  2079. <td>string(password)</td>
  2080. <td>true</td>
  2081. <td>Your password</td>
  2082. </tr>
  2083. <tr>
  2084. <td>» email</td>
  2085. <td>body</td>
  2086. <td>string</td>
  2087. <td>true</td>
  2088. <td>Your email</td>
  2089. </tr>
  2090. </tbody>
  2091. </table>
  2092. <blockquote>
  2093. <p>Example responses</p>
  2094. </blockquote>
  2095. <blockquote>
  2096. <p>200 Response</p>
  2097. </blockquote>
  2098. <h3 id="register-responses">Responses</h3>
  2099. <table>
  2100. <thead>
  2101. <tr>
  2102. <th>Status</th>
  2103. <th>Meaning</th>
  2104. <th>Description</th>
  2105. <th>Schema</th>
  2106. </tr>
  2107. </thead>
  2108. <tbody>
  2109. <tr>
  2110. <td>200</td>
  2111. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2112. <td>Successful registration</td>
  2113. <td>Inline</td>
  2114. </tr>
  2115. <tr>
  2116. <td>400</td>
  2117. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2118. <td>Error in registration</td>
  2119. <td>Inline</td>
  2120. </tr>
  2121. <tr>
  2122. <td>default</td>
  2123. <td>Default</td>
  2124. <td>Error in registration</td>
  2125. <td>None</td>
  2126. </tr>
  2127. </tbody>
  2128. </table>
  2129. <h3 id="register-responseschema">Response Schema</h3>
  2130. <p>Status Code <strong>200</strong></p>
  2131. <table>
  2132. <thead>
  2133. <tr>
  2134. <th>Name</th>
  2135. <th>Type</th>
  2136. <th>Required</th>
  2137. <th>Restrictions</th>
  2138. <th>Description</th>
  2139. </tr>
  2140. </thead>
  2141. <tbody>
  2142. <tr>
  2143. <td>» id</td>
  2144. <td>string</td>
  2145. <td>false</td>
  2146. <td>none</td>
  2147. <td>none</td>
  2148. </tr>
  2149. <tr>
  2150. <td>» token</td>
  2151. <td>string</td>
  2152. <td>false</td>
  2153. <td>none</td>
  2154. <td>none</td>
  2155. </tr>
  2156. <tr>
  2157. <td>» tokenExpires</td>
  2158. <td>string</td>
  2159. <td>false</td>
  2160. <td>none</td>
  2161. <td>none</td>
  2162. </tr>
  2163. </tbody>
  2164. </table>
  2165. <p>Status Code <strong>400</strong></p>
  2166. <table>
  2167. <thead>
  2168. <tr>
  2169. <th>Name</th>
  2170. <th>Type</th>
  2171. <th>Required</th>
  2172. <th>Restrictions</th>
  2173. <th>Description</th>
  2174. </tr>
  2175. </thead>
  2176. <tbody>
  2177. <tr>
  2178. <td>» error</td>
  2179. <td>number</td>
  2180. <td>false</td>
  2181. <td>none</td>
  2182. <td>none</td>
  2183. </tr>
  2184. <tr>
  2185. <td>» reason</td>
  2186. <td>string</td>
  2187. <td>false</td>
  2188. <td>none</td>
  2189. <td>none</td>
  2190. </tr>
  2191. </tbody>
  2192. </table>
  2193. <aside class="success">
  2194. This operation does not require authentication
  2195. </aside>
  2196. <h1 id="wekan-rest-api-boards">Boards</h1>
  2197. <h2 id="get_public_boards">get_public_boards</h2>
  2198. <p><a id="opIdget_public_boards"></a></p>
  2199. <blockquote>
  2200. <p>Code samples</p>
  2201. </blockquote>
  2202. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2203. curl -X GET /api/boards \
  2204. -H <span class="hljs-string">'Accept: application/json'</span> \
  2205. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2206. </code></pre>
  2207. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards</span> HTTP/1.1
  2208. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2209. <span class="undefined"></span></span></code></pre>
  2210. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2211. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2212. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2213. };
  2214. $.ajax({
  2215. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards'</span>,
  2216. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2217. <span class="hljs-attr">headers</span>: headers,
  2218. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2219. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2220. }
  2221. })
  2222. </code></pre>
  2223. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2224. <span class="hljs-keyword">const</span> headers = {
  2225. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2226. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2227. };
  2228. fetch(<span class="hljs-string">'/api/boards'</span>,
  2229. {
  2230. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2231. <span class="hljs-attr">headers</span>: headers
  2232. })
  2233. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2234. <span class="hljs-keyword">return</span> res.json();
  2235. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2236. <span class="hljs-built_in">console</span>.log(body);
  2237. });
  2238. </code></pre>
  2239. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2240. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2241. headers = {
  2242. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2243. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2244. }
  2245. result = RestClient.get <span class="hljs-string">'/api/boards'</span>,
  2246. <span class="hljs-symbol">params:</span> {
  2247. }, <span class="hljs-symbol">headers:</span> headers
  2248. p JSON.parse(result)
  2249. </code></pre>
  2250. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2251. headers = {
  2252. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2253. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2254. }
  2255. r = requests.get(<span class="hljs-string">'/api/boards'</span>, params={
  2256. }, headers = headers)
  2257. <span class="hljs-keyword">print</span> r.json()
  2258. </code></pre>
  2259. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards"</span>);
  2260. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2261. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2262. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2263. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2264. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2265. String inputLine;
  2266. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2267. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2268. response.append(inputLine);
  2269. }
  2270. in.close();
  2271. System.out.println(response.toString());
  2272. </code></pre>
  2273. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2274. <span class="hljs-keyword">import</span> (
  2275. <span class="hljs-string">"bytes"</span>
  2276. <span class="hljs-string">"net/http"</span>
  2277. )
  2278. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2279. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2280. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2281. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2282. }
  2283. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2284. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards"</span>, data)
  2285. req.Header = headers
  2286. client := &amp;http.Client{}
  2287. resp, err := client.Do(req)
  2288. <span class="hljs-comment">// ...</span>
  2289. }
  2290. </code></pre>
  2291. <p><code>GET /api/boards</code></p>
  2292. <p><em>Get all public boards</em></p>
  2293. <blockquote>
  2294. <p>Example responses</p>
  2295. </blockquote>
  2296. <blockquote>
  2297. <p>200 Response</p>
  2298. </blockquote>
  2299. <pre class="highlight tab tab-json"><code>[
  2300. {
  2301. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2302. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  2303. }
  2304. ]
  2305. </code></pre>
  2306. <h3 id="get_public_boards-responses">Responses</h3>
  2307. <table>
  2308. <thead>
  2309. <tr>
  2310. <th>Status</th>
  2311. <th>Meaning</th>
  2312. <th>Description</th>
  2313. <th>Schema</th>
  2314. </tr>
  2315. </thead>
  2316. <tbody>
  2317. <tr>
  2318. <td>200</td>
  2319. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2320. <td>200 response</td>
  2321. <td>Inline</td>
  2322. </tr>
  2323. </tbody>
  2324. </table>
  2325. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2326. <p>Status Code <strong>200</strong></p>
  2327. <table>
  2328. <thead>
  2329. <tr>
  2330. <th>Name</th>
  2331. <th>Type</th>
  2332. <th>Required</th>
  2333. <th>Restrictions</th>
  2334. <th>Description</th>
  2335. </tr>
  2336. </thead>
  2337. <tbody>
  2338. <tr>
  2339. <td>» _id</td>
  2340. <td>string</td>
  2341. <td>false</td>
  2342. <td>none</td>
  2343. <td>none</td>
  2344. </tr>
  2345. <tr>
  2346. <td>» title</td>
  2347. <td>string</td>
  2348. <td>false</td>
  2349. <td>none</td>
  2350. <td>none</td>
  2351. </tr>
  2352. </tbody>
  2353. </table>
  2354. <aside class="warning">
  2355. To perform this operation, you must be authenticated by means of one of the following methods:
  2356. UserSecurity
  2357. </aside>
  2358. <h2 id="new_board">new_board</h2>
  2359. <p><a id="opIdnew_board"></a></p>
  2360. <blockquote>
  2361. <p>Code samples</p>
  2362. </blockquote>
  2363. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2364. curl -X POST /api/boards \
  2365. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  2366. -H <span class="hljs-string">'Accept: application/json'</span> \
  2367. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2368. </code></pre>
  2369. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards</span> HTTP/1.1
  2370. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2371. Accept: application/json
  2372. </span></code></pre>
  2373. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2374. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2375. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2376. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2377. };
  2378. $.ajax({
  2379. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards'</span>,
  2380. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  2381. <span class="hljs-attr">headers</span>: headers,
  2382. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2383. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2384. }
  2385. })
  2386. </code></pre>
  2387. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2388. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  2389. "title": "string",
  2390. "owner": "string",
  2391. "isAdmin": true,
  2392. "isActive": true,
  2393. "isNoComments": true,
  2394. "isCommentOnly": true,
  2395. "isWorker": true,
  2396. "permission": "string",
  2397. "color": "string"
  2398. }'</span>;
  2399. <span class="hljs-keyword">const</span> headers = {
  2400. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  2401. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2402. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2403. };
  2404. fetch(<span class="hljs-string">'/api/boards'</span>,
  2405. {
  2406. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  2407. <span class="hljs-attr">body</span>: inputBody,
  2408. <span class="hljs-attr">headers</span>: headers
  2409. })
  2410. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2411. <span class="hljs-keyword">return</span> res.json();
  2412. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2413. <span class="hljs-built_in">console</span>.log(body);
  2414. });
  2415. </code></pre>
  2416. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2417. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2418. headers = {
  2419. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  2420. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2421. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2422. }
  2423. result = RestClient.post <span class="hljs-string">'/api/boards'</span>,
  2424. <span class="hljs-symbol">params:</span> {
  2425. }, <span class="hljs-symbol">headers:</span> headers
  2426. p JSON.parse(result)
  2427. </code></pre>
  2428. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2429. headers = {
  2430. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  2431. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2432. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2433. }
  2434. r = requests.post(<span class="hljs-string">'/api/boards'</span>, params={
  2435. }, headers = headers)
  2436. <span class="hljs-keyword">print</span> r.json()
  2437. </code></pre>
  2438. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards"</span>);
  2439. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2440. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  2441. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2442. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2443. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2444. String inputLine;
  2445. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2446. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2447. response.append(inputLine);
  2448. }
  2449. in.close();
  2450. System.out.println(response.toString());
  2451. </code></pre>
  2452. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2453. <span class="hljs-keyword">import</span> (
  2454. <span class="hljs-string">"bytes"</span>
  2455. <span class="hljs-string">"net/http"</span>
  2456. )
  2457. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2458. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2459. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  2460. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2461. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2462. }
  2463. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2464. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards"</span>, data)
  2465. req.Header = headers
  2466. client := &amp;http.Client{}
  2467. resp, err := client.Do(req)
  2468. <span class="hljs-comment">// ...</span>
  2469. }
  2470. </code></pre>
  2471. <p><code>POST /api/boards</code></p>
  2472. <p><em>Create a board</em></p>
  2473. <p>This allows to create a board.</p>
  2474. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2475. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2476. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2477. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2478. <blockquote>
  2479. <p>Body parameter</p>
  2480. </blockquote>
  2481. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2482. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2483. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2484. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2485. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2486. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2487. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2488. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2489. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2490. </code></pre>
  2491. <h3 id="new_board-parameters">Parameters</h3>
  2492. <table>
  2493. <thead>
  2494. <tr>
  2495. <th>Name</th>
  2496. <th>In</th>
  2497. <th>Type</th>
  2498. <th>Required</th>
  2499. <th>Description</th>
  2500. </tr>
  2501. </thead>
  2502. <tbody>
  2503. <tr>
  2504. <td>body</td>
  2505. <td>body</td>
  2506. <td>object</td>
  2507. <td>false</td>
  2508. <td>none</td>
  2509. </tr>
  2510. <tr>
  2511. <td>» title</td>
  2512. <td>body</td>
  2513. <td>string</td>
  2514. <td>true</td>
  2515. <td>the new title of the board</td>
  2516. </tr>
  2517. <tr>
  2518. <td>» owner</td>
  2519. <td>body</td>
  2520. <td>string</td>
  2521. <td>true</td>
  2522. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2523. </tr>
  2524. <tr>
  2525. <td>» isAdmin</td>
  2526. <td>body</td>
  2527. <td>boolean</td>
  2528. <td>false</td>
  2529. <td>is the owner an admin of the board (default true)</td>
  2530. </tr>
  2531. <tr>
  2532. <td>» isActive</td>
  2533. <td>body</td>
  2534. <td>boolean</td>
  2535. <td>false</td>
  2536. <td>is the board active (default true)</td>
  2537. </tr>
  2538. <tr>
  2539. <td>» isNoComments</td>
  2540. <td>body</td>
  2541. <td>boolean</td>
  2542. <td>false</td>
  2543. <td>disable comments (default false)</td>
  2544. </tr>
  2545. <tr>
  2546. <td>» isCommentOnly</td>
  2547. <td>body</td>
  2548. <td>boolean</td>
  2549. <td>false</td>
  2550. <td>only enable comments (default false)</td>
  2551. </tr>
  2552. <tr>
  2553. <td>» isWorker</td>
  2554. <td>body</td>
  2555. <td>boolean</td>
  2556. <td>false</td>
  2557. <td>only move cards, assign himself to card and comment (default false)</td>
  2558. </tr>
  2559. <tr>
  2560. <td>» permission</td>
  2561. <td>body</td>
  2562. <td>string</td>
  2563. <td>false</td>
  2564. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2565. </tr>
  2566. <tr>
  2567. <td>» color</td>
  2568. <td>body</td>
  2569. <td>string</td>
  2570. <td>false</td>
  2571. <td>the color of the board</td>
  2572. </tr>
  2573. </tbody>
  2574. </table>
  2575. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2576. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2577. (Not username or email)</p>
  2578. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2579. want public Wekan board</p>
  2580. <blockquote>
  2581. <p>Example responses</p>
  2582. </blockquote>
  2583. <blockquote>
  2584. <p>200 Response</p>
  2585. </blockquote>
  2586. <pre class="highlight tab tab-json"><code>{
  2587. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2588. <span class="hljs-attr">"defaultSwimlaneId"</span>: <span class="hljs-string">"string"</span>
  2589. }
  2590. </code></pre>
  2591. <h3 id="new_board-responses">Responses</h3>
  2592. <table>
  2593. <thead>
  2594. <tr>
  2595. <th>Status</th>
  2596. <th>Meaning</th>
  2597. <th>Description</th>
  2598. <th>Schema</th>
  2599. </tr>
  2600. </thead>
  2601. <tbody>
  2602. <tr>
  2603. <td>200</td>
  2604. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2605. <td>200 response</td>
  2606. <td>Inline</td>
  2607. </tr>
  2608. </tbody>
  2609. </table>
  2610. <h3 id="new_board-responseschema">Response Schema</h3>
  2611. <p>Status Code <strong>200</strong></p>
  2612. <table>
  2613. <thead>
  2614. <tr>
  2615. <th>Name</th>
  2616. <th>Type</th>
  2617. <th>Required</th>
  2618. <th>Restrictions</th>
  2619. <th>Description</th>
  2620. </tr>
  2621. </thead>
  2622. <tbody>
  2623. <tr>
  2624. <td>» _id</td>
  2625. <td>string</td>
  2626. <td>false</td>
  2627. <td>none</td>
  2628. <td>none</td>
  2629. </tr>
  2630. <tr>
  2631. <td>» defaultSwimlaneId</td>
  2632. <td>string</td>
  2633. <td>false</td>
  2634. <td>none</td>
  2635. <td>none</td>
  2636. </tr>
  2637. </tbody>
  2638. </table>
  2639. <aside class="warning">
  2640. To perform this operation, you must be authenticated by means of one of the following methods:
  2641. UserSecurity
  2642. </aside>
  2643. <h2 id="get_board">get_board</h2>
  2644. <p><a id="opIdget_board"></a></p>
  2645. <blockquote>
  2646. <p>Code samples</p>
  2647. </blockquote>
  2648. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2649. curl -X GET /api/boards/{board} \
  2650. -H <span class="hljs-string">'Accept: application/json'</span> \
  2651. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2652. </code></pre>
  2653. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}</span> HTTP/1.1
  2654. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  2655. <span class="undefined"></span></span></code></pre>
  2656. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2657. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2658. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2659. };
  2660. $.ajax({
  2661. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}'</span>,
  2662. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  2663. <span class="hljs-attr">headers</span>: headers,
  2664. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2665. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2666. }
  2667. })
  2668. </code></pre>
  2669. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2670. <span class="hljs-keyword">const</span> headers = {
  2671. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  2672. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2673. };
  2674. fetch(<span class="hljs-string">'/api/boards/{board}'</span>,
  2675. {
  2676. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  2677. <span class="hljs-attr">headers</span>: headers
  2678. })
  2679. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2680. <span class="hljs-keyword">return</span> res.json();
  2681. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2682. <span class="hljs-built_in">console</span>.log(body);
  2683. });
  2684. </code></pre>
  2685. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2686. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2687. headers = {
  2688. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  2689. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2690. }
  2691. result = RestClient.get <span class="hljs-string">'/api/boards/{board}'</span>,
  2692. <span class="hljs-symbol">params:</span> {
  2693. }, <span class="hljs-symbol">headers:</span> headers
  2694. p JSON.parse(result)
  2695. </code></pre>
  2696. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2697. headers = {
  2698. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  2699. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2700. }
  2701. r = requests.get(<span class="hljs-string">'/api/boards/{board}'</span>, params={
  2702. }, headers = headers)
  2703. <span class="hljs-keyword">print</span> r.json()
  2704. </code></pre>
  2705. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}"</span>);
  2706. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2707. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  2708. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2709. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2710. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2711. String inputLine;
  2712. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2713. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2714. response.append(inputLine);
  2715. }
  2716. in.close();
  2717. System.out.println(response.toString());
  2718. </code></pre>
  2719. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2720. <span class="hljs-keyword">import</span> (
  2721. <span class="hljs-string">"bytes"</span>
  2722. <span class="hljs-string">"net/http"</span>
  2723. )
  2724. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2725. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2726. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  2727. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2728. }
  2729. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2730. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}"</span>, data)
  2731. req.Header = headers
  2732. client := &amp;http.Client{}
  2733. resp, err := client.Do(req)
  2734. <span class="hljs-comment">// ...</span>
  2735. }
  2736. </code></pre>
  2737. <p><code>GET /api/boards/{board}</code></p>
  2738. <p><em>Get the board with that particular ID</em></p>
  2739. <h3 id="get_board-parameters">Parameters</h3>
  2740. <table>
  2741. <thead>
  2742. <tr>
  2743. <th>Name</th>
  2744. <th>In</th>
  2745. <th>Type</th>
  2746. <th>Required</th>
  2747. <th>Description</th>
  2748. </tr>
  2749. </thead>
  2750. <tbody>
  2751. <tr>
  2752. <td>board</td>
  2753. <td>path</td>
  2754. <td>string</td>
  2755. <td>true</td>
  2756. <td>the ID of the board to retrieve the data</td>
  2757. </tr>
  2758. </tbody>
  2759. </table>
  2760. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2761. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2762. <blockquote>
  2763. <p>Example responses</p>
  2764. </blockquote>
  2765. <blockquote>
  2766. <p>200 Response</p>
  2767. </blockquote>
  2768. <pre class="highlight tab tab-json"><code>{
  2769. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  2770. <span class="hljs-attr">"slug"</span>: <span class="hljs-string">"string"</span>,
  2771. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  2772. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  2773. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  2774. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  2775. <span class="hljs-attr">"stars"</span>: <span class="hljs-number">0</span>,
  2776. <span class="hljs-attr">"labels"</span>: [
  2777. {
  2778. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  2779. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  2780. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>
  2781. }
  2782. ],
  2783. <span class="hljs-attr">"members"</span>: [
  2784. {
  2785. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  2786. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  2787. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  2788. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  2789. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  2790. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  2791. }
  2792. ],
  2793. <span class="hljs-attr">"permission"</span>: <span class="hljs-string">"public"</span>,
  2794. <span class="hljs-attr">"orgs"</span>: [
  2795. {
  2796. <span class="hljs-attr">"orgId"</span>: <span class="hljs-string">"string"</span>,
  2797. <span class="hljs-attr">"orgDisplayName"</span>: <span class="hljs-string">"string"</span>,
  2798. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  2799. }
  2800. ],
  2801. <span class="hljs-attr">"teams"</span>: [
  2802. {
  2803. <span class="hljs-attr">"teamId"</span>: <span class="hljs-string">"string"</span>,
  2804. <span class="hljs-attr">"teamDisplayName"</span>: <span class="hljs-string">"string"</span>,
  2805. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  2806. }
  2807. ],
  2808. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"belize"</span>,
  2809. <span class="hljs-attr">"backgroundImageURL"</span>: <span class="hljs-string">"string"</span>,
  2810. <span class="hljs-attr">"allowsCardCounterList"</span>: <span class="hljs-literal">true</span>,
  2811. <span class="hljs-attr">"allowsBoardMemberList"</span>: <span class="hljs-literal">true</span>,
  2812. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  2813. <span class="hljs-attr">"subtasksDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  2814. <span class="hljs-attr">"subtasksDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  2815. <span class="hljs-attr">"dateSettingsDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  2816. <span class="hljs-attr">"dateSettingsDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  2817. <span class="hljs-attr">"allowsSubtasks"</span>: <span class="hljs-literal">true</span>,
  2818. <span class="hljs-attr">"allowsAttachments"</span>: <span class="hljs-literal">true</span>,
  2819. <span class="hljs-attr">"allowsChecklists"</span>: <span class="hljs-literal">true</span>,
  2820. <span class="hljs-attr">"allowsComments"</span>: <span class="hljs-literal">true</span>,
  2821. <span class="hljs-attr">"allowsDescriptionTitle"</span>: <span class="hljs-literal">true</span>,
  2822. <span class="hljs-attr">"allowsDescriptionText"</span>: <span class="hljs-literal">true</span>,
  2823. <span class="hljs-attr">"allowsDescriptionTextOnMinicard"</span>: <span class="hljs-literal">true</span>,
  2824. <span class="hljs-attr">"allowsCoverAttachmentOnMinicard"</span>: <span class="hljs-literal">true</span>,
  2825. <span class="hljs-attr">"allowsBadgeAttachmentOnMinicard"</span>: <span class="hljs-literal">true</span>,
  2826. <span class="hljs-attr">"allowsCardSortingByNumberOnMinicard"</span>: <span class="hljs-literal">true</span>,
  2827. <span class="hljs-attr">"allowsCardNumber"</span>: <span class="hljs-literal">true</span>,
  2828. <span class="hljs-attr">"allowsActivities"</span>: <span class="hljs-literal">true</span>,
  2829. <span class="hljs-attr">"allowsLabels"</span>: <span class="hljs-literal">true</span>,
  2830. <span class="hljs-attr">"allowsCreator"</span>: <span class="hljs-literal">true</span>,
  2831. <span class="hljs-attr">"allowsCreatorOnMinicard"</span>: <span class="hljs-literal">true</span>,
  2832. <span class="hljs-attr">"allowsAssignee"</span>: <span class="hljs-literal">true</span>,
  2833. <span class="hljs-attr">"allowsMembers"</span>: <span class="hljs-literal">true</span>,
  2834. <span class="hljs-attr">"allowsRequestedBy"</span>: <span class="hljs-literal">true</span>,
  2835. <span class="hljs-attr">"allowsCardSortingByNumber"</span>: <span class="hljs-literal">true</span>,
  2836. <span class="hljs-attr">"allowsShowLists"</span>: <span class="hljs-literal">true</span>,
  2837. <span class="hljs-attr">"allowsAssignedBy"</span>: <span class="hljs-literal">true</span>,
  2838. <span class="hljs-attr">"allowsShowListsOnMinicard"</span>: <span class="hljs-literal">true</span>,
  2839. <span class="hljs-attr">"allowsReceivedDate"</span>: <span class="hljs-literal">true</span>,
  2840. <span class="hljs-attr">"allowsStartDate"</span>: <span class="hljs-literal">true</span>,
  2841. <span class="hljs-attr">"allowsEndDate"</span>: <span class="hljs-literal">true</span>,
  2842. <span class="hljs-attr">"allowsDueDate"</span>: <span class="hljs-literal">true</span>,
  2843. <span class="hljs-attr">"presentParentTask"</span>: <span class="hljs-string">"prefix-with-full-path"</span>,
  2844. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  2845. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  2846. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  2847. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  2848. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  2849. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  2850. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"board"</span>,
  2851. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  2852. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>
  2853. }
  2854. </code></pre>
  2855. <h3 id="get_board-responses">Responses</h3>
  2856. <table>
  2857. <thead>
  2858. <tr>
  2859. <th>Status</th>
  2860. <th>Meaning</th>
  2861. <th>Description</th>
  2862. <th>Schema</th>
  2863. </tr>
  2864. </thead>
  2865. <tbody>
  2866. <tr>
  2867. <td>200</td>
  2868. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2869. <td>200 response</td>
  2870. <td><a href="#schemaboards">Boards</a></td>
  2871. </tr>
  2872. </tbody>
  2873. </table>
  2874. <aside class="warning">
  2875. To perform this operation, you must be authenticated by means of one of the following methods:
  2876. UserSecurity
  2877. </aside>
  2878. <h2 id="delete_board">delete_board</h2>
  2879. <p><a id="opIddelete_board"></a></p>
  2880. <blockquote>
  2881. <p>Code samples</p>
  2882. </blockquote>
  2883. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2884. curl -X DELETE /api/boards/{board} \
  2885. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2886. </code></pre>
  2887. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}</span> HTTP/1.1
  2888. <span class="undefined"></span></code></pre>
  2889. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2890. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2891. };
  2892. $.ajax({
  2893. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}'</span>,
  2894. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  2895. <span class="hljs-attr">headers</span>: headers,
  2896. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2897. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2898. }
  2899. })
  2900. </code></pre>
  2901. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  2902. <span class="hljs-keyword">const</span> headers = {
  2903. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2904. };
  2905. fetch(<span class="hljs-string">'/api/boards/{board}'</span>,
  2906. {
  2907. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  2908. <span class="hljs-attr">headers</span>: headers
  2909. })
  2910. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2911. <span class="hljs-keyword">return</span> res.json();
  2912. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2913. <span class="hljs-built_in">console</span>.log(body);
  2914. });
  2915. </code></pre>
  2916. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2917. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2918. headers = {
  2919. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2920. }
  2921. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}'</span>,
  2922. <span class="hljs-symbol">params:</span> {
  2923. }, <span class="hljs-symbol">headers:</span> headers
  2924. p JSON.parse(result)
  2925. </code></pre>
  2926. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2927. headers = {
  2928. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2929. }
  2930. r = requests.delete(<span class="hljs-string">'/api/boards/{board}'</span>, params={
  2931. }, headers = headers)
  2932. <span class="hljs-keyword">print</span> r.json()
  2933. </code></pre>
  2934. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}"</span>);
  2935. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2936. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  2937. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2938. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2939. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2940. String inputLine;
  2941. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2942. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2943. response.append(inputLine);
  2944. }
  2945. in.close();
  2946. System.out.println(response.toString());
  2947. </code></pre>
  2948. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2949. <span class="hljs-keyword">import</span> (
  2950. <span class="hljs-string">"bytes"</span>
  2951. <span class="hljs-string">"net/http"</span>
  2952. )
  2953. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2954. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2955. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2956. }
  2957. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2958. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}"</span>, data)
  2959. req.Header = headers
  2960. client := &amp;http.Client{}
  2961. resp, err := client.Do(req)
  2962. <span class="hljs-comment">// ...</span>
  2963. }
  2964. </code></pre>
  2965. <p><code>DELETE /api/boards/{board}</code></p>
  2966. <p><em>Delete a board</em></p>
  2967. <h3 id="delete_board-parameters">Parameters</h3>
  2968. <table>
  2969. <thead>
  2970. <tr>
  2971. <th>Name</th>
  2972. <th>In</th>
  2973. <th>Type</th>
  2974. <th>Required</th>
  2975. <th>Description</th>
  2976. </tr>
  2977. </thead>
  2978. <tbody>
  2979. <tr>
  2980. <td>board</td>
  2981. <td>path</td>
  2982. <td>string</td>
  2983. <td>true</td>
  2984. <td>the ID of the board</td>
  2985. </tr>
  2986. </tbody>
  2987. </table>
  2988. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2989. <p><strong>board</strong>: the ID of the board</p>
  2990. <h3 id="delete_board-responses">Responses</h3>
  2991. <table>
  2992. <thead>
  2993. <tr>
  2994. <th>Status</th>
  2995. <th>Meaning</th>
  2996. <th>Description</th>
  2997. <th>Schema</th>
  2998. </tr>
  2999. </thead>
  3000. <tbody>
  3001. <tr>
  3002. <td>200</td>
  3003. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3004. <td>200 response</td>
  3005. <td>None</td>
  3006. </tr>
  3007. </tbody>
  3008. </table>
  3009. <aside class="warning">
  3010. To perform this operation, you must be authenticated by means of one of the following methods:
  3011. UserSecurity
  3012. </aside>
  3013. <h2 id="get_board_attachments">get_board_attachments</h2>
  3014. <p><a id="opIdget_board_attachments"></a></p>
  3015. <blockquote>
  3016. <p>Code samples</p>
  3017. </blockquote>
  3018. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3019. curl -X GET /api/boards/{board}/attachments \
  3020. -H <span class="hljs-string">'Accept: application/json'</span> \
  3021. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3022. </code></pre>
  3023. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/attachments</span> HTTP/1.1
  3024. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3025. <span class="undefined"></span></span></code></pre>
  3026. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3027. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3028. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3029. };
  3030. $.ajax({
  3031. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  3032. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3033. <span class="hljs-attr">headers</span>: headers,
  3034. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3035. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3036. }
  3037. })
  3038. </code></pre>
  3039. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3040. <span class="hljs-keyword">const</span> headers = {
  3041. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3042. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3043. };
  3044. fetch(<span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  3045. {
  3046. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3047. <span class="hljs-attr">headers</span>: headers
  3048. })
  3049. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3050. <span class="hljs-keyword">return</span> res.json();
  3051. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3052. <span class="hljs-built_in">console</span>.log(body);
  3053. });
  3054. </code></pre>
  3055. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3056. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3057. headers = {
  3058. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3059. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3060. }
  3061. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  3062. <span class="hljs-symbol">params:</span> {
  3063. }, <span class="hljs-symbol">headers:</span> headers
  3064. p JSON.parse(result)
  3065. </code></pre>
  3066. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3067. headers = {
  3068. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3069. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3070. }
  3071. r = requests.get(<span class="hljs-string">'/api/boards/{board}/attachments'</span>, params={
  3072. }, headers = headers)
  3073. <span class="hljs-keyword">print</span> r.json()
  3074. </code></pre>
  3075. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/attachments"</span>);
  3076. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3077. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3078. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3079. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3080. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3081. String inputLine;
  3082. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3083. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3084. response.append(inputLine);
  3085. }
  3086. in.close();
  3087. System.out.println(response.toString());
  3088. </code></pre>
  3089. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3090. <span class="hljs-keyword">import</span> (
  3091. <span class="hljs-string">"bytes"</span>
  3092. <span class="hljs-string">"net/http"</span>
  3093. )
  3094. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3095. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3096. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3097. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3098. }
  3099. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3100. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/attachments"</span>, data)
  3101. req.Header = headers
  3102. client := &amp;http.Client{}
  3103. resp, err := client.Do(req)
  3104. <span class="hljs-comment">// ...</span>
  3105. }
  3106. </code></pre>
  3107. <p><code>GET /api/boards/{board}/attachments</code></p>
  3108. <p><em>Get the list of attachments of a board</em></p>
  3109. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3110. <table>
  3111. <thead>
  3112. <tr>
  3113. <th>Name</th>
  3114. <th>In</th>
  3115. <th>Type</th>
  3116. <th>Required</th>
  3117. <th>Description</th>
  3118. </tr>
  3119. </thead>
  3120. <tbody>
  3121. <tr>
  3122. <td>board</td>
  3123. <td>path</td>
  3124. <td>string</td>
  3125. <td>true</td>
  3126. <td>the board ID</td>
  3127. </tr>
  3128. </tbody>
  3129. </table>
  3130. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3131. <p><strong>board</strong>: the board ID</p>
  3132. <blockquote>
  3133. <p>Example responses</p>
  3134. </blockquote>
  3135. <blockquote>
  3136. <p>200 Response</p>
  3137. </blockquote>
  3138. <pre class="highlight tab tab-json"><code>[
  3139. {
  3140. <span class="hljs-attr">"attachmentId"</span>: <span class="hljs-string">"string"</span>,
  3141. <span class="hljs-attr">"attachmentName"</span>: <span class="hljs-string">"string"</span>,
  3142. <span class="hljs-attr">"attachmentType"</span>: <span class="hljs-string">"string"</span>,
  3143. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  3144. <span class="hljs-attr">"urlDownload"</span>: <span class="hljs-string">"string"</span>,
  3145. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  3146. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  3147. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  3148. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>
  3149. }
  3150. ]
  3151. </code></pre>
  3152. <h3 id="get_board_attachments-responses">Responses</h3>
  3153. <table>
  3154. <thead>
  3155. <tr>
  3156. <th>Status</th>
  3157. <th>Meaning</th>
  3158. <th>Description</th>
  3159. <th>Schema</th>
  3160. </tr>
  3161. </thead>
  3162. <tbody>
  3163. <tr>
  3164. <td>200</td>
  3165. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3166. <td>200 response</td>
  3167. <td>Inline</td>
  3168. </tr>
  3169. </tbody>
  3170. </table>
  3171. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3172. <p>Status Code <strong>200</strong></p>
  3173. <table>
  3174. <thead>
  3175. <tr>
  3176. <th>Name</th>
  3177. <th>Type</th>
  3178. <th>Required</th>
  3179. <th>Restrictions</th>
  3180. <th>Description</th>
  3181. </tr>
  3182. </thead>
  3183. <tbody>
  3184. <tr>
  3185. <td>» attachmentId</td>
  3186. <td>string</td>
  3187. <td>false</td>
  3188. <td>none</td>
  3189. <td>none</td>
  3190. </tr>
  3191. <tr>
  3192. <td>» attachmentName</td>
  3193. <td>string</td>
  3194. <td>false</td>
  3195. <td>none</td>
  3196. <td>none</td>
  3197. </tr>
  3198. <tr>
  3199. <td>» attachmentType</td>
  3200. <td>string</td>
  3201. <td>false</td>
  3202. <td>none</td>
  3203. <td>none</td>
  3204. </tr>
  3205. <tr>
  3206. <td>» url</td>
  3207. <td>string</td>
  3208. <td>false</td>
  3209. <td>none</td>
  3210. <td>none</td>
  3211. </tr>
  3212. <tr>
  3213. <td>» urlDownload</td>
  3214. <td>string</td>
  3215. <td>false</td>
  3216. <td>none</td>
  3217. <td>none</td>
  3218. </tr>
  3219. <tr>
  3220. <td>» boardId</td>
  3221. <td>string</td>
  3222. <td>false</td>
  3223. <td>none</td>
  3224. <td>none</td>
  3225. </tr>
  3226. <tr>
  3227. <td>» swimlaneId</td>
  3228. <td>string</td>
  3229. <td>false</td>
  3230. <td>none</td>
  3231. <td>none</td>
  3232. </tr>
  3233. <tr>
  3234. <td>» listId</td>
  3235. <td>string</td>
  3236. <td>false</td>
  3237. <td>none</td>
  3238. <td>none</td>
  3239. </tr>
  3240. <tr>
  3241. <td>» cardId</td>
  3242. <td>string</td>
  3243. <td>false</td>
  3244. <td>none</td>
  3245. <td>none</td>
  3246. </tr>
  3247. </tbody>
  3248. </table>
  3249. <aside class="warning">
  3250. To perform this operation, you must be authenticated by means of one of the following methods:
  3251. UserSecurity
  3252. </aside>
  3253. <h2 id="exportjson">exportJson</h2>
  3254. <p><a id="opIdexportJson"></a></p>
  3255. <blockquote>
  3256. <p>Code samples</p>
  3257. </blockquote>
  3258. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3259. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3260. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3261. </code></pre>
  3262. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/export</span> HTTP/1.1
  3263. <span class="undefined"></span></code></pre>
  3264. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3265. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3266. };
  3267. $.ajax({
  3268. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/export'</span>,
  3269. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3270. <span class="hljs-attr">headers</span>: headers,
  3271. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3272. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3273. }
  3274. })
  3275. </code></pre>
  3276. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3277. <span class="hljs-keyword">const</span> headers = {
  3278. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3279. };
  3280. fetch(<span class="hljs-string">'/api/boards/{board}/export'</span>,
  3281. {
  3282. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3283. <span class="hljs-attr">headers</span>: headers
  3284. })
  3285. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3286. <span class="hljs-keyword">return</span> res.json();
  3287. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3288. <span class="hljs-built_in">console</span>.log(body);
  3289. });
  3290. </code></pre>
  3291. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3292. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3293. headers = {
  3294. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3295. }
  3296. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/export'</span>,
  3297. <span class="hljs-symbol">params:</span> {
  3298. }, <span class="hljs-symbol">headers:</span> headers
  3299. p JSON.parse(result)
  3300. </code></pre>
  3301. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3302. headers = {
  3303. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3304. }
  3305. r = requests.get(<span class="hljs-string">'/api/boards/{board}/export'</span>, params={
  3306. }, headers = headers)
  3307. <span class="hljs-keyword">print</span> r.json()
  3308. </code></pre>
  3309. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/export"</span>);
  3310. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3311. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3312. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3313. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3314. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3315. String inputLine;
  3316. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3317. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3318. response.append(inputLine);
  3319. }
  3320. in.close();
  3321. System.out.println(response.toString());
  3322. </code></pre>
  3323. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3324. <span class="hljs-keyword">import</span> (
  3325. <span class="hljs-string">"bytes"</span>
  3326. <span class="hljs-string">"net/http"</span>
  3327. )
  3328. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3329. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3330. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3331. }
  3332. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3333. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/export"</span>, data)
  3334. req.Header = headers
  3335. client := &amp;http.Client{}
  3336. resp, err := client.Do(req)
  3337. <span class="hljs-comment">// ...</span>
  3338. }
  3339. </code></pre>
  3340. <p><code>GET /api/boards/{board}/export</code></p>
  3341. <p><em>This route is used to export the board to a json file format.</em></p>
  3342. <p>If user is already logged-in, pass loginToken as param
  3343. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3344. <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>
  3345. for detailed explanations</p>
  3346. <h3 id="exportjson-parameters">Parameters</h3>
  3347. <table>
  3348. <thead>
  3349. <tr>
  3350. <th>Name</th>
  3351. <th>In</th>
  3352. <th>Type</th>
  3353. <th>Required</th>
  3354. <th>Description</th>
  3355. </tr>
  3356. </thead>
  3357. <tbody>
  3358. <tr>
  3359. <td>board</td>
  3360. <td>path</td>
  3361. <td>string</td>
  3362. <td>true</td>
  3363. <td>the ID of the board we are exporting</td>
  3364. </tr>
  3365. </tbody>
  3366. </table>
  3367. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3368. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3369. <h3 id="exportjson-responses">Responses</h3>
  3370. <table>
  3371. <thead>
  3372. <tr>
  3373. <th>Status</th>
  3374. <th>Meaning</th>
  3375. <th>Description</th>
  3376. <th>Schema</th>
  3377. </tr>
  3378. </thead>
  3379. <tbody>
  3380. <tr>
  3381. <td>200</td>
  3382. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3383. <td>200 response</td>
  3384. <td>None</td>
  3385. </tr>
  3386. </tbody>
  3387. </table>
  3388. <aside class="warning">
  3389. To perform this operation, you must be authenticated by means of one of the following methods:
  3390. UserSecurity
  3391. </aside>
  3392. <h2 id="copy_board">copy_board</h2>
  3393. <p><a id="opIdcopy_board"></a></p>
  3394. <blockquote>
  3395. <p>Code samples</p>
  3396. </blockquote>
  3397. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3398. curl -X POST /api/boards/{board}/copy \
  3399. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3400. -H <span class="hljs-string">'Accept: application/json'</span> \
  3401. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3402. </code></pre>
  3403. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/copy</span> HTTP/1.1
  3404. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3405. Accept: application/json
  3406. </span></code></pre>
  3407. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3408. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3409. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3410. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3411. };
  3412. $.ajax({
  3413. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/copy'</span>,
  3414. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3415. <span class="hljs-attr">headers</span>: headers,
  3416. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3417. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3418. }
  3419. })
  3420. </code></pre>
  3421. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3422. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3423. "title": "string"
  3424. }'</span>;
  3425. <span class="hljs-keyword">const</span> headers = {
  3426. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3427. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3428. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3429. };
  3430. fetch(<span class="hljs-string">'/api/boards/{board}/copy'</span>,
  3431. {
  3432. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3433. <span class="hljs-attr">body</span>: inputBody,
  3434. <span class="hljs-attr">headers</span>: headers
  3435. })
  3436. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3437. <span class="hljs-keyword">return</span> res.json();
  3438. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3439. <span class="hljs-built_in">console</span>.log(body);
  3440. });
  3441. </code></pre>
  3442. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3443. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3444. headers = {
  3445. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3446. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3447. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3448. }
  3449. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/copy'</span>,
  3450. <span class="hljs-symbol">params:</span> {
  3451. }, <span class="hljs-symbol">headers:</span> headers
  3452. p JSON.parse(result)
  3453. </code></pre>
  3454. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3455. headers = {
  3456. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3457. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3458. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3459. }
  3460. r = requests.post(<span class="hljs-string">'/api/boards/{board}/copy'</span>, params={
  3461. }, headers = headers)
  3462. <span class="hljs-keyword">print</span> r.json()
  3463. </code></pre>
  3464. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/copy"</span>);
  3465. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3466. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3467. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3468. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3469. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3470. String inputLine;
  3471. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3472. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3473. response.append(inputLine);
  3474. }
  3475. in.close();
  3476. System.out.println(response.toString());
  3477. </code></pre>
  3478. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3479. <span class="hljs-keyword">import</span> (
  3480. <span class="hljs-string">"bytes"</span>
  3481. <span class="hljs-string">"net/http"</span>
  3482. )
  3483. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3484. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3485. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3486. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3487. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3488. }
  3489. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3490. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/copy"</span>, data)
  3491. req.Header = headers
  3492. client := &amp;http.Client{}
  3493. resp, err := client.Do(req)
  3494. <span class="hljs-comment">// ...</span>
  3495. }
  3496. </code></pre>
  3497. <p><code>POST /api/boards/{board}/copy</code></p>
  3498. <p><em>Copy a board to a new one</em></p>
  3499. <p>If your are board admin or wekan admin, this copies the
  3500. given board to a new one.</p>
  3501. <blockquote>
  3502. <p>Body parameter</p>
  3503. </blockquote>
  3504. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  3505. </code></pre>
  3506. <h3 id="copy_board-parameters">Parameters</h3>
  3507. <table>
  3508. <thead>
  3509. <tr>
  3510. <th>Name</th>
  3511. <th>In</th>
  3512. <th>Type</th>
  3513. <th>Required</th>
  3514. <th>Description</th>
  3515. </tr>
  3516. </thead>
  3517. <tbody>
  3518. <tr>
  3519. <td>board</td>
  3520. <td>path</td>
  3521. <td>string</td>
  3522. <td>true</td>
  3523. <td>the board</td>
  3524. </tr>
  3525. <tr>
  3526. <td>body</td>
  3527. <td>body</td>
  3528. <td>object</td>
  3529. <td>false</td>
  3530. <td>none</td>
  3531. </tr>
  3532. <tr>
  3533. <td>» title</td>
  3534. <td>body</td>
  3535. <td>string</td>
  3536. <td>true</td>
  3537. <td>the title of the new board (default to old one)</td>
  3538. </tr>
  3539. </tbody>
  3540. </table>
  3541. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3542. <p><strong>board</strong>: the board</p>
  3543. <blockquote>
  3544. <p>Example responses</p>
  3545. </blockquote>
  3546. <blockquote>
  3547. <p>200 Response</p>
  3548. </blockquote>
  3549. <pre class="highlight tab tab-json"><code><span class="hljs-string">"string"</span>
  3550. </code></pre>
  3551. <h3 id="copy_board-responses">Responses</h3>
  3552. <table>
  3553. <thead>
  3554. <tr>
  3555. <th>Status</th>
  3556. <th>Meaning</th>
  3557. <th>Description</th>
  3558. <th>Schema</th>
  3559. </tr>
  3560. </thead>
  3561. <tbody>
  3562. <tr>
  3563. <td>200</td>
  3564. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3565. <td>200 response</td>
  3566. <td>string</td>
  3567. </tr>
  3568. </tbody>
  3569. </table>
  3570. <aside class="warning">
  3571. To perform this operation, you must be authenticated by means of one of the following methods:
  3572. UserSecurity
  3573. </aside>
  3574. <h2 id="add_board_label">add_board_label</h2>
  3575. <p><a id="opIdadd_board_label"></a></p>
  3576. <blockquote>
  3577. <p>Code samples</p>
  3578. </blockquote>
  3579. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3580. curl -X PUT /api/boards/{board}/labels \
  3581. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3582. -H <span class="hljs-string">'Accept: application/json'</span> \
  3583. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3584. </code></pre>
  3585. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/labels</span> HTTP/1.1
  3586. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3587. Accept: application/json
  3588. </span></code></pre>
  3589. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3590. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3591. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3592. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3593. };
  3594. $.ajax({
  3595. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3596. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  3597. <span class="hljs-attr">headers</span>: headers,
  3598. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3599. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3600. }
  3601. })
  3602. </code></pre>
  3603. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3604. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3605. "label": "string"
  3606. }'</span>;
  3607. <span class="hljs-keyword">const</span> headers = {
  3608. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3609. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3610. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3611. };
  3612. fetch(<span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3613. {
  3614. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</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-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3625. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3626. headers = {
  3627. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3628. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3629. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3630. }
  3631. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3632. <span class="hljs-symbol">params:</span> {
  3633. }, <span class="hljs-symbol">headers:</span> headers
  3634. p JSON.parse(result)
  3635. </code></pre>
  3636. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3637. headers = {
  3638. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3639. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3640. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3641. }
  3642. r = requests.put(<span class="hljs-string">'/api/boards/{board}/labels'</span>, params={
  3643. }, headers = headers)
  3644. <span class="hljs-keyword">print</span> r.json()
  3645. </code></pre>
  3646. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/labels"</span>);
  3647. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3648. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  3649. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3650. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3651. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3652. String inputLine;
  3653. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3654. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3655. response.append(inputLine);
  3656. }
  3657. in.close();
  3658. System.out.println(response.toString());
  3659. </code></pre>
  3660. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3661. <span class="hljs-keyword">import</span> (
  3662. <span class="hljs-string">"bytes"</span>
  3663. <span class="hljs-string">"net/http"</span>
  3664. )
  3665. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3666. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3667. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3668. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3669. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3670. }
  3671. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3672. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/labels"</span>, data)
  3673. req.Header = headers
  3674. client := &amp;http.Client{}
  3675. resp, err := client.Do(req)
  3676. <span class="hljs-comment">// ...</span>
  3677. }
  3678. </code></pre>
  3679. <p><code>PUT /api/boards/{board}/labels</code></p>
  3680. <p><em>Add a label to a board</em></p>
  3681. <p>If the board doesn't have the name/color label, this function
  3682. adds the label to the board.</p>
  3683. <blockquote>
  3684. <p>Body parameter</p>
  3685. </blockquote>
  3686. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3687. </code></pre>
  3688. <h3 id="add_board_label-parameters">Parameters</h3>
  3689. <table>
  3690. <thead>
  3691. <tr>
  3692. <th>Name</th>
  3693. <th>In</th>
  3694. <th>Type</th>
  3695. <th>Required</th>
  3696. <th>Description</th>
  3697. </tr>
  3698. </thead>
  3699. <tbody>
  3700. <tr>
  3701. <td>board</td>
  3702. <td>path</td>
  3703. <td>string</td>
  3704. <td>true</td>
  3705. <td>the board</td>
  3706. </tr>
  3707. <tr>
  3708. <td>body</td>
  3709. <td>body</td>
  3710. <td>object</td>
  3711. <td>false</td>
  3712. <td>none</td>
  3713. </tr>
  3714. <tr>
  3715. <td>» label</td>
  3716. <td>body</td>
  3717. <td>string</td>
  3718. <td>true</td>
  3719. <td>the label value</td>
  3720. </tr>
  3721. </tbody>
  3722. </table>
  3723. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3724. <p><strong>board</strong>: the board</p>
  3725. <blockquote>
  3726. <p>Example responses</p>
  3727. </blockquote>
  3728. <blockquote>
  3729. <p>200 Response</p>
  3730. </blockquote>
  3731. <pre class="highlight tab tab-json"><code><span class="hljs-string">"string"</span>
  3732. </code></pre>
  3733. <h3 id="add_board_label-responses">Responses</h3>
  3734. <table>
  3735. <thead>
  3736. <tr>
  3737. <th>Status</th>
  3738. <th>Meaning</th>
  3739. <th>Description</th>
  3740. <th>Schema</th>
  3741. </tr>
  3742. </thead>
  3743. <tbody>
  3744. <tr>
  3745. <td>200</td>
  3746. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3747. <td>200 response</td>
  3748. <td>string</td>
  3749. </tr>
  3750. </tbody>
  3751. </table>
  3752. <aside class="warning">
  3753. To perform this operation, you must be authenticated by means of one of the following methods:
  3754. UserSecurity
  3755. </aside>
  3756. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3757. <p><a id="opIdset_board_member_permission"></a></p>
  3758. <blockquote>
  3759. <p>Code samples</p>
  3760. </blockquote>
  3761. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3762. curl -X POST /api/boards/{board}/members/{member} \
  3763. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3764. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3765. </code></pre>
  3766. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{member}</span> HTTP/1.1
  3767. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3768. </span></code></pre>
  3769. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3770. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3771. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3772. };
  3773. $.ajax({
  3774. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3775. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3776. <span class="hljs-attr">headers</span>: headers,
  3777. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3778. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3779. }
  3780. })
  3781. </code></pre>
  3782. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3783. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3784. "isAdmin": true,
  3785. "isNoComments": true,
  3786. "isCommentOnly": true,
  3787. "isWorker": true
  3788. }'</span>;
  3789. <span class="hljs-keyword">const</span> headers = {
  3790. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3791. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3792. };
  3793. fetch(<span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3794. {
  3795. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3796. <span class="hljs-attr">body</span>: inputBody,
  3797. <span class="hljs-attr">headers</span>: headers
  3798. })
  3799. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3800. <span class="hljs-keyword">return</span> res.json();
  3801. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3802. <span class="hljs-built_in">console</span>.log(body);
  3803. });
  3804. </code></pre>
  3805. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3806. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3807. headers = {
  3808. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3809. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3810. }
  3811. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3812. <span class="hljs-symbol">params:</span> {
  3813. }, <span class="hljs-symbol">headers:</span> headers
  3814. p JSON.parse(result)
  3815. </code></pre>
  3816. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3817. headers = {
  3818. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3819. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3820. }
  3821. r = requests.post(<span class="hljs-string">'/api/boards/{board}/members/{member}'</span>, params={
  3822. }, headers = headers)
  3823. <span class="hljs-keyword">print</span> r.json()
  3824. </code></pre>
  3825. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/members/{member}"</span>);
  3826. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3827. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3828. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3829. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3830. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3831. String inputLine;
  3832. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3833. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3834. response.append(inputLine);
  3835. }
  3836. in.close();
  3837. System.out.println(response.toString());
  3838. </code></pre>
  3839. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3840. <span class="hljs-keyword">import</span> (
  3841. <span class="hljs-string">"bytes"</span>
  3842. <span class="hljs-string">"net/http"</span>
  3843. )
  3844. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3845. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3846. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3847. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3848. }
  3849. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3850. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/members/{member}"</span>, data)
  3851. req.Header = headers
  3852. client := &amp;http.Client{}
  3853. resp, err := client.Do(req)
  3854. <span class="hljs-comment">// ...</span>
  3855. }
  3856. </code></pre>
  3857. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3858. <p><em>Change the permission of a member of a board</em></p>
  3859. <blockquote>
  3860. <p>Body parameter</p>
  3861. </blockquote>
  3862. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3863. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3864. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3865. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3866. </code></pre>
  3867. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3868. <table>
  3869. <thead>
  3870. <tr>
  3871. <th>Name</th>
  3872. <th>In</th>
  3873. <th>Type</th>
  3874. <th>Required</th>
  3875. <th>Description</th>
  3876. </tr>
  3877. </thead>
  3878. <tbody>
  3879. <tr>
  3880. <td>board</td>
  3881. <td>path</td>
  3882. <td>string</td>
  3883. <td>true</td>
  3884. <td>the ID of the board that we are changing</td>
  3885. </tr>
  3886. <tr>
  3887. <td>member</td>
  3888. <td>path</td>
  3889. <td>string</td>
  3890. <td>true</td>
  3891. <td>the ID of the user to change permissions</td>
  3892. </tr>
  3893. <tr>
  3894. <td>body</td>
  3895. <td>body</td>
  3896. <td>object</td>
  3897. <td>false</td>
  3898. <td>none</td>
  3899. </tr>
  3900. <tr>
  3901. <td>» isAdmin</td>
  3902. <td>body</td>
  3903. <td>boolean</td>
  3904. <td>true</td>
  3905. <td>admin capability</td>
  3906. </tr>
  3907. <tr>
  3908. <td>» isNoComments</td>
  3909. <td>body</td>
  3910. <td>boolean</td>
  3911. <td>true</td>
  3912. <td>NoComments capability</td>
  3913. </tr>
  3914. <tr>
  3915. <td>» isCommentOnly</td>
  3916. <td>body</td>
  3917. <td>boolean</td>
  3918. <td>true</td>
  3919. <td>CommentsOnly capability</td>
  3920. </tr>
  3921. <tr>
  3922. <td>» isWorker</td>
  3923. <td>body</td>
  3924. <td>boolean</td>
  3925. <td>true</td>
  3926. <td>Worker capability</td>
  3927. </tr>
  3928. </tbody>
  3929. </table>
  3930. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3931. <p><strong>board</strong>: the ID of the board that we are changing</p>
  3932. <p><strong>member</strong>: the ID of the user to change permissions</p>
  3933. <h3 id="set_board_member_permission-responses">Responses</h3>
  3934. <table>
  3935. <thead>
  3936. <tr>
  3937. <th>Status</th>
  3938. <th>Meaning</th>
  3939. <th>Description</th>
  3940. <th>Schema</th>
  3941. </tr>
  3942. </thead>
  3943. <tbody>
  3944. <tr>
  3945. <td>200</td>
  3946. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3947. <td>200 response</td>
  3948. <td>None</td>
  3949. </tr>
  3950. </tbody>
  3951. </table>
  3952. <aside class="warning">
  3953. To perform this operation, you must be authenticated by means of one of the following methods:
  3954. UserSecurity
  3955. </aside>
  3956. <h2 id="update_board_title">update_board_title</h2>
  3957. <p><a id="opIdupdate_board_title"></a></p>
  3958. <blockquote>
  3959. <p>Code samples</p>
  3960. </blockquote>
  3961. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3962. curl -X PUT /api/boards/{board}/title \
  3963. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3964. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3965. </code></pre>
  3966. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/title</span> HTTP/1.1
  3967. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3968. </span></code></pre>
  3969. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3970. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3971. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3972. };
  3973. $.ajax({
  3974. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/title'</span>,
  3975. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  3976. <span class="hljs-attr">headers</span>: headers,
  3977. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3978. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3979. }
  3980. })
  3981. </code></pre>
  3982. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  3983. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3984. "title": "string"
  3985. }'</span>;
  3986. <span class="hljs-keyword">const</span> headers = {
  3987. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3988. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3989. };
  3990. fetch(<span class="hljs-string">'/api/boards/{board}/title'</span>,
  3991. {
  3992. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  3993. <span class="hljs-attr">body</span>: inputBody,
  3994. <span class="hljs-attr">headers</span>: headers
  3995. })
  3996. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3997. <span class="hljs-keyword">return</span> res.json();
  3998. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3999. <span class="hljs-built_in">console</span>.log(body);
  4000. });
  4001. </code></pre>
  4002. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4003. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4004. headers = {
  4005. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4006. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4007. }
  4008. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/title'</span>,
  4009. <span class="hljs-symbol">params:</span> {
  4010. }, <span class="hljs-symbol">headers:</span> headers
  4011. p JSON.parse(result)
  4012. </code></pre>
  4013. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4014. headers = {
  4015. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4016. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4017. }
  4018. r = requests.put(<span class="hljs-string">'/api/boards/{board}/title'</span>, params={
  4019. }, headers = headers)
  4020. <span class="hljs-keyword">print</span> r.json()
  4021. </code></pre>
  4022. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/title"</span>);
  4023. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4024. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  4025. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4026. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4027. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4028. String inputLine;
  4029. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4030. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4031. response.append(inputLine);
  4032. }
  4033. in.close();
  4034. System.out.println(response.toString());
  4035. </code></pre>
  4036. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4037. <span class="hljs-keyword">import</span> (
  4038. <span class="hljs-string">"bytes"</span>
  4039. <span class="hljs-string">"net/http"</span>
  4040. )
  4041. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4042. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4043. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  4044. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4045. }
  4046. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4047. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/title"</span>, data)
  4048. req.Header = headers
  4049. client := &amp;http.Client{}
  4050. resp, err := client.Do(req)
  4051. <span class="hljs-comment">// ...</span>
  4052. }
  4053. </code></pre>
  4054. <p><code>PUT /api/boards/{board}/title</code></p>
  4055. <p><em>Update the title of a board</em></p>
  4056. <blockquote>
  4057. <p>Body parameter</p>
  4058. </blockquote>
  4059. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4060. </code></pre>
  4061. <h3 id="update_board_title-parameters">Parameters</h3>
  4062. <table>
  4063. <thead>
  4064. <tr>
  4065. <th>Name</th>
  4066. <th>In</th>
  4067. <th>Type</th>
  4068. <th>Required</th>
  4069. <th>Description</th>
  4070. </tr>
  4071. </thead>
  4072. <tbody>
  4073. <tr>
  4074. <td>board</td>
  4075. <td>path</td>
  4076. <td>string</td>
  4077. <td>true</td>
  4078. <td>the ID of the board to update</td>
  4079. </tr>
  4080. <tr>
  4081. <td>body</td>
  4082. <td>body</td>
  4083. <td>object</td>
  4084. <td>false</td>
  4085. <td>none</td>
  4086. </tr>
  4087. <tr>
  4088. <td>» title</td>
  4089. <td>body</td>
  4090. <td>string</td>
  4091. <td>true</td>
  4092. <td>the new title for the board</td>
  4093. </tr>
  4094. </tbody>
  4095. </table>
  4096. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4097. <p><strong>board</strong>: the ID of the board to update</p>
  4098. <h3 id="update_board_title-responses">Responses</h3>
  4099. <table>
  4100. <thead>
  4101. <tr>
  4102. <th>Status</th>
  4103. <th>Meaning</th>
  4104. <th>Description</th>
  4105. <th>Schema</th>
  4106. </tr>
  4107. </thead>
  4108. <tbody>
  4109. <tr>
  4110. <td>200</td>
  4111. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4112. <td>200 response</td>
  4113. <td>None</td>
  4114. </tr>
  4115. </tbody>
  4116. </table>
  4117. <aside class="warning">
  4118. To perform this operation, you must be authenticated by means of one of the following methods:
  4119. UserSecurity
  4120. </aside>
  4121. <h2 id="get_boards_count">get_boards_count</h2>
  4122. <p><a id="opIdget_boards_count"></a></p>
  4123. <blockquote>
  4124. <p>Code samples</p>
  4125. </blockquote>
  4126. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4127. curl -X GET /api/boards_count \
  4128. -H <span class="hljs-string">'Accept: application/json'</span> \
  4129. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4130. </code></pre>
  4131. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards_count</span> HTTP/1.1
  4132. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4133. <span class="undefined"></span></span></code></pre>
  4134. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4135. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4136. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4137. };
  4138. $.ajax({
  4139. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards_count'</span>,
  4140. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4141. <span class="hljs-attr">headers</span>: headers,
  4142. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4143. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4144. }
  4145. })
  4146. </code></pre>
  4147. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4148. <span class="hljs-keyword">const</span> headers = {
  4149. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4150. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4151. };
  4152. fetch(<span class="hljs-string">'/api/boards_count'</span>,
  4153. {
  4154. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4155. <span class="hljs-attr">headers</span>: headers
  4156. })
  4157. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4158. <span class="hljs-keyword">return</span> res.json();
  4159. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4160. <span class="hljs-built_in">console</span>.log(body);
  4161. });
  4162. </code></pre>
  4163. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4164. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4165. headers = {
  4166. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4167. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4168. }
  4169. result = RestClient.get <span class="hljs-string">'/api/boards_count'</span>,
  4170. <span class="hljs-symbol">params:</span> {
  4171. }, <span class="hljs-symbol">headers:</span> headers
  4172. p JSON.parse(result)
  4173. </code></pre>
  4174. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4175. headers = {
  4176. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4177. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4178. }
  4179. r = requests.get(<span class="hljs-string">'/api/boards_count'</span>, params={
  4180. }, headers = headers)
  4181. <span class="hljs-keyword">print</span> r.json()
  4182. </code></pre>
  4183. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards_count"</span>);
  4184. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4185. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4186. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4187. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4188. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4189. String inputLine;
  4190. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4191. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4192. response.append(inputLine);
  4193. }
  4194. in.close();
  4195. System.out.println(response.toString());
  4196. </code></pre>
  4197. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4198. <span class="hljs-keyword">import</span> (
  4199. <span class="hljs-string">"bytes"</span>
  4200. <span class="hljs-string">"net/http"</span>
  4201. )
  4202. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4203. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4204. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4205. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4206. }
  4207. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4208. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards_count"</span>, data)
  4209. req.Header = headers
  4210. client := &amp;http.Client{}
  4211. resp, err := client.Do(req)
  4212. <span class="hljs-comment">// ...</span>
  4213. }
  4214. </code></pre>
  4215. <p><code>GET /api/boards_count</code></p>
  4216. <p><em>Get public and private boards count</em></p>
  4217. <blockquote>
  4218. <p>Example responses</p>
  4219. </blockquote>
  4220. <blockquote>
  4221. <p>200 Response</p>
  4222. </blockquote>
  4223. <pre class="highlight tab tab-json"><code>{
  4224. <span class="hljs-attr">"private"</span>: <span class="hljs-number">0</span>,
  4225. <span class="hljs-attr">"public"</span>: <span class="hljs-number">0</span>
  4226. }
  4227. </code></pre>
  4228. <h3 id="get_boards_count-responses">Responses</h3>
  4229. <table>
  4230. <thead>
  4231. <tr>
  4232. <th>Status</th>
  4233. <th>Meaning</th>
  4234. <th>Description</th>
  4235. <th>Schema</th>
  4236. </tr>
  4237. </thead>
  4238. <tbody>
  4239. <tr>
  4240. <td>200</td>
  4241. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4242. <td>200 response</td>
  4243. <td>Inline</td>
  4244. </tr>
  4245. </tbody>
  4246. </table>
  4247. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4248. <p>Status Code <strong>200</strong></p>
  4249. <table>
  4250. <thead>
  4251. <tr>
  4252. <th>Name</th>
  4253. <th>Type</th>
  4254. <th>Required</th>
  4255. <th>Restrictions</th>
  4256. <th>Description</th>
  4257. </tr>
  4258. </thead>
  4259. <tbody>
  4260. <tr>
  4261. <td>» private</td>
  4262. <td>integer</td>
  4263. <td>false</td>
  4264. <td>none</td>
  4265. <td>none</td>
  4266. </tr>
  4267. <tr>
  4268. <td>» public</td>
  4269. <td>integer</td>
  4270. <td>false</td>
  4271. <td>none</td>
  4272. <td>none</td>
  4273. </tr>
  4274. </tbody>
  4275. </table>
  4276. <aside class="warning">
  4277. To perform this operation, you must be authenticated by means of one of the following methods:
  4278. UserSecurity
  4279. </aside>
  4280. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4281. <p><a id="opIdget_boards_from_user"></a></p>
  4282. <blockquote>
  4283. <p>Code samples</p>
  4284. </blockquote>
  4285. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4286. curl -X GET /api/users/{user}/boards \
  4287. -H <span class="hljs-string">'Accept: application/json'</span> \
  4288. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4289. </code></pre>
  4290. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users/{user}/boards</span> HTTP/1.1
  4291. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4292. <span class="undefined"></span></span></code></pre>
  4293. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4294. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4295. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4296. };
  4297. $.ajax({
  4298. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}/boards'</span>,
  4299. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4300. <span class="hljs-attr">headers</span>: headers,
  4301. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4302. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4303. }
  4304. })
  4305. </code></pre>
  4306. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4307. <span class="hljs-keyword">const</span> headers = {
  4308. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4309. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4310. };
  4311. fetch(<span class="hljs-string">'/api/users/{user}/boards'</span>,
  4312. {
  4313. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4314. <span class="hljs-attr">headers</span>: headers
  4315. })
  4316. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4317. <span class="hljs-keyword">return</span> res.json();
  4318. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4319. <span class="hljs-built_in">console</span>.log(body);
  4320. });
  4321. </code></pre>
  4322. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4323. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4324. headers = {
  4325. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4326. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4327. }
  4328. result = RestClient.get <span class="hljs-string">'/api/users/{user}/boards'</span>,
  4329. <span class="hljs-symbol">params:</span> {
  4330. }, <span class="hljs-symbol">headers:</span> headers
  4331. p JSON.parse(result)
  4332. </code></pre>
  4333. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4334. headers = {
  4335. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4336. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4337. }
  4338. r = requests.get(<span class="hljs-string">'/api/users/{user}/boards'</span>, params={
  4339. }, headers = headers)
  4340. <span class="hljs-keyword">print</span> r.json()
  4341. </code></pre>
  4342. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/users/{user}/boards"</span>);
  4343. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4344. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4345. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4346. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4347. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4348. String inputLine;
  4349. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4350. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4351. response.append(inputLine);
  4352. }
  4353. in.close();
  4354. System.out.println(response.toString());
  4355. </code></pre>
  4356. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4357. <span class="hljs-keyword">import</span> (
  4358. <span class="hljs-string">"bytes"</span>
  4359. <span class="hljs-string">"net/http"</span>
  4360. )
  4361. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4362. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4363. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4364. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4365. }
  4366. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4367. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/users/{user}/boards"</span>, data)
  4368. req.Header = headers
  4369. client := &amp;http.Client{}
  4370. resp, err := client.Do(req)
  4371. <span class="hljs-comment">// ...</span>
  4372. }
  4373. </code></pre>
  4374. <p><code>GET /api/users/{user}/boards</code></p>
  4375. <p><em>Get all boards attached to a user</em></p>
  4376. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4377. <table>
  4378. <thead>
  4379. <tr>
  4380. <th>Name</th>
  4381. <th>In</th>
  4382. <th>Type</th>
  4383. <th>Required</th>
  4384. <th>Description</th>
  4385. </tr>
  4386. </thead>
  4387. <tbody>
  4388. <tr>
  4389. <td>user</td>
  4390. <td>path</td>
  4391. <td>string</td>
  4392. <td>true</td>
  4393. <td>the ID of the user to retrieve the data</td>
  4394. </tr>
  4395. </tbody>
  4396. </table>
  4397. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4398. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4399. <blockquote>
  4400. <p>Example responses</p>
  4401. </blockquote>
  4402. <blockquote>
  4403. <p>200 Response</p>
  4404. </blockquote>
  4405. <pre class="highlight tab tab-json"><code>[
  4406. {
  4407. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4408. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  4409. }
  4410. ]
  4411. </code></pre>
  4412. <h3 id="get_boards_from_user-responses">Responses</h3>
  4413. <table>
  4414. <thead>
  4415. <tr>
  4416. <th>Status</th>
  4417. <th>Meaning</th>
  4418. <th>Description</th>
  4419. <th>Schema</th>
  4420. </tr>
  4421. </thead>
  4422. <tbody>
  4423. <tr>
  4424. <td>200</td>
  4425. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4426. <td>200 response</td>
  4427. <td>Inline</td>
  4428. </tr>
  4429. </tbody>
  4430. </table>
  4431. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4432. <p>Status Code <strong>200</strong></p>
  4433. <table>
  4434. <thead>
  4435. <tr>
  4436. <th>Name</th>
  4437. <th>Type</th>
  4438. <th>Required</th>
  4439. <th>Restrictions</th>
  4440. <th>Description</th>
  4441. </tr>
  4442. </thead>
  4443. <tbody>
  4444. <tr>
  4445. <td>» _id</td>
  4446. <td>string</td>
  4447. <td>false</td>
  4448. <td>none</td>
  4449. <td>none</td>
  4450. </tr>
  4451. <tr>
  4452. <td>» title</td>
  4453. <td>string</td>
  4454. <td>false</td>
  4455. <td>none</td>
  4456. <td>none</td>
  4457. </tr>
  4458. </tbody>
  4459. </table>
  4460. <aside class="warning">
  4461. To perform this operation, you must be authenticated by means of one of the following methods:
  4462. UserSecurity
  4463. </aside>
  4464. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4465. <h2 id="get_all_checklists">get_all_checklists</h2>
  4466. <p><a id="opIdget_all_checklists"></a></p>
  4467. <blockquote>
  4468. <p>Code samples</p>
  4469. </blockquote>
  4470. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4471. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4472. -H <span class="hljs-string">'Accept: application/json'</span> \
  4473. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4474. </code></pre>
  4475. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> HTTP/1.1
  4476. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4477. <span class="undefined"></span></span></code></pre>
  4478. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4479. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4480. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4481. };
  4482. $.ajax({
  4483. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4484. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4485. <span class="hljs-attr">headers</span>: headers,
  4486. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4487. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4488. }
  4489. })
  4490. </code></pre>
  4491. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4492. <span class="hljs-keyword">const</span> headers = {
  4493. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4494. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4495. };
  4496. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4497. {
  4498. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4499. <span class="hljs-attr">headers</span>: headers
  4500. })
  4501. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4502. <span class="hljs-keyword">return</span> res.json();
  4503. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4504. <span class="hljs-built_in">console</span>.log(body);
  4505. });
  4506. </code></pre>
  4507. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4508. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4509. headers = {
  4510. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4511. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4512. }
  4513. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4514. <span class="hljs-symbol">params:</span> {
  4515. }, <span class="hljs-symbol">headers:</span> headers
  4516. p JSON.parse(result)
  4517. </code></pre>
  4518. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4519. headers = {
  4520. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4521. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4522. }
  4523. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  4524. }, headers = headers)
  4525. <span class="hljs-keyword">print</span> r.json()
  4526. </code></pre>
  4527. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>);
  4528. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4529. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4530. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4531. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4532. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4533. String inputLine;
  4534. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4535. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4536. response.append(inputLine);
  4537. }
  4538. in.close();
  4539. System.out.println(response.toString());
  4540. </code></pre>
  4541. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4542. <span class="hljs-keyword">import</span> (
  4543. <span class="hljs-string">"bytes"</span>
  4544. <span class="hljs-string">"net/http"</span>
  4545. )
  4546. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4547. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4548. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4549. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4550. }
  4551. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4552. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  4553. req.Header = headers
  4554. client := &amp;http.Client{}
  4555. resp, err := client.Do(req)
  4556. <span class="hljs-comment">// ...</span>
  4557. }
  4558. </code></pre>
  4559. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4560. <p><em>Get the list of checklists attached to a card</em></p>
  4561. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4562. <table>
  4563. <thead>
  4564. <tr>
  4565. <th>Name</th>
  4566. <th>In</th>
  4567. <th>Type</th>
  4568. <th>Required</th>
  4569. <th>Description</th>
  4570. </tr>
  4571. </thead>
  4572. <tbody>
  4573. <tr>
  4574. <td>board</td>
  4575. <td>path</td>
  4576. <td>string</td>
  4577. <td>true</td>
  4578. <td>the board ID</td>
  4579. </tr>
  4580. <tr>
  4581. <td>card</td>
  4582. <td>path</td>
  4583. <td>string</td>
  4584. <td>true</td>
  4585. <td>the card ID</td>
  4586. </tr>
  4587. </tbody>
  4588. </table>
  4589. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4590. <p><strong>board</strong>: the board ID</p>
  4591. <p><strong>card</strong>: the card ID</p>
  4592. <blockquote>
  4593. <p>Example responses</p>
  4594. </blockquote>
  4595. <blockquote>
  4596. <p>200 Response</p>
  4597. </blockquote>
  4598. <pre class="highlight tab tab-json"><code>[
  4599. {
  4600. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4601. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  4602. }
  4603. ]
  4604. </code></pre>
  4605. <h3 id="get_all_checklists-responses">Responses</h3>
  4606. <table>
  4607. <thead>
  4608. <tr>
  4609. <th>Status</th>
  4610. <th>Meaning</th>
  4611. <th>Description</th>
  4612. <th>Schema</th>
  4613. </tr>
  4614. </thead>
  4615. <tbody>
  4616. <tr>
  4617. <td>200</td>
  4618. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4619. <td>200 response</td>
  4620. <td>Inline</td>
  4621. </tr>
  4622. </tbody>
  4623. </table>
  4624. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4625. <p>Status Code <strong>200</strong></p>
  4626. <table>
  4627. <thead>
  4628. <tr>
  4629. <th>Name</th>
  4630. <th>Type</th>
  4631. <th>Required</th>
  4632. <th>Restrictions</th>
  4633. <th>Description</th>
  4634. </tr>
  4635. </thead>
  4636. <tbody>
  4637. <tr>
  4638. <td>» _id</td>
  4639. <td>string</td>
  4640. <td>false</td>
  4641. <td>none</td>
  4642. <td>none</td>
  4643. </tr>
  4644. <tr>
  4645. <td>» title</td>
  4646. <td>string</td>
  4647. <td>false</td>
  4648. <td>none</td>
  4649. <td>none</td>
  4650. </tr>
  4651. </tbody>
  4652. </table>
  4653. <aside class="warning">
  4654. To perform this operation, you must be authenticated by means of one of the following methods:
  4655. UserSecurity
  4656. </aside>
  4657. <h2 id="new_checklist">new_checklist</h2>
  4658. <p><a id="opIdnew_checklist"></a></p>
  4659. <blockquote>
  4660. <p>Code samples</p>
  4661. </blockquote>
  4662. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4663. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4664. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  4665. -H <span class="hljs-string">'Accept: application/json'</span> \
  4666. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4667. </code></pre>
  4668. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> HTTP/1.1
  4669. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4670. Accept: application/json
  4671. </span></code></pre>
  4672. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4673. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4674. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4675. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4676. };
  4677. $.ajax({
  4678. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4679. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  4680. <span class="hljs-attr">headers</span>: headers,
  4681. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4682. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4683. }
  4684. })
  4685. </code></pre>
  4686. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  4687. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  4688. "title": "string",
  4689. "items": "string"
  4690. }'</span>;
  4691. <span class="hljs-keyword">const</span> headers = {
  4692. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4693. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4694. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4695. };
  4696. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4697. {
  4698. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  4699. <span class="hljs-attr">body</span>: inputBody,
  4700. <span class="hljs-attr">headers</span>: headers
  4701. })
  4702. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4703. <span class="hljs-keyword">return</span> res.json();
  4704. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4705. <span class="hljs-built_in">console</span>.log(body);
  4706. });
  4707. </code></pre>
  4708. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4709. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4710. headers = {
  4711. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4712. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4713. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4714. }
  4715. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4716. <span class="hljs-symbol">params:</span> {
  4717. }, <span class="hljs-symbol">headers:</span> headers
  4718. p JSON.parse(result)
  4719. </code></pre>
  4720. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4721. headers = {
  4722. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4723. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4724. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4725. }
  4726. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  4727. }, headers = headers)
  4728. <span class="hljs-keyword">print</span> r.json()
  4729. </code></pre>
  4730. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>);
  4731. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4732. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  4733. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4734. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4735. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4736. String inputLine;
  4737. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4738. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4739. response.append(inputLine);
  4740. }
  4741. in.close();
  4742. System.out.println(response.toString());
  4743. </code></pre>
  4744. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4745. <span class="hljs-keyword">import</span> (
  4746. <span class="hljs-string">"bytes"</span>
  4747. <span class="hljs-string">"net/http"</span>
  4748. )
  4749. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4750. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4751. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  4752. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4753. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4754. }
  4755. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4756. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  4757. req.Header = headers
  4758. client := &amp;http.Client{}
  4759. resp, err := client.Do(req)
  4760. <span class="hljs-comment">// ...</span>
  4761. }
  4762. </code></pre>
  4763. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4764. <p><em>create a new checklist</em></p>
  4765. <blockquote>
  4766. <p>Body parameter</p>
  4767. </blockquote>
  4768. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4769. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4770. </code></pre>
  4771. <h3 id="new_checklist-parameters">Parameters</h3>
  4772. <table>
  4773. <thead>
  4774. <tr>
  4775. <th>Name</th>
  4776. <th>In</th>
  4777. <th>Type</th>
  4778. <th>Required</th>
  4779. <th>Description</th>
  4780. </tr>
  4781. </thead>
  4782. <tbody>
  4783. <tr>
  4784. <td>board</td>
  4785. <td>path</td>
  4786. <td>string</td>
  4787. <td>true</td>
  4788. <td>the board ID</td>
  4789. </tr>
  4790. <tr>
  4791. <td>card</td>
  4792. <td>path</td>
  4793. <td>string</td>
  4794. <td>true</td>
  4795. <td>the card ID</td>
  4796. </tr>
  4797. <tr>
  4798. <td>body</td>
  4799. <td>body</td>
  4800. <td>object</td>
  4801. <td>false</td>
  4802. <td>none</td>
  4803. </tr>
  4804. <tr>
  4805. <td>» title</td>
  4806. <td>body</td>
  4807. <td>string</td>
  4808. <td>true</td>
  4809. <td>the title of the new checklist</td>
  4810. </tr>
  4811. <tr>
  4812. <td>» items</td>
  4813. <td>body</td>
  4814. <td>string</td>
  4815. <td>false</td>
  4816. <td>the list of items on the new checklist</td>
  4817. </tr>
  4818. </tbody>
  4819. </table>
  4820. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4821. <p><strong>board</strong>: the board ID</p>
  4822. <p><strong>card</strong>: the card ID</p>
  4823. <blockquote>
  4824. <p>Example responses</p>
  4825. </blockquote>
  4826. <blockquote>
  4827. <p>200 Response</p>
  4828. </blockquote>
  4829. <pre class="highlight tab tab-json"><code>{
  4830. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  4831. }
  4832. </code></pre>
  4833. <h3 id="new_checklist-responses">Responses</h3>
  4834. <table>
  4835. <thead>
  4836. <tr>
  4837. <th>Status</th>
  4838. <th>Meaning</th>
  4839. <th>Description</th>
  4840. <th>Schema</th>
  4841. </tr>
  4842. </thead>
  4843. <tbody>
  4844. <tr>
  4845. <td>200</td>
  4846. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4847. <td>200 response</td>
  4848. <td>Inline</td>
  4849. </tr>
  4850. </tbody>
  4851. </table>
  4852. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4853. <p>Status Code <strong>200</strong></p>
  4854. <table>
  4855. <thead>
  4856. <tr>
  4857. <th>Name</th>
  4858. <th>Type</th>
  4859. <th>Required</th>
  4860. <th>Restrictions</th>
  4861. <th>Description</th>
  4862. </tr>
  4863. </thead>
  4864. <tbody>
  4865. <tr>
  4866. <td>» _id</td>
  4867. <td>string</td>
  4868. <td>false</td>
  4869. <td>none</td>
  4870. <td>none</td>
  4871. </tr>
  4872. </tbody>
  4873. </table>
  4874. <aside class="warning">
  4875. To perform this operation, you must be authenticated by means of one of the following methods:
  4876. UserSecurity
  4877. </aside>
  4878. <h2 id="get_checklist">get_checklist</h2>
  4879. <p><a id="opIdget_checklist"></a></p>
  4880. <blockquote>
  4881. <p>Code samples</p>
  4882. </blockquote>
  4883. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4884. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4885. -H <span class="hljs-string">'Accept: application/json'</span> \
  4886. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4887. </code></pre>
  4888. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}</span> HTTP/1.1
  4889. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4890. <span class="undefined"></span></span></code></pre>
  4891. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4892. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4893. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4894. };
  4895. $.ajax({
  4896. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4897. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4898. <span class="hljs-attr">headers</span>: headers,
  4899. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4900. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4901. }
  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">'node-fetch'</span>);
  4905. <span class="hljs-keyword">const</span> headers = {
  4906. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4907. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4908. };
  4909. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4910. {
  4911. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</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">'rest-client'</span>
  4921. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4922. headers = {
  4923. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4924. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4925. }
  4926. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</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">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4934. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4935. }
  4936. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  4937. }, headers = headers)
  4938. <span class="hljs-keyword">print</span> r.json()
  4939. </code></pre>
  4940. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>);
  4941. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4942. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4943. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4944. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4945. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4946. String inputLine;
  4947. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4948. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4949. response.append(inputLine);
  4950. }
  4951. in.close();
  4952. System.out.println(response.toString());
  4953. </code></pre>
  4954. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4955. <span class="hljs-keyword">import</span> (
  4956. <span class="hljs-string">"bytes"</span>
  4957. <span class="hljs-string">"net/http"</span>
  4958. )
  4959. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4960. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4961. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4962. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4963. }
  4964. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4965. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  4966. req.Header = headers
  4967. client := &amp;http.Client{}
  4968. resp, err := client.Do(req)
  4969. <span class="hljs-comment">// ...</span>
  4970. }
  4971. </code></pre>
  4972. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  4973. <p><em>Get a checklist</em></p>
  4974. <h3 id="get_checklist-parameters">Parameters</h3>
  4975. <table>
  4976. <thead>
  4977. <tr>
  4978. <th>Name</th>
  4979. <th>In</th>
  4980. <th>Type</th>
  4981. <th>Required</th>
  4982. <th>Description</th>
  4983. </tr>
  4984. </thead>
  4985. <tbody>
  4986. <tr>
  4987. <td>board</td>
  4988. <td>path</td>
  4989. <td>string</td>
  4990. <td>true</td>
  4991. <td>the board ID</td>
  4992. </tr>
  4993. <tr>
  4994. <td>card</td>
  4995. <td>path</td>
  4996. <td>string</td>
  4997. <td>true</td>
  4998. <td>the card ID</td>
  4999. </tr>
  5000. <tr>
  5001. <td>checklist</td>
  5002. <td>path</td>
  5003. <td>string</td>
  5004. <td>true</td>
  5005. <td>the ID of the checklist</td>
  5006. </tr>
  5007. </tbody>
  5008. </table>
  5009. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5010. <p><strong>board</strong>: the board ID</p>
  5011. <p><strong>card</strong>: the card ID</p>
  5012. <p><strong>checklist</strong>: the ID of the checklist</p>
  5013. <blockquote>
  5014. <p>Example responses</p>
  5015. </blockquote>
  5016. <blockquote>
  5017. <p>200 Response</p>
  5018. </blockquote>
  5019. <pre class="highlight tab tab-json"><code>{
  5020. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  5021. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5022. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  5023. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  5024. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  5025. <span class="hljs-attr">"items"</span>: [
  5026. {
  5027. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  5028. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5029. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>
  5030. }
  5031. ]
  5032. }
  5033. </code></pre>
  5034. <h3 id="get_checklist-responses">Responses</h3>
  5035. <table>
  5036. <thead>
  5037. <tr>
  5038. <th>Status</th>
  5039. <th>Meaning</th>
  5040. <th>Description</th>
  5041. <th>Schema</th>
  5042. </tr>
  5043. </thead>
  5044. <tbody>
  5045. <tr>
  5046. <td>200</td>
  5047. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5048. <td>200 response</td>
  5049. <td>Inline</td>
  5050. </tr>
  5051. </tbody>
  5052. </table>
  5053. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5054. <p>Status Code <strong>200</strong></p>
  5055. <table>
  5056. <thead>
  5057. <tr>
  5058. <th>Name</th>
  5059. <th>Type</th>
  5060. <th>Required</th>
  5061. <th>Restrictions</th>
  5062. <th>Description</th>
  5063. </tr>
  5064. </thead>
  5065. <tbody>
  5066. <tr>
  5067. <td>» cardId</td>
  5068. <td>string</td>
  5069. <td>false</td>
  5070. <td>none</td>
  5071. <td>none</td>
  5072. </tr>
  5073. <tr>
  5074. <td>» title</td>
  5075. <td>string</td>
  5076. <td>false</td>
  5077. <td>none</td>
  5078. <td>none</td>
  5079. </tr>
  5080. <tr>
  5081. <td>» finishedAt</td>
  5082. <td>string</td>
  5083. <td>false</td>
  5084. <td>none</td>
  5085. <td>none</td>
  5086. </tr>
  5087. <tr>
  5088. <td>» createdAt</td>
  5089. <td>string</td>
  5090. <td>false</td>
  5091. <td>none</td>
  5092. <td>none</td>
  5093. </tr>
  5094. <tr>
  5095. <td>» sort</td>
  5096. <td>number</td>
  5097. <td>false</td>
  5098. <td>none</td>
  5099. <td>none</td>
  5100. </tr>
  5101. <tr>
  5102. <td>» items</td>
  5103. <td>[object]</td>
  5104. <td>false</td>
  5105. <td>none</td>
  5106. <td>none</td>
  5107. </tr>
  5108. <tr>
  5109. <td>»» _id</td>
  5110. <td>string</td>
  5111. <td>false</td>
  5112. <td>none</td>
  5113. <td>none</td>
  5114. </tr>
  5115. <tr>
  5116. <td>»» title</td>
  5117. <td>string</td>
  5118. <td>false</td>
  5119. <td>none</td>
  5120. <td>none</td>
  5121. </tr>
  5122. <tr>
  5123. <td>»» isFinished</td>
  5124. <td>boolean</td>
  5125. <td>false</td>
  5126. <td>none</td>
  5127. <td>none</td>
  5128. </tr>
  5129. </tbody>
  5130. </table>
  5131. <aside class="warning">
  5132. To perform this operation, you must be authenticated by means of one of the following methods:
  5133. UserSecurity
  5134. </aside>
  5135. <h2 id="delete_checklist">delete_checklist</h2>
  5136. <p><a id="opIddelete_checklist"></a></p>
  5137. <blockquote>
  5138. <p>Code samples</p>
  5139. </blockquote>
  5140. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5141. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5142. -H <span class="hljs-string">'Accept: application/json'</span> \
  5143. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5144. </code></pre>
  5145. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}</span> HTTP/1.1
  5146. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5147. <span class="undefined"></span></span></code></pre>
  5148. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5149. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5150. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5151. };
  5152. $.ajax({
  5153. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  5154. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  5155. <span class="hljs-attr">headers</span>: headers,
  5156. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5157. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5158. }
  5159. })
  5160. </code></pre>
  5161. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5162. <span class="hljs-keyword">const</span> headers = {
  5163. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5164. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5165. };
  5166. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  5167. {
  5168. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  5169. <span class="hljs-attr">headers</span>: headers
  5170. })
  5171. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5172. <span class="hljs-keyword">return</span> res.json();
  5173. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5174. <span class="hljs-built_in">console</span>.log(body);
  5175. });
  5176. </code></pre>
  5177. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5178. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5179. headers = {
  5180. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5181. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5182. }
  5183. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  5184. <span class="hljs-symbol">params:</span> {
  5185. }, <span class="hljs-symbol">headers:</span> headers
  5186. p JSON.parse(result)
  5187. </code></pre>
  5188. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5189. headers = {
  5190. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5191. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5192. }
  5193. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  5194. }, headers = headers)
  5195. <span class="hljs-keyword">print</span> r.json()
  5196. </code></pre>
  5197. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>);
  5198. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5199. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  5200. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5201. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5202. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5203. String inputLine;
  5204. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5205. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5206. response.append(inputLine);
  5207. }
  5208. in.close();
  5209. System.out.println(response.toString());
  5210. </code></pre>
  5211. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5212. <span class="hljs-keyword">import</span> (
  5213. <span class="hljs-string">"bytes"</span>
  5214. <span class="hljs-string">"net/http"</span>
  5215. )
  5216. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5217. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5218. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5219. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5220. }
  5221. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5222. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  5223. req.Header = headers
  5224. client := &amp;http.Client{}
  5225. resp, err := client.Do(req)
  5226. <span class="hljs-comment">// ...</span>
  5227. }
  5228. </code></pre>
  5229. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5230. <p><em>Delete a checklist</em></p>
  5231. <p>The checklist will be removed, not put in the recycle bin.</p>
  5232. <h3 id="delete_checklist-parameters">Parameters</h3>
  5233. <table>
  5234. <thead>
  5235. <tr>
  5236. <th>Name</th>
  5237. <th>In</th>
  5238. <th>Type</th>
  5239. <th>Required</th>
  5240. <th>Description</th>
  5241. </tr>
  5242. </thead>
  5243. <tbody>
  5244. <tr>
  5245. <td>board</td>
  5246. <td>path</td>
  5247. <td>string</td>
  5248. <td>true</td>
  5249. <td>the board ID</td>
  5250. </tr>
  5251. <tr>
  5252. <td>card</td>
  5253. <td>path</td>
  5254. <td>string</td>
  5255. <td>true</td>
  5256. <td>the card ID</td>
  5257. </tr>
  5258. <tr>
  5259. <td>checklist</td>
  5260. <td>path</td>
  5261. <td>string</td>
  5262. <td>true</td>
  5263. <td>the ID of the checklist to remove</td>
  5264. </tr>
  5265. </tbody>
  5266. </table>
  5267. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5268. <p><strong>board</strong>: the board ID</p>
  5269. <p><strong>card</strong>: the card ID</p>
  5270. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5271. <blockquote>
  5272. <p>Example responses</p>
  5273. </blockquote>
  5274. <blockquote>
  5275. <p>200 Response</p>
  5276. </blockquote>
  5277. <pre class="highlight tab tab-json"><code>{
  5278. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5279. }
  5280. </code></pre>
  5281. <h3 id="delete_checklist-responses">Responses</h3>
  5282. <table>
  5283. <thead>
  5284. <tr>
  5285. <th>Status</th>
  5286. <th>Meaning</th>
  5287. <th>Description</th>
  5288. <th>Schema</th>
  5289. </tr>
  5290. </thead>
  5291. <tbody>
  5292. <tr>
  5293. <td>200</td>
  5294. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5295. <td>200 response</td>
  5296. <td>Inline</td>
  5297. </tr>
  5298. </tbody>
  5299. </table>
  5300. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5301. <p>Status Code <strong>200</strong></p>
  5302. <table>
  5303. <thead>
  5304. <tr>
  5305. <th>Name</th>
  5306. <th>Type</th>
  5307. <th>Required</th>
  5308. <th>Restrictions</th>
  5309. <th>Description</th>
  5310. </tr>
  5311. </thead>
  5312. <tbody>
  5313. <tr>
  5314. <td>» _id</td>
  5315. <td>string</td>
  5316. <td>false</td>
  5317. <td>none</td>
  5318. <td>none</td>
  5319. </tr>
  5320. </tbody>
  5321. </table>
  5322. <aside class="warning">
  5323. To perform this operation, you must be authenticated by means of one of the following methods:
  5324. UserSecurity
  5325. </aside>
  5326. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5327. <h2 id="new_checklist_item">new_checklist_item</h2>
  5328. <p><a id="opIdnew_checklist_item"></a></p>
  5329. <blockquote>
  5330. <p>Code samples</p>
  5331. </blockquote>
  5332. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5333. curl -X POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items \
  5334. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5335. -H <span class="hljs-string">'Accept: application/json'</span> \
  5336. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5337. </code></pre>
  5338. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items</span> HTTP/1.1
  5339. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5340. Accept: application/json
  5341. </span></code></pre>
  5342. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5343. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5344. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5345. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5346. };
  5347. $.ajax({
  5348. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  5349. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  5350. <span class="hljs-attr">headers</span>: headers,
  5351. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5352. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5353. }
  5354. })
  5355. </code></pre>
  5356. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5357. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5358. "title": "string"
  5359. }'</span>;
  5360. <span class="hljs-keyword">const</span> headers = {
  5361. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5362. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5363. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5364. };
  5365. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  5366. {
  5367. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  5368. <span class="hljs-attr">body</span>: inputBody,
  5369. <span class="hljs-attr">headers</span>: headers
  5370. })
  5371. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5372. <span class="hljs-keyword">return</span> res.json();
  5373. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5374. <span class="hljs-built_in">console</span>.log(body);
  5375. });
  5376. </code></pre>
  5377. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5378. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5379. headers = {
  5380. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5381. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5382. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5383. }
  5384. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  5385. <span class="hljs-symbol">params:</span> {
  5386. }, <span class="hljs-symbol">headers:</span> headers
  5387. p JSON.parse(result)
  5388. </code></pre>
  5389. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5390. headers = {
  5391. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5392. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5393. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5394. }
  5395. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>, params={
  5396. }, headers = headers)
  5397. <span class="hljs-keyword">print</span> r.json()
  5398. </code></pre>
  5399. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items"</span>);
  5400. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5401. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  5402. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5403. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5404. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5405. String inputLine;
  5406. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5407. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5408. response.append(inputLine);
  5409. }
  5410. in.close();
  5411. System.out.println(response.toString());
  5412. </code></pre>
  5413. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5414. <span class="hljs-keyword">import</span> (
  5415. <span class="hljs-string">"bytes"</span>
  5416. <span class="hljs-string">"net/http"</span>
  5417. )
  5418. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5419. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5420. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5421. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5422. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5423. }
  5424. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5425. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items"</span>, data)
  5426. req.Header = headers
  5427. client := &amp;http.Client{}
  5428. resp, err := client.Do(req)
  5429. <span class="hljs-comment">// ...</span>
  5430. }
  5431. </code></pre>
  5432. <p><code>POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items</code></p>
  5433. <p><em>add a new item to a checklist</em></p>
  5434. <blockquote>
  5435. <p>Body parameter</p>
  5436. </blockquote>
  5437. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5438. </code></pre>
  5439. <h3 id="new_checklist_item-parameters">Parameters</h3>
  5440. <table>
  5441. <thead>
  5442. <tr>
  5443. <th>Name</th>
  5444. <th>In</th>
  5445. <th>Type</th>
  5446. <th>Required</th>
  5447. <th>Description</th>
  5448. </tr>
  5449. </thead>
  5450. <tbody>
  5451. <tr>
  5452. <td>board</td>
  5453. <td>path</td>
  5454. <td>string</td>
  5455. <td>true</td>
  5456. <td>the board ID</td>
  5457. </tr>
  5458. <tr>
  5459. <td>card</td>
  5460. <td>path</td>
  5461. <td>string</td>
  5462. <td>true</td>
  5463. <td>the card ID</td>
  5464. </tr>
  5465. <tr>
  5466. <td>checklist</td>
  5467. <td>path</td>
  5468. <td>string</td>
  5469. <td>true</td>
  5470. <td>the ID of the checklist</td>
  5471. </tr>
  5472. <tr>
  5473. <td>body</td>
  5474. <td>body</td>
  5475. <td>object</td>
  5476. <td>false</td>
  5477. <td>none</td>
  5478. </tr>
  5479. <tr>
  5480. <td>» title</td>
  5481. <td>body</td>
  5482. <td>string</td>
  5483. <td>true</td>
  5484. <td>the title of the new item</td>
  5485. </tr>
  5486. </tbody>
  5487. </table>
  5488. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5489. <p><strong>board</strong>: the board ID</p>
  5490. <p><strong>card</strong>: the card ID</p>
  5491. <p><strong>checklist</strong>: the ID of the checklist</p>
  5492. <blockquote>
  5493. <p>Example responses</p>
  5494. </blockquote>
  5495. <blockquote>
  5496. <p>200 Response</p>
  5497. </blockquote>
  5498. <pre class="highlight tab tab-json"><code>{
  5499. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5500. }
  5501. </code></pre>
  5502. <h3 id="new_checklist_item-responses">Responses</h3>
  5503. <table>
  5504. <thead>
  5505. <tr>
  5506. <th>Status</th>
  5507. <th>Meaning</th>
  5508. <th>Description</th>
  5509. <th>Schema</th>
  5510. </tr>
  5511. </thead>
  5512. <tbody>
  5513. <tr>
  5514. <td>200</td>
  5515. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5516. <td>200 response</td>
  5517. <td>Inline</td>
  5518. </tr>
  5519. </tbody>
  5520. </table>
  5521. <h3 id="new_checklist_item-responseschema">Response Schema</h3>
  5522. <p>Status Code <strong>200</strong></p>
  5523. <table>
  5524. <thead>
  5525. <tr>
  5526. <th>Name</th>
  5527. <th>Type</th>
  5528. <th>Required</th>
  5529. <th>Restrictions</th>
  5530. <th>Description</th>
  5531. </tr>
  5532. </thead>
  5533. <tbody>
  5534. <tr>
  5535. <td>» _id</td>
  5536. <td>string</td>
  5537. <td>false</td>
  5538. <td>none</td>
  5539. <td>none</td>
  5540. </tr>
  5541. </tbody>
  5542. </table>
  5543. <aside class="warning">
  5544. To perform this operation, you must be authenticated by means of one of the following methods:
  5545. UserSecurity
  5546. </aside>
  5547. <h2 id="get_checklist_item">get_checklist_item</h2>
  5548. <p><a id="opIdget_checklist_item"></a></p>
  5549. <blockquote>
  5550. <p>Code samples</p>
  5551. </blockquote>
  5552. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5553. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5554. -H <span class="hljs-string">'Accept: application/json'</span> \
  5555. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5556. </code></pre>
  5557. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  5558. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5559. <span class="undefined"></span></span></code></pre>
  5560. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5561. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5562. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5563. };
  5564. $.ajax({
  5565. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5566. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5567. <span class="hljs-attr">headers</span>: headers,
  5568. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5569. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5570. }
  5571. })
  5572. </code></pre>
  5573. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5574. <span class="hljs-keyword">const</span> headers = {
  5575. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5576. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5577. };
  5578. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5579. {
  5580. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5581. <span class="hljs-attr">headers</span>: headers
  5582. })
  5583. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5584. <span class="hljs-keyword">return</span> res.json();
  5585. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5586. <span class="hljs-built_in">console</span>.log(body);
  5587. });
  5588. </code></pre>
  5589. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5590. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5591. headers = {
  5592. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5593. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5594. }
  5595. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5596. <span class="hljs-symbol">params:</span> {
  5597. }, <span class="hljs-symbol">headers:</span> headers
  5598. p JSON.parse(result)
  5599. </code></pre>
  5600. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5601. headers = {
  5602. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5603. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5604. }
  5605. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  5606. }, headers = headers)
  5607. <span class="hljs-keyword">print</span> r.json()
  5608. </code></pre>
  5609. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  5610. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5611. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5612. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5613. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5614. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5615. String inputLine;
  5616. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5617. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5618. response.append(inputLine);
  5619. }
  5620. in.close();
  5621. System.out.println(response.toString());
  5622. </code></pre>
  5623. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5624. <span class="hljs-keyword">import</span> (
  5625. <span class="hljs-string">"bytes"</span>
  5626. <span class="hljs-string">"net/http"</span>
  5627. )
  5628. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5629. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5630. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5631. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5632. }
  5633. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5634. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  5635. req.Header = headers
  5636. client := &amp;http.Client{}
  5637. resp, err := client.Do(req)
  5638. <span class="hljs-comment">// ...</span>
  5639. }
  5640. </code></pre>
  5641. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5642. <p><em>Get a checklist item</em></p>
  5643. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5644. <table>
  5645. <thead>
  5646. <tr>
  5647. <th>Name</th>
  5648. <th>In</th>
  5649. <th>Type</th>
  5650. <th>Required</th>
  5651. <th>Description</th>
  5652. </tr>
  5653. </thead>
  5654. <tbody>
  5655. <tr>
  5656. <td>board</td>
  5657. <td>path</td>
  5658. <td>string</td>
  5659. <td>true</td>
  5660. <td>the board ID</td>
  5661. </tr>
  5662. <tr>
  5663. <td>card</td>
  5664. <td>path</td>
  5665. <td>string</td>
  5666. <td>true</td>
  5667. <td>the card ID</td>
  5668. </tr>
  5669. <tr>
  5670. <td>checklist</td>
  5671. <td>path</td>
  5672. <td>string</td>
  5673. <td>true</td>
  5674. <td>the checklist ID</td>
  5675. </tr>
  5676. <tr>
  5677. <td>item</td>
  5678. <td>path</td>
  5679. <td>string</td>
  5680. <td>true</td>
  5681. <td>the ID of the item</td>
  5682. </tr>
  5683. </tbody>
  5684. </table>
  5685. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5686. <p><strong>board</strong>: the board ID</p>
  5687. <p><strong>card</strong>: the card ID</p>
  5688. <p><strong>checklist</strong>: the checklist ID</p>
  5689. <p><strong>item</strong>: the ID of the item</p>
  5690. <blockquote>
  5691. <p>Example responses</p>
  5692. </blockquote>
  5693. <blockquote>
  5694. <p>200 Response</p>
  5695. </blockquote>
  5696. <pre class="highlight tab tab-json"><code>{
  5697. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5698. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  5699. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  5700. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  5701. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  5702. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  5703. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  5704. }
  5705. </code></pre>
  5706. <h3 id="get_checklist_item-responses">Responses</h3>
  5707. <table>
  5708. <thead>
  5709. <tr>
  5710. <th>Status</th>
  5711. <th>Meaning</th>
  5712. <th>Description</th>
  5713. <th>Schema</th>
  5714. </tr>
  5715. </thead>
  5716. <tbody>
  5717. <tr>
  5718. <td>200</td>
  5719. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5720. <td>200 response</td>
  5721. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5722. </tr>
  5723. </tbody>
  5724. </table>
  5725. <aside class="warning">
  5726. To perform this operation, you must be authenticated by means of one of the following methods:
  5727. UserSecurity
  5728. </aside>
  5729. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5730. <p><a id="opIdedit_checklist_item"></a></p>
  5731. <blockquote>
  5732. <p>Code samples</p>
  5733. </blockquote>
  5734. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5735. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5736. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5737. -H <span class="hljs-string">'Accept: application/json'</span> \
  5738. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5739. </code></pre>
  5740. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  5741. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5742. Accept: application/json
  5743. </span></code></pre>
  5744. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5745. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5746. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5747. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5748. };
  5749. $.ajax({
  5750. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5751. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  5752. <span class="hljs-attr">headers</span>: headers,
  5753. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5754. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5755. }
  5756. })
  5757. </code></pre>
  5758. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5759. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5760. "isFinished": "string",
  5761. "title": "string"
  5762. }'</span>;
  5763. <span class="hljs-keyword">const</span> headers = {
  5764. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5765. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5766. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5767. };
  5768. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5769. {
  5770. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  5771. <span class="hljs-attr">body</span>: inputBody,
  5772. <span class="hljs-attr">headers</span>: headers
  5773. })
  5774. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5775. <span class="hljs-keyword">return</span> res.json();
  5776. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5777. <span class="hljs-built_in">console</span>.log(body);
  5778. });
  5779. </code></pre>
  5780. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5781. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5782. headers = {
  5783. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5784. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5785. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5786. }
  5787. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5788. <span class="hljs-symbol">params:</span> {
  5789. }, <span class="hljs-symbol">headers:</span> headers
  5790. p JSON.parse(result)
  5791. </code></pre>
  5792. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5793. headers = {
  5794. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5795. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5796. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5797. }
  5798. r = requests.put(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  5799. }, headers = headers)
  5800. <span class="hljs-keyword">print</span> r.json()
  5801. </code></pre>
  5802. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  5803. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5804. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  5805. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5806. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5807. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5808. String inputLine;
  5809. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5810. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5811. response.append(inputLine);
  5812. }
  5813. in.close();
  5814. System.out.println(response.toString());
  5815. </code></pre>
  5816. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5817. <span class="hljs-keyword">import</span> (
  5818. <span class="hljs-string">"bytes"</span>
  5819. <span class="hljs-string">"net/http"</span>
  5820. )
  5821. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5822. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5823. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5824. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5825. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5826. }
  5827. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5828. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  5829. req.Header = headers
  5830. client := &amp;http.Client{}
  5831. resp, err := client.Do(req)
  5832. <span class="hljs-comment">// ...</span>
  5833. }
  5834. </code></pre>
  5835. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5836. <p><em>Edit a checklist item</em></p>
  5837. <blockquote>
  5838. <p>Body parameter</p>
  5839. </blockquote>
  5840. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5841. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5842. </code></pre>
  5843. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5844. <table>
  5845. <thead>
  5846. <tr>
  5847. <th>Name</th>
  5848. <th>In</th>
  5849. <th>Type</th>
  5850. <th>Required</th>
  5851. <th>Description</th>
  5852. </tr>
  5853. </thead>
  5854. <tbody>
  5855. <tr>
  5856. <td>board</td>
  5857. <td>path</td>
  5858. <td>string</td>
  5859. <td>true</td>
  5860. <td>the board ID</td>
  5861. </tr>
  5862. <tr>
  5863. <td>card</td>
  5864. <td>path</td>
  5865. <td>string</td>
  5866. <td>true</td>
  5867. <td>the card ID</td>
  5868. </tr>
  5869. <tr>
  5870. <td>checklist</td>
  5871. <td>path</td>
  5872. <td>string</td>
  5873. <td>true</td>
  5874. <td>the checklist ID</td>
  5875. </tr>
  5876. <tr>
  5877. <td>item</td>
  5878. <td>path</td>
  5879. <td>string</td>
  5880. <td>true</td>
  5881. <td>the ID of the item</td>
  5882. </tr>
  5883. <tr>
  5884. <td>body</td>
  5885. <td>body</td>
  5886. <td>object</td>
  5887. <td>false</td>
  5888. <td>none</td>
  5889. </tr>
  5890. <tr>
  5891. <td>» isFinished</td>
  5892. <td>body</td>
  5893. <td>string</td>
  5894. <td>false</td>
  5895. <td>is the item checked?</td>
  5896. </tr>
  5897. <tr>
  5898. <td>» title</td>
  5899. <td>body</td>
  5900. <td>string</td>
  5901. <td>false</td>
  5902. <td>the new text of the item</td>
  5903. </tr>
  5904. </tbody>
  5905. </table>
  5906. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5907. <p><strong>board</strong>: the board ID</p>
  5908. <p><strong>card</strong>: the card ID</p>
  5909. <p><strong>checklist</strong>: the checklist ID</p>
  5910. <p><strong>item</strong>: the ID of the item</p>
  5911. <blockquote>
  5912. <p>Example responses</p>
  5913. </blockquote>
  5914. <blockquote>
  5915. <p>200 Response</p>
  5916. </blockquote>
  5917. <pre class="highlight tab tab-json"><code>{
  5918. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5919. }
  5920. </code></pre>
  5921. <h3 id="edit_checklist_item-responses">Responses</h3>
  5922. <table>
  5923. <thead>
  5924. <tr>
  5925. <th>Status</th>
  5926. <th>Meaning</th>
  5927. <th>Description</th>
  5928. <th>Schema</th>
  5929. </tr>
  5930. </thead>
  5931. <tbody>
  5932. <tr>
  5933. <td>200</td>
  5934. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5935. <td>200 response</td>
  5936. <td>Inline</td>
  5937. </tr>
  5938. </tbody>
  5939. </table>
  5940. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5941. <p>Status Code <strong>200</strong></p>
  5942. <table>
  5943. <thead>
  5944. <tr>
  5945. <th>Name</th>
  5946. <th>Type</th>
  5947. <th>Required</th>
  5948. <th>Restrictions</th>
  5949. <th>Description</th>
  5950. </tr>
  5951. </thead>
  5952. <tbody>
  5953. <tr>
  5954. <td>» _id</td>
  5955. <td>string</td>
  5956. <td>false</td>
  5957. <td>none</td>
  5958. <td>none</td>
  5959. </tr>
  5960. </tbody>
  5961. </table>
  5962. <aside class="warning">
  5963. To perform this operation, you must be authenticated by means of one of the following methods:
  5964. UserSecurity
  5965. </aside>
  5966. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5967. <p><a id="opIddelete_checklist_item"></a></p>
  5968. <blockquote>
  5969. <p>Code samples</p>
  5970. </blockquote>
  5971. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5972. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5973. -H <span class="hljs-string">'Accept: application/json'</span> \
  5974. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5975. </code></pre>
  5976. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> HTTP/1.1
  5977. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5978. <span class="undefined"></span></span></code></pre>
  5979. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5980. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5981. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5982. };
  5983. $.ajax({
  5984. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5985. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  5986. <span class="hljs-attr">headers</span>: headers,
  5987. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5988. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5989. }
  5990. })
  5991. </code></pre>
  5992. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  5993. <span class="hljs-keyword">const</span> headers = {
  5994. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5995. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5996. };
  5997. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5998. {
  5999. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  6000. <span class="hljs-attr">headers</span>: headers
  6001. })
  6002. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6003. <span class="hljs-keyword">return</span> res.json();
  6004. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6005. <span class="hljs-built_in">console</span>.log(body);
  6006. });
  6007. </code></pre>
  6008. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6009. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6010. headers = {
  6011. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6012. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6013. }
  6014. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  6015. <span class="hljs-symbol">params:</span> {
  6016. }, <span class="hljs-symbol">headers:</span> headers
  6017. p JSON.parse(result)
  6018. </code></pre>
  6019. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6020. headers = {
  6021. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6022. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6023. }
  6024. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  6025. }, headers = headers)
  6026. <span class="hljs-keyword">print</span> r.json()
  6027. </code></pre>
  6028. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>);
  6029. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6030. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  6031. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6032. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6033. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6034. String inputLine;
  6035. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6036. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6037. response.append(inputLine);
  6038. }
  6039. in.close();
  6040. System.out.println(response.toString());
  6041. </code></pre>
  6042. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6043. <span class="hljs-keyword">import</span> (
  6044. <span class="hljs-string">"bytes"</span>
  6045. <span class="hljs-string">"net/http"</span>
  6046. )
  6047. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6048. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6049. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6050. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6051. }
  6052. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6053. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}"</span>, data)
  6054. req.Header = headers
  6055. client := &amp;http.Client{}
  6056. resp, err := client.Do(req)
  6057. <span class="hljs-comment">// ...</span>
  6058. }
  6059. </code></pre>
  6060. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  6061. <p><em>Delete a checklist item</em></p>
  6062. <p>Note: this operation can't be reverted.</p>
  6063. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  6064. <table>
  6065. <thead>
  6066. <tr>
  6067. <th>Name</th>
  6068. <th>In</th>
  6069. <th>Type</th>
  6070. <th>Required</th>
  6071. <th>Description</th>
  6072. </tr>
  6073. </thead>
  6074. <tbody>
  6075. <tr>
  6076. <td>board</td>
  6077. <td>path</td>
  6078. <td>string</td>
  6079. <td>true</td>
  6080. <td>the board ID</td>
  6081. </tr>
  6082. <tr>
  6083. <td>card</td>
  6084. <td>path</td>
  6085. <td>string</td>
  6086. <td>true</td>
  6087. <td>the card ID</td>
  6088. </tr>
  6089. <tr>
  6090. <td>checklist</td>
  6091. <td>path</td>
  6092. <td>string</td>
  6093. <td>true</td>
  6094. <td>the checklist ID</td>
  6095. </tr>
  6096. <tr>
  6097. <td>item</td>
  6098. <td>path</td>
  6099. <td>string</td>
  6100. <td>true</td>
  6101. <td>the ID of the item to be removed</td>
  6102. </tr>
  6103. </tbody>
  6104. </table>
  6105. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6106. <p><strong>board</strong>: the board ID</p>
  6107. <p><strong>card</strong>: the card ID</p>
  6108. <p><strong>checklist</strong>: the checklist ID</p>
  6109. <p><strong>item</strong>: the ID of the item to be removed</p>
  6110. <blockquote>
  6111. <p>Example responses</p>
  6112. </blockquote>
  6113. <blockquote>
  6114. <p>200 Response</p>
  6115. </blockquote>
  6116. <pre class="highlight tab tab-json"><code>{
  6117. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6118. }
  6119. </code></pre>
  6120. <h3 id="delete_checklist_item-responses">Responses</h3>
  6121. <table>
  6122. <thead>
  6123. <tr>
  6124. <th>Status</th>
  6125. <th>Meaning</th>
  6126. <th>Description</th>
  6127. <th>Schema</th>
  6128. </tr>
  6129. </thead>
  6130. <tbody>
  6131. <tr>
  6132. <td>200</td>
  6133. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6134. <td>200 response</td>
  6135. <td>Inline</td>
  6136. </tr>
  6137. </tbody>
  6138. </table>
  6139. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6140. <p>Status Code <strong>200</strong></p>
  6141. <table>
  6142. <thead>
  6143. <tr>
  6144. <th>Name</th>
  6145. <th>Type</th>
  6146. <th>Required</th>
  6147. <th>Restrictions</th>
  6148. <th>Description</th>
  6149. </tr>
  6150. </thead>
  6151. <tbody>
  6152. <tr>
  6153. <td>» _id</td>
  6154. <td>string</td>
  6155. <td>false</td>
  6156. <td>none</td>
  6157. <td>none</td>
  6158. </tr>
  6159. </tbody>
  6160. </table>
  6161. <aside class="warning">
  6162. To perform this operation, you must be authenticated by means of one of the following methods:
  6163. UserSecurity
  6164. </aside>
  6165. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6166. <h2 id="get_all_comments">get_all_comments</h2>
  6167. <p><a id="opIdget_all_comments"></a></p>
  6168. <blockquote>
  6169. <p>Code samples</p>
  6170. </blockquote>
  6171. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6172. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6173. -H <span class="hljs-string">'Accept: application/json'</span> \
  6174. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6175. </code></pre>
  6176. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> HTTP/1.1
  6177. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6178. <span class="undefined"></span></span></code></pre>
  6179. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6180. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6181. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6182. };
  6183. $.ajax({
  6184. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6185. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6186. <span class="hljs-attr">headers</span>: headers,
  6187. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6188. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6189. }
  6190. })
  6191. </code></pre>
  6192. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6193. <span class="hljs-keyword">const</span> headers = {
  6194. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6195. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6196. };
  6197. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6198. {
  6199. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6200. <span class="hljs-attr">headers</span>: headers
  6201. })
  6202. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6203. <span class="hljs-keyword">return</span> res.json();
  6204. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6205. <span class="hljs-built_in">console</span>.log(body);
  6206. });
  6207. </code></pre>
  6208. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6209. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6210. headers = {
  6211. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6212. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6213. }
  6214. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6215. <span class="hljs-symbol">params:</span> {
  6216. }, <span class="hljs-symbol">headers:</span> headers
  6217. p JSON.parse(result)
  6218. </code></pre>
  6219. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6220. headers = {
  6221. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6222. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6223. }
  6224. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  6225. }, headers = headers)
  6226. <span class="hljs-keyword">print</span> r.json()
  6227. </code></pre>
  6228. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>);
  6229. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6230. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6231. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6232. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6233. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6234. String inputLine;
  6235. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6236. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6237. response.append(inputLine);
  6238. }
  6239. in.close();
  6240. System.out.println(response.toString());
  6241. </code></pre>
  6242. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6243. <span class="hljs-keyword">import</span> (
  6244. <span class="hljs-string">"bytes"</span>
  6245. <span class="hljs-string">"net/http"</span>
  6246. )
  6247. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6248. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6249. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6250. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6251. }
  6252. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6253. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  6254. req.Header = headers
  6255. client := &amp;http.Client{}
  6256. resp, err := client.Do(req)
  6257. <span class="hljs-comment">// ...</span>
  6258. }
  6259. </code></pre>
  6260. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6261. <p><em>Get all comments attached to a card</em></p>
  6262. <h3 id="get_all_comments-parameters">Parameters</h3>
  6263. <table>
  6264. <thead>
  6265. <tr>
  6266. <th>Name</th>
  6267. <th>In</th>
  6268. <th>Type</th>
  6269. <th>Required</th>
  6270. <th>Description</th>
  6271. </tr>
  6272. </thead>
  6273. <tbody>
  6274. <tr>
  6275. <td>board</td>
  6276. <td>path</td>
  6277. <td>string</td>
  6278. <td>true</td>
  6279. <td>the board ID of the card</td>
  6280. </tr>
  6281. <tr>
  6282. <td>card</td>
  6283. <td>path</td>
  6284. <td>string</td>
  6285. <td>true</td>
  6286. <td>the ID of the card</td>
  6287. </tr>
  6288. </tbody>
  6289. </table>
  6290. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6291. <p><strong>board</strong>: the board ID of the card</p>
  6292. <p><strong>card</strong>: the ID of the card</p>
  6293. <blockquote>
  6294. <p>Example responses</p>
  6295. </blockquote>
  6296. <blockquote>
  6297. <p>200 Response</p>
  6298. </blockquote>
  6299. <pre class="highlight tab tab-json"><code>[
  6300. {
  6301. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  6302. <span class="hljs-attr">"comment"</span>: <span class="hljs-string">"string"</span>,
  6303. <span class="hljs-attr">"authorId"</span>: <span class="hljs-string">"string"</span>
  6304. }
  6305. ]
  6306. </code></pre>
  6307. <h3 id="get_all_comments-responses">Responses</h3>
  6308. <table>
  6309. <thead>
  6310. <tr>
  6311. <th>Status</th>
  6312. <th>Meaning</th>
  6313. <th>Description</th>
  6314. <th>Schema</th>
  6315. </tr>
  6316. </thead>
  6317. <tbody>
  6318. <tr>
  6319. <td>200</td>
  6320. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6321. <td>200 response</td>
  6322. <td>Inline</td>
  6323. </tr>
  6324. </tbody>
  6325. </table>
  6326. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6327. <p>Status Code <strong>200</strong></p>
  6328. <table>
  6329. <thead>
  6330. <tr>
  6331. <th>Name</th>
  6332. <th>Type</th>
  6333. <th>Required</th>
  6334. <th>Restrictions</th>
  6335. <th>Description</th>
  6336. </tr>
  6337. </thead>
  6338. <tbody>
  6339. <tr>
  6340. <td>» _id</td>
  6341. <td>string</td>
  6342. <td>false</td>
  6343. <td>none</td>
  6344. <td>none</td>
  6345. </tr>
  6346. <tr>
  6347. <td>» comment</td>
  6348. <td>string</td>
  6349. <td>false</td>
  6350. <td>none</td>
  6351. <td>none</td>
  6352. </tr>
  6353. <tr>
  6354. <td>» authorId</td>
  6355. <td>string</td>
  6356. <td>false</td>
  6357. <td>none</td>
  6358. <td>none</td>
  6359. </tr>
  6360. </tbody>
  6361. </table>
  6362. <aside class="warning">
  6363. To perform this operation, you must be authenticated by means of one of the following methods:
  6364. UserSecurity
  6365. </aside>
  6366. <h2 id="new_comment">new_comment</h2>
  6367. <p><a id="opIdnew_comment"></a></p>
  6368. <blockquote>
  6369. <p>Code samples</p>
  6370. </blockquote>
  6371. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6372. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6373. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  6374. -H <span class="hljs-string">'Accept: application/json'</span> \
  6375. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6376. </code></pre>
  6377. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> HTTP/1.1
  6378. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6379. Accept: application/json
  6380. </span></code></pre>
  6381. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6382. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6383. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6384. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6385. };
  6386. $.ajax({
  6387. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6388. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  6389. <span class="hljs-attr">headers</span>: headers,
  6390. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6391. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6392. }
  6393. })
  6394. </code></pre>
  6395. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6396. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  6397. "authorId": "string",
  6398. "comment": "string"
  6399. }'</span>;
  6400. <span class="hljs-keyword">const</span> headers = {
  6401. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6402. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6403. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6404. };
  6405. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6406. {
  6407. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  6408. <span class="hljs-attr">body</span>: inputBody,
  6409. <span class="hljs-attr">headers</span>: headers
  6410. })
  6411. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6412. <span class="hljs-keyword">return</span> res.json();
  6413. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6414. <span class="hljs-built_in">console</span>.log(body);
  6415. });
  6416. </code></pre>
  6417. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6418. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6419. headers = {
  6420. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  6421. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6422. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6423. }
  6424. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6425. <span class="hljs-symbol">params:</span> {
  6426. }, <span class="hljs-symbol">headers:</span> headers
  6427. p JSON.parse(result)
  6428. </code></pre>
  6429. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6430. headers = {
  6431. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  6432. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6433. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6434. }
  6435. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  6436. }, headers = headers)
  6437. <span class="hljs-keyword">print</span> r.json()
  6438. </code></pre>
  6439. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>);
  6440. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6441. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  6442. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6443. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6444. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6445. String inputLine;
  6446. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6447. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6448. response.append(inputLine);
  6449. }
  6450. in.close();
  6451. System.out.println(response.toString());
  6452. </code></pre>
  6453. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6454. <span class="hljs-keyword">import</span> (
  6455. <span class="hljs-string">"bytes"</span>
  6456. <span class="hljs-string">"net/http"</span>
  6457. )
  6458. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6459. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6460. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6461. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6462. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6463. }
  6464. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6465. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  6466. req.Header = headers
  6467. client := &amp;http.Client{}
  6468. resp, err := client.Do(req)
  6469. <span class="hljs-comment">// ...</span>
  6470. }
  6471. </code></pre>
  6472. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6473. <p><em>Add a comment on a card</em></p>
  6474. <blockquote>
  6475. <p>Body parameter</p>
  6476. </blockquote>
  6477. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6478. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6479. </code></pre>
  6480. <h3 id="new_comment-parameters">Parameters</h3>
  6481. <table>
  6482. <thead>
  6483. <tr>
  6484. <th>Name</th>
  6485. <th>In</th>
  6486. <th>Type</th>
  6487. <th>Required</th>
  6488. <th>Description</th>
  6489. </tr>
  6490. </thead>
  6491. <tbody>
  6492. <tr>
  6493. <td>board</td>
  6494. <td>path</td>
  6495. <td>string</td>
  6496. <td>true</td>
  6497. <td>the board ID of the card</td>
  6498. </tr>
  6499. <tr>
  6500. <td>card</td>
  6501. <td>path</td>
  6502. <td>string</td>
  6503. <td>true</td>
  6504. <td>the ID of the card</td>
  6505. </tr>
  6506. <tr>
  6507. <td>body</td>
  6508. <td>body</td>
  6509. <td>object</td>
  6510. <td>false</td>
  6511. <td>none</td>
  6512. </tr>
  6513. <tr>
  6514. <td>» authorId</td>
  6515. <td>body</td>
  6516. <td>string</td>
  6517. <td>true</td>
  6518. <td>the user who 'posted' the comment</td>
  6519. </tr>
  6520. <tr>
  6521. <td>» comment</td>
  6522. <td>body</td>
  6523. <td>string</td>
  6524. <td>true</td>
  6525. <td>the comment value</td>
  6526. </tr>
  6527. </tbody>
  6528. </table>
  6529. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6530. <p><strong>board</strong>: the board ID of the card</p>
  6531. <p><strong>card</strong>: the ID of the card</p>
  6532. <blockquote>
  6533. <p>Example responses</p>
  6534. </blockquote>
  6535. <blockquote>
  6536. <p>200 Response</p>
  6537. </blockquote>
  6538. <pre class="highlight tab tab-json"><code>{
  6539. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6540. }
  6541. </code></pre>
  6542. <h3 id="new_comment-responses">Responses</h3>
  6543. <table>
  6544. <thead>
  6545. <tr>
  6546. <th>Status</th>
  6547. <th>Meaning</th>
  6548. <th>Description</th>
  6549. <th>Schema</th>
  6550. </tr>
  6551. </thead>
  6552. <tbody>
  6553. <tr>
  6554. <td>200</td>
  6555. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6556. <td>200 response</td>
  6557. <td>Inline</td>
  6558. </tr>
  6559. </tbody>
  6560. </table>
  6561. <h3 id="new_comment-responseschema">Response Schema</h3>
  6562. <p>Status Code <strong>200</strong></p>
  6563. <table>
  6564. <thead>
  6565. <tr>
  6566. <th>Name</th>
  6567. <th>Type</th>
  6568. <th>Required</th>
  6569. <th>Restrictions</th>
  6570. <th>Description</th>
  6571. </tr>
  6572. </thead>
  6573. <tbody>
  6574. <tr>
  6575. <td>» _id</td>
  6576. <td>string</td>
  6577. <td>false</td>
  6578. <td>none</td>
  6579. <td>none</td>
  6580. </tr>
  6581. </tbody>
  6582. </table>
  6583. <aside class="warning">
  6584. To perform this operation, you must be authenticated by means of one of the following methods:
  6585. UserSecurity
  6586. </aside>
  6587. <h2 id="get_comment">get_comment</h2>
  6588. <p><a id="opIdget_comment"></a></p>
  6589. <blockquote>
  6590. <p>Code samples</p>
  6591. </blockquote>
  6592. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6593. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6594. -H <span class="hljs-string">'Accept: application/json'</span> \
  6595. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6596. </code></pre>
  6597. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments/{comment}</span> HTTP/1.1
  6598. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6599. <span class="undefined"></span></span></code></pre>
  6600. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6601. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6602. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6603. };
  6604. $.ajax({
  6605. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6606. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6607. <span class="hljs-attr">headers</span>: headers,
  6608. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6609. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6610. }
  6611. })
  6612. </code></pre>
  6613. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6614. <span class="hljs-keyword">const</span> headers = {
  6615. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6616. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6617. };
  6618. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6619. {
  6620. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6621. <span class="hljs-attr">headers</span>: headers
  6622. })
  6623. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6624. <span class="hljs-keyword">return</span> res.json();
  6625. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6626. <span class="hljs-built_in">console</span>.log(body);
  6627. });
  6628. </code></pre>
  6629. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6630. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6631. headers = {
  6632. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6633. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6634. }
  6635. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6636. <span class="hljs-symbol">params:</span> {
  6637. }, <span class="hljs-symbol">headers:</span> headers
  6638. p JSON.parse(result)
  6639. </code></pre>
  6640. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6641. headers = {
  6642. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6643. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6644. }
  6645. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  6646. }, headers = headers)
  6647. <span class="hljs-keyword">print</span> r.json()
  6648. </code></pre>
  6649. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>);
  6650. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6651. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6652. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6653. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6654. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6655. String inputLine;
  6656. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6657. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6658. response.append(inputLine);
  6659. }
  6660. in.close();
  6661. System.out.println(response.toString());
  6662. </code></pre>
  6663. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6664. <span class="hljs-keyword">import</span> (
  6665. <span class="hljs-string">"bytes"</span>
  6666. <span class="hljs-string">"net/http"</span>
  6667. )
  6668. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6669. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6670. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6671. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6672. }
  6673. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6674. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  6675. req.Header = headers
  6676. client := &amp;http.Client{}
  6677. resp, err := client.Do(req)
  6678. <span class="hljs-comment">// ...</span>
  6679. }
  6680. </code></pre>
  6681. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6682. <p><em>Get a comment on a card</em></p>
  6683. <h3 id="get_comment-parameters">Parameters</h3>
  6684. <table>
  6685. <thead>
  6686. <tr>
  6687. <th>Name</th>
  6688. <th>In</th>
  6689. <th>Type</th>
  6690. <th>Required</th>
  6691. <th>Description</th>
  6692. </tr>
  6693. </thead>
  6694. <tbody>
  6695. <tr>
  6696. <td>board</td>
  6697. <td>path</td>
  6698. <td>string</td>
  6699. <td>true</td>
  6700. <td>the board ID of the card</td>
  6701. </tr>
  6702. <tr>
  6703. <td>card</td>
  6704. <td>path</td>
  6705. <td>string</td>
  6706. <td>true</td>
  6707. <td>the ID of the card</td>
  6708. </tr>
  6709. <tr>
  6710. <td>comment</td>
  6711. <td>path</td>
  6712. <td>string</td>
  6713. <td>true</td>
  6714. <td>the ID of the comment to retrieve</td>
  6715. </tr>
  6716. </tbody>
  6717. </table>
  6718. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6719. <p><strong>board</strong>: the board ID of the card</p>
  6720. <p><strong>card</strong>: the ID of the card</p>
  6721. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6722. <blockquote>
  6723. <p>Example responses</p>
  6724. </blockquote>
  6725. <blockquote>
  6726. <p>200 Response</p>
  6727. </blockquote>
  6728. <pre class="highlight tab tab-json"><code>{
  6729. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  6730. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  6731. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  6732. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  6733. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  6734. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  6735. }
  6736. </code></pre>
  6737. <h3 id="get_comment-responses">Responses</h3>
  6738. <table>
  6739. <thead>
  6740. <tr>
  6741. <th>Status</th>
  6742. <th>Meaning</th>
  6743. <th>Description</th>
  6744. <th>Schema</th>
  6745. </tr>
  6746. </thead>
  6747. <tbody>
  6748. <tr>
  6749. <td>200</td>
  6750. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6751. <td>200 response</td>
  6752. <td><a href="#schemacardcomments">CardComments</a></td>
  6753. </tr>
  6754. </tbody>
  6755. </table>
  6756. <aside class="warning">
  6757. To perform this operation, you must be authenticated by means of one of the following methods:
  6758. UserSecurity
  6759. </aside>
  6760. <h2 id="delete_comment">delete_comment</h2>
  6761. <p><a id="opIddelete_comment"></a></p>
  6762. <blockquote>
  6763. <p>Code samples</p>
  6764. </blockquote>
  6765. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6766. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6767. -H <span class="hljs-string">'Accept: application/json'</span> \
  6768. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6769. </code></pre>
  6770. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments/{comment}</span> HTTP/1.1
  6771. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6772. <span class="undefined"></span></span></code></pre>
  6773. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6774. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6775. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6776. };
  6777. $.ajax({
  6778. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6779. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  6780. <span class="hljs-attr">headers</span>: headers,
  6781. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6782. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6783. }
  6784. })
  6785. </code></pre>
  6786. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6787. <span class="hljs-keyword">const</span> headers = {
  6788. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6789. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6790. };
  6791. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6792. {
  6793. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  6794. <span class="hljs-attr">headers</span>: headers
  6795. })
  6796. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6797. <span class="hljs-keyword">return</span> res.json();
  6798. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6799. <span class="hljs-built_in">console</span>.log(body);
  6800. });
  6801. </code></pre>
  6802. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6803. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6804. headers = {
  6805. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6806. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6807. }
  6808. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6809. <span class="hljs-symbol">params:</span> {
  6810. }, <span class="hljs-symbol">headers:</span> headers
  6811. p JSON.parse(result)
  6812. </code></pre>
  6813. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6814. headers = {
  6815. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6816. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6817. }
  6818. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  6819. }, headers = headers)
  6820. <span class="hljs-keyword">print</span> r.json()
  6821. </code></pre>
  6822. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>);
  6823. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6824. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  6825. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6826. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6827. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6828. String inputLine;
  6829. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6830. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6831. response.append(inputLine);
  6832. }
  6833. in.close();
  6834. System.out.println(response.toString());
  6835. </code></pre>
  6836. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6837. <span class="hljs-keyword">import</span> (
  6838. <span class="hljs-string">"bytes"</span>
  6839. <span class="hljs-string">"net/http"</span>
  6840. )
  6841. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6842. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6843. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6844. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6845. }
  6846. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6847. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  6848. req.Header = headers
  6849. client := &amp;http.Client{}
  6850. resp, err := client.Do(req)
  6851. <span class="hljs-comment">// ...</span>
  6852. }
  6853. </code></pre>
  6854. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6855. <p><em>Delete a comment on a card</em></p>
  6856. <h3 id="delete_comment-parameters">Parameters</h3>
  6857. <table>
  6858. <thead>
  6859. <tr>
  6860. <th>Name</th>
  6861. <th>In</th>
  6862. <th>Type</th>
  6863. <th>Required</th>
  6864. <th>Description</th>
  6865. </tr>
  6866. </thead>
  6867. <tbody>
  6868. <tr>
  6869. <td>board</td>
  6870. <td>path</td>
  6871. <td>string</td>
  6872. <td>true</td>
  6873. <td>the board ID of the card</td>
  6874. </tr>
  6875. <tr>
  6876. <td>card</td>
  6877. <td>path</td>
  6878. <td>string</td>
  6879. <td>true</td>
  6880. <td>the ID of the card</td>
  6881. </tr>
  6882. <tr>
  6883. <td>comment</td>
  6884. <td>path</td>
  6885. <td>string</td>
  6886. <td>true</td>
  6887. <td>the ID of the comment to delete</td>
  6888. </tr>
  6889. </tbody>
  6890. </table>
  6891. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6892. <p><strong>board</strong>: the board ID of the card</p>
  6893. <p><strong>card</strong>: the ID of the card</p>
  6894. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6895. <blockquote>
  6896. <p>Example responses</p>
  6897. </blockquote>
  6898. <blockquote>
  6899. <p>200 Response</p>
  6900. </blockquote>
  6901. <pre class="highlight tab tab-json"><code>{
  6902. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6903. }
  6904. </code></pre>
  6905. <h3 id="delete_comment-responses">Responses</h3>
  6906. <table>
  6907. <thead>
  6908. <tr>
  6909. <th>Status</th>
  6910. <th>Meaning</th>
  6911. <th>Description</th>
  6912. <th>Schema</th>
  6913. </tr>
  6914. </thead>
  6915. <tbody>
  6916. <tr>
  6917. <td>200</td>
  6918. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6919. <td>200 response</td>
  6920. <td>Inline</td>
  6921. </tr>
  6922. </tbody>
  6923. </table>
  6924. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6925. <p>Status Code <strong>200</strong></p>
  6926. <table>
  6927. <thead>
  6928. <tr>
  6929. <th>Name</th>
  6930. <th>Type</th>
  6931. <th>Required</th>
  6932. <th>Restrictions</th>
  6933. <th>Description</th>
  6934. </tr>
  6935. </thead>
  6936. <tbody>
  6937. <tr>
  6938. <td>» _id</td>
  6939. <td>string</td>
  6940. <td>false</td>
  6941. <td>none</td>
  6942. <td>none</td>
  6943. </tr>
  6944. </tbody>
  6945. </table>
  6946. <aside class="warning">
  6947. To perform this operation, you must be authenticated by means of one of the following methods:
  6948. UserSecurity
  6949. </aside>
  6950. <h1 id="wekan-rest-api-cards">Cards</h1>
  6951. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6952. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6953. <blockquote>
  6954. <p>Code samples</p>
  6955. </blockquote>
  6956. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6957. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6958. -H <span class="hljs-string">'Accept: application/json'</span> \
  6959. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6960. </code></pre>
  6961. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</span> HTTP/1.1
  6962. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6963. <span class="undefined"></span></span></code></pre>
  6964. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6965. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6966. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6967. };
  6968. $.ajax({
  6969. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  6970. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6971. <span class="hljs-attr">headers</span>: headers,
  6972. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6973. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6974. }
  6975. })
  6976. </code></pre>
  6977. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  6978. <span class="hljs-keyword">const</span> headers = {
  6979. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6980. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6981. };
  6982. fetch(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  6983. {
  6984. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6985. <span class="hljs-attr">headers</span>: headers
  6986. })
  6987. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6988. <span class="hljs-keyword">return</span> res.json();
  6989. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6990. <span class="hljs-built_in">console</span>.log(body);
  6991. });
  6992. </code></pre>
  6993. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6994. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6995. headers = {
  6996. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6997. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6998. }
  6999. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  7000. <span class="hljs-symbol">params:</span> {
  7001. }, <span class="hljs-symbol">headers:</span> headers
  7002. p JSON.parse(result)
  7003. </code></pre>
  7004. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7005. headers = {
  7006. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7007. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7008. }
  7009. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>, params={
  7010. }, headers = headers)
  7011. <span class="hljs-keyword">print</span> r.json()
  7012. </code></pre>
  7013. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}"</span>);
  7014. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7015. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7016. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7017. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7018. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7019. String inputLine;
  7020. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7021. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7022. response.append(inputLine);
  7023. }
  7024. in.close();
  7025. System.out.println(response.toString());
  7026. </code></pre>
  7027. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7028. <span class="hljs-keyword">import</span> (
  7029. <span class="hljs-string">"bytes"</span>
  7030. <span class="hljs-string">"net/http"</span>
  7031. )
  7032. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7033. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7034. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7035. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7036. }
  7037. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7038. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}"</span>, data)
  7039. req.Header = headers
  7040. client := &amp;http.Client{}
  7041. resp, err := client.Do(req)
  7042. <span class="hljs-comment">// ...</span>
  7043. }
  7044. </code></pre>
  7045. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7046. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7047. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7048. <table>
  7049. <thead>
  7050. <tr>
  7051. <th>Name</th>
  7052. <th>In</th>
  7053. <th>Type</th>
  7054. <th>Required</th>
  7055. <th>Description</th>
  7056. </tr>
  7057. </thead>
  7058. <tbody>
  7059. <tr>
  7060. <td>board</td>
  7061. <td>path</td>
  7062. <td>string</td>
  7063. <td>true</td>
  7064. <td>the board ID</td>
  7065. </tr>
  7066. <tr>
  7067. <td>customField</td>
  7068. <td>path</td>
  7069. <td>string</td>
  7070. <td>true</td>
  7071. <td>the list ID</td>
  7072. </tr>
  7073. <tr>
  7074. <td>customFieldValue</td>
  7075. <td>path</td>
  7076. <td>string</td>
  7077. <td>true</td>
  7078. <td>the value to look for</td>
  7079. </tr>
  7080. </tbody>
  7081. </table>
  7082. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7083. <p><strong>board</strong>: the board ID</p>
  7084. <p><strong>customField</strong>: the list ID</p>
  7085. <p><strong>customFieldValue</strong>: the value to look for</p>
  7086. <blockquote>
  7087. <p>Example responses</p>
  7088. </blockquote>
  7089. <blockquote>
  7090. <p>200 Response</p>
  7091. </blockquote>
  7092. <pre class="highlight tab tab-json"><code>[
  7093. {
  7094. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7095. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7096. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  7097. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  7098. <span class="hljs-attr">"swinlaneId"</span>: <span class="hljs-string">"string"</span>
  7099. }
  7100. ]
  7101. </code></pre>
  7102. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7103. <table>
  7104. <thead>
  7105. <tr>
  7106. <th>Status</th>
  7107. <th>Meaning</th>
  7108. <th>Description</th>
  7109. <th>Schema</th>
  7110. </tr>
  7111. </thead>
  7112. <tbody>
  7113. <tr>
  7114. <td>200</td>
  7115. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7116. <td>200 response</td>
  7117. <td>Inline</td>
  7118. </tr>
  7119. </tbody>
  7120. </table>
  7121. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7122. <p>Status Code <strong>200</strong></p>
  7123. <table>
  7124. <thead>
  7125. <tr>
  7126. <th>Name</th>
  7127. <th>Type</th>
  7128. <th>Required</th>
  7129. <th>Restrictions</th>
  7130. <th>Description</th>
  7131. </tr>
  7132. </thead>
  7133. <tbody>
  7134. <tr>
  7135. <td>» _id</td>
  7136. <td>string</td>
  7137. <td>false</td>
  7138. <td>none</td>
  7139. <td>none</td>
  7140. </tr>
  7141. <tr>
  7142. <td>» title</td>
  7143. <td>string</td>
  7144. <td>false</td>
  7145. <td>none</td>
  7146. <td>none</td>
  7147. </tr>
  7148. <tr>
  7149. <td>» description</td>
  7150. <td>string</td>
  7151. <td>false</td>
  7152. <td>none</td>
  7153. <td>none</td>
  7154. </tr>
  7155. <tr>
  7156. <td>» listId</td>
  7157. <td>string</td>
  7158. <td>false</td>
  7159. <td>none</td>
  7160. <td>none</td>
  7161. </tr>
  7162. <tr>
  7163. <td>» swinlaneId</td>
  7164. <td>string</td>
  7165. <td>false</td>
  7166. <td>none</td>
  7167. <td>none</td>
  7168. </tr>
  7169. </tbody>
  7170. </table>
  7171. <aside class="warning">
  7172. To perform this operation, you must be authenticated by means of one of the following methods:
  7173. UserSecurity
  7174. </aside>
  7175. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  7176. <p><a id="opIdget_board_cards_count"></a></p>
  7177. <blockquote>
  7178. <p>Code samples</p>
  7179. </blockquote>
  7180. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7181. curl -X GET /api/boards/{board}/cards_count \
  7182. -H <span class="hljs-string">'Accept: application/json'</span> \
  7183. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7184. </code></pre>
  7185. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards_count</span> HTTP/1.1
  7186. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7187. <span class="undefined"></span></span></code></pre>
  7188. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7189. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7190. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7191. };
  7192. $.ajax({
  7193. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  7194. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7195. <span class="hljs-attr">headers</span>: headers,
  7196. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7197. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7198. }
  7199. })
  7200. </code></pre>
  7201. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7202. <span class="hljs-keyword">const</span> headers = {
  7203. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7204. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7205. };
  7206. fetch(<span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  7207. {
  7208. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7209. <span class="hljs-attr">headers</span>: headers
  7210. })
  7211. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7212. <span class="hljs-keyword">return</span> res.json();
  7213. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7214. <span class="hljs-built_in">console</span>.log(body);
  7215. });
  7216. </code></pre>
  7217. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7218. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7219. headers = {
  7220. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7221. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7222. }
  7223. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  7224. <span class="hljs-symbol">params:</span> {
  7225. }, <span class="hljs-symbol">headers:</span> headers
  7226. p JSON.parse(result)
  7227. </code></pre>
  7228. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7229. headers = {
  7230. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7231. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7232. }
  7233. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards_count'</span>, params={
  7234. }, headers = headers)
  7235. <span class="hljs-keyword">print</span> r.json()
  7236. </code></pre>
  7237. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards_count"</span>);
  7238. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7239. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7240. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7241. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7242. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7243. String inputLine;
  7244. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7245. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7246. response.append(inputLine);
  7247. }
  7248. in.close();
  7249. System.out.println(response.toString());
  7250. </code></pre>
  7251. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7252. <span class="hljs-keyword">import</span> (
  7253. <span class="hljs-string">"bytes"</span>
  7254. <span class="hljs-string">"net/http"</span>
  7255. )
  7256. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7257. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7258. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7259. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7260. }
  7261. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7262. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards_count"</span>, data)
  7263. req.Header = headers
  7264. client := &amp;http.Client{}
  7265. resp, err := client.Do(req)
  7266. <span class="hljs-comment">// ...</span>
  7267. }
  7268. </code></pre>
  7269. <p><code>GET /api/boards/{board}/cards_count</code></p>
  7270. <p><em>Get a cards count to a board</em></p>
  7271. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  7272. <table>
  7273. <thead>
  7274. <tr>
  7275. <th>Name</th>
  7276. <th>In</th>
  7277. <th>Type</th>
  7278. <th>Required</th>
  7279. <th>Description</th>
  7280. </tr>
  7281. </thead>
  7282. <tbody>
  7283. <tr>
  7284. <td>board</td>
  7285. <td>path</td>
  7286. <td>string</td>
  7287. <td>true</td>
  7288. <td>the board ID</td>
  7289. </tr>
  7290. </tbody>
  7291. </table>
  7292. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7293. <p><strong>board</strong>: the board ID</p>
  7294. <blockquote>
  7295. <p>Example responses</p>
  7296. </blockquote>
  7297. <blockquote>
  7298. <p>200 Response</p>
  7299. </blockquote>
  7300. <pre class="highlight tab tab-json"><code>{
  7301. <span class="hljs-attr">"board_cards_count"</span>: <span class="hljs-number">0</span>
  7302. }
  7303. </code></pre>
  7304. <h3 id="get_board_cards_count-responses">Responses</h3>
  7305. <table>
  7306. <thead>
  7307. <tr>
  7308. <th>Status</th>
  7309. <th>Meaning</th>
  7310. <th>Description</th>
  7311. <th>Schema</th>
  7312. </tr>
  7313. </thead>
  7314. <tbody>
  7315. <tr>
  7316. <td>200</td>
  7317. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7318. <td>200 response</td>
  7319. <td>Inline</td>
  7320. </tr>
  7321. </tbody>
  7322. </table>
  7323. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  7324. <p>Status Code <strong>200</strong></p>
  7325. <table>
  7326. <thead>
  7327. <tr>
  7328. <th>Name</th>
  7329. <th>Type</th>
  7330. <th>Required</th>
  7331. <th>Restrictions</th>
  7332. <th>Description</th>
  7333. </tr>
  7334. </thead>
  7335. <tbody>
  7336. <tr>
  7337. <td>» board_cards_count</td>
  7338. <td>integer</td>
  7339. <td>false</td>
  7340. <td>none</td>
  7341. <td>none</td>
  7342. </tr>
  7343. </tbody>
  7344. </table>
  7345. <aside class="warning">
  7346. To perform this operation, you must be authenticated by means of one of the following methods:
  7347. UserSecurity
  7348. </aside>
  7349. <h2 id="get_all_cards">get_all_cards</h2>
  7350. <p><a id="opIdget_all_cards"></a></p>
  7351. <blockquote>
  7352. <p>Code samples</p>
  7353. </blockquote>
  7354. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7355. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7356. -H <span class="hljs-string">'Accept: application/json'</span> \
  7357. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7358. </code></pre>
  7359. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> HTTP/1.1
  7360. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7361. <span class="undefined"></span></span></code></pre>
  7362. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7363. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7364. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7365. };
  7366. $.ajax({
  7367. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7368. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7369. <span class="hljs-attr">headers</span>: headers,
  7370. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7371. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7372. }
  7373. })
  7374. </code></pre>
  7375. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7376. <span class="hljs-keyword">const</span> headers = {
  7377. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7378. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7379. };
  7380. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7381. {
  7382. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7383. <span class="hljs-attr">headers</span>: headers
  7384. })
  7385. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7386. <span class="hljs-keyword">return</span> res.json();
  7387. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7388. <span class="hljs-built_in">console</span>.log(body);
  7389. });
  7390. </code></pre>
  7391. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7392. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7393. headers = {
  7394. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7395. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7396. }
  7397. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7398. <span class="hljs-symbol">params:</span> {
  7399. }, <span class="hljs-symbol">headers:</span> headers
  7400. p JSON.parse(result)
  7401. </code></pre>
  7402. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7403. headers = {
  7404. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7405. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7406. }
  7407. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  7408. }, headers = headers)
  7409. <span class="hljs-keyword">print</span> r.json()
  7410. </code></pre>
  7411. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>);
  7412. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7413. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7414. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7415. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7416. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7417. String inputLine;
  7418. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7419. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7420. response.append(inputLine);
  7421. }
  7422. in.close();
  7423. System.out.println(response.toString());
  7424. </code></pre>
  7425. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7426. <span class="hljs-keyword">import</span> (
  7427. <span class="hljs-string">"bytes"</span>
  7428. <span class="hljs-string">"net/http"</span>
  7429. )
  7430. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7431. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7432. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7433. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7434. }
  7435. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7436. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  7437. req.Header = headers
  7438. client := &amp;http.Client{}
  7439. resp, err := client.Do(req)
  7440. <span class="hljs-comment">// ...</span>
  7441. }
  7442. </code></pre>
  7443. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7444. <p><em>Get all Cards attached to a List</em></p>
  7445. <h3 id="get_all_cards-parameters">Parameters</h3>
  7446. <table>
  7447. <thead>
  7448. <tr>
  7449. <th>Name</th>
  7450. <th>In</th>
  7451. <th>Type</th>
  7452. <th>Required</th>
  7453. <th>Description</th>
  7454. </tr>
  7455. </thead>
  7456. <tbody>
  7457. <tr>
  7458. <td>board</td>
  7459. <td>path</td>
  7460. <td>string</td>
  7461. <td>true</td>
  7462. <td>the board ID</td>
  7463. </tr>
  7464. <tr>
  7465. <td>list</td>
  7466. <td>path</td>
  7467. <td>string</td>
  7468. <td>true</td>
  7469. <td>the list ID</td>
  7470. </tr>
  7471. </tbody>
  7472. </table>
  7473. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7474. <p><strong>board</strong>: the board ID</p>
  7475. <p><strong>list</strong>: the list ID</p>
  7476. <blockquote>
  7477. <p>Example responses</p>
  7478. </blockquote>
  7479. <blockquote>
  7480. <p>200 Response</p>
  7481. </blockquote>
  7482. <pre class="highlight tab tab-json"><code>[
  7483. {
  7484. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7485. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7486. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>
  7487. }
  7488. ]
  7489. </code></pre>
  7490. <h3 id="get_all_cards-responses">Responses</h3>
  7491. <table>
  7492. <thead>
  7493. <tr>
  7494. <th>Status</th>
  7495. <th>Meaning</th>
  7496. <th>Description</th>
  7497. <th>Schema</th>
  7498. </tr>
  7499. </thead>
  7500. <tbody>
  7501. <tr>
  7502. <td>200</td>
  7503. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7504. <td>200 response</td>
  7505. <td>Inline</td>
  7506. </tr>
  7507. </tbody>
  7508. </table>
  7509. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7510. <p>Status Code <strong>200</strong></p>
  7511. <table>
  7512. <thead>
  7513. <tr>
  7514. <th>Name</th>
  7515. <th>Type</th>
  7516. <th>Required</th>
  7517. <th>Restrictions</th>
  7518. <th>Description</th>
  7519. </tr>
  7520. </thead>
  7521. <tbody>
  7522. <tr>
  7523. <td>» _id</td>
  7524. <td>string</td>
  7525. <td>false</td>
  7526. <td>none</td>
  7527. <td>none</td>
  7528. </tr>
  7529. <tr>
  7530. <td>» title</td>
  7531. <td>string</td>
  7532. <td>false</td>
  7533. <td>none</td>
  7534. <td>none</td>
  7535. </tr>
  7536. <tr>
  7537. <td>» description</td>
  7538. <td>string</td>
  7539. <td>false</td>
  7540. <td>none</td>
  7541. <td>none</td>
  7542. </tr>
  7543. </tbody>
  7544. </table>
  7545. <aside class="warning">
  7546. To perform this operation, you must be authenticated by means of one of the following methods:
  7547. UserSecurity
  7548. </aside>
  7549. <h2 id="new_card">new_card</h2>
  7550. <p><a id="opIdnew_card"></a></p>
  7551. <blockquote>
  7552. <p>Code samples</p>
  7553. </blockquote>
  7554. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7555. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7556. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7557. -H <span class="hljs-string">'Accept: application/json'</span> \
  7558. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7559. </code></pre>
  7560. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> HTTP/1.1
  7561. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7562. Accept: application/json
  7563. </span></code></pre>
  7564. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7565. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7566. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7567. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7568. };
  7569. $.ajax({
  7570. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7571. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  7572. <span class="hljs-attr">headers</span>: headers,
  7573. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7574. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7575. }
  7576. })
  7577. </code></pre>
  7578. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7579. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7580. "authorId": "string",
  7581. "members": "string",
  7582. "assignees": "string",
  7583. "title": "string",
  7584. "description": "string",
  7585. "swimlaneId": "string"
  7586. }'</span>;
  7587. <span class="hljs-keyword">const</span> headers = {
  7588. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7589. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7590. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7591. };
  7592. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7593. {
  7594. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  7595. <span class="hljs-attr">body</span>: inputBody,
  7596. <span class="hljs-attr">headers</span>: headers
  7597. })
  7598. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7599. <span class="hljs-keyword">return</span> res.json();
  7600. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7601. <span class="hljs-built_in">console</span>.log(body);
  7602. });
  7603. </code></pre>
  7604. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7605. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7606. headers = {
  7607. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7608. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7609. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7610. }
  7611. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7612. <span class="hljs-symbol">params:</span> {
  7613. }, <span class="hljs-symbol">headers:</span> headers
  7614. p JSON.parse(result)
  7615. </code></pre>
  7616. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7617. headers = {
  7618. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7619. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7620. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7621. }
  7622. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  7623. }, headers = headers)
  7624. <span class="hljs-keyword">print</span> r.json()
  7625. </code></pre>
  7626. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>);
  7627. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7628. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  7629. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7630. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7631. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7632. String inputLine;
  7633. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7634. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7635. response.append(inputLine);
  7636. }
  7637. in.close();
  7638. System.out.println(response.toString());
  7639. </code></pre>
  7640. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7641. <span class="hljs-keyword">import</span> (
  7642. <span class="hljs-string">"bytes"</span>
  7643. <span class="hljs-string">"net/http"</span>
  7644. )
  7645. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7646. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7647. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7648. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7649. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7650. }
  7651. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7652. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  7653. req.Header = headers
  7654. client := &amp;http.Client{}
  7655. resp, err := client.Do(req)
  7656. <span class="hljs-comment">// ...</span>
  7657. }
  7658. </code></pre>
  7659. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7660. <p><em>Create a new Card</em></p>
  7661. <blockquote>
  7662. <p>Body parameter</p>
  7663. </blockquote>
  7664. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7665. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7666. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7667. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7668. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7669. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7670. </code></pre>
  7671. <h3 id="new_card-parameters">Parameters</h3>
  7672. <table>
  7673. <thead>
  7674. <tr>
  7675. <th>Name</th>
  7676. <th>In</th>
  7677. <th>Type</th>
  7678. <th>Required</th>
  7679. <th>Description</th>
  7680. </tr>
  7681. </thead>
  7682. <tbody>
  7683. <tr>
  7684. <td>board</td>
  7685. <td>path</td>
  7686. <td>string</td>
  7687. <td>true</td>
  7688. <td>the board ID of the new card</td>
  7689. </tr>
  7690. <tr>
  7691. <td>list</td>
  7692. <td>path</td>
  7693. <td>string</td>
  7694. <td>true</td>
  7695. <td>the list ID of the new card</td>
  7696. </tr>
  7697. <tr>
  7698. <td>body</td>
  7699. <td>body</td>
  7700. <td>object</td>
  7701. <td>false</td>
  7702. <td>none</td>
  7703. </tr>
  7704. <tr>
  7705. <td>» authorId</td>
  7706. <td>body</td>
  7707. <td>string</td>
  7708. <td>true</td>
  7709. <td>the authorId value</td>
  7710. </tr>
  7711. <tr>
  7712. <td>» members</td>
  7713. <td>body</td>
  7714. <td>string</td>
  7715. <td>false</td>
  7716. <td>the member IDs list of the new card</td>
  7717. </tr>
  7718. <tr>
  7719. <td>» assignees</td>
  7720. <td>body</td>
  7721. <td>string</td>
  7722. <td>false</td>
  7723. <td>the assignee IDs list of the new card</td>
  7724. </tr>
  7725. <tr>
  7726. <td>» title</td>
  7727. <td>body</td>
  7728. <td>string</td>
  7729. <td>true</td>
  7730. <td>the title of the new card</td>
  7731. </tr>
  7732. <tr>
  7733. <td>» description</td>
  7734. <td>body</td>
  7735. <td>string</td>
  7736. <td>true</td>
  7737. <td>the description of the new card</td>
  7738. </tr>
  7739. <tr>
  7740. <td>» swimlaneId</td>
  7741. <td>body</td>
  7742. <td>string</td>
  7743. <td>true</td>
  7744. <td>the swimlane ID of the new card</td>
  7745. </tr>
  7746. </tbody>
  7747. </table>
  7748. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7749. <p><strong>board</strong>: the board ID of the new card</p>
  7750. <p><strong>list</strong>: the list ID of the new card</p>
  7751. <blockquote>
  7752. <p>Example responses</p>
  7753. </blockquote>
  7754. <blockquote>
  7755. <p>200 Response</p>
  7756. </blockquote>
  7757. <pre class="highlight tab tab-json"><code>{
  7758. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  7759. }
  7760. </code></pre>
  7761. <h3 id="new_card-responses">Responses</h3>
  7762. <table>
  7763. <thead>
  7764. <tr>
  7765. <th>Status</th>
  7766. <th>Meaning</th>
  7767. <th>Description</th>
  7768. <th>Schema</th>
  7769. </tr>
  7770. </thead>
  7771. <tbody>
  7772. <tr>
  7773. <td>200</td>
  7774. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7775. <td>200 response</td>
  7776. <td>Inline</td>
  7777. </tr>
  7778. </tbody>
  7779. </table>
  7780. <h3 id="new_card-responseschema">Response Schema</h3>
  7781. <p>Status Code <strong>200</strong></p>
  7782. <table>
  7783. <thead>
  7784. <tr>
  7785. <th>Name</th>
  7786. <th>Type</th>
  7787. <th>Required</th>
  7788. <th>Restrictions</th>
  7789. <th>Description</th>
  7790. </tr>
  7791. </thead>
  7792. <tbody>
  7793. <tr>
  7794. <td>» _id</td>
  7795. <td>string</td>
  7796. <td>false</td>
  7797. <td>none</td>
  7798. <td>none</td>
  7799. </tr>
  7800. </tbody>
  7801. </table>
  7802. <aside class="warning">
  7803. To perform this operation, you must be authenticated by means of one of the following methods:
  7804. UserSecurity
  7805. </aside>
  7806. <h2 id="get_card">get_card</h2>
  7807. <p><a id="opIdget_card"></a></p>
  7808. <blockquote>
  7809. <p>Code samples</p>
  7810. </blockquote>
  7811. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7812. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7813. -H <span class="hljs-string">'Accept: application/json'</span> \
  7814. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7815. </code></pre>
  7816. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> HTTP/1.1
  7817. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7818. <span class="undefined"></span></span></code></pre>
  7819. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7820. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7821. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7822. };
  7823. $.ajax({
  7824. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7825. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7826. <span class="hljs-attr">headers</span>: headers,
  7827. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7828. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7829. }
  7830. })
  7831. </code></pre>
  7832. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  7833. <span class="hljs-keyword">const</span> headers = {
  7834. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7835. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7836. };
  7837. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7838. {
  7839. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7840. <span class="hljs-attr">headers</span>: headers
  7841. })
  7842. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7843. <span class="hljs-keyword">return</span> res.json();
  7844. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7845. <span class="hljs-built_in">console</span>.log(body);
  7846. });
  7847. </code></pre>
  7848. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7849. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7850. headers = {
  7851. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7852. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7853. }
  7854. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7855. <span class="hljs-symbol">params:</span> {
  7856. }, <span class="hljs-symbol">headers:</span> headers
  7857. p JSON.parse(result)
  7858. </code></pre>
  7859. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7860. headers = {
  7861. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7862. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7863. }
  7864. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  7865. }, headers = headers)
  7866. <span class="hljs-keyword">print</span> r.json()
  7867. </code></pre>
  7868. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>);
  7869. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7870. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7871. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7872. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7873. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7874. String inputLine;
  7875. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7876. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7877. response.append(inputLine);
  7878. }
  7879. in.close();
  7880. System.out.println(response.toString());
  7881. </code></pre>
  7882. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7883. <span class="hljs-keyword">import</span> (
  7884. <span class="hljs-string">"bytes"</span>
  7885. <span class="hljs-string">"net/http"</span>
  7886. )
  7887. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7888. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7889. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7890. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7891. }
  7892. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7893. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  7894. req.Header = headers
  7895. client := &amp;http.Client{}
  7896. resp, err := client.Do(req)
  7897. <span class="hljs-comment">// ...</span>
  7898. }
  7899. </code></pre>
  7900. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7901. <p><em>Get a Card</em></p>
  7902. <h3 id="get_card-parameters">Parameters</h3>
  7903. <table>
  7904. <thead>
  7905. <tr>
  7906. <th>Name</th>
  7907. <th>In</th>
  7908. <th>Type</th>
  7909. <th>Required</th>
  7910. <th>Description</th>
  7911. </tr>
  7912. </thead>
  7913. <tbody>
  7914. <tr>
  7915. <td>board</td>
  7916. <td>path</td>
  7917. <td>string</td>
  7918. <td>true</td>
  7919. <td>the board ID</td>
  7920. </tr>
  7921. <tr>
  7922. <td>list</td>
  7923. <td>path</td>
  7924. <td>string</td>
  7925. <td>true</td>
  7926. <td>the list ID of the card</td>
  7927. </tr>
  7928. <tr>
  7929. <td>card</td>
  7930. <td>path</td>
  7931. <td>string</td>
  7932. <td>true</td>
  7933. <td>the card ID</td>
  7934. </tr>
  7935. </tbody>
  7936. </table>
  7937. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7938. <p><strong>board</strong>: the board ID</p>
  7939. <p><strong>list</strong>: the list ID of the card</p>
  7940. <p><strong>card</strong>: the card ID</p>
  7941. <blockquote>
  7942. <p>Example responses</p>
  7943. </blockquote>
  7944. <blockquote>
  7945. <p>200 Response</p>
  7946. </blockquote>
  7947. <pre class="highlight tab tab-json"><code>{
  7948. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7949. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  7950. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  7951. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  7952. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  7953. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  7954. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  7955. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  7956. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  7957. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  7958. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  7959. <span class="hljs-attr">"customFields"</span>: [
  7960. {}
  7961. ],
  7962. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  7963. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  7964. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  7965. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  7966. <span class="hljs-attr">"labelIds"</span>: [
  7967. <span class="hljs-string">"string"</span>
  7968. ],
  7969. <span class="hljs-attr">"members"</span>: [
  7970. <span class="hljs-string">"string"</span>
  7971. ],
  7972. <span class="hljs-attr">"assignees"</span>: [
  7973. <span class="hljs-string">"string"</span>
  7974. ],
  7975. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  7976. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  7977. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  7978. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  7979. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  7980. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  7981. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  7982. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  7983. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  7984. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  7985. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  7986. <span class="hljs-attr">"vote"</span>: {
  7987. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  7988. <span class="hljs-attr">"positive"</span>: [
  7989. <span class="hljs-string">"string"</span>
  7990. ],
  7991. <span class="hljs-attr">"negative"</span>: [
  7992. <span class="hljs-string">"string"</span>
  7993. ],
  7994. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  7995. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  7996. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  7997. },
  7998. <span class="hljs-attr">"poker"</span>: {
  7999. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  8000. <span class="hljs-attr">"one"</span>: [
  8001. <span class="hljs-string">"string"</span>
  8002. ],
  8003. <span class="hljs-attr">"two"</span>: [
  8004. <span class="hljs-string">"string"</span>
  8005. ],
  8006. <span class="hljs-attr">"three"</span>: [
  8007. <span class="hljs-string">"string"</span>
  8008. ],
  8009. <span class="hljs-attr">"five"</span>: [
  8010. <span class="hljs-string">"string"</span>
  8011. ],
  8012. <span class="hljs-attr">"eight"</span>: [
  8013. <span class="hljs-string">"string"</span>
  8014. ],
  8015. <span class="hljs-attr">"thirteen"</span>: [
  8016. <span class="hljs-string">"string"</span>
  8017. ],
  8018. <span class="hljs-attr">"twenty"</span>: [
  8019. <span class="hljs-string">"string"</span>
  8020. ],
  8021. <span class="hljs-attr">"forty"</span>: [
  8022. <span class="hljs-string">"string"</span>
  8023. ],
  8024. <span class="hljs-attr">"oneHundred"</span>: [
  8025. <span class="hljs-string">"string"</span>
  8026. ],
  8027. <span class="hljs-attr">"unsure"</span>: [
  8028. <span class="hljs-string">"string"</span>
  8029. ],
  8030. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  8031. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  8032. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  8033. },
  8034. <span class="hljs-attr">"targetId_gantt"</span>: [
  8035. <span class="hljs-string">"string"</span>
  8036. ],
  8037. <span class="hljs-attr">"linkType_gantt"</span>: [
  8038. <span class="hljs-number">0</span>
  8039. ],
  8040. <span class="hljs-attr">"linkId_gantt"</span>: [
  8041. <span class="hljs-string">"string"</span>
  8042. ],
  8043. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  8044. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  8045. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>,
  8046. <span class="hljs-attr">"showListOnMinicard"</span>: <span class="hljs-literal">true</span>
  8047. }
  8048. </code></pre>
  8049. <h3 id="get_card-responses">Responses</h3>
  8050. <table>
  8051. <thead>
  8052. <tr>
  8053. <th>Status</th>
  8054. <th>Meaning</th>
  8055. <th>Description</th>
  8056. <th>Schema</th>
  8057. </tr>
  8058. </thead>
  8059. <tbody>
  8060. <tr>
  8061. <td>200</td>
  8062. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8063. <td>200 response</td>
  8064. <td><a href="#schemacards">Cards</a></td>
  8065. </tr>
  8066. </tbody>
  8067. </table>
  8068. <aside class="warning">
  8069. To perform this operation, you must be authenticated by means of one of the following methods:
  8070. UserSecurity
  8071. </aside>
  8072. <h2 id="edit_card">edit_card</h2>
  8073. <p><a id="opIdedit_card"></a></p>
  8074. <blockquote>
  8075. <p>Code samples</p>
  8076. </blockquote>
  8077. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8078. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8079. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8080. -H <span class="hljs-string">'Accept: application/json'</span> \
  8081. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8082. </code></pre>
  8083. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> HTTP/1.1
  8084. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8085. Accept: application/json
  8086. </span></code></pre>
  8087. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8088. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8089. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8090. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8091. };
  8092. $.ajax({
  8093. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8094. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  8095. <span class="hljs-attr">headers</span>: headers,
  8096. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8097. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8098. }
  8099. })
  8100. </code></pre>
  8101. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8102. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8103. "newBoardId": "string",
  8104. "newSwimlaneId": "string",
  8105. "newListId": "string",
  8106. "title": "string",
  8107. "sort": "string",
  8108. "parentId": "string",
  8109. "description": "string",
  8110. "color": "string",
  8111. "vote": {},
  8112. "poker": {},
  8113. "labelIds": "string",
  8114. "requestedBy": "string",
  8115. "assignedBy": "string",
  8116. "receivedAt": "string",
  8117. "startAt": "string",
  8118. "dueAt": "string",
  8119. "endAt": "string",
  8120. "spentTime": "string",
  8121. "isOverTime": true,
  8122. "customFields": "string",
  8123. "members": "string",
  8124. "assignees": "string",
  8125. "swimlaneId": "string",
  8126. "listId": "string",
  8127. "authorId": "string",
  8128. "archive": "string"
  8129. }'</span>;
  8130. <span class="hljs-keyword">const</span> headers = {
  8131. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8132. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8133. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8134. };
  8135. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8136. {
  8137. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  8138. <span class="hljs-attr">body</span>: inputBody,
  8139. <span class="hljs-attr">headers</span>: headers
  8140. })
  8141. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8142. <span class="hljs-keyword">return</span> res.json();
  8143. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8144. <span class="hljs-built_in">console</span>.log(body);
  8145. });
  8146. </code></pre>
  8147. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8148. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8149. headers = {
  8150. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8151. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8152. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8153. }
  8154. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8155. <span class="hljs-symbol">params:</span> {
  8156. }, <span class="hljs-symbol">headers:</span> headers
  8157. p JSON.parse(result)
  8158. </code></pre>
  8159. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8160. headers = {
  8161. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8162. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8163. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8164. }
  8165. r = requests.put(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  8166. }, headers = headers)
  8167. <span class="hljs-keyword">print</span> r.json()
  8168. </code></pre>
  8169. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>);
  8170. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8171. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  8172. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8173. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8174. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8175. String inputLine;
  8176. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8177. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8178. response.append(inputLine);
  8179. }
  8180. in.close();
  8181. System.out.println(response.toString());
  8182. </code></pre>
  8183. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8184. <span class="hljs-keyword">import</span> (
  8185. <span class="hljs-string">"bytes"</span>
  8186. <span class="hljs-string">"net/http"</span>
  8187. )
  8188. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8189. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8190. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8191. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8192. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8193. }
  8194. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8195. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  8196. req.Header = headers
  8197. client := &amp;http.Client{}
  8198. resp, err := client.Do(req)
  8199. <span class="hljs-comment">// ...</span>
  8200. }
  8201. </code></pre>
  8202. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8203. <p><em>Edit Fields in a Card</em></p>
  8204. <p>Edit a card</p>
  8205. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8206. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8207. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8208. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8209. <code>indigo</code>:</p>
  8210. <img src="/card-colors.png" alt="Wekan card colors" />
  8211. <p>Note: setting the color to white has the same effect than removing it.</p>
  8212. <blockquote>
  8213. <p>Body parameter</p>
  8214. </blockquote>
  8215. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">newBoardId:</span> <span class="hljs-string">string</span>
  8216. <span class="hljs-attr">newSwimlaneId:</span> <span class="hljs-string">string</span>
  8217. <span class="hljs-attr">newListId:</span> <span class="hljs-string">string</span>
  8218. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8219. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8220. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8221. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8222. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8223. <span class="hljs-attr">vote:</span> <span class="hljs-string">{}</span>
  8224. <span class="hljs-attr">poker:</span> <span class="hljs-string">{}</span>
  8225. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8226. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8227. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8228. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8229. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8230. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8231. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8232. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8233. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8234. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8235. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8236. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8237. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8238. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8239. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8240. <span class="hljs-attr">archive:</span> <span class="hljs-string">string</span>
  8241. </code></pre>
  8242. <h3 id="edit_card-parameters">Parameters</h3>
  8243. <table>
  8244. <thead>
  8245. <tr>
  8246. <th>Name</th>
  8247. <th>In</th>
  8248. <th>Type</th>
  8249. <th>Required</th>
  8250. <th>Description</th>
  8251. </tr>
  8252. </thead>
  8253. <tbody>
  8254. <tr>
  8255. <td>board</td>
  8256. <td>path</td>
  8257. <td>string</td>
  8258. <td>true</td>
  8259. <td>the board ID of the card</td>
  8260. </tr>
  8261. <tr>
  8262. <td>list</td>
  8263. <td>path</td>
  8264. <td>string</td>
  8265. <td>true</td>
  8266. <td>the list ID of the card</td>
  8267. </tr>
  8268. <tr>
  8269. <td>card</td>
  8270. <td>path</td>
  8271. <td>string</td>
  8272. <td>true</td>
  8273. <td>the ID of the card</td>
  8274. </tr>
  8275. <tr>
  8276. <td>body</td>
  8277. <td>body</td>
  8278. <td>object</td>
  8279. <td>false</td>
  8280. <td>none</td>
  8281. </tr>
  8282. <tr>
  8283. <td>» newBoardId</td>
  8284. <td>body</td>
  8285. <td>string</td>
  8286. <td>true</td>
  8287. <td>the newBoardId value</td>
  8288. </tr>
  8289. <tr>
  8290. <td>» newSwimlaneId</td>
  8291. <td>body</td>
  8292. <td>string</td>
  8293. <td>true</td>
  8294. <td>the newSwimlaneId value</td>
  8295. </tr>
  8296. <tr>
  8297. <td>» newListId</td>
  8298. <td>body</td>
  8299. <td>string</td>
  8300. <td>true</td>
  8301. <td>the newListId value</td>
  8302. </tr>
  8303. <tr>
  8304. <td>» title</td>
  8305. <td>body</td>
  8306. <td>string</td>
  8307. <td>false</td>
  8308. <td>the new title of the card</td>
  8309. </tr>
  8310. <tr>
  8311. <td>» sort</td>
  8312. <td>body</td>
  8313. <td>string</td>
  8314. <td>false</td>
  8315. <td>the new sort value of the card</td>
  8316. </tr>
  8317. <tr>
  8318. <td>» parentId</td>
  8319. <td>body</td>
  8320. <td>string</td>
  8321. <td>false</td>
  8322. <td>change the parent of the card</td>
  8323. </tr>
  8324. <tr>
  8325. <td>» description</td>
  8326. <td>body</td>
  8327. <td>string</td>
  8328. <td>false</td>
  8329. <td>the new description of the card</td>
  8330. </tr>
  8331. <tr>
  8332. <td>» color</td>
  8333. <td>body</td>
  8334. <td>string</td>
  8335. <td>false</td>
  8336. <td>the new color of the card</td>
  8337. </tr>
  8338. <tr>
  8339. <td>» vote</td>
  8340. <td>body</td>
  8341. <td>object</td>
  8342. <td>false</td>
  8343. <td>the vote object</td>
  8344. </tr>
  8345. <tr>
  8346. <td>» poker</td>
  8347. <td>body</td>
  8348. <td>object</td>
  8349. <td>false</td>
  8350. <td>the poker object</td>
  8351. </tr>
  8352. <tr>
  8353. <td>» labelIds</td>
  8354. <td>body</td>
  8355. <td>string</td>
  8356. <td>false</td>
  8357. <td>the new list of label IDs attached to the card</td>
  8358. </tr>
  8359. <tr>
  8360. <td>» requestedBy</td>
  8361. <td>body</td>
  8362. <td>string</td>
  8363. <td>false</td>
  8364. <td>the new requestedBy field of the card</td>
  8365. </tr>
  8366. <tr>
  8367. <td>» assignedBy</td>
  8368. <td>body</td>
  8369. <td>string</td>
  8370. <td>false</td>
  8371. <td>the new assignedBy field of the card</td>
  8372. </tr>
  8373. <tr>
  8374. <td>» receivedAt</td>
  8375. <td>body</td>
  8376. <td>string</td>
  8377. <td>false</td>
  8378. <td>the new receivedAt field of the card</td>
  8379. </tr>
  8380. <tr>
  8381. <td>» startAt</td>
  8382. <td>body</td>
  8383. <td>string</td>
  8384. <td>false</td>
  8385. <td>the new startAt field of the card</td>
  8386. </tr>
  8387. <tr>
  8388. <td>» dueAt</td>
  8389. <td>body</td>
  8390. <td>string</td>
  8391. <td>false</td>
  8392. <td>the new dueAt field of the card</td>
  8393. </tr>
  8394. <tr>
  8395. <td>» endAt</td>
  8396. <td>body</td>
  8397. <td>string</td>
  8398. <td>false</td>
  8399. <td>the new endAt field of the card</td>
  8400. </tr>
  8401. <tr>
  8402. <td>» spentTime</td>
  8403. <td>body</td>
  8404. <td>string</td>
  8405. <td>false</td>
  8406. <td>the new spentTime field of the card</td>
  8407. </tr>
  8408. <tr>
  8409. <td>» isOverTime</td>
  8410. <td>body</td>
  8411. <td>boolean</td>
  8412. <td>false</td>
  8413. <td>the new isOverTime field of the card</td>
  8414. </tr>
  8415. <tr>
  8416. <td>» customFields</td>
  8417. <td>body</td>
  8418. <td>string</td>
  8419. <td>false</td>
  8420. <td>the new customFields value of the card</td>
  8421. </tr>
  8422. <tr>
  8423. <td>» members</td>
  8424. <td>body</td>
  8425. <td>string</td>
  8426. <td>false</td>
  8427. <td>the new list of member IDs attached to the card</td>
  8428. </tr>
  8429. <tr>
  8430. <td>» assignees</td>
  8431. <td>body</td>
  8432. <td>string</td>
  8433. <td>false</td>
  8434. <td>the array of maximum one ID of assignee attached to the card</td>
  8435. </tr>
  8436. <tr>
  8437. <td>» swimlaneId</td>
  8438. <td>body</td>
  8439. <td>string</td>
  8440. <td>false</td>
  8441. <td>the new swimlane ID of the card</td>
  8442. </tr>
  8443. <tr>
  8444. <td>» listId</td>
  8445. <td>body</td>
  8446. <td>string</td>
  8447. <td>false</td>
  8448. <td>the new list ID of the card (move operation)</td>
  8449. </tr>
  8450. <tr>
  8451. <td>» authorId</td>
  8452. <td>body</td>
  8453. <td>string</td>
  8454. <td>false</td>
  8455. <td>change the owner of the card</td>
  8456. </tr>
  8457. <tr>
  8458. <td>» archive</td>
  8459. <td>body</td>
  8460. <td>string</td>
  8461. <td>true</td>
  8462. <td>the archive value</td>
  8463. </tr>
  8464. </tbody>
  8465. </table>
  8466. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8467. <p><strong>board</strong>: the board ID of the card</p>
  8468. <p><strong>list</strong>: the list ID of the card</p>
  8469. <p><strong>card</strong>: the ID of the card</p>
  8470. <blockquote>
  8471. <p>Example responses</p>
  8472. </blockquote>
  8473. <blockquote>
  8474. <p>200 Response</p>
  8475. </blockquote>
  8476. <pre class="highlight tab tab-json"><code>{
  8477. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8478. }
  8479. </code></pre>
  8480. <h3 id="edit_card-responses">Responses</h3>
  8481. <table>
  8482. <thead>
  8483. <tr>
  8484. <th>Status</th>
  8485. <th>Meaning</th>
  8486. <th>Description</th>
  8487. <th>Schema</th>
  8488. </tr>
  8489. </thead>
  8490. <tbody>
  8491. <tr>
  8492. <td>200</td>
  8493. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8494. <td>200 response</td>
  8495. <td>Inline</td>
  8496. </tr>
  8497. </tbody>
  8498. </table>
  8499. <h3 id="edit_card-responseschema">Response Schema</h3>
  8500. <p>Status Code <strong>200</strong></p>
  8501. <table>
  8502. <thead>
  8503. <tr>
  8504. <th>Name</th>
  8505. <th>Type</th>
  8506. <th>Required</th>
  8507. <th>Restrictions</th>
  8508. <th>Description</th>
  8509. </tr>
  8510. </thead>
  8511. <tbody>
  8512. <tr>
  8513. <td>» _id</td>
  8514. <td>string</td>
  8515. <td>false</td>
  8516. <td>none</td>
  8517. <td>none</td>
  8518. </tr>
  8519. </tbody>
  8520. </table>
  8521. <aside class="warning">
  8522. To perform this operation, you must be authenticated by means of one of the following methods:
  8523. UserSecurity
  8524. </aside>
  8525. <h2 id="delete_card">delete_card</h2>
  8526. <p><a id="opIddelete_card"></a></p>
  8527. <blockquote>
  8528. <p>Code samples</p>
  8529. </blockquote>
  8530. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8531. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8532. -H <span class="hljs-string">'Accept: application/json'</span> \
  8533. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8534. </code></pre>
  8535. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> HTTP/1.1
  8536. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8537. <span class="undefined"></span></span></code></pre>
  8538. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8539. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8540. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8541. };
  8542. $.ajax({
  8543. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8544. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  8545. <span class="hljs-attr">headers</span>: headers,
  8546. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8547. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8548. }
  8549. })
  8550. </code></pre>
  8551. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8552. <span class="hljs-keyword">const</span> headers = {
  8553. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8554. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8555. };
  8556. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8557. {
  8558. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  8559. <span class="hljs-attr">headers</span>: headers
  8560. })
  8561. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8562. <span class="hljs-keyword">return</span> res.json();
  8563. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8564. <span class="hljs-built_in">console</span>.log(body);
  8565. });
  8566. </code></pre>
  8567. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8568. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8569. headers = {
  8570. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8571. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8572. }
  8573. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8574. <span class="hljs-symbol">params:</span> {
  8575. }, <span class="hljs-symbol">headers:</span> headers
  8576. p JSON.parse(result)
  8577. </code></pre>
  8578. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8579. headers = {
  8580. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8581. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8582. }
  8583. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  8584. }, headers = headers)
  8585. <span class="hljs-keyword">print</span> r.json()
  8586. </code></pre>
  8587. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>);
  8588. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8589. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  8590. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8591. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8592. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8593. String inputLine;
  8594. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8595. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8596. response.append(inputLine);
  8597. }
  8598. in.close();
  8599. System.out.println(response.toString());
  8600. </code></pre>
  8601. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8602. <span class="hljs-keyword">import</span> (
  8603. <span class="hljs-string">"bytes"</span>
  8604. <span class="hljs-string">"net/http"</span>
  8605. )
  8606. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8607. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8608. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8609. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8610. }
  8611. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8612. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  8613. req.Header = headers
  8614. client := &amp;http.Client{}
  8615. resp, err := client.Do(req)
  8616. <span class="hljs-comment">// ...</span>
  8617. }
  8618. </code></pre>
  8619. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8620. <p><em>Delete a card from a board</em></p>
  8621. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8622. is not put in the recycle bin.</p>
  8623. <h3 id="delete_card-parameters">Parameters</h3>
  8624. <table>
  8625. <thead>
  8626. <tr>
  8627. <th>Name</th>
  8628. <th>In</th>
  8629. <th>Type</th>
  8630. <th>Required</th>
  8631. <th>Description</th>
  8632. </tr>
  8633. </thead>
  8634. <tbody>
  8635. <tr>
  8636. <td>board</td>
  8637. <td>path</td>
  8638. <td>string</td>
  8639. <td>true</td>
  8640. <td>the board ID of the card</td>
  8641. </tr>
  8642. <tr>
  8643. <td>list</td>
  8644. <td>path</td>
  8645. <td>string</td>
  8646. <td>true</td>
  8647. <td>the list ID of the card</td>
  8648. </tr>
  8649. <tr>
  8650. <td>card</td>
  8651. <td>path</td>
  8652. <td>string</td>
  8653. <td>true</td>
  8654. <td>the ID of the card</td>
  8655. </tr>
  8656. </tbody>
  8657. </table>
  8658. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8659. <p><strong>board</strong>: the board ID of the card</p>
  8660. <p><strong>list</strong>: the list ID of the card</p>
  8661. <p><strong>card</strong>: the ID of the card</p>
  8662. <blockquote>
  8663. <p>Example responses</p>
  8664. </blockquote>
  8665. <blockquote>
  8666. <p>200 Response</p>
  8667. </blockquote>
  8668. <pre class="highlight tab tab-json"><code>{
  8669. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8670. }
  8671. </code></pre>
  8672. <h3 id="delete_card-responses">Responses</h3>
  8673. <table>
  8674. <thead>
  8675. <tr>
  8676. <th>Status</th>
  8677. <th>Meaning</th>
  8678. <th>Description</th>
  8679. <th>Schema</th>
  8680. </tr>
  8681. </thead>
  8682. <tbody>
  8683. <tr>
  8684. <td>200</td>
  8685. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8686. <td>200 response</td>
  8687. <td>Inline</td>
  8688. </tr>
  8689. </tbody>
  8690. </table>
  8691. <h3 id="delete_card-responseschema">Response Schema</h3>
  8692. <p>Status Code <strong>200</strong></p>
  8693. <table>
  8694. <thead>
  8695. <tr>
  8696. <th>Name</th>
  8697. <th>Type</th>
  8698. <th>Required</th>
  8699. <th>Restrictions</th>
  8700. <th>Description</th>
  8701. </tr>
  8702. </thead>
  8703. <tbody>
  8704. <tr>
  8705. <td>» _id</td>
  8706. <td>string</td>
  8707. <td>false</td>
  8708. <td>none</td>
  8709. <td>none</td>
  8710. </tr>
  8711. </tbody>
  8712. </table>
  8713. <aside class="warning">
  8714. To perform this operation, you must be authenticated by means of one of the following methods:
  8715. UserSecurity
  8716. </aside>
  8717. <h2 id="edit_card_custom_field">edit_card_custom_field</h2>
  8718. <p><a id="opIdedit_card_custom_field"></a></p>
  8719. <blockquote>
  8720. <p>Code samples</p>
  8721. </blockquote>
  8722. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8723. curl -X POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField} \
  8724. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8725. -H <span class="hljs-string">'Accept: application/json'</span> \
  8726. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8727. </code></pre>
  8728. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</span> HTTP/1.1
  8729. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8730. Accept: application/json
  8731. </span></code></pre>
  8732. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8733. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8734. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8735. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8736. };
  8737. $.ajax({
  8738. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  8739. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  8740. <span class="hljs-attr">headers</span>: headers,
  8741. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8742. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8743. }
  8744. })
  8745. </code></pre>
  8746. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  8747. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8748. "value": "string"
  8749. }'</span>;
  8750. <span class="hljs-keyword">const</span> headers = {
  8751. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8752. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8753. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8754. };
  8755. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  8756. {
  8757. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  8758. <span class="hljs-attr">body</span>: inputBody,
  8759. <span class="hljs-attr">headers</span>: headers
  8760. })
  8761. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8762. <span class="hljs-keyword">return</span> res.json();
  8763. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8764. <span class="hljs-built_in">console</span>.log(body);
  8765. });
  8766. </code></pre>
  8767. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8768. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8769. headers = {
  8770. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8771. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8772. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8773. }
  8774. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  8775. <span class="hljs-symbol">params:</span> {
  8776. }, <span class="hljs-symbol">headers:</span> headers
  8777. p JSON.parse(result)
  8778. </code></pre>
  8779. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8780. headers = {
  8781. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8782. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8783. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8784. }
  8785. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>, params={
  8786. }, headers = headers)
  8787. <span class="hljs-keyword">print</span> r.json()
  8788. </code></pre>
  8789. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}"</span>);
  8790. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8791. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  8792. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8793. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8794. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8795. String inputLine;
  8796. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8797. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8798. response.append(inputLine);
  8799. }
  8800. in.close();
  8801. System.out.println(response.toString());
  8802. </code></pre>
  8803. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8804. <span class="hljs-keyword">import</span> (
  8805. <span class="hljs-string">"bytes"</span>
  8806. <span class="hljs-string">"net/http"</span>
  8807. )
  8808. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8809. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8810. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8811. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8812. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8813. }
  8814. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8815. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}"</span>, data)
  8816. req.Header = headers
  8817. client := &amp;http.Client{}
  8818. resp, err := client.Do(req)
  8819. <span class="hljs-comment">// ...</span>
  8820. }
  8821. </code></pre>
  8822. <p><code>POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</code></p>
  8823. <p><em>Edit Custom Field in a Card</em></p>
  8824. <p>Edit a custom field value in a card</p>
  8825. <blockquote>
  8826. <p>Body parameter</p>
  8827. </blockquote>
  8828. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">value:</span> <span class="hljs-string">string</span>
  8829. </code></pre>
  8830. <h3 id="edit_card_custom_field-parameters">Parameters</h3>
  8831. <table>
  8832. <thead>
  8833. <tr>
  8834. <th>Name</th>
  8835. <th>In</th>
  8836. <th>Type</th>
  8837. <th>Required</th>
  8838. <th>Description</th>
  8839. </tr>
  8840. </thead>
  8841. <tbody>
  8842. <tr>
  8843. <td>board</td>
  8844. <td>path</td>
  8845. <td>string</td>
  8846. <td>true</td>
  8847. <td>the board ID of the card</td>
  8848. </tr>
  8849. <tr>
  8850. <td>list</td>
  8851. <td>path</td>
  8852. <td>string</td>
  8853. <td>true</td>
  8854. <td>the list ID of the card</td>
  8855. </tr>
  8856. <tr>
  8857. <td>card</td>
  8858. <td>path</td>
  8859. <td>string</td>
  8860. <td>true</td>
  8861. <td>the ID of the card</td>
  8862. </tr>
  8863. <tr>
  8864. <td>customField</td>
  8865. <td>path</td>
  8866. <td>string</td>
  8867. <td>true</td>
  8868. <td>the ID of the custom field</td>
  8869. </tr>
  8870. <tr>
  8871. <td>body</td>
  8872. <td>body</td>
  8873. <td>object</td>
  8874. <td>false</td>
  8875. <td>none</td>
  8876. </tr>
  8877. <tr>
  8878. <td>» value</td>
  8879. <td>body</td>
  8880. <td>string</td>
  8881. <td>true</td>
  8882. <td>the new custom field value</td>
  8883. </tr>
  8884. </tbody>
  8885. </table>
  8886. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8887. <p><strong>board</strong>: the board ID of the card</p>
  8888. <p><strong>list</strong>: the list ID of the card</p>
  8889. <p><strong>card</strong>: the ID of the card</p>
  8890. <p><strong>customField</strong>: the ID of the custom field</p>
  8891. <blockquote>
  8892. <p>Example responses</p>
  8893. </blockquote>
  8894. <blockquote>
  8895. <p>200 Response</p>
  8896. </blockquote>
  8897. <pre class="highlight tab tab-json"><code>{
  8898. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  8899. <span class="hljs-attr">"customFields"</span>: [
  8900. {
  8901. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  8902. <span class="hljs-attr">"value"</span>: {}
  8903. }
  8904. ]
  8905. }
  8906. </code></pre>
  8907. <h3 id="edit_card_custom_field-responses">Responses</h3>
  8908. <table>
  8909. <thead>
  8910. <tr>
  8911. <th>Status</th>
  8912. <th>Meaning</th>
  8913. <th>Description</th>
  8914. <th>Schema</th>
  8915. </tr>
  8916. </thead>
  8917. <tbody>
  8918. <tr>
  8919. <td>200</td>
  8920. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8921. <td>200 response</td>
  8922. <td>Inline</td>
  8923. </tr>
  8924. </tbody>
  8925. </table>
  8926. <h3 id="edit_card_custom_field-responseschema">Response Schema</h3>
  8927. <p>Status Code <strong>200</strong></p>
  8928. <table>
  8929. <thead>
  8930. <tr>
  8931. <th>Name</th>
  8932. <th>Type</th>
  8933. <th>Required</th>
  8934. <th>Restrictions</th>
  8935. <th>Description</th>
  8936. </tr>
  8937. </thead>
  8938. <tbody>
  8939. <tr>
  8940. <td>» _id</td>
  8941. <td>string</td>
  8942. <td>false</td>
  8943. <td>none</td>
  8944. <td>none</td>
  8945. </tr>
  8946. <tr>
  8947. <td>» customFields</td>
  8948. <td>[object]</td>
  8949. <td>false</td>
  8950. <td>none</td>
  8951. <td>none</td>
  8952. </tr>
  8953. <tr>
  8954. <td>»» _id</td>
  8955. <td>string</td>
  8956. <td>false</td>
  8957. <td>none</td>
  8958. <td>none</td>
  8959. </tr>
  8960. <tr>
  8961. <td>»» value</td>
  8962. <td>object</td>
  8963. <td>false</td>
  8964. <td>none</td>
  8965. <td>none</td>
  8966. </tr>
  8967. </tbody>
  8968. </table>
  8969. <aside class="warning">
  8970. To perform this operation, you must be authenticated by means of one of the following methods:
  8971. UserSecurity
  8972. </aside>
  8973. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  8974. <p><a id="opIdget_list_cards_count"></a></p>
  8975. <blockquote>
  8976. <p>Code samples</p>
  8977. </blockquote>
  8978. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8979. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  8980. -H <span class="hljs-string">'Accept: application/json'</span> \
  8981. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8982. </code></pre>
  8983. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards_count</span> HTTP/1.1
  8984. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8985. <span class="undefined"></span></span></code></pre>
  8986. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8987. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8988. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8989. };
  8990. $.ajax({
  8991. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  8992. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  8993. <span class="hljs-attr">headers</span>: headers,
  8994. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8995. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8996. }
  8997. })
  8998. </code></pre>
  8999. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9000. <span class="hljs-keyword">const</span> headers = {
  9001. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9002. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9003. };
  9004. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  9005. {
  9006. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9007. <span class="hljs-attr">headers</span>: headers
  9008. })
  9009. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9010. <span class="hljs-keyword">return</span> res.json();
  9011. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9012. <span class="hljs-built_in">console</span>.log(body);
  9013. });
  9014. </code></pre>
  9015. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9016. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9017. headers = {
  9018. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9019. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9020. }
  9021. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  9022. <span class="hljs-symbol">params:</span> {
  9023. }, <span class="hljs-symbol">headers:</span> headers
  9024. p JSON.parse(result)
  9025. </code></pre>
  9026. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9027. headers = {
  9028. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9029. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9030. }
  9031. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>, params={
  9032. }, headers = headers)
  9033. <span class="hljs-keyword">print</span> r.json()
  9034. </code></pre>
  9035. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}/cards_count"</span>);
  9036. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9037. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9038. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9039. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9040. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9041. String inputLine;
  9042. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9043. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9044. response.append(inputLine);
  9045. }
  9046. in.close();
  9047. System.out.println(response.toString());
  9048. </code></pre>
  9049. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9050. <span class="hljs-keyword">import</span> (
  9051. <span class="hljs-string">"bytes"</span>
  9052. <span class="hljs-string">"net/http"</span>
  9053. )
  9054. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9055. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9056. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9057. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9058. }
  9059. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9060. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards_count"</span>, data)
  9061. req.Header = headers
  9062. client := &amp;http.Client{}
  9063. resp, err := client.Do(req)
  9064. <span class="hljs-comment">// ...</span>
  9065. }
  9066. </code></pre>
  9067. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  9068. <p><em>Get a cards count to a list</em></p>
  9069. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  9070. <table>
  9071. <thead>
  9072. <tr>
  9073. <th>Name</th>
  9074. <th>In</th>
  9075. <th>Type</th>
  9076. <th>Required</th>
  9077. <th>Description</th>
  9078. </tr>
  9079. </thead>
  9080. <tbody>
  9081. <tr>
  9082. <td>board</td>
  9083. <td>path</td>
  9084. <td>string</td>
  9085. <td>true</td>
  9086. <td>the board ID</td>
  9087. </tr>
  9088. <tr>
  9089. <td>list</td>
  9090. <td>path</td>
  9091. <td>string</td>
  9092. <td>true</td>
  9093. <td>the List ID</td>
  9094. </tr>
  9095. </tbody>
  9096. </table>
  9097. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9098. <p><strong>board</strong>: the board ID</p>
  9099. <p><strong>list</strong>: the List ID</p>
  9100. <blockquote>
  9101. <p>Example responses</p>
  9102. </blockquote>
  9103. <blockquote>
  9104. <p>200 Response</p>
  9105. </blockquote>
  9106. <pre class="highlight tab tab-json"><code>{
  9107. <span class="hljs-attr">"list_cards_count"</span>: <span class="hljs-number">0</span>
  9108. }
  9109. </code></pre>
  9110. <h3 id="get_list_cards_count-responses">Responses</h3>
  9111. <table>
  9112. <thead>
  9113. <tr>
  9114. <th>Status</th>
  9115. <th>Meaning</th>
  9116. <th>Description</th>
  9117. <th>Schema</th>
  9118. </tr>
  9119. </thead>
  9120. <tbody>
  9121. <tr>
  9122. <td>200</td>
  9123. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9124. <td>200 response</td>
  9125. <td>Inline</td>
  9126. </tr>
  9127. </tbody>
  9128. </table>
  9129. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  9130. <p>Status Code <strong>200</strong></p>
  9131. <table>
  9132. <thead>
  9133. <tr>
  9134. <th>Name</th>
  9135. <th>Type</th>
  9136. <th>Required</th>
  9137. <th>Restrictions</th>
  9138. <th>Description</th>
  9139. </tr>
  9140. </thead>
  9141. <tbody>
  9142. <tr>
  9143. <td>» list_cards_count</td>
  9144. <td>integer</td>
  9145. <td>false</td>
  9146. <td>none</td>
  9147. <td>none</td>
  9148. </tr>
  9149. </tbody>
  9150. </table>
  9151. <aside class="warning">
  9152. To perform this operation, you must be authenticated by means of one of the following methods:
  9153. UserSecurity
  9154. </aside>
  9155. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  9156. <p><a id="opIdget_swimlane_cards"></a></p>
  9157. <blockquote>
  9158. <p>Code samples</p>
  9159. </blockquote>
  9160. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9161. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  9162. -H <span class="hljs-string">'Accept: application/json'</span> \
  9163. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9164. </code></pre>
  9165. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}/cards</span> HTTP/1.1
  9166. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9167. <span class="undefined"></span></span></code></pre>
  9168. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9169. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9170. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9171. };
  9172. $.ajax({
  9173. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  9174. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9175. <span class="hljs-attr">headers</span>: headers,
  9176. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9177. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9178. }
  9179. })
  9180. </code></pre>
  9181. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9182. <span class="hljs-keyword">const</span> headers = {
  9183. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9184. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9185. };
  9186. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  9187. {
  9188. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9189. <span class="hljs-attr">headers</span>: headers
  9190. })
  9191. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9192. <span class="hljs-keyword">return</span> res.json();
  9193. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9194. <span class="hljs-built_in">console</span>.log(body);
  9195. });
  9196. </code></pre>
  9197. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9198. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9199. headers = {
  9200. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9201. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9202. }
  9203. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  9204. <span class="hljs-symbol">params:</span> {
  9205. }, <span class="hljs-symbol">headers:</span> headers
  9206. p JSON.parse(result)
  9207. </code></pre>
  9208. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9209. headers = {
  9210. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9211. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9212. }
  9213. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>, params={
  9214. }, headers = headers)
  9215. <span class="hljs-keyword">print</span> r.json()
  9216. </code></pre>
  9217. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}/cards"</span>);
  9218. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9219. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9220. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9221. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9222. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9223. String inputLine;
  9224. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9225. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9226. response.append(inputLine);
  9227. }
  9228. in.close();
  9229. System.out.println(response.toString());
  9230. </code></pre>
  9231. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9232. <span class="hljs-keyword">import</span> (
  9233. <span class="hljs-string">"bytes"</span>
  9234. <span class="hljs-string">"net/http"</span>
  9235. )
  9236. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9237. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9238. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9239. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9240. }
  9241. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9242. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}/cards"</span>, data)
  9243. req.Header = headers
  9244. client := &amp;http.Client{}
  9245. resp, err := client.Do(req)
  9246. <span class="hljs-comment">// ...</span>
  9247. }
  9248. </code></pre>
  9249. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  9250. <p><em>get all cards attached to a swimlane</em></p>
  9251. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  9252. <table>
  9253. <thead>
  9254. <tr>
  9255. <th>Name</th>
  9256. <th>In</th>
  9257. <th>Type</th>
  9258. <th>Required</th>
  9259. <th>Description</th>
  9260. </tr>
  9261. </thead>
  9262. <tbody>
  9263. <tr>
  9264. <td>board</td>
  9265. <td>path</td>
  9266. <td>string</td>
  9267. <td>true</td>
  9268. <td>the board ID</td>
  9269. </tr>
  9270. <tr>
  9271. <td>swimlane</td>
  9272. <td>path</td>
  9273. <td>string</td>
  9274. <td>true</td>
  9275. <td>the swimlane ID</td>
  9276. </tr>
  9277. </tbody>
  9278. </table>
  9279. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9280. <p><strong>board</strong>: the board ID</p>
  9281. <p><strong>swimlane</strong>: the swimlane ID</p>
  9282. <blockquote>
  9283. <p>Example responses</p>
  9284. </blockquote>
  9285. <blockquote>
  9286. <p>200 Response</p>
  9287. </blockquote>
  9288. <pre class="highlight tab tab-json"><code>[
  9289. {
  9290. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  9291. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9292. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  9293. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>
  9294. }
  9295. ]
  9296. </code></pre>
  9297. <h3 id="get_swimlane_cards-responses">Responses</h3>
  9298. <table>
  9299. <thead>
  9300. <tr>
  9301. <th>Status</th>
  9302. <th>Meaning</th>
  9303. <th>Description</th>
  9304. <th>Schema</th>
  9305. </tr>
  9306. </thead>
  9307. <tbody>
  9308. <tr>
  9309. <td>200</td>
  9310. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9311. <td>200 response</td>
  9312. <td>Inline</td>
  9313. </tr>
  9314. </tbody>
  9315. </table>
  9316. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  9317. <p>Status Code <strong>200</strong></p>
  9318. <table>
  9319. <thead>
  9320. <tr>
  9321. <th>Name</th>
  9322. <th>Type</th>
  9323. <th>Required</th>
  9324. <th>Restrictions</th>
  9325. <th>Description</th>
  9326. </tr>
  9327. </thead>
  9328. <tbody>
  9329. <tr>
  9330. <td>» _id</td>
  9331. <td>string</td>
  9332. <td>false</td>
  9333. <td>none</td>
  9334. <td>none</td>
  9335. </tr>
  9336. <tr>
  9337. <td>» title</td>
  9338. <td>string</td>
  9339. <td>false</td>
  9340. <td>none</td>
  9341. <td>none</td>
  9342. </tr>
  9343. <tr>
  9344. <td>» description</td>
  9345. <td>string</td>
  9346. <td>false</td>
  9347. <td>none</td>
  9348. <td>none</td>
  9349. </tr>
  9350. <tr>
  9351. <td>» listId</td>
  9352. <td>string</td>
  9353. <td>false</td>
  9354. <td>none</td>
  9355. <td>none</td>
  9356. </tr>
  9357. </tbody>
  9358. </table>
  9359. <aside class="warning">
  9360. To perform this operation, you must be authenticated by means of one of the following methods:
  9361. UserSecurity
  9362. </aside>
  9363. <h2 id="get_card_by_id">get_card_by_id</h2>
  9364. <p><a id="opIdget_card_by_id"></a></p>
  9365. <blockquote>
  9366. <p>Code samples</p>
  9367. </blockquote>
  9368. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9369. curl -X GET /api/cards/{card} \
  9370. -H <span class="hljs-string">'Accept: application/json'</span> \
  9371. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9372. </code></pre>
  9373. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/cards/{card}</span> HTTP/1.1
  9374. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9375. <span class="undefined"></span></span></code></pre>
  9376. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9377. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9378. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9379. };
  9380. $.ajax({
  9381. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/cards/{card}'</span>,
  9382. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9383. <span class="hljs-attr">headers</span>: headers,
  9384. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9385. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9386. }
  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">'node-fetch'</span>);
  9390. <span class="hljs-keyword">const</span> headers = {
  9391. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9392. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9393. };
  9394. fetch(<span class="hljs-string">'/api/cards/{card}'</span>,
  9395. {
  9396. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</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">'rest-client'</span>
  9406. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9407. headers = {
  9408. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9409. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9410. }
  9411. result = RestClient.get <span class="hljs-string">'/api/cards/{card}'</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">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9419. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9420. }
  9421. r = requests.get(<span class="hljs-string">'/api/cards/{card}'</span>, params={
  9422. }, headers = headers)
  9423. <span class="hljs-keyword">print</span> r.json()
  9424. </code></pre>
  9425. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/cards/{card}"</span>);
  9426. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9427. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9428. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9429. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9430. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9431. String inputLine;
  9432. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9433. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9434. response.append(inputLine);
  9435. }
  9436. in.close();
  9437. System.out.println(response.toString());
  9438. </code></pre>
  9439. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9440. <span class="hljs-keyword">import</span> (
  9441. <span class="hljs-string">"bytes"</span>
  9442. <span class="hljs-string">"net/http"</span>
  9443. )
  9444. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9445. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9446. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9447. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9448. }
  9449. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9450. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/cards/{card}"</span>, data)
  9451. req.Header = headers
  9452. client := &amp;http.Client{}
  9453. resp, err := client.Do(req)
  9454. <span class="hljs-comment">// ...</span>
  9455. }
  9456. </code></pre>
  9457. <p><code>GET /api/cards/{card}</code></p>
  9458. <p><em>Get a Card by Card ID</em></p>
  9459. <h3 id="get_card_by_id-parameters">Parameters</h3>
  9460. <table>
  9461. <thead>
  9462. <tr>
  9463. <th>Name</th>
  9464. <th>In</th>
  9465. <th>Type</th>
  9466. <th>Required</th>
  9467. <th>Description</th>
  9468. </tr>
  9469. </thead>
  9470. <tbody>
  9471. <tr>
  9472. <td>card</td>
  9473. <td>path</td>
  9474. <td>string</td>
  9475. <td>true</td>
  9476. <td>the card ID</td>
  9477. </tr>
  9478. </tbody>
  9479. </table>
  9480. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9481. <p><strong>card</strong>: the card ID</p>
  9482. <blockquote>
  9483. <p>Example responses</p>
  9484. </blockquote>
  9485. <blockquote>
  9486. <p>200 Response</p>
  9487. </blockquote>
  9488. <pre class="highlight tab tab-json"><code>{
  9489. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9490. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  9491. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  9492. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  9493. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  9494. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  9495. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  9496. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  9497. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  9498. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9499. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9500. <span class="hljs-attr">"customFields"</span>: [
  9501. {}
  9502. ],
  9503. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  9504. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  9505. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  9506. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  9507. <span class="hljs-attr">"labelIds"</span>: [
  9508. <span class="hljs-string">"string"</span>
  9509. ],
  9510. <span class="hljs-attr">"members"</span>: [
  9511. <span class="hljs-string">"string"</span>
  9512. ],
  9513. <span class="hljs-attr">"assignees"</span>: [
  9514. <span class="hljs-string">"string"</span>
  9515. ],
  9516. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  9517. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  9518. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  9519. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  9520. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  9521. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  9522. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  9523. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  9524. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  9525. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  9526. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  9527. <span class="hljs-attr">"vote"</span>: {
  9528. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  9529. <span class="hljs-attr">"positive"</span>: [
  9530. <span class="hljs-string">"string"</span>
  9531. ],
  9532. <span class="hljs-attr">"negative"</span>: [
  9533. <span class="hljs-string">"string"</span>
  9534. ],
  9535. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  9536. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  9537. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  9538. },
  9539. <span class="hljs-attr">"poker"</span>: {
  9540. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  9541. <span class="hljs-attr">"one"</span>: [
  9542. <span class="hljs-string">"string"</span>
  9543. ],
  9544. <span class="hljs-attr">"two"</span>: [
  9545. <span class="hljs-string">"string"</span>
  9546. ],
  9547. <span class="hljs-attr">"three"</span>: [
  9548. <span class="hljs-string">"string"</span>
  9549. ],
  9550. <span class="hljs-attr">"five"</span>: [
  9551. <span class="hljs-string">"string"</span>
  9552. ],
  9553. <span class="hljs-attr">"eight"</span>: [
  9554. <span class="hljs-string">"string"</span>
  9555. ],
  9556. <span class="hljs-attr">"thirteen"</span>: [
  9557. <span class="hljs-string">"string"</span>
  9558. ],
  9559. <span class="hljs-attr">"twenty"</span>: [
  9560. <span class="hljs-string">"string"</span>
  9561. ],
  9562. <span class="hljs-attr">"forty"</span>: [
  9563. <span class="hljs-string">"string"</span>
  9564. ],
  9565. <span class="hljs-attr">"oneHundred"</span>: [
  9566. <span class="hljs-string">"string"</span>
  9567. ],
  9568. <span class="hljs-attr">"unsure"</span>: [
  9569. <span class="hljs-string">"string"</span>
  9570. ],
  9571. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  9572. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  9573. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  9574. },
  9575. <span class="hljs-attr">"targetId_gantt"</span>: [
  9576. <span class="hljs-string">"string"</span>
  9577. ],
  9578. <span class="hljs-attr">"linkType_gantt"</span>: [
  9579. <span class="hljs-number">0</span>
  9580. ],
  9581. <span class="hljs-attr">"linkId_gantt"</span>: [
  9582. <span class="hljs-string">"string"</span>
  9583. ],
  9584. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  9585. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  9586. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>,
  9587. <span class="hljs-attr">"showListOnMinicard"</span>: <span class="hljs-literal">true</span>
  9588. }
  9589. </code></pre>
  9590. <h3 id="get_card_by_id-responses">Responses</h3>
  9591. <table>
  9592. <thead>
  9593. <tr>
  9594. <th>Status</th>
  9595. <th>Meaning</th>
  9596. <th>Description</th>
  9597. <th>Schema</th>
  9598. </tr>
  9599. </thead>
  9600. <tbody>
  9601. <tr>
  9602. <td>200</td>
  9603. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9604. <td>200 response</td>
  9605. <td><a href="#schemacards">Cards</a></td>
  9606. </tr>
  9607. </tbody>
  9608. </table>
  9609. <aside class="warning">
  9610. To perform this operation, you must be authenticated by means of one of the following methods:
  9611. UserSecurity
  9612. </aside>
  9613. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  9614. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  9615. <p><a id="opIdget_all_custom_fields"></a></p>
  9616. <blockquote>
  9617. <p>Code samples</p>
  9618. </blockquote>
  9619. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9620. curl -X GET /api/boards/{board}/custom-fields \
  9621. -H <span class="hljs-string">'Accept: application/json'</span> \
  9622. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9623. </code></pre>
  9624. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> HTTP/1.1
  9625. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9626. <span class="undefined"></span></span></code></pre>
  9627. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9628. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9629. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9630. };
  9631. $.ajax({
  9632. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9633. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9634. <span class="hljs-attr">headers</span>: headers,
  9635. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9636. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9637. }
  9638. })
  9639. </code></pre>
  9640. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9641. <span class="hljs-keyword">const</span> headers = {
  9642. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9643. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9644. };
  9645. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9646. {
  9647. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9648. <span class="hljs-attr">headers</span>: headers
  9649. })
  9650. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9651. <span class="hljs-keyword">return</span> res.json();
  9652. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9653. <span class="hljs-built_in">console</span>.log(body);
  9654. });
  9655. </code></pre>
  9656. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9657. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9658. headers = {
  9659. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9660. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9661. }
  9662. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9663. <span class="hljs-symbol">params:</span> {
  9664. }, <span class="hljs-symbol">headers:</span> headers
  9665. p JSON.parse(result)
  9666. </code></pre>
  9667. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9668. headers = {
  9669. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9670. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9671. }
  9672. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  9673. }, headers = headers)
  9674. <span class="hljs-keyword">print</span> r.json()
  9675. </code></pre>
  9676. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields"</span>);
  9677. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9678. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9679. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9680. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9681. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9682. String inputLine;
  9683. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9684. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9685. response.append(inputLine);
  9686. }
  9687. in.close();
  9688. System.out.println(response.toString());
  9689. </code></pre>
  9690. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9691. <span class="hljs-keyword">import</span> (
  9692. <span class="hljs-string">"bytes"</span>
  9693. <span class="hljs-string">"net/http"</span>
  9694. )
  9695. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9696. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9697. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9698. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9699. }
  9700. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9701. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  9702. req.Header = headers
  9703. client := &amp;http.Client{}
  9704. resp, err := client.Do(req)
  9705. <span class="hljs-comment">// ...</span>
  9706. }
  9707. </code></pre>
  9708. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9709. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9710. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9711. <table>
  9712. <thead>
  9713. <tr>
  9714. <th>Name</th>
  9715. <th>In</th>
  9716. <th>Type</th>
  9717. <th>Required</th>
  9718. <th>Description</th>
  9719. </tr>
  9720. </thead>
  9721. <tbody>
  9722. <tr>
  9723. <td>board</td>
  9724. <td>path</td>
  9725. <td>string</td>
  9726. <td>true</td>
  9727. <td>the board value</td>
  9728. </tr>
  9729. </tbody>
  9730. </table>
  9731. <blockquote>
  9732. <p>Example responses</p>
  9733. </blockquote>
  9734. <blockquote>
  9735. <p>200 Response</p>
  9736. </blockquote>
  9737. <pre class="highlight tab tab-json"><code>[
  9738. {
  9739. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  9740. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  9741. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  9742. }
  9743. ]
  9744. </code></pre>
  9745. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9746. <table>
  9747. <thead>
  9748. <tr>
  9749. <th>Status</th>
  9750. <th>Meaning</th>
  9751. <th>Description</th>
  9752. <th>Schema</th>
  9753. </tr>
  9754. </thead>
  9755. <tbody>
  9756. <tr>
  9757. <td>200</td>
  9758. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9759. <td>200 response</td>
  9760. <td>Inline</td>
  9761. </tr>
  9762. </tbody>
  9763. </table>
  9764. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9765. <p>Status Code <strong>200</strong></p>
  9766. <table>
  9767. <thead>
  9768. <tr>
  9769. <th>Name</th>
  9770. <th>Type</th>
  9771. <th>Required</th>
  9772. <th>Restrictions</th>
  9773. <th>Description</th>
  9774. </tr>
  9775. </thead>
  9776. <tbody>
  9777. <tr>
  9778. <td>» _id</td>
  9779. <td>string</td>
  9780. <td>false</td>
  9781. <td>none</td>
  9782. <td>none</td>
  9783. </tr>
  9784. <tr>
  9785. <td>» name</td>
  9786. <td>string</td>
  9787. <td>false</td>
  9788. <td>none</td>
  9789. <td>none</td>
  9790. </tr>
  9791. <tr>
  9792. <td>» type</td>
  9793. <td>string</td>
  9794. <td>false</td>
  9795. <td>none</td>
  9796. <td>none</td>
  9797. </tr>
  9798. </tbody>
  9799. </table>
  9800. <aside class="warning">
  9801. To perform this operation, you must be authenticated by means of one of the following methods:
  9802. UserSecurity
  9803. </aside>
  9804. <h2 id="new_custom_field">new_custom_field</h2>
  9805. <p><a id="opIdnew_custom_field"></a></p>
  9806. <blockquote>
  9807. <p>Code samples</p>
  9808. </blockquote>
  9809. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9810. curl -X POST /api/boards/{board}/custom-fields \
  9811. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9812. -H <span class="hljs-string">'Accept: application/json'</span> \
  9813. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9814. </code></pre>
  9815. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> HTTP/1.1
  9816. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9817. Accept: application/json
  9818. </span></code></pre>
  9819. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9820. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9821. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9822. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9823. };
  9824. $.ajax({
  9825. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9826. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  9827. <span class="hljs-attr">headers</span>: headers,
  9828. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9829. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9830. }
  9831. })
  9832. </code></pre>
  9833. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  9834. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9835. "name": "string",
  9836. "type": "string",
  9837. "settings": "string",
  9838. "showOnCard": true,
  9839. "automaticallyOnCard": true,
  9840. "showLabelOnMiniCard": true,
  9841. "showSumAtTopOfList": true,
  9842. "authorId": "string"
  9843. }'</span>;
  9844. <span class="hljs-keyword">const</span> headers = {
  9845. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9846. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9847. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9848. };
  9849. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9850. {
  9851. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  9852. <span class="hljs-attr">body</span>: inputBody,
  9853. <span class="hljs-attr">headers</span>: headers
  9854. })
  9855. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9856. <span class="hljs-keyword">return</span> res.json();
  9857. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9858. <span class="hljs-built_in">console</span>.log(body);
  9859. });
  9860. </code></pre>
  9861. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9862. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9863. headers = {
  9864. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9865. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9866. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9867. }
  9868. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9869. <span class="hljs-symbol">params:</span> {
  9870. }, <span class="hljs-symbol">headers:</span> headers
  9871. p JSON.parse(result)
  9872. </code></pre>
  9873. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9874. headers = {
  9875. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9876. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9877. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9878. }
  9879. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  9880. }, headers = headers)
  9881. <span class="hljs-keyword">print</span> r.json()
  9882. </code></pre>
  9883. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields"</span>);
  9884. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9885. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  9886. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9887. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9888. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9889. String inputLine;
  9890. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9891. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9892. response.append(inputLine);
  9893. }
  9894. in.close();
  9895. System.out.println(response.toString());
  9896. </code></pre>
  9897. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9898. <span class="hljs-keyword">import</span> (
  9899. <span class="hljs-string">"bytes"</span>
  9900. <span class="hljs-string">"net/http"</span>
  9901. )
  9902. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9903. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9904. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9905. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9906. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9907. }
  9908. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9909. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  9910. req.Header = headers
  9911. client := &amp;http.Client{}
  9912. resp, err := client.Do(req)
  9913. <span class="hljs-comment">// ...</span>
  9914. }
  9915. </code></pre>
  9916. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9917. <p><em>Create a Custom Field</em></p>
  9918. <blockquote>
  9919. <p>Body parameter</p>
  9920. </blockquote>
  9921. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9922. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9923. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9924. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9925. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9926. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9927. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9928. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9929. </code></pre>
  9930. <h3 id="new_custom_field-parameters">Parameters</h3>
  9931. <table>
  9932. <thead>
  9933. <tr>
  9934. <th>Name</th>
  9935. <th>In</th>
  9936. <th>Type</th>
  9937. <th>Required</th>
  9938. <th>Description</th>
  9939. </tr>
  9940. </thead>
  9941. <tbody>
  9942. <tr>
  9943. <td>board</td>
  9944. <td>path</td>
  9945. <td>string</td>
  9946. <td>true</td>
  9947. <td>the board value</td>
  9948. </tr>
  9949. <tr>
  9950. <td>body</td>
  9951. <td>body</td>
  9952. <td>object</td>
  9953. <td>false</td>
  9954. <td>none</td>
  9955. </tr>
  9956. <tr>
  9957. <td>» name</td>
  9958. <td>body</td>
  9959. <td>string</td>
  9960. <td>true</td>
  9961. <td>the name of the custom field</td>
  9962. </tr>
  9963. <tr>
  9964. <td>» type</td>
  9965. <td>body</td>
  9966. <td>string</td>
  9967. <td>true</td>
  9968. <td>the type of the custom field</td>
  9969. </tr>
  9970. <tr>
  9971. <td>» settings</td>
  9972. <td>body</td>
  9973. <td>string</td>
  9974. <td>true</td>
  9975. <td>the settings object of the custom field</td>
  9976. </tr>
  9977. <tr>
  9978. <td>» showOnCard</td>
  9979. <td>body</td>
  9980. <td>boolean</td>
  9981. <td>true</td>
  9982. <td>should we show the custom field on cards?</td>
  9983. </tr>
  9984. <tr>
  9985. <td>» automaticallyOnCard</td>
  9986. <td>body</td>
  9987. <td>boolean</td>
  9988. <td>true</td>
  9989. <td>should the custom fields automatically be added on cards?</td>
  9990. </tr>
  9991. <tr>
  9992. <td>» showLabelOnMiniCard</td>
  9993. <td>body</td>
  9994. <td>boolean</td>
  9995. <td>true</td>
  9996. <td>should the label of the custom field be shown on minicards?</td>
  9997. </tr>
  9998. <tr>
  9999. <td>» showSumAtTopOfList</td>
  10000. <td>body</td>
  10001. <td>boolean</td>
  10002. <td>true</td>
  10003. <td>should the sum of the custom fields be shown at top of list?</td>
  10004. </tr>
  10005. <tr>
  10006. <td>» authorId</td>
  10007. <td>body</td>
  10008. <td>string</td>
  10009. <td>true</td>
  10010. <td>the authorId value</td>
  10011. </tr>
  10012. </tbody>
  10013. </table>
  10014. <blockquote>
  10015. <p>Example responses</p>
  10016. </blockquote>
  10017. <blockquote>
  10018. <p>200 Response</p>
  10019. </blockquote>
  10020. <pre class="highlight tab tab-json"><code>{
  10021. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10022. }
  10023. </code></pre>
  10024. <h3 id="new_custom_field-responses">Responses</h3>
  10025. <table>
  10026. <thead>
  10027. <tr>
  10028. <th>Status</th>
  10029. <th>Meaning</th>
  10030. <th>Description</th>
  10031. <th>Schema</th>
  10032. </tr>
  10033. </thead>
  10034. <tbody>
  10035. <tr>
  10036. <td>200</td>
  10037. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10038. <td>200 response</td>
  10039. <td>Inline</td>
  10040. </tr>
  10041. </tbody>
  10042. </table>
  10043. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  10044. <p>Status Code <strong>200</strong></p>
  10045. <table>
  10046. <thead>
  10047. <tr>
  10048. <th>Name</th>
  10049. <th>Type</th>
  10050. <th>Required</th>
  10051. <th>Restrictions</th>
  10052. <th>Description</th>
  10053. </tr>
  10054. </thead>
  10055. <tbody>
  10056. <tr>
  10057. <td>» _id</td>
  10058. <td>string</td>
  10059. <td>false</td>
  10060. <td>none</td>
  10061. <td>none</td>
  10062. </tr>
  10063. </tbody>
  10064. </table>
  10065. <aside class="warning">
  10066. To perform this operation, you must be authenticated by means of one of the following methods:
  10067. UserSecurity
  10068. </aside>
  10069. <h2 id="get_custom_field">get_custom_field</h2>
  10070. <p><a id="opIdget_custom_field"></a></p>
  10071. <blockquote>
  10072. <p>Code samples</p>
  10073. </blockquote>
  10074. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10075. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  10076. -H <span class="hljs-string">'Accept: application/json'</span> \
  10077. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10078. </code></pre>
  10079. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> HTTP/1.1
  10080. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10081. <span class="undefined"></span></span></code></pre>
  10082. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10083. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10084. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10085. };
  10086. $.ajax({
  10087. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10088. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10089. <span class="hljs-attr">headers</span>: headers,
  10090. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10091. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10092. }
  10093. })
  10094. </code></pre>
  10095. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10096. <span class="hljs-keyword">const</span> headers = {
  10097. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10098. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10099. };
  10100. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10101. {
  10102. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10103. <span class="hljs-attr">headers</span>: headers
  10104. })
  10105. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10106. <span class="hljs-keyword">return</span> res.json();
  10107. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10108. <span class="hljs-built_in">console</span>.log(body);
  10109. });
  10110. </code></pre>
  10111. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10112. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10113. headers = {
  10114. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10115. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10116. }
  10117. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10118. <span class="hljs-symbol">params:</span> {
  10119. }, <span class="hljs-symbol">headers:</span> headers
  10120. p JSON.parse(result)
  10121. </code></pre>
  10122. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10123. headers = {
  10124. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10125. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10126. }
  10127. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  10128. }, headers = headers)
  10129. <span class="hljs-keyword">print</span> r.json()
  10130. </code></pre>
  10131. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>);
  10132. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10133. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10134. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10135. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10136. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10137. String inputLine;
  10138. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10139. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10140. response.append(inputLine);
  10141. }
  10142. in.close();
  10143. System.out.println(response.toString());
  10144. </code></pre>
  10145. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10146. <span class="hljs-keyword">import</span> (
  10147. <span class="hljs-string">"bytes"</span>
  10148. <span class="hljs-string">"net/http"</span>
  10149. )
  10150. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10151. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10152. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10153. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10154. }
  10155. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10156. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  10157. req.Header = headers
  10158. client := &amp;http.Client{}
  10159. resp, err := client.Do(req)
  10160. <span class="hljs-comment">// ...</span>
  10161. }
  10162. </code></pre>
  10163. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  10164. <p><em>Get a Custom Fields attached to a board</em></p>
  10165. <h3 id="get_custom_field-parameters">Parameters</h3>
  10166. <table>
  10167. <thead>
  10168. <tr>
  10169. <th>Name</th>
  10170. <th>In</th>
  10171. <th>Type</th>
  10172. <th>Required</th>
  10173. <th>Description</th>
  10174. </tr>
  10175. </thead>
  10176. <tbody>
  10177. <tr>
  10178. <td>board</td>
  10179. <td>path</td>
  10180. <td>string</td>
  10181. <td>true</td>
  10182. <td>the board value</td>
  10183. </tr>
  10184. <tr>
  10185. <td>customField</td>
  10186. <td>path</td>
  10187. <td>string</td>
  10188. <td>true</td>
  10189. <td>the ID of the custom field</td>
  10190. </tr>
  10191. </tbody>
  10192. </table>
  10193. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10194. <p><strong>customField</strong>: the ID of the custom field</p>
  10195. <blockquote>
  10196. <p>Example responses</p>
  10197. </blockquote>
  10198. <blockquote>
  10199. <p>200 Response</p>
  10200. </blockquote>
  10201. <pre class="highlight tab tab-json"><code>[
  10202. {
  10203. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  10204. <span class="hljs-attr">"boardIds"</span>: <span class="hljs-string">"string"</span>
  10205. }
  10206. ]
  10207. </code></pre>
  10208. <h3 id="get_custom_field-responses">Responses</h3>
  10209. <table>
  10210. <thead>
  10211. <tr>
  10212. <th>Status</th>
  10213. <th>Meaning</th>
  10214. <th>Description</th>
  10215. <th>Schema</th>
  10216. </tr>
  10217. </thead>
  10218. <tbody>
  10219. <tr>
  10220. <td>200</td>
  10221. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10222. <td>200 response</td>
  10223. <td>Inline</td>
  10224. </tr>
  10225. </tbody>
  10226. </table>
  10227. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  10228. <p>Status Code <strong>200</strong></p>
  10229. <table>
  10230. <thead>
  10231. <tr>
  10232. <th>Name</th>
  10233. <th>Type</th>
  10234. <th>Required</th>
  10235. <th>Restrictions</th>
  10236. <th>Description</th>
  10237. </tr>
  10238. </thead>
  10239. <tbody>
  10240. <tr>
  10241. <td>» _id</td>
  10242. <td>string</td>
  10243. <td>false</td>
  10244. <td>none</td>
  10245. <td>none</td>
  10246. </tr>
  10247. <tr>
  10248. <td>» boardIds</td>
  10249. <td>string</td>
  10250. <td>false</td>
  10251. <td>none</td>
  10252. <td>none</td>
  10253. </tr>
  10254. </tbody>
  10255. </table>
  10256. <aside class="warning">
  10257. To perform this operation, you must be authenticated by means of one of the following methods:
  10258. UserSecurity
  10259. </aside>
  10260. <h2 id="edit_custom_field">edit_custom_field</h2>
  10261. <p><a id="opIdedit_custom_field"></a></p>
  10262. <blockquote>
  10263. <p>Code samples</p>
  10264. </blockquote>
  10265. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10266. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  10267. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10268. -H <span class="hljs-string">'Accept: application/json'</span> \
  10269. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10270. </code></pre>
  10271. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> HTTP/1.1
  10272. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10273. Accept: application/json
  10274. </span></code></pre>
  10275. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10276. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10277. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10278. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10279. };
  10280. $.ajax({
  10281. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10282. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  10283. <span class="hljs-attr">headers</span>: headers,
  10284. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10285. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10286. }
  10287. })
  10288. </code></pre>
  10289. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10290. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10291. "name": "string",
  10292. "type": "string",
  10293. "settings": "string",
  10294. "showOnCard": true,
  10295. "automaticallyOnCard": true,
  10296. "alwaysOnCard": "string",
  10297. "showLabelOnMiniCard": true,
  10298. "showSumAtTopOfList": true
  10299. }'</span>;
  10300. <span class="hljs-keyword">const</span> headers = {
  10301. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10302. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10303. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10304. };
  10305. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10306. {
  10307. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  10308. <span class="hljs-attr">body</span>: inputBody,
  10309. <span class="hljs-attr">headers</span>: headers
  10310. })
  10311. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10312. <span class="hljs-keyword">return</span> res.json();
  10313. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10314. <span class="hljs-built_in">console</span>.log(body);
  10315. });
  10316. </code></pre>
  10317. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10318. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10319. headers = {
  10320. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10321. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10322. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10323. }
  10324. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10325. <span class="hljs-symbol">params:</span> {
  10326. }, <span class="hljs-symbol">headers:</span> headers
  10327. p JSON.parse(result)
  10328. </code></pre>
  10329. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10330. headers = {
  10331. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10332. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10333. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10334. }
  10335. r = requests.put(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  10336. }, headers = headers)
  10337. <span class="hljs-keyword">print</span> r.json()
  10338. </code></pre>
  10339. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>);
  10340. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10341. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  10342. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10343. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10344. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10345. String inputLine;
  10346. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10347. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10348. response.append(inputLine);
  10349. }
  10350. in.close();
  10351. System.out.println(response.toString());
  10352. </code></pre>
  10353. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10354. <span class="hljs-keyword">import</span> (
  10355. <span class="hljs-string">"bytes"</span>
  10356. <span class="hljs-string">"net/http"</span>
  10357. )
  10358. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10359. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10360. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10361. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10362. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10363. }
  10364. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10365. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  10366. req.Header = headers
  10367. client := &amp;http.Client{}
  10368. resp, err := client.Do(req)
  10369. <span class="hljs-comment">// ...</span>
  10370. }
  10371. </code></pre>
  10372. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  10373. <p><em>Update a Custom Field</em></p>
  10374. <blockquote>
  10375. <p>Body parameter</p>
  10376. </blockquote>
  10377. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10378. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10379. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10380. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10381. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10382. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  10383. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10384. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10385. </code></pre>
  10386. <h3 id="edit_custom_field-parameters">Parameters</h3>
  10387. <table>
  10388. <thead>
  10389. <tr>
  10390. <th>Name</th>
  10391. <th>In</th>
  10392. <th>Type</th>
  10393. <th>Required</th>
  10394. <th>Description</th>
  10395. </tr>
  10396. </thead>
  10397. <tbody>
  10398. <tr>
  10399. <td>board</td>
  10400. <td>path</td>
  10401. <td>string</td>
  10402. <td>true</td>
  10403. <td>the board value</td>
  10404. </tr>
  10405. <tr>
  10406. <td>customField</td>
  10407. <td>path</td>
  10408. <td>string</td>
  10409. <td>true</td>
  10410. <td>the customField value</td>
  10411. </tr>
  10412. <tr>
  10413. <td>body</td>
  10414. <td>body</td>
  10415. <td>object</td>
  10416. <td>false</td>
  10417. <td>none</td>
  10418. </tr>
  10419. <tr>
  10420. <td>» name</td>
  10421. <td>body</td>
  10422. <td>string</td>
  10423. <td>true</td>
  10424. <td>the name of the custom field</td>
  10425. </tr>
  10426. <tr>
  10427. <td>» type</td>
  10428. <td>body</td>
  10429. <td>string</td>
  10430. <td>true</td>
  10431. <td>the type of the custom field</td>
  10432. </tr>
  10433. <tr>
  10434. <td>» settings</td>
  10435. <td>body</td>
  10436. <td>string</td>
  10437. <td>true</td>
  10438. <td>the settings object of the custom field</td>
  10439. </tr>
  10440. <tr>
  10441. <td>» showOnCard</td>
  10442. <td>body</td>
  10443. <td>boolean</td>
  10444. <td>true</td>
  10445. <td>should we show the custom field on cards</td>
  10446. </tr>
  10447. <tr>
  10448. <td>» automaticallyOnCard</td>
  10449. <td>body</td>
  10450. <td>boolean</td>
  10451. <td>true</td>
  10452. <td>should the custom fields automatically be added on cards</td>
  10453. </tr>
  10454. <tr>
  10455. <td>» alwaysOnCard</td>
  10456. <td>body</td>
  10457. <td>string</td>
  10458. <td>true</td>
  10459. <td>the alwaysOnCard value</td>
  10460. </tr>
  10461. <tr>
  10462. <td>» showLabelOnMiniCard</td>
  10463. <td>body</td>
  10464. <td>boolean</td>
  10465. <td>true</td>
  10466. <td>should the label of the custom field be shown on minicards</td>
  10467. </tr>
  10468. <tr>
  10469. <td>» showSumAtTopOfList</td>
  10470. <td>body</td>
  10471. <td>boolean</td>
  10472. <td>true</td>
  10473. <td>should the sum of the custom fields be shown at top of list</td>
  10474. </tr>
  10475. </tbody>
  10476. </table>
  10477. <blockquote>
  10478. <p>Example responses</p>
  10479. </blockquote>
  10480. <blockquote>
  10481. <p>200 Response</p>
  10482. </blockquote>
  10483. <pre class="highlight tab tab-json"><code>{
  10484. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10485. }
  10486. </code></pre>
  10487. <h3 id="edit_custom_field-responses">Responses</h3>
  10488. <table>
  10489. <thead>
  10490. <tr>
  10491. <th>Status</th>
  10492. <th>Meaning</th>
  10493. <th>Description</th>
  10494. <th>Schema</th>
  10495. </tr>
  10496. </thead>
  10497. <tbody>
  10498. <tr>
  10499. <td>200</td>
  10500. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10501. <td>200 response</td>
  10502. <td>Inline</td>
  10503. </tr>
  10504. </tbody>
  10505. </table>
  10506. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  10507. <p>Status Code <strong>200</strong></p>
  10508. <table>
  10509. <thead>
  10510. <tr>
  10511. <th>Name</th>
  10512. <th>Type</th>
  10513. <th>Required</th>
  10514. <th>Restrictions</th>
  10515. <th>Description</th>
  10516. </tr>
  10517. </thead>
  10518. <tbody>
  10519. <tr>
  10520. <td>» _id</td>
  10521. <td>string</td>
  10522. <td>false</td>
  10523. <td>none</td>
  10524. <td>none</td>
  10525. </tr>
  10526. </tbody>
  10527. </table>
  10528. <aside class="warning">
  10529. To perform this operation, you must be authenticated by means of one of the following methods:
  10530. UserSecurity
  10531. </aside>
  10532. <h2 id="delete_custom_field">delete_custom_field</h2>
  10533. <p><a id="opIddelete_custom_field"></a></p>
  10534. <blockquote>
  10535. <p>Code samples</p>
  10536. </blockquote>
  10537. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10538. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  10539. -H <span class="hljs-string">'Accept: application/json'</span> \
  10540. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10541. </code></pre>
  10542. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> HTTP/1.1
  10543. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10544. <span class="undefined"></span></span></code></pre>
  10545. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10546. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10547. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10548. };
  10549. $.ajax({
  10550. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10551. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  10552. <span class="hljs-attr">headers</span>: headers,
  10553. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10554. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10555. }
  10556. })
  10557. </code></pre>
  10558. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10559. <span class="hljs-keyword">const</span> headers = {
  10560. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10561. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10562. };
  10563. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10564. {
  10565. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  10566. <span class="hljs-attr">headers</span>: headers
  10567. })
  10568. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10569. <span class="hljs-keyword">return</span> res.json();
  10570. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10571. <span class="hljs-built_in">console</span>.log(body);
  10572. });
  10573. </code></pre>
  10574. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10575. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10576. headers = {
  10577. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10578. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10579. }
  10580. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10581. <span class="hljs-symbol">params:</span> {
  10582. }, <span class="hljs-symbol">headers:</span> headers
  10583. p JSON.parse(result)
  10584. </code></pre>
  10585. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10586. headers = {
  10587. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10588. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10589. }
  10590. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  10591. }, headers = headers)
  10592. <span class="hljs-keyword">print</span> r.json()
  10593. </code></pre>
  10594. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>);
  10595. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10596. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  10597. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10598. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10599. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10600. String inputLine;
  10601. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10602. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10603. response.append(inputLine);
  10604. }
  10605. in.close();
  10606. System.out.println(response.toString());
  10607. </code></pre>
  10608. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10609. <span class="hljs-keyword">import</span> (
  10610. <span class="hljs-string">"bytes"</span>
  10611. <span class="hljs-string">"net/http"</span>
  10612. )
  10613. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10614. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10615. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10616. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10617. }
  10618. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10619. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  10620. req.Header = headers
  10621. client := &amp;http.Client{}
  10622. resp, err := client.Do(req)
  10623. <span class="hljs-comment">// ...</span>
  10624. }
  10625. </code></pre>
  10626. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10627. <p><em>Delete a Custom Fields attached to a board</em></p>
  10628. <p>The Custom Field can't be retrieved after this operation</p>
  10629. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10630. <table>
  10631. <thead>
  10632. <tr>
  10633. <th>Name</th>
  10634. <th>In</th>
  10635. <th>Type</th>
  10636. <th>Required</th>
  10637. <th>Description</th>
  10638. </tr>
  10639. </thead>
  10640. <tbody>
  10641. <tr>
  10642. <td>board</td>
  10643. <td>path</td>
  10644. <td>string</td>
  10645. <td>true</td>
  10646. <td>the board value</td>
  10647. </tr>
  10648. <tr>
  10649. <td>customField</td>
  10650. <td>path</td>
  10651. <td>string</td>
  10652. <td>true</td>
  10653. <td>the ID of the custom field</td>
  10654. </tr>
  10655. </tbody>
  10656. </table>
  10657. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10658. <p><strong>customField</strong>: the ID of the custom field</p>
  10659. <blockquote>
  10660. <p>Example responses</p>
  10661. </blockquote>
  10662. <blockquote>
  10663. <p>200 Response</p>
  10664. </blockquote>
  10665. <pre class="highlight tab tab-json"><code>{
  10666. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10667. }
  10668. </code></pre>
  10669. <h3 id="delete_custom_field-responses">Responses</h3>
  10670. <table>
  10671. <thead>
  10672. <tr>
  10673. <th>Status</th>
  10674. <th>Meaning</th>
  10675. <th>Description</th>
  10676. <th>Schema</th>
  10677. </tr>
  10678. </thead>
  10679. <tbody>
  10680. <tr>
  10681. <td>200</td>
  10682. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10683. <td>200 response</td>
  10684. <td>Inline</td>
  10685. </tr>
  10686. </tbody>
  10687. </table>
  10688. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  10689. <p>Status Code <strong>200</strong></p>
  10690. <table>
  10691. <thead>
  10692. <tr>
  10693. <th>Name</th>
  10694. <th>Type</th>
  10695. <th>Required</th>
  10696. <th>Restrictions</th>
  10697. <th>Description</th>
  10698. </tr>
  10699. </thead>
  10700. <tbody>
  10701. <tr>
  10702. <td>» _id</td>
  10703. <td>string</td>
  10704. <td>false</td>
  10705. <td>none</td>
  10706. <td>none</td>
  10707. </tr>
  10708. </tbody>
  10709. </table>
  10710. <aside class="warning">
  10711. To perform this operation, you must be authenticated by means of one of the following methods:
  10712. UserSecurity
  10713. </aside>
  10714. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10715. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10716. <blockquote>
  10717. <p>Code samples</p>
  10718. </blockquote>
  10719. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10720. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10721. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10722. -H <span class="hljs-string">'Accept: application/json'</span> \
  10723. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10724. </code></pre>
  10725. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items</span> HTTP/1.1
  10726. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10727. Accept: application/json
  10728. </span></code></pre>
  10729. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10730. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10731. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10732. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10733. };
  10734. $.ajax({
  10735. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  10736. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10737. <span class="hljs-attr">headers</span>: headers,
  10738. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10739. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10740. }
  10741. })
  10742. </code></pre>
  10743. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10744. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10745. "items": "string"
  10746. }'</span>;
  10747. <span class="hljs-keyword">const</span> headers = {
  10748. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10749. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10750. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10751. };
  10752. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  10753. {
  10754. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10755. <span class="hljs-attr">body</span>: inputBody,
  10756. <span class="hljs-attr">headers</span>: headers
  10757. })
  10758. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10759. <span class="hljs-keyword">return</span> res.json();
  10760. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10761. <span class="hljs-built_in">console</span>.log(body);
  10762. });
  10763. </code></pre>
  10764. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10765. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10766. headers = {
  10767. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10768. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10769. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10770. }
  10771. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  10772. <span class="hljs-symbol">params:</span> {
  10773. }, <span class="hljs-symbol">headers:</span> headers
  10774. p JSON.parse(result)
  10775. </code></pre>
  10776. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10777. headers = {
  10778. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10779. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10780. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10781. }
  10782. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>, params={
  10783. }, headers = headers)
  10784. <span class="hljs-keyword">print</span> r.json()
  10785. </code></pre>
  10786. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items"</span>);
  10787. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10788. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10789. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10790. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10791. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10792. String inputLine;
  10793. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10794. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10795. response.append(inputLine);
  10796. }
  10797. in.close();
  10798. System.out.println(response.toString());
  10799. </code></pre>
  10800. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10801. <span class="hljs-keyword">import</span> (
  10802. <span class="hljs-string">"bytes"</span>
  10803. <span class="hljs-string">"net/http"</span>
  10804. )
  10805. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10806. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10807. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10808. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10809. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10810. }
  10811. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10812. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items"</span>, data)
  10813. req.Header = headers
  10814. client := &amp;http.Client{}
  10815. resp, err := client.Do(req)
  10816. <span class="hljs-comment">// ...</span>
  10817. }
  10818. </code></pre>
  10819. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10820. <p><em>Update a Custom Field's dropdown items</em></p>
  10821. <blockquote>
  10822. <p>Body parameter</p>
  10823. </blockquote>
  10824. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10825. </code></pre>
  10826. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10827. <table>
  10828. <thead>
  10829. <tr>
  10830. <th>Name</th>
  10831. <th>In</th>
  10832. <th>Type</th>
  10833. <th>Required</th>
  10834. <th>Description</th>
  10835. </tr>
  10836. </thead>
  10837. <tbody>
  10838. <tr>
  10839. <td>board</td>
  10840. <td>path</td>
  10841. <td>string</td>
  10842. <td>true</td>
  10843. <td>the board value</td>
  10844. </tr>
  10845. <tr>
  10846. <td>customField</td>
  10847. <td>path</td>
  10848. <td>string</td>
  10849. <td>true</td>
  10850. <td>the customField value</td>
  10851. </tr>
  10852. <tr>
  10853. <td>body</td>
  10854. <td>body</td>
  10855. <td>object</td>
  10856. <td>false</td>
  10857. <td>none</td>
  10858. </tr>
  10859. <tr>
  10860. <td>» items</td>
  10861. <td>body</td>
  10862. <td>string</td>
  10863. <td>false</td>
  10864. <td>names of the custom field</td>
  10865. </tr>
  10866. </tbody>
  10867. </table>
  10868. <blockquote>
  10869. <p>Example responses</p>
  10870. </blockquote>
  10871. <blockquote>
  10872. <p>200 Response</p>
  10873. </blockquote>
  10874. <pre class="highlight tab tab-json"><code>{
  10875. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10876. }
  10877. </code></pre>
  10878. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10879. <table>
  10880. <thead>
  10881. <tr>
  10882. <th>Status</th>
  10883. <th>Meaning</th>
  10884. <th>Description</th>
  10885. <th>Schema</th>
  10886. </tr>
  10887. </thead>
  10888. <tbody>
  10889. <tr>
  10890. <td>200</td>
  10891. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10892. <td>200 response</td>
  10893. <td>Inline</td>
  10894. </tr>
  10895. </tbody>
  10896. </table>
  10897. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10898. <p>Status Code <strong>200</strong></p>
  10899. <table>
  10900. <thead>
  10901. <tr>
  10902. <th>Name</th>
  10903. <th>Type</th>
  10904. <th>Required</th>
  10905. <th>Restrictions</th>
  10906. <th>Description</th>
  10907. </tr>
  10908. </thead>
  10909. <tbody>
  10910. <tr>
  10911. <td>» _id</td>
  10912. <td>string</td>
  10913. <td>false</td>
  10914. <td>none</td>
  10915. <td>none</td>
  10916. </tr>
  10917. </tbody>
  10918. </table>
  10919. <aside class="warning">
  10920. To perform this operation, you must be authenticated by means of one of the following methods:
  10921. UserSecurity
  10922. </aside>
  10923. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10924. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10925. <blockquote>
  10926. <p>Code samples</p>
  10927. </blockquote>
  10928. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10929. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10930. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10931. -H <span class="hljs-string">'Accept: application/json'</span> \
  10932. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10933. </code></pre>
  10934. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</span> HTTP/1.1
  10935. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10936. Accept: application/json
  10937. </span></code></pre>
  10938. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10939. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10940. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10941. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10942. };
  10943. $.ajax({
  10944. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  10945. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  10946. <span class="hljs-attr">headers</span>: headers,
  10947. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10948. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10949. }
  10950. })
  10951. </code></pre>
  10952. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  10953. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10954. "name": "string"
  10955. }'</span>;
  10956. <span class="hljs-keyword">const</span> headers = {
  10957. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10958. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10959. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10960. };
  10961. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  10962. {
  10963. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  10964. <span class="hljs-attr">body</span>: inputBody,
  10965. <span class="hljs-attr">headers</span>: headers
  10966. })
  10967. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10968. <span class="hljs-keyword">return</span> res.json();
  10969. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10970. <span class="hljs-built_in">console</span>.log(body);
  10971. });
  10972. </code></pre>
  10973. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10974. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10975. headers = {
  10976. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10977. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10978. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10979. }
  10980. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  10981. <span class="hljs-symbol">params:</span> {
  10982. }, <span class="hljs-symbol">headers:</span> headers
  10983. p JSON.parse(result)
  10984. </code></pre>
  10985. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10986. headers = {
  10987. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10988. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10989. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10990. }
  10991. r = requests.put(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>, params={
  10992. }, headers = headers)
  10993. <span class="hljs-keyword">print</span> r.json()
  10994. </code></pre>
  10995. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}"</span>);
  10996. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10997. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  10998. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10999. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11000. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11001. String inputLine;
  11002. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11003. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11004. response.append(inputLine);
  11005. }
  11006. in.close();
  11007. System.out.println(response.toString());
  11008. </code></pre>
  11009. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11010. <span class="hljs-keyword">import</span> (
  11011. <span class="hljs-string">"bytes"</span>
  11012. <span class="hljs-string">"net/http"</span>
  11013. )
  11014. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11015. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11016. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11017. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11018. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11019. }
  11020. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11021. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}"</span>, data)
  11022. req.Header = headers
  11023. client := &amp;http.Client{}
  11024. resp, err := client.Do(req)
  11025. <span class="hljs-comment">// ...</span>
  11026. }
  11027. </code></pre>
  11028. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11029. <p><em>Update a Custom Field's dropdown item</em></p>
  11030. <blockquote>
  11031. <p>Body parameter</p>
  11032. </blockquote>
  11033. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  11034. </code></pre>
  11035. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  11036. <table>
  11037. <thead>
  11038. <tr>
  11039. <th>Name</th>
  11040. <th>In</th>
  11041. <th>Type</th>
  11042. <th>Required</th>
  11043. <th>Description</th>
  11044. </tr>
  11045. </thead>
  11046. <tbody>
  11047. <tr>
  11048. <td>board</td>
  11049. <td>path</td>
  11050. <td>string</td>
  11051. <td>true</td>
  11052. <td>the board value</td>
  11053. </tr>
  11054. <tr>
  11055. <td>customField</td>
  11056. <td>path</td>
  11057. <td>string</td>
  11058. <td>true</td>
  11059. <td>the customField value</td>
  11060. </tr>
  11061. <tr>
  11062. <td>dropdownItem</td>
  11063. <td>path</td>
  11064. <td>string</td>
  11065. <td>true</td>
  11066. <td>the dropdownItem value</td>
  11067. </tr>
  11068. <tr>
  11069. <td>body</td>
  11070. <td>body</td>
  11071. <td>object</td>
  11072. <td>false</td>
  11073. <td>none</td>
  11074. </tr>
  11075. <tr>
  11076. <td>» name</td>
  11077. <td>body</td>
  11078. <td>string</td>
  11079. <td>true</td>
  11080. <td>names of the custom field</td>
  11081. </tr>
  11082. </tbody>
  11083. </table>
  11084. <blockquote>
  11085. <p>Example responses</p>
  11086. </blockquote>
  11087. <blockquote>
  11088. <p>200 Response</p>
  11089. </blockquote>
  11090. <pre class="highlight tab tab-json"><code>{
  11091. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11092. }
  11093. </code></pre>
  11094. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  11095. <table>
  11096. <thead>
  11097. <tr>
  11098. <th>Status</th>
  11099. <th>Meaning</th>
  11100. <th>Description</th>
  11101. <th>Schema</th>
  11102. </tr>
  11103. </thead>
  11104. <tbody>
  11105. <tr>
  11106. <td>200</td>
  11107. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11108. <td>200 response</td>
  11109. <td>Inline</td>
  11110. </tr>
  11111. </tbody>
  11112. </table>
  11113. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11114. <p>Status Code <strong>200</strong></p>
  11115. <table>
  11116. <thead>
  11117. <tr>
  11118. <th>Name</th>
  11119. <th>Type</th>
  11120. <th>Required</th>
  11121. <th>Restrictions</th>
  11122. <th>Description</th>
  11123. </tr>
  11124. </thead>
  11125. <tbody>
  11126. <tr>
  11127. <td>» _id</td>
  11128. <td>string</td>
  11129. <td>false</td>
  11130. <td>none</td>
  11131. <td>none</td>
  11132. </tr>
  11133. </tbody>
  11134. </table>
  11135. <aside class="warning">
  11136. To perform this operation, you must be authenticated by means of one of the following methods:
  11137. UserSecurity
  11138. </aside>
  11139. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  11140. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  11141. <blockquote>
  11142. <p>Code samples</p>
  11143. </blockquote>
  11144. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11145. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11146. -H <span class="hljs-string">'Accept: application/json'</span> \
  11147. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11148. </code></pre>
  11149. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</span> HTTP/1.1
  11150. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11151. <span class="undefined"></span></span></code></pre>
  11152. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11153. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11154. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11155. };
  11156. $.ajax({
  11157. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  11158. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  11159. <span class="hljs-attr">headers</span>: headers,
  11160. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11161. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11162. }
  11163. })
  11164. </code></pre>
  11165. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11166. <span class="hljs-keyword">const</span> headers = {
  11167. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11168. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11169. };
  11170. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  11171. {
  11172. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  11173. <span class="hljs-attr">headers</span>: headers
  11174. })
  11175. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11176. <span class="hljs-keyword">return</span> res.json();
  11177. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11178. <span class="hljs-built_in">console</span>.log(body);
  11179. });
  11180. </code></pre>
  11181. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11182. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11183. headers = {
  11184. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11185. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11186. }
  11187. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  11188. <span class="hljs-symbol">params:</span> {
  11189. }, <span class="hljs-symbol">headers:</span> headers
  11190. p JSON.parse(result)
  11191. </code></pre>
  11192. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11193. headers = {
  11194. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11195. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11196. }
  11197. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>, params={
  11198. }, headers = headers)
  11199. <span class="hljs-keyword">print</span> r.json()
  11200. </code></pre>
  11201. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}"</span>);
  11202. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11203. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  11204. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11205. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11206. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11207. String inputLine;
  11208. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11209. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11210. response.append(inputLine);
  11211. }
  11212. in.close();
  11213. System.out.println(response.toString());
  11214. </code></pre>
  11215. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11216. <span class="hljs-keyword">import</span> (
  11217. <span class="hljs-string">"bytes"</span>
  11218. <span class="hljs-string">"net/http"</span>
  11219. )
  11220. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11221. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11222. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11223. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11224. }
  11225. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11226. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}"</span>, data)
  11227. req.Header = headers
  11228. client := &amp;http.Client{}
  11229. resp, err := client.Do(req)
  11230. <span class="hljs-comment">// ...</span>
  11231. }
  11232. </code></pre>
  11233. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11234. <p><em>Update a Custom Field's dropdown items</em></p>
  11235. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  11236. <table>
  11237. <thead>
  11238. <tr>
  11239. <th>Name</th>
  11240. <th>In</th>
  11241. <th>Type</th>
  11242. <th>Required</th>
  11243. <th>Description</th>
  11244. </tr>
  11245. </thead>
  11246. <tbody>
  11247. <tr>
  11248. <td>board</td>
  11249. <td>path</td>
  11250. <td>string</td>
  11251. <td>true</td>
  11252. <td>the board value</td>
  11253. </tr>
  11254. <tr>
  11255. <td>customField</td>
  11256. <td>path</td>
  11257. <td>string</td>
  11258. <td>true</td>
  11259. <td>the customField value</td>
  11260. </tr>
  11261. <tr>
  11262. <td>dropdownItem</td>
  11263. <td>path</td>
  11264. <td>string</td>
  11265. <td>true</td>
  11266. <td>the dropdownItem value</td>
  11267. </tr>
  11268. </tbody>
  11269. </table>
  11270. <blockquote>
  11271. <p>Example responses</p>
  11272. </blockquote>
  11273. <blockquote>
  11274. <p>200 Response</p>
  11275. </blockquote>
  11276. <pre class="highlight tab tab-json"><code>{
  11277. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11278. }
  11279. </code></pre>
  11280. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  11281. <table>
  11282. <thead>
  11283. <tr>
  11284. <th>Status</th>
  11285. <th>Meaning</th>
  11286. <th>Description</th>
  11287. <th>Schema</th>
  11288. </tr>
  11289. </thead>
  11290. <tbody>
  11291. <tr>
  11292. <td>200</td>
  11293. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11294. <td>200 response</td>
  11295. <td>Inline</td>
  11296. </tr>
  11297. </tbody>
  11298. </table>
  11299. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11300. <p>Status Code <strong>200</strong></p>
  11301. <table>
  11302. <thead>
  11303. <tr>
  11304. <th>Name</th>
  11305. <th>Type</th>
  11306. <th>Required</th>
  11307. <th>Restrictions</th>
  11308. <th>Description</th>
  11309. </tr>
  11310. </thead>
  11311. <tbody>
  11312. <tr>
  11313. <td>» _id</td>
  11314. <td>string</td>
  11315. <td>false</td>
  11316. <td>none</td>
  11317. <td>none</td>
  11318. </tr>
  11319. </tbody>
  11320. </table>
  11321. <aside class="warning">
  11322. To perform this operation, you must be authenticated by means of one of the following methods:
  11323. UserSecurity
  11324. </aside>
  11325. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  11326. <h2 id="get_all_integrations">get_all_integrations</h2>
  11327. <p><a id="opIdget_all_integrations"></a></p>
  11328. <blockquote>
  11329. <p>Code samples</p>
  11330. </blockquote>
  11331. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11332. curl -X GET /api/boards/{board}/integrations \
  11333. -H <span class="hljs-string">'Accept: application/json'</span> \
  11334. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11335. </code></pre>
  11336. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations</span> HTTP/1.1
  11337. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11338. <span class="undefined"></span></span></code></pre>
  11339. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11340. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11341. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11342. };
  11343. $.ajax({
  11344. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11345. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11346. <span class="hljs-attr">headers</span>: headers,
  11347. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11348. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11349. }
  11350. })
  11351. </code></pre>
  11352. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11353. <span class="hljs-keyword">const</span> headers = {
  11354. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11355. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11356. };
  11357. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11358. {
  11359. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11360. <span class="hljs-attr">headers</span>: headers
  11361. })
  11362. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11363. <span class="hljs-keyword">return</span> res.json();
  11364. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11365. <span class="hljs-built_in">console</span>.log(body);
  11366. });
  11367. </code></pre>
  11368. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11369. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11370. headers = {
  11371. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11372. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11373. }
  11374. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11375. <span class="hljs-symbol">params:</span> {
  11376. }, <span class="hljs-symbol">headers:</span> headers
  11377. p JSON.parse(result)
  11378. </code></pre>
  11379. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11380. headers = {
  11381. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11382. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11383. }
  11384. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  11385. }, headers = headers)
  11386. <span class="hljs-keyword">print</span> r.json()
  11387. </code></pre>
  11388. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations"</span>);
  11389. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11390. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11391. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11392. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11393. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11394. String inputLine;
  11395. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11396. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11397. response.append(inputLine);
  11398. }
  11399. in.close();
  11400. System.out.println(response.toString());
  11401. </code></pre>
  11402. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11403. <span class="hljs-keyword">import</span> (
  11404. <span class="hljs-string">"bytes"</span>
  11405. <span class="hljs-string">"net/http"</span>
  11406. )
  11407. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11408. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11409. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11410. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11411. }
  11412. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11413. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  11414. req.Header = headers
  11415. client := &amp;http.Client{}
  11416. resp, err := client.Do(req)
  11417. <span class="hljs-comment">// ...</span>
  11418. }
  11419. </code></pre>
  11420. <p><code>GET /api/boards/{board}/integrations</code></p>
  11421. <p><em>Get all integrations in board</em></p>
  11422. <h3 id="get_all_integrations-parameters">Parameters</h3>
  11423. <table>
  11424. <thead>
  11425. <tr>
  11426. <th>Name</th>
  11427. <th>In</th>
  11428. <th>Type</th>
  11429. <th>Required</th>
  11430. <th>Description</th>
  11431. </tr>
  11432. </thead>
  11433. <tbody>
  11434. <tr>
  11435. <td>board</td>
  11436. <td>path</td>
  11437. <td>string</td>
  11438. <td>true</td>
  11439. <td>the board ID</td>
  11440. </tr>
  11441. </tbody>
  11442. </table>
  11443. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11444. <p><strong>board</strong>: the board ID</p>
  11445. <blockquote>
  11446. <p>Example responses</p>
  11447. </blockquote>
  11448. <blockquote>
  11449. <p>200 Response</p>
  11450. </blockquote>
  11451. <pre class="highlight tab tab-json"><code>[
  11452. {
  11453. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  11454. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11455. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  11456. <span class="hljs-attr">"activities"</span>: [
  11457. <span class="hljs-string">"string"</span>
  11458. ],
  11459. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  11460. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  11461. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11462. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11463. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11464. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  11465. }
  11466. ]
  11467. </code></pre>
  11468. <h3 id="get_all_integrations-responses">Responses</h3>
  11469. <table>
  11470. <thead>
  11471. <tr>
  11472. <th>Status</th>
  11473. <th>Meaning</th>
  11474. <th>Description</th>
  11475. <th>Schema</th>
  11476. </tr>
  11477. </thead>
  11478. <tbody>
  11479. <tr>
  11480. <td>200</td>
  11481. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11482. <td>200 response</td>
  11483. <td>Inline</td>
  11484. </tr>
  11485. </tbody>
  11486. </table>
  11487. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11488. <p>Status Code <strong>200</strong></p>
  11489. <table>
  11490. <thead>
  11491. <tr>
  11492. <th>Name</th>
  11493. <th>Type</th>
  11494. <th>Required</th>
  11495. <th>Restrictions</th>
  11496. <th>Description</th>
  11497. </tr>
  11498. </thead>
  11499. <tbody>
  11500. <tr>
  11501. <td><em>anonymous</em></td>
  11502. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11503. <td>false</td>
  11504. <td>none</td>
  11505. <td>[Integration with third-party applications]</td>
  11506. </tr>
  11507. <tr>
  11508. <td>» enabled</td>
  11509. <td>boolean</td>
  11510. <td>true</td>
  11511. <td>none</td>
  11512. <td>is the integration enabled?</td>
  11513. </tr>
  11514. <tr>
  11515. <td>» title</td>
  11516. <td>string|null</td>
  11517. <td>false</td>
  11518. <td>none</td>
  11519. <td>name of the integration</td>
  11520. </tr>
  11521. <tr>
  11522. <td>» type</td>
  11523. <td>string</td>
  11524. <td>true</td>
  11525. <td>none</td>
  11526. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11527. </tr>
  11528. <tr>
  11529. <td>» activities</td>
  11530. <td>[string]</td>
  11531. <td>true</td>
  11532. <td>none</td>
  11533. <td>activities the integration gets triggered (list)</td>
  11534. </tr>
  11535. <tr>
  11536. <td>» url</td>
  11537. <td>string</td>
  11538. <td>true</td>
  11539. <td>none</td>
  11540. <td>none</td>
  11541. </tr>
  11542. <tr>
  11543. <td>» token</td>
  11544. <td>string|null</td>
  11545. <td>false</td>
  11546. <td>none</td>
  11547. <td>token of the integration</td>
  11548. </tr>
  11549. <tr>
  11550. <td>» boardId</td>
  11551. <td>string</td>
  11552. <td>true</td>
  11553. <td>none</td>
  11554. <td>Board ID of the integration</td>
  11555. </tr>
  11556. <tr>
  11557. <td>» createdAt</td>
  11558. <td>string</td>
  11559. <td>true</td>
  11560. <td>none</td>
  11561. <td>Creation date of the integration</td>
  11562. </tr>
  11563. <tr>
  11564. <td>» modifiedAt</td>
  11565. <td>string</td>
  11566. <td>true</td>
  11567. <td>none</td>
  11568. <td>none</td>
  11569. </tr>
  11570. <tr>
  11571. <td>» userId</td>
  11572. <td>string</td>
  11573. <td>true</td>
  11574. <td>none</td>
  11575. <td>user ID who created the interation</td>
  11576. </tr>
  11577. </tbody>
  11578. </table>
  11579. <aside class="warning">
  11580. To perform this operation, you must be authenticated by means of one of the following methods:
  11581. UserSecurity
  11582. </aside>
  11583. <h2 id="new_integration">new_integration</h2>
  11584. <p><a id="opIdnew_integration"></a></p>
  11585. <blockquote>
  11586. <p>Code samples</p>
  11587. </blockquote>
  11588. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11589. curl -X POST /api/boards/{board}/integrations \
  11590. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11591. -H <span class="hljs-string">'Accept: application/json'</span> \
  11592. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11593. </code></pre>
  11594. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations</span> HTTP/1.1
  11595. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11596. Accept: application/json
  11597. </span></code></pre>
  11598. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11599. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11600. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11601. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11602. };
  11603. $.ajax({
  11604. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11605. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  11606. <span class="hljs-attr">headers</span>: headers,
  11607. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11608. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11609. }
  11610. })
  11611. </code></pre>
  11612. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11613. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11614. "url": "string"
  11615. }'</span>;
  11616. <span class="hljs-keyword">const</span> headers = {
  11617. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11618. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11619. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11620. };
  11621. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11622. {
  11623. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  11624. <span class="hljs-attr">body</span>: inputBody,
  11625. <span class="hljs-attr">headers</span>: headers
  11626. })
  11627. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11628. <span class="hljs-keyword">return</span> res.json();
  11629. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11630. <span class="hljs-built_in">console</span>.log(body);
  11631. });
  11632. </code></pre>
  11633. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11634. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11635. headers = {
  11636. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  11637. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11638. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11639. }
  11640. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11641. <span class="hljs-symbol">params:</span> {
  11642. }, <span class="hljs-symbol">headers:</span> headers
  11643. p JSON.parse(result)
  11644. </code></pre>
  11645. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11646. headers = {
  11647. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  11648. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11649. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11650. }
  11651. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  11652. }, headers = headers)
  11653. <span class="hljs-keyword">print</span> r.json()
  11654. </code></pre>
  11655. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations"</span>);
  11656. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11657. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  11658. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11659. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11660. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11661. String inputLine;
  11662. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11663. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11664. response.append(inputLine);
  11665. }
  11666. in.close();
  11667. System.out.println(response.toString());
  11668. </code></pre>
  11669. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11670. <span class="hljs-keyword">import</span> (
  11671. <span class="hljs-string">"bytes"</span>
  11672. <span class="hljs-string">"net/http"</span>
  11673. )
  11674. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11675. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11676. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11677. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11678. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11679. }
  11680. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11681. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  11682. req.Header = headers
  11683. client := &amp;http.Client{}
  11684. resp, err := client.Do(req)
  11685. <span class="hljs-comment">// ...</span>
  11686. }
  11687. </code></pre>
  11688. <p><code>POST /api/boards/{board}/integrations</code></p>
  11689. <p><em>Create a new integration</em></p>
  11690. <blockquote>
  11691. <p>Body parameter</p>
  11692. </blockquote>
  11693. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11694. </code></pre>
  11695. <h3 id="new_integration-parameters">Parameters</h3>
  11696. <table>
  11697. <thead>
  11698. <tr>
  11699. <th>Name</th>
  11700. <th>In</th>
  11701. <th>Type</th>
  11702. <th>Required</th>
  11703. <th>Description</th>
  11704. </tr>
  11705. </thead>
  11706. <tbody>
  11707. <tr>
  11708. <td>board</td>
  11709. <td>path</td>
  11710. <td>string</td>
  11711. <td>true</td>
  11712. <td>the board ID</td>
  11713. </tr>
  11714. <tr>
  11715. <td>body</td>
  11716. <td>body</td>
  11717. <td>object</td>
  11718. <td>false</td>
  11719. <td>none</td>
  11720. </tr>
  11721. <tr>
  11722. <td>» url</td>
  11723. <td>body</td>
  11724. <td>string</td>
  11725. <td>true</td>
  11726. <td>the URL of the integration</td>
  11727. </tr>
  11728. </tbody>
  11729. </table>
  11730. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11731. <p><strong>board</strong>: the board ID</p>
  11732. <blockquote>
  11733. <p>Example responses</p>
  11734. </blockquote>
  11735. <blockquote>
  11736. <p>200 Response</p>
  11737. </blockquote>
  11738. <pre class="highlight tab tab-json"><code>{
  11739. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11740. }
  11741. </code></pre>
  11742. <h3 id="new_integration-responses">Responses</h3>
  11743. <table>
  11744. <thead>
  11745. <tr>
  11746. <th>Status</th>
  11747. <th>Meaning</th>
  11748. <th>Description</th>
  11749. <th>Schema</th>
  11750. </tr>
  11751. </thead>
  11752. <tbody>
  11753. <tr>
  11754. <td>200</td>
  11755. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11756. <td>200 response</td>
  11757. <td>Inline</td>
  11758. </tr>
  11759. </tbody>
  11760. </table>
  11761. <h3 id="new_integration-responseschema">Response Schema</h3>
  11762. <p>Status Code <strong>200</strong></p>
  11763. <table>
  11764. <thead>
  11765. <tr>
  11766. <th>Name</th>
  11767. <th>Type</th>
  11768. <th>Required</th>
  11769. <th>Restrictions</th>
  11770. <th>Description</th>
  11771. </tr>
  11772. </thead>
  11773. <tbody>
  11774. <tr>
  11775. <td>» _id</td>
  11776. <td>string</td>
  11777. <td>false</td>
  11778. <td>none</td>
  11779. <td>none</td>
  11780. </tr>
  11781. </tbody>
  11782. </table>
  11783. <aside class="warning">
  11784. To perform this operation, you must be authenticated by means of one of the following methods:
  11785. UserSecurity
  11786. </aside>
  11787. <h2 id="get_integration">get_integration</h2>
  11788. <p><a id="opIdget_integration"></a></p>
  11789. <blockquote>
  11790. <p>Code samples</p>
  11791. </blockquote>
  11792. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11793. curl -X GET /api/boards/{board}/integrations/{int} \
  11794. -H <span class="hljs-string">'Accept: application/json'</span> \
  11795. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11796. </code></pre>
  11797. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  11798. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11799. <span class="undefined"></span></span></code></pre>
  11800. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11801. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11802. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11803. };
  11804. $.ajax({
  11805. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11806. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11807. <span class="hljs-attr">headers</span>: headers,
  11808. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11809. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11810. }
  11811. })
  11812. </code></pre>
  11813. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11814. <span class="hljs-keyword">const</span> headers = {
  11815. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11816. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11817. };
  11818. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11819. {
  11820. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11821. <span class="hljs-attr">headers</span>: headers
  11822. })
  11823. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11824. <span class="hljs-keyword">return</span> res.json();
  11825. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11826. <span class="hljs-built_in">console</span>.log(body);
  11827. });
  11828. </code></pre>
  11829. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11830. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11831. headers = {
  11832. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11833. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11834. }
  11835. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11836. <span class="hljs-symbol">params:</span> {
  11837. }, <span class="hljs-symbol">headers:</span> headers
  11838. p JSON.parse(result)
  11839. </code></pre>
  11840. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11841. headers = {
  11842. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11843. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11844. }
  11845. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  11846. }, headers = headers)
  11847. <span class="hljs-keyword">print</span> r.json()
  11848. </code></pre>
  11849. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  11850. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11851. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11852. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11853. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11854. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11855. String inputLine;
  11856. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11857. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11858. response.append(inputLine);
  11859. }
  11860. in.close();
  11861. System.out.println(response.toString());
  11862. </code></pre>
  11863. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11864. <span class="hljs-keyword">import</span> (
  11865. <span class="hljs-string">"bytes"</span>
  11866. <span class="hljs-string">"net/http"</span>
  11867. )
  11868. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11869. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11870. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11871. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11872. }
  11873. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11874. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  11875. req.Header = headers
  11876. client := &amp;http.Client{}
  11877. resp, err := client.Do(req)
  11878. <span class="hljs-comment">// ...</span>
  11879. }
  11880. </code></pre>
  11881. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11882. <p><em>Get a single integration in board</em></p>
  11883. <h3 id="get_integration-parameters">Parameters</h3>
  11884. <table>
  11885. <thead>
  11886. <tr>
  11887. <th>Name</th>
  11888. <th>In</th>
  11889. <th>Type</th>
  11890. <th>Required</th>
  11891. <th>Description</th>
  11892. </tr>
  11893. </thead>
  11894. <tbody>
  11895. <tr>
  11896. <td>board</td>
  11897. <td>path</td>
  11898. <td>string</td>
  11899. <td>true</td>
  11900. <td>the board ID</td>
  11901. </tr>
  11902. <tr>
  11903. <td>int</td>
  11904. <td>path</td>
  11905. <td>string</td>
  11906. <td>true</td>
  11907. <td>the integration ID</td>
  11908. </tr>
  11909. </tbody>
  11910. </table>
  11911. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11912. <p><strong>board</strong>: the board ID</p>
  11913. <p><strong>int</strong>: the integration ID</p>
  11914. <blockquote>
  11915. <p>Example responses</p>
  11916. </blockquote>
  11917. <blockquote>
  11918. <p>200 Response</p>
  11919. </blockquote>
  11920. <pre class="highlight tab tab-json"><code>{
  11921. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  11922. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11923. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  11924. <span class="hljs-attr">"activities"</span>: [
  11925. <span class="hljs-string">"string"</span>
  11926. ],
  11927. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  11928. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  11929. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11930. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11931. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11932. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  11933. }
  11934. </code></pre>
  11935. <h3 id="get_integration-responses">Responses</h3>
  11936. <table>
  11937. <thead>
  11938. <tr>
  11939. <th>Status</th>
  11940. <th>Meaning</th>
  11941. <th>Description</th>
  11942. <th>Schema</th>
  11943. </tr>
  11944. </thead>
  11945. <tbody>
  11946. <tr>
  11947. <td>200</td>
  11948. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11949. <td>200 response</td>
  11950. <td><a href="#schemaintegrations">Integrations</a></td>
  11951. </tr>
  11952. </tbody>
  11953. </table>
  11954. <aside class="warning">
  11955. To perform this operation, you must be authenticated by means of one of the following methods:
  11956. UserSecurity
  11957. </aside>
  11958. <h2 id="edit_integration">edit_integration</h2>
  11959. <p><a id="opIdedit_integration"></a></p>
  11960. <blockquote>
  11961. <p>Code samples</p>
  11962. </blockquote>
  11963. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11964. curl -X PUT /api/boards/{board}/integrations/{int} \
  11965. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11966. -H <span class="hljs-string">'Accept: application/json'</span> \
  11967. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11968. </code></pre>
  11969. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  11970. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11971. Accept: application/json
  11972. </span></code></pre>
  11973. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11974. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11975. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11976. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11977. };
  11978. $.ajax({
  11979. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11980. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  11981. <span class="hljs-attr">headers</span>: headers,
  11982. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11983. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11984. }
  11985. })
  11986. </code></pre>
  11987. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  11988. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11989. "enabled": "string",
  11990. "title": "string",
  11991. "url": "string",
  11992. "token": "string",
  11993. "activities": "string"
  11994. }'</span>;
  11995. <span class="hljs-keyword">const</span> headers = {
  11996. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11997. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11998. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11999. };
  12000. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12001. {
  12002. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  12003. <span class="hljs-attr">body</span>: inputBody,
  12004. <span class="hljs-attr">headers</span>: headers
  12005. })
  12006. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12007. <span class="hljs-keyword">return</span> res.json();
  12008. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12009. <span class="hljs-built_in">console</span>.log(body);
  12010. });
  12011. </code></pre>
  12012. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12013. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12014. headers = {
  12015. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  12016. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12017. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12018. }
  12019. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12020. <span class="hljs-symbol">params:</span> {
  12021. }, <span class="hljs-symbol">headers:</span> headers
  12022. p JSON.parse(result)
  12023. </code></pre>
  12024. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12025. headers = {
  12026. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  12027. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12028. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12029. }
  12030. r = requests.put(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  12031. }, headers = headers)
  12032. <span class="hljs-keyword">print</span> r.json()
  12033. </code></pre>
  12034. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  12035. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12036. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  12037. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12038. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12039. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12040. String inputLine;
  12041. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12042. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12043. response.append(inputLine);
  12044. }
  12045. in.close();
  12046. System.out.println(response.toString());
  12047. </code></pre>
  12048. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12049. <span class="hljs-keyword">import</span> (
  12050. <span class="hljs-string">"bytes"</span>
  12051. <span class="hljs-string">"net/http"</span>
  12052. )
  12053. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12054. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12055. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  12056. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12057. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12058. }
  12059. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12060. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  12061. req.Header = headers
  12062. client := &amp;http.Client{}
  12063. resp, err := client.Do(req)
  12064. <span class="hljs-comment">// ...</span>
  12065. }
  12066. </code></pre>
  12067. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  12068. <p><em>Edit integration data</em></p>
  12069. <blockquote>
  12070. <p>Body parameter</p>
  12071. </blockquote>
  12072. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  12073. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12074. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12075. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  12076. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12077. </code></pre>
  12078. <h3 id="edit_integration-parameters">Parameters</h3>
  12079. <table>
  12080. <thead>
  12081. <tr>
  12082. <th>Name</th>
  12083. <th>In</th>
  12084. <th>Type</th>
  12085. <th>Required</th>
  12086. <th>Description</th>
  12087. </tr>
  12088. </thead>
  12089. <tbody>
  12090. <tr>
  12091. <td>board</td>
  12092. <td>path</td>
  12093. <td>string</td>
  12094. <td>true</td>
  12095. <td>the board ID</td>
  12096. </tr>
  12097. <tr>
  12098. <td>int</td>
  12099. <td>path</td>
  12100. <td>string</td>
  12101. <td>true</td>
  12102. <td>the integration ID</td>
  12103. </tr>
  12104. <tr>
  12105. <td>body</td>
  12106. <td>body</td>
  12107. <td>object</td>
  12108. <td>false</td>
  12109. <td>none</td>
  12110. </tr>
  12111. <tr>
  12112. <td>» enabled</td>
  12113. <td>body</td>
  12114. <td>string</td>
  12115. <td>false</td>
  12116. <td>is the integration enabled?</td>
  12117. </tr>
  12118. <tr>
  12119. <td>» title</td>
  12120. <td>body</td>
  12121. <td>string</td>
  12122. <td>false</td>
  12123. <td>new name of the integration</td>
  12124. </tr>
  12125. <tr>
  12126. <td>» url</td>
  12127. <td>body</td>
  12128. <td>string</td>
  12129. <td>false</td>
  12130. <td>new URL of the integration</td>
  12131. </tr>
  12132. <tr>
  12133. <td>» token</td>
  12134. <td>body</td>
  12135. <td>string</td>
  12136. <td>false</td>
  12137. <td>new token of the integration</td>
  12138. </tr>
  12139. <tr>
  12140. <td>» activities</td>
  12141. <td>body</td>
  12142. <td>string</td>
  12143. <td>false</td>
  12144. <td>new list of activities of the integration</td>
  12145. </tr>
  12146. </tbody>
  12147. </table>
  12148. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12149. <p><strong>board</strong>: the board ID</p>
  12150. <p><strong>int</strong>: the integration ID</p>
  12151. <blockquote>
  12152. <p>Example responses</p>
  12153. </blockquote>
  12154. <blockquote>
  12155. <p>200 Response</p>
  12156. </blockquote>
  12157. <pre class="highlight tab tab-json"><code>{
  12158. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  12159. }
  12160. </code></pre>
  12161. <h3 id="edit_integration-responses">Responses</h3>
  12162. <table>
  12163. <thead>
  12164. <tr>
  12165. <th>Status</th>
  12166. <th>Meaning</th>
  12167. <th>Description</th>
  12168. <th>Schema</th>
  12169. </tr>
  12170. </thead>
  12171. <tbody>
  12172. <tr>
  12173. <td>200</td>
  12174. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12175. <td>200 response</td>
  12176. <td>Inline</td>
  12177. </tr>
  12178. </tbody>
  12179. </table>
  12180. <h3 id="edit_integration-responseschema">Response Schema</h3>
  12181. <p>Status Code <strong>200</strong></p>
  12182. <table>
  12183. <thead>
  12184. <tr>
  12185. <th>Name</th>
  12186. <th>Type</th>
  12187. <th>Required</th>
  12188. <th>Restrictions</th>
  12189. <th>Description</th>
  12190. </tr>
  12191. </thead>
  12192. <tbody>
  12193. <tr>
  12194. <td>» _id</td>
  12195. <td>string</td>
  12196. <td>false</td>
  12197. <td>none</td>
  12198. <td>none</td>
  12199. </tr>
  12200. </tbody>
  12201. </table>
  12202. <aside class="warning">
  12203. To perform this operation, you must be authenticated by means of one of the following methods:
  12204. UserSecurity
  12205. </aside>
  12206. <h2 id="delete_integration">delete_integration</h2>
  12207. <p><a id="opIddelete_integration"></a></p>
  12208. <blockquote>
  12209. <p>Code samples</p>
  12210. </blockquote>
  12211. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12212. curl -X DELETE /api/boards/{board}/integrations/{int} \
  12213. -H <span class="hljs-string">'Accept: application/json'</span> \
  12214. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12215. </code></pre>
  12216. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> HTTP/1.1
  12217. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12218. <span class="undefined"></span></span></code></pre>
  12219. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12220. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12221. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12222. };
  12223. $.ajax({
  12224. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12225. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  12226. <span class="hljs-attr">headers</span>: headers,
  12227. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12228. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12229. }
  12230. })
  12231. </code></pre>
  12232. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12233. <span class="hljs-keyword">const</span> headers = {
  12234. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12235. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12236. };
  12237. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12238. {
  12239. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  12240. <span class="hljs-attr">headers</span>: headers
  12241. })
  12242. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12243. <span class="hljs-keyword">return</span> res.json();
  12244. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12245. <span class="hljs-built_in">console</span>.log(body);
  12246. });
  12247. </code></pre>
  12248. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12249. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12250. headers = {
  12251. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12252. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12253. }
  12254. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12255. <span class="hljs-symbol">params:</span> {
  12256. }, <span class="hljs-symbol">headers:</span> headers
  12257. p JSON.parse(result)
  12258. </code></pre>
  12259. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12260. headers = {
  12261. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12262. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12263. }
  12264. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  12265. }, headers = headers)
  12266. <span class="hljs-keyword">print</span> r.json()
  12267. </code></pre>
  12268. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>);
  12269. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12270. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  12271. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12272. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12273. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12274. String inputLine;
  12275. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12276. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12277. response.append(inputLine);
  12278. }
  12279. in.close();
  12280. System.out.println(response.toString());
  12281. </code></pre>
  12282. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12283. <span class="hljs-keyword">import</span> (
  12284. <span class="hljs-string">"bytes"</span>
  12285. <span class="hljs-string">"net/http"</span>
  12286. )
  12287. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12288. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12289. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12290. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12291. }
  12292. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12293. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  12294. req.Header = headers
  12295. client := &amp;http.Client{}
  12296. resp, err := client.Do(req)
  12297. <span class="hljs-comment">// ...</span>
  12298. }
  12299. </code></pre>
  12300. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  12301. <p><em>Delete integration</em></p>
  12302. <h3 id="delete_integration-parameters">Parameters</h3>
  12303. <table>
  12304. <thead>
  12305. <tr>
  12306. <th>Name</th>
  12307. <th>In</th>
  12308. <th>Type</th>
  12309. <th>Required</th>
  12310. <th>Description</th>
  12311. </tr>
  12312. </thead>
  12313. <tbody>
  12314. <tr>
  12315. <td>board</td>
  12316. <td>path</td>
  12317. <td>string</td>
  12318. <td>true</td>
  12319. <td>the board ID</td>
  12320. </tr>
  12321. <tr>
  12322. <td>int</td>
  12323. <td>path</td>
  12324. <td>string</td>
  12325. <td>true</td>
  12326. <td>the integration ID</td>
  12327. </tr>
  12328. </tbody>
  12329. </table>
  12330. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12331. <p><strong>board</strong>: the board ID</p>
  12332. <p><strong>int</strong>: the integration ID</p>
  12333. <blockquote>
  12334. <p>Example responses</p>
  12335. </blockquote>
  12336. <blockquote>
  12337. <p>200 Response</p>
  12338. </blockquote>
  12339. <pre class="highlight tab tab-json"><code>{
  12340. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  12341. }
  12342. </code></pre>
  12343. <h3 id="delete_integration-responses">Responses</h3>
  12344. <table>
  12345. <thead>
  12346. <tr>
  12347. <th>Status</th>
  12348. <th>Meaning</th>
  12349. <th>Description</th>
  12350. <th>Schema</th>
  12351. </tr>
  12352. </thead>
  12353. <tbody>
  12354. <tr>
  12355. <td>200</td>
  12356. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12357. <td>200 response</td>
  12358. <td>Inline</td>
  12359. </tr>
  12360. </tbody>
  12361. </table>
  12362. <h3 id="delete_integration-responseschema">Response Schema</h3>
  12363. <p>Status Code <strong>200</strong></p>
  12364. <table>
  12365. <thead>
  12366. <tr>
  12367. <th>Name</th>
  12368. <th>Type</th>
  12369. <th>Required</th>
  12370. <th>Restrictions</th>
  12371. <th>Description</th>
  12372. </tr>
  12373. </thead>
  12374. <tbody>
  12375. <tr>
  12376. <td>» _id</td>
  12377. <td>string</td>
  12378. <td>false</td>
  12379. <td>none</td>
  12380. <td>none</td>
  12381. </tr>
  12382. </tbody>
  12383. </table>
  12384. <aside class="warning">
  12385. To perform this operation, you must be authenticated by means of one of the following methods:
  12386. UserSecurity
  12387. </aside>
  12388. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12389. <p><a id="opIddelete_integration_activities"></a></p>
  12390. <blockquote>
  12391. <p>Code samples</p>
  12392. </blockquote>
  12393. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12394. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12395. -H <span class="hljs-string">'Accept: application/json'</span> \
  12396. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12397. </code></pre>
  12398. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> HTTP/1.1
  12399. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12400. <span class="undefined"></span></span></code></pre>
  12401. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12402. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12403. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12404. };
  12405. $.ajax({
  12406. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12407. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  12408. <span class="hljs-attr">headers</span>: headers,
  12409. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12410. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12411. }
  12412. })
  12413. </code></pre>
  12414. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12415. <span class="hljs-keyword">const</span> headers = {
  12416. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12417. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12418. };
  12419. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12420. {
  12421. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  12422. <span class="hljs-attr">headers</span>: headers
  12423. })
  12424. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12425. <span class="hljs-keyword">return</span> res.json();
  12426. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12427. <span class="hljs-built_in">console</span>.log(body);
  12428. });
  12429. </code></pre>
  12430. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12431. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12432. headers = {
  12433. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12434. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12435. }
  12436. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12437. <span class="hljs-symbol">params:</span> {
  12438. }, <span class="hljs-symbol">headers:</span> headers
  12439. p JSON.parse(result)
  12440. </code></pre>
  12441. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12442. headers = {
  12443. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12444. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12445. }
  12446. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  12447. }, headers = headers)
  12448. <span class="hljs-keyword">print</span> r.json()
  12449. </code></pre>
  12450. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>);
  12451. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12452. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  12453. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12454. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12455. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12456. String inputLine;
  12457. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12458. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12459. response.append(inputLine);
  12460. }
  12461. in.close();
  12462. System.out.println(response.toString());
  12463. </code></pre>
  12464. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12465. <span class="hljs-keyword">import</span> (
  12466. <span class="hljs-string">"bytes"</span>
  12467. <span class="hljs-string">"net/http"</span>
  12468. )
  12469. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12470. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12471. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12472. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12473. }
  12474. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12475. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  12476. req.Header = headers
  12477. client := &amp;http.Client{}
  12478. resp, err := client.Do(req)
  12479. <span class="hljs-comment">// ...</span>
  12480. }
  12481. </code></pre>
  12482. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12483. <p><em>Delete subscribed activities</em></p>
  12484. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12485. <table>
  12486. <thead>
  12487. <tr>
  12488. <th>Name</th>
  12489. <th>In</th>
  12490. <th>Type</th>
  12491. <th>Required</th>
  12492. <th>Description</th>
  12493. </tr>
  12494. </thead>
  12495. <tbody>
  12496. <tr>
  12497. <td>board</td>
  12498. <td>path</td>
  12499. <td>string</td>
  12500. <td>true</td>
  12501. <td>the board ID</td>
  12502. </tr>
  12503. <tr>
  12504. <td>int</td>
  12505. <td>path</td>
  12506. <td>string</td>
  12507. <td>true</td>
  12508. <td>the integration ID</td>
  12509. </tr>
  12510. </tbody>
  12511. </table>
  12512. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12513. <p><strong>board</strong>: the board ID</p>
  12514. <p><strong>int</strong>: the integration ID</p>
  12515. <blockquote>
  12516. <p>Example responses</p>
  12517. </blockquote>
  12518. <blockquote>
  12519. <p>200 Response</p>
  12520. </blockquote>
  12521. <pre class="highlight tab tab-json"><code>{
  12522. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  12523. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12524. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  12525. <span class="hljs-attr">"activities"</span>: [
  12526. <span class="hljs-string">"string"</span>
  12527. ],
  12528. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  12529. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  12530. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12531. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12532. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12533. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  12534. }
  12535. </code></pre>
  12536. <h3 id="delete_integration_activities-responses">Responses</h3>
  12537. <table>
  12538. <thead>
  12539. <tr>
  12540. <th>Status</th>
  12541. <th>Meaning</th>
  12542. <th>Description</th>
  12543. <th>Schema</th>
  12544. </tr>
  12545. </thead>
  12546. <tbody>
  12547. <tr>
  12548. <td>200</td>
  12549. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12550. <td>200 response</td>
  12551. <td><a href="#schemaintegrations">Integrations</a></td>
  12552. </tr>
  12553. </tbody>
  12554. </table>
  12555. <aside class="warning">
  12556. To perform this operation, you must be authenticated by means of one of the following methods:
  12557. UserSecurity
  12558. </aside>
  12559. <h2 id="new_integration_activities">new_integration_activities</h2>
  12560. <p><a id="opIdnew_integration_activities"></a></p>
  12561. <blockquote>
  12562. <p>Code samples</p>
  12563. </blockquote>
  12564. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12565. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12566. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  12567. -H <span class="hljs-string">'Accept: application/json'</span> \
  12568. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12569. </code></pre>
  12570. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> HTTP/1.1
  12571. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12572. Accept: application/json
  12573. </span></code></pre>
  12574. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12575. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12576. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12577. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12578. };
  12579. $.ajax({
  12580. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12581. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  12582. <span class="hljs-attr">headers</span>: headers,
  12583. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12584. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12585. }
  12586. })
  12587. </code></pre>
  12588. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12589. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  12590. "activities": "string"
  12591. }'</span>;
  12592. <span class="hljs-keyword">const</span> headers = {
  12593. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12594. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12595. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12596. };
  12597. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12598. {
  12599. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  12600. <span class="hljs-attr">body</span>: inputBody,
  12601. <span class="hljs-attr">headers</span>: headers
  12602. })
  12603. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12604. <span class="hljs-keyword">return</span> res.json();
  12605. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12606. <span class="hljs-built_in">console</span>.log(body);
  12607. });
  12608. </code></pre>
  12609. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12610. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12611. headers = {
  12612. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  12613. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12614. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12615. }
  12616. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12617. <span class="hljs-symbol">params:</span> {
  12618. }, <span class="hljs-symbol">headers:</span> headers
  12619. p JSON.parse(result)
  12620. </code></pre>
  12621. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12622. headers = {
  12623. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  12624. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12625. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12626. }
  12627. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  12628. }, headers = headers)
  12629. <span class="hljs-keyword">print</span> r.json()
  12630. </code></pre>
  12631. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>);
  12632. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12633. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  12634. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12635. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12636. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12637. String inputLine;
  12638. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12639. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12640. response.append(inputLine);
  12641. }
  12642. in.close();
  12643. System.out.println(response.toString());
  12644. </code></pre>
  12645. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12646. <span class="hljs-keyword">import</span> (
  12647. <span class="hljs-string">"bytes"</span>
  12648. <span class="hljs-string">"net/http"</span>
  12649. )
  12650. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12651. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12652. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  12653. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12654. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12655. }
  12656. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12657. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  12658. req.Header = headers
  12659. client := &amp;http.Client{}
  12660. resp, err := client.Do(req)
  12661. <span class="hljs-comment">// ...</span>
  12662. }
  12663. </code></pre>
  12664. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12665. <p><em>Add subscribed activities</em></p>
  12666. <blockquote>
  12667. <p>Body parameter</p>
  12668. </blockquote>
  12669. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12670. </code></pre>
  12671. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12672. <table>
  12673. <thead>
  12674. <tr>
  12675. <th>Name</th>
  12676. <th>In</th>
  12677. <th>Type</th>
  12678. <th>Required</th>
  12679. <th>Description</th>
  12680. </tr>
  12681. </thead>
  12682. <tbody>
  12683. <tr>
  12684. <td>board</td>
  12685. <td>path</td>
  12686. <td>string</td>
  12687. <td>true</td>
  12688. <td>the board ID</td>
  12689. </tr>
  12690. <tr>
  12691. <td>int</td>
  12692. <td>path</td>
  12693. <td>string</td>
  12694. <td>true</td>
  12695. <td>the integration ID</td>
  12696. </tr>
  12697. <tr>
  12698. <td>body</td>
  12699. <td>body</td>
  12700. <td>object</td>
  12701. <td>false</td>
  12702. <td>none</td>
  12703. </tr>
  12704. <tr>
  12705. <td>» activities</td>
  12706. <td>body</td>
  12707. <td>string</td>
  12708. <td>true</td>
  12709. <td>the activities value</td>
  12710. </tr>
  12711. </tbody>
  12712. </table>
  12713. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12714. <p><strong>board</strong>: the board ID</p>
  12715. <p><strong>int</strong>: the integration ID</p>
  12716. <blockquote>
  12717. <p>Example responses</p>
  12718. </blockquote>
  12719. <blockquote>
  12720. <p>200 Response</p>
  12721. </blockquote>
  12722. <pre class="highlight tab tab-json"><code>{
  12723. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  12724. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12725. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  12726. <span class="hljs-attr">"activities"</span>: [
  12727. <span class="hljs-string">"string"</span>
  12728. ],
  12729. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  12730. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  12731. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12732. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12733. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12734. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  12735. }
  12736. </code></pre>
  12737. <h3 id="new_integration_activities-responses">Responses</h3>
  12738. <table>
  12739. <thead>
  12740. <tr>
  12741. <th>Status</th>
  12742. <th>Meaning</th>
  12743. <th>Description</th>
  12744. <th>Schema</th>
  12745. </tr>
  12746. </thead>
  12747. <tbody>
  12748. <tr>
  12749. <td>200</td>
  12750. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12751. <td>200 response</td>
  12752. <td><a href="#schemaintegrations">Integrations</a></td>
  12753. </tr>
  12754. </tbody>
  12755. </table>
  12756. <aside class="warning">
  12757. To perform this operation, you must be authenticated by means of one of the following methods:
  12758. UserSecurity
  12759. </aside>
  12760. <h1 id="wekan-rest-api-lists">Lists</h1>
  12761. <h2 id="get_all_lists">get_all_lists</h2>
  12762. <p><a id="opIdget_all_lists"></a></p>
  12763. <blockquote>
  12764. <p>Code samples</p>
  12765. </blockquote>
  12766. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12767. curl -X GET /api/boards/{board}/lists \
  12768. -H <span class="hljs-string">'Accept: application/json'</span> \
  12769. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12770. </code></pre>
  12771. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists</span> HTTP/1.1
  12772. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12773. <span class="undefined"></span></span></code></pre>
  12774. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12775. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12776. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12777. };
  12778. $.ajax({
  12779. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12780. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  12781. <span class="hljs-attr">headers</span>: headers,
  12782. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12783. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12784. }
  12785. })
  12786. </code></pre>
  12787. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12788. <span class="hljs-keyword">const</span> headers = {
  12789. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12790. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12791. };
  12792. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12793. {
  12794. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  12795. <span class="hljs-attr">headers</span>: headers
  12796. })
  12797. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12798. <span class="hljs-keyword">return</span> res.json();
  12799. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12800. <span class="hljs-built_in">console</span>.log(body);
  12801. });
  12802. </code></pre>
  12803. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12804. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12805. headers = {
  12806. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12807. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12808. }
  12809. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12810. <span class="hljs-symbol">params:</span> {
  12811. }, <span class="hljs-symbol">headers:</span> headers
  12812. p JSON.parse(result)
  12813. </code></pre>
  12814. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12815. headers = {
  12816. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12817. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12818. }
  12819. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  12820. }, headers = headers)
  12821. <span class="hljs-keyword">print</span> r.json()
  12822. </code></pre>
  12823. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists"</span>);
  12824. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12825. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  12826. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12827. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12828. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12829. String inputLine;
  12830. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12831. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12832. response.append(inputLine);
  12833. }
  12834. in.close();
  12835. System.out.println(response.toString());
  12836. </code></pre>
  12837. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12838. <span class="hljs-keyword">import</span> (
  12839. <span class="hljs-string">"bytes"</span>
  12840. <span class="hljs-string">"net/http"</span>
  12841. )
  12842. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12843. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12844. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12845. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12846. }
  12847. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12848. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  12849. req.Header = headers
  12850. client := &amp;http.Client{}
  12851. resp, err := client.Do(req)
  12852. <span class="hljs-comment">// ...</span>
  12853. }
  12854. </code></pre>
  12855. <p><code>GET /api/boards/{board}/lists</code></p>
  12856. <p><em>Get the list of Lists attached to a board</em></p>
  12857. <h3 id="get_all_lists-parameters">Parameters</h3>
  12858. <table>
  12859. <thead>
  12860. <tr>
  12861. <th>Name</th>
  12862. <th>In</th>
  12863. <th>Type</th>
  12864. <th>Required</th>
  12865. <th>Description</th>
  12866. </tr>
  12867. </thead>
  12868. <tbody>
  12869. <tr>
  12870. <td>board</td>
  12871. <td>path</td>
  12872. <td>string</td>
  12873. <td>true</td>
  12874. <td>the board ID</td>
  12875. </tr>
  12876. </tbody>
  12877. </table>
  12878. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12879. <p><strong>board</strong>: the board ID</p>
  12880. <blockquote>
  12881. <p>Example responses</p>
  12882. </blockquote>
  12883. <blockquote>
  12884. <p>200 Response</p>
  12885. </blockquote>
  12886. <pre class="highlight tab tab-json"><code>[
  12887. {
  12888. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  12889. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  12890. }
  12891. ]
  12892. </code></pre>
  12893. <h3 id="get_all_lists-responses">Responses</h3>
  12894. <table>
  12895. <thead>
  12896. <tr>
  12897. <th>Status</th>
  12898. <th>Meaning</th>
  12899. <th>Description</th>
  12900. <th>Schema</th>
  12901. </tr>
  12902. </thead>
  12903. <tbody>
  12904. <tr>
  12905. <td>200</td>
  12906. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12907. <td>200 response</td>
  12908. <td>Inline</td>
  12909. </tr>
  12910. </tbody>
  12911. </table>
  12912. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  12913. <p>Status Code <strong>200</strong></p>
  12914. <table>
  12915. <thead>
  12916. <tr>
  12917. <th>Name</th>
  12918. <th>Type</th>
  12919. <th>Required</th>
  12920. <th>Restrictions</th>
  12921. <th>Description</th>
  12922. </tr>
  12923. </thead>
  12924. <tbody>
  12925. <tr>
  12926. <td>» _id</td>
  12927. <td>string</td>
  12928. <td>false</td>
  12929. <td>none</td>
  12930. <td>none</td>
  12931. </tr>
  12932. <tr>
  12933. <td>» title</td>
  12934. <td>string</td>
  12935. <td>false</td>
  12936. <td>none</td>
  12937. <td>none</td>
  12938. </tr>
  12939. </tbody>
  12940. </table>
  12941. <aside class="warning">
  12942. To perform this operation, you must be authenticated by means of one of the following methods:
  12943. UserSecurity
  12944. </aside>
  12945. <h2 id="new_list">new_list</h2>
  12946. <p><a id="opIdnew_list"></a></p>
  12947. <blockquote>
  12948. <p>Code samples</p>
  12949. </blockquote>
  12950. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12951. curl -X POST /api/boards/{board}/lists \
  12952. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  12953. -H <span class="hljs-string">'Accept: application/json'</span> \
  12954. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12955. </code></pre>
  12956. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists</span> HTTP/1.1
  12957. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12958. Accept: application/json
  12959. </span></code></pre>
  12960. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12961. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12962. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12963. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12964. };
  12965. $.ajax({
  12966. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12967. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  12968. <span class="hljs-attr">headers</span>: headers,
  12969. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12970. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12971. }
  12972. })
  12973. </code></pre>
  12974. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  12975. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  12976. "title": "string",
  12977. "swimlaneId": "string"
  12978. }'</span>;
  12979. <span class="hljs-keyword">const</span> headers = {
  12980. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12981. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12982. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12983. };
  12984. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12985. {
  12986. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  12987. <span class="hljs-attr">body</span>: inputBody,
  12988. <span class="hljs-attr">headers</span>: headers
  12989. })
  12990. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12991. <span class="hljs-keyword">return</span> res.json();
  12992. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12993. <span class="hljs-built_in">console</span>.log(body);
  12994. });
  12995. </code></pre>
  12996. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12997. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12998. headers = {
  12999. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  13000. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13001. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13002. }
  13003. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  13004. <span class="hljs-symbol">params:</span> {
  13005. }, <span class="hljs-symbol">headers:</span> headers
  13006. p JSON.parse(result)
  13007. </code></pre>
  13008. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13009. headers = {
  13010. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  13011. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13012. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13013. }
  13014. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  13015. }, headers = headers)
  13016. <span class="hljs-keyword">print</span> r.json()
  13017. </code></pre>
  13018. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists"</span>);
  13019. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13020. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  13021. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13022. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13023. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13024. String inputLine;
  13025. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13026. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13027. response.append(inputLine);
  13028. }
  13029. in.close();
  13030. System.out.println(response.toString());
  13031. </code></pre>
  13032. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13033. <span class="hljs-keyword">import</span> (
  13034. <span class="hljs-string">"bytes"</span>
  13035. <span class="hljs-string">"net/http"</span>
  13036. )
  13037. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13038. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13039. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  13040. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13041. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13042. }
  13043. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13044. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  13045. req.Header = headers
  13046. client := &amp;http.Client{}
  13047. resp, err := client.Do(req)
  13048. <span class="hljs-comment">// ...</span>
  13049. }
  13050. </code></pre>
  13051. <p><code>POST /api/boards/{board}/lists</code></p>
  13052. <p><em>Add a List to a board</em></p>
  13053. <blockquote>
  13054. <p>Body parameter</p>
  13055. </blockquote>
  13056. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13057. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  13058. </code></pre>
  13059. <h3 id="new_list-parameters">Parameters</h3>
  13060. <table>
  13061. <thead>
  13062. <tr>
  13063. <th>Name</th>
  13064. <th>In</th>
  13065. <th>Type</th>
  13066. <th>Required</th>
  13067. <th>Description</th>
  13068. </tr>
  13069. </thead>
  13070. <tbody>
  13071. <tr>
  13072. <td>board</td>
  13073. <td>path</td>
  13074. <td>string</td>
  13075. <td>true</td>
  13076. <td>the board ID</td>
  13077. </tr>
  13078. <tr>
  13079. <td>body</td>
  13080. <td>body</td>
  13081. <td>object</td>
  13082. <td>false</td>
  13083. <td>none</td>
  13084. </tr>
  13085. <tr>
  13086. <td>» title</td>
  13087. <td>body</td>
  13088. <td>string</td>
  13089. <td>true</td>
  13090. <td>the title of the List</td>
  13091. </tr>
  13092. <tr>
  13093. <td>» swimlaneId</td>
  13094. <td>body</td>
  13095. <td>string</td>
  13096. <td>true</td>
  13097. <td>the swimlaneId value</td>
  13098. </tr>
  13099. </tbody>
  13100. </table>
  13101. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13102. <p><strong>board</strong>: the board ID</p>
  13103. <blockquote>
  13104. <p>Example responses</p>
  13105. </blockquote>
  13106. <blockquote>
  13107. <p>200 Response</p>
  13108. </blockquote>
  13109. <pre class="highlight tab tab-json"><code>{
  13110. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  13111. }
  13112. </code></pre>
  13113. <h3 id="new_list-responses">Responses</h3>
  13114. <table>
  13115. <thead>
  13116. <tr>
  13117. <th>Status</th>
  13118. <th>Meaning</th>
  13119. <th>Description</th>
  13120. <th>Schema</th>
  13121. </tr>
  13122. </thead>
  13123. <tbody>
  13124. <tr>
  13125. <td>200</td>
  13126. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13127. <td>200 response</td>
  13128. <td>Inline</td>
  13129. </tr>
  13130. </tbody>
  13131. </table>
  13132. <h3 id="new_list-responseschema">Response Schema</h3>
  13133. <p>Status Code <strong>200</strong></p>
  13134. <table>
  13135. <thead>
  13136. <tr>
  13137. <th>Name</th>
  13138. <th>Type</th>
  13139. <th>Required</th>
  13140. <th>Restrictions</th>
  13141. <th>Description</th>
  13142. </tr>
  13143. </thead>
  13144. <tbody>
  13145. <tr>
  13146. <td>» _id</td>
  13147. <td>string</td>
  13148. <td>false</td>
  13149. <td>none</td>
  13150. <td>none</td>
  13151. </tr>
  13152. </tbody>
  13153. </table>
  13154. <aside class="warning">
  13155. To perform this operation, you must be authenticated by means of one of the following methods:
  13156. UserSecurity
  13157. </aside>
  13158. <h2 id="get_list">get_list</h2>
  13159. <p><a id="opIdget_list"></a></p>
  13160. <blockquote>
  13161. <p>Code samples</p>
  13162. </blockquote>
  13163. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13164. curl -X GET /api/boards/{board}/lists/{list} \
  13165. -H <span class="hljs-string">'Accept: application/json'</span> \
  13166. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13167. </code></pre>
  13168. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> HTTP/1.1
  13169. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  13170. <span class="undefined"></span></span></code></pre>
  13171. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13172. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13173. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13174. };
  13175. $.ajax({
  13176. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13177. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  13178. <span class="hljs-attr">headers</span>: headers,
  13179. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13180. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13181. }
  13182. })
  13183. </code></pre>
  13184. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  13185. <span class="hljs-keyword">const</span> headers = {
  13186. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13187. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13188. };
  13189. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13190. {
  13191. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  13192. <span class="hljs-attr">headers</span>: headers
  13193. })
  13194. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13195. <span class="hljs-keyword">return</span> res.json();
  13196. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13197. <span class="hljs-built_in">console</span>.log(body);
  13198. });
  13199. </code></pre>
  13200. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13201. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13202. headers = {
  13203. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13204. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13205. }
  13206. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13207. <span class="hljs-symbol">params:</span> {
  13208. }, <span class="hljs-symbol">headers:</span> headers
  13209. p JSON.parse(result)
  13210. </code></pre>
  13211. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13212. headers = {
  13213. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13214. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13215. }
  13216. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  13217. }, headers = headers)
  13218. <span class="hljs-keyword">print</span> r.json()
  13219. </code></pre>
  13220. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>);
  13221. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13222. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  13223. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13224. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13225. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13226. String inputLine;
  13227. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13228. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13229. response.append(inputLine);
  13230. }
  13231. in.close();
  13232. System.out.println(response.toString());
  13233. </code></pre>
  13234. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13235. <span class="hljs-keyword">import</span> (
  13236. <span class="hljs-string">"bytes"</span>
  13237. <span class="hljs-string">"net/http"</span>
  13238. )
  13239. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13240. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13241. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13242. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13243. }
  13244. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13245. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  13246. req.Header = headers
  13247. client := &amp;http.Client{}
  13248. resp, err := client.Do(req)
  13249. <span class="hljs-comment">// ...</span>
  13250. }
  13251. </code></pre>
  13252. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  13253. <p><em>Get a List attached to a board</em></p>
  13254. <h3 id="get_list-parameters">Parameters</h3>
  13255. <table>
  13256. <thead>
  13257. <tr>
  13258. <th>Name</th>
  13259. <th>In</th>
  13260. <th>Type</th>
  13261. <th>Required</th>
  13262. <th>Description</th>
  13263. </tr>
  13264. </thead>
  13265. <tbody>
  13266. <tr>
  13267. <td>board</td>
  13268. <td>path</td>
  13269. <td>string</td>
  13270. <td>true</td>
  13271. <td>the board ID</td>
  13272. </tr>
  13273. <tr>
  13274. <td>list</td>
  13275. <td>path</td>
  13276. <td>string</td>
  13277. <td>true</td>
  13278. <td>the List ID</td>
  13279. </tr>
  13280. </tbody>
  13281. </table>
  13282. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13283. <p><strong>board</strong>: the board ID</p>
  13284. <p><strong>list</strong>: the List ID</p>
  13285. <blockquote>
  13286. <p>Example responses</p>
  13287. </blockquote>
  13288. <blockquote>
  13289. <p>200 Response</p>
  13290. </blockquote>
  13291. <pre class="highlight tab tab-json"><code>{
  13292. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13293. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  13294. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  13295. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  13296. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13297. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  13298. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13299. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  13300. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  13301. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13302. <span class="hljs-attr">"wipLimit"</span>: {
  13303. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  13304. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  13305. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  13306. },
  13307. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  13308. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13309. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  13310. }
  13311. </code></pre>
  13312. <h3 id="get_list-responses">Responses</h3>
  13313. <table>
  13314. <thead>
  13315. <tr>
  13316. <th>Status</th>
  13317. <th>Meaning</th>
  13318. <th>Description</th>
  13319. <th>Schema</th>
  13320. </tr>
  13321. </thead>
  13322. <tbody>
  13323. <tr>
  13324. <td>200</td>
  13325. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13326. <td>200 response</td>
  13327. <td><a href="#schemalists">Lists</a></td>
  13328. </tr>
  13329. </tbody>
  13330. </table>
  13331. <aside class="warning">
  13332. To perform this operation, you must be authenticated by means of one of the following methods:
  13333. UserSecurity
  13334. </aside>
  13335. <h2 id="edit_list">edit_list</h2>
  13336. <p><a id="opIdedit_list"></a></p>
  13337. <blockquote>
  13338. <p>Code samples</p>
  13339. </blockquote>
  13340. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13341. curl -X PUT /api/boards/{board}/lists/{list} \
  13342. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  13343. -H <span class="hljs-string">'Accept: application/json'</span> \
  13344. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13345. </code></pre>
  13346. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> HTTP/1.1
  13347. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13348. Accept: application/json
  13349. </span></code></pre>
  13350. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13351. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  13352. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13353. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13354. };
  13355. $.ajax({
  13356. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13357. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  13358. <span class="hljs-attr">headers</span>: headers,
  13359. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13360. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13361. }
  13362. })
  13363. </code></pre>
  13364. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  13365. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  13366. "title": "string",
  13367. "color": "string",
  13368. "starred": true,
  13369. "collapsed": true,
  13370. "wipLimit": {}
  13371. }'</span>;
  13372. <span class="hljs-keyword">const</span> headers = {
  13373. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  13374. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13375. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13376. };
  13377. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13378. {
  13379. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  13380. <span class="hljs-attr">body</span>: inputBody,
  13381. <span class="hljs-attr">headers</span>: headers
  13382. })
  13383. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13384. <span class="hljs-keyword">return</span> res.json();
  13385. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13386. <span class="hljs-built_in">console</span>.log(body);
  13387. });
  13388. </code></pre>
  13389. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13390. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13391. headers = {
  13392. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  13393. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13394. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13395. }
  13396. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13397. <span class="hljs-symbol">params:</span> {
  13398. }, <span class="hljs-symbol">headers:</span> headers
  13399. p JSON.parse(result)
  13400. </code></pre>
  13401. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13402. headers = {
  13403. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  13404. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13405. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13406. }
  13407. r = requests.put(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  13408. }, headers = headers)
  13409. <span class="hljs-keyword">print</span> r.json()
  13410. </code></pre>
  13411. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>);
  13412. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13413. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  13414. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13415. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13416. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13417. String inputLine;
  13418. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13419. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13420. response.append(inputLine);
  13421. }
  13422. in.close();
  13423. System.out.println(response.toString());
  13424. </code></pre>
  13425. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13426. <span class="hljs-keyword">import</span> (
  13427. <span class="hljs-string">"bytes"</span>
  13428. <span class="hljs-string">"net/http"</span>
  13429. )
  13430. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13431. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13432. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  13433. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13434. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13435. }
  13436. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13437. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  13438. req.Header = headers
  13439. client := &amp;http.Client{}
  13440. resp, err := client.Do(req)
  13441. <span class="hljs-comment">// ...</span>
  13442. }
  13443. </code></pre>
  13444. <p><code>PUT /api/boards/{board}/lists/{list}</code></p>
  13445. <p><em>Edit a List</em></p>
  13446. <p>This updates a list on a board.
  13447. You can update the title, color, wipLimit, starred, and collapsed properties.</p>
  13448. <blockquote>
  13449. <p>Body parameter</p>
  13450. </blockquote>
  13451. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13452. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  13453. <span class="hljs-attr">starred:</span> <span class="hljs-literal">true</span>
  13454. <span class="hljs-attr">collapsed:</span> <span class="hljs-literal">true</span>
  13455. <span class="hljs-attr">wipLimit:</span> <span class="hljs-string">{}</span>
  13456. </code></pre>
  13457. <h3 id="edit_list-parameters">Parameters</h3>
  13458. <table>
  13459. <thead>
  13460. <tr>
  13461. <th>Name</th>
  13462. <th>In</th>
  13463. <th>Type</th>
  13464. <th>Required</th>
  13465. <th>Description</th>
  13466. </tr>
  13467. </thead>
  13468. <tbody>
  13469. <tr>
  13470. <td>board</td>
  13471. <td>path</td>
  13472. <td>string</td>
  13473. <td>true</td>
  13474. <td>the board ID</td>
  13475. </tr>
  13476. <tr>
  13477. <td>list</td>
  13478. <td>path</td>
  13479. <td>string</td>
  13480. <td>true</td>
  13481. <td>the ID of the list to update</td>
  13482. </tr>
  13483. <tr>
  13484. <td>body</td>
  13485. <td>body</td>
  13486. <td>object</td>
  13487. <td>false</td>
  13488. <td>none</td>
  13489. </tr>
  13490. <tr>
  13491. <td>» title</td>
  13492. <td>body</td>
  13493. <td>string</td>
  13494. <td>false</td>
  13495. <td>the new title of the list</td>
  13496. </tr>
  13497. <tr>
  13498. <td>» color</td>
  13499. <td>body</td>
  13500. <td>string</td>
  13501. <td>false</td>
  13502. <td>the new color of the list</td>
  13503. </tr>
  13504. <tr>
  13505. <td>» starred</td>
  13506. <td>body</td>
  13507. <td>boolean</td>
  13508. <td>false</td>
  13509. <td>whether the list is starred</td>
  13510. </tr>
  13511. <tr>
  13512. <td>» collapsed</td>
  13513. <td>body</td>
  13514. <td>boolean</td>
  13515. <td>false</td>
  13516. <td>whether the list is collapsed</td>
  13517. </tr>
  13518. <tr>
  13519. <td>» wipLimit</td>
  13520. <td>body</td>
  13521. <td>object</td>
  13522. <td>false</td>
  13523. <td>the WIP limit configuration</td>
  13524. </tr>
  13525. </tbody>
  13526. </table>
  13527. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13528. <p><strong>board</strong>: the board ID</p>
  13529. <p><strong>list</strong>: the ID of the list to update</p>
  13530. <blockquote>
  13531. <p>Example responses</p>
  13532. </blockquote>
  13533. <blockquote>
  13534. <p>200 Response</p>
  13535. </blockquote>
  13536. <pre class="highlight tab tab-json"><code>{
  13537. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  13538. }
  13539. </code></pre>
  13540. <h3 id="edit_list-responses">Responses</h3>
  13541. <table>
  13542. <thead>
  13543. <tr>
  13544. <th>Status</th>
  13545. <th>Meaning</th>
  13546. <th>Description</th>
  13547. <th>Schema</th>
  13548. </tr>
  13549. </thead>
  13550. <tbody>
  13551. <tr>
  13552. <td>200</td>
  13553. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13554. <td>200 response</td>
  13555. <td>Inline</td>
  13556. </tr>
  13557. </tbody>
  13558. </table>
  13559. <h3 id="edit_list-responseschema">Response Schema</h3>
  13560. <p>Status Code <strong>200</strong></p>
  13561. <table>
  13562. <thead>
  13563. <tr>
  13564. <th>Name</th>
  13565. <th>Type</th>
  13566. <th>Required</th>
  13567. <th>Restrictions</th>
  13568. <th>Description</th>
  13569. </tr>
  13570. </thead>
  13571. <tbody>
  13572. <tr>
  13573. <td>» _id</td>
  13574. <td>string</td>
  13575. <td>false</td>
  13576. <td>none</td>
  13577. <td>none</td>
  13578. </tr>
  13579. </tbody>
  13580. </table>
  13581. <aside class="warning">
  13582. To perform this operation, you must be authenticated by means of one of the following methods:
  13583. UserSecurity
  13584. </aside>
  13585. <h2 id="delete_list">delete_list</h2>
  13586. <p><a id="opIddelete_list"></a></p>
  13587. <blockquote>
  13588. <p>Code samples</p>
  13589. </blockquote>
  13590. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13591. curl -X DELETE /api/boards/{board}/lists/{list} \
  13592. -H <span class="hljs-string">'Accept: application/json'</span> \
  13593. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13594. </code></pre>
  13595. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> HTTP/1.1
  13596. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  13597. <span class="undefined"></span></span></code></pre>
  13598. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13599. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13600. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13601. };
  13602. $.ajax({
  13603. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13604. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  13605. <span class="hljs-attr">headers</span>: headers,
  13606. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13607. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13608. }
  13609. })
  13610. </code></pre>
  13611. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  13612. <span class="hljs-keyword">const</span> headers = {
  13613. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13614. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13615. };
  13616. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13617. {
  13618. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  13619. <span class="hljs-attr">headers</span>: headers
  13620. })
  13621. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13622. <span class="hljs-keyword">return</span> res.json();
  13623. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13624. <span class="hljs-built_in">console</span>.log(body);
  13625. });
  13626. </code></pre>
  13627. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13628. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13629. headers = {
  13630. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13631. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13632. }
  13633. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13634. <span class="hljs-symbol">params:</span> {
  13635. }, <span class="hljs-symbol">headers:</span> headers
  13636. p JSON.parse(result)
  13637. </code></pre>
  13638. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13639. headers = {
  13640. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13641. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13642. }
  13643. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  13644. }, headers = headers)
  13645. <span class="hljs-keyword">print</span> r.json()
  13646. </code></pre>
  13647. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>);
  13648. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13649. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  13650. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13651. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13652. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13653. String inputLine;
  13654. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13655. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13656. response.append(inputLine);
  13657. }
  13658. in.close();
  13659. System.out.println(response.toString());
  13660. </code></pre>
  13661. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13662. <span class="hljs-keyword">import</span> (
  13663. <span class="hljs-string">"bytes"</span>
  13664. <span class="hljs-string">"net/http"</span>
  13665. )
  13666. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13667. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13668. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13669. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13670. }
  13671. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13672. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  13673. req.Header = headers
  13674. client := &amp;http.Client{}
  13675. resp, err := client.Do(req)
  13676. <span class="hljs-comment">// ...</span>
  13677. }
  13678. </code></pre>
  13679. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13680. <p><em>Delete a List</em></p>
  13681. <p>This <strong>deletes</strong> a list from a board.
  13682. The list is not put in the recycle bin.</p>
  13683. <h3 id="delete_list-parameters">Parameters</h3>
  13684. <table>
  13685. <thead>
  13686. <tr>
  13687. <th>Name</th>
  13688. <th>In</th>
  13689. <th>Type</th>
  13690. <th>Required</th>
  13691. <th>Description</th>
  13692. </tr>
  13693. </thead>
  13694. <tbody>
  13695. <tr>
  13696. <td>board</td>
  13697. <td>path</td>
  13698. <td>string</td>
  13699. <td>true</td>
  13700. <td>the board ID</td>
  13701. </tr>
  13702. <tr>
  13703. <td>list</td>
  13704. <td>path</td>
  13705. <td>string</td>
  13706. <td>true</td>
  13707. <td>the ID of the list to remove</td>
  13708. </tr>
  13709. </tbody>
  13710. </table>
  13711. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13712. <p><strong>board</strong>: the board ID</p>
  13713. <p><strong>list</strong>: the ID of the list to remove</p>
  13714. <blockquote>
  13715. <p>Example responses</p>
  13716. </blockquote>
  13717. <blockquote>
  13718. <p>200 Response</p>
  13719. </blockquote>
  13720. <pre class="highlight tab tab-json"><code>{
  13721. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  13722. }
  13723. </code></pre>
  13724. <h3 id="delete_list-responses">Responses</h3>
  13725. <table>
  13726. <thead>
  13727. <tr>
  13728. <th>Status</th>
  13729. <th>Meaning</th>
  13730. <th>Description</th>
  13731. <th>Schema</th>
  13732. </tr>
  13733. </thead>
  13734. <tbody>
  13735. <tr>
  13736. <td>200</td>
  13737. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13738. <td>200 response</td>
  13739. <td>Inline</td>
  13740. </tr>
  13741. </tbody>
  13742. </table>
  13743. <h3 id="delete_list-responseschema">Response Schema</h3>
  13744. <p>Status Code <strong>200</strong></p>
  13745. <table>
  13746. <thead>
  13747. <tr>
  13748. <th>Name</th>
  13749. <th>Type</th>
  13750. <th>Required</th>
  13751. <th>Restrictions</th>
  13752. <th>Description</th>
  13753. </tr>
  13754. </thead>
  13755. <tbody>
  13756. <tr>
  13757. <td>» _id</td>
  13758. <td>string</td>
  13759. <td>false</td>
  13760. <td>none</td>
  13761. <td>none</td>
  13762. </tr>
  13763. </tbody>
  13764. </table>
  13765. <aside class="warning">
  13766. To perform this operation, you must be authenticated by means of one of the following methods:
  13767. UserSecurity
  13768. </aside>
  13769. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  13770. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  13771. <p><a id="opIdget_all_swimlanes"></a></p>
  13772. <blockquote>
  13773. <p>Code samples</p>
  13774. </blockquote>
  13775. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13776. curl -X GET /api/boards/{board}/swimlanes \
  13777. -H <span class="hljs-string">'Accept: application/json'</span> \
  13778. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13779. </code></pre>
  13780. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> HTTP/1.1
  13781. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  13782. <span class="undefined"></span></span></code></pre>
  13783. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13784. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13785. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13786. };
  13787. $.ajax({
  13788. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13789. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  13790. <span class="hljs-attr">headers</span>: headers,
  13791. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13792. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13793. }
  13794. })
  13795. </code></pre>
  13796. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  13797. <span class="hljs-keyword">const</span> headers = {
  13798. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13799. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13800. };
  13801. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13802. {
  13803. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  13804. <span class="hljs-attr">headers</span>: headers
  13805. })
  13806. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13807. <span class="hljs-keyword">return</span> res.json();
  13808. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13809. <span class="hljs-built_in">console</span>.log(body);
  13810. });
  13811. </code></pre>
  13812. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13813. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13814. headers = {
  13815. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13816. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13817. }
  13818. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13819. <span class="hljs-symbol">params:</span> {
  13820. }, <span class="hljs-symbol">headers:</span> headers
  13821. p JSON.parse(result)
  13822. </code></pre>
  13823. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13824. headers = {
  13825. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13826. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13827. }
  13828. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  13829. }, headers = headers)
  13830. <span class="hljs-keyword">print</span> r.json()
  13831. </code></pre>
  13832. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes"</span>);
  13833. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13834. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  13835. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13836. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13837. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13838. String inputLine;
  13839. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13840. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13841. response.append(inputLine);
  13842. }
  13843. in.close();
  13844. System.out.println(response.toString());
  13845. </code></pre>
  13846. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13847. <span class="hljs-keyword">import</span> (
  13848. <span class="hljs-string">"bytes"</span>
  13849. <span class="hljs-string">"net/http"</span>
  13850. )
  13851. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13852. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13853. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13854. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13855. }
  13856. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13857. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  13858. req.Header = headers
  13859. client := &amp;http.Client{}
  13860. resp, err := client.Do(req)
  13861. <span class="hljs-comment">// ...</span>
  13862. }
  13863. </code></pre>
  13864. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  13865. <p><em>Get the list of swimlanes attached to a board</em></p>
  13866. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  13867. <table>
  13868. <thead>
  13869. <tr>
  13870. <th>Name</th>
  13871. <th>In</th>
  13872. <th>Type</th>
  13873. <th>Required</th>
  13874. <th>Description</th>
  13875. </tr>
  13876. </thead>
  13877. <tbody>
  13878. <tr>
  13879. <td>board</td>
  13880. <td>path</td>
  13881. <td>string</td>
  13882. <td>true</td>
  13883. <td>the ID of the board</td>
  13884. </tr>
  13885. </tbody>
  13886. </table>
  13887. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13888. <p><strong>board</strong>: the ID of the board</p>
  13889. <blockquote>
  13890. <p>Example responses</p>
  13891. </blockquote>
  13892. <blockquote>
  13893. <p>200 Response</p>
  13894. </blockquote>
  13895. <pre class="highlight tab tab-json"><code>[
  13896. {
  13897. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  13898. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  13899. }
  13900. ]
  13901. </code></pre>
  13902. <h3 id="get_all_swimlanes-responses">Responses</h3>
  13903. <table>
  13904. <thead>
  13905. <tr>
  13906. <th>Status</th>
  13907. <th>Meaning</th>
  13908. <th>Description</th>
  13909. <th>Schema</th>
  13910. </tr>
  13911. </thead>
  13912. <tbody>
  13913. <tr>
  13914. <td>200</td>
  13915. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13916. <td>200 response</td>
  13917. <td>Inline</td>
  13918. </tr>
  13919. </tbody>
  13920. </table>
  13921. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  13922. <p>Status Code <strong>200</strong></p>
  13923. <table>
  13924. <thead>
  13925. <tr>
  13926. <th>Name</th>
  13927. <th>Type</th>
  13928. <th>Required</th>
  13929. <th>Restrictions</th>
  13930. <th>Description</th>
  13931. </tr>
  13932. </thead>
  13933. <tbody>
  13934. <tr>
  13935. <td>» _id</td>
  13936. <td>string</td>
  13937. <td>false</td>
  13938. <td>none</td>
  13939. <td>none</td>
  13940. </tr>
  13941. <tr>
  13942. <td>» title</td>
  13943. <td>string</td>
  13944. <td>false</td>
  13945. <td>none</td>
  13946. <td>none</td>
  13947. </tr>
  13948. </tbody>
  13949. </table>
  13950. <aside class="warning">
  13951. To perform this operation, you must be authenticated by means of one of the following methods:
  13952. UserSecurity
  13953. </aside>
  13954. <h2 id="new_swimlane">new_swimlane</h2>
  13955. <p><a id="opIdnew_swimlane"></a></p>
  13956. <blockquote>
  13957. <p>Code samples</p>
  13958. </blockquote>
  13959. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13960. curl -X POST /api/boards/{board}/swimlanes \
  13961. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  13962. -H <span class="hljs-string">'Accept: application/json'</span> \
  13963. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13964. </code></pre>
  13965. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> HTTP/1.1
  13966. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13967. Accept: application/json
  13968. </span></code></pre>
  13969. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13970. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  13971. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13972. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13973. };
  13974. $.ajax({
  13975. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13976. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  13977. <span class="hljs-attr">headers</span>: headers,
  13978. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13979. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13980. }
  13981. })
  13982. </code></pre>
  13983. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  13984. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  13985. "title": "string"
  13986. }'</span>;
  13987. <span class="hljs-keyword">const</span> headers = {
  13988. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  13989. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13990. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13991. };
  13992. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13993. {
  13994. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  13995. <span class="hljs-attr">body</span>: inputBody,
  13996. <span class="hljs-attr">headers</span>: headers
  13997. })
  13998. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13999. <span class="hljs-keyword">return</span> res.json();
  14000. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14001. <span class="hljs-built_in">console</span>.log(body);
  14002. });
  14003. </code></pre>
  14004. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  14005. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  14006. headers = {
  14007. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  14008. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  14009. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  14010. }
  14011. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  14012. <span class="hljs-symbol">params:</span> {
  14013. }, <span class="hljs-symbol">headers:</span> headers
  14014. p JSON.parse(result)
  14015. </code></pre>
  14016. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14017. headers = {
  14018. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  14019. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  14020. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  14021. }
  14022. r = requests.post(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  14023. }, headers = headers)
  14024. <span class="hljs-keyword">print</span> r.json()
  14025. </code></pre>
  14026. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes"</span>);
  14027. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14028. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  14029. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14030. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14031. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14032. String inputLine;
  14033. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14034. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14035. response.append(inputLine);
  14036. }
  14037. in.close();
  14038. System.out.println(response.toString());
  14039. </code></pre>
  14040. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14041. <span class="hljs-keyword">import</span> (
  14042. <span class="hljs-string">"bytes"</span>
  14043. <span class="hljs-string">"net/http"</span>
  14044. )
  14045. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14046. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14047. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  14048. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  14049. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  14050. }
  14051. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14052. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  14053. req.Header = headers
  14054. client := &amp;http.Client{}
  14055. resp, err := client.Do(req)
  14056. <span class="hljs-comment">// ...</span>
  14057. }
  14058. </code></pre>
  14059. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  14060. <p><em>Add a swimlane to a board</em></p>
  14061. <blockquote>
  14062. <p>Body parameter</p>
  14063. </blockquote>
  14064. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  14065. </code></pre>
  14066. <h3 id="new_swimlane-parameters">Parameters</h3>
  14067. <table>
  14068. <thead>
  14069. <tr>
  14070. <th>Name</th>
  14071. <th>In</th>
  14072. <th>Type</th>
  14073. <th>Required</th>
  14074. <th>Description</th>
  14075. </tr>
  14076. </thead>
  14077. <tbody>
  14078. <tr>
  14079. <td>board</td>
  14080. <td>path</td>
  14081. <td>string</td>
  14082. <td>true</td>
  14083. <td>the ID of the board</td>
  14084. </tr>
  14085. <tr>
  14086. <td>body</td>
  14087. <td>body</td>
  14088. <td><a href="#schemanew_swimlane">new_swimlane</a></td>
  14089. <td>false</td>
  14090. <td>none</td>
  14091. </tr>
  14092. <tr>
  14093. <td>» title</td>
  14094. <td>body</td>
  14095. <td>string</td>
  14096. <td>true</td>
  14097. <td>the new title of the swimlane</td>
  14098. </tr>
  14099. </tbody>
  14100. </table>
  14101. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  14102. <p><strong>board</strong>: the ID of the board</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">"_id"</span>: <span class="hljs-string">"string"</span>
  14111. }
  14112. </code></pre>
  14113. <h3 id="new_swimlane-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="new_swimlane-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. <h2 id="get_swimlane">get_swimlane</h2>
  14159. <p><a id="opIdget_swimlane"></a></p>
  14160. <blockquote>
  14161. <p>Code samples</p>
  14162. </blockquote>
  14163. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14164. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  14165. -H <span class="hljs-string">'Accept: application/json'</span> \
  14166. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  14167. </code></pre>
  14168. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> HTTP/1.1
  14169. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  14170. <span class="undefined"></span></span></code></pre>
  14171. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  14172. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14173. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14174. };
  14175. $.ajax({
  14176. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14177. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  14178. <span class="hljs-attr">headers</span>: headers,
  14179. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  14180. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  14181. }
  14182. })
  14183. </code></pre>
  14184. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  14185. <span class="hljs-keyword">const</span> headers = {
  14186. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14187. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14188. };
  14189. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14190. {
  14191. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  14192. <span class="hljs-attr">headers</span>: headers
  14193. })
  14194. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14195. <span class="hljs-keyword">return</span> res.json();
  14196. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14197. <span class="hljs-built_in">console</span>.log(body);
  14198. });
  14199. </code></pre>
  14200. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  14201. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  14202. headers = {
  14203. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  14204. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  14205. }
  14206. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14207. <span class="hljs-symbol">params:</span> {
  14208. }, <span class="hljs-symbol">headers:</span> headers
  14209. p JSON.parse(result)
  14210. </code></pre>
  14211. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14212. headers = {
  14213. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  14214. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  14215. }
  14216. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  14217. }, headers = headers)
  14218. <span class="hljs-keyword">print</span> r.json()
  14219. </code></pre>
  14220. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>);
  14221. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14222. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  14223. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14224. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14225. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14226. String inputLine;
  14227. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14228. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14229. response.append(inputLine);
  14230. }
  14231. in.close();
  14232. System.out.println(response.toString());
  14233. </code></pre>
  14234. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14235. <span class="hljs-keyword">import</span> (
  14236. <span class="hljs-string">"bytes"</span>
  14237. <span class="hljs-string">"net/http"</span>
  14238. )
  14239. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14240. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14241. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  14242. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  14243. }
  14244. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14245. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  14246. req.Header = headers
  14247. client := &amp;http.Client{}
  14248. resp, err := client.Do(req)
  14249. <span class="hljs-comment">// ...</span>
  14250. }
  14251. </code></pre>
  14252. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  14253. <p><em>Get a swimlane</em></p>
  14254. <h3 id="get_swimlane-parameters">Parameters</h3>
  14255. <table>
  14256. <thead>
  14257. <tr>
  14258. <th>Name</th>
  14259. <th>In</th>
  14260. <th>Type</th>
  14261. <th>Required</th>
  14262. <th>Description</th>
  14263. </tr>
  14264. </thead>
  14265. <tbody>
  14266. <tr>
  14267. <td>board</td>
  14268. <td>path</td>
  14269. <td>string</td>
  14270. <td>true</td>
  14271. <td>the ID of the board</td>
  14272. </tr>
  14273. <tr>
  14274. <td>swimlane</td>
  14275. <td>path</td>
  14276. <td>string</td>
  14277. <td>true</td>
  14278. <td>the ID of the swimlane</td>
  14279. </tr>
  14280. </tbody>
  14281. </table>
  14282. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  14283. <p><strong>board</strong>: the ID of the board</p>
  14284. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  14285. <blockquote>
  14286. <p>Example responses</p>
  14287. </blockquote>
  14288. <blockquote>
  14289. <p>200 Response</p>
  14290. </blockquote>
  14291. <pre class="highlight tab tab-json"><code>{
  14292. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  14293. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  14294. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  14295. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  14296. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14297. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  14298. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  14299. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  14300. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  14301. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  14302. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  14303. }
  14304. </code></pre>
  14305. <h3 id="get_swimlane-responses">Responses</h3>
  14306. <table>
  14307. <thead>
  14308. <tr>
  14309. <th>Status</th>
  14310. <th>Meaning</th>
  14311. <th>Description</th>
  14312. <th>Schema</th>
  14313. </tr>
  14314. </thead>
  14315. <tbody>
  14316. <tr>
  14317. <td>200</td>
  14318. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14319. <td>200 response</td>
  14320. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  14321. </tr>
  14322. </tbody>
  14323. </table>
  14324. <aside class="warning">
  14325. To perform this operation, you must be authenticated by means of one of the following methods:
  14326. UserSecurity
  14327. </aside>
  14328. <h2 id="edit_swimlane">edit_swimlane</h2>
  14329. <p><a id="opIdedit_swimlane"></a></p>
  14330. <blockquote>
  14331. <p>Code samples</p>
  14332. </blockquote>
  14333. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14334. curl -X PUT /api/boards/{board}/swimlanes/{swimlane} \
  14335. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  14336. -H <span class="hljs-string">'Accept: application/json'</span> \
  14337. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  14338. </code></pre>
  14339. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> HTTP/1.1
  14340. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14341. Accept: application/json
  14342. </span></code></pre>
  14343. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  14344. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  14345. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14346. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14347. };
  14348. $.ajax({
  14349. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14350. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  14351. <span class="hljs-attr">headers</span>: headers,
  14352. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  14353. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  14354. }
  14355. })
  14356. </code></pre>
  14357. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  14358. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  14359. "title": "string"
  14360. }'</span>;
  14361. <span class="hljs-keyword">const</span> headers = {
  14362. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  14363. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14364. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14365. };
  14366. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14367. {
  14368. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  14369. <span class="hljs-attr">body</span>: inputBody,
  14370. <span class="hljs-attr">headers</span>: headers
  14371. })
  14372. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14373. <span class="hljs-keyword">return</span> res.json();
  14374. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14375. <span class="hljs-built_in">console</span>.log(body);
  14376. });
  14377. </code></pre>
  14378. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  14379. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  14380. headers = {
  14381. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  14382. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  14383. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  14384. }
  14385. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14386. <span class="hljs-symbol">params:</span> {
  14387. }, <span class="hljs-symbol">headers:</span> headers
  14388. p JSON.parse(result)
  14389. </code></pre>
  14390. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14391. headers = {
  14392. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  14393. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  14394. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  14395. }
  14396. r = requests.put(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  14397. }, headers = headers)
  14398. <span class="hljs-keyword">print</span> r.json()
  14399. </code></pre>
  14400. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>);
  14401. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14402. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  14403. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14404. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14405. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14406. String inputLine;
  14407. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14408. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14409. response.append(inputLine);
  14410. }
  14411. in.close();
  14412. System.out.println(response.toString());
  14413. </code></pre>
  14414. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14415. <span class="hljs-keyword">import</span> (
  14416. <span class="hljs-string">"bytes"</span>
  14417. <span class="hljs-string">"net/http"</span>
  14418. )
  14419. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14420. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14421. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  14422. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  14423. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  14424. }
  14425. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14426. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  14427. req.Header = headers
  14428. client := &amp;http.Client{}
  14429. resp, err := client.Do(req)
  14430. <span class="hljs-comment">// ...</span>
  14431. }
  14432. </code></pre>
  14433. <p><code>PUT /api/boards/{board}/swimlanes/{swimlane}</code></p>
  14434. <p><em>Edit the title of a swimlane</em></p>
  14435. <blockquote>
  14436. <p>Body parameter</p>
  14437. </blockquote>
  14438. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  14439. </code></pre>
  14440. <h3 id="edit_swimlane-parameters">Parameters</h3>
  14441. <table>
  14442. <thead>
  14443. <tr>
  14444. <th>Name</th>
  14445. <th>In</th>
  14446. <th>Type</th>
  14447. <th>Required</th>
  14448. <th>Description</th>
  14449. </tr>
  14450. </thead>
  14451. <tbody>
  14452. <tr>
  14453. <td>board</td>
  14454. <td>path</td>
  14455. <td>string</td>
  14456. <td>true</td>
  14457. <td>the ID of the board</td>
  14458. </tr>
  14459. <tr>
  14460. <td>swimlane</td>
  14461. <td>path</td>
  14462. <td>string</td>
  14463. <td>true</td>
  14464. <td>the ID of the swimlane to edit</td>
  14465. </tr>
  14466. <tr>
  14467. <td>body</td>
  14468. <td>body</td>
  14469. <td><a href="#schemanew_swimlane">new_swimlane</a></td>
  14470. <td>false</td>
  14471. <td>none</td>
  14472. </tr>
  14473. <tr>
  14474. <td>» title</td>
  14475. <td>body</td>
  14476. <td>string</td>
  14477. <td>true</td>
  14478. <td>the new title of the swimlane</td>
  14479. </tr>
  14480. </tbody>
  14481. </table>
  14482. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  14483. <p><strong>board</strong>: the ID of the board</p>
  14484. <p><strong>swimlane</strong>: the ID of the swimlane to edit</p>
  14485. <blockquote>
  14486. <p>Example responses</p>
  14487. </blockquote>
  14488. <blockquote>
  14489. <p>200 Response</p>
  14490. </blockquote>
  14491. <pre class="highlight tab tab-json"><code>{
  14492. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  14493. }
  14494. </code></pre>
  14495. <h3 id="edit_swimlane-responses">Responses</h3>
  14496. <table>
  14497. <thead>
  14498. <tr>
  14499. <th>Status</th>
  14500. <th>Meaning</th>
  14501. <th>Description</th>
  14502. <th>Schema</th>
  14503. </tr>
  14504. </thead>
  14505. <tbody>
  14506. <tr>
  14507. <td>200</td>
  14508. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14509. <td>200 response</td>
  14510. <td>Inline</td>
  14511. </tr>
  14512. </tbody>
  14513. </table>
  14514. <h3 id="edit_swimlane-responseschema">Response Schema</h3>
  14515. <p>Status Code <strong>200</strong></p>
  14516. <table>
  14517. <thead>
  14518. <tr>
  14519. <th>Name</th>
  14520. <th>Type</th>
  14521. <th>Required</th>
  14522. <th>Restrictions</th>
  14523. <th>Description</th>
  14524. </tr>
  14525. </thead>
  14526. <tbody>
  14527. <tr>
  14528. <td>» _id</td>
  14529. <td>string</td>
  14530. <td>false</td>
  14531. <td>none</td>
  14532. <td>none</td>
  14533. </tr>
  14534. </tbody>
  14535. </table>
  14536. <aside class="warning">
  14537. To perform this operation, you must be authenticated by means of one of the following methods:
  14538. UserSecurity
  14539. </aside>
  14540. <h2 id="delete_swimlane">delete_swimlane</h2>
  14541. <p><a id="opIddelete_swimlane"></a></p>
  14542. <blockquote>
  14543. <p>Code samples</p>
  14544. </blockquote>
  14545. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14546. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  14547. -H <span class="hljs-string">'Accept: application/json'</span> \
  14548. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  14549. </code></pre>
  14550. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> HTTP/1.1
  14551. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  14552. <span class="undefined"></span></span></code></pre>
  14553. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  14554. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14555. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14556. };
  14557. $.ajax({
  14558. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14559. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  14560. <span class="hljs-attr">headers</span>: headers,
  14561. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  14562. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  14563. }
  14564. })
  14565. </code></pre>
  14566. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node-fetch'</span>);
  14567. <span class="hljs-keyword">const</span> headers = {
  14568. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14569. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14570. };
  14571. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14572. {
  14573. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  14574. <span class="hljs-attr">headers</span>: headers
  14575. })
  14576. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14577. <span class="hljs-keyword">return</span> res.json();
  14578. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14579. <span class="hljs-built_in">console</span>.log(body);
  14580. });
  14581. </code></pre>
  14582. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  14583. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  14584. headers = {
  14585. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  14586. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  14587. }
  14588. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14589. <span class="hljs-symbol">params:</span> {
  14590. }, <span class="hljs-symbol">headers:</span> headers
  14591. p JSON.parse(result)
  14592. </code></pre>
  14593. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14594. headers = {
  14595. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  14596. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  14597. }
  14598. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  14599. }, headers = headers)
  14600. <span class="hljs-keyword">print</span> r.json()
  14601. </code></pre>
  14602. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>);
  14603. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14604. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  14605. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14606. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14607. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14608. String inputLine;
  14609. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14610. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14611. response.append(inputLine);
  14612. }
  14613. in.close();
  14614. System.out.println(response.toString());
  14615. </code></pre>
  14616. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14617. <span class="hljs-keyword">import</span> (
  14618. <span class="hljs-string">"bytes"</span>
  14619. <span class="hljs-string">"net/http"</span>
  14620. )
  14621. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14622. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14623. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  14624. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  14625. }
  14626. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14627. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  14628. req.Header = headers
  14629. client := &amp;http.Client{}
  14630. resp, err := client.Do(req)
  14631. <span class="hljs-comment">// ...</span>
  14632. }
  14633. </code></pre>
  14634. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  14635. <p><em>Delete a swimlane</em></p>
  14636. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  14637. <h3 id="delete_swimlane-parameters">Parameters</h3>
  14638. <table>
  14639. <thead>
  14640. <tr>
  14641. <th>Name</th>
  14642. <th>In</th>
  14643. <th>Type</th>
  14644. <th>Required</th>
  14645. <th>Description</th>
  14646. </tr>
  14647. </thead>
  14648. <tbody>
  14649. <tr>
  14650. <td>board</td>
  14651. <td>path</td>
  14652. <td>string</td>
  14653. <td>true</td>
  14654. <td>the ID of the board</td>
  14655. </tr>
  14656. <tr>
  14657. <td>swimlane</td>
  14658. <td>path</td>
  14659. <td>string</td>
  14660. <td>true</td>
  14661. <td>the ID of the swimlane</td>
  14662. </tr>
  14663. </tbody>
  14664. </table>
  14665. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  14666. <p><strong>board</strong>: the ID of the board</p>
  14667. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  14668. <blockquote>
  14669. <p>Example responses</p>
  14670. </blockquote>
  14671. <blockquote>
  14672. <p>200 Response</p>
  14673. </blockquote>
  14674. <pre class="highlight tab tab-json"><code>{
  14675. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  14676. }
  14677. </code></pre>
  14678. <h3 id="delete_swimlane-responses">Responses</h3>
  14679. <table>
  14680. <thead>
  14681. <tr>
  14682. <th>Status</th>
  14683. <th>Meaning</th>
  14684. <th>Description</th>
  14685. <th>Schema</th>
  14686. </tr>
  14687. </thead>
  14688. <tbody>
  14689. <tr>
  14690. <td>200</td>
  14691. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14692. <td>200 response</td>
  14693. <td>Inline</td>
  14694. </tr>
  14695. </tbody>
  14696. </table>
  14697. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  14698. <p>Status Code <strong>200</strong></p>
  14699. <table>
  14700. <thead>
  14701. <tr>
  14702. <th>Name</th>
  14703. <th>Type</th>
  14704. <th>Required</th>
  14705. <th>Restrictions</th>
  14706. <th>Description</th>
  14707. </tr>
  14708. </thead>
  14709. <tbody>
  14710. <tr>
  14711. <td>» _id</td>
  14712. <td>string</td>
  14713. <td>false</td>
  14714. <td>none</td>
  14715. <td>none</td>
  14716. </tr>
  14717. </tbody>
  14718. </table>
  14719. <aside class="warning">
  14720. To perform this operation, you must be authenticated by means of one of the following methods:
  14721. UserSecurity
  14722. </aside>
  14723. <h1 id="schemas">Schemas</h1>
  14724. <h2 id="tocsboards">Boards</h2>
  14725. <p><a id="schemaboards"></a></p>
  14726. <pre class="highlight tab tab-json"><code>{
  14727. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  14728. <span class="hljs-attr">"slug"</span>: <span class="hljs-string">"string"</span>,
  14729. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  14730. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  14731. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14732. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  14733. <span class="hljs-attr">"stars"</span>: <span class="hljs-number">0</span>,
  14734. <span class="hljs-attr">"labels"</span>: [
  14735. {
  14736. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  14737. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  14738. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>
  14739. }
  14740. ],
  14741. <span class="hljs-attr">"members"</span>: [
  14742. {
  14743. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  14744. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  14745. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  14746. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  14747. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  14748. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  14749. }
  14750. ],
  14751. <span class="hljs-attr">"permission"</span>: <span class="hljs-string">"public"</span>,
  14752. <span class="hljs-attr">"orgs"</span>: [
  14753. {
  14754. <span class="hljs-attr">"orgId"</span>: <span class="hljs-string">"string"</span>,
  14755. <span class="hljs-attr">"orgDisplayName"</span>: <span class="hljs-string">"string"</span>,
  14756. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  14757. }
  14758. ],
  14759. <span class="hljs-attr">"teams"</span>: [
  14760. {
  14761. <span class="hljs-attr">"teamId"</span>: <span class="hljs-string">"string"</span>,
  14762. <span class="hljs-attr">"teamDisplayName"</span>: <span class="hljs-string">"string"</span>,
  14763. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  14764. }
  14765. ],
  14766. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"belize"</span>,
  14767. <span class="hljs-attr">"backgroundImageURL"</span>: <span class="hljs-string">"string"</span>,
  14768. <span class="hljs-attr">"allowsCardCounterList"</span>: <span class="hljs-literal">true</span>,
  14769. <span class="hljs-attr">"allowsBoardMemberList"</span>: <span class="hljs-literal">true</span>,
  14770. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  14771. <span class="hljs-attr">"subtasksDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  14772. <span class="hljs-attr">"subtasksDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  14773. <span class="hljs-attr">"dateSettingsDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  14774. <span class="hljs-attr">"dateSettingsDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  14775. <span class="hljs-attr">"allowsSubtasks"</span>: <span class="hljs-literal">true</span>,
  14776. <span class="hljs-attr">"allowsAttachments"</span>: <span class="hljs-literal">true</span>,
  14777. <span class="hljs-attr">"allowsChecklists"</span>: <span class="hljs-literal">true</span>,
  14778. <span class="hljs-attr">"allowsComments"</span>: <span class="hljs-literal">true</span>,
  14779. <span class="hljs-attr">"allowsDescriptionTitle"</span>: <span class="hljs-literal">true</span>,
  14780. <span class="hljs-attr">"allowsDescriptionText"</span>: <span class="hljs-literal">true</span>,
  14781. <span class="hljs-attr">"allowsDescriptionTextOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14782. <span class="hljs-attr">"allowsCoverAttachmentOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14783. <span class="hljs-attr">"allowsBadgeAttachmentOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14784. <span class="hljs-attr">"allowsCardSortingByNumberOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14785. <span class="hljs-attr">"allowsCardNumber"</span>: <span class="hljs-literal">true</span>,
  14786. <span class="hljs-attr">"allowsActivities"</span>: <span class="hljs-literal">true</span>,
  14787. <span class="hljs-attr">"allowsLabels"</span>: <span class="hljs-literal">true</span>,
  14788. <span class="hljs-attr">"allowsCreator"</span>: <span class="hljs-literal">true</span>,
  14789. <span class="hljs-attr">"allowsCreatorOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14790. <span class="hljs-attr">"allowsAssignee"</span>: <span class="hljs-literal">true</span>,
  14791. <span class="hljs-attr">"allowsMembers"</span>: <span class="hljs-literal">true</span>,
  14792. <span class="hljs-attr">"allowsRequestedBy"</span>: <span class="hljs-literal">true</span>,
  14793. <span class="hljs-attr">"allowsCardSortingByNumber"</span>: <span class="hljs-literal">true</span>,
  14794. <span class="hljs-attr">"allowsShowLists"</span>: <span class="hljs-literal">true</span>,
  14795. <span class="hljs-attr">"allowsAssignedBy"</span>: <span class="hljs-literal">true</span>,
  14796. <span class="hljs-attr">"allowsShowListsOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14797. <span class="hljs-attr">"allowsReceivedDate"</span>: <span class="hljs-literal">true</span>,
  14798. <span class="hljs-attr">"allowsStartDate"</span>: <span class="hljs-literal">true</span>,
  14799. <span class="hljs-attr">"allowsEndDate"</span>: <span class="hljs-literal">true</span>,
  14800. <span class="hljs-attr">"allowsDueDate"</span>: <span class="hljs-literal">true</span>,
  14801. <span class="hljs-attr">"presentParentTask"</span>: <span class="hljs-string">"prefix-with-full-path"</span>,
  14802. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  14803. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  14804. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  14805. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  14806. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  14807. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  14808. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"board"</span>,
  14809. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  14810. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>
  14811. }
  14812. </code></pre>
  14813. <p><em>This is a Board.</em></p>
  14814. <h3 id="properties">Properties</h3>
  14815. <table>
  14816. <thead>
  14817. <tr>
  14818. <th>Name</th>
  14819. <th>Type</th>
  14820. <th>Required</th>
  14821. <th>Restrictions</th>
  14822. <th>Description</th>
  14823. </tr>
  14824. </thead>
  14825. <tbody>
  14826. <tr>
  14827. <td>title</td>
  14828. <td>string</td>
  14829. <td>true</td>
  14830. <td>none</td>
  14831. <td>The title of the board</td>
  14832. </tr>
  14833. <tr>
  14834. <td>slug</td>
  14835. <td>string</td>
  14836. <td>true</td>
  14837. <td>none</td>
  14838. <td>The title slugified.</td>
  14839. </tr>
  14840. <tr>
  14841. <td>archived</td>
  14842. <td>boolean</td>
  14843. <td>true</td>
  14844. <td>none</td>
  14845. <td>Is the board archived?</td>
  14846. </tr>
  14847. <tr>
  14848. <td>archivedAt</td>
  14849. <td>string|null</td>
  14850. <td>false</td>
  14851. <td>none</td>
  14852. <td>Latest archiving time of the board</td>
  14853. </tr>
  14854. <tr>
  14855. <td>createdAt</td>
  14856. <td>string</td>
  14857. <td>true</td>
  14858. <td>none</td>
  14859. <td>Creation time of the board</td>
  14860. </tr>
  14861. <tr>
  14862. <td>modifiedAt</td>
  14863. <td>string|null</td>
  14864. <td>false</td>
  14865. <td>none</td>
  14866. <td>Last modification time of the board</td>
  14867. </tr>
  14868. <tr>
  14869. <td>stars</td>
  14870. <td>number</td>
  14871. <td>true</td>
  14872. <td>none</td>
  14873. <td>How many stars the board has</td>
  14874. </tr>
  14875. <tr>
  14876. <td>labels</td>
  14877. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]|null</td>
  14878. <td>false</td>
  14879. <td>none</td>
  14880. <td>List of labels attached to a board</td>
  14881. </tr>
  14882. <tr>
  14883. <td>members</td>
  14884. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  14885. <td>true</td>
  14886. <td>none</td>
  14887. <td>List of members of a board</td>
  14888. </tr>
  14889. <tr>
  14890. <td>permission</td>
  14891. <td>string</td>
  14892. <td>true</td>
  14893. <td>none</td>
  14894. <td>visibility of the board</td>
  14895. </tr>
  14896. <tr>
  14897. <td>orgs</td>
  14898. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]|null</td>
  14899. <td>false</td>
  14900. <td>none</td>
  14901. <td>the list of organizations that a board belongs to</td>
  14902. </tr>
  14903. <tr>
  14904. <td>teams</td>
  14905. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]|null</td>
  14906. <td>false</td>
  14907. <td>none</td>
  14908. <td>the list of teams that a board belongs to</td>
  14909. </tr>
  14910. <tr>
  14911. <td>color</td>
  14912. <td>string</td>
  14913. <td>true</td>
  14914. <td>none</td>
  14915. <td>The color of the board.</td>
  14916. </tr>
  14917. <tr>
  14918. <td>backgroundImageURL</td>
  14919. <td>string|null</td>
  14920. <td>false</td>
  14921. <td>none</td>
  14922. <td>The background image URL of the board.</td>
  14923. </tr>
  14924. <tr>
  14925. <td>allowsCardCounterList</td>
  14926. <td>boolean</td>
  14927. <td>true</td>
  14928. <td>none</td>
  14929. <td>Show card counter per list</td>
  14930. </tr>
  14931. <tr>
  14932. <td>allowsBoardMemberList</td>
  14933. <td>boolean</td>
  14934. <td>true</td>
  14935. <td>none</td>
  14936. <td>Show board member list</td>
  14937. </tr>
  14938. <tr>
  14939. <td>description</td>
  14940. <td>string|null</td>
  14941. <td>false</td>
  14942. <td>none</td>
  14943. <td>The description of the board</td>
  14944. </tr>
  14945. <tr>
  14946. <td>subtasksDefaultBoardId</td>
  14947. <td>string|null</td>
  14948. <td>false</td>
  14949. <td>none</td>
  14950. <td>The default board ID assigned to subtasks.</td>
  14951. </tr>
  14952. <tr>
  14953. <td>subtasksDefaultListId</td>
  14954. <td>string|null</td>
  14955. <td>false</td>
  14956. <td>none</td>
  14957. <td>The default List ID assigned to subtasks.</td>
  14958. </tr>
  14959. <tr>
  14960. <td>dateSettingsDefaultBoardId</td>
  14961. <td>string|null</td>
  14962. <td>false</td>
  14963. <td>none</td>
  14964. <td>none</td>
  14965. </tr>
  14966. <tr>
  14967. <td>dateSettingsDefaultListId</td>
  14968. <td>string|null</td>
  14969. <td>false</td>
  14970. <td>none</td>
  14971. <td>none</td>
  14972. </tr>
  14973. <tr>
  14974. <td>allowsSubtasks</td>
  14975. <td>boolean</td>
  14976. <td>true</td>
  14977. <td>none</td>
  14978. <td>Does the board allows subtasks?</td>
  14979. </tr>
  14980. <tr>
  14981. <td>allowsAttachments</td>
  14982. <td>boolean</td>
  14983. <td>true</td>
  14984. <td>none</td>
  14985. <td>Does the board allows attachments?</td>
  14986. </tr>
  14987. <tr>
  14988. <td>allowsChecklists</td>
  14989. <td>boolean</td>
  14990. <td>true</td>
  14991. <td>none</td>
  14992. <td>Does the board allows checklists?</td>
  14993. </tr>
  14994. <tr>
  14995. <td>allowsComments</td>
  14996. <td>boolean</td>
  14997. <td>true</td>
  14998. <td>none</td>
  14999. <td>Does the board allows comments?</td>
  15000. </tr>
  15001. <tr>
  15002. <td>allowsDescriptionTitle</td>
  15003. <td>boolean</td>
  15004. <td>true</td>
  15005. <td>none</td>
  15006. <td>Does the board allows description title?</td>
  15007. </tr>
  15008. <tr>
  15009. <td>allowsDescriptionText</td>
  15010. <td>boolean</td>
  15011. <td>true</td>
  15012. <td>none</td>
  15013. <td>Does the board allows description text?</td>
  15014. </tr>
  15015. <tr>
  15016. <td>allowsDescriptionTextOnMinicard</td>
  15017. <td>boolean</td>
  15018. <td>true</td>
  15019. <td>none</td>
  15020. <td>Does the board allows description text on minicard?</td>
  15021. </tr>
  15022. <tr>
  15023. <td>allowsCoverAttachmentOnMinicard</td>
  15024. <td>boolean</td>
  15025. <td>true</td>
  15026. <td>none</td>
  15027. <td>Does the board allows cover attachment on minicard?</td>
  15028. </tr>
  15029. <tr>
  15030. <td>allowsBadgeAttachmentOnMinicard</td>
  15031. <td>boolean</td>
  15032. <td>true</td>
  15033. <td>none</td>
  15034. <td>Does the board allows badge attachment on minicard?</td>
  15035. </tr>
  15036. <tr>
  15037. <td>allowsCardSortingByNumberOnMinicard</td>
  15038. <td>boolean</td>
  15039. <td>true</td>
  15040. <td>none</td>
  15041. <td>Does the board allows card sorting by number on minicard?</td>
  15042. </tr>
  15043. <tr>
  15044. <td>allowsCardNumber</td>
  15045. <td>boolean</td>
  15046. <td>true</td>
  15047. <td>none</td>
  15048. <td>Does the board allows card numbers?</td>
  15049. </tr>
  15050. <tr>
  15051. <td>allowsActivities</td>
  15052. <td>boolean</td>
  15053. <td>true</td>
  15054. <td>none</td>
  15055. <td>Does the board allows comments?</td>
  15056. </tr>
  15057. <tr>
  15058. <td>allowsLabels</td>
  15059. <td>boolean</td>
  15060. <td>true</td>
  15061. <td>none</td>
  15062. <td>Does the board allows labels?</td>
  15063. </tr>
  15064. <tr>
  15065. <td>allowsCreator</td>
  15066. <td>boolean</td>
  15067. <td>true</td>
  15068. <td>none</td>
  15069. <td>Does the board allow creator?</td>
  15070. </tr>
  15071. <tr>
  15072. <td>allowsCreatorOnMinicard</td>
  15073. <td>boolean</td>
  15074. <td>true</td>
  15075. <td>none</td>
  15076. <td>Does the board allow creator?</td>
  15077. </tr>
  15078. <tr>
  15079. <td>allowsAssignee</td>
  15080. <td>boolean</td>
  15081. <td>true</td>
  15082. <td>none</td>
  15083. <td>Does the board allows assignee?</td>
  15084. </tr>
  15085. <tr>
  15086. <td>allowsMembers</td>
  15087. <td>boolean</td>
  15088. <td>true</td>
  15089. <td>none</td>
  15090. <td>Does the board allows members?</td>
  15091. </tr>
  15092. <tr>
  15093. <td>allowsRequestedBy</td>
  15094. <td>boolean</td>
  15095. <td>true</td>
  15096. <td>none</td>
  15097. <td>Does the board allows requested by?</td>
  15098. </tr>
  15099. <tr>
  15100. <td>allowsCardSortingByNumber</td>
  15101. <td>boolean</td>
  15102. <td>true</td>
  15103. <td>none</td>
  15104. <td>Does the board allows card sorting by number?</td>
  15105. </tr>
  15106. <tr>
  15107. <td>allowsShowLists</td>
  15108. <td>boolean</td>
  15109. <td>true</td>
  15110. <td>none</td>
  15111. <td>Does the board allows show lists on the card?</td>
  15112. </tr>
  15113. <tr>
  15114. <td>allowsAssignedBy</td>
  15115. <td>boolean</td>
  15116. <td>true</td>
  15117. <td>none</td>
  15118. <td>Does the board allows requested by?</td>
  15119. </tr>
  15120. <tr>
  15121. <td>allowsShowListsOnMinicard</td>
  15122. <td>boolean</td>
  15123. <td>true</td>
  15124. <td>none</td>
  15125. <td>Does the board allow showing list names on all minicards?</td>
  15126. </tr>
  15127. <tr>
  15128. <td>allowsReceivedDate</td>
  15129. <td>boolean</td>
  15130. <td>true</td>
  15131. <td>none</td>
  15132. <td>Does the board allows received date?</td>
  15133. </tr>
  15134. <tr>
  15135. <td>allowsStartDate</td>
  15136. <td>boolean</td>
  15137. <td>true</td>
  15138. <td>none</td>
  15139. <td>Does the board allows start date?</td>
  15140. </tr>
  15141. <tr>
  15142. <td>allowsEndDate</td>
  15143. <td>boolean</td>
  15144. <td>true</td>
  15145. <td>none</td>
  15146. <td>Does the board allows end date?</td>
  15147. </tr>
  15148. <tr>
  15149. <td>allowsDueDate</td>
  15150. <td>boolean</td>
  15151. <td>true</td>
  15152. <td>none</td>
  15153. <td>Does the board allows due date?</td>
  15154. </tr>
  15155. <tr>
  15156. <td>presentParentTask</td>
  15157. <td>string|null</td>
  15158. <td>false</td>
  15159. <td>none</td>
  15160. <td>Controls how to present the parent task: - <code>prefix-with-full-path</code>: add a prefix with the full path - <code>prefix-with-parent</code>: add a prefisx with the parent name - <code>subtext-with-full-path</code>: add a subtext with the full path - <code>subtext-with-parent</code>: add a subtext with the parent name - <code>no-parent</code>: does not show the parent at all</td>
  15161. </tr>
  15162. <tr>
  15163. <td>receivedAt</td>
  15164. <td>string|null</td>
  15165. <td>false</td>
  15166. <td>none</td>
  15167. <td>Date the card was received</td>
  15168. </tr>
  15169. <tr>
  15170. <td>startAt</td>
  15171. <td>string|null</td>
  15172. <td>false</td>
  15173. <td>none</td>
  15174. <td>Starting date of the board.</td>
  15175. </tr>
  15176. <tr>
  15177. <td>dueAt</td>
  15178. <td>string|null</td>
  15179. <td>false</td>
  15180. <td>none</td>
  15181. <td>Due date of the board.</td>
  15182. </tr>
  15183. <tr>
  15184. <td>endAt</td>
  15185. <td>string|null</td>
  15186. <td>false</td>
  15187. <td>none</td>
  15188. <td>End date of the board.</td>
  15189. </tr>
  15190. <tr>
  15191. <td>spentTime</td>
  15192. <td>number|null</td>
  15193. <td>false</td>
  15194. <td>none</td>
  15195. <td>Time spent in the board.</td>
  15196. </tr>
  15197. <tr>
  15198. <td>isOvertime</td>
  15199. <td>boolean|null</td>
  15200. <td>false</td>
  15201. <td>none</td>
  15202. <td>Is the board overtimed?</td>
  15203. </tr>
  15204. <tr>
  15205. <td>type</td>
  15206. <td>string</td>
  15207. <td>true</td>
  15208. <td>none</td>
  15209. <td>The type of board possible values: board, template-board, template-container</td>
  15210. </tr>
  15211. <tr>
  15212. <td>sort</td>
  15213. <td>number</td>
  15214. <td>true</td>
  15215. <td>none</td>
  15216. <td>Sort value</td>
  15217. </tr>
  15218. <tr>
  15219. <td>showActivities</td>
  15220. <td>boolean</td>
  15221. <td>true</td>
  15222. <td>none</td>
  15223. <td>none</td>
  15224. </tr>
  15225. </tbody>
  15226. </table>
  15227. <h4 id="enumerated-values">Enumerated Values</h4>
  15228. <table>
  15229. <thead>
  15230. <tr>
  15231. <th>Property</th>
  15232. <th>Value</th>
  15233. </tr>
  15234. </thead>
  15235. <tbody>
  15236. <tr>
  15237. <td>permission</td>
  15238. <td>public</td>
  15239. </tr>
  15240. <tr>
  15241. <td>permission</td>
  15242. <td>private</td>
  15243. </tr>
  15244. <tr>
  15245. <td>color</td>
  15246. <td>belize</td>
  15247. </tr>
  15248. <tr>
  15249. <td>color</td>
  15250. <td>nephritis</td>
  15251. </tr>
  15252. <tr>
  15253. <td>color</td>
  15254. <td>pomegranate</td>
  15255. </tr>
  15256. <tr>
  15257. <td>color</td>
  15258. <td>pumpkin</td>
  15259. </tr>
  15260. <tr>
  15261. <td>color</td>
  15262. <td>wisteria</td>
  15263. </tr>
  15264. <tr>
  15265. <td>color</td>
  15266. <td>moderatepink</td>
  15267. </tr>
  15268. <tr>
  15269. <td>color</td>
  15270. <td>strongcyan</td>
  15271. </tr>
  15272. <tr>
  15273. <td>color</td>
  15274. <td>limegreen</td>
  15275. </tr>
  15276. <tr>
  15277. <td>color</td>
  15278. <td>midnight</td>
  15279. </tr>
  15280. <tr>
  15281. <td>color</td>
  15282. <td>dark</td>
  15283. </tr>
  15284. <tr>
  15285. <td>color</td>
  15286. <td>relax</td>
  15287. </tr>
  15288. <tr>
  15289. <td>color</td>
  15290. <td>corteza</td>
  15291. </tr>
  15292. <tr>
  15293. <td>color</td>
  15294. <td>clearblue</td>
  15295. </tr>
  15296. <tr>
  15297. <td>color</td>
  15298. <td>natural</td>
  15299. </tr>
  15300. <tr>
  15301. <td>color</td>
  15302. <td>modern</td>
  15303. </tr>
  15304. <tr>
  15305. <td>color</td>
  15306. <td>moderndark</td>
  15307. </tr>
  15308. <tr>
  15309. <td>color</td>
  15310. <td>exodark</td>
  15311. </tr>
  15312. <tr>
  15313. <td>color</td>
  15314. <td>cleandark</td>
  15315. </tr>
  15316. <tr>
  15317. <td>color</td>
  15318. <td>cleanlight</td>
  15319. </tr>
  15320. <tr>
  15321. <td>presentParentTask</td>
  15322. <td>prefix-with-full-path</td>
  15323. </tr>
  15324. <tr>
  15325. <td>presentParentTask</td>
  15326. <td>prefix-with-parent</td>
  15327. </tr>
  15328. <tr>
  15329. <td>presentParentTask</td>
  15330. <td>subtext-with-full-path</td>
  15331. </tr>
  15332. <tr>
  15333. <td>presentParentTask</td>
  15334. <td>subtext-with-parent</td>
  15335. </tr>
  15336. <tr>
  15337. <td>presentParentTask</td>
  15338. <td>no-parent</td>
  15339. </tr>
  15340. <tr>
  15341. <td>type</td>
  15342. <td>board</td>
  15343. </tr>
  15344. <tr>
  15345. <td>type</td>
  15346. <td>template-board</td>
  15347. </tr>
  15348. <tr>
  15349. <td>type</td>
  15350. <td>template-container</td>
  15351. </tr>
  15352. </tbody>
  15353. </table>
  15354. <h2 id="tocsboardslabels">BoardsLabels</h2>
  15355. <p><a id="schemaboardslabels"></a></p>
  15356. <pre class="highlight tab tab-json"><code>{
  15357. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  15358. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  15359. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>
  15360. }
  15361. </code></pre>
  15362. <h3 id="properties">Properties</h3>
  15363. <table>
  15364. <thead>
  15365. <tr>
  15366. <th>Name</th>
  15367. <th>Type</th>
  15368. <th>Required</th>
  15369. <th>Restrictions</th>
  15370. <th>Description</th>
  15371. </tr>
  15372. </thead>
  15373. <tbody>
  15374. <tr>
  15375. <td>_id</td>
  15376. <td>string</td>
  15377. <td>true</td>
  15378. <td>none</td>
  15379. <td>Unique id of a label</td>
  15380. </tr>
  15381. <tr>
  15382. <td>name</td>
  15383. <td>string</td>
  15384. <td>false</td>
  15385. <td>none</td>
  15386. <td>Name of a label</td>
  15387. </tr>
  15388. <tr>
  15389. <td>color</td>
  15390. <td>string</td>
  15391. <td>true</td>
  15392. <td>none</td>
  15393. <td>color of a label. Can be amongst <code>green</code>, <code>yellow</code>, <code>orange</code>, <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>, <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>, <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>, <code>indigo</code></td>
  15394. </tr>
  15395. </tbody>
  15396. </table>
  15397. <h4 id="enumerated-values">Enumerated Values</h4>
  15398. <table>
  15399. <thead>
  15400. <tr>
  15401. <th>Property</th>
  15402. <th>Value</th>
  15403. </tr>
  15404. </thead>
  15405. <tbody>
  15406. <tr>
  15407. <td>color</td>
  15408. <td>white</td>
  15409. </tr>
  15410. <tr>
  15411. <td>color</td>
  15412. <td>green</td>
  15413. </tr>
  15414. <tr>
  15415. <td>color</td>
  15416. <td>yellow</td>
  15417. </tr>
  15418. <tr>
  15419. <td>color</td>
  15420. <td>orange</td>
  15421. </tr>
  15422. <tr>
  15423. <td>color</td>
  15424. <td>red</td>
  15425. </tr>
  15426. <tr>
  15427. <td>color</td>
  15428. <td>purple</td>
  15429. </tr>
  15430. <tr>
  15431. <td>color</td>
  15432. <td>blue</td>
  15433. </tr>
  15434. <tr>
  15435. <td>color</td>
  15436. <td>sky</td>
  15437. </tr>
  15438. <tr>
  15439. <td>color</td>
  15440. <td>lime</td>
  15441. </tr>
  15442. <tr>
  15443. <td>color</td>
  15444. <td>pink</td>
  15445. </tr>
  15446. <tr>
  15447. <td>color</td>
  15448. <td>black</td>
  15449. </tr>
  15450. <tr>
  15451. <td>color</td>
  15452. <td>silver</td>
  15453. </tr>
  15454. <tr>
  15455. <td>color</td>
  15456. <td>peachpuff</td>
  15457. </tr>
  15458. <tr>
  15459. <td>color</td>
  15460. <td>crimson</td>
  15461. </tr>
  15462. <tr>
  15463. <td>color</td>
  15464. <td>plum</td>
  15465. </tr>
  15466. <tr>
  15467. <td>color</td>
  15468. <td>darkgreen</td>
  15469. </tr>
  15470. <tr>
  15471. <td>color</td>
  15472. <td>slateblue</td>
  15473. </tr>
  15474. <tr>
  15475. <td>color</td>
  15476. <td>magenta</td>
  15477. </tr>
  15478. <tr>
  15479. <td>color</td>
  15480. <td>gold</td>
  15481. </tr>
  15482. <tr>
  15483. <td>color</td>
  15484. <td>navy</td>
  15485. </tr>
  15486. <tr>
  15487. <td>color</td>
  15488. <td>gray</td>
  15489. </tr>
  15490. <tr>
  15491. <td>color</td>
  15492. <td>saddlebrown</td>
  15493. </tr>
  15494. <tr>
  15495. <td>color</td>
  15496. <td>paleturquoise</td>
  15497. </tr>
  15498. <tr>
  15499. <td>color</td>
  15500. <td>mistyrose</td>
  15501. </tr>
  15502. <tr>
  15503. <td>color</td>
  15504. <td>indigo</td>
  15505. </tr>
  15506. </tbody>
  15507. </table>
  15508. <h2 id="tocsboardsmembers">BoardsMembers</h2>
  15509. <p><a id="schemaboardsmembers"></a></p>
  15510. <pre class="highlight tab tab-json"><code>{
  15511. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  15512. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  15513. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  15514. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  15515. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  15516. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  15517. }
  15518. </code></pre>
  15519. <h3 id="properties">Properties</h3>
  15520. <table>
  15521. <thead>
  15522. <tr>
  15523. <th>Name</th>
  15524. <th>Type</th>
  15525. <th>Required</th>
  15526. <th>Restrictions</th>
  15527. <th>Description</th>
  15528. </tr>
  15529. </thead>
  15530. <tbody>
  15531. <tr>
  15532. <td>userId</td>
  15533. <td>string</td>
  15534. <td>true</td>
  15535. <td>none</td>
  15536. <td>The uniq ID of the member</td>
  15537. </tr>
  15538. <tr>
  15539. <td>isAdmin</td>
  15540. <td>boolean</td>
  15541. <td>true</td>
  15542. <td>none</td>
  15543. <td>Is the member an admin of the board?</td>
  15544. </tr>
  15545. <tr>
  15546. <td>isActive</td>
  15547. <td>boolean</td>
  15548. <td>true</td>
  15549. <td>none</td>
  15550. <td>Is the member active?</td>
  15551. </tr>
  15552. <tr>
  15553. <td>isNoComments</td>
  15554. <td>boolean</td>
  15555. <td>false</td>
  15556. <td>none</td>
  15557. <td>Is the member not allowed to make comments</td>
  15558. </tr>
  15559. <tr>
  15560. <td>isCommentOnly</td>
  15561. <td>boolean</td>
  15562. <td>false</td>
  15563. <td>none</td>
  15564. <td>Is the member only allowed to comment on the board</td>
  15565. </tr>
  15566. <tr>
  15567. <td>isWorker</td>
  15568. <td>boolean</td>
  15569. <td>false</td>
  15570. <td>none</td>
  15571. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  15572. </tr>
  15573. </tbody>
  15574. </table>
  15575. <h2 id="tocsboardsorgs">BoardsOrgs</h2>
  15576. <p><a id="schemaboardsorgs"></a></p>
  15577. <pre class="highlight tab tab-json"><code>{
  15578. <span class="hljs-attr">"orgId"</span>: <span class="hljs-string">"string"</span>,
  15579. <span class="hljs-attr">"orgDisplayName"</span>: <span class="hljs-string">"string"</span>,
  15580. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  15581. }
  15582. </code></pre>
  15583. <h3 id="properties">Properties</h3>
  15584. <table>
  15585. <thead>
  15586. <tr>
  15587. <th>Name</th>
  15588. <th>Type</th>
  15589. <th>Required</th>
  15590. <th>Restrictions</th>
  15591. <th>Description</th>
  15592. </tr>
  15593. </thead>
  15594. <tbody>
  15595. <tr>
  15596. <td>orgId</td>
  15597. <td>string</td>
  15598. <td>true</td>
  15599. <td>none</td>
  15600. <td>The uniq ID of the organization</td>
  15601. </tr>
  15602. <tr>
  15603. <td>orgDisplayName</td>
  15604. <td>string</td>
  15605. <td>true</td>
  15606. <td>none</td>
  15607. <td>The display name of the organization</td>
  15608. </tr>
  15609. <tr>
  15610. <td>isActive</td>
  15611. <td>boolean</td>
  15612. <td>true</td>
  15613. <td>none</td>
  15614. <td>Is the organization active?</td>
  15615. </tr>
  15616. </tbody>
  15617. </table>
  15618. <h2 id="tocsboardsteams">BoardsTeams</h2>
  15619. <p><a id="schemaboardsteams"></a></p>
  15620. <pre class="highlight tab tab-json"><code>{
  15621. <span class="hljs-attr">"teamId"</span>: <span class="hljs-string">"string"</span>,
  15622. <span class="hljs-attr">"teamDisplayName"</span>: <span class="hljs-string">"string"</span>,
  15623. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  15624. }
  15625. </code></pre>
  15626. <h3 id="properties">Properties</h3>
  15627. <table>
  15628. <thead>
  15629. <tr>
  15630. <th>Name</th>
  15631. <th>Type</th>
  15632. <th>Required</th>
  15633. <th>Restrictions</th>
  15634. <th>Description</th>
  15635. </tr>
  15636. </thead>
  15637. <tbody>
  15638. <tr>
  15639. <td>teamId</td>
  15640. <td>string</td>
  15641. <td>true</td>
  15642. <td>none</td>
  15643. <td>The uniq ID of the team</td>
  15644. </tr>
  15645. <tr>
  15646. <td>teamDisplayName</td>
  15647. <td>string</td>
  15648. <td>true</td>
  15649. <td>none</td>
  15650. <td>The display name of the team</td>
  15651. </tr>
  15652. <tr>
  15653. <td>isActive</td>
  15654. <td>boolean</td>
  15655. <td>true</td>
  15656. <td>none</td>
  15657. <td>Is the team active?</td>
  15658. </tr>
  15659. </tbody>
  15660. </table>
  15661. <h2 id="tocscardcomments">CardComments</h2>
  15662. <p><a id="schemacardcomments"></a></p>
  15663. <pre class="highlight tab tab-json"><code>{
  15664. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  15665. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  15666. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  15667. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  15668. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  15669. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  15670. }
  15671. </code></pre>
  15672. <p><em>A comment on a card</em></p>
  15673. <h3 id="properties">Properties</h3>
  15674. <table>
  15675. <thead>
  15676. <tr>
  15677. <th>Name</th>
  15678. <th>Type</th>
  15679. <th>Required</th>
  15680. <th>Restrictions</th>
  15681. <th>Description</th>
  15682. </tr>
  15683. </thead>
  15684. <tbody>
  15685. <tr>
  15686. <td>boardId</td>
  15687. <td>string</td>
  15688. <td>true</td>
  15689. <td>none</td>
  15690. <td>the board ID</td>
  15691. </tr>
  15692. <tr>
  15693. <td>cardId</td>
  15694. <td>string</td>
  15695. <td>true</td>
  15696. <td>none</td>
  15697. <td>the card ID</td>
  15698. </tr>
  15699. <tr>
  15700. <td>text</td>
  15701. <td>string</td>
  15702. <td>true</td>
  15703. <td>none</td>
  15704. <td>the text of the comment</td>
  15705. </tr>
  15706. <tr>
  15707. <td>createdAt</td>
  15708. <td>string</td>
  15709. <td>true</td>
  15710. <td>none</td>
  15711. <td>when was the comment created</td>
  15712. </tr>
  15713. <tr>
  15714. <td>modifiedAt</td>
  15715. <td>string</td>
  15716. <td>true</td>
  15717. <td>none</td>
  15718. <td>none</td>
  15719. </tr>
  15720. <tr>
  15721. <td>userId</td>
  15722. <td>string</td>
  15723. <td>true</td>
  15724. <td>none</td>
  15725. <td>the author ID of the comment</td>
  15726. </tr>
  15727. </tbody>
  15728. </table>
  15729. <h2 id="tocscards">Cards</h2>
  15730. <p><a id="schemacards"></a></p>
  15731. <pre class="highlight tab tab-json"><code>{
  15732. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  15733. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  15734. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  15735. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  15736. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  15737. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  15738. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  15739. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  15740. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  15741. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  15742. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  15743. <span class="hljs-attr">"customFields"</span>: [
  15744. {}
  15745. ],
  15746. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  15747. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  15748. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  15749. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  15750. <span class="hljs-attr">"labelIds"</span>: [
  15751. <span class="hljs-string">"string"</span>
  15752. ],
  15753. <span class="hljs-attr">"members"</span>: [
  15754. <span class="hljs-string">"string"</span>
  15755. ],
  15756. <span class="hljs-attr">"assignees"</span>: [
  15757. <span class="hljs-string">"string"</span>
  15758. ],
  15759. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  15760. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  15761. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  15762. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  15763. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  15764. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  15765. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  15766. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  15767. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  15768. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  15769. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  15770. <span class="hljs-attr">"vote"</span>: {
  15771. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  15772. <span class="hljs-attr">"positive"</span>: [
  15773. <span class="hljs-string">"string"</span>
  15774. ],
  15775. <span class="hljs-attr">"negative"</span>: [
  15776. <span class="hljs-string">"string"</span>
  15777. ],
  15778. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  15779. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  15780. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  15781. },
  15782. <span class="hljs-attr">"poker"</span>: {
  15783. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  15784. <span class="hljs-attr">"one"</span>: [
  15785. <span class="hljs-string">"string"</span>
  15786. ],
  15787. <span class="hljs-attr">"two"</span>: [
  15788. <span class="hljs-string">"string"</span>
  15789. ],
  15790. <span class="hljs-attr">"three"</span>: [
  15791. <span class="hljs-string">"string"</span>
  15792. ],
  15793. <span class="hljs-attr">"five"</span>: [
  15794. <span class="hljs-string">"string"</span>
  15795. ],
  15796. <span class="hljs-attr">"eight"</span>: [
  15797. <span class="hljs-string">"string"</span>
  15798. ],
  15799. <span class="hljs-attr">"thirteen"</span>: [
  15800. <span class="hljs-string">"string"</span>
  15801. ],
  15802. <span class="hljs-attr">"twenty"</span>: [
  15803. <span class="hljs-string">"string"</span>
  15804. ],
  15805. <span class="hljs-attr">"forty"</span>: [
  15806. <span class="hljs-string">"string"</span>
  15807. ],
  15808. <span class="hljs-attr">"oneHundred"</span>: [
  15809. <span class="hljs-string">"string"</span>
  15810. ],
  15811. <span class="hljs-attr">"unsure"</span>: [
  15812. <span class="hljs-string">"string"</span>
  15813. ],
  15814. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  15815. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  15816. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  15817. },
  15818. <span class="hljs-attr">"targetId_gantt"</span>: [
  15819. <span class="hljs-string">"string"</span>
  15820. ],
  15821. <span class="hljs-attr">"linkType_gantt"</span>: [
  15822. <span class="hljs-number">0</span>
  15823. ],
  15824. <span class="hljs-attr">"linkId_gantt"</span>: [
  15825. <span class="hljs-string">"string"</span>
  15826. ],
  15827. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  15828. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  15829. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>,
  15830. <span class="hljs-attr">"showListOnMinicard"</span>: <span class="hljs-literal">true</span>
  15831. }
  15832. </code></pre>
  15833. <h3 id="properties">Properties</h3>
  15834. <table>
  15835. <thead>
  15836. <tr>
  15837. <th>Name</th>
  15838. <th>Type</th>
  15839. <th>Required</th>
  15840. <th>Restrictions</th>
  15841. <th>Description</th>
  15842. </tr>
  15843. </thead>
  15844. <tbody>
  15845. <tr>
  15846. <td>title</td>
  15847. <td>string|null</td>
  15848. <td>false</td>
  15849. <td>none</td>
  15850. <td>the title of the card</td>
  15851. </tr>
  15852. <tr>
  15853. <td>archived</td>
  15854. <td>boolean</td>
  15855. <td>true</td>
  15856. <td>none</td>
  15857. <td>is the card archived</td>
  15858. </tr>
  15859. <tr>
  15860. <td>archivedAt</td>
  15861. <td>string|null</td>
  15862. <td>false</td>
  15863. <td>none</td>
  15864. <td>latest archiving date</td>
  15865. </tr>
  15866. <tr>
  15867. <td>parentId</td>
  15868. <td>string|null</td>
  15869. <td>false</td>
  15870. <td>none</td>
  15871. <td>ID of the parent card</td>
  15872. </tr>
  15873. <tr>
  15874. <td>listId</td>
  15875. <td>string|null</td>
  15876. <td>false</td>
  15877. <td>none</td>
  15878. <td>List ID where the card is</td>
  15879. </tr>
  15880. <tr>
  15881. <td>swimlaneId</td>
  15882. <td>string</td>
  15883. <td>true</td>
  15884. <td>none</td>
  15885. <td>Swimlane ID where the card is</td>
  15886. </tr>
  15887. <tr>
  15888. <td>boardId</td>
  15889. <td>string|null</td>
  15890. <td>false</td>
  15891. <td>none</td>
  15892. <td>Board ID of the card</td>
  15893. </tr>
  15894. <tr>
  15895. <td>coverId</td>
  15896. <td>string|null</td>
  15897. <td>false</td>
  15898. <td>none</td>
  15899. <td>Cover ID of the card</td>
  15900. </tr>
  15901. <tr>
  15902. <td>color</td>
  15903. <td>string|null</td>
  15904. <td>false</td>
  15905. <td>none</td>
  15906. <td>none</td>
  15907. </tr>
  15908. <tr>
  15909. <td>createdAt</td>
  15910. <td>string</td>
  15911. <td>true</td>
  15912. <td>none</td>
  15913. <td>creation date</td>
  15914. </tr>
  15915. <tr>
  15916. <td>modifiedAt</td>
  15917. <td>string</td>
  15918. <td>true</td>
  15919. <td>none</td>
  15920. <td>none</td>
  15921. </tr>
  15922. <tr>
  15923. <td>customFields</td>
  15924. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]|null</td>
  15925. <td>false</td>
  15926. <td>none</td>
  15927. <td>list of custom fields</td>
  15928. </tr>
  15929. <tr>
  15930. <td>dateLastActivity</td>
  15931. <td>string</td>
  15932. <td>true</td>
  15933. <td>none</td>
  15934. <td>Date of last activity</td>
  15935. </tr>
  15936. <tr>
  15937. <td>description</td>
  15938. <td>string|null</td>
  15939. <td>false</td>
  15940. <td>none</td>
  15941. <td>description of the card</td>
  15942. </tr>
  15943. <tr>
  15944. <td>requestedBy</td>
  15945. <td>string|null</td>
  15946. <td>false</td>
  15947. <td>none</td>
  15948. <td>who requested the card (ID of the user)</td>
  15949. </tr>
  15950. <tr>
  15951. <td>assignedBy</td>
  15952. <td>string|null</td>
  15953. <td>false</td>
  15954. <td>none</td>
  15955. <td>who assigned the card (ID of the user)</td>
  15956. </tr>
  15957. <tr>
  15958. <td>labelIds</td>
  15959. <td>[string]|null</td>
  15960. <td>false</td>
  15961. <td>none</td>
  15962. <td>list of labels ID the card has</td>
  15963. </tr>
  15964. <tr>
  15965. <td>members</td>
  15966. <td>[string]|null</td>
  15967. <td>false</td>
  15968. <td>none</td>
  15969. <td>list of members (user IDs)</td>
  15970. </tr>
  15971. <tr>
  15972. <td>assignees</td>
  15973. <td>[string]|null</td>
  15974. <td>false</td>
  15975. <td>none</td>
  15976. <td>who is assignee of the card (user ID), maximum one ID of assignee in array.</td>
  15977. </tr>
  15978. <tr>
  15979. <td>receivedAt</td>
  15980. <td>string|null</td>
  15981. <td>false</td>
  15982. <td>none</td>
  15983. <td>Date the card was received</td>
  15984. </tr>
  15985. <tr>
  15986. <td>startAt</td>
  15987. <td>string|null</td>
  15988. <td>false</td>
  15989. <td>none</td>
  15990. <td>Date the card was started to be worked on</td>
  15991. </tr>
  15992. <tr>
  15993. <td>dueAt</td>
  15994. <td>string|null</td>
  15995. <td>false</td>
  15996. <td>none</td>
  15997. <td>Date the card is due</td>
  15998. </tr>
  15999. <tr>
  16000. <td>endAt</td>
  16001. <td>string|null</td>
  16002. <td>false</td>
  16003. <td>none</td>
  16004. <td>Date the card ended</td>
  16005. </tr>
  16006. <tr>
  16007. <td>spentTime</td>
  16008. <td>number|null</td>
  16009. <td>false</td>
  16010. <td>none</td>
  16011. <td>How much time has been spent on this</td>
  16012. </tr>
  16013. <tr>
  16014. <td>isOvertime</td>
  16015. <td>boolean|null</td>
  16016. <td>false</td>
  16017. <td>none</td>
  16018. <td>is the card over time?</td>
  16019. </tr>
  16020. <tr>
  16021. <td>userId</td>
  16022. <td>string</td>
  16023. <td>true</td>
  16024. <td>none</td>
  16025. <td>user ID of the author of the card</td>
  16026. </tr>
  16027. <tr>
  16028. <td>sort</td>
  16029. <td>number|null</td>
  16030. <td>false</td>
  16031. <td>none</td>
  16032. <td>Sort value</td>
  16033. </tr>
  16034. <tr>
  16035. <td>subtaskSort</td>
  16036. <td>number|null</td>
  16037. <td>false</td>
  16038. <td>none</td>
  16039. <td>subtask sort value</td>
  16040. </tr>
  16041. <tr>
  16042. <td>type</td>
  16043. <td>string</td>
  16044. <td>true</td>
  16045. <td>none</td>
  16046. <td>type of the card</td>
  16047. </tr>
  16048. <tr>
  16049. <td>linkedId</td>
  16050. <td>string|null</td>
  16051. <td>false</td>
  16052. <td>none</td>
  16053. <td>ID of the linked card</td>
  16054. </tr>
  16055. <tr>
  16056. <td>vote</td>
  16057. <td><a href="#schemacardsvote">CardsVote</a></td>
  16058. <td>false</td>
  16059. <td>none</td>
  16060. <td>vote object, see below</td>
  16061. </tr>
  16062. <tr>
  16063. <td>poker</td>
  16064. <td><a href="#schemacardspoker">CardsPoker</a></td>
  16065. <td>false</td>
  16066. <td>none</td>
  16067. <td>poker object, see below</td>
  16068. </tr>
  16069. <tr>
  16070. <td>targetId_gantt</td>
  16071. <td>[string]|null</td>
  16072. <td>false</td>
  16073. <td>none</td>
  16074. <td>ID of card which is the child link in gantt view</td>
  16075. </tr>
  16076. <tr>
  16077. <td>linkType_gantt</td>
  16078. <td>[number]|null</td>
  16079. <td>false</td>
  16080. <td>none</td>
  16081. <td>ID of card which is the parent link in gantt view</td>
  16082. </tr>
  16083. <tr>
  16084. <td>linkId_gantt</td>
  16085. <td>[string]|null</td>
  16086. <td>false</td>
  16087. <td>none</td>
  16088. <td>ID of card which is the parent link in gantt view</td>
  16089. </tr>
  16090. <tr>
  16091. <td>cardNumber</td>
  16092. <td>number|null</td>
  16093. <td>false</td>
  16094. <td>none</td>
  16095. <td>A boardwise sequentially increasing number that is assigned to every newly created card</td>
  16096. </tr>
  16097. <tr>
  16098. <td>showActivities</td>
  16099. <td>boolean</td>
  16100. <td>true</td>
  16101. <td>none</td>
  16102. <td>none</td>
  16103. </tr>
  16104. <tr>
  16105. <td>hideFinishedChecklistIfItemsAreHidden</td>
  16106. <td>boolean|null</td>
  16107. <td>false</td>
  16108. <td>none</td>
  16109. <td>hide completed checklist?</td>
  16110. </tr>
  16111. <tr>
  16112. <td>showListOnMinicard</td>
  16113. <td>boolean|null</td>
  16114. <td>false</td>
  16115. <td>none</td>
  16116. <td>show list name on minicard?</td>
  16117. </tr>
  16118. </tbody>
  16119. </table>
  16120. <h4 id="enumerated-values">Enumerated Values</h4>
  16121. <table>
  16122. <thead>
  16123. <tr>
  16124. <th>Property</th>
  16125. <th>Value</th>
  16126. </tr>
  16127. </thead>
  16128. <tbody>
  16129. <tr>
  16130. <td>color</td>
  16131. <td>white</td>
  16132. </tr>
  16133. <tr>
  16134. <td>color</td>
  16135. <td>green</td>
  16136. </tr>
  16137. <tr>
  16138. <td>color</td>
  16139. <td>yellow</td>
  16140. </tr>
  16141. <tr>
  16142. <td>color</td>
  16143. <td>orange</td>
  16144. </tr>
  16145. <tr>
  16146. <td>color</td>
  16147. <td>red</td>
  16148. </tr>
  16149. <tr>
  16150. <td>color</td>
  16151. <td>purple</td>
  16152. </tr>
  16153. <tr>
  16154. <td>color</td>
  16155. <td>blue</td>
  16156. </tr>
  16157. <tr>
  16158. <td>color</td>
  16159. <td>sky</td>
  16160. </tr>
  16161. <tr>
  16162. <td>color</td>
  16163. <td>lime</td>
  16164. </tr>
  16165. <tr>
  16166. <td>color</td>
  16167. <td>pink</td>
  16168. </tr>
  16169. <tr>
  16170. <td>color</td>
  16171. <td>black</td>
  16172. </tr>
  16173. <tr>
  16174. <td>color</td>
  16175. <td>silver</td>
  16176. </tr>
  16177. <tr>
  16178. <td>color</td>
  16179. <td>peachpuff</td>
  16180. </tr>
  16181. <tr>
  16182. <td>color</td>
  16183. <td>crimson</td>
  16184. </tr>
  16185. <tr>
  16186. <td>color</td>
  16187. <td>plum</td>
  16188. </tr>
  16189. <tr>
  16190. <td>color</td>
  16191. <td>darkgreen</td>
  16192. </tr>
  16193. <tr>
  16194. <td>color</td>
  16195. <td>slateblue</td>
  16196. </tr>
  16197. <tr>
  16198. <td>color</td>
  16199. <td>magenta</td>
  16200. </tr>
  16201. <tr>
  16202. <td>color</td>
  16203. <td>gold</td>
  16204. </tr>
  16205. <tr>
  16206. <td>color</td>
  16207. <td>navy</td>
  16208. </tr>
  16209. <tr>
  16210. <td>color</td>
  16211. <td>gray</td>
  16212. </tr>
  16213. <tr>
  16214. <td>color</td>
  16215. <td>saddlebrown</td>
  16216. </tr>
  16217. <tr>
  16218. <td>color</td>
  16219. <td>paleturquoise</td>
  16220. </tr>
  16221. <tr>
  16222. <td>color</td>
  16223. <td>mistyrose</td>
  16224. </tr>
  16225. <tr>
  16226. <td>color</td>
  16227. <td>indigo</td>
  16228. </tr>
  16229. </tbody>
  16230. </table>
  16231. <h2 id="tocscardsvote">CardsVote</h2>
  16232. <p><a id="schemacardsvote"></a></p>
  16233. <pre class="highlight tab tab-json"><code>{
  16234. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  16235. <span class="hljs-attr">"positive"</span>: [
  16236. <span class="hljs-string">"string"</span>
  16237. ],
  16238. <span class="hljs-attr">"negative"</span>: [
  16239. <span class="hljs-string">"string"</span>
  16240. ],
  16241. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  16242. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  16243. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  16244. }
  16245. </code></pre>
  16246. <h3 id="properties">Properties</h3>
  16247. <table>
  16248. <thead>
  16249. <tr>
  16250. <th>Name</th>
  16251. <th>Type</th>
  16252. <th>Required</th>
  16253. <th>Restrictions</th>
  16254. <th>Description</th>
  16255. </tr>
  16256. </thead>
  16257. <tbody>
  16258. <tr>
  16259. <td>question</td>
  16260. <td>string</td>
  16261. <td>true</td>
  16262. <td>none</td>
  16263. <td>none</td>
  16264. </tr>
  16265. <tr>
  16266. <td>positive</td>
  16267. <td>[string]</td>
  16268. <td>false</td>
  16269. <td>none</td>
  16270. <td>list of members (user IDs)</td>
  16271. </tr>
  16272. <tr>
  16273. <td>negative</td>
  16274. <td>[string]</td>
  16275. <td>false</td>
  16276. <td>none</td>
  16277. <td>list of members (user IDs)</td>
  16278. </tr>
  16279. <tr>
  16280. <td>end</td>
  16281. <td>string</td>
  16282. <td>false</td>
  16283. <td>none</td>
  16284. <td>none</td>
  16285. </tr>
  16286. <tr>
  16287. <td>public</td>
  16288. <td>boolean</td>
  16289. <td>true</td>
  16290. <td>none</td>
  16291. <td>none</td>
  16292. </tr>
  16293. <tr>
  16294. <td>allowNonBoardMembers</td>
  16295. <td>boolean</td>
  16296. <td>true</td>
  16297. <td>none</td>
  16298. <td>none</td>
  16299. </tr>
  16300. </tbody>
  16301. </table>
  16302. <h2 id="tocscardspoker">CardsPoker</h2>
  16303. <p><a id="schemacardspoker"></a></p>
  16304. <pre class="highlight tab tab-json"><code>{
  16305. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  16306. <span class="hljs-attr">"one"</span>: [
  16307. <span class="hljs-string">"string"</span>
  16308. ],
  16309. <span class="hljs-attr">"two"</span>: [
  16310. <span class="hljs-string">"string"</span>
  16311. ],
  16312. <span class="hljs-attr">"three"</span>: [
  16313. <span class="hljs-string">"string"</span>
  16314. ],
  16315. <span class="hljs-attr">"five"</span>: [
  16316. <span class="hljs-string">"string"</span>
  16317. ],
  16318. <span class="hljs-attr">"eight"</span>: [
  16319. <span class="hljs-string">"string"</span>
  16320. ],
  16321. <span class="hljs-attr">"thirteen"</span>: [
  16322. <span class="hljs-string">"string"</span>
  16323. ],
  16324. <span class="hljs-attr">"twenty"</span>: [
  16325. <span class="hljs-string">"string"</span>
  16326. ],
  16327. <span class="hljs-attr">"forty"</span>: [
  16328. <span class="hljs-string">"string"</span>
  16329. ],
  16330. <span class="hljs-attr">"oneHundred"</span>: [
  16331. <span class="hljs-string">"string"</span>
  16332. ],
  16333. <span class="hljs-attr">"unsure"</span>: [
  16334. <span class="hljs-string">"string"</span>
  16335. ],
  16336. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  16337. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  16338. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  16339. }
  16340. </code></pre>
  16341. <h3 id="properties">Properties</h3>
  16342. <table>
  16343. <thead>
  16344. <tr>
  16345. <th>Name</th>
  16346. <th>Type</th>
  16347. <th>Required</th>
  16348. <th>Restrictions</th>
  16349. <th>Description</th>
  16350. </tr>
  16351. </thead>
  16352. <tbody>
  16353. <tr>
  16354. <td>question</td>
  16355. <td>boolean</td>
  16356. <td>false</td>
  16357. <td>none</td>
  16358. <td>none</td>
  16359. </tr>
  16360. <tr>
  16361. <td>one</td>
  16362. <td>[string]</td>
  16363. <td>false</td>
  16364. <td>none</td>
  16365. <td>poker card one</td>
  16366. </tr>
  16367. <tr>
  16368. <td>two</td>
  16369. <td>[string]</td>
  16370. <td>false</td>
  16371. <td>none</td>
  16372. <td>poker card two</td>
  16373. </tr>
  16374. <tr>
  16375. <td>three</td>
  16376. <td>[string]</td>
  16377. <td>false</td>
  16378. <td>none</td>
  16379. <td>poker card three</td>
  16380. </tr>
  16381. <tr>
  16382. <td>five</td>
  16383. <td>[string]</td>
  16384. <td>false</td>
  16385. <td>none</td>
  16386. <td>poker card five</td>
  16387. </tr>
  16388. <tr>
  16389. <td>eight</td>
  16390. <td>[string]</td>
  16391. <td>false</td>
  16392. <td>none</td>
  16393. <td>poker card eight</td>
  16394. </tr>
  16395. <tr>
  16396. <td>thirteen</td>
  16397. <td>[string]</td>
  16398. <td>false</td>
  16399. <td>none</td>
  16400. <td>poker card thirteen</td>
  16401. </tr>
  16402. <tr>
  16403. <td>twenty</td>
  16404. <td>[string]</td>
  16405. <td>false</td>
  16406. <td>none</td>
  16407. <td>poker card twenty</td>
  16408. </tr>
  16409. <tr>
  16410. <td>forty</td>
  16411. <td>[string]</td>
  16412. <td>false</td>
  16413. <td>none</td>
  16414. <td>poker card forty</td>
  16415. </tr>
  16416. <tr>
  16417. <td>oneHundred</td>
  16418. <td>[string]</td>
  16419. <td>false</td>
  16420. <td>none</td>
  16421. <td>poker card oneHundred</td>
  16422. </tr>
  16423. <tr>
  16424. <td>unsure</td>
  16425. <td>[string]</td>
  16426. <td>false</td>
  16427. <td>none</td>
  16428. <td>poker card unsure</td>
  16429. </tr>
  16430. <tr>
  16431. <td>end</td>
  16432. <td>string</td>
  16433. <td>false</td>
  16434. <td>none</td>
  16435. <td>none</td>
  16436. </tr>
  16437. <tr>
  16438. <td>allowNonBoardMembers</td>
  16439. <td>boolean</td>
  16440. <td>false</td>
  16441. <td>none</td>
  16442. <td>none</td>
  16443. </tr>
  16444. <tr>
  16445. <td>estimation</td>
  16446. <td>number</td>
  16447. <td>false</td>
  16448. <td>none</td>
  16449. <td>poker estimation value</td>
  16450. </tr>
  16451. </tbody>
  16452. </table>
  16453. <h2 id="tocscardscustomfields">CardsCustomfields</h2>
  16454. <p><a id="schemacardscustomfields"></a></p>
  16455. <pre class="highlight tab tab-json"><code>{}
  16456. </code></pre>
  16457. <h3 id="properties">Properties</h3>
  16458. <p><em>None</em></p>
  16459. <h2 id="tocschecklistitems">ChecklistItems</h2>
  16460. <p><a id="schemachecklistitems"></a></p>
  16461. <pre class="highlight tab tab-json"><code>{
  16462. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  16463. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  16464. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  16465. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  16466. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  16467. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16468. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  16469. }
  16470. </code></pre>
  16471. <p><em>An item in a checklist</em></p>
  16472. <h3 id="properties">Properties</h3>
  16473. <table>
  16474. <thead>
  16475. <tr>
  16476. <th>Name</th>
  16477. <th>Type</th>
  16478. <th>Required</th>
  16479. <th>Restrictions</th>
  16480. <th>Description</th>
  16481. </tr>
  16482. </thead>
  16483. <tbody>
  16484. <tr>
  16485. <td>title</td>
  16486. <td>string</td>
  16487. <td>true</td>
  16488. <td>none</td>
  16489. <td>the text of the item</td>
  16490. </tr>
  16491. <tr>
  16492. <td>sort</td>
  16493. <td>number</td>
  16494. <td>true</td>
  16495. <td>none</td>
  16496. <td>the sorting field of the item</td>
  16497. </tr>
  16498. <tr>
  16499. <td>isFinished</td>
  16500. <td>boolean</td>
  16501. <td>true</td>
  16502. <td>none</td>
  16503. <td>Is the item checked?</td>
  16504. </tr>
  16505. <tr>
  16506. <td>checklistId</td>
  16507. <td>string</td>
  16508. <td>true</td>
  16509. <td>none</td>
  16510. <td>the checklist ID the item is attached to</td>
  16511. </tr>
  16512. <tr>
  16513. <td>cardId</td>
  16514. <td>string</td>
  16515. <td>true</td>
  16516. <td>none</td>
  16517. <td>the card ID the item is attached to</td>
  16518. </tr>
  16519. <tr>
  16520. <td>createdAt</td>
  16521. <td>string|null</td>
  16522. <td>false</td>
  16523. <td>none</td>
  16524. <td>none</td>
  16525. </tr>
  16526. <tr>
  16527. <td>modifiedAt</td>
  16528. <td>string</td>
  16529. <td>true</td>
  16530. <td>none</td>
  16531. <td>none</td>
  16532. </tr>
  16533. </tbody>
  16534. </table>
  16535. <h2 id="tocschecklists">Checklists</h2>
  16536. <p><a id="schemachecklists"></a></p>
  16537. <pre class="highlight tab tab-json"><code>{
  16538. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  16539. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  16540. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  16541. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16542. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  16543. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  16544. <span class="hljs-attr">"hideCheckedChecklistItems"</span>: <span class="hljs-literal">true</span>,
  16545. <span class="hljs-attr">"hideAllChecklistItems"</span>: <span class="hljs-literal">true</span>
  16546. }
  16547. </code></pre>
  16548. <p><em>A Checklist</em></p>
  16549. <h3 id="properties">Properties</h3>
  16550. <table>
  16551. <thead>
  16552. <tr>
  16553. <th>Name</th>
  16554. <th>Type</th>
  16555. <th>Required</th>
  16556. <th>Restrictions</th>
  16557. <th>Description</th>
  16558. </tr>
  16559. </thead>
  16560. <tbody>
  16561. <tr>
  16562. <td>cardId</td>
  16563. <td>string</td>
  16564. <td>true</td>
  16565. <td>none</td>
  16566. <td>The ID of the card the checklist is in</td>
  16567. </tr>
  16568. <tr>
  16569. <td>title</td>
  16570. <td>string</td>
  16571. <td>true</td>
  16572. <td>none</td>
  16573. <td>the title of the checklist</td>
  16574. </tr>
  16575. <tr>
  16576. <td>finishedAt</td>
  16577. <td>string|null</td>
  16578. <td>false</td>
  16579. <td>none</td>
  16580. <td>When was the checklist finished</td>
  16581. </tr>
  16582. <tr>
  16583. <td>createdAt</td>
  16584. <td>string</td>
  16585. <td>true</td>
  16586. <td>none</td>
  16587. <td>Creation date of the checklist</td>
  16588. </tr>
  16589. <tr>
  16590. <td>modifiedAt</td>
  16591. <td>string</td>
  16592. <td>true</td>
  16593. <td>none</td>
  16594. <td>none</td>
  16595. </tr>
  16596. <tr>
  16597. <td>sort</td>
  16598. <td>number</td>
  16599. <td>true</td>
  16600. <td>none</td>
  16601. <td>sorting value of the checklist</td>
  16602. </tr>
  16603. <tr>
  16604. <td>hideCheckedChecklistItems</td>
  16605. <td>boolean|null</td>
  16606. <td>false</td>
  16607. <td>none</td>
  16608. <td>hide the checked checklist-items?</td>
  16609. </tr>
  16610. <tr>
  16611. <td>hideAllChecklistItems</td>
  16612. <td>boolean|null</td>
  16613. <td>false</td>
  16614. <td>none</td>
  16615. <td>hide all checklist items ?</td>
  16616. </tr>
  16617. </tbody>
  16618. </table>
  16619. <h2 id="tocscustomfields">CustomFields</h2>
  16620. <p><a id="schemacustomfields"></a></p>
  16621. <pre class="highlight tab tab-json"><code>{
  16622. <span class="hljs-attr">"boardIds"</span>: [
  16623. <span class="hljs-string">"string"</span>
  16624. ],
  16625. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  16626. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"text"</span>,
  16627. <span class="hljs-attr">"settings"</span>: {
  16628. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  16629. <span class="hljs-attr">"dropdownItems"</span>: [
  16630. {}
  16631. ],
  16632. <span class="hljs-attr">"stringtemplateFormat"</span>: <span class="hljs-string">"string"</span>,
  16633. <span class="hljs-attr">"stringtemplateSeparator"</span>: <span class="hljs-string">"string"</span>
  16634. },
  16635. <span class="hljs-attr">"showOnCard"</span>: <span class="hljs-literal">true</span>,
  16636. <span class="hljs-attr">"automaticallyOnCard"</span>: <span class="hljs-literal">true</span>,
  16637. <span class="hljs-attr">"alwaysOnCard"</span>: <span class="hljs-literal">true</span>,
  16638. <span class="hljs-attr">"showLabelOnMiniCard"</span>: <span class="hljs-literal">true</span>,
  16639. <span class="hljs-attr">"showSumAtTopOfList"</span>: <span class="hljs-literal">true</span>,
  16640. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16641. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  16642. }
  16643. </code></pre>
  16644. <p><em>A custom field on a card in the board</em></p>
  16645. <h3 id="properties">Properties</h3>
  16646. <table>
  16647. <thead>
  16648. <tr>
  16649. <th>Name</th>
  16650. <th>Type</th>
  16651. <th>Required</th>
  16652. <th>Restrictions</th>
  16653. <th>Description</th>
  16654. </tr>
  16655. </thead>
  16656. <tbody>
  16657. <tr>
  16658. <td>boardIds</td>
  16659. <td>[string]</td>
  16660. <td>true</td>
  16661. <td>none</td>
  16662. <td>the ID of the board</td>
  16663. </tr>
  16664. <tr>
  16665. <td>name</td>
  16666. <td>string</td>
  16667. <td>true</td>
  16668. <td>none</td>
  16669. <td>name of the custom field</td>
  16670. </tr>
  16671. <tr>
  16672. <td>type</td>
  16673. <td>string</td>
  16674. <td>true</td>
  16675. <td>none</td>
  16676. <td>type of the custom field</td>
  16677. </tr>
  16678. <tr>
  16679. <td>settings</td>
  16680. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  16681. <td>true</td>
  16682. <td>none</td>
  16683. <td>settings of the custom field</td>
  16684. </tr>
  16685. <tr>
  16686. <td>showOnCard</td>
  16687. <td>boolean</td>
  16688. <td>true</td>
  16689. <td>none</td>
  16690. <td>should we show on the cards this custom field</td>
  16691. </tr>
  16692. <tr>
  16693. <td>automaticallyOnCard</td>
  16694. <td>boolean</td>
  16695. <td>true</td>
  16696. <td>none</td>
  16697. <td>should the custom fields automatically be added on cards?</td>
  16698. </tr>
  16699. <tr>
  16700. <td>alwaysOnCard</td>
  16701. <td>boolean</td>
  16702. <td>true</td>
  16703. <td>none</td>
  16704. <td>should the custom field be automatically added to all cards?</td>
  16705. </tr>
  16706. <tr>
  16707. <td>showLabelOnMiniCard</td>
  16708. <td>boolean</td>
  16709. <td>true</td>
  16710. <td>none</td>
  16711. <td>should the label of the custom field be shown on minicards?</td>
  16712. </tr>
  16713. <tr>
  16714. <td>showSumAtTopOfList</td>
  16715. <td>boolean</td>
  16716. <td>true</td>
  16717. <td>none</td>
  16718. <td>should the sum of the custom fields be shown at top of list?</td>
  16719. </tr>
  16720. <tr>
  16721. <td>createdAt</td>
  16722. <td>string|null</td>
  16723. <td>false</td>
  16724. <td>none</td>
  16725. <td>none</td>
  16726. </tr>
  16727. <tr>
  16728. <td>modifiedAt</td>
  16729. <td>string</td>
  16730. <td>true</td>
  16731. <td>none</td>
  16732. <td>none</td>
  16733. </tr>
  16734. </tbody>
  16735. </table>
  16736. <h4 id="enumerated-values">Enumerated Values</h4>
  16737. <table>
  16738. <thead>
  16739. <tr>
  16740. <th>Property</th>
  16741. <th>Value</th>
  16742. </tr>
  16743. </thead>
  16744. <tbody>
  16745. <tr>
  16746. <td>type</td>
  16747. <td>text</td>
  16748. </tr>
  16749. <tr>
  16750. <td>type</td>
  16751. <td>number</td>
  16752. </tr>
  16753. <tr>
  16754. <td>type</td>
  16755. <td>date</td>
  16756. </tr>
  16757. <tr>
  16758. <td>type</td>
  16759. <td>dropdown</td>
  16760. </tr>
  16761. <tr>
  16762. <td>type</td>
  16763. <td>checkbox</td>
  16764. </tr>
  16765. <tr>
  16766. <td>type</td>
  16767. <td>currency</td>
  16768. </tr>
  16769. <tr>
  16770. <td>type</td>
  16771. <td>stringtemplate</td>
  16772. </tr>
  16773. </tbody>
  16774. </table>
  16775. <h2 id="tocscustomfieldssettings">CustomFieldsSettings</h2>
  16776. <p><a id="schemacustomfieldssettings"></a></p>
  16777. <pre class="highlight tab tab-json"><code>{
  16778. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  16779. <span class="hljs-attr">"dropdownItems"</span>: [
  16780. {}
  16781. ],
  16782. <span class="hljs-attr">"stringtemplateFormat"</span>: <span class="hljs-string">"string"</span>,
  16783. <span class="hljs-attr">"stringtemplateSeparator"</span>: <span class="hljs-string">"string"</span>
  16784. }
  16785. </code></pre>
  16786. <h3 id="properties">Properties</h3>
  16787. <table>
  16788. <thead>
  16789. <tr>
  16790. <th>Name</th>
  16791. <th>Type</th>
  16792. <th>Required</th>
  16793. <th>Restrictions</th>
  16794. <th>Description</th>
  16795. </tr>
  16796. </thead>
  16797. <tbody>
  16798. <tr>
  16799. <td>currencyCode</td>
  16800. <td>string</td>
  16801. <td>false</td>
  16802. <td>none</td>
  16803. <td>none</td>
  16804. </tr>
  16805. <tr>
  16806. <td>dropdownItems</td>
  16807. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  16808. <td>false</td>
  16809. <td>none</td>
  16810. <td>list of drop down items objects</td>
  16811. </tr>
  16812. <tr>
  16813. <td>stringtemplateFormat</td>
  16814. <td>string</td>
  16815. <td>false</td>
  16816. <td>none</td>
  16817. <td>none</td>
  16818. </tr>
  16819. <tr>
  16820. <td>stringtemplateSeparator</td>
  16821. <td>string</td>
  16822. <td>false</td>
  16823. <td>none</td>
  16824. <td>none</td>
  16825. </tr>
  16826. </tbody>
  16827. </table>
  16828. <h2 id="tocscustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  16829. <p><a id="schemacustomfieldssettingsdropdownitems"></a></p>
  16830. <pre class="highlight tab tab-json"><code>{}
  16831. </code></pre>
  16832. <h3 id="properties">Properties</h3>
  16833. <p><em>None</em></p>
  16834. <h2 id="tocsintegrations">Integrations</h2>
  16835. <p><a id="schemaintegrations"></a></p>
  16836. <pre class="highlight tab tab-json"><code>{
  16837. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  16838. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  16839. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  16840. <span class="hljs-attr">"activities"</span>: [
  16841. <span class="hljs-string">"string"</span>
  16842. ],
  16843. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  16844. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  16845. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  16846. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16847. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  16848. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  16849. }
  16850. </code></pre>
  16851. <p><em>Integration with third-party applications</em></p>
  16852. <h3 id="properties">Properties</h3>
  16853. <table>
  16854. <thead>
  16855. <tr>
  16856. <th>Name</th>
  16857. <th>Type</th>
  16858. <th>Required</th>
  16859. <th>Restrictions</th>
  16860. <th>Description</th>
  16861. </tr>
  16862. </thead>
  16863. <tbody>
  16864. <tr>
  16865. <td>enabled</td>
  16866. <td>boolean</td>
  16867. <td>true</td>
  16868. <td>none</td>
  16869. <td>is the integration enabled?</td>
  16870. </tr>
  16871. <tr>
  16872. <td>title</td>
  16873. <td>string|null</td>
  16874. <td>false</td>
  16875. <td>none</td>
  16876. <td>name of the integration</td>
  16877. </tr>
  16878. <tr>
  16879. <td>type</td>
  16880. <td>string</td>
  16881. <td>true</td>
  16882. <td>none</td>
  16883. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  16884. </tr>
  16885. <tr>
  16886. <td>activities</td>
  16887. <td>[string]</td>
  16888. <td>true</td>
  16889. <td>none</td>
  16890. <td>activities the integration gets triggered (list)</td>
  16891. </tr>
  16892. <tr>
  16893. <td>url</td>
  16894. <td>string</td>
  16895. <td>true</td>
  16896. <td>none</td>
  16897. <td>none</td>
  16898. </tr>
  16899. <tr>
  16900. <td>token</td>
  16901. <td>string|null</td>
  16902. <td>false</td>
  16903. <td>none</td>
  16904. <td>token of the integration</td>
  16905. </tr>
  16906. <tr>
  16907. <td>boardId</td>
  16908. <td>string</td>
  16909. <td>true</td>
  16910. <td>none</td>
  16911. <td>Board ID of the integration</td>
  16912. </tr>
  16913. <tr>
  16914. <td>createdAt</td>
  16915. <td>string</td>
  16916. <td>true</td>
  16917. <td>none</td>
  16918. <td>Creation date of the integration</td>
  16919. </tr>
  16920. <tr>
  16921. <td>modifiedAt</td>
  16922. <td>string</td>
  16923. <td>true</td>
  16924. <td>none</td>
  16925. <td>none</td>
  16926. </tr>
  16927. <tr>
  16928. <td>userId</td>
  16929. <td>string</td>
  16930. <td>true</td>
  16931. <td>none</td>
  16932. <td>user ID who created the interation</td>
  16933. </tr>
  16934. </tbody>
  16935. </table>
  16936. <h2 id="tocslists">Lists</h2>
  16937. <p><a id="schemalists"></a></p>
  16938. <pre class="highlight tab tab-json"><code>{
  16939. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  16940. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  16941. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  16942. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  16943. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  16944. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  16945. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16946. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  16947. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  16948. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  16949. <span class="hljs-attr">"wipLimit"</span>: {
  16950. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  16951. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  16952. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  16953. },
  16954. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  16955. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  16956. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  16957. }
  16958. </code></pre>
  16959. <p><em>A list (column) in the Wekan board.</em></p>
  16960. <h3 id="properties">Properties</h3>
  16961. <table>
  16962. <thead>
  16963. <tr>
  16964. <th>Name</th>
  16965. <th>Type</th>
  16966. <th>Required</th>
  16967. <th>Restrictions</th>
  16968. <th>Description</th>
  16969. </tr>
  16970. </thead>
  16971. <tbody>
  16972. <tr>
  16973. <td>title</td>
  16974. <td>string</td>
  16975. <td>true</td>
  16976. <td>none</td>
  16977. <td>the title of the list</td>
  16978. </tr>
  16979. <tr>
  16980. <td>starred</td>
  16981. <td>boolean|null</td>
  16982. <td>false</td>
  16983. <td>none</td>
  16984. <td>if a list is stared then we put it on the top</td>
  16985. </tr>
  16986. <tr>
  16987. <td>archived</td>
  16988. <td>boolean</td>
  16989. <td>true</td>
  16990. <td>none</td>
  16991. <td>is the list archived</td>
  16992. </tr>
  16993. <tr>
  16994. <td>archivedAt</td>
  16995. <td>string|null</td>
  16996. <td>false</td>
  16997. <td>none</td>
  16998. <td>latest archiving date</td>
  16999. </tr>
  17000. <tr>
  17001. <td>boardId</td>
  17002. <td>string</td>
  17003. <td>true</td>
  17004. <td>none</td>
  17005. <td>the board associated to this list</td>
  17006. </tr>
  17007. <tr>
  17008. <td>swimlaneId</td>
  17009. <td>string</td>
  17010. <td>true</td>
  17011. <td>none</td>
  17012. <td>the swimlane associated to this list. Required for per-swimlane list titles</td>
  17013. </tr>
  17014. <tr>
  17015. <td>createdAt</td>
  17016. <td>string</td>
  17017. <td>true</td>
  17018. <td>none</td>
  17019. <td>creation date</td>
  17020. </tr>
  17021. <tr>
  17022. <td>sort</td>
  17023. <td>number|null</td>
  17024. <td>false</td>
  17025. <td>none</td>
  17026. <td>is the list sorted</td>
  17027. </tr>
  17028. <tr>
  17029. <td>updatedAt</td>
  17030. <td>string|null</td>
  17031. <td>false</td>
  17032. <td>none</td>
  17033. <td>last update of the list</td>
  17034. </tr>
  17035. <tr>
  17036. <td>modifiedAt</td>
  17037. <td>string</td>
  17038. <td>true</td>
  17039. <td>none</td>
  17040. <td>none</td>
  17041. </tr>
  17042. <tr>
  17043. <td>wipLimit</td>
  17044. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  17045. <td>false</td>
  17046. <td>none</td>
  17047. <td>WIP object, see below</td>
  17048. </tr>
  17049. <tr>
  17050. <td>color</td>
  17051. <td>string|null</td>
  17052. <td>false</td>
  17053. <td>none</td>
  17054. <td>the color of the list</td>
  17055. </tr>
  17056. <tr>
  17057. <td>type</td>
  17058. <td>string</td>
  17059. <td>true</td>
  17060. <td>none</td>
  17061. <td>The type of list</td>
  17062. </tr>
  17063. <tr>
  17064. <td>collapsed</td>
  17065. <td>boolean</td>
  17066. <td>true</td>
  17067. <td>none</td>
  17068. <td>is the list collapsed</td>
  17069. </tr>
  17070. </tbody>
  17071. </table>
  17072. <h4 id="enumerated-values">Enumerated Values</h4>
  17073. <table>
  17074. <thead>
  17075. <tr>
  17076. <th>Property</th>
  17077. <th>Value</th>
  17078. </tr>
  17079. </thead>
  17080. <tbody>
  17081. <tr>
  17082. <td>color</td>
  17083. <td>white</td>
  17084. </tr>
  17085. <tr>
  17086. <td>color</td>
  17087. <td>green</td>
  17088. </tr>
  17089. <tr>
  17090. <td>color</td>
  17091. <td>yellow</td>
  17092. </tr>
  17093. <tr>
  17094. <td>color</td>
  17095. <td>orange</td>
  17096. </tr>
  17097. <tr>
  17098. <td>color</td>
  17099. <td>red</td>
  17100. </tr>
  17101. <tr>
  17102. <td>color</td>
  17103. <td>purple</td>
  17104. </tr>
  17105. <tr>
  17106. <td>color</td>
  17107. <td>blue</td>
  17108. </tr>
  17109. <tr>
  17110. <td>color</td>
  17111. <td>sky</td>
  17112. </tr>
  17113. <tr>
  17114. <td>color</td>
  17115. <td>lime</td>
  17116. </tr>
  17117. <tr>
  17118. <td>color</td>
  17119. <td>pink</td>
  17120. </tr>
  17121. <tr>
  17122. <td>color</td>
  17123. <td>black</td>
  17124. </tr>
  17125. <tr>
  17126. <td>color</td>
  17127. <td>silver</td>
  17128. </tr>
  17129. <tr>
  17130. <td>color</td>
  17131. <td>peachpuff</td>
  17132. </tr>
  17133. <tr>
  17134. <td>color</td>
  17135. <td>crimson</td>
  17136. </tr>
  17137. <tr>
  17138. <td>color</td>
  17139. <td>plum</td>
  17140. </tr>
  17141. <tr>
  17142. <td>color</td>
  17143. <td>darkgreen</td>
  17144. </tr>
  17145. <tr>
  17146. <td>color</td>
  17147. <td>slateblue</td>
  17148. </tr>
  17149. <tr>
  17150. <td>color</td>
  17151. <td>magenta</td>
  17152. </tr>
  17153. <tr>
  17154. <td>color</td>
  17155. <td>gold</td>
  17156. </tr>
  17157. <tr>
  17158. <td>color</td>
  17159. <td>navy</td>
  17160. </tr>
  17161. <tr>
  17162. <td>color</td>
  17163. <td>gray</td>
  17164. </tr>
  17165. <tr>
  17166. <td>color</td>
  17167. <td>saddlebrown</td>
  17168. </tr>
  17169. <tr>
  17170. <td>color</td>
  17171. <td>paleturquoise</td>
  17172. </tr>
  17173. <tr>
  17174. <td>color</td>
  17175. <td>mistyrose</td>
  17176. </tr>
  17177. <tr>
  17178. <td>color</td>
  17179. <td>indigo</td>
  17180. </tr>
  17181. </tbody>
  17182. </table>
  17183. <h2 id="tocslistswiplimit">ListsWiplimit</h2>
  17184. <p><a id="schemalistswiplimit"></a></p>
  17185. <pre class="highlight tab tab-json"><code>{
  17186. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  17187. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  17188. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  17189. }
  17190. </code></pre>
  17191. <h3 id="properties">Properties</h3>
  17192. <table>
  17193. <thead>
  17194. <tr>
  17195. <th>Name</th>
  17196. <th>Type</th>
  17197. <th>Required</th>
  17198. <th>Restrictions</th>
  17199. <th>Description</th>
  17200. </tr>
  17201. </thead>
  17202. <tbody>
  17203. <tr>
  17204. <td>value</td>
  17205. <td>number</td>
  17206. <td>true</td>
  17207. <td>none</td>
  17208. <td>value of the WIP</td>
  17209. </tr>
  17210. <tr>
  17211. <td>enabled</td>
  17212. <td>boolean</td>
  17213. <td>true</td>
  17214. <td>none</td>
  17215. <td>is the WIP enabled</td>
  17216. </tr>
  17217. <tr>
  17218. <td>soft</td>
  17219. <td>boolean</td>
  17220. <td>true</td>
  17221. <td>none</td>
  17222. <td>is the WIP a soft or hard requirement</td>
  17223. </tr>
  17224. </tbody>
  17225. </table>
  17226. <h2 id="tocsswimlanes">Swimlanes</h2>
  17227. <p><a id="schemaswimlanes"></a></p>
  17228. <pre class="highlight tab tab-json"><code>{
  17229. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  17230. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  17231. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  17232. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  17233. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  17234. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  17235. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  17236. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  17237. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  17238. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  17239. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  17240. }
  17241. </code></pre>
  17242. <p><em>A swimlane is an line in the kaban board.</em></p>
  17243. <h3 id="properties">Properties</h3>
  17244. <table>
  17245. <thead>
  17246. <tr>
  17247. <th>Name</th>
  17248. <th>Type</th>
  17249. <th>Required</th>
  17250. <th>Restrictions</th>
  17251. <th>Description</th>
  17252. </tr>
  17253. </thead>
  17254. <tbody>
  17255. <tr>
  17256. <td>title</td>
  17257. <td>string</td>
  17258. <td>true</td>
  17259. <td>none</td>
  17260. <td>the title of the swimlane</td>
  17261. </tr>
  17262. <tr>
  17263. <td>archived</td>
  17264. <td>boolean</td>
  17265. <td>true</td>
  17266. <td>none</td>
  17267. <td>is the swimlane archived?</td>
  17268. </tr>
  17269. <tr>
  17270. <td>archivedAt</td>
  17271. <td>string|null</td>
  17272. <td>false</td>
  17273. <td>none</td>
  17274. <td>latest archiving date of the swimlane</td>
  17275. </tr>
  17276. <tr>
  17277. <td>boardId</td>
  17278. <td>string</td>
  17279. <td>true</td>
  17280. <td>none</td>
  17281. <td>the ID of the board the swimlane is attached to</td>
  17282. </tr>
  17283. <tr>
  17284. <td>createdAt</td>
  17285. <td>string</td>
  17286. <td>true</td>
  17287. <td>none</td>
  17288. <td>creation date of the swimlane</td>
  17289. </tr>
  17290. <tr>
  17291. <td>sort</td>
  17292. <td>number|null</td>
  17293. <td>false</td>
  17294. <td>none</td>
  17295. <td>the sort value of the swimlane</td>
  17296. </tr>
  17297. <tr>
  17298. <td>color</td>
  17299. <td>string|null</td>
  17300. <td>false</td>
  17301. <td>none</td>
  17302. <td>the color of the swimlane</td>
  17303. </tr>
  17304. <tr>
  17305. <td>updatedAt</td>
  17306. <td>string|null</td>
  17307. <td>false</td>
  17308. <td>none</td>
  17309. <td>when was the swimlane last edited</td>
  17310. </tr>
  17311. <tr>
  17312. <td>modifiedAt</td>
  17313. <td>string</td>
  17314. <td>true</td>
  17315. <td>none</td>
  17316. <td>none</td>
  17317. </tr>
  17318. <tr>
  17319. <td>type</td>
  17320. <td>string</td>
  17321. <td>true</td>
  17322. <td>none</td>
  17323. <td>The type of swimlane</td>
  17324. </tr>
  17325. <tr>
  17326. <td>collapsed</td>
  17327. <td>boolean</td>
  17328. <td>true</td>
  17329. <td>none</td>
  17330. <td>is the swimlane collapsed</td>
  17331. </tr>
  17332. </tbody>
  17333. </table>
  17334. <h4 id="enumerated-values">Enumerated Values</h4>
  17335. <table>
  17336. <thead>
  17337. <tr>
  17338. <th>Property</th>
  17339. <th>Value</th>
  17340. </tr>
  17341. </thead>
  17342. <tbody>
  17343. <tr>
  17344. <td>color</td>
  17345. <td>white</td>
  17346. </tr>
  17347. <tr>
  17348. <td>color</td>
  17349. <td>green</td>
  17350. </tr>
  17351. <tr>
  17352. <td>color</td>
  17353. <td>yellow</td>
  17354. </tr>
  17355. <tr>
  17356. <td>color</td>
  17357. <td>orange</td>
  17358. </tr>
  17359. <tr>
  17360. <td>color</td>
  17361. <td>red</td>
  17362. </tr>
  17363. <tr>
  17364. <td>color</td>
  17365. <td>purple</td>
  17366. </tr>
  17367. <tr>
  17368. <td>color</td>
  17369. <td>blue</td>
  17370. </tr>
  17371. <tr>
  17372. <td>color</td>
  17373. <td>sky</td>
  17374. </tr>
  17375. <tr>
  17376. <td>color</td>
  17377. <td>lime</td>
  17378. </tr>
  17379. <tr>
  17380. <td>color</td>
  17381. <td>pink</td>
  17382. </tr>
  17383. <tr>
  17384. <td>color</td>
  17385. <td>black</td>
  17386. </tr>
  17387. <tr>
  17388. <td>color</td>
  17389. <td>silver</td>
  17390. </tr>
  17391. <tr>
  17392. <td>color</td>
  17393. <td>peachpuff</td>
  17394. </tr>
  17395. <tr>
  17396. <td>color</td>
  17397. <td>crimson</td>
  17398. </tr>
  17399. <tr>
  17400. <td>color</td>
  17401. <td>plum</td>
  17402. </tr>
  17403. <tr>
  17404. <td>color</td>
  17405. <td>darkgreen</td>
  17406. </tr>
  17407. <tr>
  17408. <td>color</td>
  17409. <td>slateblue</td>
  17410. </tr>
  17411. <tr>
  17412. <td>color</td>
  17413. <td>magenta</td>
  17414. </tr>
  17415. <tr>
  17416. <td>color</td>
  17417. <td>gold</td>
  17418. </tr>
  17419. <tr>
  17420. <td>color</td>
  17421. <td>navy</td>
  17422. </tr>
  17423. <tr>
  17424. <td>color</td>
  17425. <td>gray</td>
  17426. </tr>
  17427. <tr>
  17428. <td>color</td>
  17429. <td>saddlebrown</td>
  17430. </tr>
  17431. <tr>
  17432. <td>color</td>
  17433. <td>paleturquoise</td>
  17434. </tr>
  17435. <tr>
  17436. <td>color</td>
  17437. <td>mistyrose</td>
  17438. </tr>
  17439. <tr>
  17440. <td>color</td>
  17441. <td>indigo</td>
  17442. </tr>
  17443. </tbody>
  17444. </table>
  17445. </div>
  17446. <div class="dark-box">
  17447. <div class="lang-selector">
  17448. <a href="#" data-language-name="shell">Shell</a>
  17449. <a href="#" data-language-name="http">HTTP</a>
  17450. <a href="#" data-language-name="javascript">JavaScript</a>
  17451. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  17452. <a href="#" data-language-name="ruby">Ruby</a>
  17453. <a href="#" data-language-name="python">Python</a>
  17454. <a href="#" data-language-name="java">Java</a>
  17455. <a href="#" data-language-name="go">Go</a>
  17456. </div>
  17457. </div>
  17458. </div>
  17459. </body>
  17460. </html>