wekan.html 759 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <title>Wekan REST API</title>
  8. <style>
  9. </style>
  10. <style media="screen">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  11. /**
  12. * 1. Set default font family to sans-serif.
  13. * 2. Prevent iOS text size adjust after orientation change, without disabling
  14. * user zoom.
  15. */
  16. html {
  17. font-family: sans-serif;
  18. /* 1 */
  19. -ms-text-size-adjust: 100%;
  20. /* 2 */
  21. -webkit-text-size-adjust: 100%;
  22. /* 2 */ }
  23. /**
  24. * Remove default margin.
  25. */
  26. body {
  27. margin: 0; }
  28. /* HTML5 display definitions
  29. ========================================================================== */
  30. /**
  31. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  32. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  33. * and Firefox.
  34. * Correct `block` display not defined for `main` in IE 11.
  35. */
  36. article,
  37. aside,
  38. details,
  39. figcaption,
  40. figure,
  41. footer,
  42. header,
  43. hgroup,
  44. main,
  45. menu,
  46. nav,
  47. section,
  48. summary {
  49. display: block; }
  50. /**
  51. * 1. Correct `inline-block` display not defined in IE 8/9.
  52. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  53. */
  54. audio,
  55. canvas,
  56. progress,
  57. video {
  58. display: inline-block;
  59. /* 1 */
  60. vertical-align: baseline;
  61. /* 2 */ }
  62. /**
  63. * Prevent modern browsers from displaying `audio` without controls.
  64. * Remove excess height in iOS 5 devices.
  65. */
  66. audio:not([controls]) {
  67. display: none;
  68. height: 0; }
  69. /**
  70. * Address `[hidden]` styling not present in IE 8/9/10.
  71. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  72. */
  73. [hidden],
  74. template {
  75. display: none; }
  76. /* Links
  77. ========================================================================== */
  78. /**
  79. * Remove the gray background color from active links in IE 10.
  80. */
  81. a {
  82. background-color: transparent; }
  83. /**
  84. * Improve readability when focused and also mouse hovered in all browsers.
  85. */
  86. a:active,
  87. a:hover {
  88. outline: 0; }
  89. /* Text-level semantics
  90. ========================================================================== */
  91. /**
  92. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  93. */
  94. abbr[title] {
  95. border-bottom: 1px dotted; }
  96. /**
  97. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  98. */
  99. b,
  100. strong {
  101. font-weight: bold; }
  102. /**
  103. * Address styling not present in Safari and Chrome.
  104. */
  105. dfn {
  106. font-style: italic; }
  107. /**
  108. * Address variable `h1` font-size and margin within `section` and `article`
  109. * contexts in Firefox 4+, Safari, and Chrome.
  110. */
  111. h1 {
  112. font-size: 2em;
  113. margin: 0.67em 0; }
  114. /**
  115. * Address styling not present in IE 8/9.
  116. */
  117. mark {
  118. background: #ff0;
  119. color: #000; }
  120. /**
  121. * Address inconsistent and variable font size in all browsers.
  122. */
  123. small {
  124. font-size: 80%; }
  125. /**
  126. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  127. */
  128. sub,
  129. sup {
  130. font-size: 75%;
  131. line-height: 0;
  132. position: relative;
  133. vertical-align: baseline; }
  134. sup {
  135. top: -0.5em; }
  136. sub {
  137. bottom: -0.25em; }
  138. /* Embedded content
  139. ========================================================================== */
  140. /**
  141. * Remove border when inside `a` element in IE 8/9/10.
  142. */
  143. img {
  144. border: 0; }
  145. /**
  146. * Correct overflow not hidden in IE 9/10/11.
  147. */
  148. svg:not(:root) {
  149. overflow: hidden; }
  150. /* Grouping content
  151. ========================================================================== */
  152. /**
  153. * Address margin not present in IE 8/9 and Safari.
  154. */
  155. figure {
  156. margin: 1em 40px; }
  157. /**
  158. * Address differences between Firefox and other browsers.
  159. */
  160. hr {
  161. -moz-box-sizing: content-box;
  162. box-sizing: content-box;
  163. height: 0; }
  164. /**
  165. * Contain overflow in all browsers.
  166. */
  167. pre {
  168. overflow: auto; }
  169. /**
  170. * Address odd `em`-unit font size rendering in all browsers.
  171. */
  172. code,
  173. kbd,
  174. pre,
  175. samp {
  176. font-family: monospace, monospace;
  177. font-size: 1em; }
  178. /* Forms
  179. ========================================================================== */
  180. /**
  181. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  182. * styling of `select`, unless a `border` property is set.
  183. */
  184. /**
  185. * 1. Correct color not being inherited.
  186. * Known issue: affects color of disabled elements.
  187. * 2. Correct font properties not being inherited.
  188. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  189. */
  190. button,
  191. input,
  192. optgroup,
  193. select,
  194. textarea {
  195. color: inherit;
  196. /* 1 */
  197. font: inherit;
  198. /* 2 */
  199. margin: 0;
  200. /* 3 */ }
  201. /**
  202. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  203. */
  204. button {
  205. overflow: visible; }
  206. /**
  207. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  208. * All other form control elements do not inherit `text-transform` values.
  209. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  210. * Correct `select` style inheritance in Firefox.
  211. */
  212. button,
  213. select {
  214. text-transform: none; }
  215. /**
  216. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  217. * and `video` controls.
  218. * 2. Correct inability to style clickable `input` types in iOS.
  219. * 3. Improve usability and consistency of cursor style between image-type
  220. * `input` and others.
  221. */
  222. button,
  223. html input[type="button"],
  224. input[type="reset"],
  225. input[type="submit"] {
  226. -webkit-appearance: button;
  227. /* 2 */
  228. cursor: pointer;
  229. /* 3 */ }
  230. /**
  231. * Re-set default cursor for disabled elements.
  232. */
  233. button[disabled],
  234. html input[disabled] {
  235. cursor: default; }
  236. /**
  237. * Remove inner padding and border in Firefox 4+.
  238. */
  239. button::-moz-focus-inner,
  240. input::-moz-focus-inner {
  241. border: 0;
  242. padding: 0; }
  243. /**
  244. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  245. * the UA stylesheet.
  246. */
  247. input {
  248. line-height: normal; }
  249. /**
  250. * It's recommended that you don't attempt to style these elements.
  251. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  252. *
  253. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  254. * 2. Remove excess padding in IE 8/9/10.
  255. */
  256. input[type="checkbox"],
  257. input[type="radio"] {
  258. box-sizing: border-box;
  259. /* 1 */
  260. padding: 0;
  261. /* 2 */ }
  262. /**
  263. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  264. * `font-size` values of the `input`, it causes the cursor style of the
  265. * decrement button to change from `default` to `text`.
  266. */
  267. input[type="number"]::-webkit-inner-spin-button,
  268. input[type="number"]::-webkit-outer-spin-button {
  269. height: auto; }
  270. /**
  271. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  272. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  273. * (include `-moz` to future-proof).
  274. */
  275. input[type="search"] {
  276. -webkit-appearance: textfield;
  277. /* 1 */
  278. -moz-box-sizing: content-box;
  279. -webkit-box-sizing: content-box;
  280. /* 2 */
  281. box-sizing: content-box; }
  282. /**
  283. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  284. * Safari (but not Chrome) clips the cancel button when the search input has
  285. * padding (and `textfield` appearance).
  286. */
  287. input[type="search"]::-webkit-search-cancel-button,
  288. input[type="search"]::-webkit-search-decoration {
  289. -webkit-appearance: none; }
  290. /**
  291. * Define consistent border, margin, and padding.
  292. */
  293. fieldset {
  294. border: 1px solid #c0c0c0;
  295. margin: 0 2px;
  296. padding: 0.35em 0.625em 0.75em; }
  297. /**
  298. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  299. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  300. */
  301. legend {
  302. border: 0;
  303. /* 1 */
  304. padding: 0;
  305. /* 2 */ }
  306. /**
  307. * Remove default vertical scrollbar in IE 8/9/10/11.
  308. */
  309. textarea {
  310. overflow: auto; }
  311. /**
  312. * Don't inherit the `font-weight` (applied by a rule above).
  313. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  314. */
  315. optgroup {
  316. font-weight: bold; }
  317. /* Tables
  318. ========================================================================== */
  319. /**
  320. * Remove most spacing between table cells.
  321. */
  322. table {
  323. border-collapse: collapse;
  324. border-spacing: 0; }
  325. td,
  326. th {
  327. padding: 0; }
  328. /*
  329. Copyright 2008-2013 Concur Technologies, Inc.
  330. Licensed under the Apache License, Version 2.0 (the "License"); you may
  331. not use this file except in compliance with the License. You may obtain
  332. a copy of the License at
  333. http://www.apache.org/licenses/LICENSE-2.0
  334. Unless required by applicable law or agreed to in writing, software
  335. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  336. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  337. License for the specific language governing permissions and limitations
  338. under the License.
  339. */
  340. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, html, body {
  341. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  342. font-size: 14px; }
  343. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  344. font-weight: bold; }
  345. .content code, .content pre {
  346. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  347. font-size: 12px;
  348. line-height: 1.5; }
  349. .content code {
  350. word-break: break-all;
  351. hyphens: auto; }
  352. @font-face {
  353. font-family: 'slate';
  354. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  355. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  356. font-weight: normal;
  357. font-style: normal; }
  358. .content aside.warning:before, .content aside.notice:before, .content aside.success:before, .toc-wrapper > .search:before {
  359. font-family: 'slate';
  360. speak: none;
  361. font-style: normal;
  362. font-weight: normal;
  363. font-variant: normal;
  364. text-transform: none;
  365. line-height: 1; }
  366. .content aside.warning:before {
  367. content: "\e600"; }
  368. .content aside.notice:before {
  369. content: "\e602"; }
  370. .content aside.success:before {
  371. content: "\e606"; }
  372. .toc-wrapper > .search:before {
  373. content: "\e607"; }
  374. /*
  375. Copyright 2008-2013 Concur Technologies, Inc.
  376. Licensed under the Apache License, Version 2.0 (the "License"); you may
  377. not use this file except in compliance with the License. You may obtain
  378. a copy of the License at
  379. http://www.apache.org/licenses/LICENSE-2.0
  380. Unless required by applicable law or agreed to in writing, software
  381. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  382. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  383. License for the specific language governing permissions and limitations
  384. under the License.
  385. */
  386. html, body {
  387. color: #333;
  388. padding: 0;
  389. margin: 0;
  390. -webkit-font-smoothing: antialiased;
  391. -moz-osx-font-smoothing: grayscale;
  392. background-color: #F3F7F9;
  393. height: 100%;
  394. -webkit-text-size-adjust: none;
  395. /* Never autoresize text */ }
  396. #toc > ul > li > a > span {
  397. float: right;
  398. background-color: #2484FF;
  399. border-radius: 40px;
  400. width: 20px; }
  401. .toc-wrapper {
  402. transition: left 0.3s ease-in-out;
  403. overflow-y: auto;
  404. overflow-x: hidden;
  405. position: fixed;
  406. z-index: 30;
  407. top: 0;
  408. left: 0;
  409. bottom: 0;
  410. width: 230px;
  411. background-color: #2E3336;
  412. font-size: 13px;
  413. font-weight: bold; }
  414. .toc-wrapper .lang-selector {
  415. display: none; }
  416. .toc-wrapper .lang-selector a {
  417. padding-top: 0.5em;
  418. padding-bottom: 0.5em; }
  419. .toc-wrapper .logo {
  420. display: block;
  421. max-width: 100%;
  422. margin-bottom: 0px; }
  423. .toc-wrapper > .search {
  424. position: relative; }
  425. .toc-wrapper > .search input {
  426. background: #2E3336;
  427. border-width: 0 0 1px 0;
  428. border-color: #666;
  429. padding: 6px 0 6px 20px;
  430. box-sizing: border-box;
  431. margin: 10px 15px;
  432. width: 200px;
  433. outline: none;
  434. color: #fff;
  435. border-radius: 0;
  436. /* ios has a default border radius */ }
  437. .toc-wrapper > .search:before {
  438. position: absolute;
  439. top: 17px;
  440. left: 15px;
  441. color: #fff; }
  442. .toc-wrapper .search-results {
  443. margin-top: 0;
  444. box-sizing: border-box;
  445. height: 0;
  446. overflow-y: auto;
  447. overflow-x: hidden;
  448. transition-property: height, margin;
  449. transition-duration: 180ms;
  450. transition-timing-function: ease-in-out;
  451. background: #1E2224; }
  452. .toc-wrapper .search-results.visible {
  453. height: 30%;
  454. margin-bottom: 1em; }
  455. .toc-wrapper .search-results li {
  456. margin: 1em 15px;
  457. line-height: 1; }
  458. .toc-wrapper .search-results a {
  459. color: #fff;
  460. text-decoration: none; }
  461. .toc-wrapper .search-results a:hover {
  462. text-decoration: underline; }
  463. .toc-wrapper ul, .toc-wrapper li {
  464. list-style: none;
  465. margin: 0;
  466. padding: 0;
  467. line-height: 28px; }
  468. .toc-wrapper li {
  469. color: #fff;
  470. transition-property: background;
  471. transition-timing-function: linear;
  472. transition-duration: 200ms; }
  473. .toc-wrapper .toc-link.active {
  474. background-color: #0F75D4;
  475. color: #fff; }
  476. .toc-wrapper .toc-link.active-parent {
  477. background-color: #1E2224;
  478. color: #fff; }
  479. .toc-wrapper .toc-list-h2 {
  480. display: none;
  481. background-color: #1E2224;
  482. font-weight: 500; }
  483. .toc-wrapper .toc-h2 {
  484. padding-left: 25px;
  485. font-size: 12px; }
  486. .toc-wrapper .toc-footer {
  487. padding: 1em 0;
  488. margin-top: 1em;
  489. border-top: 1px dashed #666; }
  490. .toc-wrapper .toc-footer li, .toc-wrapper .toc-footer a {
  491. color: #fff;
  492. text-decoration: none; }
  493. .toc-wrapper .toc-footer a:hover {
  494. text-decoration: underline; }
  495. .toc-wrapper .toc-footer li {
  496. font-size: 0.8em;
  497. line-height: 1.7;
  498. text-decoration: none; }
  499. .toc-link, .toc-footer li {
  500. padding: 0 15px 0 15px;
  501. display: block;
  502. overflow-x: hidden;
  503. white-space: nowrap;
  504. text-overflow: ellipsis;
  505. text-decoration: none;
  506. color: #fff;
  507. transition-property: background;
  508. transition-timing-function: linear;
  509. transition-duration: 130ms; }
  510. #nav-button {
  511. padding: 0 1.5em 5em 0;
  512. display: none;
  513. position: fixed;
  514. top: 0;
  515. left: 0;
  516. z-index: 100;
  517. color: #000;
  518. text-decoration: none;
  519. font-weight: bold;
  520. opacity: 0.7;
  521. line-height: 16px;
  522. transition: left 0.3s ease-in-out; }
  523. #nav-button span {
  524. display: block;
  525. padding: 6px 6px 6px;
  526. background-color: rgba(243, 247, 249, 0.7);
  527. transform-origin: 0 0;
  528. transform: rotate(-90deg) translate(-100%, 0);
  529. border-radius: 0 0 0 5px; }
  530. #nav-button img {
  531. height: 16px;
  532. vertical-align: bottom; }
  533. #nav-button:hover {
  534. opacity: 1; }
  535. #nav-button.open {
  536. left: 230px; }
  537. .page-wrapper {
  538. margin-left: 230px;
  539. position: relative;
  540. z-index: 10;
  541. background-color: #F3F7F9;
  542. min-height: 100%;
  543. padding-bottom: 1px; }
  544. .page-wrapper .dark-box {
  545. width: 50%;
  546. background-color: #2E3336;
  547. position: absolute;
  548. right: 0;
  549. top: 0;
  550. bottom: 0; }
  551. .page-wrapper .lang-selector {
  552. position: fixed;
  553. z-index: 50;
  554. border-bottom: 5px solid #2E3336; }
  555. .lang-selector {
  556. background-color: #1E2224;
  557. width: 100%;
  558. font-weight: bold; }
  559. .lang-selector a {
  560. display: block;
  561. float: left;
  562. color: #fff;
  563. text-decoration: none;
  564. padding: 0 10px;
  565. line-height: 30px;
  566. outline: 0; }
  567. .lang-selector a:active, .lang-selector a:focus {
  568. background-color: #111;
  569. color: #fff; }
  570. .lang-selector a.active {
  571. background-color: #2E3336;
  572. color: #fff; }
  573. .lang-selector:after {
  574. content: '';
  575. clear: both;
  576. display: block; }
  577. .content {
  578. -webkit-transform: translateZ(0);
  579. position: relative;
  580. z-index: 30; }
  581. .content:after {
  582. content: '';
  583. display: block;
  584. clear: both; }
  585. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  586. margin-right: 50%;
  587. padding: 0 28px;
  588. box-sizing: border-box;
  589. display: block; }
  590. .content > ul, .content > ol {
  591. padding-left: 43px; }
  592. .content > h1, .content > h2, .content > div {
  593. clear: both; }
  594. .content h1 {
  595. font-size: 25px;
  596. padding-top: 0.5em;
  597. padding-bottom: 0.5em;
  598. margin-bottom: 21px;
  599. margin-top: 2em;
  600. border-top: 1px solid #ccc;
  601. border-bottom: 1px solid #ccc;
  602. background-color: #fdfdfd; }
  603. .content h1:first-child, .content div:first-child + h1 {
  604. border-top-width: 0;
  605. margin-top: 0; }
  606. .content h2 {
  607. font-size: 19px;
  608. margin-top: 4em;
  609. margin-bottom: 0;
  610. border-top: 1px solid #ccc;
  611. padding-top: 1.2em;
  612. padding-bottom: 1.2em;
  613. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); }
  614. .content h1 + h2, .content h1 + div + h2 {
  615. margin-top: -21px;
  616. border-top: none; }
  617. .content h3, .content h4, .content h5, .content h6 {
  618. font-size: 15px;
  619. margin-top: 2.5em;
  620. margin-bottom: 0.8em; }
  621. .content h4, .content h5, .content h6 {
  622. font-size: 10px; }
  623. .content hr {
  624. margin: 2em 0;
  625. border-top: 2px solid #2E3336;
  626. border-bottom: 2px solid #F3F7F9; }
  627. .content table {
  628. margin-bottom: 1em;
  629. overflow: auto; }
  630. .content table th, .content table td {
  631. text-align: left;
  632. vertical-align: top;
  633. line-height: 1.6; }
  634. .content table th code, .content table td code {
  635. white-space: nowrap; }
  636. .content table th {
  637. padding: 5px 10px;
  638. border-bottom: 1px solid #ccc;
  639. vertical-align: bottom; }
  640. .content table td {
  641. padding: 10px; }
  642. .content table tr:last-child {
  643. border-bottom: 1px solid #ccc; }
  644. .content table tr:nth-child(odd) > td {
  645. background-color: white; }
  646. .content table tr:nth-child(even) > td {
  647. background-color: #fbfcfd; }
  648. .content dt {
  649. font-weight: bold; }
  650. .content dd {
  651. margin-left: 15px; }
  652. .content p, .content li, .content dt, .content dd {
  653. line-height: 1.6;
  654. margin-top: 0; }
  655. .content img {
  656. max-width: 100%; }
  657. .content code {
  658. background-color: rgba(0, 0, 0, 0.05);
  659. padding: 3px;
  660. border-radius: 3px; }
  661. .content pre > code {
  662. background-color: transparent;
  663. padding: 0; }
  664. .content aside {
  665. padding-top: 1em;
  666. padding-bottom: 1em;
  667. margin-top: 1.5em;
  668. margin-bottom: 1.5em;
  669. background: #8fbcd4;
  670. line-height: 1.6; }
  671. .content aside.warning {
  672. background-color: #c97a7e; }
  673. .content aside.success {
  674. background-color: #6ac174; }
  675. .content aside:before {
  676. vertical-align: middle;
  677. padding-right: 0.5em;
  678. font-size: 14px; }
  679. .content .search-highlight {
  680. padding: 2px;
  681. margin: -3px;
  682. border-radius: 4px;
  683. border: 1px solid #F7E633;
  684. background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%); }
  685. .content pre, .content blockquote {
  686. background-color: #1E2224;
  687. color: #fff;
  688. margin: 0;
  689. width: 50%;
  690. float: right;
  691. clear: right;
  692. box-sizing: border-box; }
  693. .content pre > p, .content blockquote > p {
  694. margin: 0; }
  695. .content pre a, .content blockquote a {
  696. color: #fff;
  697. text-decoration: none;
  698. border-bottom: dashed 1px #ccc; }
  699. .content pre {
  700. padding-top: 2em;
  701. padding-bottom: 2em;
  702. padding: 2em 28px; }
  703. .content blockquote > p {
  704. background-color: #191D1F;
  705. padding: 13px 2em;
  706. color: #eee; }
  707. @media (max-width: 930px) {
  708. .toc-wrapper {
  709. left: -230px; }
  710. .toc-wrapper.open {
  711. left: 0; }
  712. .page-wrapper {
  713. margin-left: 0; }
  714. #nav-button {
  715. display: block; }
  716. .toc-link {
  717. padding-top: 0.3em;
  718. padding-bottom: 0.3em; } }
  719. @media (max-width: 700px) {
  720. .dark-box {
  721. display: none; }
  722. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  723. margin-right: 0; }
  724. .toc-wrapper .lang-selector {
  725. display: block; }
  726. .page-wrapper .lang-selector {
  727. display: none; }
  728. .content pre, .content blockquote {
  729. width: auto;
  730. float: none; }
  731. .content > pre + h1, .content > blockquote + h1, .content > pre + h2, .content > blockquote + h2, .content > pre + h3, .content > blockquote + h3, .content > pre + h4, .content > blockquote + h4, .content > pre + h5, .content > blockquote + h5, .content > pre + h6, .content > blockquote + h6, .content > pre + p, .content > blockquote + p, .content > pre + table, .content > blockquote + table, .content > pre + ul, .content > blockquote + ul, .content > pre + ol, .content > blockquote + ol, .content > pre + aside, .content > blockquote + aside, .content > pre + dl, .content > blockquote + dl {
  732. margin-top: 28px; } }
  733. .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
  734. color: #909090; }
  735. .highlight, .highlight .w {
  736. background-color: #1E2224; }
  737. </style>
  738. <style media="print">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  739. /**
  740. * 1. Set default font family to sans-serif.
  741. * 2. Prevent iOS text size adjust after orientation change, without disabling
  742. * user zoom.
  743. */
  744. html {
  745. font-family: sans-serif;
  746. /* 1 */
  747. -ms-text-size-adjust: 100%;
  748. /* 2 */
  749. -webkit-text-size-adjust: 100%;
  750. /* 2 */ }
  751. /**
  752. * Remove default margin.
  753. */
  754. body {
  755. margin: 0; }
  756. /* HTML5 display definitions
  757. ========================================================================== */
  758. /**
  759. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  760. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  761. * and Firefox.
  762. * Correct `block` display not defined for `main` in IE 11.
  763. */
  764. article,
  765. aside,
  766. details,
  767. figcaption,
  768. figure,
  769. footer,
  770. header,
  771. hgroup,
  772. main,
  773. menu,
  774. nav,
  775. section,
  776. summary {
  777. display: block; }
  778. /**
  779. * 1. Correct `inline-block` display not defined in IE 8/9.
  780. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  781. */
  782. audio,
  783. canvas,
  784. progress,
  785. video {
  786. display: inline-block;
  787. /* 1 */
  788. vertical-align: baseline;
  789. /* 2 */ }
  790. /**
  791. * Prevent modern browsers from displaying `audio` without controls.
  792. * Remove excess height in iOS 5 devices.
  793. */
  794. audio:not([controls]) {
  795. display: none;
  796. height: 0; }
  797. /**
  798. * Address `[hidden]` styling not present in IE 8/9/10.
  799. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  800. */
  801. [hidden],
  802. template {
  803. display: none; }
  804. /* Links
  805. ========================================================================== */
  806. /**
  807. * Remove the gray background color from active links in IE 10.
  808. */
  809. a {
  810. background-color: transparent; }
  811. /**
  812. * Improve readability when focused and also mouse hovered in all browsers.
  813. */
  814. a:active,
  815. a:hover {
  816. outline: 0; }
  817. /* Text-level semantics
  818. ========================================================================== */
  819. /**
  820. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  821. */
  822. abbr[title] {
  823. border-bottom: 1px dotted; }
  824. /**
  825. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  826. */
  827. b,
  828. strong {
  829. font-weight: bold; }
  830. /**
  831. * Address styling not present in Safari and Chrome.
  832. */
  833. dfn {
  834. font-style: italic; }
  835. /**
  836. * Address variable `h1` font-size and margin within `section` and `article`
  837. * contexts in Firefox 4+, Safari, and Chrome.
  838. */
  839. h1 {
  840. font-size: 2em;
  841. margin: 0.67em 0; }
  842. /**
  843. * Address styling not present in IE 8/9.
  844. */
  845. mark {
  846. background: #ff0;
  847. color: #000; }
  848. /**
  849. * Address inconsistent and variable font size in all browsers.
  850. */
  851. small {
  852. font-size: 80%; }
  853. /**
  854. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  855. */
  856. sub,
  857. sup {
  858. font-size: 75%;
  859. line-height: 0;
  860. position: relative;
  861. vertical-align: baseline; }
  862. sup {
  863. top: -0.5em; }
  864. sub {
  865. bottom: -0.25em; }
  866. /* Embedded content
  867. ========================================================================== */
  868. /**
  869. * Remove border when inside `a` element in IE 8/9/10.
  870. */
  871. img {
  872. border: 0; }
  873. /**
  874. * Correct overflow not hidden in IE 9/10/11.
  875. */
  876. svg:not(:root) {
  877. overflow: hidden; }
  878. /* Grouping content
  879. ========================================================================== */
  880. /**
  881. * Address margin not present in IE 8/9 and Safari.
  882. */
  883. figure {
  884. margin: 1em 40px; }
  885. /**
  886. * Address differences between Firefox and other browsers.
  887. */
  888. hr {
  889. -moz-box-sizing: content-box;
  890. box-sizing: content-box;
  891. height: 0; }
  892. /**
  893. * Contain overflow in all browsers.
  894. */
  895. pre {
  896. overflow: auto; }
  897. /**
  898. * Address odd `em`-unit font size rendering in all browsers.
  899. */
  900. code,
  901. kbd,
  902. pre,
  903. samp {
  904. font-family: monospace, monospace;
  905. font-size: 1em; }
  906. /* Forms
  907. ========================================================================== */
  908. /**
  909. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  910. * styling of `select`, unless a `border` property is set.
  911. */
  912. /**
  913. * 1. Correct color not being inherited.
  914. * Known issue: affects color of disabled elements.
  915. * 2. Correct font properties not being inherited.
  916. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  917. */
  918. button,
  919. input,
  920. optgroup,
  921. select,
  922. textarea {
  923. color: inherit;
  924. /* 1 */
  925. font: inherit;
  926. /* 2 */
  927. margin: 0;
  928. /* 3 */ }
  929. /**
  930. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  931. */
  932. button {
  933. overflow: visible; }
  934. /**
  935. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  936. * All other form control elements do not inherit `text-transform` values.
  937. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  938. * Correct `select` style inheritance in Firefox.
  939. */
  940. button,
  941. select {
  942. text-transform: none; }
  943. /**
  944. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  945. * and `video` controls.
  946. * 2. Correct inability to style clickable `input` types in iOS.
  947. * 3. Improve usability and consistency of cursor style between image-type
  948. * `input` and others.
  949. */
  950. button,
  951. html input[type="button"],
  952. input[type="reset"],
  953. input[type="submit"] {
  954. -webkit-appearance: button;
  955. /* 2 */
  956. cursor: pointer;
  957. /* 3 */ }
  958. /**
  959. * Re-set default cursor for disabled elements.
  960. */
  961. button[disabled],
  962. html input[disabled] {
  963. cursor: default; }
  964. /**
  965. * Remove inner padding and border in Firefox 4+.
  966. */
  967. button::-moz-focus-inner,
  968. input::-moz-focus-inner {
  969. border: 0;
  970. padding: 0; }
  971. /**
  972. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  973. * the UA stylesheet.
  974. */
  975. input {
  976. line-height: normal; }
  977. /**
  978. * It's recommended that you don't attempt to style these elements.
  979. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  980. *
  981. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  982. * 2. Remove excess padding in IE 8/9/10.
  983. */
  984. input[type="checkbox"],
  985. input[type="radio"] {
  986. box-sizing: border-box;
  987. /* 1 */
  988. padding: 0;
  989. /* 2 */ }
  990. /**
  991. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  992. * `font-size` values of the `input`, it causes the cursor style of the
  993. * decrement button to change from `default` to `text`.
  994. */
  995. input[type="number"]::-webkit-inner-spin-button,
  996. input[type="number"]::-webkit-outer-spin-button {
  997. height: auto; }
  998. /**
  999. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  1000. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  1001. * (include `-moz` to future-proof).
  1002. */
  1003. input[type="search"] {
  1004. -webkit-appearance: textfield;
  1005. /* 1 */
  1006. -moz-box-sizing: content-box;
  1007. -webkit-box-sizing: content-box;
  1008. /* 2 */
  1009. box-sizing: content-box; }
  1010. /**
  1011. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  1012. * Safari (but not Chrome) clips the cancel button when the search input has
  1013. * padding (and `textfield` appearance).
  1014. */
  1015. input[type="search"]::-webkit-search-cancel-button,
  1016. input[type="search"]::-webkit-search-decoration {
  1017. -webkit-appearance: none; }
  1018. /**
  1019. * Define consistent border, margin, and padding.
  1020. */
  1021. fieldset {
  1022. border: 1px solid #c0c0c0;
  1023. margin: 0 2px;
  1024. padding: 0.35em 0.625em 0.75em; }
  1025. /**
  1026. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  1027. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  1028. */
  1029. legend {
  1030. border: 0;
  1031. /* 1 */
  1032. padding: 0;
  1033. /* 2 */ }
  1034. /**
  1035. * Remove default vertical scrollbar in IE 8/9/10/11.
  1036. */
  1037. textarea {
  1038. overflow: auto; }
  1039. /**
  1040. * Don't inherit the `font-weight` (applied by a rule above).
  1041. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  1042. */
  1043. optgroup {
  1044. font-weight: bold; }
  1045. /* Tables
  1046. ========================================================================== */
  1047. /**
  1048. * Remove most spacing between table cells.
  1049. */
  1050. table {
  1051. border-collapse: collapse;
  1052. border-spacing: 0; }
  1053. td,
  1054. th {
  1055. padding: 0; }
  1056. /*
  1057. Copyright 2008-2013 Concur Technologies, Inc.
  1058. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1059. not use this file except in compliance with the License. You may obtain
  1060. a copy of the License at
  1061. http://www.apache.org/licenses/LICENSE-2.0
  1062. Unless required by applicable law or agreed to in writing, software
  1063. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1064. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1065. License for the specific language governing permissions and limitations
  1066. under the License.
  1067. */
  1068. .content h1, .content h2, .content h3, .content h4, body {
  1069. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  1070. font-size: 14px; }
  1071. .content h1, .content h2, .content h3, .content h4 {
  1072. font-weight: bold; }
  1073. .content pre, .content code {
  1074. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  1075. font-size: 12px;
  1076. line-height: 1.5; }
  1077. .content pre, .content code {
  1078. word-break: break-all;
  1079. hyphens: auto; }
  1080. @font-face {
  1081. font-family: 'slate';
  1082. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  1083. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  1084. font-weight: normal;
  1085. font-style: normal; }
  1086. .content aside.warning:before, .content aside.notice:before, .content aside.success:before {
  1087. font-family: 'slate';
  1088. speak: none;
  1089. font-style: normal;
  1090. font-weight: normal;
  1091. font-variant: normal;
  1092. text-transform: none;
  1093. line-height: 1; }
  1094. .content aside.warning:before {
  1095. content: "\e600"; }
  1096. .content aside.notice:before {
  1097. content: "\e602"; }
  1098. .content aside.success:before {
  1099. content: "\e606"; }
  1100. /*
  1101. Copyright 2008-2013 Concur Technologies, Inc.
  1102. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1103. not use this file except in compliance with the License. You may obtain
  1104. a copy of the License at
  1105. http://www.apache.org/licenses/LICENSE-2.0
  1106. Unless required by applicable law or agreed to in writing, software
  1107. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1108. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1109. License for the specific language governing permissions and limitations
  1110. under the License.
  1111. */
  1112. .tocify, .toc-footer, .lang-selector, .search, #nav-button {
  1113. display: none; }
  1114. .tocify-wrapper > img {
  1115. margin: 0 auto;
  1116. display: block; }
  1117. .content {
  1118. font-size: 12px; }
  1119. .content pre, .content code {
  1120. border: 1px solid #999;
  1121. border-radius: 5px;
  1122. font-size: 0.8em; }
  1123. .content pre code {
  1124. border: 0; }
  1125. .content pre {
  1126. padding: 1.3em; }
  1127. .content code {
  1128. padding: 0.2em; }
  1129. .content table {
  1130. border: 1px solid #999; }
  1131. .content table tr {
  1132. border-bottom: 1px solid #999; }
  1133. .content table td, .content table th {
  1134. padding: 0.7em; }
  1135. .content p {
  1136. line-height: 1.5; }
  1137. .content a {
  1138. text-decoration: none;
  1139. color: #000; }
  1140. .content h1 {
  1141. font-size: 2.5em;
  1142. padding-top: 0.5em;
  1143. padding-bottom: 0.5em;
  1144. margin-top: 1em;
  1145. margin-bottom: 21px;
  1146. border: 2px solid #ccc;
  1147. border-width: 2px 0;
  1148. text-align: center; }
  1149. .content h2 {
  1150. font-size: 1.8em;
  1151. margin-top: 2em;
  1152. border-top: 2px solid #ccc;
  1153. padding-top: 0.8em; }
  1154. .content h1 + h2, .content h1 + div + h2 {
  1155. border-top: none;
  1156. padding-top: 0;
  1157. margin-top: 0; }
  1158. .content h3, .content h4 {
  1159. font-size: 0.8em;
  1160. margin-top: 1.5em;
  1161. margin-bottom: 0.8em;
  1162. text-transform: uppercase; }
  1163. .content h5, .content h6 {
  1164. text-transform: uppercase; }
  1165. .content aside {
  1166. padding: 1em;
  1167. border: 1px solid #ccc;
  1168. border-radius: 5px;
  1169. margin-top: 1.5em;
  1170. margin-bottom: 1.5em;
  1171. line-height: 1.6; }
  1172. .content aside:before {
  1173. vertical-align: middle;
  1174. padding-right: 0.5em;
  1175. font-size: 14px; }
  1176. </style>
  1177. <style media="screen">/*
  1178. Darkula color scheme from the JetBrains family of IDEs
  1179. */
  1180. .hljs {
  1181. display: block;
  1182. overflow-x: auto;
  1183. padding: 0.5em;
  1184. background: #2b2b2b;
  1185. -webkit-text-size-adjust: none;
  1186. }
  1187. .hljs,
  1188. .hljs-tag,
  1189. .hljs-title,
  1190. .css .hljs-rule,
  1191. .css .hljs-value,
  1192. .aspectj .hljs-function,
  1193. .css .hljs-function .hljs-preprocessor,
  1194. .hljs-pragma {
  1195. color: #bababa;
  1196. }
  1197. .hljs-strongemphasis,
  1198. .hljs-strong,
  1199. .hljs-emphasis {
  1200. color: #a8a8a2;
  1201. }
  1202. .hljs-bullet,
  1203. .hljs-blockquote,
  1204. .hljs-horizontal_rule,
  1205. .hljs-number,
  1206. .hljs-regexp,
  1207. .alias .hljs-keyword,
  1208. .hljs-literal,
  1209. .hljs-hexcolor {
  1210. color: #6896ba;
  1211. }
  1212. .hljs-tag .hljs-value,
  1213. .hljs-code,
  1214. .css .hljs-class,
  1215. .hljs-class .hljs-title:last-child {
  1216. color: #a6e22e;
  1217. }
  1218. .hljs-link_url {
  1219. font-size: 80%;
  1220. }
  1221. .hljs-emphasis,
  1222. .hljs-strongemphasis,
  1223. .hljs-class .hljs-title:last-child,
  1224. .hljs-typename {
  1225. font-style: italic;
  1226. }
  1227. .hljs-keyword,
  1228. .ruby .hljs-class .hljs-keyword:first-child,
  1229. .ruby .hljs-function .hljs-keyword,
  1230. .hljs-function,
  1231. .hljs-change,
  1232. .hljs-winutils,
  1233. .hljs-flow,
  1234. .nginx .hljs-title,
  1235. .tex .hljs-special,
  1236. .hljs-header,
  1237. .hljs-attribute,
  1238. .hljs-symbol,
  1239. .hljs-symbol .hljs-string,
  1240. .hljs-tag .hljs-title,
  1241. .hljs-value,
  1242. .alias .hljs-keyword:first-child,
  1243. .css .hljs-tag,
  1244. .css .unit,
  1245. .css .hljs-important {
  1246. color: #cb7832;
  1247. }
  1248. .hljs-function .hljs-keyword,
  1249. .hljs-class .hljs-keyword:first-child,
  1250. .hljs-aspect .hljs-keyword:first-child,
  1251. .hljs-constant,
  1252. .hljs-typename,
  1253. .css .hljs-attribute {
  1254. color: #cb7832;
  1255. }
  1256. .hljs-variable,
  1257. .hljs-params,
  1258. .hljs-class .hljs-title,
  1259. .hljs-aspect .hljs-title {
  1260. color: #b9b9b9;
  1261. }
  1262. .hljs-string,
  1263. .css .hljs-id,
  1264. .hljs-subst,
  1265. .hljs-type,
  1266. .ruby .hljs-class .hljs-parent,
  1267. .hljs-built_in,
  1268. .django .hljs-template_tag,
  1269. .django .hljs-variable,
  1270. .smalltalk .hljs-class,
  1271. .django .hljs-filter .hljs-argument,
  1272. .smalltalk .hljs-localvars,
  1273. .smalltalk .hljs-array,
  1274. .hljs-attr_selector,
  1275. .hljs-pseudo,
  1276. .hljs-addition,
  1277. .hljs-stream,
  1278. .hljs-envvar,
  1279. .apache .hljs-tag,
  1280. .apache .hljs-cbracket,
  1281. .tex .hljs-command,
  1282. .hljs-prompt,
  1283. .hljs-link_label,
  1284. .hljs-link_url,
  1285. .hljs-name {
  1286. color: #e0c46c;
  1287. }
  1288. .hljs-comment,
  1289. .hljs-annotation,
  1290. .hljs-pi,
  1291. .hljs-doctype,
  1292. .hljs-deletion,
  1293. .hljs-shebang,
  1294. .apache .hljs-sqbracket,
  1295. .tex .hljs-formula {
  1296. color: #7f7f7f;
  1297. }
  1298. .hljs-decorator {
  1299. color: #bab429;
  1300. }
  1301. .coffeescript .javascript,
  1302. .javascript .xml,
  1303. .tex .hljs-formula,
  1304. .xml .javascript,
  1305. .xml .vbscript,
  1306. .xml .css,
  1307. .xml .hljs-cdata,
  1308. .xml .php,
  1309. .php .xml {
  1310. opacity: 0.5;
  1311. }
  1312. </style>
  1313. <script>!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return ae.call(t,e)>-1!==n}):Ee.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return ae.call(t,e)>-1!==n&&1===e.nodeType}))}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Pe.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}$e.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=a(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),l=(he.cssNumber[t]||"px"!==c&&+u)&&Re.exec(he.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,he.style(e,t,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Be[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Fe.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Me(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Fe.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)Fe.set(e[n],"globalEval",!t||Fe.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Qe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ve.exec(o)||["",""])[1].toLowerCase(),u=Ue[a]||Ue._default,s.innerHTML=u[1]+he.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;he.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(c=he.contains(o.ownerDocument,o),s=y(f.appendChild(o),"script"),c&&x(s),n)for(l=0;o=s[l++];)Xe.test(o.type||"")&&n.push(o);return f}function w(){return!0}function T(){return!1}function S(){try{return ne.activeElement}catch(e){}}function E(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)E(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=T;else if(!i)return e;return 1===o&&(s=i,i=function(e){return he().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function C(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function j(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Fe.hasData(e)&&(o=Fe.access(e),s=Fe.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)he.event.add(t,i,c[i][n])}$e.hasData(e)&&(a=$e.access(e),u=he.extend({},a),$e.set(t,u))}}function A(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ze.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(e,t,r,i){t=oe.apply([],t);var o,s,a,u,c,l,f=0,d=e.length,p=d-1,h=t[0],g=he.isFunction(h);if(g||d>1&&"string"==typeof h&&!pe.checkClone&&tt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),L(o,t,r,i)});if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=he.map(y(o,"script"),k),u=a.length;f<d;f++)c=o,f!==p&&(c=he.clone(c,!0,!0),u&&he.merge(a,y(c,"script"))),r.call(e[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,he.map(a,N),f=0;f<u;f++)c=a[f],Xe.test(c.type||"")&&!Fe.access(c,"globalEval")&&he.contains(l,c)&&(c.src?he._evalUrl&&he._evalUrl(c.src):n(c.textContent.replace(rt,""),l))}return e}function D(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(y(r)),r.parentNode&&(n&&he.contains(r.ownerDocument,r)&&x(y(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,s,a=e.style;return n=n||st(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||he.contains(e.ownerDocument,e)||(s=he.style(e,t)),!pe.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function q(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in dt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if((e=ft[n]+t)in dt)return e}function $(e){var t=he.cssProps[e];return t||(t=he.cssProps[e]=F(e)||e),t}function P(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function H(e,t,n,r,i){var o,s=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=he.css(e,n+_e[o],!0,i)),r?("content"===n&&(s-=he.css(e,"padding"+_e[o],!0,i)),"margin"!==n&&(s-=he.css(e,"border"+_e[o]+"Width",!0,i))):(s+=he.css(e,"padding"+_e[o],!0,i),"padding"!==n&&(s+=he.css(e,"border"+_e[o]+"Width",!0,i)));return s}function I(e,t,n){var r,i=st(e),o=O(e,t,i),s="border-box"===he.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=s&&(pe.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+H(e,t,n||(s?"border":"content"),r,i)+"px")}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function _(){ht&&(!1===ne.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(_):e.setTimeout(_,he.fx.interval),he.fx.tick())}function M(){return e.setTimeout(function(){pt=void 0}),pt=he.now()}function W(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=_e[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(X.tweeners[t]||[]).concat(X.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function z(e,t,n){var r,i,o,s,a,u,c,l,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&Me(e),v=Fe.get(e,"fxshow");n.queue||(s=he._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,he.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(p)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=v&&v.display,null==c&&(c=Fe.get(e,"display")),l=he.css(e,"display"),"none"===l&&(c?l=c:(m([e],!0),c=e.style.display||c,l=he.css(e,"display"),m([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===he.css(e,"float")&&(u||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in p)u||(v?"hidden"in v&&(g=v.hidden):v=Fe.access(e,"fxshow",{display:c}),o&&(v.hidden=!g),g&&m([e],!0),d.done(function(){g||m([e]),Fe.remove(e,"fxshow");for(r in p)he.style(e,r,p[r])})),u=B(g?v[r]:0,r,d),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}}function V(e,t){var n,r,i,o,s;for(n in e)if(r=he.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=he.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function X(e,t,n){var r,i,o=0,s=X.prefilters.length,a=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=pt||M(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(e,[c,o,n]),o<1&&u?n:(u||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||M(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for(V(l,c.opts.specialEasing);o<s;o++)if(r=X.prefilters[o].call(c,e,l,c.opts))return he.isFunction(r.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=he.proxy(r.stop,r)),r;return he.map(l,B,c),he.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Ae)||[]).join(" ")}function Q(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e,t,n,r){var i;if(Array.isArray(t))he.each(t,function(t,i){n||kt.test(e)?r(e,i):Y(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==he.type(t))r(e,t);else for(i in t)Y(e+"["+i+"]",t[i],n,r)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ae)||[];if(he.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function G(e,t,n,r){function i(a){var u;return o[a]=!0,he.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===It;return i(t.dataTypes[0])||!o["*"]&&i("*")}function K(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}function Z(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ee(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,oe=te.concat,se=te.push,ae=te.indexOf,ue={},ce=ue.toString,le=ue.hasOwnProperty,fe=le.toString,de=fe.call(Object),pe={},he=function(e,t){return new he.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ve=/^-ms-/,me=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:"3.2.1",constructor:he,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:se,sort:te.sort,splice:te.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||he.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&he.isPlainObject(n)?n:{},s[t]=he.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},he.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e))&&(!(t=re(e))||"function"==typeof(n=le.call(t,"constructor")&&t.constructor)&&fe.call(n)===de)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[ce.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ve,"ms-").replace(me,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):se.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ae.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return oe.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),he.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:Date.now,support:pe}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=te[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var xe=function(e){function t(e,t,n,r){var i,o,s,a,u,l,d,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:R)!==D&&L(t),t=t||D,q)){if(11!==h&&(u=ge.exec(e)))if(i=u[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&H(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!z[e+" "]&&(!F||!F.test(e))){if(1!==h)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,be):t.setAttribute("id",a=I),l=E(e),o=l.length;o--;)l[o]="#"+a+" "+f(l[o]);d=l.join(","),p=ve.test(e)&&c(t.parentNode)||t}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{a===I&&t.removeAttribute("id")}}}return k(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,f,d=[_,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(f=t[I]||(t[I]={}),l=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,f,d=[],p=[],v=s.length,m=r||h(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?m:g(m,d,e,a,u),x=n?o||(r?e:v||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(c=g(x,p),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(x[p[l]]=!(y[p[l]]=f));if(r){if(o||e){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(y[l]=f);o(null,x=[],c,u)}for(l=x.length;l--;)(f=x[l])&&(c=o?K(r,f):d[l])>-1&&(r[c]=!(s[c]=f))}}else x=g(x===s?x.splice(v,x.length):x),o?o(null,s,x,u):J.apply(s,x)})}function m(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return K(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=w.relative[e[a].type])l=[d(p(l),n)];else{if(n=w.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;r<i&&!w.relative[e[r].type];r++);return v(a>1&&p(l),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&m(e.slice(a,r)),r<i&&m(e=e.slice(r)),r<i&&f(e))}l.push(n)}return p(l)}function y(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,f,d,p=0,h="0",v=r&&[],m=[],y=N,x=r||o&&w.find.TAG("*",c),b=_+=null==y?1:Math.random()||.1,T=x.length;for(c&&(N=s===D||s||c);h!==T&&null!=(l=x[h]);h++){if(o&&l){for(f=0,s||l.ownerDocument===D||(L(l),a=!q);d=e[f++];)if(d(l,s||D,a)){u.push(l);break}c&&(_=b)}i&&((l=!d&&l)&&p--,r&&v.push(l))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(v,m,s,a);if(r){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=Q.call(u));m=g(m)}J.apply(u,m),c&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return c&&(_=b,N=y),v};return i?r(s):s}var x,b,w,T,S,E,C,k,N,j,A,L,D,O,q,F,$,P,H,I="sizzle"+1*new Date,R=e.document,_=0,M=0,W=n(),B=n(),z=n(),V=function(e,t){return e===t&&(A=!0),0},X={}.hasOwnProperty,U=[],Q=U.pop,Y=U.push,J=U.push,G=U.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,me=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){L()},Te=d(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(U=G.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(e){J={apply:U.length?function(e,t){Y.apply(e,G.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,O=D.documentElement,q=!S(D),R!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=he.test(D.getElementsByClassName),b.getById=i(function(e){return O.appendChild(e).id=I,!D.getElementsByName||!D.getElementsByName(I).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&q)return t.getElementsByClassName(e)},$=[],F=[],(b.qsa=he.test(D.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+I+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||F.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(b.matchesSelector=he.test(P=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){b.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),$.push("!=",re)}),F=F.length&&new RegExp(F.join("|")),$=$.length&&new RegExp($.join("|")),t=he.test(O.compareDocumentPosition),H=t||he.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===R&&H(R,e)?-1:t===D||t.ownerDocument===R&&H(R,t)?1:j?K(j,e)-K(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:j?K(j,e)-K(j,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===R?-1:u[r]===R?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&L(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&q&&!z[n+" "]&&(!$||!$.test(n))&&(!F||!F.test(n)))try{var r=P.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&L(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&L(e);var n=w.attrHandle[t.toLowerCase()],r=n&&X.call(w.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:b.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,j=!b.sortStable&&e.slice(0),e.sort(V),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},w=t.selectors={cacheLength:50,createPseudo:r,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(me,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(me,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(me,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,p,h,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(v){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(d=v,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[_,p,x];break}}else if(y&&(d=t,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p),!1===x)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++x||(y&&(f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),l[e]=[_,x]),d!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=K(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(oe,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(me,ye),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(me,ye).toLowerCase(),function(t){var n;do{if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase()
  1314. ;return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(x);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,E=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=B[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=w.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in w.filter)!(i=fe[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},C=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=m(t[n]),o[I]?r.push(o):i.push(o);o=z(e,y(i,r)),o.selector=e}return o},k=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&q&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(me,ye),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((u=w.find[a])&&(r=u(s.matches[0].replace(me,ye),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return J.apply(n,r),n;break}}return(l||C(e,d))(r,t,!q,n,!t||ve.test(e)&&c(t.parentNode)||t),n},b.sortStable=I.split("").sort(V).join("")===I,b.detectDuplicates=!!A,L(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=xe,he.expr=xe.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=xe.uniqueSort,he.text=xe.getText,he.isXMLDoc=xe.isXML,he.contains=xe.contains,he.escapeSelector=xe.escape;var be=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=he.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ee=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&Te.test(e)?he(e):e||[],!1).length}});var Ce,ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ke.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),Se.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,Ce=he(ne);var Ne=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&he(e);if(!Te.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ae.call(he(e),this[0]):ae.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),this.length>1&&(je[e]||he.uniqueSort(i),Ne.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){e="string"==typeof e?a(e):he.extend({},e);var t,n,r,i,o=[],s=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,s.push(n)),function t(n){he.each(n,function(n,r){he.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==he.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;(n=he.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?he.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=he.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var a=this,l=arguments,f=function(){var e,f;if(!(t<s)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,he.isFunction(f)?i?f.call(e,o(s,n,u,i),o(s,n,c,i)):(s++,f.call(e,o(s,n,u,i),o(s,n,c,i),o(s,n,u,n.notifyWith))):(r!==u&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},d=i?f:function(){try{f()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,d.stackTrace),t+1>=s&&(r!==c&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?d():(he.Deferred.getStackHook&&(d.stackTrace=he.Deferred.getStackHook()),e.setTimeout(d))}}var s=0;return he.Deferred(function(e){n[0][3].add(o(0,e,he.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,he.isFunction(t)?t:u)),n[2][3].add(o(0,e,he.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),o=he.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||he.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Le.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var De=he.Deferred();he.fn.ready=function(e){return De.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||De.resolveWith(ne,[he]))}}),he.ready.then=De.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(he.ready):(ne.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Oe=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===he.type(n)){i=!0;for(a in n)Oe(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,he.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={cache:function(e){var t=e[this.expando];return t||(t={},qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[he.camelCase(t)]=n;else for(r in t)i[he.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][he.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(he.camelCase):(t=he.camelCase(t),t=t in r?[t]:t.match(Ae)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Fe=new d,$e=new d,Pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/[A-Z]/g;he.extend({hasData:function(e){return $e.hasData(e)||Fe.hasData(e)},data:function(e,t,n){return $e.access(e,t,n)},removeData:function(e,t){$e.remove(e,t)},_data:function(e,t,n){return Fe.access(e,t,n)},_removeData:function(e,t){Fe.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=$e.get(o),1===o.nodeType&&!Fe.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=he.camelCase(r.slice(5)),h(o,r,i[r])));Fe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){$e.set(this,e)}):Oe(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=$e.get(o,e)))return n;if(void 0!==(n=h(o,e)))return n}else this.each(function(){$e.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){$e.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||Array.isArray(n)?r=Fe.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t),s=function(){he.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:he.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Fe.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Me=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&he.contains(e.ownerDocument,e)&&"none"===he.css(e,"display")},We=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},Be={};he.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Me(this)?he(this).show():he(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ve=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Xe=/^$|\/(?:java|ecma)script/i,Ue={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Qe=/<|&#?\w+;/;!function(){var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ye=ne.documentElement,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.get(e);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&he.find.matchesSelector(Ye,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p&&(f=he.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=he.event.special[p]||{},l=he.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),he.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.hasData(e)&&Fe.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p){for(f=he.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)l=d[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)he.event.remove(e,p+t[c],n,r,!0);he.isEmptyObject(u)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=he.event.fix(e),u=new Array(arguments.length),c=(Fe.get(this,"events")||{})[a.type]||[],l=he.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=he.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?he(i,this).index(c)>-1:he.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:he.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||he.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=T),this.each(function(){he.event.remove(this,e,n,t)})}});var Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(Ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=he.contains(e.ownerDocument,e);if(!(pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(s=y(a),o=y(e),r=0,i=o.length;r<i;r++)A(o[r],s[r]);if(t)if(n)for(o=o||y(e),s=s||y(a),r=0,i=o.length;r<i;r++)j(o[r],s[r]);else j(e,a);return s=y(a,"script"),s.length>0&&x(s,!u&&y(e,"script")),a},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(qe(n)){if(t=n[Fe.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[Fe.expando]=void 0}n[$e.expando]&&(n[$e.expando]=void 0)}}}),he.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Oe(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){C(this,e).appendChild(e)}})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Oe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Ue[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),he(i[s])[t](n),se.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ye.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ye.removeChild(s),a=null}}var n,r,i,o,s=ne.createElement("div"),a=ne.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",pe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),he.extend(pe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,ut=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","Moz","ms"],dt=ne.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=he.camelCase(t),u=ut.test(t),c=e.style;if(u||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];o=typeof n,"string"===o&&(i=Re.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[a]?"":"px")),pe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=he.camelCase(t);return ut.test(t)||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=O(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?I(e,t,r):We(e,ct,function(){return I(e,t,r)})},set:function(e,n,r){var i,o=r&&st(e),s=r&&H(e,t,r,"border-box"===he.css(e,"boxSizing",!1,o),o);return s&&(i=Re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),P(e,n,s)}}}),he.cssHooks.marginLeft=q(pe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+_e[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(he.cssHooks[e+t].set=P)}),he.fn.extend({css:function(e,t){return Oe(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=st(e),i=t.length;s<i;s++)o[t[s]]=he.css(e,t[s],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)}}),he.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=R.prototype.init,he.fx.step={};var pt,ht,gt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;he.Animation=he.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[z],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),s=function(){var t=X(this,he.extend({},e),o);(i||Fe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,s=Fe.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&vt.test(i)&&r(s[i])
  1315. ;for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Fe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,s=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(W(t,!0),e,r,i)}}),he.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(pt=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),pt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,_())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var mt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Oe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=yt[s],yt[s]=i,i=null!=n(e,t,r)?s:null,yt[s]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Oe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Q(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(Ae)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=Q(this),t&&Fe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+U(Q(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;he.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=he.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,he(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:U(he.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],c=a?s+1:o.length;for(r=s<0?c:a?s:0;r<c;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=he(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=he.inArray(he.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},pe.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;he.extend(he.event,{trigger:function(t,n,r,i){var o,s,a,u,c,l,f,d=[r||ne],p=le.call(t,"type")?t.type:t,h=le.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+he.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[he.expando]?t:new he.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),f=he.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!he.isWindow(r)){for(u=f.delegateType||p,Tt.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(r.ownerDocument||ne)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||p,l=(Fe.get(s,"events")||{})[t.type]&&Fe.get(s,"handle"),l&&l.apply(s,n),(l=c&&s[c])&&l.apply&&qe(s)&&(t.result=l.apply(s,n),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!qe(r)||c&&he.isFunction(r[p])&&!he.isWindow(r)&&(a=r[c],a&&(r[c]=null),he.event.triggered=p,r[p](),he.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),pe.focusin="onfocusin"in e,pe.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Fe.access(r,t);i||r.addEventListener(e,n,!0),Fe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Fe.access(r,t)-1;i?Fe.access(r,t,i):(r.removeEventListener(e,n,!0),Fe.remove(r,t))}}});var St=e.location,Et=he.now(),Ct=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var kt=/\[\]$/,Nt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=he.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)Y(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&At.test(this.nodeName)&&!jt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}});var Lt=/%20/g,Dt=/#.*$/,Ot=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$t=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ht={},It={},Rt="*/".concat("*"),_t=ne.createElement("a");_t.href=St.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Ft.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?K(K(e,he.ajaxSettings),t):K(he.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(It),ajax:function(t,n){function r(t,n,r,a){var c,d,p,b,w,T=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=Z(h,S,r)),b=ee(h,b,S,c),c?(h.ifModified&&(w=S.getResponseHeader("Last-Modified"),w&&(he.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,p=b.error,c=!p)):(p=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(n||T)+"",c?m.resolveWith(g,[d,T,S]):m.rejectWith(g,[S,T,p]),S.statusCode(x),x=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[S,h,c?d:p]),y.fireWith(g,[S,T]),f&&(v.trigger("ajaxComplete",[S,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,c,l,f,d,p,h=he.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?he(g):he.event,m=he.Deferred(),y=he.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=qt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(m.promise(S),h.url=((t||h.url||St.href)+"").replace(Pt,St.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ae)||[""],null==h.crossDomain){c=ne.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),G(Ht,h,n,S),l)return S;f=he.event&&h.global,f&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(p=h.url.slice(o.length),h.data&&(o+=(Ct.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ot,"$1"),p=(Ct.test(o)?"&":"?")+"_="+Et+++p),h.url=o+p),h.ifModified&&(he.lastModified[o]&&S.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&S.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(g,S,h)||l))return S.abort();if(T="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),i=G(It,h,n,S)){if(S.readyState=1,f&&v.trigger("ajaxSend",[S,h]),l)return S;h.async&&h.timeout>0&&(u=e.setTimeout(function(){S.abort("timeout")},h.timeout));try{l=!1,i.send(b,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return he.isFunction(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(he.isFunction(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Wt=he.ajaxSettings.xhr();pe.cors=!!Wt&&"withCredentials"in Wt,pe.ajax=Wt=!!Wt,he.ajaxTransport(function(t){var n,r;if(pe.cors||Wt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=he("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Bt=[],zt=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||he.expando+"_"+Et++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(zt,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||he.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(i)),s&&he.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),pe.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),he.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(pe.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))},he.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=U(e.slice(a)),e=e.slice(0,a)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c,l=he.css(e,"position"),f=he(e),d={};"static"===l&&(e.style.position="relative"),a=f.offset(),o=he.css(e,"top"),u=he.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):f.css(d)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===he.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+he.css(e[0],"borderTopWidth",!0),left:r.left+he.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-he.css(n,"marginTop",!0),left:t.left-r.left-he.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ye})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Oe(this,function(e,r,i){var o;if(he.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=q(pe.pixelPosition,function(e,n){if(n)return n=O(e,t),ot.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Oe(this,function(t,n,i){var o;return he.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)},t,s?i:void 0,s)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Vt=e.jQuery,Xt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Xt),t&&e.jQuery===he&&(e.jQuery=Vt),he},t||(e.jQuery=e.$=he),he}),jQuery.extend({highlight:function(e,t,n,r){if(3===e.nodeType){var i=e.data.match(t);if(i){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(i.index);s.splitText(i[0].length);var a=s.cloneNode(!0);return o.appendChild(a),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var u=0;u<e.childNodes.length;u++)u+=jQuery.highlight(e.childNodes[u],t,n,r);return 0}}),jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};return jQuery.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(n,t),e.constructor===String&&(e=[e]),e=jQuery.grep(e,function(e,t){return""!=e}),e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),0==e.length)return this;var r=n.caseSensitive?"":"i",i="("+e.join("|")+")";n.wordsOnly&&(i="\\b"+i+"\\b");var o=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,o,n.element,n.className)})},function(){var e=function(t){var n=new e.Index;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),t&&t.call(n,n),n};e.version="0.5.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.EventEmitter=function(){this.events={}},e.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},e.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||delete this.events[e]}},e.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)})}},e.EventEmitter.prototype.hasHandler=function(e){return e in this.events},e.tokenizer=function(e){if(!arguments.length||null==e||void 0==e)return[];if(Array.isArray(e))return e.map(function(e){return e.toLowerCase()});for(var t=e.toString().replace(/^\s+/,""),n=t.length-1;n>=0;n--)if(/\S/.test(t.charAt(n))){t=t.substring(0,n+1);break}return t.split(/(?:\s+|\-)/).filter(function(e){return!!e}).map(function(e){return e.toLowerCase()})},e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions={},e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(t){var r=e.Pipeline.registeredFunctions[t];if(!r)throw new Error("Cannot load un-registered function: "+t);n.add(r)}),n},e.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t)+1;this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);this._stack.splice(t,1)},e.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,r=this._stack.length,i=0;i<n;i++){for(var o=e[i],s=0;s<r&&void 0!==(o=this._stack[s](o,i,e));s++);void 0!==o&&t.push(o)}return t},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})},e.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},e.Vector.Node=function(e,t,n){this.idx=e,this.val=t,this.next=n},e.Vector.prototype.insert=function(t,n){var r=this.list;if(!r)return this.list=new e.Vector.Node(t,n,r),this.length++;for(var i=r,o=r.next;void 0!=o;){if(t<o.idx)return i.next=new e.Vector.Node(t,n,o),this.length++;i=o,o=o.next}return i.next=new e.Vector.Node(t,n,o),this.length++},e.Vector.prototype.magnitude=function(){if(this._magniture)return this._magnitude;for(var e,t=this.list,n=0;t;)e=t.val,n+=e*e,t=t.next;return this._magnitude=Math.sqrt(n)},e.Vector.prototype.dot=function(e){for(var t=this.list,n=e.list,r=0;t&&n;)t.idx<n.idx?t=t.next:t.idx>n.idx?n=n.next:(r+=t.val*n.val,t=t.next,n=n.next);return r},e.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},e.SortedSet=function(){this.length=0,this.elements=[]},e.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},e.SortedSet.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){~this.indexOf(e)||this.elements.splice(this.locationFor(e),0,e)},this),this.length=this.elements.length},e.SortedSet.prototype.toArray=function(){return this.elements.slice()},e.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},e.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},e.SortedSet.prototype.indexOf=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];return r<=1?o===e?i:-1:o<e?this.indexOf(e,i,n):o>e?this.indexOf(e,t,i):o===e?i:void 0},e.SortedSet.prototype.locationFor=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];if(r<=1){if(o>e)return i;if(o<e)return i+1}return o<e?this.locationFor(e,i,n):o>e?this.locationFor(e,t,i):void 0},e.SortedSet.prototype.intersect=function(t){for(var n=new e.SortedSet,r=0,i=0,o=this.length,s=t.length,a=this.elements,u=t.elements;;){if(r>o-1||i>s-1)break;a[r]!==u[i]?a[r]<u[i]?r++:a[r]>u[i]&&i++:(n.add(a[r]),r++,i++)}return n},e.SortedSet.prototype.clone=function(){var t=new e.SortedSet;return t.elements=this.toArray(),t.length=t.elements.length,t},e.SortedSet.prototype.union=function(e){var t,n,r;return this.length>=e.length?(t=this,n=e):(t=e,n=this),r=t.clone(),r.add.apply(r,n.toArray()),r},e.SortedSet.prototype.toJSON=function(){return this.toArray()},e.Index=function(){this._fields=[],this._ref="id",this.pipeline=new e.Pipeline,this.documentStore=new e.Store,this.tokenStore=new e.TokenStore,this.corpusTokens=new e.SortedSet,this.eventEmitter=new e.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},e.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},e.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},e.Index.load=function(t){t.version!==e.version&&e.utils.warn("version mismatch: current "+e.version+" importing "+t.version);var n=new this;return n._fields=t.fields,n._ref=t.ref,n.documentStore=e.Store.load(t.documentStore),n.tokenStore=e.TokenStore.load(t.tokenStore),n.corpusTokens=e.SortedSet.load(t.corpusTokens),n.pipeline=e.Pipeline.load(t.pipeline),n},e.Index.prototype.field=function(e,t){var t=t||{},n={name:e,boost:t.boost||1};return this._fields.push(n),this},e.Index.prototype.ref=function(e){return this._ref=e,this},e.Index.prototype.add=function(t,n){var r={},i=new e.SortedSet,o=t[this._ref],n=void 0===n||n;this._fields.forEach(function(n){var o=this.pipeline.run(e.tokenizer(t[n.name]));r[n.name]=o,e.SortedSet.prototype.add.apply(i,o)},this),this.documentStore.set(o,i),e.SortedSet.prototype.add.apply(this.corpusTokens,i.toArray());for(var s=0;s<i.length;s++){var a=i.elements[s],u=this._fields.reduce(function(e,t){var n=r[t.name].length;return n?e+r[t.name].filter(function(e){return e===a}).length/n*t.boost:e},0);this.tokenStore.add(a,{ref:o,tf:u})}n&&this.eventEmitter.emit("add",t,this)},e.Index.prototype.remove=function(e,t){var n=e[this._ref],t=void 0===t||t;if(this.documentStore.has(n)){var r=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},e.Index.prototype.update=function(e,t){var t=void 0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},e.Index.prototype.idf=function(e){var t="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))return this._idfCache[t];var n=this.tokenStore.count(e),r=1;return n>0&&(r=1+Math.log(this.tokenStore.length/n)),this._idfCache[t]=r},e.Index.prototype.search=function(t){
  1316. var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduce(function(e,t){return e+t.boost},0);return n.some(function(e){return this.tokenStore.has(e)},this)?(n.forEach(function(t,n,s){var a=1/s.length*this._fields.length*o,u=this,c=this.tokenStore.expand(t).reduce(function(n,i){var o=u.corpusTokens.indexOf(i),s=u.idf(i),c=1,l=new e.SortedSet;if(i!==t){var f=Math.max(3,i.length-t.length);c=1/Math.log(f)}return o>-1&&r.insert(o,a*s*c),Object.keys(u.tokenStore.get(i)).forEach(function(e){l.add(e)}),n.union(l)},new e.SortedSet);i.push(c)},this),i.reduce(function(e,t){return e.intersect(t)}).map(function(e){return{ref:e,score:r.similarity(this.documentVector(e))}},this).sort(function(e,t){return t.score-e.score})):[]},e.Index.prototype.documentVector=function(t){for(var n=this.documentStore.get(t),r=n.length,i=new e.Vector,o=0;o<r;o++){var s=n.elements[o],a=this.tokenStore.get(s)[t].tf,u=this.idf(s);i.insert(this.corpusTokens.indexOf(s),a*u)}return i},e.Index.prototype.toJSON=function(){return{version:e.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},e.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},e.Store=function(){this.store={},this.length=0},e.Store.load=function(t){var n=new this;return n.length=t.length,n.store=Object.keys(t.store).reduce(function(n,r){return n[r]=e.SortedSet.load(t.store[r]),n},{}),n},e.Store.prototype.set=function(e,t){this.has(e)||this.length++,this.store[e]=t},e.Store.prototype.get=function(e){return this.store[e]},e.Store.prototype.has=function(e){return e in this.store},e.Store.prototype.remove=function(e){this.has(e)&&(delete this.store[e],this.length--)},e.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},e.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[aeiouy]",r="[^aeiou][^aeiouy]*",i=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),o=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),u=/^(.+?)(ss|i)es$/,c=/^(.+?)([^s])s$/,l=/^(.+?)eed$/,f=/^(.+?)(ed|ing)$/,d=/.$/,p=/(at|bl|iz)$/,h=new RegExp("([^aeiouylsz])\\1$"),g=new RegExp("^"+r+n+"[^aeiouwxy]$"),v=/^(.+?[^aeiou])y$/,m=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,y=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,x=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,w=/^(.+?)e$/,T=/ll$/,S=new RegExp("^"+r+n+"[^aeiouwxy]$");return function(n){var r,E,C,k,N,j,A;if(n.length<3)return n;if(C=n.substr(0,1),"y"==C&&(n=C.toUpperCase()+n.substr(1)),k=u,N=c,k.test(n)?n=n.replace(k,"$1$2"):N.test(n)&&(n=n.replace(N,"$1$2")),k=l,N=f,k.test(n)){var L=k.exec(n);k=i,k.test(L[1])&&(k=d,n=n.replace(k,""))}else if(N.test(n)){var L=N.exec(n);r=L[1],N=a,N.test(r)&&(n=r,N=p,j=h,A=g,N.test(n)?n+="e":j.test(n)?(k=d,n=n.replace(k,"")):A.test(n)&&(n+="e"))}if(k=v,k.test(n)){var L=k.exec(n);r=L[1],n=r+"i"}if(k=m,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+e[E])}if(k=y,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+t[E])}if(k=x,N=b,k.test(n)){var L=k.exec(n);r=L[1],k=o,k.test(r)&&(n=r)}else if(N.test(n)){var L=N.exec(n);r=L[1]+L[2],N=o,N.test(r)&&(n=r)}if(k=w,k.test(n)){var L=k.exec(n);r=L[1],k=o,N=s,j=S,(k.test(r)||N.test(r)&&!j.test(r))&&(n=r)}return k=T,N=o,k.test(n)&&N.test(n)&&(k=d,n=n.replace(k,"")),"y"==C&&(n=C.toLowerCase()+n.substr(1)),n}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer"),e.stopWordFilter=function(t){if(-1===e.stopWordFilter.stopWords.indexOf(t))return t},e.stopWordFilter.stopWords=new e.SortedSet,e.stopWordFilter.stopWords.length=119,e.stopWordFilter.stopWords.elements=["","a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"],e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter"),e.trimmer=function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")},e.Pipeline.registerFunction(e.trimmer,"trimmer"),e.TokenStore=function(){this.root={docs:{}},this.length=0},e.TokenStore.load=function(e){var t=new this;return t.root=e.root,t.length=e.length,t},e.TokenStore.prototype.add=function(e,t,n){var n=n||this.root,r=e[0],i=e.slice(1);return r in n||(n[r]={docs:{}}),0===i.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(i,t,n[r])},e.TokenStore.prototype.has=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},e.TokenStore.prototype.getNode=function(e){if(!e)return{};for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return{};t=t[e[n]]}return t},e.TokenStore.prototype.get=function(e,t){return this.getNode(e,t).docs||{}},e.TokenStore.prototype.count=function(e,t){return Object.keys(this.get(e,t)).length},e.TokenStore.prototype.remove=function(e,t){if(e){for(var n=this.root,r=0;r<e.length;r++){if(!(e[r]in n))return;n=n[e[r]]}delete n.docs[t]}},e.TokenStore.prototype.expand=function(e,t){var n=this.getNode(e),r=n.docs||{},t=t||[];return Object.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},e.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.lunr=t()}(this,function(){return e})}(),function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,o=i.EventEmitter;r.getListeners=function(e){var t,n,r=this._getEvents();if("object"==typeof e){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},r.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},r.addListener=function(e,n){var r,i=this.getListenersAsObject(e),o="object"==typeof n;for(r in i)i.hasOwnProperty(r)&&-1===t(i[r],n)&&i[r].push(o?n:{listener:n,once:!1});return this},r.on=n("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=n("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,n){var r,i,o=this.getListenersAsObject(e);for(i in o)o.hasOwnProperty(i)&&-1!==(r=t(o[i],n))&&o[i].splice(r,1);return this},r.off=n("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},r.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if("object"===n)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=n("removeEvent"),r.emitEvent=function(e,t){var n,r,i,o=this.getListenersAsObject(e);for(i in o)if(o.hasOwnProperty(i))for(r=o[i].length;r--;)n=o[i][r],!0===n.once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},r.trigger=n("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,r=function(){};n.addEventListener?r=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(r=function(e,n,r){e[n+r]=r.handleEvent?function(){var n=t(e);r.handleEvent.call(r,n)}:function(){var n=t(e);r.call(e,n)},e.attachEvent("on"+n,e[n+r])});var i=function(){};n.removeEventListener?i=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(i=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(r){e[t+n]=void 0}});var o={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,r){return t(e,n,r)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(i(e))t=e;else if("number"==typeof e.length)for(var n=0,r=e.length;r>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function a(e){this.img=e}function u(e){this.src=e,p[e]=this}var c=e.jQuery,l=e.console,f=void 0!==l,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var r=n.nodeType;if(r&&(1===r||9===r||11===r))for(var i=n.querySelectorAll("img"),o=0,s=i.length;s>o;o++){var a=i[o];this.addImage(a)}}},s.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},s.prototype.check=function(){function e(e,i){return t.options.debug&&f&&l.log("confirm",e,i),t.progress(e),n++,n===r&&t.complete(),!0}var t=this,n=0,r=this.images.length;if(this.hasAnyBroken=!1,!r)return void this.complete();for(var i=0;r>i;i++){var o=this.images[i];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},c&&(c.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(c(this))}),a.prototype=new t,a.prototype.check=function(){var e=p[this.img.src]||new u(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var p={};return u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},u.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},u.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}),function(){if("ontouchstart"in window){var e,t,n,r,i,o,s={};e=function(e,t){return Math.abs(e[0]-t[0])>5||Math.abs(e[1]-t[1])>5},t=function(e){this.startXY=[e.touches[0].clientX,e.touches[0].clientY],this.threshold=!1},n=function(t){if(this.threshold)return!1;this.threshold=e(this.startXY,[t.touches[0].clientX,t.touches[0].clientY])},r=function(t){if(!this.threshold&&!e(this.startXY,[t.changedTouches[0].clientX,t.changedTouches[0].clientY])){var n=t.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.simulated=!0,t.target.dispatchEvent(r)}},i=function(e){var t=Date.now(),n=t-s.time,r=e.clientX,i=e.clientY,a=[Math.abs(s.x-r),Math.abs(s.y-i)],u=o(e.target,"A")||e.target,c=u.nodeName,l="A"===c,f=window.navigator.standalone&&l&&e.target.getAttribute("href");if(s.time=t,s.x=r,s.y=i,(!e.simulated&&(n<500||n<1500&&a[0]<50&&a[1]<50)||f)&&(e.preventDefault(),e.stopPropagation(),!f))return!1;f&&(window.location=u.getAttribute("href")),u&&u.classList&&(u.classList.add("energize-focus"),window.setTimeout(function(){u.classList.remove("energize-focus")},150))},o=function(e,t){for(var n=e;n!==document.body;){if(!n||n.nodeName===t)return n;n=n.parentNode}return null},document.addEventListener("touchstart",t,!1),document.addEventListener("touchmove",n,!1),document.addEventListener("touchend",r,!1),document.addEventListener("click",i,!0)}}(),function(){"use strict";function e(e){if(e&&""!==e){$(".lang-selector a").removeClass("active"),$(".lang-selector a[data-language-name='"+e+"']").addClass("active");for(var t=0;t<a.length;t++)$(".highlight.tab-"+a[t]).hide(),$(".lang-specific."+a[t]).hide();$(".highlight.tab-"+e).show(),$(".lang-specific."+e).show(),window.recacheHeights(),$(window.location.hash).get(0)&&$(window.location.hash).get(0).scrollIntoView(!0)}}function t(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n[0],i=n[1];return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i,e},{}):{})}function n(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return Array.isArray(n)?n.sort().map(function(e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"):""}function r(){if(location.search.length>=1){var e=t(location.search).language;if(e)return e;if(-1!=jQuery.inArray(location.search.substr(1),a))return location.search.substr(1)}return!1}function i(e){var r=t(location.search);return r.language?(r.language=e,n(r)):e}function o(e){if(history){var t=window.location.hash;t&&(t=t.replace(/^#+/,"")),history.pushState({},"","?"+i(e)+"#"+t),localStorage.setItem("language",e)}}function s(t){var n=localStorage.getItem("language");a=t;var i=r();i?(e(i),localStorage.setItem("language",i)):e(null!==n&&-1!=jQuery.inArray(n,a)?n:a[0])}var a=[];window.setupLanguages=s,window.activateLanguage=e,window.getLanguageFromQueryString=r,$(function(){$(".lang-selector a").on("click",function(){var t=$(this).data("language-name");return o(t),e(t),!1})})}(),function(){"use strict";function e(){$("h1, h2").each(function(){var e=$(this),t=e.nextUntil("h1, h2");f.add({id:e.prop("id"),title:e.text(),body:t.text()})}),t()}function t(){f.tokenStore.length>5e3&&(c=300)}function n(){s=$(".content"),a=$(".search-results"),$("#input-search").on("keyup",function(e){!function(){return function(e,t){clearTimeout(l),l=setTimeout(e,t)}}()(function(){r(e)},c)})}function r(e){var t=$("#input-search")[0];if(o(),a.addClass("visible"),27===e.keyCode&&(t.value=""),t.value){var n=f.search(t.value).filter(function(e){return e.score>1e-4});n.length?(a.empty(),$.each(n,function(e,t){var n=document.getElementById(t.ref);a.append("<li><a href='#"+t.ref+"'>"+$(n).text()+"</a></li>")}),i.call(t)):(a.html("<li></li>"),$(".search-results li").text('No Results Found for "'+t.value+'"'))}else o(),a.removeClass("visible")}function i(){this.value&&s.highlight(this.value,u)}function o(){s.unhighlight(u)}var s,a,u={element:"span",className:"search-highlight"},c=0,l=0,f=new lunr.Index;f.ref("id"),f.field("title",{boost:10}),f.field("body"),f.pipeline.add(lunr.trimmer,lunr.stopWordFilter),$(e),$(n)}(),function(){"use strict";function e(e,i,o,s){var a={},u=0,c=0,l=document.title,f=function(){a={},u=$(document).height(),c=$(window).height(),e.find(i).each(function(){var e=$(this).attr("href");"#"===e[0]&&(a[e]=$(e).offset().top)})},d=function(){var n=$(document).scrollTop()+s;n+c>=u&&(n=u+1e3);var r=null;for(var f in a)(a[f]<n&&a[f]>a[r]||null===r)&&(r=f);n!=s||t||(r=window.location.hash,t=!0);var d=e.find("[href='"+r+"']").first();if(!d.hasClass("active")){e.find(".active").removeClass("active"),e.find(".active-parent").removeClass("active-parent"),d.addClass("active"),d.parents(o).addClass("active").siblings(i).addClass("active-parent"),d.siblings(o).addClass("active"),e.find(o).filter(":not(.active)").slideUp(150),e.find(o).filter(".active").slideDown(150),window.history.replaceState&&window.history.replaceState(null,"",r);var p=d.data("title");void 0!==p&&p.length>0?document.title=p+" – "+l:document.title=l}};!function(){f(),d(),$("#nav-button").click(function(){return $(".toc-wrapper").toggleClass("open"),$("#nav-button").toggleClass("open"),!1}),$(".page-wrapper").click(r),$(".toc-link").click(r),e.find(i).click(function(){setTimeout(function(){d()},0)}),$(window).scroll(n(d,200)),$(window).resize(n(f,200))}(),window.recacheHeights=f,window.refreshToc=d}var t=!1,n=function(e,t){var n=!1;return function(){!1===n&&(setTimeout(function(){e(),n=!1},t),n=!0)}},r=function(){$(".toc-wrapper").removeClass("open"),$("#nav-button").removeClass("open")};window.loadToc=e}(),$(function(){loadToc($("#toc"),".toc-link",".toc-list-h2, .toc-list-h3, .toc-list-h4, .toc-list-h5, .toc-list-h6",10),setupLanguages($("body").data("languages")),$(".content").imagesLoaded(function(){window.recacheHeights(),window.refreshToc()})}),window.onpopstate=function(){activateLanguage(getLanguageFromQueryString())};</script>
  1317. <meta name="theme-color" content="#F3F7F9" />
  1318. </head>
  1319. <body data-languages="[&quot;shell&quot;,&quot;http&quot;,&quot;javascript&quot;,&quot;javascript--nodejs&quot;,&quot;ruby&quot;,&quot;python&quot;,&quot;java&quot;,&quot;go&quot;]">
  1320. <a href="#" id="nav-button">
  1321. <span>
  1322. NAV
  1323. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1324. </span>
  1325. </a>
  1326. <div class="toc-wrapper">
  1327. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAQAAADbsxk3AAAGF0lEQVR42r3XA5AkexIH4Fx7n23btm3btm3btm3btm2uvTuzs4PvLjK6Kjq6n9/cfRUYT2dnVv5/Fe1FV+d61oFm0zNSLadocnq0Ax10101eOkd70cGmpJctFHXMqVGrC6MdWNVtbsrrRkdH+zGZlyXPmjhqOFWLcXaKduBpVeKPmMDxPnC3af7iKN0oGWXZSAV9PI9GS/0fSzCfuxSaHKnLXxilqxTWjVSwpF8xxlTRDjz1JyWY2MrlDw3VRLpFr6iwprX0jRq6uEFhzSgku4BREf/zEkxsJ8+SfnS+XXxDetEkUeFLPGo9HWvG7lHSIItHFT1cDb6P32VCC1rTlna0Wn4+rT3tZnc71+8cz6sS1Wznda2g1enmibC2RtK5xZ+ygFGg0ZE6RMmMPiK9bqqoYlIfgqeiXuhua3d4y/eGGYd3TRhhH4Vpo4b9DPCzn/J6LAqm8YpWyWcW0Smn+zhJo82jwplaJK9U98HimiSXRiGZSXJF1HG4fppU+9ZcEQ5TmDnC7O70nOe84AlT6KxPefXIP6OjfRWa3aFTJON7RPKlOcpRe1PhAmUXdLS7ZIT1opBsJjk8quhodYPU+8bs1SWYJcIOmhTWiFomd7vCYPtEyXQGS56OCusarbB+lHQty/2wdnpdLNksSqZwlXptGjyjV4SdNRlhpEZT5Yg3KKwepaS3ZxR+LCtMVpa0ODmSbi5WGGv2KJlMYe+o4QPJElFhNq+r1t/jLnCgraxv/srtvXZuvtV0+LMSTlUYbpkoJGdJGoqjylQGKLxtiig5SPJL1FGYOpJZ9VMY6SLLmdYEusbvsr3GuoVdMFBh06jhQ8mQSJX2DpfcoGeU9K8droJ5JMrFMUzyuS3iL7Gmwdq0aiO7VE2D5MaoYXyFuyPp4F3vGSo5LEo2lTwfdewqacjPJvIB2rxvi/gbdNFdV12jnlslE0UNWylsXt4bDa6SjLZhlLwLBlnI9JaygAmj5ErJZ3nTX4ERjjV+faSxoXWtZLZyFa9gI1tYtXxLV7e1yaOWWYzIP1/H3Qq9InnPK86WfGPeqh6MBV971sd28aiPXKp3JO9IHo+wDr6sD3s286xvnelbg3ztMj3s4SsDjNbi2vyJbb1lGDaPepY3zFtRxxjJm5Esi+3K1fmGPmV8eFrShr31cjfafCFL1yi5Qic/+MKskQr6etBYPK+3XySLu1NhqwgHawRjsif1TG3bqGFuhSMjedwvxvOd5IGosIlGhWE6mMhLoNkBeeq0SA5xgFG1HTCRx8A4B5jKEMmyXlKY0SpaJZ+aPf4qeykskJ8vrcnOppG0OLEMdy8quUQH0xkF2uySvWuV7GaYfeoC+lmS/iazg0YwzrS+UOjtc2Mlj+kRf5XbJYONl2HgSr/qZgnJWBtHcqBq60XYSPKsHhF20ip5UkPt0rAAFBHQLZKXdTVc8p6jfOJR0Oa8yo2/cPw5H0ge1DPCvJrsGGEb0hhzVg6pNtXmjfAxuFzuHA8pjNPqLl2iinsVtjG5j0hnRmgiPWyUtb0LRtsy/svbf2GcTF3O/LE66+JSn5kiwnGkEflTnfyIZi2kAaZ2Kj60dCRL6Idq5+oaJUq9reN9TRhpA72NIzW43hxawcBMrct4K/6chfWrGo25tdkuv34B6ds8bO7FQCf5jPSTY11alYR6uVyLWofpHMkFVJ0ZZzjDYHxpWjMbpzCj9UlfVNbKcvHnzKUfGGVRXbzjUd2rk5DXI1yOETbX1etVg1TFcU70JanJKIXTTJKb/nGFi/Vxjx0MxXO56JtJ70bYkXRThFVdF3+Nx8Bwa7tPP1OWAa0/+NE9GCzjny0UrokKPd3uJNP4XGFt/RTe87ynTelN0gG2dL6FDNfq4jxW25QxxiqkI3RwqRnjr9HX++V4TB0lqxlKesNMVTGskXSBmczpBP1tkY+c3yhMazLPKHyRz2ZT+BqM9kauje/wghOdR8pQZ0afgxddZL34O+zlHofrWPeIdLK77aBDTQw70odGg4EuKM/uo7zqBwMMkjvM1t432M0mLrt1uHudpHOly5/7zPI628nFbneRjClW87kG31g/6vwHQzOUbn+MgQEAAAAASUVORK5CYII=" class="logo" alt="Logo">
  1328. <div class="lang-selector">
  1329. <a href="#" data-language-name="shell">Shell</a>
  1330. <a href="#" data-language-name="http">HTTP</a>
  1331. <a href="#" data-language-name="javascript">JavaScript</a>
  1332. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1333. <a href="#" data-language-name="ruby">Ruby</a>
  1334. <a href="#" data-language-name="python">Python</a>
  1335. <a href="#" data-language-name="java">Java</a>
  1336. <a href="#" data-language-name="go">Go</a>
  1337. </div>
  1338. <div class="search">
  1339. <input type="text" class="search" id="input-search" placeholder="Search">
  1340. </div>
  1341. <ul class="search-results"></ul>
  1342. <div id="toc" class="toc-list-h1">
  1343. <ul class="toc-list-h1">
  1344. <li>
  1345. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v7.93">Wekan REST API v7.93</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 v7.93</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">"allowsReceivedDate"</span>: <span class="hljs-literal">true</span>,
  2839. <span class="hljs-attr">"allowsStartDate"</span>: <span class="hljs-literal">true</span>,
  2840. <span class="hljs-attr">"allowsEndDate"</span>: <span class="hljs-literal">true</span>,
  2841. <span class="hljs-attr">"allowsDueDate"</span>: <span class="hljs-literal">true</span>,
  2842. <span class="hljs-attr">"presentParentTask"</span>: <span class="hljs-string">"prefix-with-full-path"</span>,
  2843. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  2844. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  2845. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  2846. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  2847. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  2848. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  2849. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"board"</span>,
  2850. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  2851. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>
  2852. }
  2853. </code></pre>
  2854. <h3 id="get_board-responses">Responses</h3>
  2855. <table>
  2856. <thead>
  2857. <tr>
  2858. <th>Status</th>
  2859. <th>Meaning</th>
  2860. <th>Description</th>
  2861. <th>Schema</th>
  2862. </tr>
  2863. </thead>
  2864. <tbody>
  2865. <tr>
  2866. <td>200</td>
  2867. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2868. <td>200 response</td>
  2869. <td><a href="#schemaboards">Boards</a></td>
  2870. </tr>
  2871. </tbody>
  2872. </table>
  2873. <aside class="warning">
  2874. To perform this operation, you must be authenticated by means of one of the following methods:
  2875. UserSecurity
  2876. </aside>
  2877. <h2 id="delete_board">delete_board</h2>
  2878. <p><a id="opIddelete_board"></a></p>
  2879. <blockquote>
  2880. <p>Code samples</p>
  2881. </blockquote>
  2882. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2883. curl -X DELETE /api/boards/{board} \
  2884. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  2885. </code></pre>
  2886. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}</span> HTTP/1.1
  2887. <span class="undefined"></span></code></pre>
  2888. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  2889. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2890. };
  2891. $.ajax({
  2892. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}'</span>,
  2893. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  2894. <span class="hljs-attr">headers</span>: headers,
  2895. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  2896. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  2897. }
  2898. })
  2899. </code></pre>
  2900. <pre class="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>);
  2901. <span class="hljs-keyword">const</span> headers = {
  2902. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  2903. };
  2904. fetch(<span class="hljs-string">'/api/boards/{board}'</span>,
  2905. {
  2906. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  2907. <span class="hljs-attr">headers</span>: headers
  2908. })
  2909. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2910. <span class="hljs-keyword">return</span> res.json();
  2911. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2912. <span class="hljs-built_in">console</span>.log(body);
  2913. });
  2914. </code></pre>
  2915. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  2916. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  2917. headers = {
  2918. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  2919. }
  2920. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}'</span>,
  2921. <span class="hljs-symbol">params:</span> {
  2922. }, <span class="hljs-symbol">headers:</span> headers
  2923. p JSON.parse(result)
  2924. </code></pre>
  2925. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2926. headers = {
  2927. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  2928. }
  2929. r = requests.delete(<span class="hljs-string">'/api/boards/{board}'</span>, params={
  2930. }, headers = headers)
  2931. <span class="hljs-keyword">print</span> r.json()
  2932. </code></pre>
  2933. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}"</span>);
  2934. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2935. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  2936. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2937. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2938. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2939. String inputLine;
  2940. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2941. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2942. response.append(inputLine);
  2943. }
  2944. in.close();
  2945. System.out.println(response.toString());
  2946. </code></pre>
  2947. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2948. <span class="hljs-keyword">import</span> (
  2949. <span class="hljs-string">"bytes"</span>
  2950. <span class="hljs-string">"net/http"</span>
  2951. )
  2952. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2953. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2954. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  2955. }
  2956. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2957. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}"</span>, data)
  2958. req.Header = headers
  2959. client := &amp;http.Client{}
  2960. resp, err := client.Do(req)
  2961. <span class="hljs-comment">// ...</span>
  2962. }
  2963. </code></pre>
  2964. <p><code>DELETE /api/boards/{board}</code></p>
  2965. <p><em>Delete a board</em></p>
  2966. <h3 id="delete_board-parameters">Parameters</h3>
  2967. <table>
  2968. <thead>
  2969. <tr>
  2970. <th>Name</th>
  2971. <th>In</th>
  2972. <th>Type</th>
  2973. <th>Required</th>
  2974. <th>Description</th>
  2975. </tr>
  2976. </thead>
  2977. <tbody>
  2978. <tr>
  2979. <td>board</td>
  2980. <td>path</td>
  2981. <td>string</td>
  2982. <td>true</td>
  2983. <td>the ID of the board</td>
  2984. </tr>
  2985. </tbody>
  2986. </table>
  2987. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2988. <p><strong>board</strong>: the ID of the board</p>
  2989. <h3 id="delete_board-responses">Responses</h3>
  2990. <table>
  2991. <thead>
  2992. <tr>
  2993. <th>Status</th>
  2994. <th>Meaning</th>
  2995. <th>Description</th>
  2996. <th>Schema</th>
  2997. </tr>
  2998. </thead>
  2999. <tbody>
  3000. <tr>
  3001. <td>200</td>
  3002. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3003. <td>200 response</td>
  3004. <td>None</td>
  3005. </tr>
  3006. </tbody>
  3007. </table>
  3008. <aside class="warning">
  3009. To perform this operation, you must be authenticated by means of one of the following methods:
  3010. UserSecurity
  3011. </aside>
  3012. <h2 id="get_board_attachments">get_board_attachments</h2>
  3013. <p><a id="opIdget_board_attachments"></a></p>
  3014. <blockquote>
  3015. <p>Code samples</p>
  3016. </blockquote>
  3017. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3018. curl -X GET /api/boards/{board}/attachments \
  3019. -H <span class="hljs-string">'Accept: application/json'</span> \
  3020. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3021. </code></pre>
  3022. <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
  3023. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  3024. <span class="undefined"></span></span></code></pre>
  3025. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3026. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3027. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3028. };
  3029. $.ajax({
  3030. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  3031. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3032. <span class="hljs-attr">headers</span>: headers,
  3033. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3034. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3035. }
  3036. })
  3037. </code></pre>
  3038. <pre class="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>);
  3039. <span class="hljs-keyword">const</span> headers = {
  3040. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3041. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3042. };
  3043. fetch(<span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  3044. {
  3045. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3046. <span class="hljs-attr">headers</span>: headers
  3047. })
  3048. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3049. <span class="hljs-keyword">return</span> res.json();
  3050. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3051. <span class="hljs-built_in">console</span>.log(body);
  3052. });
  3053. </code></pre>
  3054. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3055. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3056. headers = {
  3057. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3058. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3059. }
  3060. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/attachments'</span>,
  3061. <span class="hljs-symbol">params:</span> {
  3062. }, <span class="hljs-symbol">headers:</span> headers
  3063. p JSON.parse(result)
  3064. </code></pre>
  3065. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3066. headers = {
  3067. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3068. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3069. }
  3070. r = requests.get(<span class="hljs-string">'/api/boards/{board}/attachments'</span>, params={
  3071. }, headers = headers)
  3072. <span class="hljs-keyword">print</span> r.json()
  3073. </code></pre>
  3074. <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>);
  3075. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3076. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3077. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3078. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3079. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3080. String inputLine;
  3081. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3082. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3083. response.append(inputLine);
  3084. }
  3085. in.close();
  3086. System.out.println(response.toString());
  3087. </code></pre>
  3088. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3089. <span class="hljs-keyword">import</span> (
  3090. <span class="hljs-string">"bytes"</span>
  3091. <span class="hljs-string">"net/http"</span>
  3092. )
  3093. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3094. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3095. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3096. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3097. }
  3098. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3099. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/attachments"</span>, data)
  3100. req.Header = headers
  3101. client := &amp;http.Client{}
  3102. resp, err := client.Do(req)
  3103. <span class="hljs-comment">// ...</span>
  3104. }
  3105. </code></pre>
  3106. <p><code>GET /api/boards/{board}/attachments</code></p>
  3107. <p><em>Get the list of attachments of a board</em></p>
  3108. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3109. <table>
  3110. <thead>
  3111. <tr>
  3112. <th>Name</th>
  3113. <th>In</th>
  3114. <th>Type</th>
  3115. <th>Required</th>
  3116. <th>Description</th>
  3117. </tr>
  3118. </thead>
  3119. <tbody>
  3120. <tr>
  3121. <td>board</td>
  3122. <td>path</td>
  3123. <td>string</td>
  3124. <td>true</td>
  3125. <td>the board ID</td>
  3126. </tr>
  3127. </tbody>
  3128. </table>
  3129. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3130. <p><strong>board</strong>: the board ID</p>
  3131. <blockquote>
  3132. <p>Example responses</p>
  3133. </blockquote>
  3134. <blockquote>
  3135. <p>200 Response</p>
  3136. </blockquote>
  3137. <pre class="highlight tab tab-json"><code>[
  3138. {
  3139. <span class="hljs-attr">"attachmentId"</span>: <span class="hljs-string">"string"</span>,
  3140. <span class="hljs-attr">"attachmentName"</span>: <span class="hljs-string">"string"</span>,
  3141. <span class="hljs-attr">"attachmentType"</span>: <span class="hljs-string">"string"</span>,
  3142. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  3143. <span class="hljs-attr">"urlDownload"</span>: <span class="hljs-string">"string"</span>,
  3144. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  3145. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  3146. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  3147. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>
  3148. }
  3149. ]
  3150. </code></pre>
  3151. <h3 id="get_board_attachments-responses">Responses</h3>
  3152. <table>
  3153. <thead>
  3154. <tr>
  3155. <th>Status</th>
  3156. <th>Meaning</th>
  3157. <th>Description</th>
  3158. <th>Schema</th>
  3159. </tr>
  3160. </thead>
  3161. <tbody>
  3162. <tr>
  3163. <td>200</td>
  3164. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3165. <td>200 response</td>
  3166. <td>Inline</td>
  3167. </tr>
  3168. </tbody>
  3169. </table>
  3170. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3171. <p>Status Code <strong>200</strong></p>
  3172. <table>
  3173. <thead>
  3174. <tr>
  3175. <th>Name</th>
  3176. <th>Type</th>
  3177. <th>Required</th>
  3178. <th>Restrictions</th>
  3179. <th>Description</th>
  3180. </tr>
  3181. </thead>
  3182. <tbody>
  3183. <tr>
  3184. <td>» attachmentId</td>
  3185. <td>string</td>
  3186. <td>false</td>
  3187. <td>none</td>
  3188. <td>none</td>
  3189. </tr>
  3190. <tr>
  3191. <td>» attachmentName</td>
  3192. <td>string</td>
  3193. <td>false</td>
  3194. <td>none</td>
  3195. <td>none</td>
  3196. </tr>
  3197. <tr>
  3198. <td>» attachmentType</td>
  3199. <td>string</td>
  3200. <td>false</td>
  3201. <td>none</td>
  3202. <td>none</td>
  3203. </tr>
  3204. <tr>
  3205. <td>» url</td>
  3206. <td>string</td>
  3207. <td>false</td>
  3208. <td>none</td>
  3209. <td>none</td>
  3210. </tr>
  3211. <tr>
  3212. <td>» urlDownload</td>
  3213. <td>string</td>
  3214. <td>false</td>
  3215. <td>none</td>
  3216. <td>none</td>
  3217. </tr>
  3218. <tr>
  3219. <td>» boardId</td>
  3220. <td>string</td>
  3221. <td>false</td>
  3222. <td>none</td>
  3223. <td>none</td>
  3224. </tr>
  3225. <tr>
  3226. <td>» swimlaneId</td>
  3227. <td>string</td>
  3228. <td>false</td>
  3229. <td>none</td>
  3230. <td>none</td>
  3231. </tr>
  3232. <tr>
  3233. <td>» listId</td>
  3234. <td>string</td>
  3235. <td>false</td>
  3236. <td>none</td>
  3237. <td>none</td>
  3238. </tr>
  3239. <tr>
  3240. <td>» cardId</td>
  3241. <td>string</td>
  3242. <td>false</td>
  3243. <td>none</td>
  3244. <td>none</td>
  3245. </tr>
  3246. </tbody>
  3247. </table>
  3248. <aside class="warning">
  3249. To perform this operation, you must be authenticated by means of one of the following methods:
  3250. UserSecurity
  3251. </aside>
  3252. <h2 id="exportjson">exportJson</h2>
  3253. <p><a id="opIdexportJson"></a></p>
  3254. <blockquote>
  3255. <p>Code samples</p>
  3256. </blockquote>
  3257. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3258. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3259. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3260. </code></pre>
  3261. <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
  3262. <span class="undefined"></span></code></pre>
  3263. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3264. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3265. };
  3266. $.ajax({
  3267. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/export'</span>,
  3268. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  3269. <span class="hljs-attr">headers</span>: headers,
  3270. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3271. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3272. }
  3273. })
  3274. </code></pre>
  3275. <pre class="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>);
  3276. <span class="hljs-keyword">const</span> headers = {
  3277. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3278. };
  3279. fetch(<span class="hljs-string">'/api/boards/{board}/export'</span>,
  3280. {
  3281. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  3282. <span class="hljs-attr">headers</span>: headers
  3283. })
  3284. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3285. <span class="hljs-keyword">return</span> res.json();
  3286. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3287. <span class="hljs-built_in">console</span>.log(body);
  3288. });
  3289. </code></pre>
  3290. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3291. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3292. headers = {
  3293. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3294. }
  3295. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/export'</span>,
  3296. <span class="hljs-symbol">params:</span> {
  3297. }, <span class="hljs-symbol">headers:</span> headers
  3298. p JSON.parse(result)
  3299. </code></pre>
  3300. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3301. headers = {
  3302. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3303. }
  3304. r = requests.get(<span class="hljs-string">'/api/boards/{board}/export'</span>, params={
  3305. }, headers = headers)
  3306. <span class="hljs-keyword">print</span> r.json()
  3307. </code></pre>
  3308. <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>);
  3309. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3310. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  3311. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3312. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3313. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3314. String inputLine;
  3315. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3316. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3317. response.append(inputLine);
  3318. }
  3319. in.close();
  3320. System.out.println(response.toString());
  3321. </code></pre>
  3322. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3323. <span class="hljs-keyword">import</span> (
  3324. <span class="hljs-string">"bytes"</span>
  3325. <span class="hljs-string">"net/http"</span>
  3326. )
  3327. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3328. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3329. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3330. }
  3331. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3332. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/export"</span>, data)
  3333. req.Header = headers
  3334. client := &amp;http.Client{}
  3335. resp, err := client.Do(req)
  3336. <span class="hljs-comment">// ...</span>
  3337. }
  3338. </code></pre>
  3339. <p><code>GET /api/boards/{board}/export</code></p>
  3340. <p><em>This route is used to export the board to a json file format.</em></p>
  3341. <p>If user is already logged-in, pass loginToken as param
  3342. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3343. <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>
  3344. for detailed explanations</p>
  3345. <h3 id="exportjson-parameters">Parameters</h3>
  3346. <table>
  3347. <thead>
  3348. <tr>
  3349. <th>Name</th>
  3350. <th>In</th>
  3351. <th>Type</th>
  3352. <th>Required</th>
  3353. <th>Description</th>
  3354. </tr>
  3355. </thead>
  3356. <tbody>
  3357. <tr>
  3358. <td>board</td>
  3359. <td>path</td>
  3360. <td>string</td>
  3361. <td>true</td>
  3362. <td>the ID of the board we are exporting</td>
  3363. </tr>
  3364. </tbody>
  3365. </table>
  3366. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3367. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3368. <h3 id="exportjson-responses">Responses</h3>
  3369. <table>
  3370. <thead>
  3371. <tr>
  3372. <th>Status</th>
  3373. <th>Meaning</th>
  3374. <th>Description</th>
  3375. <th>Schema</th>
  3376. </tr>
  3377. </thead>
  3378. <tbody>
  3379. <tr>
  3380. <td>200</td>
  3381. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3382. <td>200 response</td>
  3383. <td>None</td>
  3384. </tr>
  3385. </tbody>
  3386. </table>
  3387. <aside class="warning">
  3388. To perform this operation, you must be authenticated by means of one of the following methods:
  3389. UserSecurity
  3390. </aside>
  3391. <h2 id="copy_board">copy_board</h2>
  3392. <p><a id="opIdcopy_board"></a></p>
  3393. <blockquote>
  3394. <p>Code samples</p>
  3395. </blockquote>
  3396. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3397. curl -X POST /api/boards/{board}/copy \
  3398. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3399. -H <span class="hljs-string">'Accept: application/json'</span> \
  3400. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3401. </code></pre>
  3402. <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
  3403. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3404. Accept: application/json
  3405. </span></code></pre>
  3406. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3407. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3408. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3409. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3410. };
  3411. $.ajax({
  3412. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/copy'</span>,
  3413. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3414. <span class="hljs-attr">headers</span>: headers,
  3415. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3416. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3417. }
  3418. })
  3419. </code></pre>
  3420. <pre class="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>);
  3421. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3422. "title": "string"
  3423. }'</span>;
  3424. <span class="hljs-keyword">const</span> headers = {
  3425. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3426. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3427. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3428. };
  3429. fetch(<span class="hljs-string">'/api/boards/{board}/copy'</span>,
  3430. {
  3431. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3432. <span class="hljs-attr">body</span>: inputBody,
  3433. <span class="hljs-attr">headers</span>: headers
  3434. })
  3435. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3436. <span class="hljs-keyword">return</span> res.json();
  3437. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3438. <span class="hljs-built_in">console</span>.log(body);
  3439. });
  3440. </code></pre>
  3441. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3442. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3443. headers = {
  3444. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3445. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3446. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3447. }
  3448. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/copy'</span>,
  3449. <span class="hljs-symbol">params:</span> {
  3450. }, <span class="hljs-symbol">headers:</span> headers
  3451. p JSON.parse(result)
  3452. </code></pre>
  3453. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3454. headers = {
  3455. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3456. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3457. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3458. }
  3459. r = requests.post(<span class="hljs-string">'/api/boards/{board}/copy'</span>, params={
  3460. }, headers = headers)
  3461. <span class="hljs-keyword">print</span> r.json()
  3462. </code></pre>
  3463. <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>);
  3464. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3465. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3466. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3467. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3468. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3469. String inputLine;
  3470. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3471. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3472. response.append(inputLine);
  3473. }
  3474. in.close();
  3475. System.out.println(response.toString());
  3476. </code></pre>
  3477. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3478. <span class="hljs-keyword">import</span> (
  3479. <span class="hljs-string">"bytes"</span>
  3480. <span class="hljs-string">"net/http"</span>
  3481. )
  3482. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3483. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3484. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3485. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3486. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3487. }
  3488. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3489. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/copy"</span>, data)
  3490. req.Header = headers
  3491. client := &amp;http.Client{}
  3492. resp, err := client.Do(req)
  3493. <span class="hljs-comment">// ...</span>
  3494. }
  3495. </code></pre>
  3496. <p><code>POST /api/boards/{board}/copy</code></p>
  3497. <p><em>Copy a board to a new one</em></p>
  3498. <p>If your are board admin or wekan admin, this copies the
  3499. given board to a new one.</p>
  3500. <blockquote>
  3501. <p>Body parameter</p>
  3502. </blockquote>
  3503. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  3504. </code></pre>
  3505. <h3 id="copy_board-parameters">Parameters</h3>
  3506. <table>
  3507. <thead>
  3508. <tr>
  3509. <th>Name</th>
  3510. <th>In</th>
  3511. <th>Type</th>
  3512. <th>Required</th>
  3513. <th>Description</th>
  3514. </tr>
  3515. </thead>
  3516. <tbody>
  3517. <tr>
  3518. <td>board</td>
  3519. <td>path</td>
  3520. <td>string</td>
  3521. <td>true</td>
  3522. <td>the board</td>
  3523. </tr>
  3524. <tr>
  3525. <td>body</td>
  3526. <td>body</td>
  3527. <td>object</td>
  3528. <td>false</td>
  3529. <td>none</td>
  3530. </tr>
  3531. <tr>
  3532. <td>» title</td>
  3533. <td>body</td>
  3534. <td>string</td>
  3535. <td>true</td>
  3536. <td>the title of the new board (default to old one)</td>
  3537. </tr>
  3538. </tbody>
  3539. </table>
  3540. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3541. <p><strong>board</strong>: the board</p>
  3542. <blockquote>
  3543. <p>Example responses</p>
  3544. </blockquote>
  3545. <blockquote>
  3546. <p>200 Response</p>
  3547. </blockquote>
  3548. <pre class="highlight tab tab-json"><code><span class="hljs-string">"string"</span>
  3549. </code></pre>
  3550. <h3 id="copy_board-responses">Responses</h3>
  3551. <table>
  3552. <thead>
  3553. <tr>
  3554. <th>Status</th>
  3555. <th>Meaning</th>
  3556. <th>Description</th>
  3557. <th>Schema</th>
  3558. </tr>
  3559. </thead>
  3560. <tbody>
  3561. <tr>
  3562. <td>200</td>
  3563. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3564. <td>200 response</td>
  3565. <td>string</td>
  3566. </tr>
  3567. </tbody>
  3568. </table>
  3569. <aside class="warning">
  3570. To perform this operation, you must be authenticated by means of one of the following methods:
  3571. UserSecurity
  3572. </aside>
  3573. <h2 id="add_board_label">add_board_label</h2>
  3574. <p><a id="opIdadd_board_label"></a></p>
  3575. <blockquote>
  3576. <p>Code samples</p>
  3577. </blockquote>
  3578. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3579. curl -X PUT /api/boards/{board}/labels \
  3580. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3581. -H <span class="hljs-string">'Accept: application/json'</span> \
  3582. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3583. </code></pre>
  3584. <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
  3585. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3586. Accept: application/json
  3587. </span></code></pre>
  3588. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3589. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3590. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3591. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3592. };
  3593. $.ajax({
  3594. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3595. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  3596. <span class="hljs-attr">headers</span>: headers,
  3597. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3598. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3599. }
  3600. })
  3601. </code></pre>
  3602. <pre class="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>);
  3603. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3604. "label": "string"
  3605. }'</span>;
  3606. <span class="hljs-keyword">const</span> headers = {
  3607. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3608. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  3609. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3610. };
  3611. fetch(<span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3612. {
  3613. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  3614. <span class="hljs-attr">body</span>: inputBody,
  3615. <span class="hljs-attr">headers</span>: headers
  3616. })
  3617. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3618. <span class="hljs-keyword">return</span> res.json();
  3619. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3620. <span class="hljs-built_in">console</span>.log(body);
  3621. });
  3622. </code></pre>
  3623. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3624. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3625. headers = {
  3626. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3627. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  3628. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3629. }
  3630. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/labels'</span>,
  3631. <span class="hljs-symbol">params:</span> {
  3632. }, <span class="hljs-symbol">headers:</span> headers
  3633. p JSON.parse(result)
  3634. </code></pre>
  3635. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3636. headers = {
  3637. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3638. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  3639. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3640. }
  3641. r = requests.put(<span class="hljs-string">'/api/boards/{board}/labels'</span>, params={
  3642. }, headers = headers)
  3643. <span class="hljs-keyword">print</span> r.json()
  3644. </code></pre>
  3645. <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>);
  3646. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3647. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  3648. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3649. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3650. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3651. String inputLine;
  3652. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3653. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3654. response.append(inputLine);
  3655. }
  3656. in.close();
  3657. System.out.println(response.toString());
  3658. </code></pre>
  3659. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3660. <span class="hljs-keyword">import</span> (
  3661. <span class="hljs-string">"bytes"</span>
  3662. <span class="hljs-string">"net/http"</span>
  3663. )
  3664. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3665. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3666. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3667. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  3668. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3669. }
  3670. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3671. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/labels"</span>, data)
  3672. req.Header = headers
  3673. client := &amp;http.Client{}
  3674. resp, err := client.Do(req)
  3675. <span class="hljs-comment">// ...</span>
  3676. }
  3677. </code></pre>
  3678. <p><code>PUT /api/boards/{board}/labels</code></p>
  3679. <p><em>Add a label to a board</em></p>
  3680. <p>If the board doesn't have the name/color label, this function
  3681. adds the label to the board.</p>
  3682. <blockquote>
  3683. <p>Body parameter</p>
  3684. </blockquote>
  3685. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3686. </code></pre>
  3687. <h3 id="add_board_label-parameters">Parameters</h3>
  3688. <table>
  3689. <thead>
  3690. <tr>
  3691. <th>Name</th>
  3692. <th>In</th>
  3693. <th>Type</th>
  3694. <th>Required</th>
  3695. <th>Description</th>
  3696. </tr>
  3697. </thead>
  3698. <tbody>
  3699. <tr>
  3700. <td>board</td>
  3701. <td>path</td>
  3702. <td>string</td>
  3703. <td>true</td>
  3704. <td>the board</td>
  3705. </tr>
  3706. <tr>
  3707. <td>body</td>
  3708. <td>body</td>
  3709. <td>object</td>
  3710. <td>false</td>
  3711. <td>none</td>
  3712. </tr>
  3713. <tr>
  3714. <td>» label</td>
  3715. <td>body</td>
  3716. <td>string</td>
  3717. <td>true</td>
  3718. <td>the label value</td>
  3719. </tr>
  3720. </tbody>
  3721. </table>
  3722. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3723. <p><strong>board</strong>: the board</p>
  3724. <blockquote>
  3725. <p>Example responses</p>
  3726. </blockquote>
  3727. <blockquote>
  3728. <p>200 Response</p>
  3729. </blockquote>
  3730. <pre class="highlight tab tab-json"><code><span class="hljs-string">"string"</span>
  3731. </code></pre>
  3732. <h3 id="add_board_label-responses">Responses</h3>
  3733. <table>
  3734. <thead>
  3735. <tr>
  3736. <th>Status</th>
  3737. <th>Meaning</th>
  3738. <th>Description</th>
  3739. <th>Schema</th>
  3740. </tr>
  3741. </thead>
  3742. <tbody>
  3743. <tr>
  3744. <td>200</td>
  3745. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3746. <td>200 response</td>
  3747. <td>string</td>
  3748. </tr>
  3749. </tbody>
  3750. </table>
  3751. <aside class="warning">
  3752. To perform this operation, you must be authenticated by means of one of the following methods:
  3753. UserSecurity
  3754. </aside>
  3755. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3756. <p><a id="opIdset_board_member_permission"></a></p>
  3757. <blockquote>
  3758. <p>Code samples</p>
  3759. </blockquote>
  3760. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3761. curl -X POST /api/boards/{board}/members/{member} \
  3762. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3763. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3764. </code></pre>
  3765. <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
  3766. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3767. </span></code></pre>
  3768. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3769. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3770. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3771. };
  3772. $.ajax({
  3773. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3774. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  3775. <span class="hljs-attr">headers</span>: headers,
  3776. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3777. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3778. }
  3779. })
  3780. </code></pre>
  3781. <pre class="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>);
  3782. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3783. "isAdmin": true,
  3784. "isNoComments": true,
  3785. "isCommentOnly": true,
  3786. "isWorker": true
  3787. }'</span>;
  3788. <span class="hljs-keyword">const</span> headers = {
  3789. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3790. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3791. };
  3792. fetch(<span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3793. {
  3794. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  3795. <span class="hljs-attr">body</span>: inputBody,
  3796. <span class="hljs-attr">headers</span>: headers
  3797. })
  3798. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3799. <span class="hljs-keyword">return</span> res.json();
  3800. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3801. <span class="hljs-built_in">console</span>.log(body);
  3802. });
  3803. </code></pre>
  3804. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  3805. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  3806. headers = {
  3807. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  3808. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  3809. }
  3810. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/members/{member}'</span>,
  3811. <span class="hljs-symbol">params:</span> {
  3812. }, <span class="hljs-symbol">headers:</span> headers
  3813. p JSON.parse(result)
  3814. </code></pre>
  3815. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3816. headers = {
  3817. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  3818. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  3819. }
  3820. r = requests.post(<span class="hljs-string">'/api/boards/{board}/members/{member}'</span>, params={
  3821. }, headers = headers)
  3822. <span class="hljs-keyword">print</span> r.json()
  3823. </code></pre>
  3824. <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>);
  3825. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3826. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  3827. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3828. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3829. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3830. String inputLine;
  3831. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3832. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3833. response.append(inputLine);
  3834. }
  3835. in.close();
  3836. System.out.println(response.toString());
  3837. </code></pre>
  3838. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3839. <span class="hljs-keyword">import</span> (
  3840. <span class="hljs-string">"bytes"</span>
  3841. <span class="hljs-string">"net/http"</span>
  3842. )
  3843. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3844. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3845. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  3846. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  3847. }
  3848. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3849. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/members/{member}"</span>, data)
  3850. req.Header = headers
  3851. client := &amp;http.Client{}
  3852. resp, err := client.Do(req)
  3853. <span class="hljs-comment">// ...</span>
  3854. }
  3855. </code></pre>
  3856. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3857. <p><em>Change the permission of a member of a board</em></p>
  3858. <blockquote>
  3859. <p>Body parameter</p>
  3860. </blockquote>
  3861. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3862. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3863. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3864. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3865. </code></pre>
  3866. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3867. <table>
  3868. <thead>
  3869. <tr>
  3870. <th>Name</th>
  3871. <th>In</th>
  3872. <th>Type</th>
  3873. <th>Required</th>
  3874. <th>Description</th>
  3875. </tr>
  3876. </thead>
  3877. <tbody>
  3878. <tr>
  3879. <td>board</td>
  3880. <td>path</td>
  3881. <td>string</td>
  3882. <td>true</td>
  3883. <td>the ID of the board that we are changing</td>
  3884. </tr>
  3885. <tr>
  3886. <td>member</td>
  3887. <td>path</td>
  3888. <td>string</td>
  3889. <td>true</td>
  3890. <td>the ID of the user to change permissions</td>
  3891. </tr>
  3892. <tr>
  3893. <td>body</td>
  3894. <td>body</td>
  3895. <td>object</td>
  3896. <td>false</td>
  3897. <td>none</td>
  3898. </tr>
  3899. <tr>
  3900. <td>» isAdmin</td>
  3901. <td>body</td>
  3902. <td>boolean</td>
  3903. <td>true</td>
  3904. <td>admin capability</td>
  3905. </tr>
  3906. <tr>
  3907. <td>» isNoComments</td>
  3908. <td>body</td>
  3909. <td>boolean</td>
  3910. <td>true</td>
  3911. <td>NoComments capability</td>
  3912. </tr>
  3913. <tr>
  3914. <td>» isCommentOnly</td>
  3915. <td>body</td>
  3916. <td>boolean</td>
  3917. <td>true</td>
  3918. <td>CommentsOnly capability</td>
  3919. </tr>
  3920. <tr>
  3921. <td>» isWorker</td>
  3922. <td>body</td>
  3923. <td>boolean</td>
  3924. <td>true</td>
  3925. <td>Worker capability</td>
  3926. </tr>
  3927. </tbody>
  3928. </table>
  3929. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  3930. <p><strong>board</strong>: the ID of the board that we are changing</p>
  3931. <p><strong>member</strong>: the ID of the user to change permissions</p>
  3932. <h3 id="set_board_member_permission-responses">Responses</h3>
  3933. <table>
  3934. <thead>
  3935. <tr>
  3936. <th>Status</th>
  3937. <th>Meaning</th>
  3938. <th>Description</th>
  3939. <th>Schema</th>
  3940. </tr>
  3941. </thead>
  3942. <tbody>
  3943. <tr>
  3944. <td>200</td>
  3945. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3946. <td>200 response</td>
  3947. <td>None</td>
  3948. </tr>
  3949. </tbody>
  3950. </table>
  3951. <aside class="warning">
  3952. To perform this operation, you must be authenticated by means of one of the following methods:
  3953. UserSecurity
  3954. </aside>
  3955. <h2 id="update_board_title">update_board_title</h2>
  3956. <p><a id="opIdupdate_board_title"></a></p>
  3957. <blockquote>
  3958. <p>Code samples</p>
  3959. </blockquote>
  3960. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3961. curl -X PUT /api/boards/{board}/title \
  3962. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  3963. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  3964. </code></pre>
  3965. <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
  3966. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3967. </span></code></pre>
  3968. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  3969. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3970. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3971. };
  3972. $.ajax({
  3973. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/title'</span>,
  3974. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  3975. <span class="hljs-attr">headers</span>: headers,
  3976. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  3977. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  3978. }
  3979. })
  3980. </code></pre>
  3981. <pre class="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>);
  3982. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  3983. "title": "string"
  3984. }'</span>;
  3985. <span class="hljs-keyword">const</span> headers = {
  3986. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  3987. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  3988. };
  3989. fetch(<span class="hljs-string">'/api/boards/{board}/title'</span>,
  3990. {
  3991. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  3992. <span class="hljs-attr">body</span>: inputBody,
  3993. <span class="hljs-attr">headers</span>: headers
  3994. })
  3995. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3996. <span class="hljs-keyword">return</span> res.json();
  3997. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3998. <span class="hljs-built_in">console</span>.log(body);
  3999. });
  4000. </code></pre>
  4001. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4002. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4003. headers = {
  4004. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4005. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4006. }
  4007. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/title'</span>,
  4008. <span class="hljs-symbol">params:</span> {
  4009. }, <span class="hljs-symbol">headers:</span> headers
  4010. p JSON.parse(result)
  4011. </code></pre>
  4012. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4013. headers = {
  4014. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4015. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4016. }
  4017. r = requests.put(<span class="hljs-string">'/api/boards/{board}/title'</span>, params={
  4018. }, headers = headers)
  4019. <span class="hljs-keyword">print</span> r.json()
  4020. </code></pre>
  4021. <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>);
  4022. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4023. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  4024. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4025. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4026. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4027. String inputLine;
  4028. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4029. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4030. response.append(inputLine);
  4031. }
  4032. in.close();
  4033. System.out.println(response.toString());
  4034. </code></pre>
  4035. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4036. <span class="hljs-keyword">import</span> (
  4037. <span class="hljs-string">"bytes"</span>
  4038. <span class="hljs-string">"net/http"</span>
  4039. )
  4040. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4041. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4042. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  4043. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4044. }
  4045. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4046. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/title"</span>, data)
  4047. req.Header = headers
  4048. client := &amp;http.Client{}
  4049. resp, err := client.Do(req)
  4050. <span class="hljs-comment">// ...</span>
  4051. }
  4052. </code></pre>
  4053. <p><code>PUT /api/boards/{board}/title</code></p>
  4054. <p><em>Update the title of a board</em></p>
  4055. <blockquote>
  4056. <p>Body parameter</p>
  4057. </blockquote>
  4058. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4059. </code></pre>
  4060. <h3 id="update_board_title-parameters">Parameters</h3>
  4061. <table>
  4062. <thead>
  4063. <tr>
  4064. <th>Name</th>
  4065. <th>In</th>
  4066. <th>Type</th>
  4067. <th>Required</th>
  4068. <th>Description</th>
  4069. </tr>
  4070. </thead>
  4071. <tbody>
  4072. <tr>
  4073. <td>board</td>
  4074. <td>path</td>
  4075. <td>string</td>
  4076. <td>true</td>
  4077. <td>the ID of the board to update</td>
  4078. </tr>
  4079. <tr>
  4080. <td>body</td>
  4081. <td>body</td>
  4082. <td>object</td>
  4083. <td>false</td>
  4084. <td>none</td>
  4085. </tr>
  4086. <tr>
  4087. <td>» title</td>
  4088. <td>body</td>
  4089. <td>string</td>
  4090. <td>true</td>
  4091. <td>the new title for the board</td>
  4092. </tr>
  4093. </tbody>
  4094. </table>
  4095. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4096. <p><strong>board</strong>: the ID of the board to update</p>
  4097. <h3 id="update_board_title-responses">Responses</h3>
  4098. <table>
  4099. <thead>
  4100. <tr>
  4101. <th>Status</th>
  4102. <th>Meaning</th>
  4103. <th>Description</th>
  4104. <th>Schema</th>
  4105. </tr>
  4106. </thead>
  4107. <tbody>
  4108. <tr>
  4109. <td>200</td>
  4110. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4111. <td>200 response</td>
  4112. <td>None</td>
  4113. </tr>
  4114. </tbody>
  4115. </table>
  4116. <aside class="warning">
  4117. To perform this operation, you must be authenticated by means of one of the following methods:
  4118. UserSecurity
  4119. </aside>
  4120. <h2 id="get_boards_count">get_boards_count</h2>
  4121. <p><a id="opIdget_boards_count"></a></p>
  4122. <blockquote>
  4123. <p>Code samples</p>
  4124. </blockquote>
  4125. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4126. curl -X GET /api/boards_count \
  4127. -H <span class="hljs-string">'Accept: application/json'</span> \
  4128. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4129. </code></pre>
  4130. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards_count</span> HTTP/1.1
  4131. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4132. <span class="undefined"></span></span></code></pre>
  4133. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4134. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4135. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4136. };
  4137. $.ajax({
  4138. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards_count'</span>,
  4139. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4140. <span class="hljs-attr">headers</span>: headers,
  4141. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4142. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4143. }
  4144. })
  4145. </code></pre>
  4146. <pre class="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>);
  4147. <span class="hljs-keyword">const</span> headers = {
  4148. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4149. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4150. };
  4151. fetch(<span class="hljs-string">'/api/boards_count'</span>,
  4152. {
  4153. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4154. <span class="hljs-attr">headers</span>: headers
  4155. })
  4156. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4157. <span class="hljs-keyword">return</span> res.json();
  4158. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4159. <span class="hljs-built_in">console</span>.log(body);
  4160. });
  4161. </code></pre>
  4162. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4163. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4164. headers = {
  4165. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4166. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4167. }
  4168. result = RestClient.get <span class="hljs-string">'/api/boards_count'</span>,
  4169. <span class="hljs-symbol">params:</span> {
  4170. }, <span class="hljs-symbol">headers:</span> headers
  4171. p JSON.parse(result)
  4172. </code></pre>
  4173. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4174. headers = {
  4175. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4176. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4177. }
  4178. r = requests.get(<span class="hljs-string">'/api/boards_count'</span>, params={
  4179. }, headers = headers)
  4180. <span class="hljs-keyword">print</span> r.json()
  4181. </code></pre>
  4182. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards_count"</span>);
  4183. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4184. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4185. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4186. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4187. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4188. String inputLine;
  4189. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4190. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4191. response.append(inputLine);
  4192. }
  4193. in.close();
  4194. System.out.println(response.toString());
  4195. </code></pre>
  4196. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4197. <span class="hljs-keyword">import</span> (
  4198. <span class="hljs-string">"bytes"</span>
  4199. <span class="hljs-string">"net/http"</span>
  4200. )
  4201. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4202. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4203. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4204. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4205. }
  4206. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4207. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards_count"</span>, data)
  4208. req.Header = headers
  4209. client := &amp;http.Client{}
  4210. resp, err := client.Do(req)
  4211. <span class="hljs-comment">// ...</span>
  4212. }
  4213. </code></pre>
  4214. <p><code>GET /api/boards_count</code></p>
  4215. <p><em>Get public and private boards count</em></p>
  4216. <blockquote>
  4217. <p>Example responses</p>
  4218. </blockquote>
  4219. <blockquote>
  4220. <p>200 Response</p>
  4221. </blockquote>
  4222. <pre class="highlight tab tab-json"><code>{
  4223. <span class="hljs-attr">"private"</span>: <span class="hljs-number">0</span>,
  4224. <span class="hljs-attr">"public"</span>: <span class="hljs-number">0</span>
  4225. }
  4226. </code></pre>
  4227. <h3 id="get_boards_count-responses">Responses</h3>
  4228. <table>
  4229. <thead>
  4230. <tr>
  4231. <th>Status</th>
  4232. <th>Meaning</th>
  4233. <th>Description</th>
  4234. <th>Schema</th>
  4235. </tr>
  4236. </thead>
  4237. <tbody>
  4238. <tr>
  4239. <td>200</td>
  4240. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4241. <td>200 response</td>
  4242. <td>Inline</td>
  4243. </tr>
  4244. </tbody>
  4245. </table>
  4246. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4247. <p>Status Code <strong>200</strong></p>
  4248. <table>
  4249. <thead>
  4250. <tr>
  4251. <th>Name</th>
  4252. <th>Type</th>
  4253. <th>Required</th>
  4254. <th>Restrictions</th>
  4255. <th>Description</th>
  4256. </tr>
  4257. </thead>
  4258. <tbody>
  4259. <tr>
  4260. <td>» private</td>
  4261. <td>integer</td>
  4262. <td>false</td>
  4263. <td>none</td>
  4264. <td>none</td>
  4265. </tr>
  4266. <tr>
  4267. <td>» public</td>
  4268. <td>integer</td>
  4269. <td>false</td>
  4270. <td>none</td>
  4271. <td>none</td>
  4272. </tr>
  4273. </tbody>
  4274. </table>
  4275. <aside class="warning">
  4276. To perform this operation, you must be authenticated by means of one of the following methods:
  4277. UserSecurity
  4278. </aside>
  4279. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4280. <p><a id="opIdget_boards_from_user"></a></p>
  4281. <blockquote>
  4282. <p>Code samples</p>
  4283. </blockquote>
  4284. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4285. curl -X GET /api/users/{user}/boards \
  4286. -H <span class="hljs-string">'Accept: application/json'</span> \
  4287. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4288. </code></pre>
  4289. <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
  4290. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4291. <span class="undefined"></span></span></code></pre>
  4292. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4293. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4294. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4295. };
  4296. $.ajax({
  4297. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/users/{user}/boards'</span>,
  4298. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4299. <span class="hljs-attr">headers</span>: headers,
  4300. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4301. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4302. }
  4303. })
  4304. </code></pre>
  4305. <pre class="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>);
  4306. <span class="hljs-keyword">const</span> headers = {
  4307. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4308. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4309. };
  4310. fetch(<span class="hljs-string">'/api/users/{user}/boards'</span>,
  4311. {
  4312. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4313. <span class="hljs-attr">headers</span>: headers
  4314. })
  4315. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4316. <span class="hljs-keyword">return</span> res.json();
  4317. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4318. <span class="hljs-built_in">console</span>.log(body);
  4319. });
  4320. </code></pre>
  4321. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4322. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4323. headers = {
  4324. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4325. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4326. }
  4327. result = RestClient.get <span class="hljs-string">'/api/users/{user}/boards'</span>,
  4328. <span class="hljs-symbol">params:</span> {
  4329. }, <span class="hljs-symbol">headers:</span> headers
  4330. p JSON.parse(result)
  4331. </code></pre>
  4332. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4333. headers = {
  4334. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4335. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4336. }
  4337. r = requests.get(<span class="hljs-string">'/api/users/{user}/boards'</span>, params={
  4338. }, headers = headers)
  4339. <span class="hljs-keyword">print</span> r.json()
  4340. </code></pre>
  4341. <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>);
  4342. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4343. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4344. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4345. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4346. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4347. String inputLine;
  4348. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4349. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4350. response.append(inputLine);
  4351. }
  4352. in.close();
  4353. System.out.println(response.toString());
  4354. </code></pre>
  4355. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4356. <span class="hljs-keyword">import</span> (
  4357. <span class="hljs-string">"bytes"</span>
  4358. <span class="hljs-string">"net/http"</span>
  4359. )
  4360. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4361. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4362. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4363. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4364. }
  4365. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4366. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/users/{user}/boards"</span>, data)
  4367. req.Header = headers
  4368. client := &amp;http.Client{}
  4369. resp, err := client.Do(req)
  4370. <span class="hljs-comment">// ...</span>
  4371. }
  4372. </code></pre>
  4373. <p><code>GET /api/users/{user}/boards</code></p>
  4374. <p><em>Get all boards attached to a user</em></p>
  4375. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4376. <table>
  4377. <thead>
  4378. <tr>
  4379. <th>Name</th>
  4380. <th>In</th>
  4381. <th>Type</th>
  4382. <th>Required</th>
  4383. <th>Description</th>
  4384. </tr>
  4385. </thead>
  4386. <tbody>
  4387. <tr>
  4388. <td>user</td>
  4389. <td>path</td>
  4390. <td>string</td>
  4391. <td>true</td>
  4392. <td>the ID of the user to retrieve the data</td>
  4393. </tr>
  4394. </tbody>
  4395. </table>
  4396. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4397. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4398. <blockquote>
  4399. <p>Example responses</p>
  4400. </blockquote>
  4401. <blockquote>
  4402. <p>200 Response</p>
  4403. </blockquote>
  4404. <pre class="highlight tab tab-json"><code>[
  4405. {
  4406. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4407. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  4408. }
  4409. ]
  4410. </code></pre>
  4411. <h3 id="get_boards_from_user-responses">Responses</h3>
  4412. <table>
  4413. <thead>
  4414. <tr>
  4415. <th>Status</th>
  4416. <th>Meaning</th>
  4417. <th>Description</th>
  4418. <th>Schema</th>
  4419. </tr>
  4420. </thead>
  4421. <tbody>
  4422. <tr>
  4423. <td>200</td>
  4424. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4425. <td>200 response</td>
  4426. <td>Inline</td>
  4427. </tr>
  4428. </tbody>
  4429. </table>
  4430. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4431. <p>Status Code <strong>200</strong></p>
  4432. <table>
  4433. <thead>
  4434. <tr>
  4435. <th>Name</th>
  4436. <th>Type</th>
  4437. <th>Required</th>
  4438. <th>Restrictions</th>
  4439. <th>Description</th>
  4440. </tr>
  4441. </thead>
  4442. <tbody>
  4443. <tr>
  4444. <td>» _id</td>
  4445. <td>string</td>
  4446. <td>false</td>
  4447. <td>none</td>
  4448. <td>none</td>
  4449. </tr>
  4450. <tr>
  4451. <td>» title</td>
  4452. <td>string</td>
  4453. <td>false</td>
  4454. <td>none</td>
  4455. <td>none</td>
  4456. </tr>
  4457. </tbody>
  4458. </table>
  4459. <aside class="warning">
  4460. To perform this operation, you must be authenticated by means of one of the following methods:
  4461. UserSecurity
  4462. </aside>
  4463. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4464. <h2 id="get_all_checklists">get_all_checklists</h2>
  4465. <p><a id="opIdget_all_checklists"></a></p>
  4466. <blockquote>
  4467. <p>Code samples</p>
  4468. </blockquote>
  4469. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4470. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4471. -H <span class="hljs-string">'Accept: application/json'</span> \
  4472. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4473. </code></pre>
  4474. <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
  4475. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4476. <span class="undefined"></span></span></code></pre>
  4477. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4478. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4479. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4480. };
  4481. $.ajax({
  4482. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4483. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4484. <span class="hljs-attr">headers</span>: headers,
  4485. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4486. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4487. }
  4488. })
  4489. </code></pre>
  4490. <pre class="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>);
  4491. <span class="hljs-keyword">const</span> headers = {
  4492. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4493. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4494. };
  4495. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4496. {
  4497. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4498. <span class="hljs-attr">headers</span>: headers
  4499. })
  4500. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4501. <span class="hljs-keyword">return</span> res.json();
  4502. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4503. <span class="hljs-built_in">console</span>.log(body);
  4504. });
  4505. </code></pre>
  4506. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4507. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4508. headers = {
  4509. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4510. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4511. }
  4512. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4513. <span class="hljs-symbol">params:</span> {
  4514. }, <span class="hljs-symbol">headers:</span> headers
  4515. p JSON.parse(result)
  4516. </code></pre>
  4517. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4518. headers = {
  4519. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4520. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4521. }
  4522. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  4523. }, headers = headers)
  4524. <span class="hljs-keyword">print</span> r.json()
  4525. </code></pre>
  4526. <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>);
  4527. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4528. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4529. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4530. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4531. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4532. String inputLine;
  4533. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4534. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4535. response.append(inputLine);
  4536. }
  4537. in.close();
  4538. System.out.println(response.toString());
  4539. </code></pre>
  4540. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4541. <span class="hljs-keyword">import</span> (
  4542. <span class="hljs-string">"bytes"</span>
  4543. <span class="hljs-string">"net/http"</span>
  4544. )
  4545. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4546. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4547. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4548. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4549. }
  4550. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4551. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  4552. req.Header = headers
  4553. client := &amp;http.Client{}
  4554. resp, err := client.Do(req)
  4555. <span class="hljs-comment">// ...</span>
  4556. }
  4557. </code></pre>
  4558. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4559. <p><em>Get the list of checklists attached to a card</em></p>
  4560. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4561. <table>
  4562. <thead>
  4563. <tr>
  4564. <th>Name</th>
  4565. <th>In</th>
  4566. <th>Type</th>
  4567. <th>Required</th>
  4568. <th>Description</th>
  4569. </tr>
  4570. </thead>
  4571. <tbody>
  4572. <tr>
  4573. <td>board</td>
  4574. <td>path</td>
  4575. <td>string</td>
  4576. <td>true</td>
  4577. <td>the board ID</td>
  4578. </tr>
  4579. <tr>
  4580. <td>card</td>
  4581. <td>path</td>
  4582. <td>string</td>
  4583. <td>true</td>
  4584. <td>the card ID</td>
  4585. </tr>
  4586. </tbody>
  4587. </table>
  4588. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4589. <p><strong>board</strong>: the board ID</p>
  4590. <p><strong>card</strong>: the card ID</p>
  4591. <blockquote>
  4592. <p>Example responses</p>
  4593. </blockquote>
  4594. <blockquote>
  4595. <p>200 Response</p>
  4596. </blockquote>
  4597. <pre class="highlight tab tab-json"><code>[
  4598. {
  4599. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  4600. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  4601. }
  4602. ]
  4603. </code></pre>
  4604. <h3 id="get_all_checklists-responses">Responses</h3>
  4605. <table>
  4606. <thead>
  4607. <tr>
  4608. <th>Status</th>
  4609. <th>Meaning</th>
  4610. <th>Description</th>
  4611. <th>Schema</th>
  4612. </tr>
  4613. </thead>
  4614. <tbody>
  4615. <tr>
  4616. <td>200</td>
  4617. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4618. <td>200 response</td>
  4619. <td>Inline</td>
  4620. </tr>
  4621. </tbody>
  4622. </table>
  4623. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4624. <p>Status Code <strong>200</strong></p>
  4625. <table>
  4626. <thead>
  4627. <tr>
  4628. <th>Name</th>
  4629. <th>Type</th>
  4630. <th>Required</th>
  4631. <th>Restrictions</th>
  4632. <th>Description</th>
  4633. </tr>
  4634. </thead>
  4635. <tbody>
  4636. <tr>
  4637. <td>» _id</td>
  4638. <td>string</td>
  4639. <td>false</td>
  4640. <td>none</td>
  4641. <td>none</td>
  4642. </tr>
  4643. <tr>
  4644. <td>» title</td>
  4645. <td>string</td>
  4646. <td>false</td>
  4647. <td>none</td>
  4648. <td>none</td>
  4649. </tr>
  4650. </tbody>
  4651. </table>
  4652. <aside class="warning">
  4653. To perform this operation, you must be authenticated by means of one of the following methods:
  4654. UserSecurity
  4655. </aside>
  4656. <h2 id="new_checklist">new_checklist</h2>
  4657. <p><a id="opIdnew_checklist"></a></p>
  4658. <blockquote>
  4659. <p>Code samples</p>
  4660. </blockquote>
  4661. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4662. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4663. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  4664. -H <span class="hljs-string">'Accept: application/json'</span> \
  4665. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4666. </code></pre>
  4667. <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
  4668. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4669. Accept: application/json
  4670. </span></code></pre>
  4671. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4672. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4673. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4674. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4675. };
  4676. $.ajax({
  4677. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4678. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  4679. <span class="hljs-attr">headers</span>: headers,
  4680. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4681. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4682. }
  4683. })
  4684. </code></pre>
  4685. <pre class="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>);
  4686. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  4687. "title": "string",
  4688. "items": "string"
  4689. }'</span>;
  4690. <span class="hljs-keyword">const</span> headers = {
  4691. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  4692. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4693. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4694. };
  4695. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4696. {
  4697. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  4698. <span class="hljs-attr">body</span>: inputBody,
  4699. <span class="hljs-attr">headers</span>: headers
  4700. })
  4701. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4702. <span class="hljs-keyword">return</span> res.json();
  4703. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4704. <span class="hljs-built_in">console</span>.log(body);
  4705. });
  4706. </code></pre>
  4707. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4708. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4709. headers = {
  4710. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  4711. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4712. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4713. }
  4714. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>,
  4715. <span class="hljs-symbol">params:</span> {
  4716. }, <span class="hljs-symbol">headers:</span> headers
  4717. p JSON.parse(result)
  4718. </code></pre>
  4719. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4720. headers = {
  4721. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  4722. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4723. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4724. }
  4725. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists'</span>, params={
  4726. }, headers = headers)
  4727. <span class="hljs-keyword">print</span> r.json()
  4728. </code></pre>
  4729. <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>);
  4730. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4731. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  4732. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4733. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4734. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4735. String inputLine;
  4736. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4737. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4738. response.append(inputLine);
  4739. }
  4740. in.close();
  4741. System.out.println(response.toString());
  4742. </code></pre>
  4743. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4744. <span class="hljs-keyword">import</span> (
  4745. <span class="hljs-string">"bytes"</span>
  4746. <span class="hljs-string">"net/http"</span>
  4747. )
  4748. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4749. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4750. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  4751. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4752. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4753. }
  4754. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4755. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists"</span>, data)
  4756. req.Header = headers
  4757. client := &amp;http.Client{}
  4758. resp, err := client.Do(req)
  4759. <span class="hljs-comment">// ...</span>
  4760. }
  4761. </code></pre>
  4762. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4763. <p><em>create a new checklist</em></p>
  4764. <blockquote>
  4765. <p>Body parameter</p>
  4766. </blockquote>
  4767. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4768. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4769. </code></pre>
  4770. <h3 id="new_checklist-parameters">Parameters</h3>
  4771. <table>
  4772. <thead>
  4773. <tr>
  4774. <th>Name</th>
  4775. <th>In</th>
  4776. <th>Type</th>
  4777. <th>Required</th>
  4778. <th>Description</th>
  4779. </tr>
  4780. </thead>
  4781. <tbody>
  4782. <tr>
  4783. <td>board</td>
  4784. <td>path</td>
  4785. <td>string</td>
  4786. <td>true</td>
  4787. <td>the board ID</td>
  4788. </tr>
  4789. <tr>
  4790. <td>card</td>
  4791. <td>path</td>
  4792. <td>string</td>
  4793. <td>true</td>
  4794. <td>the card ID</td>
  4795. </tr>
  4796. <tr>
  4797. <td>body</td>
  4798. <td>body</td>
  4799. <td>object</td>
  4800. <td>false</td>
  4801. <td>none</td>
  4802. </tr>
  4803. <tr>
  4804. <td>» title</td>
  4805. <td>body</td>
  4806. <td>string</td>
  4807. <td>true</td>
  4808. <td>the title of the new checklist</td>
  4809. </tr>
  4810. <tr>
  4811. <td>» items</td>
  4812. <td>body</td>
  4813. <td>string</td>
  4814. <td>false</td>
  4815. <td>the list of items on the new checklist</td>
  4816. </tr>
  4817. </tbody>
  4818. </table>
  4819. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  4820. <p><strong>board</strong>: the board ID</p>
  4821. <p><strong>card</strong>: the card ID</p>
  4822. <blockquote>
  4823. <p>Example responses</p>
  4824. </blockquote>
  4825. <blockquote>
  4826. <p>200 Response</p>
  4827. </blockquote>
  4828. <pre class="highlight tab tab-json"><code>{
  4829. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  4830. }
  4831. </code></pre>
  4832. <h3 id="new_checklist-responses">Responses</h3>
  4833. <table>
  4834. <thead>
  4835. <tr>
  4836. <th>Status</th>
  4837. <th>Meaning</th>
  4838. <th>Description</th>
  4839. <th>Schema</th>
  4840. </tr>
  4841. </thead>
  4842. <tbody>
  4843. <tr>
  4844. <td>200</td>
  4845. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4846. <td>200 response</td>
  4847. <td>Inline</td>
  4848. </tr>
  4849. </tbody>
  4850. </table>
  4851. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4852. <p>Status Code <strong>200</strong></p>
  4853. <table>
  4854. <thead>
  4855. <tr>
  4856. <th>Name</th>
  4857. <th>Type</th>
  4858. <th>Required</th>
  4859. <th>Restrictions</th>
  4860. <th>Description</th>
  4861. </tr>
  4862. </thead>
  4863. <tbody>
  4864. <tr>
  4865. <td>» _id</td>
  4866. <td>string</td>
  4867. <td>false</td>
  4868. <td>none</td>
  4869. <td>none</td>
  4870. </tr>
  4871. </tbody>
  4872. </table>
  4873. <aside class="warning">
  4874. To perform this operation, you must be authenticated by means of one of the following methods:
  4875. UserSecurity
  4876. </aside>
  4877. <h2 id="get_checklist">get_checklist</h2>
  4878. <p><a id="opIdget_checklist"></a></p>
  4879. <blockquote>
  4880. <p>Code samples</p>
  4881. </blockquote>
  4882. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4883. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4884. -H <span class="hljs-string">'Accept: application/json'</span> \
  4885. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  4886. </code></pre>
  4887. <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
  4888. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  4889. <span class="undefined"></span></span></code></pre>
  4890. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  4891. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4892. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4893. };
  4894. $.ajax({
  4895. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4896. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  4897. <span class="hljs-attr">headers</span>: headers,
  4898. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  4899. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  4900. }
  4901. })
  4902. </code></pre>
  4903. <pre class="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>);
  4904. <span class="hljs-keyword">const</span> headers = {
  4905. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  4906. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  4907. };
  4908. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4909. {
  4910. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  4911. <span class="hljs-attr">headers</span>: headers
  4912. })
  4913. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4914. <span class="hljs-keyword">return</span> res.json();
  4915. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4916. <span class="hljs-built_in">console</span>.log(body);
  4917. });
  4918. </code></pre>
  4919. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  4920. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  4921. headers = {
  4922. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  4923. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  4924. }
  4925. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  4926. <span class="hljs-symbol">params:</span> {
  4927. }, <span class="hljs-symbol">headers:</span> headers
  4928. p JSON.parse(result)
  4929. </code></pre>
  4930. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4931. headers = {
  4932. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  4933. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  4934. }
  4935. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  4936. }, headers = headers)
  4937. <span class="hljs-keyword">print</span> r.json()
  4938. </code></pre>
  4939. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>);
  4940. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4941. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  4942. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4943. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4944. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4945. String inputLine;
  4946. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4947. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4948. response.append(inputLine);
  4949. }
  4950. in.close();
  4951. System.out.println(response.toString());
  4952. </code></pre>
  4953. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4954. <span class="hljs-keyword">import</span> (
  4955. <span class="hljs-string">"bytes"</span>
  4956. <span class="hljs-string">"net/http"</span>
  4957. )
  4958. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4959. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4960. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  4961. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  4962. }
  4963. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4964. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  4965. req.Header = headers
  4966. client := &amp;http.Client{}
  4967. resp, err := client.Do(req)
  4968. <span class="hljs-comment">// ...</span>
  4969. }
  4970. </code></pre>
  4971. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  4972. <p><em>Get a checklist</em></p>
  4973. <h3 id="get_checklist-parameters">Parameters</h3>
  4974. <table>
  4975. <thead>
  4976. <tr>
  4977. <th>Name</th>
  4978. <th>In</th>
  4979. <th>Type</th>
  4980. <th>Required</th>
  4981. <th>Description</th>
  4982. </tr>
  4983. </thead>
  4984. <tbody>
  4985. <tr>
  4986. <td>board</td>
  4987. <td>path</td>
  4988. <td>string</td>
  4989. <td>true</td>
  4990. <td>the board ID</td>
  4991. </tr>
  4992. <tr>
  4993. <td>card</td>
  4994. <td>path</td>
  4995. <td>string</td>
  4996. <td>true</td>
  4997. <td>the card ID</td>
  4998. </tr>
  4999. <tr>
  5000. <td>checklist</td>
  5001. <td>path</td>
  5002. <td>string</td>
  5003. <td>true</td>
  5004. <td>the ID of the checklist</td>
  5005. </tr>
  5006. </tbody>
  5007. </table>
  5008. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5009. <p><strong>board</strong>: the board ID</p>
  5010. <p><strong>card</strong>: the card ID</p>
  5011. <p><strong>checklist</strong>: the ID of the checklist</p>
  5012. <blockquote>
  5013. <p>Example responses</p>
  5014. </blockquote>
  5015. <blockquote>
  5016. <p>200 Response</p>
  5017. </blockquote>
  5018. <pre class="highlight tab tab-json"><code>{
  5019. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  5020. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5021. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  5022. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  5023. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  5024. <span class="hljs-attr">"items"</span>: [
  5025. {
  5026. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  5027. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5028. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>
  5029. }
  5030. ]
  5031. }
  5032. </code></pre>
  5033. <h3 id="get_checklist-responses">Responses</h3>
  5034. <table>
  5035. <thead>
  5036. <tr>
  5037. <th>Status</th>
  5038. <th>Meaning</th>
  5039. <th>Description</th>
  5040. <th>Schema</th>
  5041. </tr>
  5042. </thead>
  5043. <tbody>
  5044. <tr>
  5045. <td>200</td>
  5046. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5047. <td>200 response</td>
  5048. <td>Inline</td>
  5049. </tr>
  5050. </tbody>
  5051. </table>
  5052. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5053. <p>Status Code <strong>200</strong></p>
  5054. <table>
  5055. <thead>
  5056. <tr>
  5057. <th>Name</th>
  5058. <th>Type</th>
  5059. <th>Required</th>
  5060. <th>Restrictions</th>
  5061. <th>Description</th>
  5062. </tr>
  5063. </thead>
  5064. <tbody>
  5065. <tr>
  5066. <td>» cardId</td>
  5067. <td>string</td>
  5068. <td>false</td>
  5069. <td>none</td>
  5070. <td>none</td>
  5071. </tr>
  5072. <tr>
  5073. <td>» title</td>
  5074. <td>string</td>
  5075. <td>false</td>
  5076. <td>none</td>
  5077. <td>none</td>
  5078. </tr>
  5079. <tr>
  5080. <td>» finishedAt</td>
  5081. <td>string</td>
  5082. <td>false</td>
  5083. <td>none</td>
  5084. <td>none</td>
  5085. </tr>
  5086. <tr>
  5087. <td>» createdAt</td>
  5088. <td>string</td>
  5089. <td>false</td>
  5090. <td>none</td>
  5091. <td>none</td>
  5092. </tr>
  5093. <tr>
  5094. <td>» sort</td>
  5095. <td>number</td>
  5096. <td>false</td>
  5097. <td>none</td>
  5098. <td>none</td>
  5099. </tr>
  5100. <tr>
  5101. <td>» items</td>
  5102. <td>[object]</td>
  5103. <td>false</td>
  5104. <td>none</td>
  5105. <td>none</td>
  5106. </tr>
  5107. <tr>
  5108. <td>»» _id</td>
  5109. <td>string</td>
  5110. <td>false</td>
  5111. <td>none</td>
  5112. <td>none</td>
  5113. </tr>
  5114. <tr>
  5115. <td>»» title</td>
  5116. <td>string</td>
  5117. <td>false</td>
  5118. <td>none</td>
  5119. <td>none</td>
  5120. </tr>
  5121. <tr>
  5122. <td>»» isFinished</td>
  5123. <td>boolean</td>
  5124. <td>false</td>
  5125. <td>none</td>
  5126. <td>none</td>
  5127. </tr>
  5128. </tbody>
  5129. </table>
  5130. <aside class="warning">
  5131. To perform this operation, you must be authenticated by means of one of the following methods:
  5132. UserSecurity
  5133. </aside>
  5134. <h2 id="delete_checklist">delete_checklist</h2>
  5135. <p><a id="opIddelete_checklist"></a></p>
  5136. <blockquote>
  5137. <p>Code samples</p>
  5138. </blockquote>
  5139. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5140. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5141. -H <span class="hljs-string">'Accept: application/json'</span> \
  5142. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5143. </code></pre>
  5144. <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
  5145. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5146. <span class="undefined"></span></span></code></pre>
  5147. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5148. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5149. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5150. };
  5151. $.ajax({
  5152. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  5153. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  5154. <span class="hljs-attr">headers</span>: headers,
  5155. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5156. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5157. }
  5158. })
  5159. </code></pre>
  5160. <pre class="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>);
  5161. <span class="hljs-keyword">const</span> headers = {
  5162. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5163. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5164. };
  5165. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  5166. {
  5167. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  5168. <span class="hljs-attr">headers</span>: headers
  5169. })
  5170. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5171. <span class="hljs-keyword">return</span> res.json();
  5172. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5173. <span class="hljs-built_in">console</span>.log(body);
  5174. });
  5175. </code></pre>
  5176. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5177. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5178. headers = {
  5179. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5180. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5181. }
  5182. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>,
  5183. <span class="hljs-symbol">params:</span> {
  5184. }, <span class="hljs-symbol">headers:</span> headers
  5185. p JSON.parse(result)
  5186. </code></pre>
  5187. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5188. headers = {
  5189. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5190. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5191. }
  5192. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}'</span>, params={
  5193. }, headers = headers)
  5194. <span class="hljs-keyword">print</span> r.json()
  5195. </code></pre>
  5196. <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>);
  5197. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5198. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  5199. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5200. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5201. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5202. String inputLine;
  5203. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5204. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5205. response.append(inputLine);
  5206. }
  5207. in.close();
  5208. System.out.println(response.toString());
  5209. </code></pre>
  5210. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5211. <span class="hljs-keyword">import</span> (
  5212. <span class="hljs-string">"bytes"</span>
  5213. <span class="hljs-string">"net/http"</span>
  5214. )
  5215. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5216. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5217. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5218. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5219. }
  5220. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5221. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}"</span>, data)
  5222. req.Header = headers
  5223. client := &amp;http.Client{}
  5224. resp, err := client.Do(req)
  5225. <span class="hljs-comment">// ...</span>
  5226. }
  5227. </code></pre>
  5228. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5229. <p><em>Delete a checklist</em></p>
  5230. <p>The checklist will be removed, not put in the recycle bin.</p>
  5231. <h3 id="delete_checklist-parameters">Parameters</h3>
  5232. <table>
  5233. <thead>
  5234. <tr>
  5235. <th>Name</th>
  5236. <th>In</th>
  5237. <th>Type</th>
  5238. <th>Required</th>
  5239. <th>Description</th>
  5240. </tr>
  5241. </thead>
  5242. <tbody>
  5243. <tr>
  5244. <td>board</td>
  5245. <td>path</td>
  5246. <td>string</td>
  5247. <td>true</td>
  5248. <td>the board ID</td>
  5249. </tr>
  5250. <tr>
  5251. <td>card</td>
  5252. <td>path</td>
  5253. <td>string</td>
  5254. <td>true</td>
  5255. <td>the card ID</td>
  5256. </tr>
  5257. <tr>
  5258. <td>checklist</td>
  5259. <td>path</td>
  5260. <td>string</td>
  5261. <td>true</td>
  5262. <td>the ID of the checklist to remove</td>
  5263. </tr>
  5264. </tbody>
  5265. </table>
  5266. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5267. <p><strong>board</strong>: the board ID</p>
  5268. <p><strong>card</strong>: the card ID</p>
  5269. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5270. <blockquote>
  5271. <p>Example responses</p>
  5272. </blockquote>
  5273. <blockquote>
  5274. <p>200 Response</p>
  5275. </blockquote>
  5276. <pre class="highlight tab tab-json"><code>{
  5277. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5278. }
  5279. </code></pre>
  5280. <h3 id="delete_checklist-responses">Responses</h3>
  5281. <table>
  5282. <thead>
  5283. <tr>
  5284. <th>Status</th>
  5285. <th>Meaning</th>
  5286. <th>Description</th>
  5287. <th>Schema</th>
  5288. </tr>
  5289. </thead>
  5290. <tbody>
  5291. <tr>
  5292. <td>200</td>
  5293. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5294. <td>200 response</td>
  5295. <td>Inline</td>
  5296. </tr>
  5297. </tbody>
  5298. </table>
  5299. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5300. <p>Status Code <strong>200</strong></p>
  5301. <table>
  5302. <thead>
  5303. <tr>
  5304. <th>Name</th>
  5305. <th>Type</th>
  5306. <th>Required</th>
  5307. <th>Restrictions</th>
  5308. <th>Description</th>
  5309. </tr>
  5310. </thead>
  5311. <tbody>
  5312. <tr>
  5313. <td>» _id</td>
  5314. <td>string</td>
  5315. <td>false</td>
  5316. <td>none</td>
  5317. <td>none</td>
  5318. </tr>
  5319. </tbody>
  5320. </table>
  5321. <aside class="warning">
  5322. To perform this operation, you must be authenticated by means of one of the following methods:
  5323. UserSecurity
  5324. </aside>
  5325. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5326. <h2 id="new_checklist_item">new_checklist_item</h2>
  5327. <p><a id="opIdnew_checklist_item"></a></p>
  5328. <blockquote>
  5329. <p>Code samples</p>
  5330. </blockquote>
  5331. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5332. curl -X POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items \
  5333. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5334. -H <span class="hljs-string">'Accept: application/json'</span> \
  5335. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5336. </code></pre>
  5337. <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
  5338. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5339. Accept: application/json
  5340. </span></code></pre>
  5341. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5342. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5343. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5344. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5345. };
  5346. $.ajax({
  5347. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  5348. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  5349. <span class="hljs-attr">headers</span>: headers,
  5350. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5351. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5352. }
  5353. })
  5354. </code></pre>
  5355. <pre class="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>);
  5356. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5357. "title": "string"
  5358. }'</span>;
  5359. <span class="hljs-keyword">const</span> headers = {
  5360. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5361. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5362. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5363. };
  5364. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  5365. {
  5366. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  5367. <span class="hljs-attr">body</span>: inputBody,
  5368. <span class="hljs-attr">headers</span>: headers
  5369. })
  5370. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5371. <span class="hljs-keyword">return</span> res.json();
  5372. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5373. <span class="hljs-built_in">console</span>.log(body);
  5374. });
  5375. </code></pre>
  5376. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5377. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5378. headers = {
  5379. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5380. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5381. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5382. }
  5383. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>,
  5384. <span class="hljs-symbol">params:</span> {
  5385. }, <span class="hljs-symbol">headers:</span> headers
  5386. p JSON.parse(result)
  5387. </code></pre>
  5388. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5389. headers = {
  5390. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5391. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5392. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5393. }
  5394. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items'</span>, params={
  5395. }, headers = headers)
  5396. <span class="hljs-keyword">print</span> r.json()
  5397. </code></pre>
  5398. <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>);
  5399. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5400. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  5401. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5402. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5403. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5404. String inputLine;
  5405. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5406. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5407. response.append(inputLine);
  5408. }
  5409. in.close();
  5410. System.out.println(response.toString());
  5411. </code></pre>
  5412. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5413. <span class="hljs-keyword">import</span> (
  5414. <span class="hljs-string">"bytes"</span>
  5415. <span class="hljs-string">"net/http"</span>
  5416. )
  5417. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5418. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5419. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5420. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5421. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5422. }
  5423. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5424. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/checklists/{checklist}/items"</span>, data)
  5425. req.Header = headers
  5426. client := &amp;http.Client{}
  5427. resp, err := client.Do(req)
  5428. <span class="hljs-comment">// ...</span>
  5429. }
  5430. </code></pre>
  5431. <p><code>POST /api/boards/{board}/cards/{card}/checklists/{checklist}/items</code></p>
  5432. <p><em>add a new item to a checklist</em></p>
  5433. <blockquote>
  5434. <p>Body parameter</p>
  5435. </blockquote>
  5436. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5437. </code></pre>
  5438. <h3 id="new_checklist_item-parameters">Parameters</h3>
  5439. <table>
  5440. <thead>
  5441. <tr>
  5442. <th>Name</th>
  5443. <th>In</th>
  5444. <th>Type</th>
  5445. <th>Required</th>
  5446. <th>Description</th>
  5447. </tr>
  5448. </thead>
  5449. <tbody>
  5450. <tr>
  5451. <td>board</td>
  5452. <td>path</td>
  5453. <td>string</td>
  5454. <td>true</td>
  5455. <td>the board ID</td>
  5456. </tr>
  5457. <tr>
  5458. <td>card</td>
  5459. <td>path</td>
  5460. <td>string</td>
  5461. <td>true</td>
  5462. <td>the card ID</td>
  5463. </tr>
  5464. <tr>
  5465. <td>checklist</td>
  5466. <td>path</td>
  5467. <td>string</td>
  5468. <td>true</td>
  5469. <td>the ID of the checklist</td>
  5470. </tr>
  5471. <tr>
  5472. <td>body</td>
  5473. <td>body</td>
  5474. <td>object</td>
  5475. <td>false</td>
  5476. <td>none</td>
  5477. </tr>
  5478. <tr>
  5479. <td>» title</td>
  5480. <td>body</td>
  5481. <td>string</td>
  5482. <td>true</td>
  5483. <td>the title of the new item</td>
  5484. </tr>
  5485. </tbody>
  5486. </table>
  5487. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5488. <p><strong>board</strong>: the board ID</p>
  5489. <p><strong>card</strong>: the card ID</p>
  5490. <p><strong>checklist</strong>: the ID of the checklist</p>
  5491. <blockquote>
  5492. <p>Example responses</p>
  5493. </blockquote>
  5494. <blockquote>
  5495. <p>200 Response</p>
  5496. </blockquote>
  5497. <pre class="highlight tab tab-json"><code>{
  5498. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5499. }
  5500. </code></pre>
  5501. <h3 id="new_checklist_item-responses">Responses</h3>
  5502. <table>
  5503. <thead>
  5504. <tr>
  5505. <th>Status</th>
  5506. <th>Meaning</th>
  5507. <th>Description</th>
  5508. <th>Schema</th>
  5509. </tr>
  5510. </thead>
  5511. <tbody>
  5512. <tr>
  5513. <td>200</td>
  5514. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5515. <td>200 response</td>
  5516. <td>Inline</td>
  5517. </tr>
  5518. </tbody>
  5519. </table>
  5520. <h3 id="new_checklist_item-responseschema">Response Schema</h3>
  5521. <p>Status Code <strong>200</strong></p>
  5522. <table>
  5523. <thead>
  5524. <tr>
  5525. <th>Name</th>
  5526. <th>Type</th>
  5527. <th>Required</th>
  5528. <th>Restrictions</th>
  5529. <th>Description</th>
  5530. </tr>
  5531. </thead>
  5532. <tbody>
  5533. <tr>
  5534. <td>» _id</td>
  5535. <td>string</td>
  5536. <td>false</td>
  5537. <td>none</td>
  5538. <td>none</td>
  5539. </tr>
  5540. </tbody>
  5541. </table>
  5542. <aside class="warning">
  5543. To perform this operation, you must be authenticated by means of one of the following methods:
  5544. UserSecurity
  5545. </aside>
  5546. <h2 id="get_checklist_item">get_checklist_item</h2>
  5547. <p><a id="opIdget_checklist_item"></a></p>
  5548. <blockquote>
  5549. <p>Code samples</p>
  5550. </blockquote>
  5551. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5552. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5553. -H <span class="hljs-string">'Accept: application/json'</span> \
  5554. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5555. </code></pre>
  5556. <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
  5557. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5558. <span class="undefined"></span></span></code></pre>
  5559. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5560. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5561. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5562. };
  5563. $.ajax({
  5564. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5565. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  5566. <span class="hljs-attr">headers</span>: headers,
  5567. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5568. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5569. }
  5570. })
  5571. </code></pre>
  5572. <pre class="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>);
  5573. <span class="hljs-keyword">const</span> headers = {
  5574. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5575. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5576. };
  5577. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5578. {
  5579. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  5580. <span class="hljs-attr">headers</span>: headers
  5581. })
  5582. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5583. <span class="hljs-keyword">return</span> res.json();
  5584. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5585. <span class="hljs-built_in">console</span>.log(body);
  5586. });
  5587. </code></pre>
  5588. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5589. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5590. headers = {
  5591. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5592. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5593. }
  5594. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5595. <span class="hljs-symbol">params:</span> {
  5596. }, <span class="hljs-symbol">headers:</span> headers
  5597. p JSON.parse(result)
  5598. </code></pre>
  5599. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5600. headers = {
  5601. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5602. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5603. }
  5604. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  5605. }, headers = headers)
  5606. <span class="hljs-keyword">print</span> r.json()
  5607. </code></pre>
  5608. <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>);
  5609. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5610. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  5611. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5612. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5613. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5614. String inputLine;
  5615. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5616. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5617. response.append(inputLine);
  5618. }
  5619. in.close();
  5620. System.out.println(response.toString());
  5621. </code></pre>
  5622. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5623. <span class="hljs-keyword">import</span> (
  5624. <span class="hljs-string">"bytes"</span>
  5625. <span class="hljs-string">"net/http"</span>
  5626. )
  5627. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5628. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5629. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5630. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5631. }
  5632. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5633. 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)
  5634. req.Header = headers
  5635. client := &amp;http.Client{}
  5636. resp, err := client.Do(req)
  5637. <span class="hljs-comment">// ...</span>
  5638. }
  5639. </code></pre>
  5640. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5641. <p><em>Get a checklist item</em></p>
  5642. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5643. <table>
  5644. <thead>
  5645. <tr>
  5646. <th>Name</th>
  5647. <th>In</th>
  5648. <th>Type</th>
  5649. <th>Required</th>
  5650. <th>Description</th>
  5651. </tr>
  5652. </thead>
  5653. <tbody>
  5654. <tr>
  5655. <td>board</td>
  5656. <td>path</td>
  5657. <td>string</td>
  5658. <td>true</td>
  5659. <td>the board ID</td>
  5660. </tr>
  5661. <tr>
  5662. <td>card</td>
  5663. <td>path</td>
  5664. <td>string</td>
  5665. <td>true</td>
  5666. <td>the card ID</td>
  5667. </tr>
  5668. <tr>
  5669. <td>checklist</td>
  5670. <td>path</td>
  5671. <td>string</td>
  5672. <td>true</td>
  5673. <td>the checklist ID</td>
  5674. </tr>
  5675. <tr>
  5676. <td>item</td>
  5677. <td>path</td>
  5678. <td>string</td>
  5679. <td>true</td>
  5680. <td>the ID of the item</td>
  5681. </tr>
  5682. </tbody>
  5683. </table>
  5684. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5685. <p><strong>board</strong>: the board ID</p>
  5686. <p><strong>card</strong>: the card ID</p>
  5687. <p><strong>checklist</strong>: the checklist ID</p>
  5688. <p><strong>item</strong>: the ID of the item</p>
  5689. <blockquote>
  5690. <p>Example responses</p>
  5691. </blockquote>
  5692. <blockquote>
  5693. <p>200 Response</p>
  5694. </blockquote>
  5695. <pre class="highlight tab tab-json"><code>{
  5696. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  5697. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  5698. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  5699. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  5700. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  5701. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  5702. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  5703. }
  5704. </code></pre>
  5705. <h3 id="get_checklist_item-responses">Responses</h3>
  5706. <table>
  5707. <thead>
  5708. <tr>
  5709. <th>Status</th>
  5710. <th>Meaning</th>
  5711. <th>Description</th>
  5712. <th>Schema</th>
  5713. </tr>
  5714. </thead>
  5715. <tbody>
  5716. <tr>
  5717. <td>200</td>
  5718. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5719. <td>200 response</td>
  5720. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5721. </tr>
  5722. </tbody>
  5723. </table>
  5724. <aside class="warning">
  5725. To perform this operation, you must be authenticated by means of one of the following methods:
  5726. UserSecurity
  5727. </aside>
  5728. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5729. <p><a id="opIdedit_checklist_item"></a></p>
  5730. <blockquote>
  5731. <p>Code samples</p>
  5732. </blockquote>
  5733. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5734. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5735. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  5736. -H <span class="hljs-string">'Accept: application/json'</span> \
  5737. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5738. </code></pre>
  5739. <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
  5740. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5741. Accept: application/json
  5742. </span></code></pre>
  5743. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5744. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5745. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5746. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5747. };
  5748. $.ajax({
  5749. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5750. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  5751. <span class="hljs-attr">headers</span>: headers,
  5752. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5753. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5754. }
  5755. })
  5756. </code></pre>
  5757. <pre class="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>);
  5758. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  5759. "isFinished": "string",
  5760. "title": "string"
  5761. }'</span>;
  5762. <span class="hljs-keyword">const</span> headers = {
  5763. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  5764. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5765. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5766. };
  5767. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5768. {
  5769. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  5770. <span class="hljs-attr">body</span>: inputBody,
  5771. <span class="hljs-attr">headers</span>: headers
  5772. })
  5773. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5774. <span class="hljs-keyword">return</span> res.json();
  5775. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5776. <span class="hljs-built_in">console</span>.log(body);
  5777. });
  5778. </code></pre>
  5779. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  5780. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  5781. headers = {
  5782. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  5783. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  5784. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  5785. }
  5786. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5787. <span class="hljs-symbol">params:</span> {
  5788. }, <span class="hljs-symbol">headers:</span> headers
  5789. p JSON.parse(result)
  5790. </code></pre>
  5791. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5792. headers = {
  5793. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  5794. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  5795. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  5796. }
  5797. r = requests.put(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  5798. }, headers = headers)
  5799. <span class="hljs-keyword">print</span> r.json()
  5800. </code></pre>
  5801. <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>);
  5802. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5803. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  5804. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5805. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5806. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5807. String inputLine;
  5808. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5809. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5810. response.append(inputLine);
  5811. }
  5812. in.close();
  5813. System.out.println(response.toString());
  5814. </code></pre>
  5815. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5816. <span class="hljs-keyword">import</span> (
  5817. <span class="hljs-string">"bytes"</span>
  5818. <span class="hljs-string">"net/http"</span>
  5819. )
  5820. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5821. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5822. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  5823. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  5824. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  5825. }
  5826. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5827. 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)
  5828. req.Header = headers
  5829. client := &amp;http.Client{}
  5830. resp, err := client.Do(req)
  5831. <span class="hljs-comment">// ...</span>
  5832. }
  5833. </code></pre>
  5834. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5835. <p><em>Edit a checklist item</em></p>
  5836. <blockquote>
  5837. <p>Body parameter</p>
  5838. </blockquote>
  5839. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5840. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5841. </code></pre>
  5842. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5843. <table>
  5844. <thead>
  5845. <tr>
  5846. <th>Name</th>
  5847. <th>In</th>
  5848. <th>Type</th>
  5849. <th>Required</th>
  5850. <th>Description</th>
  5851. </tr>
  5852. </thead>
  5853. <tbody>
  5854. <tr>
  5855. <td>board</td>
  5856. <td>path</td>
  5857. <td>string</td>
  5858. <td>true</td>
  5859. <td>the board ID</td>
  5860. </tr>
  5861. <tr>
  5862. <td>card</td>
  5863. <td>path</td>
  5864. <td>string</td>
  5865. <td>true</td>
  5866. <td>the card ID</td>
  5867. </tr>
  5868. <tr>
  5869. <td>checklist</td>
  5870. <td>path</td>
  5871. <td>string</td>
  5872. <td>true</td>
  5873. <td>the checklist ID</td>
  5874. </tr>
  5875. <tr>
  5876. <td>item</td>
  5877. <td>path</td>
  5878. <td>string</td>
  5879. <td>true</td>
  5880. <td>the ID of the item</td>
  5881. </tr>
  5882. <tr>
  5883. <td>body</td>
  5884. <td>body</td>
  5885. <td>object</td>
  5886. <td>false</td>
  5887. <td>none</td>
  5888. </tr>
  5889. <tr>
  5890. <td>» isFinished</td>
  5891. <td>body</td>
  5892. <td>string</td>
  5893. <td>false</td>
  5894. <td>is the item checked?</td>
  5895. </tr>
  5896. <tr>
  5897. <td>» title</td>
  5898. <td>body</td>
  5899. <td>string</td>
  5900. <td>false</td>
  5901. <td>the new text of the item</td>
  5902. </tr>
  5903. </tbody>
  5904. </table>
  5905. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  5906. <p><strong>board</strong>: the board ID</p>
  5907. <p><strong>card</strong>: the card ID</p>
  5908. <p><strong>checklist</strong>: the checklist ID</p>
  5909. <p><strong>item</strong>: the ID of the item</p>
  5910. <blockquote>
  5911. <p>Example responses</p>
  5912. </blockquote>
  5913. <blockquote>
  5914. <p>200 Response</p>
  5915. </blockquote>
  5916. <pre class="highlight tab tab-json"><code>{
  5917. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  5918. }
  5919. </code></pre>
  5920. <h3 id="edit_checklist_item-responses">Responses</h3>
  5921. <table>
  5922. <thead>
  5923. <tr>
  5924. <th>Status</th>
  5925. <th>Meaning</th>
  5926. <th>Description</th>
  5927. <th>Schema</th>
  5928. </tr>
  5929. </thead>
  5930. <tbody>
  5931. <tr>
  5932. <td>200</td>
  5933. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5934. <td>200 response</td>
  5935. <td>Inline</td>
  5936. </tr>
  5937. </tbody>
  5938. </table>
  5939. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5940. <p>Status Code <strong>200</strong></p>
  5941. <table>
  5942. <thead>
  5943. <tr>
  5944. <th>Name</th>
  5945. <th>Type</th>
  5946. <th>Required</th>
  5947. <th>Restrictions</th>
  5948. <th>Description</th>
  5949. </tr>
  5950. </thead>
  5951. <tbody>
  5952. <tr>
  5953. <td>» _id</td>
  5954. <td>string</td>
  5955. <td>false</td>
  5956. <td>none</td>
  5957. <td>none</td>
  5958. </tr>
  5959. </tbody>
  5960. </table>
  5961. <aside class="warning">
  5962. To perform this operation, you must be authenticated by means of one of the following methods:
  5963. UserSecurity
  5964. </aside>
  5965. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5966. <p><a id="opIddelete_checklist_item"></a></p>
  5967. <blockquote>
  5968. <p>Code samples</p>
  5969. </blockquote>
  5970. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5971. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5972. -H <span class="hljs-string">'Accept: application/json'</span> \
  5973. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  5974. </code></pre>
  5975. <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
  5976. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  5977. <span class="undefined"></span></span></code></pre>
  5978. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  5979. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5980. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5981. };
  5982. $.ajax({
  5983. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5984. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  5985. <span class="hljs-attr">headers</span>: headers,
  5986. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  5987. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  5988. }
  5989. })
  5990. </code></pre>
  5991. <pre class="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>);
  5992. <span class="hljs-keyword">const</span> headers = {
  5993. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  5994. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  5995. };
  5996. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  5997. {
  5998. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  5999. <span class="hljs-attr">headers</span>: headers
  6000. })
  6001. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6002. <span class="hljs-keyword">return</span> res.json();
  6003. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6004. <span class="hljs-built_in">console</span>.log(body);
  6005. });
  6006. </code></pre>
  6007. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6008. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6009. headers = {
  6010. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6011. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6012. }
  6013. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>,
  6014. <span class="hljs-symbol">params:</span> {
  6015. }, <span class="hljs-symbol">headers:</span> headers
  6016. p JSON.parse(result)
  6017. </code></pre>
  6018. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6019. headers = {
  6020. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6021. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6022. }
  6023. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}'</span>, params={
  6024. }, headers = headers)
  6025. <span class="hljs-keyword">print</span> r.json()
  6026. </code></pre>
  6027. <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>);
  6028. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6029. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  6030. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6031. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6032. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6033. String inputLine;
  6034. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6035. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6036. response.append(inputLine);
  6037. }
  6038. in.close();
  6039. System.out.println(response.toString());
  6040. </code></pre>
  6041. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6042. <span class="hljs-keyword">import</span> (
  6043. <span class="hljs-string">"bytes"</span>
  6044. <span class="hljs-string">"net/http"</span>
  6045. )
  6046. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6047. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6048. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6049. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6050. }
  6051. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6052. 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)
  6053. req.Header = headers
  6054. client := &amp;http.Client{}
  6055. resp, err := client.Do(req)
  6056. <span class="hljs-comment">// ...</span>
  6057. }
  6058. </code></pre>
  6059. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  6060. <p><em>Delete a checklist item</em></p>
  6061. <p>Note: this operation can't be reverted.</p>
  6062. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  6063. <table>
  6064. <thead>
  6065. <tr>
  6066. <th>Name</th>
  6067. <th>In</th>
  6068. <th>Type</th>
  6069. <th>Required</th>
  6070. <th>Description</th>
  6071. </tr>
  6072. </thead>
  6073. <tbody>
  6074. <tr>
  6075. <td>board</td>
  6076. <td>path</td>
  6077. <td>string</td>
  6078. <td>true</td>
  6079. <td>the board ID</td>
  6080. </tr>
  6081. <tr>
  6082. <td>card</td>
  6083. <td>path</td>
  6084. <td>string</td>
  6085. <td>true</td>
  6086. <td>the card ID</td>
  6087. </tr>
  6088. <tr>
  6089. <td>checklist</td>
  6090. <td>path</td>
  6091. <td>string</td>
  6092. <td>true</td>
  6093. <td>the checklist ID</td>
  6094. </tr>
  6095. <tr>
  6096. <td>item</td>
  6097. <td>path</td>
  6098. <td>string</td>
  6099. <td>true</td>
  6100. <td>the ID of the item to be removed</td>
  6101. </tr>
  6102. </tbody>
  6103. </table>
  6104. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6105. <p><strong>board</strong>: the board ID</p>
  6106. <p><strong>card</strong>: the card ID</p>
  6107. <p><strong>checklist</strong>: the checklist ID</p>
  6108. <p><strong>item</strong>: the ID of the item to be removed</p>
  6109. <blockquote>
  6110. <p>Example responses</p>
  6111. </blockquote>
  6112. <blockquote>
  6113. <p>200 Response</p>
  6114. </blockquote>
  6115. <pre class="highlight tab tab-json"><code>{
  6116. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6117. }
  6118. </code></pre>
  6119. <h3 id="delete_checklist_item-responses">Responses</h3>
  6120. <table>
  6121. <thead>
  6122. <tr>
  6123. <th>Status</th>
  6124. <th>Meaning</th>
  6125. <th>Description</th>
  6126. <th>Schema</th>
  6127. </tr>
  6128. </thead>
  6129. <tbody>
  6130. <tr>
  6131. <td>200</td>
  6132. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6133. <td>200 response</td>
  6134. <td>Inline</td>
  6135. </tr>
  6136. </tbody>
  6137. </table>
  6138. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6139. <p>Status Code <strong>200</strong></p>
  6140. <table>
  6141. <thead>
  6142. <tr>
  6143. <th>Name</th>
  6144. <th>Type</th>
  6145. <th>Required</th>
  6146. <th>Restrictions</th>
  6147. <th>Description</th>
  6148. </tr>
  6149. </thead>
  6150. <tbody>
  6151. <tr>
  6152. <td>» _id</td>
  6153. <td>string</td>
  6154. <td>false</td>
  6155. <td>none</td>
  6156. <td>none</td>
  6157. </tr>
  6158. </tbody>
  6159. </table>
  6160. <aside class="warning">
  6161. To perform this operation, you must be authenticated by means of one of the following methods:
  6162. UserSecurity
  6163. </aside>
  6164. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6165. <h2 id="get_all_comments">get_all_comments</h2>
  6166. <p><a id="opIdget_all_comments"></a></p>
  6167. <blockquote>
  6168. <p>Code samples</p>
  6169. </blockquote>
  6170. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6171. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6172. -H <span class="hljs-string">'Accept: application/json'</span> \
  6173. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6174. </code></pre>
  6175. <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
  6176. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6177. <span class="undefined"></span></span></code></pre>
  6178. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6179. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6180. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6181. };
  6182. $.ajax({
  6183. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6184. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6185. <span class="hljs-attr">headers</span>: headers,
  6186. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6187. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6188. }
  6189. })
  6190. </code></pre>
  6191. <pre class="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>);
  6192. <span class="hljs-keyword">const</span> headers = {
  6193. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6194. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6195. };
  6196. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6197. {
  6198. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6199. <span class="hljs-attr">headers</span>: headers
  6200. })
  6201. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6202. <span class="hljs-keyword">return</span> res.json();
  6203. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6204. <span class="hljs-built_in">console</span>.log(body);
  6205. });
  6206. </code></pre>
  6207. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6208. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6209. headers = {
  6210. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6211. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6212. }
  6213. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6214. <span class="hljs-symbol">params:</span> {
  6215. }, <span class="hljs-symbol">headers:</span> headers
  6216. p JSON.parse(result)
  6217. </code></pre>
  6218. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6219. headers = {
  6220. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6221. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6222. }
  6223. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  6224. }, headers = headers)
  6225. <span class="hljs-keyword">print</span> r.json()
  6226. </code></pre>
  6227. <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>);
  6228. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6229. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6230. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6231. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6232. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6233. String inputLine;
  6234. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6235. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6236. response.append(inputLine);
  6237. }
  6238. in.close();
  6239. System.out.println(response.toString());
  6240. </code></pre>
  6241. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6242. <span class="hljs-keyword">import</span> (
  6243. <span class="hljs-string">"bytes"</span>
  6244. <span class="hljs-string">"net/http"</span>
  6245. )
  6246. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6247. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6248. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6249. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6250. }
  6251. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6252. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  6253. req.Header = headers
  6254. client := &amp;http.Client{}
  6255. resp, err := client.Do(req)
  6256. <span class="hljs-comment">// ...</span>
  6257. }
  6258. </code></pre>
  6259. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6260. <p><em>Get all comments attached to a card</em></p>
  6261. <h3 id="get_all_comments-parameters">Parameters</h3>
  6262. <table>
  6263. <thead>
  6264. <tr>
  6265. <th>Name</th>
  6266. <th>In</th>
  6267. <th>Type</th>
  6268. <th>Required</th>
  6269. <th>Description</th>
  6270. </tr>
  6271. </thead>
  6272. <tbody>
  6273. <tr>
  6274. <td>board</td>
  6275. <td>path</td>
  6276. <td>string</td>
  6277. <td>true</td>
  6278. <td>the board ID of the card</td>
  6279. </tr>
  6280. <tr>
  6281. <td>card</td>
  6282. <td>path</td>
  6283. <td>string</td>
  6284. <td>true</td>
  6285. <td>the ID of the card</td>
  6286. </tr>
  6287. </tbody>
  6288. </table>
  6289. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6290. <p><strong>board</strong>: the board ID of the card</p>
  6291. <p><strong>card</strong>: the ID of the card</p>
  6292. <blockquote>
  6293. <p>Example responses</p>
  6294. </blockquote>
  6295. <blockquote>
  6296. <p>200 Response</p>
  6297. </blockquote>
  6298. <pre class="highlight tab tab-json"><code>[
  6299. {
  6300. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  6301. <span class="hljs-attr">"comment"</span>: <span class="hljs-string">"string"</span>,
  6302. <span class="hljs-attr">"authorId"</span>: <span class="hljs-string">"string"</span>
  6303. }
  6304. ]
  6305. </code></pre>
  6306. <h3 id="get_all_comments-responses">Responses</h3>
  6307. <table>
  6308. <thead>
  6309. <tr>
  6310. <th>Status</th>
  6311. <th>Meaning</th>
  6312. <th>Description</th>
  6313. <th>Schema</th>
  6314. </tr>
  6315. </thead>
  6316. <tbody>
  6317. <tr>
  6318. <td>200</td>
  6319. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6320. <td>200 response</td>
  6321. <td>Inline</td>
  6322. </tr>
  6323. </tbody>
  6324. </table>
  6325. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6326. <p>Status Code <strong>200</strong></p>
  6327. <table>
  6328. <thead>
  6329. <tr>
  6330. <th>Name</th>
  6331. <th>Type</th>
  6332. <th>Required</th>
  6333. <th>Restrictions</th>
  6334. <th>Description</th>
  6335. </tr>
  6336. </thead>
  6337. <tbody>
  6338. <tr>
  6339. <td>» _id</td>
  6340. <td>string</td>
  6341. <td>false</td>
  6342. <td>none</td>
  6343. <td>none</td>
  6344. </tr>
  6345. <tr>
  6346. <td>» comment</td>
  6347. <td>string</td>
  6348. <td>false</td>
  6349. <td>none</td>
  6350. <td>none</td>
  6351. </tr>
  6352. <tr>
  6353. <td>» authorId</td>
  6354. <td>string</td>
  6355. <td>false</td>
  6356. <td>none</td>
  6357. <td>none</td>
  6358. </tr>
  6359. </tbody>
  6360. </table>
  6361. <aside class="warning">
  6362. To perform this operation, you must be authenticated by means of one of the following methods:
  6363. UserSecurity
  6364. </aside>
  6365. <h2 id="new_comment">new_comment</h2>
  6366. <p><a id="opIdnew_comment"></a></p>
  6367. <blockquote>
  6368. <p>Code samples</p>
  6369. </blockquote>
  6370. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6371. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6372. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  6373. -H <span class="hljs-string">'Accept: application/json'</span> \
  6374. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6375. </code></pre>
  6376. <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
  6377. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6378. Accept: application/json
  6379. </span></code></pre>
  6380. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6381. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6382. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6383. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6384. };
  6385. $.ajax({
  6386. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6387. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  6388. <span class="hljs-attr">headers</span>: headers,
  6389. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6390. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6391. }
  6392. })
  6393. </code></pre>
  6394. <pre class="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>);
  6395. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  6396. "authorId": "string",
  6397. "comment": "string"
  6398. }'</span>;
  6399. <span class="hljs-keyword">const</span> headers = {
  6400. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  6401. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6402. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6403. };
  6404. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6405. {
  6406. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  6407. <span class="hljs-attr">body</span>: inputBody,
  6408. <span class="hljs-attr">headers</span>: headers
  6409. })
  6410. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6411. <span class="hljs-keyword">return</span> res.json();
  6412. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6413. <span class="hljs-built_in">console</span>.log(body);
  6414. });
  6415. </code></pre>
  6416. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6417. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6418. headers = {
  6419. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  6420. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6421. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6422. }
  6423. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>,
  6424. <span class="hljs-symbol">params:</span> {
  6425. }, <span class="hljs-symbol">headers:</span> headers
  6426. p JSON.parse(result)
  6427. </code></pre>
  6428. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6429. headers = {
  6430. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  6431. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6432. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6433. }
  6434. r = requests.post(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments'</span>, params={
  6435. }, headers = headers)
  6436. <span class="hljs-keyword">print</span> r.json()
  6437. </code></pre>
  6438. <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>);
  6439. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6440. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  6441. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6442. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6443. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6444. String inputLine;
  6445. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6446. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6447. response.append(inputLine);
  6448. }
  6449. in.close();
  6450. System.out.println(response.toString());
  6451. </code></pre>
  6452. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6453. <span class="hljs-keyword">import</span> (
  6454. <span class="hljs-string">"bytes"</span>
  6455. <span class="hljs-string">"net/http"</span>
  6456. )
  6457. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6458. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6459. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  6460. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6461. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6462. }
  6463. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6464. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments"</span>, data)
  6465. req.Header = headers
  6466. client := &amp;http.Client{}
  6467. resp, err := client.Do(req)
  6468. <span class="hljs-comment">// ...</span>
  6469. }
  6470. </code></pre>
  6471. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6472. <p><em>Add a comment on a card</em></p>
  6473. <blockquote>
  6474. <p>Body parameter</p>
  6475. </blockquote>
  6476. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6477. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6478. </code></pre>
  6479. <h3 id="new_comment-parameters">Parameters</h3>
  6480. <table>
  6481. <thead>
  6482. <tr>
  6483. <th>Name</th>
  6484. <th>In</th>
  6485. <th>Type</th>
  6486. <th>Required</th>
  6487. <th>Description</th>
  6488. </tr>
  6489. </thead>
  6490. <tbody>
  6491. <tr>
  6492. <td>board</td>
  6493. <td>path</td>
  6494. <td>string</td>
  6495. <td>true</td>
  6496. <td>the board ID of the card</td>
  6497. </tr>
  6498. <tr>
  6499. <td>card</td>
  6500. <td>path</td>
  6501. <td>string</td>
  6502. <td>true</td>
  6503. <td>the ID of the card</td>
  6504. </tr>
  6505. <tr>
  6506. <td>body</td>
  6507. <td>body</td>
  6508. <td>object</td>
  6509. <td>false</td>
  6510. <td>none</td>
  6511. </tr>
  6512. <tr>
  6513. <td>» authorId</td>
  6514. <td>body</td>
  6515. <td>string</td>
  6516. <td>true</td>
  6517. <td>the user who 'posted' the comment</td>
  6518. </tr>
  6519. <tr>
  6520. <td>» comment</td>
  6521. <td>body</td>
  6522. <td>string</td>
  6523. <td>true</td>
  6524. <td>the comment value</td>
  6525. </tr>
  6526. </tbody>
  6527. </table>
  6528. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6529. <p><strong>board</strong>: the board ID of the card</p>
  6530. <p><strong>card</strong>: the ID of the card</p>
  6531. <blockquote>
  6532. <p>Example responses</p>
  6533. </blockquote>
  6534. <blockquote>
  6535. <p>200 Response</p>
  6536. </blockquote>
  6537. <pre class="highlight tab tab-json"><code>{
  6538. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6539. }
  6540. </code></pre>
  6541. <h3 id="new_comment-responses">Responses</h3>
  6542. <table>
  6543. <thead>
  6544. <tr>
  6545. <th>Status</th>
  6546. <th>Meaning</th>
  6547. <th>Description</th>
  6548. <th>Schema</th>
  6549. </tr>
  6550. </thead>
  6551. <tbody>
  6552. <tr>
  6553. <td>200</td>
  6554. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6555. <td>200 response</td>
  6556. <td>Inline</td>
  6557. </tr>
  6558. </tbody>
  6559. </table>
  6560. <h3 id="new_comment-responseschema">Response Schema</h3>
  6561. <p>Status Code <strong>200</strong></p>
  6562. <table>
  6563. <thead>
  6564. <tr>
  6565. <th>Name</th>
  6566. <th>Type</th>
  6567. <th>Required</th>
  6568. <th>Restrictions</th>
  6569. <th>Description</th>
  6570. </tr>
  6571. </thead>
  6572. <tbody>
  6573. <tr>
  6574. <td>» _id</td>
  6575. <td>string</td>
  6576. <td>false</td>
  6577. <td>none</td>
  6578. <td>none</td>
  6579. </tr>
  6580. </tbody>
  6581. </table>
  6582. <aside class="warning">
  6583. To perform this operation, you must be authenticated by means of one of the following methods:
  6584. UserSecurity
  6585. </aside>
  6586. <h2 id="get_comment">get_comment</h2>
  6587. <p><a id="opIdget_comment"></a></p>
  6588. <blockquote>
  6589. <p>Code samples</p>
  6590. </blockquote>
  6591. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6592. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6593. -H <span class="hljs-string">'Accept: application/json'</span> \
  6594. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6595. </code></pre>
  6596. <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
  6597. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6598. <span class="undefined"></span></span></code></pre>
  6599. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6600. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6601. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6602. };
  6603. $.ajax({
  6604. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6605. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6606. <span class="hljs-attr">headers</span>: headers,
  6607. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6608. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6609. }
  6610. })
  6611. </code></pre>
  6612. <pre class="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>);
  6613. <span class="hljs-keyword">const</span> headers = {
  6614. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6615. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6616. };
  6617. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6618. {
  6619. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6620. <span class="hljs-attr">headers</span>: headers
  6621. })
  6622. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6623. <span class="hljs-keyword">return</span> res.json();
  6624. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6625. <span class="hljs-built_in">console</span>.log(body);
  6626. });
  6627. </code></pre>
  6628. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6629. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6630. headers = {
  6631. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6632. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6633. }
  6634. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6635. <span class="hljs-symbol">params:</span> {
  6636. }, <span class="hljs-symbol">headers:</span> headers
  6637. p JSON.parse(result)
  6638. </code></pre>
  6639. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6640. headers = {
  6641. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6642. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6643. }
  6644. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  6645. }, headers = headers)
  6646. <span class="hljs-keyword">print</span> r.json()
  6647. </code></pre>
  6648. <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>);
  6649. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6650. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  6651. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6652. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6653. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6654. String inputLine;
  6655. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6656. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6657. response.append(inputLine);
  6658. }
  6659. in.close();
  6660. System.out.println(response.toString());
  6661. </code></pre>
  6662. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6663. <span class="hljs-keyword">import</span> (
  6664. <span class="hljs-string">"bytes"</span>
  6665. <span class="hljs-string">"net/http"</span>
  6666. )
  6667. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6668. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6669. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6670. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6671. }
  6672. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6673. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  6674. req.Header = headers
  6675. client := &amp;http.Client{}
  6676. resp, err := client.Do(req)
  6677. <span class="hljs-comment">// ...</span>
  6678. }
  6679. </code></pre>
  6680. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6681. <p><em>Get a comment on a card</em></p>
  6682. <h3 id="get_comment-parameters">Parameters</h3>
  6683. <table>
  6684. <thead>
  6685. <tr>
  6686. <th>Name</th>
  6687. <th>In</th>
  6688. <th>Type</th>
  6689. <th>Required</th>
  6690. <th>Description</th>
  6691. </tr>
  6692. </thead>
  6693. <tbody>
  6694. <tr>
  6695. <td>board</td>
  6696. <td>path</td>
  6697. <td>string</td>
  6698. <td>true</td>
  6699. <td>the board ID of the card</td>
  6700. </tr>
  6701. <tr>
  6702. <td>card</td>
  6703. <td>path</td>
  6704. <td>string</td>
  6705. <td>true</td>
  6706. <td>the ID of the card</td>
  6707. </tr>
  6708. <tr>
  6709. <td>comment</td>
  6710. <td>path</td>
  6711. <td>string</td>
  6712. <td>true</td>
  6713. <td>the ID of the comment to retrieve</td>
  6714. </tr>
  6715. </tbody>
  6716. </table>
  6717. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6718. <p><strong>board</strong>: the board ID of the card</p>
  6719. <p><strong>card</strong>: the ID of the card</p>
  6720. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6721. <blockquote>
  6722. <p>Example responses</p>
  6723. </blockquote>
  6724. <blockquote>
  6725. <p>200 Response</p>
  6726. </blockquote>
  6727. <pre class="highlight tab tab-json"><code>{
  6728. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  6729. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  6730. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  6731. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  6732. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  6733. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  6734. }
  6735. </code></pre>
  6736. <h3 id="get_comment-responses">Responses</h3>
  6737. <table>
  6738. <thead>
  6739. <tr>
  6740. <th>Status</th>
  6741. <th>Meaning</th>
  6742. <th>Description</th>
  6743. <th>Schema</th>
  6744. </tr>
  6745. </thead>
  6746. <tbody>
  6747. <tr>
  6748. <td>200</td>
  6749. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6750. <td>200 response</td>
  6751. <td><a href="#schemacardcomments">CardComments</a></td>
  6752. </tr>
  6753. </tbody>
  6754. </table>
  6755. <aside class="warning">
  6756. To perform this operation, you must be authenticated by means of one of the following methods:
  6757. UserSecurity
  6758. </aside>
  6759. <h2 id="delete_comment">delete_comment</h2>
  6760. <p><a id="opIddelete_comment"></a></p>
  6761. <blockquote>
  6762. <p>Code samples</p>
  6763. </blockquote>
  6764. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6765. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6766. -H <span class="hljs-string">'Accept: application/json'</span> \
  6767. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6768. </code></pre>
  6769. <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
  6770. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6771. <span class="undefined"></span></span></code></pre>
  6772. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6773. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6774. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6775. };
  6776. $.ajax({
  6777. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6778. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  6779. <span class="hljs-attr">headers</span>: headers,
  6780. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6781. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6782. }
  6783. })
  6784. </code></pre>
  6785. <pre class="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>);
  6786. <span class="hljs-keyword">const</span> headers = {
  6787. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6788. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6789. };
  6790. fetch(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6791. {
  6792. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  6793. <span class="hljs-attr">headers</span>: headers
  6794. })
  6795. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6796. <span class="hljs-keyword">return</span> res.json();
  6797. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6798. <span class="hljs-built_in">console</span>.log(body);
  6799. });
  6800. </code></pre>
  6801. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6802. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6803. headers = {
  6804. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6805. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6806. }
  6807. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>,
  6808. <span class="hljs-symbol">params:</span> {
  6809. }, <span class="hljs-symbol">headers:</span> headers
  6810. p JSON.parse(result)
  6811. </code></pre>
  6812. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6813. headers = {
  6814. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  6815. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  6816. }
  6817. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/cards/{card}/comments/{comment}'</span>, params={
  6818. }, headers = headers)
  6819. <span class="hljs-keyword">print</span> r.json()
  6820. </code></pre>
  6821. <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>);
  6822. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6823. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  6824. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6825. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6826. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6827. String inputLine;
  6828. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6829. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6830. response.append(inputLine);
  6831. }
  6832. in.close();
  6833. System.out.println(response.toString());
  6834. </code></pre>
  6835. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6836. <span class="hljs-keyword">import</span> (
  6837. <span class="hljs-string">"bytes"</span>
  6838. <span class="hljs-string">"net/http"</span>
  6839. )
  6840. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6841. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6842. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  6843. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  6844. }
  6845. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6846. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/cards/{card}/comments/{comment}"</span>, data)
  6847. req.Header = headers
  6848. client := &amp;http.Client{}
  6849. resp, err := client.Do(req)
  6850. <span class="hljs-comment">// ...</span>
  6851. }
  6852. </code></pre>
  6853. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6854. <p><em>Delete a comment on a card</em></p>
  6855. <h3 id="delete_comment-parameters">Parameters</h3>
  6856. <table>
  6857. <thead>
  6858. <tr>
  6859. <th>Name</th>
  6860. <th>In</th>
  6861. <th>Type</th>
  6862. <th>Required</th>
  6863. <th>Description</th>
  6864. </tr>
  6865. </thead>
  6866. <tbody>
  6867. <tr>
  6868. <td>board</td>
  6869. <td>path</td>
  6870. <td>string</td>
  6871. <td>true</td>
  6872. <td>the board ID of the card</td>
  6873. </tr>
  6874. <tr>
  6875. <td>card</td>
  6876. <td>path</td>
  6877. <td>string</td>
  6878. <td>true</td>
  6879. <td>the ID of the card</td>
  6880. </tr>
  6881. <tr>
  6882. <td>comment</td>
  6883. <td>path</td>
  6884. <td>string</td>
  6885. <td>true</td>
  6886. <td>the ID of the comment to delete</td>
  6887. </tr>
  6888. </tbody>
  6889. </table>
  6890. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  6891. <p><strong>board</strong>: the board ID of the card</p>
  6892. <p><strong>card</strong>: the ID of the card</p>
  6893. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6894. <blockquote>
  6895. <p>Example responses</p>
  6896. </blockquote>
  6897. <blockquote>
  6898. <p>200 Response</p>
  6899. </blockquote>
  6900. <pre class="highlight tab tab-json"><code>{
  6901. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  6902. }
  6903. </code></pre>
  6904. <h3 id="delete_comment-responses">Responses</h3>
  6905. <table>
  6906. <thead>
  6907. <tr>
  6908. <th>Status</th>
  6909. <th>Meaning</th>
  6910. <th>Description</th>
  6911. <th>Schema</th>
  6912. </tr>
  6913. </thead>
  6914. <tbody>
  6915. <tr>
  6916. <td>200</td>
  6917. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6918. <td>200 response</td>
  6919. <td>Inline</td>
  6920. </tr>
  6921. </tbody>
  6922. </table>
  6923. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6924. <p>Status Code <strong>200</strong></p>
  6925. <table>
  6926. <thead>
  6927. <tr>
  6928. <th>Name</th>
  6929. <th>Type</th>
  6930. <th>Required</th>
  6931. <th>Restrictions</th>
  6932. <th>Description</th>
  6933. </tr>
  6934. </thead>
  6935. <tbody>
  6936. <tr>
  6937. <td>» _id</td>
  6938. <td>string</td>
  6939. <td>false</td>
  6940. <td>none</td>
  6941. <td>none</td>
  6942. </tr>
  6943. </tbody>
  6944. </table>
  6945. <aside class="warning">
  6946. To perform this operation, you must be authenticated by means of one of the following methods:
  6947. UserSecurity
  6948. </aside>
  6949. <h1 id="wekan-rest-api-cards">Cards</h1>
  6950. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6951. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6952. <blockquote>
  6953. <p>Code samples</p>
  6954. </blockquote>
  6955. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6956. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6957. -H <span class="hljs-string">'Accept: application/json'</span> \
  6958. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  6959. </code></pre>
  6960. <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
  6961. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  6962. <span class="undefined"></span></span></code></pre>
  6963. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  6964. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6965. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6966. };
  6967. $.ajax({
  6968. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  6969. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  6970. <span class="hljs-attr">headers</span>: headers,
  6971. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  6972. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  6973. }
  6974. })
  6975. </code></pre>
  6976. <pre class="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>);
  6977. <span class="hljs-keyword">const</span> headers = {
  6978. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  6979. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  6980. };
  6981. fetch(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  6982. {
  6983. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  6984. <span class="hljs-attr">headers</span>: headers
  6985. })
  6986. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6987. <span class="hljs-keyword">return</span> res.json();
  6988. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6989. <span class="hljs-built_in">console</span>.log(body);
  6990. });
  6991. </code></pre>
  6992. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  6993. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  6994. headers = {
  6995. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  6996. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  6997. }
  6998. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>,
  6999. <span class="hljs-symbol">params:</span> {
  7000. }, <span class="hljs-symbol">headers:</span> headers
  7001. p JSON.parse(result)
  7002. </code></pre>
  7003. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7004. headers = {
  7005. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7006. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7007. }
  7008. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}'</span>, params={
  7009. }, headers = headers)
  7010. <span class="hljs-keyword">print</span> r.json()
  7011. </code></pre>
  7012. <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>);
  7013. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7014. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7015. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7016. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7017. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7018. String inputLine;
  7019. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7020. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7021. response.append(inputLine);
  7022. }
  7023. in.close();
  7024. System.out.println(response.toString());
  7025. </code></pre>
  7026. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7027. <span class="hljs-keyword">import</span> (
  7028. <span class="hljs-string">"bytes"</span>
  7029. <span class="hljs-string">"net/http"</span>
  7030. )
  7031. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7032. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7033. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7034. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7035. }
  7036. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7037. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}"</span>, data)
  7038. req.Header = headers
  7039. client := &amp;http.Client{}
  7040. resp, err := client.Do(req)
  7041. <span class="hljs-comment">// ...</span>
  7042. }
  7043. </code></pre>
  7044. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7045. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7046. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7047. <table>
  7048. <thead>
  7049. <tr>
  7050. <th>Name</th>
  7051. <th>In</th>
  7052. <th>Type</th>
  7053. <th>Required</th>
  7054. <th>Description</th>
  7055. </tr>
  7056. </thead>
  7057. <tbody>
  7058. <tr>
  7059. <td>board</td>
  7060. <td>path</td>
  7061. <td>string</td>
  7062. <td>true</td>
  7063. <td>the board ID</td>
  7064. </tr>
  7065. <tr>
  7066. <td>customField</td>
  7067. <td>path</td>
  7068. <td>string</td>
  7069. <td>true</td>
  7070. <td>the list ID</td>
  7071. </tr>
  7072. <tr>
  7073. <td>customFieldValue</td>
  7074. <td>path</td>
  7075. <td>string</td>
  7076. <td>true</td>
  7077. <td>the value to look for</td>
  7078. </tr>
  7079. </tbody>
  7080. </table>
  7081. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7082. <p><strong>board</strong>: the board ID</p>
  7083. <p><strong>customField</strong>: the list ID</p>
  7084. <p><strong>customFieldValue</strong>: the value to look for</p>
  7085. <blockquote>
  7086. <p>Example responses</p>
  7087. </blockquote>
  7088. <blockquote>
  7089. <p>200 Response</p>
  7090. </blockquote>
  7091. <pre class="highlight tab tab-json"><code>[
  7092. {
  7093. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7094. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7095. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  7096. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  7097. <span class="hljs-attr">"swinlaneId"</span>: <span class="hljs-string">"string"</span>
  7098. }
  7099. ]
  7100. </code></pre>
  7101. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7102. <table>
  7103. <thead>
  7104. <tr>
  7105. <th>Status</th>
  7106. <th>Meaning</th>
  7107. <th>Description</th>
  7108. <th>Schema</th>
  7109. </tr>
  7110. </thead>
  7111. <tbody>
  7112. <tr>
  7113. <td>200</td>
  7114. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7115. <td>200 response</td>
  7116. <td>Inline</td>
  7117. </tr>
  7118. </tbody>
  7119. </table>
  7120. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7121. <p>Status Code <strong>200</strong></p>
  7122. <table>
  7123. <thead>
  7124. <tr>
  7125. <th>Name</th>
  7126. <th>Type</th>
  7127. <th>Required</th>
  7128. <th>Restrictions</th>
  7129. <th>Description</th>
  7130. </tr>
  7131. </thead>
  7132. <tbody>
  7133. <tr>
  7134. <td>» _id</td>
  7135. <td>string</td>
  7136. <td>false</td>
  7137. <td>none</td>
  7138. <td>none</td>
  7139. </tr>
  7140. <tr>
  7141. <td>» title</td>
  7142. <td>string</td>
  7143. <td>false</td>
  7144. <td>none</td>
  7145. <td>none</td>
  7146. </tr>
  7147. <tr>
  7148. <td>» description</td>
  7149. <td>string</td>
  7150. <td>false</td>
  7151. <td>none</td>
  7152. <td>none</td>
  7153. </tr>
  7154. <tr>
  7155. <td>» listId</td>
  7156. <td>string</td>
  7157. <td>false</td>
  7158. <td>none</td>
  7159. <td>none</td>
  7160. </tr>
  7161. <tr>
  7162. <td>» swinlaneId</td>
  7163. <td>string</td>
  7164. <td>false</td>
  7165. <td>none</td>
  7166. <td>none</td>
  7167. </tr>
  7168. </tbody>
  7169. </table>
  7170. <aside class="warning">
  7171. To perform this operation, you must be authenticated by means of one of the following methods:
  7172. UserSecurity
  7173. </aside>
  7174. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  7175. <p><a id="opIdget_board_cards_count"></a></p>
  7176. <blockquote>
  7177. <p>Code samples</p>
  7178. </blockquote>
  7179. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7180. curl -X GET /api/boards/{board}/cards_count \
  7181. -H <span class="hljs-string">'Accept: application/json'</span> \
  7182. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7183. </code></pre>
  7184. <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
  7185. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7186. <span class="undefined"></span></span></code></pre>
  7187. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7188. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7189. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7190. };
  7191. $.ajax({
  7192. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  7193. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7194. <span class="hljs-attr">headers</span>: headers,
  7195. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7196. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7197. }
  7198. })
  7199. </code></pre>
  7200. <pre class="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>);
  7201. <span class="hljs-keyword">const</span> headers = {
  7202. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7203. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7204. };
  7205. fetch(<span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  7206. {
  7207. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7208. <span class="hljs-attr">headers</span>: headers
  7209. })
  7210. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7211. <span class="hljs-keyword">return</span> res.json();
  7212. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7213. <span class="hljs-built_in">console</span>.log(body);
  7214. });
  7215. </code></pre>
  7216. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7217. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7218. headers = {
  7219. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7220. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7221. }
  7222. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/cards_count'</span>,
  7223. <span class="hljs-symbol">params:</span> {
  7224. }, <span class="hljs-symbol">headers:</span> headers
  7225. p JSON.parse(result)
  7226. </code></pre>
  7227. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7228. headers = {
  7229. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7230. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7231. }
  7232. r = requests.get(<span class="hljs-string">'/api/boards/{board}/cards_count'</span>, params={
  7233. }, headers = headers)
  7234. <span class="hljs-keyword">print</span> r.json()
  7235. </code></pre>
  7236. <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>);
  7237. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7238. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7239. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7240. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7241. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7242. String inputLine;
  7243. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7244. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7245. response.append(inputLine);
  7246. }
  7247. in.close();
  7248. System.out.println(response.toString());
  7249. </code></pre>
  7250. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7251. <span class="hljs-keyword">import</span> (
  7252. <span class="hljs-string">"bytes"</span>
  7253. <span class="hljs-string">"net/http"</span>
  7254. )
  7255. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7256. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7257. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7258. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7259. }
  7260. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7261. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/cards_count"</span>, data)
  7262. req.Header = headers
  7263. client := &amp;http.Client{}
  7264. resp, err := client.Do(req)
  7265. <span class="hljs-comment">// ...</span>
  7266. }
  7267. </code></pre>
  7268. <p><code>GET /api/boards/{board}/cards_count</code></p>
  7269. <p><em>Get a cards count to a board</em></p>
  7270. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  7271. <table>
  7272. <thead>
  7273. <tr>
  7274. <th>Name</th>
  7275. <th>In</th>
  7276. <th>Type</th>
  7277. <th>Required</th>
  7278. <th>Description</th>
  7279. </tr>
  7280. </thead>
  7281. <tbody>
  7282. <tr>
  7283. <td>board</td>
  7284. <td>path</td>
  7285. <td>string</td>
  7286. <td>true</td>
  7287. <td>the board ID</td>
  7288. </tr>
  7289. </tbody>
  7290. </table>
  7291. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7292. <p><strong>board</strong>: the board ID</p>
  7293. <blockquote>
  7294. <p>Example responses</p>
  7295. </blockquote>
  7296. <blockquote>
  7297. <p>200 Response</p>
  7298. </blockquote>
  7299. <pre class="highlight tab tab-json"><code>{
  7300. <span class="hljs-attr">"board_cards_count"</span>: <span class="hljs-number">0</span>
  7301. }
  7302. </code></pre>
  7303. <h3 id="get_board_cards_count-responses">Responses</h3>
  7304. <table>
  7305. <thead>
  7306. <tr>
  7307. <th>Status</th>
  7308. <th>Meaning</th>
  7309. <th>Description</th>
  7310. <th>Schema</th>
  7311. </tr>
  7312. </thead>
  7313. <tbody>
  7314. <tr>
  7315. <td>200</td>
  7316. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7317. <td>200 response</td>
  7318. <td>Inline</td>
  7319. </tr>
  7320. </tbody>
  7321. </table>
  7322. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  7323. <p>Status Code <strong>200</strong></p>
  7324. <table>
  7325. <thead>
  7326. <tr>
  7327. <th>Name</th>
  7328. <th>Type</th>
  7329. <th>Required</th>
  7330. <th>Restrictions</th>
  7331. <th>Description</th>
  7332. </tr>
  7333. </thead>
  7334. <tbody>
  7335. <tr>
  7336. <td>» board_cards_count</td>
  7337. <td>integer</td>
  7338. <td>false</td>
  7339. <td>none</td>
  7340. <td>none</td>
  7341. </tr>
  7342. </tbody>
  7343. </table>
  7344. <aside class="warning">
  7345. To perform this operation, you must be authenticated by means of one of the following methods:
  7346. UserSecurity
  7347. </aside>
  7348. <h2 id="get_all_cards">get_all_cards</h2>
  7349. <p><a id="opIdget_all_cards"></a></p>
  7350. <blockquote>
  7351. <p>Code samples</p>
  7352. </blockquote>
  7353. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7354. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7355. -H <span class="hljs-string">'Accept: application/json'</span> \
  7356. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7357. </code></pre>
  7358. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> HTTP/1.1
  7359. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7360. <span class="undefined"></span></span></code></pre>
  7361. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7362. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7363. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7364. };
  7365. $.ajax({
  7366. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7367. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7368. <span class="hljs-attr">headers</span>: headers,
  7369. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7370. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7371. }
  7372. })
  7373. </code></pre>
  7374. <pre class="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>);
  7375. <span class="hljs-keyword">const</span> headers = {
  7376. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7377. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7378. };
  7379. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7380. {
  7381. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7382. <span class="hljs-attr">headers</span>: headers
  7383. })
  7384. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7385. <span class="hljs-keyword">return</span> res.json();
  7386. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7387. <span class="hljs-built_in">console</span>.log(body);
  7388. });
  7389. </code></pre>
  7390. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7391. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7392. headers = {
  7393. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7394. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7395. }
  7396. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7397. <span class="hljs-symbol">params:</span> {
  7398. }, <span class="hljs-symbol">headers:</span> headers
  7399. p JSON.parse(result)
  7400. </code></pre>
  7401. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7402. headers = {
  7403. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7404. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7405. }
  7406. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  7407. }, headers = headers)
  7408. <span class="hljs-keyword">print</span> r.json()
  7409. </code></pre>
  7410. <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>);
  7411. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7412. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7413. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7414. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7415. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7416. String inputLine;
  7417. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7418. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7419. response.append(inputLine);
  7420. }
  7421. in.close();
  7422. System.out.println(response.toString());
  7423. </code></pre>
  7424. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7425. <span class="hljs-keyword">import</span> (
  7426. <span class="hljs-string">"bytes"</span>
  7427. <span class="hljs-string">"net/http"</span>
  7428. )
  7429. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7430. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7431. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7432. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7433. }
  7434. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7435. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  7436. req.Header = headers
  7437. client := &amp;http.Client{}
  7438. resp, err := client.Do(req)
  7439. <span class="hljs-comment">// ...</span>
  7440. }
  7441. </code></pre>
  7442. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7443. <p><em>Get all Cards attached to a List</em></p>
  7444. <h3 id="get_all_cards-parameters">Parameters</h3>
  7445. <table>
  7446. <thead>
  7447. <tr>
  7448. <th>Name</th>
  7449. <th>In</th>
  7450. <th>Type</th>
  7451. <th>Required</th>
  7452. <th>Description</th>
  7453. </tr>
  7454. </thead>
  7455. <tbody>
  7456. <tr>
  7457. <td>board</td>
  7458. <td>path</td>
  7459. <td>string</td>
  7460. <td>true</td>
  7461. <td>the board ID</td>
  7462. </tr>
  7463. <tr>
  7464. <td>list</td>
  7465. <td>path</td>
  7466. <td>string</td>
  7467. <td>true</td>
  7468. <td>the list ID</td>
  7469. </tr>
  7470. </tbody>
  7471. </table>
  7472. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7473. <p><strong>board</strong>: the board ID</p>
  7474. <p><strong>list</strong>: the list ID</p>
  7475. <blockquote>
  7476. <p>Example responses</p>
  7477. </blockquote>
  7478. <blockquote>
  7479. <p>200 Response</p>
  7480. </blockquote>
  7481. <pre class="highlight tab tab-json"><code>[
  7482. {
  7483. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  7484. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7485. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>
  7486. }
  7487. ]
  7488. </code></pre>
  7489. <h3 id="get_all_cards-responses">Responses</h3>
  7490. <table>
  7491. <thead>
  7492. <tr>
  7493. <th>Status</th>
  7494. <th>Meaning</th>
  7495. <th>Description</th>
  7496. <th>Schema</th>
  7497. </tr>
  7498. </thead>
  7499. <tbody>
  7500. <tr>
  7501. <td>200</td>
  7502. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7503. <td>200 response</td>
  7504. <td>Inline</td>
  7505. </tr>
  7506. </tbody>
  7507. </table>
  7508. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7509. <p>Status Code <strong>200</strong></p>
  7510. <table>
  7511. <thead>
  7512. <tr>
  7513. <th>Name</th>
  7514. <th>Type</th>
  7515. <th>Required</th>
  7516. <th>Restrictions</th>
  7517. <th>Description</th>
  7518. </tr>
  7519. </thead>
  7520. <tbody>
  7521. <tr>
  7522. <td>» _id</td>
  7523. <td>string</td>
  7524. <td>false</td>
  7525. <td>none</td>
  7526. <td>none</td>
  7527. </tr>
  7528. <tr>
  7529. <td>» title</td>
  7530. <td>string</td>
  7531. <td>false</td>
  7532. <td>none</td>
  7533. <td>none</td>
  7534. </tr>
  7535. <tr>
  7536. <td>» description</td>
  7537. <td>string</td>
  7538. <td>false</td>
  7539. <td>none</td>
  7540. <td>none</td>
  7541. </tr>
  7542. </tbody>
  7543. </table>
  7544. <aside class="warning">
  7545. To perform this operation, you must be authenticated by means of one of the following methods:
  7546. UserSecurity
  7547. </aside>
  7548. <h2 id="new_card">new_card</h2>
  7549. <p><a id="opIdnew_card"></a></p>
  7550. <blockquote>
  7551. <p>Code samples</p>
  7552. </blockquote>
  7553. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7554. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7555. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  7556. -H <span class="hljs-string">'Accept: application/json'</span> \
  7557. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7558. </code></pre>
  7559. <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
  7560. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7561. Accept: application/json
  7562. </span></code></pre>
  7563. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7564. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7565. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7566. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7567. };
  7568. $.ajax({
  7569. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7570. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  7571. <span class="hljs-attr">headers</span>: headers,
  7572. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7573. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7574. }
  7575. })
  7576. </code></pre>
  7577. <pre class="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>);
  7578. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  7579. "authorId": "string",
  7580. "members": "string",
  7581. "assignees": "string",
  7582. "title": "string",
  7583. "description": "string",
  7584. "swimlaneId": "string"
  7585. }'</span>;
  7586. <span class="hljs-keyword">const</span> headers = {
  7587. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  7588. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7589. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7590. };
  7591. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7592. {
  7593. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  7594. <span class="hljs-attr">body</span>: inputBody,
  7595. <span class="hljs-attr">headers</span>: headers
  7596. })
  7597. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7598. <span class="hljs-keyword">return</span> res.json();
  7599. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7600. <span class="hljs-built_in">console</span>.log(body);
  7601. });
  7602. </code></pre>
  7603. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7604. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7605. headers = {
  7606. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  7607. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7608. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7609. }
  7610. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>,
  7611. <span class="hljs-symbol">params:</span> {
  7612. }, <span class="hljs-symbol">headers:</span> headers
  7613. p JSON.parse(result)
  7614. </code></pre>
  7615. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7616. headers = {
  7617. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  7618. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7619. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7620. }
  7621. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards'</span>, params={
  7622. }, headers = headers)
  7623. <span class="hljs-keyword">print</span> r.json()
  7624. </code></pre>
  7625. <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>);
  7626. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7627. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  7628. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7629. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7630. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7631. String inputLine;
  7632. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7633. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7634. response.append(inputLine);
  7635. }
  7636. in.close();
  7637. System.out.println(response.toString());
  7638. </code></pre>
  7639. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7640. <span class="hljs-keyword">import</span> (
  7641. <span class="hljs-string">"bytes"</span>
  7642. <span class="hljs-string">"net/http"</span>
  7643. )
  7644. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7645. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7646. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  7647. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7648. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7649. }
  7650. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7651. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards"</span>, data)
  7652. req.Header = headers
  7653. client := &amp;http.Client{}
  7654. resp, err := client.Do(req)
  7655. <span class="hljs-comment">// ...</span>
  7656. }
  7657. </code></pre>
  7658. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7659. <p><em>Create a new Card</em></p>
  7660. <blockquote>
  7661. <p>Body parameter</p>
  7662. </blockquote>
  7663. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7664. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7665. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7666. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7667. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7668. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7669. </code></pre>
  7670. <h3 id="new_card-parameters">Parameters</h3>
  7671. <table>
  7672. <thead>
  7673. <tr>
  7674. <th>Name</th>
  7675. <th>In</th>
  7676. <th>Type</th>
  7677. <th>Required</th>
  7678. <th>Description</th>
  7679. </tr>
  7680. </thead>
  7681. <tbody>
  7682. <tr>
  7683. <td>board</td>
  7684. <td>path</td>
  7685. <td>string</td>
  7686. <td>true</td>
  7687. <td>the board ID of the new card</td>
  7688. </tr>
  7689. <tr>
  7690. <td>list</td>
  7691. <td>path</td>
  7692. <td>string</td>
  7693. <td>true</td>
  7694. <td>the list ID of the new card</td>
  7695. </tr>
  7696. <tr>
  7697. <td>body</td>
  7698. <td>body</td>
  7699. <td>object</td>
  7700. <td>false</td>
  7701. <td>none</td>
  7702. </tr>
  7703. <tr>
  7704. <td>» authorId</td>
  7705. <td>body</td>
  7706. <td>string</td>
  7707. <td>true</td>
  7708. <td>the authorId value</td>
  7709. </tr>
  7710. <tr>
  7711. <td>» members</td>
  7712. <td>body</td>
  7713. <td>string</td>
  7714. <td>false</td>
  7715. <td>the member IDs list of the new card</td>
  7716. </tr>
  7717. <tr>
  7718. <td>» assignees</td>
  7719. <td>body</td>
  7720. <td>string</td>
  7721. <td>false</td>
  7722. <td>the assignee IDs list of the new card</td>
  7723. </tr>
  7724. <tr>
  7725. <td>» title</td>
  7726. <td>body</td>
  7727. <td>string</td>
  7728. <td>true</td>
  7729. <td>the title of the new card</td>
  7730. </tr>
  7731. <tr>
  7732. <td>» description</td>
  7733. <td>body</td>
  7734. <td>string</td>
  7735. <td>true</td>
  7736. <td>the description of the new card</td>
  7737. </tr>
  7738. <tr>
  7739. <td>» swimlaneId</td>
  7740. <td>body</td>
  7741. <td>string</td>
  7742. <td>true</td>
  7743. <td>the swimlane ID of the new card</td>
  7744. </tr>
  7745. </tbody>
  7746. </table>
  7747. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7748. <p><strong>board</strong>: the board ID of the new card</p>
  7749. <p><strong>list</strong>: the list ID of the new card</p>
  7750. <blockquote>
  7751. <p>Example responses</p>
  7752. </blockquote>
  7753. <blockquote>
  7754. <p>200 Response</p>
  7755. </blockquote>
  7756. <pre class="highlight tab tab-json"><code>{
  7757. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  7758. }
  7759. </code></pre>
  7760. <h3 id="new_card-responses">Responses</h3>
  7761. <table>
  7762. <thead>
  7763. <tr>
  7764. <th>Status</th>
  7765. <th>Meaning</th>
  7766. <th>Description</th>
  7767. <th>Schema</th>
  7768. </tr>
  7769. </thead>
  7770. <tbody>
  7771. <tr>
  7772. <td>200</td>
  7773. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7774. <td>200 response</td>
  7775. <td>Inline</td>
  7776. </tr>
  7777. </tbody>
  7778. </table>
  7779. <h3 id="new_card-responseschema">Response Schema</h3>
  7780. <p>Status Code <strong>200</strong></p>
  7781. <table>
  7782. <thead>
  7783. <tr>
  7784. <th>Name</th>
  7785. <th>Type</th>
  7786. <th>Required</th>
  7787. <th>Restrictions</th>
  7788. <th>Description</th>
  7789. </tr>
  7790. </thead>
  7791. <tbody>
  7792. <tr>
  7793. <td>» _id</td>
  7794. <td>string</td>
  7795. <td>false</td>
  7796. <td>none</td>
  7797. <td>none</td>
  7798. </tr>
  7799. </tbody>
  7800. </table>
  7801. <aside class="warning">
  7802. To perform this operation, you must be authenticated by means of one of the following methods:
  7803. UserSecurity
  7804. </aside>
  7805. <h2 id="get_card">get_card</h2>
  7806. <p><a id="opIdget_card"></a></p>
  7807. <blockquote>
  7808. <p>Code samples</p>
  7809. </blockquote>
  7810. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7811. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7812. -H <span class="hljs-string">'Accept: application/json'</span> \
  7813. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  7814. </code></pre>
  7815. <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
  7816. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  7817. <span class="undefined"></span></span></code></pre>
  7818. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  7819. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7820. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7821. };
  7822. $.ajax({
  7823. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7824. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  7825. <span class="hljs-attr">headers</span>: headers,
  7826. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  7827. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  7828. }
  7829. })
  7830. </code></pre>
  7831. <pre class="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>);
  7832. <span class="hljs-keyword">const</span> headers = {
  7833. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  7834. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  7835. };
  7836. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7837. {
  7838. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  7839. <span class="hljs-attr">headers</span>: headers
  7840. })
  7841. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7842. <span class="hljs-keyword">return</span> res.json();
  7843. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7844. <span class="hljs-built_in">console</span>.log(body);
  7845. });
  7846. </code></pre>
  7847. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  7848. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  7849. headers = {
  7850. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  7851. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  7852. }
  7853. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  7854. <span class="hljs-symbol">params:</span> {
  7855. }, <span class="hljs-symbol">headers:</span> headers
  7856. p JSON.parse(result)
  7857. </code></pre>
  7858. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7859. headers = {
  7860. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  7861. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  7862. }
  7863. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  7864. }, headers = headers)
  7865. <span class="hljs-keyword">print</span> r.json()
  7866. </code></pre>
  7867. <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>);
  7868. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7869. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  7870. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7871. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7872. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7873. String inputLine;
  7874. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7875. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7876. response.append(inputLine);
  7877. }
  7878. in.close();
  7879. System.out.println(response.toString());
  7880. </code></pre>
  7881. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7882. <span class="hljs-keyword">import</span> (
  7883. <span class="hljs-string">"bytes"</span>
  7884. <span class="hljs-string">"net/http"</span>
  7885. )
  7886. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7887. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7888. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  7889. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  7890. }
  7891. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7892. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  7893. req.Header = headers
  7894. client := &amp;http.Client{}
  7895. resp, err := client.Do(req)
  7896. <span class="hljs-comment">// ...</span>
  7897. }
  7898. </code></pre>
  7899. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7900. <p><em>Get a Card</em></p>
  7901. <h3 id="get_card-parameters">Parameters</h3>
  7902. <table>
  7903. <thead>
  7904. <tr>
  7905. <th>Name</th>
  7906. <th>In</th>
  7907. <th>Type</th>
  7908. <th>Required</th>
  7909. <th>Description</th>
  7910. </tr>
  7911. </thead>
  7912. <tbody>
  7913. <tr>
  7914. <td>board</td>
  7915. <td>path</td>
  7916. <td>string</td>
  7917. <td>true</td>
  7918. <td>the board ID</td>
  7919. </tr>
  7920. <tr>
  7921. <td>list</td>
  7922. <td>path</td>
  7923. <td>string</td>
  7924. <td>true</td>
  7925. <td>the list ID of the card</td>
  7926. </tr>
  7927. <tr>
  7928. <td>card</td>
  7929. <td>path</td>
  7930. <td>string</td>
  7931. <td>true</td>
  7932. <td>the card ID</td>
  7933. </tr>
  7934. </tbody>
  7935. </table>
  7936. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  7937. <p><strong>board</strong>: the board ID</p>
  7938. <p><strong>list</strong>: the list ID of the card</p>
  7939. <p><strong>card</strong>: the card ID</p>
  7940. <blockquote>
  7941. <p>Example responses</p>
  7942. </blockquote>
  7943. <blockquote>
  7944. <p>200 Response</p>
  7945. </blockquote>
  7946. <pre class="highlight tab tab-json"><code>{
  7947. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  7948. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  7949. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  7950. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  7951. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  7952. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  7953. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  7954. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  7955. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  7956. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  7957. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  7958. <span class="hljs-attr">"customFields"</span>: [
  7959. {}
  7960. ],
  7961. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  7962. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  7963. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  7964. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  7965. <span class="hljs-attr">"labelIds"</span>: [
  7966. <span class="hljs-string">"string"</span>
  7967. ],
  7968. <span class="hljs-attr">"members"</span>: [
  7969. <span class="hljs-string">"string"</span>
  7970. ],
  7971. <span class="hljs-attr">"assignees"</span>: [
  7972. <span class="hljs-string">"string"</span>
  7973. ],
  7974. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  7975. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  7976. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  7977. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  7978. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  7979. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  7980. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  7981. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  7982. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  7983. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  7984. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  7985. <span class="hljs-attr">"vote"</span>: {
  7986. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  7987. <span class="hljs-attr">"positive"</span>: [
  7988. <span class="hljs-string">"string"</span>
  7989. ],
  7990. <span class="hljs-attr">"negative"</span>: [
  7991. <span class="hljs-string">"string"</span>
  7992. ],
  7993. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  7994. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  7995. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  7996. },
  7997. <span class="hljs-attr">"poker"</span>: {
  7998. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  7999. <span class="hljs-attr">"one"</span>: [
  8000. <span class="hljs-string">"string"</span>
  8001. ],
  8002. <span class="hljs-attr">"two"</span>: [
  8003. <span class="hljs-string">"string"</span>
  8004. ],
  8005. <span class="hljs-attr">"three"</span>: [
  8006. <span class="hljs-string">"string"</span>
  8007. ],
  8008. <span class="hljs-attr">"five"</span>: [
  8009. <span class="hljs-string">"string"</span>
  8010. ],
  8011. <span class="hljs-attr">"eight"</span>: [
  8012. <span class="hljs-string">"string"</span>
  8013. ],
  8014. <span class="hljs-attr">"thirteen"</span>: [
  8015. <span class="hljs-string">"string"</span>
  8016. ],
  8017. <span class="hljs-attr">"twenty"</span>: [
  8018. <span class="hljs-string">"string"</span>
  8019. ],
  8020. <span class="hljs-attr">"forty"</span>: [
  8021. <span class="hljs-string">"string"</span>
  8022. ],
  8023. <span class="hljs-attr">"oneHundred"</span>: [
  8024. <span class="hljs-string">"string"</span>
  8025. ],
  8026. <span class="hljs-attr">"unsure"</span>: [
  8027. <span class="hljs-string">"string"</span>
  8028. ],
  8029. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  8030. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  8031. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  8032. },
  8033. <span class="hljs-attr">"targetId_gantt"</span>: [
  8034. <span class="hljs-string">"string"</span>
  8035. ],
  8036. <span class="hljs-attr">"linkType_gantt"</span>: [
  8037. <span class="hljs-number">0</span>
  8038. ],
  8039. <span class="hljs-attr">"linkId_gantt"</span>: [
  8040. <span class="hljs-string">"string"</span>
  8041. ],
  8042. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  8043. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  8044. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>
  8045. }
  8046. </code></pre>
  8047. <h3 id="get_card-responses">Responses</h3>
  8048. <table>
  8049. <thead>
  8050. <tr>
  8051. <th>Status</th>
  8052. <th>Meaning</th>
  8053. <th>Description</th>
  8054. <th>Schema</th>
  8055. </tr>
  8056. </thead>
  8057. <tbody>
  8058. <tr>
  8059. <td>200</td>
  8060. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8061. <td>200 response</td>
  8062. <td><a href="#schemacards">Cards</a></td>
  8063. </tr>
  8064. </tbody>
  8065. </table>
  8066. <aside class="warning">
  8067. To perform this operation, you must be authenticated by means of one of the following methods:
  8068. UserSecurity
  8069. </aside>
  8070. <h2 id="edit_card">edit_card</h2>
  8071. <p><a id="opIdedit_card"></a></p>
  8072. <blockquote>
  8073. <p>Code samples</p>
  8074. </blockquote>
  8075. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8076. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8077. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8078. -H <span class="hljs-string">'Accept: application/json'</span> \
  8079. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8080. </code></pre>
  8081. <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
  8082. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8083. Accept: application/json
  8084. </span></code></pre>
  8085. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8086. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8087. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8088. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8089. };
  8090. $.ajax({
  8091. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8092. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  8093. <span class="hljs-attr">headers</span>: headers,
  8094. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8095. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8096. }
  8097. })
  8098. </code></pre>
  8099. <pre class="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>);
  8100. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8101. "newBoardId": "string",
  8102. "newSwimlaneId": "string",
  8103. "newListId": "string",
  8104. "title": "string",
  8105. "sort": "string",
  8106. "parentId": "string",
  8107. "description": "string",
  8108. "color": "string",
  8109. "vote": {},
  8110. "poker": {},
  8111. "labelIds": "string",
  8112. "requestedBy": "string",
  8113. "assignedBy": "string",
  8114. "receivedAt": "string",
  8115. "startAt": "string",
  8116. "dueAt": "string",
  8117. "endAt": "string",
  8118. "spentTime": "string",
  8119. "isOverTime": true,
  8120. "customFields": "string",
  8121. "members": "string",
  8122. "assignees": "string",
  8123. "swimlaneId": "string",
  8124. "listId": "string",
  8125. "authorId": "string",
  8126. "archive": "string"
  8127. }'</span>;
  8128. <span class="hljs-keyword">const</span> headers = {
  8129. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8130. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8131. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8132. };
  8133. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8134. {
  8135. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  8136. <span class="hljs-attr">body</span>: inputBody,
  8137. <span class="hljs-attr">headers</span>: headers
  8138. })
  8139. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8140. <span class="hljs-keyword">return</span> res.json();
  8141. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8142. <span class="hljs-built_in">console</span>.log(body);
  8143. });
  8144. </code></pre>
  8145. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8146. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8147. headers = {
  8148. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8149. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8150. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8151. }
  8152. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8153. <span class="hljs-symbol">params:</span> {
  8154. }, <span class="hljs-symbol">headers:</span> headers
  8155. p JSON.parse(result)
  8156. </code></pre>
  8157. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8158. headers = {
  8159. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8160. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8161. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8162. }
  8163. r = requests.put(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  8164. }, headers = headers)
  8165. <span class="hljs-keyword">print</span> r.json()
  8166. </code></pre>
  8167. <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>);
  8168. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8169. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  8170. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8171. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8172. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8173. String inputLine;
  8174. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8175. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8176. response.append(inputLine);
  8177. }
  8178. in.close();
  8179. System.out.println(response.toString());
  8180. </code></pre>
  8181. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8182. <span class="hljs-keyword">import</span> (
  8183. <span class="hljs-string">"bytes"</span>
  8184. <span class="hljs-string">"net/http"</span>
  8185. )
  8186. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8187. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8188. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8189. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8190. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8191. }
  8192. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8193. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  8194. req.Header = headers
  8195. client := &amp;http.Client{}
  8196. resp, err := client.Do(req)
  8197. <span class="hljs-comment">// ...</span>
  8198. }
  8199. </code></pre>
  8200. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8201. <p><em>Edit Fields in a Card</em></p>
  8202. <p>Edit a card</p>
  8203. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8204. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8205. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8206. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8207. <code>indigo</code>:</p>
  8208. <img src="/card-colors.png" alt="Wekan card colors" />
  8209. <p>Note: setting the color to white has the same effect than removing it.</p>
  8210. <blockquote>
  8211. <p>Body parameter</p>
  8212. </blockquote>
  8213. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">newBoardId:</span> <span class="hljs-string">string</span>
  8214. <span class="hljs-attr">newSwimlaneId:</span> <span class="hljs-string">string</span>
  8215. <span class="hljs-attr">newListId:</span> <span class="hljs-string">string</span>
  8216. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8217. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8218. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8219. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8220. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8221. <span class="hljs-attr">vote:</span> <span class="hljs-string">{}</span>
  8222. <span class="hljs-attr">poker:</span> <span class="hljs-string">{}</span>
  8223. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8224. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8225. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8226. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8227. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8228. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8229. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8230. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8231. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8232. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8233. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8234. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8235. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8236. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8237. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8238. <span class="hljs-attr">archive:</span> <span class="hljs-string">string</span>
  8239. </code></pre>
  8240. <h3 id="edit_card-parameters">Parameters</h3>
  8241. <table>
  8242. <thead>
  8243. <tr>
  8244. <th>Name</th>
  8245. <th>In</th>
  8246. <th>Type</th>
  8247. <th>Required</th>
  8248. <th>Description</th>
  8249. </tr>
  8250. </thead>
  8251. <tbody>
  8252. <tr>
  8253. <td>board</td>
  8254. <td>path</td>
  8255. <td>string</td>
  8256. <td>true</td>
  8257. <td>the board ID of the card</td>
  8258. </tr>
  8259. <tr>
  8260. <td>list</td>
  8261. <td>path</td>
  8262. <td>string</td>
  8263. <td>true</td>
  8264. <td>the list ID of the card</td>
  8265. </tr>
  8266. <tr>
  8267. <td>card</td>
  8268. <td>path</td>
  8269. <td>string</td>
  8270. <td>true</td>
  8271. <td>the ID of the card</td>
  8272. </tr>
  8273. <tr>
  8274. <td>body</td>
  8275. <td>body</td>
  8276. <td>object</td>
  8277. <td>false</td>
  8278. <td>none</td>
  8279. </tr>
  8280. <tr>
  8281. <td>» newBoardId</td>
  8282. <td>body</td>
  8283. <td>string</td>
  8284. <td>true</td>
  8285. <td>the newBoardId value</td>
  8286. </tr>
  8287. <tr>
  8288. <td>» newSwimlaneId</td>
  8289. <td>body</td>
  8290. <td>string</td>
  8291. <td>true</td>
  8292. <td>the newSwimlaneId value</td>
  8293. </tr>
  8294. <tr>
  8295. <td>» newListId</td>
  8296. <td>body</td>
  8297. <td>string</td>
  8298. <td>true</td>
  8299. <td>the newListId value</td>
  8300. </tr>
  8301. <tr>
  8302. <td>» title</td>
  8303. <td>body</td>
  8304. <td>string</td>
  8305. <td>false</td>
  8306. <td>the new title of the card</td>
  8307. </tr>
  8308. <tr>
  8309. <td>» sort</td>
  8310. <td>body</td>
  8311. <td>string</td>
  8312. <td>false</td>
  8313. <td>the new sort value of the card</td>
  8314. </tr>
  8315. <tr>
  8316. <td>» parentId</td>
  8317. <td>body</td>
  8318. <td>string</td>
  8319. <td>false</td>
  8320. <td>change the parent of the card</td>
  8321. </tr>
  8322. <tr>
  8323. <td>» description</td>
  8324. <td>body</td>
  8325. <td>string</td>
  8326. <td>false</td>
  8327. <td>the new description of the card</td>
  8328. </tr>
  8329. <tr>
  8330. <td>» color</td>
  8331. <td>body</td>
  8332. <td>string</td>
  8333. <td>false</td>
  8334. <td>the new color of the card</td>
  8335. </tr>
  8336. <tr>
  8337. <td>» vote</td>
  8338. <td>body</td>
  8339. <td>object</td>
  8340. <td>false</td>
  8341. <td>the vote object</td>
  8342. </tr>
  8343. <tr>
  8344. <td>» poker</td>
  8345. <td>body</td>
  8346. <td>object</td>
  8347. <td>false</td>
  8348. <td>the poker object</td>
  8349. </tr>
  8350. <tr>
  8351. <td>» labelIds</td>
  8352. <td>body</td>
  8353. <td>string</td>
  8354. <td>false</td>
  8355. <td>the new list of label IDs attached to the card</td>
  8356. </tr>
  8357. <tr>
  8358. <td>» requestedBy</td>
  8359. <td>body</td>
  8360. <td>string</td>
  8361. <td>false</td>
  8362. <td>the new requestedBy field of the card</td>
  8363. </tr>
  8364. <tr>
  8365. <td>» assignedBy</td>
  8366. <td>body</td>
  8367. <td>string</td>
  8368. <td>false</td>
  8369. <td>the new assignedBy field of the card</td>
  8370. </tr>
  8371. <tr>
  8372. <td>» receivedAt</td>
  8373. <td>body</td>
  8374. <td>string</td>
  8375. <td>false</td>
  8376. <td>the new receivedAt field of the card</td>
  8377. </tr>
  8378. <tr>
  8379. <td>» startAt</td>
  8380. <td>body</td>
  8381. <td>string</td>
  8382. <td>false</td>
  8383. <td>the new startAt field of the card</td>
  8384. </tr>
  8385. <tr>
  8386. <td>» dueAt</td>
  8387. <td>body</td>
  8388. <td>string</td>
  8389. <td>false</td>
  8390. <td>the new dueAt field of the card</td>
  8391. </tr>
  8392. <tr>
  8393. <td>» endAt</td>
  8394. <td>body</td>
  8395. <td>string</td>
  8396. <td>false</td>
  8397. <td>the new endAt field of the card</td>
  8398. </tr>
  8399. <tr>
  8400. <td>» spentTime</td>
  8401. <td>body</td>
  8402. <td>string</td>
  8403. <td>false</td>
  8404. <td>the new spentTime field of the card</td>
  8405. </tr>
  8406. <tr>
  8407. <td>» isOverTime</td>
  8408. <td>body</td>
  8409. <td>boolean</td>
  8410. <td>false</td>
  8411. <td>the new isOverTime field of the card</td>
  8412. </tr>
  8413. <tr>
  8414. <td>» customFields</td>
  8415. <td>body</td>
  8416. <td>string</td>
  8417. <td>false</td>
  8418. <td>the new customFields value of the card</td>
  8419. </tr>
  8420. <tr>
  8421. <td>» members</td>
  8422. <td>body</td>
  8423. <td>string</td>
  8424. <td>false</td>
  8425. <td>the new list of member IDs attached to the card</td>
  8426. </tr>
  8427. <tr>
  8428. <td>» assignees</td>
  8429. <td>body</td>
  8430. <td>string</td>
  8431. <td>false</td>
  8432. <td>the array of maximum one ID of assignee attached to the card</td>
  8433. </tr>
  8434. <tr>
  8435. <td>» swimlaneId</td>
  8436. <td>body</td>
  8437. <td>string</td>
  8438. <td>false</td>
  8439. <td>the new swimlane ID of the card</td>
  8440. </tr>
  8441. <tr>
  8442. <td>» listId</td>
  8443. <td>body</td>
  8444. <td>string</td>
  8445. <td>false</td>
  8446. <td>the new list ID of the card (move operation)</td>
  8447. </tr>
  8448. <tr>
  8449. <td>» authorId</td>
  8450. <td>body</td>
  8451. <td>string</td>
  8452. <td>false</td>
  8453. <td>change the owner of the card</td>
  8454. </tr>
  8455. <tr>
  8456. <td>» archive</td>
  8457. <td>body</td>
  8458. <td>string</td>
  8459. <td>true</td>
  8460. <td>the archive value</td>
  8461. </tr>
  8462. </tbody>
  8463. </table>
  8464. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8465. <p><strong>board</strong>: the board ID of the card</p>
  8466. <p><strong>list</strong>: the list ID of the card</p>
  8467. <p><strong>card</strong>: the ID of the card</p>
  8468. <blockquote>
  8469. <p>Example responses</p>
  8470. </blockquote>
  8471. <blockquote>
  8472. <p>200 Response</p>
  8473. </blockquote>
  8474. <pre class="highlight tab tab-json"><code>{
  8475. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8476. }
  8477. </code></pre>
  8478. <h3 id="edit_card-responses">Responses</h3>
  8479. <table>
  8480. <thead>
  8481. <tr>
  8482. <th>Status</th>
  8483. <th>Meaning</th>
  8484. <th>Description</th>
  8485. <th>Schema</th>
  8486. </tr>
  8487. </thead>
  8488. <tbody>
  8489. <tr>
  8490. <td>200</td>
  8491. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8492. <td>200 response</td>
  8493. <td>Inline</td>
  8494. </tr>
  8495. </tbody>
  8496. </table>
  8497. <h3 id="edit_card-responseschema">Response Schema</h3>
  8498. <p>Status Code <strong>200</strong></p>
  8499. <table>
  8500. <thead>
  8501. <tr>
  8502. <th>Name</th>
  8503. <th>Type</th>
  8504. <th>Required</th>
  8505. <th>Restrictions</th>
  8506. <th>Description</th>
  8507. </tr>
  8508. </thead>
  8509. <tbody>
  8510. <tr>
  8511. <td>» _id</td>
  8512. <td>string</td>
  8513. <td>false</td>
  8514. <td>none</td>
  8515. <td>none</td>
  8516. </tr>
  8517. </tbody>
  8518. </table>
  8519. <aside class="warning">
  8520. To perform this operation, you must be authenticated by means of one of the following methods:
  8521. UserSecurity
  8522. </aside>
  8523. <h2 id="delete_card">delete_card</h2>
  8524. <p><a id="opIddelete_card"></a></p>
  8525. <blockquote>
  8526. <p>Code samples</p>
  8527. </blockquote>
  8528. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8529. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8530. -H <span class="hljs-string">'Accept: application/json'</span> \
  8531. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8532. </code></pre>
  8533. <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
  8534. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8535. <span class="undefined"></span></span></code></pre>
  8536. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8537. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8538. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8539. };
  8540. $.ajax({
  8541. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8542. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  8543. <span class="hljs-attr">headers</span>: headers,
  8544. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8545. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8546. }
  8547. })
  8548. </code></pre>
  8549. <pre class="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>);
  8550. <span class="hljs-keyword">const</span> headers = {
  8551. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8552. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8553. };
  8554. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8555. {
  8556. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  8557. <span class="hljs-attr">headers</span>: headers
  8558. })
  8559. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8560. <span class="hljs-keyword">return</span> res.json();
  8561. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8562. <span class="hljs-built_in">console</span>.log(body);
  8563. });
  8564. </code></pre>
  8565. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8566. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8567. headers = {
  8568. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8569. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8570. }
  8571. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>,
  8572. <span class="hljs-symbol">params:</span> {
  8573. }, <span class="hljs-symbol">headers:</span> headers
  8574. p JSON.parse(result)
  8575. </code></pre>
  8576. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8577. headers = {
  8578. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8579. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8580. }
  8581. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}'</span>, params={
  8582. }, headers = headers)
  8583. <span class="hljs-keyword">print</span> r.json()
  8584. </code></pre>
  8585. <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>);
  8586. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8587. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  8588. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8589. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8590. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8591. String inputLine;
  8592. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8593. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8594. response.append(inputLine);
  8595. }
  8596. in.close();
  8597. System.out.println(response.toString());
  8598. </code></pre>
  8599. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8600. <span class="hljs-keyword">import</span> (
  8601. <span class="hljs-string">"bytes"</span>
  8602. <span class="hljs-string">"net/http"</span>
  8603. )
  8604. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8605. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8606. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8607. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8608. }
  8609. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8610. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards/{card}"</span>, data)
  8611. req.Header = headers
  8612. client := &amp;http.Client{}
  8613. resp, err := client.Do(req)
  8614. <span class="hljs-comment">// ...</span>
  8615. }
  8616. </code></pre>
  8617. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8618. <p><em>Delete a card from a board</em></p>
  8619. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8620. is not put in the recycle bin.</p>
  8621. <h3 id="delete_card-parameters">Parameters</h3>
  8622. <table>
  8623. <thead>
  8624. <tr>
  8625. <th>Name</th>
  8626. <th>In</th>
  8627. <th>Type</th>
  8628. <th>Required</th>
  8629. <th>Description</th>
  8630. </tr>
  8631. </thead>
  8632. <tbody>
  8633. <tr>
  8634. <td>board</td>
  8635. <td>path</td>
  8636. <td>string</td>
  8637. <td>true</td>
  8638. <td>the board ID of the card</td>
  8639. </tr>
  8640. <tr>
  8641. <td>list</td>
  8642. <td>path</td>
  8643. <td>string</td>
  8644. <td>true</td>
  8645. <td>the list ID of the card</td>
  8646. </tr>
  8647. <tr>
  8648. <td>card</td>
  8649. <td>path</td>
  8650. <td>string</td>
  8651. <td>true</td>
  8652. <td>the ID of the card</td>
  8653. </tr>
  8654. </tbody>
  8655. </table>
  8656. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8657. <p><strong>board</strong>: the board ID of the card</p>
  8658. <p><strong>list</strong>: the list ID of the card</p>
  8659. <p><strong>card</strong>: the ID of the card</p>
  8660. <blockquote>
  8661. <p>Example responses</p>
  8662. </blockquote>
  8663. <blockquote>
  8664. <p>200 Response</p>
  8665. </blockquote>
  8666. <pre class="highlight tab tab-json"><code>{
  8667. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  8668. }
  8669. </code></pre>
  8670. <h3 id="delete_card-responses">Responses</h3>
  8671. <table>
  8672. <thead>
  8673. <tr>
  8674. <th>Status</th>
  8675. <th>Meaning</th>
  8676. <th>Description</th>
  8677. <th>Schema</th>
  8678. </tr>
  8679. </thead>
  8680. <tbody>
  8681. <tr>
  8682. <td>200</td>
  8683. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8684. <td>200 response</td>
  8685. <td>Inline</td>
  8686. </tr>
  8687. </tbody>
  8688. </table>
  8689. <h3 id="delete_card-responseschema">Response Schema</h3>
  8690. <p>Status Code <strong>200</strong></p>
  8691. <table>
  8692. <thead>
  8693. <tr>
  8694. <th>Name</th>
  8695. <th>Type</th>
  8696. <th>Required</th>
  8697. <th>Restrictions</th>
  8698. <th>Description</th>
  8699. </tr>
  8700. </thead>
  8701. <tbody>
  8702. <tr>
  8703. <td>» _id</td>
  8704. <td>string</td>
  8705. <td>false</td>
  8706. <td>none</td>
  8707. <td>none</td>
  8708. </tr>
  8709. </tbody>
  8710. </table>
  8711. <aside class="warning">
  8712. To perform this operation, you must be authenticated by means of one of the following methods:
  8713. UserSecurity
  8714. </aside>
  8715. <h2 id="edit_card_custom_field">edit_card_custom_field</h2>
  8716. <p><a id="opIdedit_card_custom_field"></a></p>
  8717. <blockquote>
  8718. <p>Code samples</p>
  8719. </blockquote>
  8720. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8721. curl -X POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField} \
  8722. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  8723. -H <span class="hljs-string">'Accept: application/json'</span> \
  8724. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8725. </code></pre>
  8726. <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
  8727. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8728. Accept: application/json
  8729. </span></code></pre>
  8730. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8731. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8732. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8733. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8734. };
  8735. $.ajax({
  8736. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  8737. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  8738. <span class="hljs-attr">headers</span>: headers,
  8739. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8740. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8741. }
  8742. })
  8743. </code></pre>
  8744. <pre class="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>);
  8745. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  8746. "value": "string"
  8747. }'</span>;
  8748. <span class="hljs-keyword">const</span> headers = {
  8749. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  8750. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8751. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8752. };
  8753. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  8754. {
  8755. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  8756. <span class="hljs-attr">body</span>: inputBody,
  8757. <span class="hljs-attr">headers</span>: headers
  8758. })
  8759. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8760. <span class="hljs-keyword">return</span> res.json();
  8761. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8762. <span class="hljs-built_in">console</span>.log(body);
  8763. });
  8764. </code></pre>
  8765. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  8766. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  8767. headers = {
  8768. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  8769. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  8770. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  8771. }
  8772. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>,
  8773. <span class="hljs-symbol">params:</span> {
  8774. }, <span class="hljs-symbol">headers:</span> headers
  8775. p JSON.parse(result)
  8776. </code></pre>
  8777. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8778. headers = {
  8779. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  8780. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  8781. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  8782. }
  8783. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}'</span>, params={
  8784. }, headers = headers)
  8785. <span class="hljs-keyword">print</span> r.json()
  8786. </code></pre>
  8787. <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>);
  8788. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8789. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  8790. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8791. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8792. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8793. String inputLine;
  8794. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8795. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8796. response.append(inputLine);
  8797. }
  8798. in.close();
  8799. System.out.println(response.toString());
  8800. </code></pre>
  8801. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8802. <span class="hljs-keyword">import</span> (
  8803. <span class="hljs-string">"bytes"</span>
  8804. <span class="hljs-string">"net/http"</span>
  8805. )
  8806. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8807. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8808. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  8809. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  8810. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  8811. }
  8812. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8813. 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)
  8814. req.Header = headers
  8815. client := &amp;http.Client{}
  8816. resp, err := client.Do(req)
  8817. <span class="hljs-comment">// ...</span>
  8818. }
  8819. </code></pre>
  8820. <p><code>POST /api/boards/{board}/lists/{list}/cards/{card}/customFields/{customField}</code></p>
  8821. <p><em>Edit Custom Field in a Card</em></p>
  8822. <p>Edit a custom field value in a card</p>
  8823. <blockquote>
  8824. <p>Body parameter</p>
  8825. </blockquote>
  8826. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">value:</span> <span class="hljs-string">string</span>
  8827. </code></pre>
  8828. <h3 id="edit_card_custom_field-parameters">Parameters</h3>
  8829. <table>
  8830. <thead>
  8831. <tr>
  8832. <th>Name</th>
  8833. <th>In</th>
  8834. <th>Type</th>
  8835. <th>Required</th>
  8836. <th>Description</th>
  8837. </tr>
  8838. </thead>
  8839. <tbody>
  8840. <tr>
  8841. <td>board</td>
  8842. <td>path</td>
  8843. <td>string</td>
  8844. <td>true</td>
  8845. <td>the board ID of the card</td>
  8846. </tr>
  8847. <tr>
  8848. <td>list</td>
  8849. <td>path</td>
  8850. <td>string</td>
  8851. <td>true</td>
  8852. <td>the list ID of the card</td>
  8853. </tr>
  8854. <tr>
  8855. <td>card</td>
  8856. <td>path</td>
  8857. <td>string</td>
  8858. <td>true</td>
  8859. <td>the ID of the card</td>
  8860. </tr>
  8861. <tr>
  8862. <td>customField</td>
  8863. <td>path</td>
  8864. <td>string</td>
  8865. <td>true</td>
  8866. <td>the ID of the custom field</td>
  8867. </tr>
  8868. <tr>
  8869. <td>body</td>
  8870. <td>body</td>
  8871. <td>object</td>
  8872. <td>false</td>
  8873. <td>none</td>
  8874. </tr>
  8875. <tr>
  8876. <td>» value</td>
  8877. <td>body</td>
  8878. <td>string</td>
  8879. <td>true</td>
  8880. <td>the new custom field value</td>
  8881. </tr>
  8882. </tbody>
  8883. </table>
  8884. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  8885. <p><strong>board</strong>: the board ID of the card</p>
  8886. <p><strong>list</strong>: the list ID of the card</p>
  8887. <p><strong>card</strong>: the ID of the card</p>
  8888. <p><strong>customField</strong>: the ID of the custom field</p>
  8889. <blockquote>
  8890. <p>Example responses</p>
  8891. </blockquote>
  8892. <blockquote>
  8893. <p>200 Response</p>
  8894. </blockquote>
  8895. <pre class="highlight tab tab-json"><code>{
  8896. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  8897. <span class="hljs-attr">"customFields"</span>: [
  8898. {
  8899. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  8900. <span class="hljs-attr">"value"</span>: {}
  8901. }
  8902. ]
  8903. }
  8904. </code></pre>
  8905. <h3 id="edit_card_custom_field-responses">Responses</h3>
  8906. <table>
  8907. <thead>
  8908. <tr>
  8909. <th>Status</th>
  8910. <th>Meaning</th>
  8911. <th>Description</th>
  8912. <th>Schema</th>
  8913. </tr>
  8914. </thead>
  8915. <tbody>
  8916. <tr>
  8917. <td>200</td>
  8918. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8919. <td>200 response</td>
  8920. <td>Inline</td>
  8921. </tr>
  8922. </tbody>
  8923. </table>
  8924. <h3 id="edit_card_custom_field-responseschema">Response Schema</h3>
  8925. <p>Status Code <strong>200</strong></p>
  8926. <table>
  8927. <thead>
  8928. <tr>
  8929. <th>Name</th>
  8930. <th>Type</th>
  8931. <th>Required</th>
  8932. <th>Restrictions</th>
  8933. <th>Description</th>
  8934. </tr>
  8935. </thead>
  8936. <tbody>
  8937. <tr>
  8938. <td>» _id</td>
  8939. <td>string</td>
  8940. <td>false</td>
  8941. <td>none</td>
  8942. <td>none</td>
  8943. </tr>
  8944. <tr>
  8945. <td>» customFields</td>
  8946. <td>[object]</td>
  8947. <td>false</td>
  8948. <td>none</td>
  8949. <td>none</td>
  8950. </tr>
  8951. <tr>
  8952. <td>»» _id</td>
  8953. <td>string</td>
  8954. <td>false</td>
  8955. <td>none</td>
  8956. <td>none</td>
  8957. </tr>
  8958. <tr>
  8959. <td>»» value</td>
  8960. <td>object</td>
  8961. <td>false</td>
  8962. <td>none</td>
  8963. <td>none</td>
  8964. </tr>
  8965. </tbody>
  8966. </table>
  8967. <aside class="warning">
  8968. To perform this operation, you must be authenticated by means of one of the following methods:
  8969. UserSecurity
  8970. </aside>
  8971. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  8972. <p><a id="opIdget_list_cards_count"></a></p>
  8973. <blockquote>
  8974. <p>Code samples</p>
  8975. </blockquote>
  8976. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8977. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  8978. -H <span class="hljs-string">'Accept: application/json'</span> \
  8979. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  8980. </code></pre>
  8981. <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
  8982. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  8983. <span class="undefined"></span></span></code></pre>
  8984. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  8985. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  8986. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  8987. };
  8988. $.ajax({
  8989. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  8990. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  8991. <span class="hljs-attr">headers</span>: headers,
  8992. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  8993. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  8994. }
  8995. })
  8996. </code></pre>
  8997. <pre class="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>);
  8998. <span class="hljs-keyword">const</span> headers = {
  8999. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9000. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9001. };
  9002. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  9003. {
  9004. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9005. <span class="hljs-attr">headers</span>: headers
  9006. })
  9007. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9008. <span class="hljs-keyword">return</span> res.json();
  9009. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9010. <span class="hljs-built_in">console</span>.log(body);
  9011. });
  9012. </code></pre>
  9013. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9014. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9015. headers = {
  9016. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9017. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9018. }
  9019. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>,
  9020. <span class="hljs-symbol">params:</span> {
  9021. }, <span class="hljs-symbol">headers:</span> headers
  9022. p JSON.parse(result)
  9023. </code></pre>
  9024. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9025. headers = {
  9026. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9027. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9028. }
  9029. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}/cards_count'</span>, params={
  9030. }, headers = headers)
  9031. <span class="hljs-keyword">print</span> r.json()
  9032. </code></pre>
  9033. <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>);
  9034. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9035. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9036. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9037. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9038. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9039. String inputLine;
  9040. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9041. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9042. response.append(inputLine);
  9043. }
  9044. in.close();
  9045. System.out.println(response.toString());
  9046. </code></pre>
  9047. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9048. <span class="hljs-keyword">import</span> (
  9049. <span class="hljs-string">"bytes"</span>
  9050. <span class="hljs-string">"net/http"</span>
  9051. )
  9052. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9053. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9054. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9055. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9056. }
  9057. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9058. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}/cards_count"</span>, data)
  9059. req.Header = headers
  9060. client := &amp;http.Client{}
  9061. resp, err := client.Do(req)
  9062. <span class="hljs-comment">// ...</span>
  9063. }
  9064. </code></pre>
  9065. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  9066. <p><em>Get a cards count to a list</em></p>
  9067. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  9068. <table>
  9069. <thead>
  9070. <tr>
  9071. <th>Name</th>
  9072. <th>In</th>
  9073. <th>Type</th>
  9074. <th>Required</th>
  9075. <th>Description</th>
  9076. </tr>
  9077. </thead>
  9078. <tbody>
  9079. <tr>
  9080. <td>board</td>
  9081. <td>path</td>
  9082. <td>string</td>
  9083. <td>true</td>
  9084. <td>the board ID</td>
  9085. </tr>
  9086. <tr>
  9087. <td>list</td>
  9088. <td>path</td>
  9089. <td>string</td>
  9090. <td>true</td>
  9091. <td>the List ID</td>
  9092. </tr>
  9093. </tbody>
  9094. </table>
  9095. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9096. <p><strong>board</strong>: the board ID</p>
  9097. <p><strong>list</strong>: the List ID</p>
  9098. <blockquote>
  9099. <p>Example responses</p>
  9100. </blockquote>
  9101. <blockquote>
  9102. <p>200 Response</p>
  9103. </blockquote>
  9104. <pre class="highlight tab tab-json"><code>{
  9105. <span class="hljs-attr">"list_cards_count"</span>: <span class="hljs-number">0</span>
  9106. }
  9107. </code></pre>
  9108. <h3 id="get_list_cards_count-responses">Responses</h3>
  9109. <table>
  9110. <thead>
  9111. <tr>
  9112. <th>Status</th>
  9113. <th>Meaning</th>
  9114. <th>Description</th>
  9115. <th>Schema</th>
  9116. </tr>
  9117. </thead>
  9118. <tbody>
  9119. <tr>
  9120. <td>200</td>
  9121. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9122. <td>200 response</td>
  9123. <td>Inline</td>
  9124. </tr>
  9125. </tbody>
  9126. </table>
  9127. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  9128. <p>Status Code <strong>200</strong></p>
  9129. <table>
  9130. <thead>
  9131. <tr>
  9132. <th>Name</th>
  9133. <th>Type</th>
  9134. <th>Required</th>
  9135. <th>Restrictions</th>
  9136. <th>Description</th>
  9137. </tr>
  9138. </thead>
  9139. <tbody>
  9140. <tr>
  9141. <td>» list_cards_count</td>
  9142. <td>integer</td>
  9143. <td>false</td>
  9144. <td>none</td>
  9145. <td>none</td>
  9146. </tr>
  9147. </tbody>
  9148. </table>
  9149. <aside class="warning">
  9150. To perform this operation, you must be authenticated by means of one of the following methods:
  9151. UserSecurity
  9152. </aside>
  9153. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  9154. <p><a id="opIdget_swimlane_cards"></a></p>
  9155. <blockquote>
  9156. <p>Code samples</p>
  9157. </blockquote>
  9158. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9159. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  9160. -H <span class="hljs-string">'Accept: application/json'</span> \
  9161. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9162. </code></pre>
  9163. <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
  9164. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9165. <span class="undefined"></span></span></code></pre>
  9166. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9167. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9168. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9169. };
  9170. $.ajax({
  9171. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  9172. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9173. <span class="hljs-attr">headers</span>: headers,
  9174. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9175. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9176. }
  9177. })
  9178. </code></pre>
  9179. <pre class="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>);
  9180. <span class="hljs-keyword">const</span> headers = {
  9181. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9182. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9183. };
  9184. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  9185. {
  9186. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9187. <span class="hljs-attr">headers</span>: headers
  9188. })
  9189. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9190. <span class="hljs-keyword">return</span> res.json();
  9191. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9192. <span class="hljs-built_in">console</span>.log(body);
  9193. });
  9194. </code></pre>
  9195. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9196. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9197. headers = {
  9198. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9199. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9200. }
  9201. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>,
  9202. <span class="hljs-symbol">params:</span> {
  9203. }, <span class="hljs-symbol">headers:</span> headers
  9204. p JSON.parse(result)
  9205. </code></pre>
  9206. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9207. headers = {
  9208. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9209. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9210. }
  9211. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}/cards'</span>, params={
  9212. }, headers = headers)
  9213. <span class="hljs-keyword">print</span> r.json()
  9214. </code></pre>
  9215. <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>);
  9216. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9217. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9218. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9219. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9220. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9221. String inputLine;
  9222. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9223. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9224. response.append(inputLine);
  9225. }
  9226. in.close();
  9227. System.out.println(response.toString());
  9228. </code></pre>
  9229. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9230. <span class="hljs-keyword">import</span> (
  9231. <span class="hljs-string">"bytes"</span>
  9232. <span class="hljs-string">"net/http"</span>
  9233. )
  9234. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9235. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9236. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9237. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9238. }
  9239. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9240. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}/cards"</span>, data)
  9241. req.Header = headers
  9242. client := &amp;http.Client{}
  9243. resp, err := client.Do(req)
  9244. <span class="hljs-comment">// ...</span>
  9245. }
  9246. </code></pre>
  9247. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  9248. <p><em>get all cards attached to a swimlane</em></p>
  9249. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  9250. <table>
  9251. <thead>
  9252. <tr>
  9253. <th>Name</th>
  9254. <th>In</th>
  9255. <th>Type</th>
  9256. <th>Required</th>
  9257. <th>Description</th>
  9258. </tr>
  9259. </thead>
  9260. <tbody>
  9261. <tr>
  9262. <td>board</td>
  9263. <td>path</td>
  9264. <td>string</td>
  9265. <td>true</td>
  9266. <td>the board ID</td>
  9267. </tr>
  9268. <tr>
  9269. <td>swimlane</td>
  9270. <td>path</td>
  9271. <td>string</td>
  9272. <td>true</td>
  9273. <td>the swimlane ID</td>
  9274. </tr>
  9275. </tbody>
  9276. </table>
  9277. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9278. <p><strong>board</strong>: the board ID</p>
  9279. <p><strong>swimlane</strong>: the swimlane ID</p>
  9280. <blockquote>
  9281. <p>Example responses</p>
  9282. </blockquote>
  9283. <blockquote>
  9284. <p>200 Response</p>
  9285. </blockquote>
  9286. <pre class="highlight tab tab-json"><code>[
  9287. {
  9288. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  9289. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9290. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  9291. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>
  9292. }
  9293. ]
  9294. </code></pre>
  9295. <h3 id="get_swimlane_cards-responses">Responses</h3>
  9296. <table>
  9297. <thead>
  9298. <tr>
  9299. <th>Status</th>
  9300. <th>Meaning</th>
  9301. <th>Description</th>
  9302. <th>Schema</th>
  9303. </tr>
  9304. </thead>
  9305. <tbody>
  9306. <tr>
  9307. <td>200</td>
  9308. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9309. <td>200 response</td>
  9310. <td>Inline</td>
  9311. </tr>
  9312. </tbody>
  9313. </table>
  9314. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  9315. <p>Status Code <strong>200</strong></p>
  9316. <table>
  9317. <thead>
  9318. <tr>
  9319. <th>Name</th>
  9320. <th>Type</th>
  9321. <th>Required</th>
  9322. <th>Restrictions</th>
  9323. <th>Description</th>
  9324. </tr>
  9325. </thead>
  9326. <tbody>
  9327. <tr>
  9328. <td>» _id</td>
  9329. <td>string</td>
  9330. <td>false</td>
  9331. <td>none</td>
  9332. <td>none</td>
  9333. </tr>
  9334. <tr>
  9335. <td>» title</td>
  9336. <td>string</td>
  9337. <td>false</td>
  9338. <td>none</td>
  9339. <td>none</td>
  9340. </tr>
  9341. <tr>
  9342. <td>» description</td>
  9343. <td>string</td>
  9344. <td>false</td>
  9345. <td>none</td>
  9346. <td>none</td>
  9347. </tr>
  9348. <tr>
  9349. <td>» listId</td>
  9350. <td>string</td>
  9351. <td>false</td>
  9352. <td>none</td>
  9353. <td>none</td>
  9354. </tr>
  9355. </tbody>
  9356. </table>
  9357. <aside class="warning">
  9358. To perform this operation, you must be authenticated by means of one of the following methods:
  9359. UserSecurity
  9360. </aside>
  9361. <h2 id="get_card_by_id">get_card_by_id</h2>
  9362. <p><a id="opIdget_card_by_id"></a></p>
  9363. <blockquote>
  9364. <p>Code samples</p>
  9365. </blockquote>
  9366. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9367. curl -X GET /api/cards/{card} \
  9368. -H <span class="hljs-string">'Accept: application/json'</span> \
  9369. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9370. </code></pre>
  9371. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/cards/{card}</span> HTTP/1.1
  9372. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9373. <span class="undefined"></span></span></code></pre>
  9374. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9375. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9376. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9377. };
  9378. $.ajax({
  9379. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/cards/{card}'</span>,
  9380. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9381. <span class="hljs-attr">headers</span>: headers,
  9382. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9383. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9384. }
  9385. })
  9386. </code></pre>
  9387. <pre class="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>);
  9388. <span class="hljs-keyword">const</span> headers = {
  9389. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9390. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9391. };
  9392. fetch(<span class="hljs-string">'/api/cards/{card}'</span>,
  9393. {
  9394. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9395. <span class="hljs-attr">headers</span>: headers
  9396. })
  9397. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9398. <span class="hljs-keyword">return</span> res.json();
  9399. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9400. <span class="hljs-built_in">console</span>.log(body);
  9401. });
  9402. </code></pre>
  9403. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9404. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9405. headers = {
  9406. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9407. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9408. }
  9409. result = RestClient.get <span class="hljs-string">'/api/cards/{card}'</span>,
  9410. <span class="hljs-symbol">params:</span> {
  9411. }, <span class="hljs-symbol">headers:</span> headers
  9412. p JSON.parse(result)
  9413. </code></pre>
  9414. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9415. headers = {
  9416. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9417. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9418. }
  9419. r = requests.get(<span class="hljs-string">'/api/cards/{card}'</span>, params={
  9420. }, headers = headers)
  9421. <span class="hljs-keyword">print</span> r.json()
  9422. </code></pre>
  9423. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">"/api/cards/{card}"</span>);
  9424. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9425. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9426. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9427. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9428. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9429. String inputLine;
  9430. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9431. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9432. response.append(inputLine);
  9433. }
  9434. in.close();
  9435. System.out.println(response.toString());
  9436. </code></pre>
  9437. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9438. <span class="hljs-keyword">import</span> (
  9439. <span class="hljs-string">"bytes"</span>
  9440. <span class="hljs-string">"net/http"</span>
  9441. )
  9442. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9443. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9444. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9445. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9446. }
  9447. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9448. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/cards/{card}"</span>, data)
  9449. req.Header = headers
  9450. client := &amp;http.Client{}
  9451. resp, err := client.Do(req)
  9452. <span class="hljs-comment">// ...</span>
  9453. }
  9454. </code></pre>
  9455. <p><code>GET /api/cards/{card}</code></p>
  9456. <p><em>Get a Card by Card ID</em></p>
  9457. <h3 id="get_card_by_id-parameters">Parameters</h3>
  9458. <table>
  9459. <thead>
  9460. <tr>
  9461. <th>Name</th>
  9462. <th>In</th>
  9463. <th>Type</th>
  9464. <th>Required</th>
  9465. <th>Description</th>
  9466. </tr>
  9467. </thead>
  9468. <tbody>
  9469. <tr>
  9470. <td>card</td>
  9471. <td>path</td>
  9472. <td>string</td>
  9473. <td>true</td>
  9474. <td>the card ID</td>
  9475. </tr>
  9476. </tbody>
  9477. </table>
  9478. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  9479. <p><strong>card</strong>: the card ID</p>
  9480. <blockquote>
  9481. <p>Example responses</p>
  9482. </blockquote>
  9483. <blockquote>
  9484. <p>200 Response</p>
  9485. </blockquote>
  9486. <pre class="highlight tab tab-json"><code>{
  9487. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  9488. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  9489. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  9490. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  9491. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  9492. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  9493. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  9494. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  9495. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  9496. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  9497. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  9498. <span class="hljs-attr">"customFields"</span>: [
  9499. {}
  9500. ],
  9501. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  9502. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  9503. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  9504. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  9505. <span class="hljs-attr">"labelIds"</span>: [
  9506. <span class="hljs-string">"string"</span>
  9507. ],
  9508. <span class="hljs-attr">"members"</span>: [
  9509. <span class="hljs-string">"string"</span>
  9510. ],
  9511. <span class="hljs-attr">"assignees"</span>: [
  9512. <span class="hljs-string">"string"</span>
  9513. ],
  9514. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  9515. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  9516. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  9517. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  9518. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  9519. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  9520. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  9521. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  9522. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  9523. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  9524. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  9525. <span class="hljs-attr">"vote"</span>: {
  9526. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  9527. <span class="hljs-attr">"positive"</span>: [
  9528. <span class="hljs-string">"string"</span>
  9529. ],
  9530. <span class="hljs-attr">"negative"</span>: [
  9531. <span class="hljs-string">"string"</span>
  9532. ],
  9533. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  9534. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  9535. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  9536. },
  9537. <span class="hljs-attr">"poker"</span>: {
  9538. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  9539. <span class="hljs-attr">"one"</span>: [
  9540. <span class="hljs-string">"string"</span>
  9541. ],
  9542. <span class="hljs-attr">"two"</span>: [
  9543. <span class="hljs-string">"string"</span>
  9544. ],
  9545. <span class="hljs-attr">"three"</span>: [
  9546. <span class="hljs-string">"string"</span>
  9547. ],
  9548. <span class="hljs-attr">"five"</span>: [
  9549. <span class="hljs-string">"string"</span>
  9550. ],
  9551. <span class="hljs-attr">"eight"</span>: [
  9552. <span class="hljs-string">"string"</span>
  9553. ],
  9554. <span class="hljs-attr">"thirteen"</span>: [
  9555. <span class="hljs-string">"string"</span>
  9556. ],
  9557. <span class="hljs-attr">"twenty"</span>: [
  9558. <span class="hljs-string">"string"</span>
  9559. ],
  9560. <span class="hljs-attr">"forty"</span>: [
  9561. <span class="hljs-string">"string"</span>
  9562. ],
  9563. <span class="hljs-attr">"oneHundred"</span>: [
  9564. <span class="hljs-string">"string"</span>
  9565. ],
  9566. <span class="hljs-attr">"unsure"</span>: [
  9567. <span class="hljs-string">"string"</span>
  9568. ],
  9569. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  9570. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  9571. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  9572. },
  9573. <span class="hljs-attr">"targetId_gantt"</span>: [
  9574. <span class="hljs-string">"string"</span>
  9575. ],
  9576. <span class="hljs-attr">"linkType_gantt"</span>: [
  9577. <span class="hljs-number">0</span>
  9578. ],
  9579. <span class="hljs-attr">"linkId_gantt"</span>: [
  9580. <span class="hljs-string">"string"</span>
  9581. ],
  9582. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  9583. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  9584. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>
  9585. }
  9586. </code></pre>
  9587. <h3 id="get_card_by_id-responses">Responses</h3>
  9588. <table>
  9589. <thead>
  9590. <tr>
  9591. <th>Status</th>
  9592. <th>Meaning</th>
  9593. <th>Description</th>
  9594. <th>Schema</th>
  9595. </tr>
  9596. </thead>
  9597. <tbody>
  9598. <tr>
  9599. <td>200</td>
  9600. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9601. <td>200 response</td>
  9602. <td><a href="#schemacards">Cards</a></td>
  9603. </tr>
  9604. </tbody>
  9605. </table>
  9606. <aside class="warning">
  9607. To perform this operation, you must be authenticated by means of one of the following methods:
  9608. UserSecurity
  9609. </aside>
  9610. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  9611. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  9612. <p><a id="opIdget_all_custom_fields"></a></p>
  9613. <blockquote>
  9614. <p>Code samples</p>
  9615. </blockquote>
  9616. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9617. curl -X GET /api/boards/{board}/custom-fields \
  9618. -H <span class="hljs-string">'Accept: application/json'</span> \
  9619. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9620. </code></pre>
  9621. <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
  9622. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  9623. <span class="undefined"></span></span></code></pre>
  9624. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9625. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9626. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9627. };
  9628. $.ajax({
  9629. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9630. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  9631. <span class="hljs-attr">headers</span>: headers,
  9632. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9633. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9634. }
  9635. })
  9636. </code></pre>
  9637. <pre class="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>);
  9638. <span class="hljs-keyword">const</span> headers = {
  9639. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9640. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9641. };
  9642. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9643. {
  9644. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  9645. <span class="hljs-attr">headers</span>: headers
  9646. })
  9647. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9648. <span class="hljs-keyword">return</span> res.json();
  9649. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9650. <span class="hljs-built_in">console</span>.log(body);
  9651. });
  9652. </code></pre>
  9653. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9654. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9655. headers = {
  9656. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9657. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9658. }
  9659. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9660. <span class="hljs-symbol">params:</span> {
  9661. }, <span class="hljs-symbol">headers:</span> headers
  9662. p JSON.parse(result)
  9663. </code></pre>
  9664. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9665. headers = {
  9666. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9667. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9668. }
  9669. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  9670. }, headers = headers)
  9671. <span class="hljs-keyword">print</span> r.json()
  9672. </code></pre>
  9673. <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>);
  9674. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9675. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  9676. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9677. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9678. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9679. String inputLine;
  9680. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9681. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9682. response.append(inputLine);
  9683. }
  9684. in.close();
  9685. System.out.println(response.toString());
  9686. </code></pre>
  9687. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9688. <span class="hljs-keyword">import</span> (
  9689. <span class="hljs-string">"bytes"</span>
  9690. <span class="hljs-string">"net/http"</span>
  9691. )
  9692. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9693. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9694. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9695. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9696. }
  9697. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9698. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  9699. req.Header = headers
  9700. client := &amp;http.Client{}
  9701. resp, err := client.Do(req)
  9702. <span class="hljs-comment">// ...</span>
  9703. }
  9704. </code></pre>
  9705. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9706. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9707. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9708. <table>
  9709. <thead>
  9710. <tr>
  9711. <th>Name</th>
  9712. <th>In</th>
  9713. <th>Type</th>
  9714. <th>Required</th>
  9715. <th>Description</th>
  9716. </tr>
  9717. </thead>
  9718. <tbody>
  9719. <tr>
  9720. <td>board</td>
  9721. <td>path</td>
  9722. <td>string</td>
  9723. <td>true</td>
  9724. <td>the board value</td>
  9725. </tr>
  9726. </tbody>
  9727. </table>
  9728. <blockquote>
  9729. <p>Example responses</p>
  9730. </blockquote>
  9731. <blockquote>
  9732. <p>200 Response</p>
  9733. </blockquote>
  9734. <pre class="highlight tab tab-json"><code>[
  9735. {
  9736. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  9737. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  9738. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>
  9739. }
  9740. ]
  9741. </code></pre>
  9742. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9743. <table>
  9744. <thead>
  9745. <tr>
  9746. <th>Status</th>
  9747. <th>Meaning</th>
  9748. <th>Description</th>
  9749. <th>Schema</th>
  9750. </tr>
  9751. </thead>
  9752. <tbody>
  9753. <tr>
  9754. <td>200</td>
  9755. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9756. <td>200 response</td>
  9757. <td>Inline</td>
  9758. </tr>
  9759. </tbody>
  9760. </table>
  9761. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9762. <p>Status Code <strong>200</strong></p>
  9763. <table>
  9764. <thead>
  9765. <tr>
  9766. <th>Name</th>
  9767. <th>Type</th>
  9768. <th>Required</th>
  9769. <th>Restrictions</th>
  9770. <th>Description</th>
  9771. </tr>
  9772. </thead>
  9773. <tbody>
  9774. <tr>
  9775. <td>» _id</td>
  9776. <td>string</td>
  9777. <td>false</td>
  9778. <td>none</td>
  9779. <td>none</td>
  9780. </tr>
  9781. <tr>
  9782. <td>» name</td>
  9783. <td>string</td>
  9784. <td>false</td>
  9785. <td>none</td>
  9786. <td>none</td>
  9787. </tr>
  9788. <tr>
  9789. <td>» type</td>
  9790. <td>string</td>
  9791. <td>false</td>
  9792. <td>none</td>
  9793. <td>none</td>
  9794. </tr>
  9795. </tbody>
  9796. </table>
  9797. <aside class="warning">
  9798. To perform this operation, you must be authenticated by means of one of the following methods:
  9799. UserSecurity
  9800. </aside>
  9801. <h2 id="new_custom_field">new_custom_field</h2>
  9802. <p><a id="opIdnew_custom_field"></a></p>
  9803. <blockquote>
  9804. <p>Code samples</p>
  9805. </blockquote>
  9806. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9807. curl -X POST /api/boards/{board}/custom-fields \
  9808. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  9809. -H <span class="hljs-string">'Accept: application/json'</span> \
  9810. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  9811. </code></pre>
  9812. <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
  9813. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9814. Accept: application/json
  9815. </span></code></pre>
  9816. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  9817. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9818. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9819. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9820. };
  9821. $.ajax({
  9822. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9823. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  9824. <span class="hljs-attr">headers</span>: headers,
  9825. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  9826. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  9827. }
  9828. })
  9829. </code></pre>
  9830. <pre class="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>);
  9831. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  9832. "name": "string",
  9833. "type": "string",
  9834. "settings": "string",
  9835. "showOnCard": true,
  9836. "automaticallyOnCard": true,
  9837. "showLabelOnMiniCard": true,
  9838. "showSumAtTopOfList": true,
  9839. "authorId": "string"
  9840. }'</span>;
  9841. <span class="hljs-keyword">const</span> headers = {
  9842. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  9843. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  9844. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  9845. };
  9846. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9847. {
  9848. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  9849. <span class="hljs-attr">body</span>: inputBody,
  9850. <span class="hljs-attr">headers</span>: headers
  9851. })
  9852. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9853. <span class="hljs-keyword">return</span> res.json();
  9854. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9855. <span class="hljs-built_in">console</span>.log(body);
  9856. });
  9857. </code></pre>
  9858. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  9859. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  9860. headers = {
  9861. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  9862. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  9863. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  9864. }
  9865. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields'</span>,
  9866. <span class="hljs-symbol">params:</span> {
  9867. }, <span class="hljs-symbol">headers:</span> headers
  9868. p JSON.parse(result)
  9869. </code></pre>
  9870. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9871. headers = {
  9872. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  9873. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  9874. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  9875. }
  9876. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields'</span>, params={
  9877. }, headers = headers)
  9878. <span class="hljs-keyword">print</span> r.json()
  9879. </code></pre>
  9880. <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>);
  9881. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9882. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  9883. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9884. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9885. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9886. String inputLine;
  9887. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9888. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9889. response.append(inputLine);
  9890. }
  9891. in.close();
  9892. System.out.println(response.toString());
  9893. </code></pre>
  9894. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9895. <span class="hljs-keyword">import</span> (
  9896. <span class="hljs-string">"bytes"</span>
  9897. <span class="hljs-string">"net/http"</span>
  9898. )
  9899. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9900. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9901. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  9902. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  9903. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  9904. }
  9905. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9906. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields"</span>, data)
  9907. req.Header = headers
  9908. client := &amp;http.Client{}
  9909. resp, err := client.Do(req)
  9910. <span class="hljs-comment">// ...</span>
  9911. }
  9912. </code></pre>
  9913. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9914. <p><em>Create a Custom Field</em></p>
  9915. <blockquote>
  9916. <p>Body parameter</p>
  9917. </blockquote>
  9918. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9919. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9920. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9921. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9922. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9923. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9924. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9925. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9926. </code></pre>
  9927. <h3 id="new_custom_field-parameters">Parameters</h3>
  9928. <table>
  9929. <thead>
  9930. <tr>
  9931. <th>Name</th>
  9932. <th>In</th>
  9933. <th>Type</th>
  9934. <th>Required</th>
  9935. <th>Description</th>
  9936. </tr>
  9937. </thead>
  9938. <tbody>
  9939. <tr>
  9940. <td>board</td>
  9941. <td>path</td>
  9942. <td>string</td>
  9943. <td>true</td>
  9944. <td>the board value</td>
  9945. </tr>
  9946. <tr>
  9947. <td>body</td>
  9948. <td>body</td>
  9949. <td>object</td>
  9950. <td>false</td>
  9951. <td>none</td>
  9952. </tr>
  9953. <tr>
  9954. <td>» name</td>
  9955. <td>body</td>
  9956. <td>string</td>
  9957. <td>true</td>
  9958. <td>the name of the custom field</td>
  9959. </tr>
  9960. <tr>
  9961. <td>» type</td>
  9962. <td>body</td>
  9963. <td>string</td>
  9964. <td>true</td>
  9965. <td>the type of the custom field</td>
  9966. </tr>
  9967. <tr>
  9968. <td>» settings</td>
  9969. <td>body</td>
  9970. <td>string</td>
  9971. <td>true</td>
  9972. <td>the settings object of the custom field</td>
  9973. </tr>
  9974. <tr>
  9975. <td>» showOnCard</td>
  9976. <td>body</td>
  9977. <td>boolean</td>
  9978. <td>true</td>
  9979. <td>should we show the custom field on cards?</td>
  9980. </tr>
  9981. <tr>
  9982. <td>» automaticallyOnCard</td>
  9983. <td>body</td>
  9984. <td>boolean</td>
  9985. <td>true</td>
  9986. <td>should the custom fields automatically be added on cards?</td>
  9987. </tr>
  9988. <tr>
  9989. <td>» showLabelOnMiniCard</td>
  9990. <td>body</td>
  9991. <td>boolean</td>
  9992. <td>true</td>
  9993. <td>should the label of the custom field be shown on minicards?</td>
  9994. </tr>
  9995. <tr>
  9996. <td>» showSumAtTopOfList</td>
  9997. <td>body</td>
  9998. <td>boolean</td>
  9999. <td>true</td>
  10000. <td>should the sum of the custom fields be shown at top of list?</td>
  10001. </tr>
  10002. <tr>
  10003. <td>» authorId</td>
  10004. <td>body</td>
  10005. <td>string</td>
  10006. <td>true</td>
  10007. <td>the authorId value</td>
  10008. </tr>
  10009. </tbody>
  10010. </table>
  10011. <blockquote>
  10012. <p>Example responses</p>
  10013. </blockquote>
  10014. <blockquote>
  10015. <p>200 Response</p>
  10016. </blockquote>
  10017. <pre class="highlight tab tab-json"><code>{
  10018. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10019. }
  10020. </code></pre>
  10021. <h3 id="new_custom_field-responses">Responses</h3>
  10022. <table>
  10023. <thead>
  10024. <tr>
  10025. <th>Status</th>
  10026. <th>Meaning</th>
  10027. <th>Description</th>
  10028. <th>Schema</th>
  10029. </tr>
  10030. </thead>
  10031. <tbody>
  10032. <tr>
  10033. <td>200</td>
  10034. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10035. <td>200 response</td>
  10036. <td>Inline</td>
  10037. </tr>
  10038. </tbody>
  10039. </table>
  10040. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  10041. <p>Status Code <strong>200</strong></p>
  10042. <table>
  10043. <thead>
  10044. <tr>
  10045. <th>Name</th>
  10046. <th>Type</th>
  10047. <th>Required</th>
  10048. <th>Restrictions</th>
  10049. <th>Description</th>
  10050. </tr>
  10051. </thead>
  10052. <tbody>
  10053. <tr>
  10054. <td>» _id</td>
  10055. <td>string</td>
  10056. <td>false</td>
  10057. <td>none</td>
  10058. <td>none</td>
  10059. </tr>
  10060. </tbody>
  10061. </table>
  10062. <aside class="warning">
  10063. To perform this operation, you must be authenticated by means of one of the following methods:
  10064. UserSecurity
  10065. </aside>
  10066. <h2 id="get_custom_field">get_custom_field</h2>
  10067. <p><a id="opIdget_custom_field"></a></p>
  10068. <blockquote>
  10069. <p>Code samples</p>
  10070. </blockquote>
  10071. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10072. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  10073. -H <span class="hljs-string">'Accept: application/json'</span> \
  10074. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10075. </code></pre>
  10076. <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
  10077. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10078. <span class="undefined"></span></span></code></pre>
  10079. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10080. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10081. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10082. };
  10083. $.ajax({
  10084. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10085. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  10086. <span class="hljs-attr">headers</span>: headers,
  10087. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10088. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10089. }
  10090. })
  10091. </code></pre>
  10092. <pre class="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>);
  10093. <span class="hljs-keyword">const</span> headers = {
  10094. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10095. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10096. };
  10097. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10098. {
  10099. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  10100. <span class="hljs-attr">headers</span>: headers
  10101. })
  10102. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10103. <span class="hljs-keyword">return</span> res.json();
  10104. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10105. <span class="hljs-built_in">console</span>.log(body);
  10106. });
  10107. </code></pre>
  10108. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10109. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10110. headers = {
  10111. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10112. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10113. }
  10114. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10115. <span class="hljs-symbol">params:</span> {
  10116. }, <span class="hljs-symbol">headers:</span> headers
  10117. p JSON.parse(result)
  10118. </code></pre>
  10119. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10120. headers = {
  10121. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10122. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10123. }
  10124. r = requests.get(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  10125. }, headers = headers)
  10126. <span class="hljs-keyword">print</span> r.json()
  10127. </code></pre>
  10128. <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>);
  10129. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10130. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  10131. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10132. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10133. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10134. String inputLine;
  10135. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10136. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10137. response.append(inputLine);
  10138. }
  10139. in.close();
  10140. System.out.println(response.toString());
  10141. </code></pre>
  10142. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10143. <span class="hljs-keyword">import</span> (
  10144. <span class="hljs-string">"bytes"</span>
  10145. <span class="hljs-string">"net/http"</span>
  10146. )
  10147. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10148. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10149. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10150. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10151. }
  10152. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10153. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  10154. req.Header = headers
  10155. client := &amp;http.Client{}
  10156. resp, err := client.Do(req)
  10157. <span class="hljs-comment">// ...</span>
  10158. }
  10159. </code></pre>
  10160. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  10161. <p><em>Get a Custom Fields attached to a board</em></p>
  10162. <h3 id="get_custom_field-parameters">Parameters</h3>
  10163. <table>
  10164. <thead>
  10165. <tr>
  10166. <th>Name</th>
  10167. <th>In</th>
  10168. <th>Type</th>
  10169. <th>Required</th>
  10170. <th>Description</th>
  10171. </tr>
  10172. </thead>
  10173. <tbody>
  10174. <tr>
  10175. <td>board</td>
  10176. <td>path</td>
  10177. <td>string</td>
  10178. <td>true</td>
  10179. <td>the board value</td>
  10180. </tr>
  10181. <tr>
  10182. <td>customField</td>
  10183. <td>path</td>
  10184. <td>string</td>
  10185. <td>true</td>
  10186. <td>the ID of the custom field</td>
  10187. </tr>
  10188. </tbody>
  10189. </table>
  10190. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10191. <p><strong>customField</strong>: the ID of the custom field</p>
  10192. <blockquote>
  10193. <p>Example responses</p>
  10194. </blockquote>
  10195. <blockquote>
  10196. <p>200 Response</p>
  10197. </blockquote>
  10198. <pre class="highlight tab tab-json"><code>[
  10199. {
  10200. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  10201. <span class="hljs-attr">"boardIds"</span>: <span class="hljs-string">"string"</span>
  10202. }
  10203. ]
  10204. </code></pre>
  10205. <h3 id="get_custom_field-responses">Responses</h3>
  10206. <table>
  10207. <thead>
  10208. <tr>
  10209. <th>Status</th>
  10210. <th>Meaning</th>
  10211. <th>Description</th>
  10212. <th>Schema</th>
  10213. </tr>
  10214. </thead>
  10215. <tbody>
  10216. <tr>
  10217. <td>200</td>
  10218. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10219. <td>200 response</td>
  10220. <td>Inline</td>
  10221. </tr>
  10222. </tbody>
  10223. </table>
  10224. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  10225. <p>Status Code <strong>200</strong></p>
  10226. <table>
  10227. <thead>
  10228. <tr>
  10229. <th>Name</th>
  10230. <th>Type</th>
  10231. <th>Required</th>
  10232. <th>Restrictions</th>
  10233. <th>Description</th>
  10234. </tr>
  10235. </thead>
  10236. <tbody>
  10237. <tr>
  10238. <td>» _id</td>
  10239. <td>string</td>
  10240. <td>false</td>
  10241. <td>none</td>
  10242. <td>none</td>
  10243. </tr>
  10244. <tr>
  10245. <td>» boardIds</td>
  10246. <td>string</td>
  10247. <td>false</td>
  10248. <td>none</td>
  10249. <td>none</td>
  10250. </tr>
  10251. </tbody>
  10252. </table>
  10253. <aside class="warning">
  10254. To perform this operation, you must be authenticated by means of one of the following methods:
  10255. UserSecurity
  10256. </aside>
  10257. <h2 id="edit_custom_field">edit_custom_field</h2>
  10258. <p><a id="opIdedit_custom_field"></a></p>
  10259. <blockquote>
  10260. <p>Code samples</p>
  10261. </blockquote>
  10262. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10263. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  10264. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10265. -H <span class="hljs-string">'Accept: application/json'</span> \
  10266. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10267. </code></pre>
  10268. <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
  10269. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10270. Accept: application/json
  10271. </span></code></pre>
  10272. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10273. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10274. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10275. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10276. };
  10277. $.ajax({
  10278. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10279. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  10280. <span class="hljs-attr">headers</span>: headers,
  10281. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10282. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10283. }
  10284. })
  10285. </code></pre>
  10286. <pre class="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>);
  10287. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10288. "name": "string",
  10289. "type": "string",
  10290. "settings": "string",
  10291. "showOnCard": true,
  10292. "automaticallyOnCard": true,
  10293. "alwaysOnCard": "string",
  10294. "showLabelOnMiniCard": true,
  10295. "showSumAtTopOfList": true
  10296. }'</span>;
  10297. <span class="hljs-keyword">const</span> headers = {
  10298. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10299. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10300. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10301. };
  10302. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10303. {
  10304. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  10305. <span class="hljs-attr">body</span>: inputBody,
  10306. <span class="hljs-attr">headers</span>: headers
  10307. })
  10308. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10309. <span class="hljs-keyword">return</span> res.json();
  10310. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10311. <span class="hljs-built_in">console</span>.log(body);
  10312. });
  10313. </code></pre>
  10314. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10315. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10316. headers = {
  10317. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10318. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10319. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10320. }
  10321. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10322. <span class="hljs-symbol">params:</span> {
  10323. }, <span class="hljs-symbol">headers:</span> headers
  10324. p JSON.parse(result)
  10325. </code></pre>
  10326. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10327. headers = {
  10328. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10329. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10330. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10331. }
  10332. r = requests.put(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  10333. }, headers = headers)
  10334. <span class="hljs-keyword">print</span> r.json()
  10335. </code></pre>
  10336. <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>);
  10337. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10338. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  10339. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10340. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10341. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10342. String inputLine;
  10343. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10344. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10345. response.append(inputLine);
  10346. }
  10347. in.close();
  10348. System.out.println(response.toString());
  10349. </code></pre>
  10350. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10351. <span class="hljs-keyword">import</span> (
  10352. <span class="hljs-string">"bytes"</span>
  10353. <span class="hljs-string">"net/http"</span>
  10354. )
  10355. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10356. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10357. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10358. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10359. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10360. }
  10361. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10362. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  10363. req.Header = headers
  10364. client := &amp;http.Client{}
  10365. resp, err := client.Do(req)
  10366. <span class="hljs-comment">// ...</span>
  10367. }
  10368. </code></pre>
  10369. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  10370. <p><em>Update a Custom Field</em></p>
  10371. <blockquote>
  10372. <p>Body parameter</p>
  10373. </blockquote>
  10374. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10375. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10376. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10377. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10378. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10379. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  10380. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10381. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10382. </code></pre>
  10383. <h3 id="edit_custom_field-parameters">Parameters</h3>
  10384. <table>
  10385. <thead>
  10386. <tr>
  10387. <th>Name</th>
  10388. <th>In</th>
  10389. <th>Type</th>
  10390. <th>Required</th>
  10391. <th>Description</th>
  10392. </tr>
  10393. </thead>
  10394. <tbody>
  10395. <tr>
  10396. <td>board</td>
  10397. <td>path</td>
  10398. <td>string</td>
  10399. <td>true</td>
  10400. <td>the board value</td>
  10401. </tr>
  10402. <tr>
  10403. <td>customField</td>
  10404. <td>path</td>
  10405. <td>string</td>
  10406. <td>true</td>
  10407. <td>the customField value</td>
  10408. </tr>
  10409. <tr>
  10410. <td>body</td>
  10411. <td>body</td>
  10412. <td>object</td>
  10413. <td>false</td>
  10414. <td>none</td>
  10415. </tr>
  10416. <tr>
  10417. <td>» name</td>
  10418. <td>body</td>
  10419. <td>string</td>
  10420. <td>true</td>
  10421. <td>the name of the custom field</td>
  10422. </tr>
  10423. <tr>
  10424. <td>» type</td>
  10425. <td>body</td>
  10426. <td>string</td>
  10427. <td>true</td>
  10428. <td>the type of the custom field</td>
  10429. </tr>
  10430. <tr>
  10431. <td>» settings</td>
  10432. <td>body</td>
  10433. <td>string</td>
  10434. <td>true</td>
  10435. <td>the settings object of the custom field</td>
  10436. </tr>
  10437. <tr>
  10438. <td>» showOnCard</td>
  10439. <td>body</td>
  10440. <td>boolean</td>
  10441. <td>true</td>
  10442. <td>should we show the custom field on cards</td>
  10443. </tr>
  10444. <tr>
  10445. <td>» automaticallyOnCard</td>
  10446. <td>body</td>
  10447. <td>boolean</td>
  10448. <td>true</td>
  10449. <td>should the custom fields automatically be added on cards</td>
  10450. </tr>
  10451. <tr>
  10452. <td>» alwaysOnCard</td>
  10453. <td>body</td>
  10454. <td>string</td>
  10455. <td>true</td>
  10456. <td>the alwaysOnCard value</td>
  10457. </tr>
  10458. <tr>
  10459. <td>» showLabelOnMiniCard</td>
  10460. <td>body</td>
  10461. <td>boolean</td>
  10462. <td>true</td>
  10463. <td>should the label of the custom field be shown on minicards</td>
  10464. </tr>
  10465. <tr>
  10466. <td>» showSumAtTopOfList</td>
  10467. <td>body</td>
  10468. <td>boolean</td>
  10469. <td>true</td>
  10470. <td>should the sum of the custom fields be shown at top of list</td>
  10471. </tr>
  10472. </tbody>
  10473. </table>
  10474. <blockquote>
  10475. <p>Example responses</p>
  10476. </blockquote>
  10477. <blockquote>
  10478. <p>200 Response</p>
  10479. </blockquote>
  10480. <pre class="highlight tab tab-json"><code>{
  10481. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10482. }
  10483. </code></pre>
  10484. <h3 id="edit_custom_field-responses">Responses</h3>
  10485. <table>
  10486. <thead>
  10487. <tr>
  10488. <th>Status</th>
  10489. <th>Meaning</th>
  10490. <th>Description</th>
  10491. <th>Schema</th>
  10492. </tr>
  10493. </thead>
  10494. <tbody>
  10495. <tr>
  10496. <td>200</td>
  10497. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10498. <td>200 response</td>
  10499. <td>Inline</td>
  10500. </tr>
  10501. </tbody>
  10502. </table>
  10503. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  10504. <p>Status Code <strong>200</strong></p>
  10505. <table>
  10506. <thead>
  10507. <tr>
  10508. <th>Name</th>
  10509. <th>Type</th>
  10510. <th>Required</th>
  10511. <th>Restrictions</th>
  10512. <th>Description</th>
  10513. </tr>
  10514. </thead>
  10515. <tbody>
  10516. <tr>
  10517. <td>» _id</td>
  10518. <td>string</td>
  10519. <td>false</td>
  10520. <td>none</td>
  10521. <td>none</td>
  10522. </tr>
  10523. </tbody>
  10524. </table>
  10525. <aside class="warning">
  10526. To perform this operation, you must be authenticated by means of one of the following methods:
  10527. UserSecurity
  10528. </aside>
  10529. <h2 id="delete_custom_field">delete_custom_field</h2>
  10530. <p><a id="opIddelete_custom_field"></a></p>
  10531. <blockquote>
  10532. <p>Code samples</p>
  10533. </blockquote>
  10534. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10535. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  10536. -H <span class="hljs-string">'Accept: application/json'</span> \
  10537. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10538. </code></pre>
  10539. <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
  10540. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  10541. <span class="undefined"></span></span></code></pre>
  10542. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10543. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10544. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10545. };
  10546. $.ajax({
  10547. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10548. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  10549. <span class="hljs-attr">headers</span>: headers,
  10550. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10551. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10552. }
  10553. })
  10554. </code></pre>
  10555. <pre class="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>);
  10556. <span class="hljs-keyword">const</span> headers = {
  10557. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10558. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10559. };
  10560. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10561. {
  10562. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  10563. <span class="hljs-attr">headers</span>: headers
  10564. })
  10565. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10566. <span class="hljs-keyword">return</span> res.json();
  10567. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10568. <span class="hljs-built_in">console</span>.log(body);
  10569. });
  10570. </code></pre>
  10571. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10572. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10573. headers = {
  10574. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10575. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10576. }
  10577. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>,
  10578. <span class="hljs-symbol">params:</span> {
  10579. }, <span class="hljs-symbol">headers:</span> headers
  10580. p JSON.parse(result)
  10581. </code></pre>
  10582. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10583. headers = {
  10584. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10585. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10586. }
  10587. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}'</span>, params={
  10588. }, headers = headers)
  10589. <span class="hljs-keyword">print</span> r.json()
  10590. </code></pre>
  10591. <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>);
  10592. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10593. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  10594. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10595. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10596. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10597. String inputLine;
  10598. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10599. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10600. response.append(inputLine);
  10601. }
  10602. in.close();
  10603. System.out.println(response.toString());
  10604. </code></pre>
  10605. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10606. <span class="hljs-keyword">import</span> (
  10607. <span class="hljs-string">"bytes"</span>
  10608. <span class="hljs-string">"net/http"</span>
  10609. )
  10610. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10611. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10612. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10613. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10614. }
  10615. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10616. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}"</span>, data)
  10617. req.Header = headers
  10618. client := &amp;http.Client{}
  10619. resp, err := client.Do(req)
  10620. <span class="hljs-comment">// ...</span>
  10621. }
  10622. </code></pre>
  10623. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10624. <p><em>Delete a Custom Fields attached to a board</em></p>
  10625. <p>The Custom Field can't be retrieved after this operation</p>
  10626. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10627. <table>
  10628. <thead>
  10629. <tr>
  10630. <th>Name</th>
  10631. <th>In</th>
  10632. <th>Type</th>
  10633. <th>Required</th>
  10634. <th>Description</th>
  10635. </tr>
  10636. </thead>
  10637. <tbody>
  10638. <tr>
  10639. <td>board</td>
  10640. <td>path</td>
  10641. <td>string</td>
  10642. <td>true</td>
  10643. <td>the board value</td>
  10644. </tr>
  10645. <tr>
  10646. <td>customField</td>
  10647. <td>path</td>
  10648. <td>string</td>
  10649. <td>true</td>
  10650. <td>the ID of the custom field</td>
  10651. </tr>
  10652. </tbody>
  10653. </table>
  10654. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  10655. <p><strong>customField</strong>: the ID of the custom field</p>
  10656. <blockquote>
  10657. <p>Example responses</p>
  10658. </blockquote>
  10659. <blockquote>
  10660. <p>200 Response</p>
  10661. </blockquote>
  10662. <pre class="highlight tab tab-json"><code>{
  10663. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10664. }
  10665. </code></pre>
  10666. <h3 id="delete_custom_field-responses">Responses</h3>
  10667. <table>
  10668. <thead>
  10669. <tr>
  10670. <th>Status</th>
  10671. <th>Meaning</th>
  10672. <th>Description</th>
  10673. <th>Schema</th>
  10674. </tr>
  10675. </thead>
  10676. <tbody>
  10677. <tr>
  10678. <td>200</td>
  10679. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10680. <td>200 response</td>
  10681. <td>Inline</td>
  10682. </tr>
  10683. </tbody>
  10684. </table>
  10685. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  10686. <p>Status Code <strong>200</strong></p>
  10687. <table>
  10688. <thead>
  10689. <tr>
  10690. <th>Name</th>
  10691. <th>Type</th>
  10692. <th>Required</th>
  10693. <th>Restrictions</th>
  10694. <th>Description</th>
  10695. </tr>
  10696. </thead>
  10697. <tbody>
  10698. <tr>
  10699. <td>» _id</td>
  10700. <td>string</td>
  10701. <td>false</td>
  10702. <td>none</td>
  10703. <td>none</td>
  10704. </tr>
  10705. </tbody>
  10706. </table>
  10707. <aside class="warning">
  10708. To perform this operation, you must be authenticated by means of one of the following methods:
  10709. UserSecurity
  10710. </aside>
  10711. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10712. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10713. <blockquote>
  10714. <p>Code samples</p>
  10715. </blockquote>
  10716. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10717. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10718. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10719. -H <span class="hljs-string">'Accept: application/json'</span> \
  10720. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10721. </code></pre>
  10722. <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
  10723. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10724. Accept: application/json
  10725. </span></code></pre>
  10726. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10727. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10728. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10729. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10730. };
  10731. $.ajax({
  10732. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  10733. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  10734. <span class="hljs-attr">headers</span>: headers,
  10735. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10736. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10737. }
  10738. })
  10739. </code></pre>
  10740. <pre class="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>);
  10741. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10742. "items": "string"
  10743. }'</span>;
  10744. <span class="hljs-keyword">const</span> headers = {
  10745. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10746. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10747. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10748. };
  10749. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  10750. {
  10751. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  10752. <span class="hljs-attr">body</span>: inputBody,
  10753. <span class="hljs-attr">headers</span>: headers
  10754. })
  10755. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10756. <span class="hljs-keyword">return</span> res.json();
  10757. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10758. <span class="hljs-built_in">console</span>.log(body);
  10759. });
  10760. </code></pre>
  10761. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10762. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10763. headers = {
  10764. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10765. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10766. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10767. }
  10768. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>,
  10769. <span class="hljs-symbol">params:</span> {
  10770. }, <span class="hljs-symbol">headers:</span> headers
  10771. p JSON.parse(result)
  10772. </code></pre>
  10773. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10774. headers = {
  10775. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10776. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10777. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10778. }
  10779. r = requests.post(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items'</span>, params={
  10780. }, headers = headers)
  10781. <span class="hljs-keyword">print</span> r.json()
  10782. </code></pre>
  10783. <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>);
  10784. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10785. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  10786. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10787. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10788. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10789. String inputLine;
  10790. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10791. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10792. response.append(inputLine);
  10793. }
  10794. in.close();
  10795. System.out.println(response.toString());
  10796. </code></pre>
  10797. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10798. <span class="hljs-keyword">import</span> (
  10799. <span class="hljs-string">"bytes"</span>
  10800. <span class="hljs-string">"net/http"</span>
  10801. )
  10802. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10803. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10804. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  10805. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  10806. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  10807. }
  10808. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10809. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/custom-fields/{customField}/dropdown-items"</span>, data)
  10810. req.Header = headers
  10811. client := &amp;http.Client{}
  10812. resp, err := client.Do(req)
  10813. <span class="hljs-comment">// ...</span>
  10814. }
  10815. </code></pre>
  10816. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10817. <p><em>Update a Custom Field's dropdown items</em></p>
  10818. <blockquote>
  10819. <p>Body parameter</p>
  10820. </blockquote>
  10821. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10822. </code></pre>
  10823. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10824. <table>
  10825. <thead>
  10826. <tr>
  10827. <th>Name</th>
  10828. <th>In</th>
  10829. <th>Type</th>
  10830. <th>Required</th>
  10831. <th>Description</th>
  10832. </tr>
  10833. </thead>
  10834. <tbody>
  10835. <tr>
  10836. <td>board</td>
  10837. <td>path</td>
  10838. <td>string</td>
  10839. <td>true</td>
  10840. <td>the board value</td>
  10841. </tr>
  10842. <tr>
  10843. <td>customField</td>
  10844. <td>path</td>
  10845. <td>string</td>
  10846. <td>true</td>
  10847. <td>the customField value</td>
  10848. </tr>
  10849. <tr>
  10850. <td>body</td>
  10851. <td>body</td>
  10852. <td>object</td>
  10853. <td>false</td>
  10854. <td>none</td>
  10855. </tr>
  10856. <tr>
  10857. <td>» items</td>
  10858. <td>body</td>
  10859. <td>string</td>
  10860. <td>false</td>
  10861. <td>names of the custom field</td>
  10862. </tr>
  10863. </tbody>
  10864. </table>
  10865. <blockquote>
  10866. <p>Example responses</p>
  10867. </blockquote>
  10868. <blockquote>
  10869. <p>200 Response</p>
  10870. </blockquote>
  10871. <pre class="highlight tab tab-json"><code>{
  10872. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  10873. }
  10874. </code></pre>
  10875. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10876. <table>
  10877. <thead>
  10878. <tr>
  10879. <th>Status</th>
  10880. <th>Meaning</th>
  10881. <th>Description</th>
  10882. <th>Schema</th>
  10883. </tr>
  10884. </thead>
  10885. <tbody>
  10886. <tr>
  10887. <td>200</td>
  10888. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10889. <td>200 response</td>
  10890. <td>Inline</td>
  10891. </tr>
  10892. </tbody>
  10893. </table>
  10894. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10895. <p>Status Code <strong>200</strong></p>
  10896. <table>
  10897. <thead>
  10898. <tr>
  10899. <th>Name</th>
  10900. <th>Type</th>
  10901. <th>Required</th>
  10902. <th>Restrictions</th>
  10903. <th>Description</th>
  10904. </tr>
  10905. </thead>
  10906. <tbody>
  10907. <tr>
  10908. <td>» _id</td>
  10909. <td>string</td>
  10910. <td>false</td>
  10911. <td>none</td>
  10912. <td>none</td>
  10913. </tr>
  10914. </tbody>
  10915. </table>
  10916. <aside class="warning">
  10917. To perform this operation, you must be authenticated by means of one of the following methods:
  10918. UserSecurity
  10919. </aside>
  10920. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10921. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10922. <blockquote>
  10923. <p>Code samples</p>
  10924. </blockquote>
  10925. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10926. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10927. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  10928. -H <span class="hljs-string">'Accept: application/json'</span> \
  10929. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  10930. </code></pre>
  10931. <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
  10932. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10933. Accept: application/json
  10934. </span></code></pre>
  10935. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  10936. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10937. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10938. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10939. };
  10940. $.ajax({
  10941. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  10942. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  10943. <span class="hljs-attr">headers</span>: headers,
  10944. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  10945. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  10946. }
  10947. })
  10948. </code></pre>
  10949. <pre class="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>);
  10950. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  10951. "name": "string"
  10952. }'</span>;
  10953. <span class="hljs-keyword">const</span> headers = {
  10954. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  10955. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  10956. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  10957. };
  10958. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  10959. {
  10960. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  10961. <span class="hljs-attr">body</span>: inputBody,
  10962. <span class="hljs-attr">headers</span>: headers
  10963. })
  10964. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10965. <span class="hljs-keyword">return</span> res.json();
  10966. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10967. <span class="hljs-built_in">console</span>.log(body);
  10968. });
  10969. </code></pre>
  10970. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  10971. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  10972. headers = {
  10973. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  10974. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  10975. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  10976. }
  10977. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  10978. <span class="hljs-symbol">params:</span> {
  10979. }, <span class="hljs-symbol">headers:</span> headers
  10980. p JSON.parse(result)
  10981. </code></pre>
  10982. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10983. headers = {
  10984. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  10985. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  10986. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  10987. }
  10988. r = requests.put(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>, params={
  10989. }, headers = headers)
  10990. <span class="hljs-keyword">print</span> r.json()
  10991. </code></pre>
  10992. <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>);
  10993. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10994. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  10995. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10996. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10997. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10998. String inputLine;
  10999. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11000. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11001. response.append(inputLine);
  11002. }
  11003. in.close();
  11004. System.out.println(response.toString());
  11005. </code></pre>
  11006. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11007. <span class="hljs-keyword">import</span> (
  11008. <span class="hljs-string">"bytes"</span>
  11009. <span class="hljs-string">"net/http"</span>
  11010. )
  11011. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11012. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11013. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11014. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11015. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11016. }
  11017. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11018. 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)
  11019. req.Header = headers
  11020. client := &amp;http.Client{}
  11021. resp, err := client.Do(req)
  11022. <span class="hljs-comment">// ...</span>
  11023. }
  11024. </code></pre>
  11025. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11026. <p><em>Update a Custom Field's dropdown item</em></p>
  11027. <blockquote>
  11028. <p>Body parameter</p>
  11029. </blockquote>
  11030. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  11031. </code></pre>
  11032. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  11033. <table>
  11034. <thead>
  11035. <tr>
  11036. <th>Name</th>
  11037. <th>In</th>
  11038. <th>Type</th>
  11039. <th>Required</th>
  11040. <th>Description</th>
  11041. </tr>
  11042. </thead>
  11043. <tbody>
  11044. <tr>
  11045. <td>board</td>
  11046. <td>path</td>
  11047. <td>string</td>
  11048. <td>true</td>
  11049. <td>the board value</td>
  11050. </tr>
  11051. <tr>
  11052. <td>customField</td>
  11053. <td>path</td>
  11054. <td>string</td>
  11055. <td>true</td>
  11056. <td>the customField value</td>
  11057. </tr>
  11058. <tr>
  11059. <td>dropdownItem</td>
  11060. <td>path</td>
  11061. <td>string</td>
  11062. <td>true</td>
  11063. <td>the dropdownItem value</td>
  11064. </tr>
  11065. <tr>
  11066. <td>body</td>
  11067. <td>body</td>
  11068. <td>object</td>
  11069. <td>false</td>
  11070. <td>none</td>
  11071. </tr>
  11072. <tr>
  11073. <td>» name</td>
  11074. <td>body</td>
  11075. <td>string</td>
  11076. <td>true</td>
  11077. <td>names of the custom field</td>
  11078. </tr>
  11079. </tbody>
  11080. </table>
  11081. <blockquote>
  11082. <p>Example responses</p>
  11083. </blockquote>
  11084. <blockquote>
  11085. <p>200 Response</p>
  11086. </blockquote>
  11087. <pre class="highlight tab tab-json"><code>{
  11088. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11089. }
  11090. </code></pre>
  11091. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  11092. <table>
  11093. <thead>
  11094. <tr>
  11095. <th>Status</th>
  11096. <th>Meaning</th>
  11097. <th>Description</th>
  11098. <th>Schema</th>
  11099. </tr>
  11100. </thead>
  11101. <tbody>
  11102. <tr>
  11103. <td>200</td>
  11104. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11105. <td>200 response</td>
  11106. <td>Inline</td>
  11107. </tr>
  11108. </tbody>
  11109. </table>
  11110. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11111. <p>Status Code <strong>200</strong></p>
  11112. <table>
  11113. <thead>
  11114. <tr>
  11115. <th>Name</th>
  11116. <th>Type</th>
  11117. <th>Required</th>
  11118. <th>Restrictions</th>
  11119. <th>Description</th>
  11120. </tr>
  11121. </thead>
  11122. <tbody>
  11123. <tr>
  11124. <td>» _id</td>
  11125. <td>string</td>
  11126. <td>false</td>
  11127. <td>none</td>
  11128. <td>none</td>
  11129. </tr>
  11130. </tbody>
  11131. </table>
  11132. <aside class="warning">
  11133. To perform this operation, you must be authenticated by means of one of the following methods:
  11134. UserSecurity
  11135. </aside>
  11136. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  11137. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  11138. <blockquote>
  11139. <p>Code samples</p>
  11140. </blockquote>
  11141. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11142. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11143. -H <span class="hljs-string">'Accept: application/json'</span> \
  11144. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11145. </code></pre>
  11146. <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
  11147. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11148. <span class="undefined"></span></span></code></pre>
  11149. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11150. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11151. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11152. };
  11153. $.ajax({
  11154. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  11155. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  11156. <span class="hljs-attr">headers</span>: headers,
  11157. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11158. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11159. }
  11160. })
  11161. </code></pre>
  11162. <pre class="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>);
  11163. <span class="hljs-keyword">const</span> headers = {
  11164. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11165. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11166. };
  11167. fetch(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  11168. {
  11169. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  11170. <span class="hljs-attr">headers</span>: headers
  11171. })
  11172. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11173. <span class="hljs-keyword">return</span> res.json();
  11174. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11175. <span class="hljs-built_in">console</span>.log(body);
  11176. });
  11177. </code></pre>
  11178. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11179. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11180. headers = {
  11181. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11182. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11183. }
  11184. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>,
  11185. <span class="hljs-symbol">params:</span> {
  11186. }, <span class="hljs-symbol">headers:</span> headers
  11187. p JSON.parse(result)
  11188. </code></pre>
  11189. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11190. headers = {
  11191. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11192. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11193. }
  11194. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}'</span>, params={
  11195. }, headers = headers)
  11196. <span class="hljs-keyword">print</span> r.json()
  11197. </code></pre>
  11198. <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>);
  11199. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11200. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  11201. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11202. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11203. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11204. String inputLine;
  11205. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11206. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11207. response.append(inputLine);
  11208. }
  11209. in.close();
  11210. System.out.println(response.toString());
  11211. </code></pre>
  11212. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11213. <span class="hljs-keyword">import</span> (
  11214. <span class="hljs-string">"bytes"</span>
  11215. <span class="hljs-string">"net/http"</span>
  11216. )
  11217. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11218. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11219. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11220. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11221. }
  11222. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11223. 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)
  11224. req.Header = headers
  11225. client := &amp;http.Client{}
  11226. resp, err := client.Do(req)
  11227. <span class="hljs-comment">// ...</span>
  11228. }
  11229. </code></pre>
  11230. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11231. <p><em>Update a Custom Field's dropdown items</em></p>
  11232. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  11233. <table>
  11234. <thead>
  11235. <tr>
  11236. <th>Name</th>
  11237. <th>In</th>
  11238. <th>Type</th>
  11239. <th>Required</th>
  11240. <th>Description</th>
  11241. </tr>
  11242. </thead>
  11243. <tbody>
  11244. <tr>
  11245. <td>board</td>
  11246. <td>path</td>
  11247. <td>string</td>
  11248. <td>true</td>
  11249. <td>the board value</td>
  11250. </tr>
  11251. <tr>
  11252. <td>customField</td>
  11253. <td>path</td>
  11254. <td>string</td>
  11255. <td>true</td>
  11256. <td>the customField value</td>
  11257. </tr>
  11258. <tr>
  11259. <td>dropdownItem</td>
  11260. <td>path</td>
  11261. <td>string</td>
  11262. <td>true</td>
  11263. <td>the dropdownItem value</td>
  11264. </tr>
  11265. </tbody>
  11266. </table>
  11267. <blockquote>
  11268. <p>Example responses</p>
  11269. </blockquote>
  11270. <blockquote>
  11271. <p>200 Response</p>
  11272. </blockquote>
  11273. <pre class="highlight tab tab-json"><code>{
  11274. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11275. }
  11276. </code></pre>
  11277. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  11278. <table>
  11279. <thead>
  11280. <tr>
  11281. <th>Status</th>
  11282. <th>Meaning</th>
  11283. <th>Description</th>
  11284. <th>Schema</th>
  11285. </tr>
  11286. </thead>
  11287. <tbody>
  11288. <tr>
  11289. <td>200</td>
  11290. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11291. <td>200 response</td>
  11292. <td>Inline</td>
  11293. </tr>
  11294. </tbody>
  11295. </table>
  11296. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11297. <p>Status Code <strong>200</strong></p>
  11298. <table>
  11299. <thead>
  11300. <tr>
  11301. <th>Name</th>
  11302. <th>Type</th>
  11303. <th>Required</th>
  11304. <th>Restrictions</th>
  11305. <th>Description</th>
  11306. </tr>
  11307. </thead>
  11308. <tbody>
  11309. <tr>
  11310. <td>» _id</td>
  11311. <td>string</td>
  11312. <td>false</td>
  11313. <td>none</td>
  11314. <td>none</td>
  11315. </tr>
  11316. </tbody>
  11317. </table>
  11318. <aside class="warning">
  11319. To perform this operation, you must be authenticated by means of one of the following methods:
  11320. UserSecurity
  11321. </aside>
  11322. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  11323. <h2 id="get_all_integrations">get_all_integrations</h2>
  11324. <p><a id="opIdget_all_integrations"></a></p>
  11325. <blockquote>
  11326. <p>Code samples</p>
  11327. </blockquote>
  11328. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11329. curl -X GET /api/boards/{board}/integrations \
  11330. -H <span class="hljs-string">'Accept: application/json'</span> \
  11331. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11332. </code></pre>
  11333. <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
  11334. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11335. <span class="undefined"></span></span></code></pre>
  11336. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11337. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11338. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11339. };
  11340. $.ajax({
  11341. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11342. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11343. <span class="hljs-attr">headers</span>: headers,
  11344. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11345. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11346. }
  11347. })
  11348. </code></pre>
  11349. <pre class="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>);
  11350. <span class="hljs-keyword">const</span> headers = {
  11351. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11352. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11353. };
  11354. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11355. {
  11356. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11357. <span class="hljs-attr">headers</span>: headers
  11358. })
  11359. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11360. <span class="hljs-keyword">return</span> res.json();
  11361. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11362. <span class="hljs-built_in">console</span>.log(body);
  11363. });
  11364. </code></pre>
  11365. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11366. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11367. headers = {
  11368. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11369. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11370. }
  11371. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11372. <span class="hljs-symbol">params:</span> {
  11373. }, <span class="hljs-symbol">headers:</span> headers
  11374. p JSON.parse(result)
  11375. </code></pre>
  11376. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11377. headers = {
  11378. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11379. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11380. }
  11381. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  11382. }, headers = headers)
  11383. <span class="hljs-keyword">print</span> r.json()
  11384. </code></pre>
  11385. <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>);
  11386. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11387. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11388. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11389. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11390. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11391. String inputLine;
  11392. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11393. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11394. response.append(inputLine);
  11395. }
  11396. in.close();
  11397. System.out.println(response.toString());
  11398. </code></pre>
  11399. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11400. <span class="hljs-keyword">import</span> (
  11401. <span class="hljs-string">"bytes"</span>
  11402. <span class="hljs-string">"net/http"</span>
  11403. )
  11404. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11405. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11406. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11407. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11408. }
  11409. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11410. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  11411. req.Header = headers
  11412. client := &amp;http.Client{}
  11413. resp, err := client.Do(req)
  11414. <span class="hljs-comment">// ...</span>
  11415. }
  11416. </code></pre>
  11417. <p><code>GET /api/boards/{board}/integrations</code></p>
  11418. <p><em>Get all integrations in board</em></p>
  11419. <h3 id="get_all_integrations-parameters">Parameters</h3>
  11420. <table>
  11421. <thead>
  11422. <tr>
  11423. <th>Name</th>
  11424. <th>In</th>
  11425. <th>Type</th>
  11426. <th>Required</th>
  11427. <th>Description</th>
  11428. </tr>
  11429. </thead>
  11430. <tbody>
  11431. <tr>
  11432. <td>board</td>
  11433. <td>path</td>
  11434. <td>string</td>
  11435. <td>true</td>
  11436. <td>the board ID</td>
  11437. </tr>
  11438. </tbody>
  11439. </table>
  11440. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11441. <p><strong>board</strong>: the board ID</p>
  11442. <blockquote>
  11443. <p>Example responses</p>
  11444. </blockquote>
  11445. <blockquote>
  11446. <p>200 Response</p>
  11447. </blockquote>
  11448. <pre class="highlight tab tab-json"><code>[
  11449. {
  11450. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  11451. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11452. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  11453. <span class="hljs-attr">"activities"</span>: [
  11454. <span class="hljs-string">"string"</span>
  11455. ],
  11456. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  11457. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  11458. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11459. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11460. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11461. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  11462. }
  11463. ]
  11464. </code></pre>
  11465. <h3 id="get_all_integrations-responses">Responses</h3>
  11466. <table>
  11467. <thead>
  11468. <tr>
  11469. <th>Status</th>
  11470. <th>Meaning</th>
  11471. <th>Description</th>
  11472. <th>Schema</th>
  11473. </tr>
  11474. </thead>
  11475. <tbody>
  11476. <tr>
  11477. <td>200</td>
  11478. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11479. <td>200 response</td>
  11480. <td>Inline</td>
  11481. </tr>
  11482. </tbody>
  11483. </table>
  11484. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11485. <p>Status Code <strong>200</strong></p>
  11486. <table>
  11487. <thead>
  11488. <tr>
  11489. <th>Name</th>
  11490. <th>Type</th>
  11491. <th>Required</th>
  11492. <th>Restrictions</th>
  11493. <th>Description</th>
  11494. </tr>
  11495. </thead>
  11496. <tbody>
  11497. <tr>
  11498. <td><em>anonymous</em></td>
  11499. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11500. <td>false</td>
  11501. <td>none</td>
  11502. <td>[Integration with third-party applications]</td>
  11503. </tr>
  11504. <tr>
  11505. <td>» enabled</td>
  11506. <td>boolean</td>
  11507. <td>true</td>
  11508. <td>none</td>
  11509. <td>is the integration enabled?</td>
  11510. </tr>
  11511. <tr>
  11512. <td>» title</td>
  11513. <td>string|null</td>
  11514. <td>false</td>
  11515. <td>none</td>
  11516. <td>name of the integration</td>
  11517. </tr>
  11518. <tr>
  11519. <td>» type</td>
  11520. <td>string</td>
  11521. <td>true</td>
  11522. <td>none</td>
  11523. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11524. </tr>
  11525. <tr>
  11526. <td>» activities</td>
  11527. <td>[string]</td>
  11528. <td>true</td>
  11529. <td>none</td>
  11530. <td>activities the integration gets triggered (list)</td>
  11531. </tr>
  11532. <tr>
  11533. <td>» url</td>
  11534. <td>string</td>
  11535. <td>true</td>
  11536. <td>none</td>
  11537. <td>none</td>
  11538. </tr>
  11539. <tr>
  11540. <td>» token</td>
  11541. <td>string|null</td>
  11542. <td>false</td>
  11543. <td>none</td>
  11544. <td>token of the integration</td>
  11545. </tr>
  11546. <tr>
  11547. <td>» boardId</td>
  11548. <td>string</td>
  11549. <td>true</td>
  11550. <td>none</td>
  11551. <td>Board ID of the integration</td>
  11552. </tr>
  11553. <tr>
  11554. <td>» createdAt</td>
  11555. <td>string</td>
  11556. <td>true</td>
  11557. <td>none</td>
  11558. <td>Creation date of the integration</td>
  11559. </tr>
  11560. <tr>
  11561. <td>» modifiedAt</td>
  11562. <td>string</td>
  11563. <td>true</td>
  11564. <td>none</td>
  11565. <td>none</td>
  11566. </tr>
  11567. <tr>
  11568. <td>» userId</td>
  11569. <td>string</td>
  11570. <td>true</td>
  11571. <td>none</td>
  11572. <td>user ID who created the interation</td>
  11573. </tr>
  11574. </tbody>
  11575. </table>
  11576. <aside class="warning">
  11577. To perform this operation, you must be authenticated by means of one of the following methods:
  11578. UserSecurity
  11579. </aside>
  11580. <h2 id="new_integration">new_integration</h2>
  11581. <p><a id="opIdnew_integration"></a></p>
  11582. <blockquote>
  11583. <p>Code samples</p>
  11584. </blockquote>
  11585. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11586. curl -X POST /api/boards/{board}/integrations \
  11587. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11588. -H <span class="hljs-string">'Accept: application/json'</span> \
  11589. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11590. </code></pre>
  11591. <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
  11592. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11593. Accept: application/json
  11594. </span></code></pre>
  11595. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11596. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11597. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11598. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11599. };
  11600. $.ajax({
  11601. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11602. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  11603. <span class="hljs-attr">headers</span>: headers,
  11604. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11605. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11606. }
  11607. })
  11608. </code></pre>
  11609. <pre class="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>);
  11610. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11611. "url": "string"
  11612. }'</span>;
  11613. <span class="hljs-keyword">const</span> headers = {
  11614. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11615. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11616. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11617. };
  11618. fetch(<span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11619. {
  11620. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  11621. <span class="hljs-attr">body</span>: inputBody,
  11622. <span class="hljs-attr">headers</span>: headers
  11623. })
  11624. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11625. <span class="hljs-keyword">return</span> res.json();
  11626. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11627. <span class="hljs-built_in">console</span>.log(body);
  11628. });
  11629. </code></pre>
  11630. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11631. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11632. headers = {
  11633. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  11634. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11635. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11636. }
  11637. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations'</span>,
  11638. <span class="hljs-symbol">params:</span> {
  11639. }, <span class="hljs-symbol">headers:</span> headers
  11640. p JSON.parse(result)
  11641. </code></pre>
  11642. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11643. headers = {
  11644. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  11645. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11646. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11647. }
  11648. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations'</span>, params={
  11649. }, headers = headers)
  11650. <span class="hljs-keyword">print</span> r.json()
  11651. </code></pre>
  11652. <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>);
  11653. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11654. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  11655. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11656. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11657. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11658. String inputLine;
  11659. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11660. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11661. response.append(inputLine);
  11662. }
  11663. in.close();
  11664. System.out.println(response.toString());
  11665. </code></pre>
  11666. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11667. <span class="hljs-keyword">import</span> (
  11668. <span class="hljs-string">"bytes"</span>
  11669. <span class="hljs-string">"net/http"</span>
  11670. )
  11671. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11672. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11673. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  11674. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11675. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11676. }
  11677. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11678. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations"</span>, data)
  11679. req.Header = headers
  11680. client := &amp;http.Client{}
  11681. resp, err := client.Do(req)
  11682. <span class="hljs-comment">// ...</span>
  11683. }
  11684. </code></pre>
  11685. <p><code>POST /api/boards/{board}/integrations</code></p>
  11686. <p><em>Create a new integration</em></p>
  11687. <blockquote>
  11688. <p>Body parameter</p>
  11689. </blockquote>
  11690. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11691. </code></pre>
  11692. <h3 id="new_integration-parameters">Parameters</h3>
  11693. <table>
  11694. <thead>
  11695. <tr>
  11696. <th>Name</th>
  11697. <th>In</th>
  11698. <th>Type</th>
  11699. <th>Required</th>
  11700. <th>Description</th>
  11701. </tr>
  11702. </thead>
  11703. <tbody>
  11704. <tr>
  11705. <td>board</td>
  11706. <td>path</td>
  11707. <td>string</td>
  11708. <td>true</td>
  11709. <td>the board ID</td>
  11710. </tr>
  11711. <tr>
  11712. <td>body</td>
  11713. <td>body</td>
  11714. <td>object</td>
  11715. <td>false</td>
  11716. <td>none</td>
  11717. </tr>
  11718. <tr>
  11719. <td>» url</td>
  11720. <td>body</td>
  11721. <td>string</td>
  11722. <td>true</td>
  11723. <td>the URL of the integration</td>
  11724. </tr>
  11725. </tbody>
  11726. </table>
  11727. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11728. <p><strong>board</strong>: the board ID</p>
  11729. <blockquote>
  11730. <p>Example responses</p>
  11731. </blockquote>
  11732. <blockquote>
  11733. <p>200 Response</p>
  11734. </blockquote>
  11735. <pre class="highlight tab tab-json"><code>{
  11736. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  11737. }
  11738. </code></pre>
  11739. <h3 id="new_integration-responses">Responses</h3>
  11740. <table>
  11741. <thead>
  11742. <tr>
  11743. <th>Status</th>
  11744. <th>Meaning</th>
  11745. <th>Description</th>
  11746. <th>Schema</th>
  11747. </tr>
  11748. </thead>
  11749. <tbody>
  11750. <tr>
  11751. <td>200</td>
  11752. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11753. <td>200 response</td>
  11754. <td>Inline</td>
  11755. </tr>
  11756. </tbody>
  11757. </table>
  11758. <h3 id="new_integration-responseschema">Response Schema</h3>
  11759. <p>Status Code <strong>200</strong></p>
  11760. <table>
  11761. <thead>
  11762. <tr>
  11763. <th>Name</th>
  11764. <th>Type</th>
  11765. <th>Required</th>
  11766. <th>Restrictions</th>
  11767. <th>Description</th>
  11768. </tr>
  11769. </thead>
  11770. <tbody>
  11771. <tr>
  11772. <td>» _id</td>
  11773. <td>string</td>
  11774. <td>false</td>
  11775. <td>none</td>
  11776. <td>none</td>
  11777. </tr>
  11778. </tbody>
  11779. </table>
  11780. <aside class="warning">
  11781. To perform this operation, you must be authenticated by means of one of the following methods:
  11782. UserSecurity
  11783. </aside>
  11784. <h2 id="get_integration">get_integration</h2>
  11785. <p><a id="opIdget_integration"></a></p>
  11786. <blockquote>
  11787. <p>Code samples</p>
  11788. </blockquote>
  11789. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11790. curl -X GET /api/boards/{board}/integrations/{int} \
  11791. -H <span class="hljs-string">'Accept: application/json'</span> \
  11792. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11793. </code></pre>
  11794. <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
  11795. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  11796. <span class="undefined"></span></span></code></pre>
  11797. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11798. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11799. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11800. };
  11801. $.ajax({
  11802. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11803. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  11804. <span class="hljs-attr">headers</span>: headers,
  11805. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11806. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11807. }
  11808. })
  11809. </code></pre>
  11810. <pre class="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>);
  11811. <span class="hljs-keyword">const</span> headers = {
  11812. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11813. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11814. };
  11815. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11816. {
  11817. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  11818. <span class="hljs-attr">headers</span>: headers
  11819. })
  11820. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11821. <span class="hljs-keyword">return</span> res.json();
  11822. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11823. <span class="hljs-built_in">console</span>.log(body);
  11824. });
  11825. </code></pre>
  11826. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  11827. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  11828. headers = {
  11829. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  11830. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  11831. }
  11832. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11833. <span class="hljs-symbol">params:</span> {
  11834. }, <span class="hljs-symbol">headers:</span> headers
  11835. p JSON.parse(result)
  11836. </code></pre>
  11837. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11838. headers = {
  11839. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  11840. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  11841. }
  11842. r = requests.get(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  11843. }, headers = headers)
  11844. <span class="hljs-keyword">print</span> r.json()
  11845. </code></pre>
  11846. <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>);
  11847. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11848. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  11849. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11850. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11851. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11852. String inputLine;
  11853. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11854. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11855. response.append(inputLine);
  11856. }
  11857. in.close();
  11858. System.out.println(response.toString());
  11859. </code></pre>
  11860. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11861. <span class="hljs-keyword">import</span> (
  11862. <span class="hljs-string">"bytes"</span>
  11863. <span class="hljs-string">"net/http"</span>
  11864. )
  11865. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11866. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11867. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  11868. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  11869. }
  11870. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11871. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  11872. req.Header = headers
  11873. client := &amp;http.Client{}
  11874. resp, err := client.Do(req)
  11875. <span class="hljs-comment">// ...</span>
  11876. }
  11877. </code></pre>
  11878. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11879. <p><em>Get a single integration in board</em></p>
  11880. <h3 id="get_integration-parameters">Parameters</h3>
  11881. <table>
  11882. <thead>
  11883. <tr>
  11884. <th>Name</th>
  11885. <th>In</th>
  11886. <th>Type</th>
  11887. <th>Required</th>
  11888. <th>Description</th>
  11889. </tr>
  11890. </thead>
  11891. <tbody>
  11892. <tr>
  11893. <td>board</td>
  11894. <td>path</td>
  11895. <td>string</td>
  11896. <td>true</td>
  11897. <td>the board ID</td>
  11898. </tr>
  11899. <tr>
  11900. <td>int</td>
  11901. <td>path</td>
  11902. <td>string</td>
  11903. <td>true</td>
  11904. <td>the integration ID</td>
  11905. </tr>
  11906. </tbody>
  11907. </table>
  11908. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  11909. <p><strong>board</strong>: the board ID</p>
  11910. <p><strong>int</strong>: the integration ID</p>
  11911. <blockquote>
  11912. <p>Example responses</p>
  11913. </blockquote>
  11914. <blockquote>
  11915. <p>200 Response</p>
  11916. </blockquote>
  11917. <pre class="highlight tab tab-json"><code>{
  11918. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  11919. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  11920. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  11921. <span class="hljs-attr">"activities"</span>: [
  11922. <span class="hljs-string">"string"</span>
  11923. ],
  11924. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  11925. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  11926. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  11927. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  11928. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  11929. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  11930. }
  11931. </code></pre>
  11932. <h3 id="get_integration-responses">Responses</h3>
  11933. <table>
  11934. <thead>
  11935. <tr>
  11936. <th>Status</th>
  11937. <th>Meaning</th>
  11938. <th>Description</th>
  11939. <th>Schema</th>
  11940. </tr>
  11941. </thead>
  11942. <tbody>
  11943. <tr>
  11944. <td>200</td>
  11945. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11946. <td>200 response</td>
  11947. <td><a href="#schemaintegrations">Integrations</a></td>
  11948. </tr>
  11949. </tbody>
  11950. </table>
  11951. <aside class="warning">
  11952. To perform this operation, you must be authenticated by means of one of the following methods:
  11953. UserSecurity
  11954. </aside>
  11955. <h2 id="edit_integration">edit_integration</h2>
  11956. <p><a id="opIdedit_integration"></a></p>
  11957. <blockquote>
  11958. <p>Code samples</p>
  11959. </blockquote>
  11960. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11961. curl -X PUT /api/boards/{board}/integrations/{int} \
  11962. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  11963. -H <span class="hljs-string">'Accept: application/json'</span> \
  11964. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  11965. </code></pre>
  11966. <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
  11967. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11968. Accept: application/json
  11969. </span></code></pre>
  11970. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  11971. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11972. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11973. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11974. };
  11975. $.ajax({
  11976. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11977. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  11978. <span class="hljs-attr">headers</span>: headers,
  11979. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  11980. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  11981. }
  11982. })
  11983. </code></pre>
  11984. <pre class="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>);
  11985. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  11986. "enabled": "string",
  11987. "title": "string",
  11988. "url": "string",
  11989. "token": "string",
  11990. "activities": "string"
  11991. }'</span>;
  11992. <span class="hljs-keyword">const</span> headers = {
  11993. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  11994. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  11995. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  11996. };
  11997. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  11998. {
  11999. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  12000. <span class="hljs-attr">body</span>: inputBody,
  12001. <span class="hljs-attr">headers</span>: headers
  12002. })
  12003. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12004. <span class="hljs-keyword">return</span> res.json();
  12005. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12006. <span class="hljs-built_in">console</span>.log(body);
  12007. });
  12008. </code></pre>
  12009. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12010. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12011. headers = {
  12012. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  12013. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12014. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12015. }
  12016. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12017. <span class="hljs-symbol">params:</span> {
  12018. }, <span class="hljs-symbol">headers:</span> headers
  12019. p JSON.parse(result)
  12020. </code></pre>
  12021. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12022. headers = {
  12023. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  12024. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12025. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12026. }
  12027. r = requests.put(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  12028. }, headers = headers)
  12029. <span class="hljs-keyword">print</span> r.json()
  12030. </code></pre>
  12031. <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>);
  12032. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12033. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  12034. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12035. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12036. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12037. String inputLine;
  12038. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12039. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12040. response.append(inputLine);
  12041. }
  12042. in.close();
  12043. System.out.println(response.toString());
  12044. </code></pre>
  12045. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12046. <span class="hljs-keyword">import</span> (
  12047. <span class="hljs-string">"bytes"</span>
  12048. <span class="hljs-string">"net/http"</span>
  12049. )
  12050. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12051. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12052. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  12053. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12054. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12055. }
  12056. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12057. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  12058. req.Header = headers
  12059. client := &amp;http.Client{}
  12060. resp, err := client.Do(req)
  12061. <span class="hljs-comment">// ...</span>
  12062. }
  12063. </code></pre>
  12064. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  12065. <p><em>Edit integration data</em></p>
  12066. <blockquote>
  12067. <p>Body parameter</p>
  12068. </blockquote>
  12069. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  12070. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12071. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12072. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  12073. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12074. </code></pre>
  12075. <h3 id="edit_integration-parameters">Parameters</h3>
  12076. <table>
  12077. <thead>
  12078. <tr>
  12079. <th>Name</th>
  12080. <th>In</th>
  12081. <th>Type</th>
  12082. <th>Required</th>
  12083. <th>Description</th>
  12084. </tr>
  12085. </thead>
  12086. <tbody>
  12087. <tr>
  12088. <td>board</td>
  12089. <td>path</td>
  12090. <td>string</td>
  12091. <td>true</td>
  12092. <td>the board ID</td>
  12093. </tr>
  12094. <tr>
  12095. <td>int</td>
  12096. <td>path</td>
  12097. <td>string</td>
  12098. <td>true</td>
  12099. <td>the integration ID</td>
  12100. </tr>
  12101. <tr>
  12102. <td>body</td>
  12103. <td>body</td>
  12104. <td>object</td>
  12105. <td>false</td>
  12106. <td>none</td>
  12107. </tr>
  12108. <tr>
  12109. <td>» enabled</td>
  12110. <td>body</td>
  12111. <td>string</td>
  12112. <td>false</td>
  12113. <td>is the integration enabled?</td>
  12114. </tr>
  12115. <tr>
  12116. <td>» title</td>
  12117. <td>body</td>
  12118. <td>string</td>
  12119. <td>false</td>
  12120. <td>new name of the integration</td>
  12121. </tr>
  12122. <tr>
  12123. <td>» url</td>
  12124. <td>body</td>
  12125. <td>string</td>
  12126. <td>false</td>
  12127. <td>new URL of the integration</td>
  12128. </tr>
  12129. <tr>
  12130. <td>» token</td>
  12131. <td>body</td>
  12132. <td>string</td>
  12133. <td>false</td>
  12134. <td>new token of the integration</td>
  12135. </tr>
  12136. <tr>
  12137. <td>» activities</td>
  12138. <td>body</td>
  12139. <td>string</td>
  12140. <td>false</td>
  12141. <td>new list of activities of the integration</td>
  12142. </tr>
  12143. </tbody>
  12144. </table>
  12145. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12146. <p><strong>board</strong>: the board ID</p>
  12147. <p><strong>int</strong>: the integration ID</p>
  12148. <blockquote>
  12149. <p>Example responses</p>
  12150. </blockquote>
  12151. <blockquote>
  12152. <p>200 Response</p>
  12153. </blockquote>
  12154. <pre class="highlight tab tab-json"><code>{
  12155. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  12156. }
  12157. </code></pre>
  12158. <h3 id="edit_integration-responses">Responses</h3>
  12159. <table>
  12160. <thead>
  12161. <tr>
  12162. <th>Status</th>
  12163. <th>Meaning</th>
  12164. <th>Description</th>
  12165. <th>Schema</th>
  12166. </tr>
  12167. </thead>
  12168. <tbody>
  12169. <tr>
  12170. <td>200</td>
  12171. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12172. <td>200 response</td>
  12173. <td>Inline</td>
  12174. </tr>
  12175. </tbody>
  12176. </table>
  12177. <h3 id="edit_integration-responseschema">Response Schema</h3>
  12178. <p>Status Code <strong>200</strong></p>
  12179. <table>
  12180. <thead>
  12181. <tr>
  12182. <th>Name</th>
  12183. <th>Type</th>
  12184. <th>Required</th>
  12185. <th>Restrictions</th>
  12186. <th>Description</th>
  12187. </tr>
  12188. </thead>
  12189. <tbody>
  12190. <tr>
  12191. <td>» _id</td>
  12192. <td>string</td>
  12193. <td>false</td>
  12194. <td>none</td>
  12195. <td>none</td>
  12196. </tr>
  12197. </tbody>
  12198. </table>
  12199. <aside class="warning">
  12200. To perform this operation, you must be authenticated by means of one of the following methods:
  12201. UserSecurity
  12202. </aside>
  12203. <h2 id="delete_integration">delete_integration</h2>
  12204. <p><a id="opIddelete_integration"></a></p>
  12205. <blockquote>
  12206. <p>Code samples</p>
  12207. </blockquote>
  12208. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12209. curl -X DELETE /api/boards/{board}/integrations/{int} \
  12210. -H <span class="hljs-string">'Accept: application/json'</span> \
  12211. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12212. </code></pre>
  12213. <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
  12214. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12215. <span class="undefined"></span></span></code></pre>
  12216. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12217. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12218. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12219. };
  12220. $.ajax({
  12221. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12222. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  12223. <span class="hljs-attr">headers</span>: headers,
  12224. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12225. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12226. }
  12227. })
  12228. </code></pre>
  12229. <pre class="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>);
  12230. <span class="hljs-keyword">const</span> headers = {
  12231. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12232. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12233. };
  12234. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12235. {
  12236. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  12237. <span class="hljs-attr">headers</span>: headers
  12238. })
  12239. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12240. <span class="hljs-keyword">return</span> res.json();
  12241. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12242. <span class="hljs-built_in">console</span>.log(body);
  12243. });
  12244. </code></pre>
  12245. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12246. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12247. headers = {
  12248. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12249. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12250. }
  12251. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>,
  12252. <span class="hljs-symbol">params:</span> {
  12253. }, <span class="hljs-symbol">headers:</span> headers
  12254. p JSON.parse(result)
  12255. </code></pre>
  12256. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12257. headers = {
  12258. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12259. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12260. }
  12261. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}'</span>, params={
  12262. }, headers = headers)
  12263. <span class="hljs-keyword">print</span> r.json()
  12264. </code></pre>
  12265. <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>);
  12266. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12267. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  12268. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12269. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12270. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12271. String inputLine;
  12272. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12273. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12274. response.append(inputLine);
  12275. }
  12276. in.close();
  12277. System.out.println(response.toString());
  12278. </code></pre>
  12279. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12280. <span class="hljs-keyword">import</span> (
  12281. <span class="hljs-string">"bytes"</span>
  12282. <span class="hljs-string">"net/http"</span>
  12283. )
  12284. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12285. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12286. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12287. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12288. }
  12289. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12290. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}"</span>, data)
  12291. req.Header = headers
  12292. client := &amp;http.Client{}
  12293. resp, err := client.Do(req)
  12294. <span class="hljs-comment">// ...</span>
  12295. }
  12296. </code></pre>
  12297. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  12298. <p><em>Delete integration</em></p>
  12299. <h3 id="delete_integration-parameters">Parameters</h3>
  12300. <table>
  12301. <thead>
  12302. <tr>
  12303. <th>Name</th>
  12304. <th>In</th>
  12305. <th>Type</th>
  12306. <th>Required</th>
  12307. <th>Description</th>
  12308. </tr>
  12309. </thead>
  12310. <tbody>
  12311. <tr>
  12312. <td>board</td>
  12313. <td>path</td>
  12314. <td>string</td>
  12315. <td>true</td>
  12316. <td>the board ID</td>
  12317. </tr>
  12318. <tr>
  12319. <td>int</td>
  12320. <td>path</td>
  12321. <td>string</td>
  12322. <td>true</td>
  12323. <td>the integration ID</td>
  12324. </tr>
  12325. </tbody>
  12326. </table>
  12327. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12328. <p><strong>board</strong>: the board ID</p>
  12329. <p><strong>int</strong>: the integration ID</p>
  12330. <blockquote>
  12331. <p>Example responses</p>
  12332. </blockquote>
  12333. <blockquote>
  12334. <p>200 Response</p>
  12335. </blockquote>
  12336. <pre class="highlight tab tab-json"><code>{
  12337. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  12338. }
  12339. </code></pre>
  12340. <h3 id="delete_integration-responses">Responses</h3>
  12341. <table>
  12342. <thead>
  12343. <tr>
  12344. <th>Status</th>
  12345. <th>Meaning</th>
  12346. <th>Description</th>
  12347. <th>Schema</th>
  12348. </tr>
  12349. </thead>
  12350. <tbody>
  12351. <tr>
  12352. <td>200</td>
  12353. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12354. <td>200 response</td>
  12355. <td>Inline</td>
  12356. </tr>
  12357. </tbody>
  12358. </table>
  12359. <h3 id="delete_integration-responseschema">Response Schema</h3>
  12360. <p>Status Code <strong>200</strong></p>
  12361. <table>
  12362. <thead>
  12363. <tr>
  12364. <th>Name</th>
  12365. <th>Type</th>
  12366. <th>Required</th>
  12367. <th>Restrictions</th>
  12368. <th>Description</th>
  12369. </tr>
  12370. </thead>
  12371. <tbody>
  12372. <tr>
  12373. <td>» _id</td>
  12374. <td>string</td>
  12375. <td>false</td>
  12376. <td>none</td>
  12377. <td>none</td>
  12378. </tr>
  12379. </tbody>
  12380. </table>
  12381. <aside class="warning">
  12382. To perform this operation, you must be authenticated by means of one of the following methods:
  12383. UserSecurity
  12384. </aside>
  12385. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12386. <p><a id="opIddelete_integration_activities"></a></p>
  12387. <blockquote>
  12388. <p>Code samples</p>
  12389. </blockquote>
  12390. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12391. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12392. -H <span class="hljs-string">'Accept: application/json'</span> \
  12393. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12394. </code></pre>
  12395. <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
  12396. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12397. <span class="undefined"></span></span></code></pre>
  12398. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12399. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12400. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12401. };
  12402. $.ajax({
  12403. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12404. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  12405. <span class="hljs-attr">headers</span>: headers,
  12406. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12407. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12408. }
  12409. })
  12410. </code></pre>
  12411. <pre class="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>);
  12412. <span class="hljs-keyword">const</span> headers = {
  12413. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12414. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12415. };
  12416. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12417. {
  12418. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  12419. <span class="hljs-attr">headers</span>: headers
  12420. })
  12421. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12422. <span class="hljs-keyword">return</span> res.json();
  12423. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12424. <span class="hljs-built_in">console</span>.log(body);
  12425. });
  12426. </code></pre>
  12427. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12428. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12429. headers = {
  12430. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12431. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12432. }
  12433. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12434. <span class="hljs-symbol">params:</span> {
  12435. }, <span class="hljs-symbol">headers:</span> headers
  12436. p JSON.parse(result)
  12437. </code></pre>
  12438. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12439. headers = {
  12440. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12441. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12442. }
  12443. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  12444. }, headers = headers)
  12445. <span class="hljs-keyword">print</span> r.json()
  12446. </code></pre>
  12447. <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>);
  12448. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12449. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  12450. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12451. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12452. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12453. String inputLine;
  12454. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12455. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12456. response.append(inputLine);
  12457. }
  12458. in.close();
  12459. System.out.println(response.toString());
  12460. </code></pre>
  12461. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12462. <span class="hljs-keyword">import</span> (
  12463. <span class="hljs-string">"bytes"</span>
  12464. <span class="hljs-string">"net/http"</span>
  12465. )
  12466. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12467. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12468. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12469. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12470. }
  12471. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12472. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  12473. req.Header = headers
  12474. client := &amp;http.Client{}
  12475. resp, err := client.Do(req)
  12476. <span class="hljs-comment">// ...</span>
  12477. }
  12478. </code></pre>
  12479. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12480. <p><em>Delete subscribed activities</em></p>
  12481. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12482. <table>
  12483. <thead>
  12484. <tr>
  12485. <th>Name</th>
  12486. <th>In</th>
  12487. <th>Type</th>
  12488. <th>Required</th>
  12489. <th>Description</th>
  12490. </tr>
  12491. </thead>
  12492. <tbody>
  12493. <tr>
  12494. <td>board</td>
  12495. <td>path</td>
  12496. <td>string</td>
  12497. <td>true</td>
  12498. <td>the board ID</td>
  12499. </tr>
  12500. <tr>
  12501. <td>int</td>
  12502. <td>path</td>
  12503. <td>string</td>
  12504. <td>true</td>
  12505. <td>the integration ID</td>
  12506. </tr>
  12507. </tbody>
  12508. </table>
  12509. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12510. <p><strong>board</strong>: the board ID</p>
  12511. <p><strong>int</strong>: the integration ID</p>
  12512. <blockquote>
  12513. <p>Example responses</p>
  12514. </blockquote>
  12515. <blockquote>
  12516. <p>200 Response</p>
  12517. </blockquote>
  12518. <pre class="highlight tab tab-json"><code>{
  12519. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  12520. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12521. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  12522. <span class="hljs-attr">"activities"</span>: [
  12523. <span class="hljs-string">"string"</span>
  12524. ],
  12525. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  12526. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  12527. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12528. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12529. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12530. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  12531. }
  12532. </code></pre>
  12533. <h3 id="delete_integration_activities-responses">Responses</h3>
  12534. <table>
  12535. <thead>
  12536. <tr>
  12537. <th>Status</th>
  12538. <th>Meaning</th>
  12539. <th>Description</th>
  12540. <th>Schema</th>
  12541. </tr>
  12542. </thead>
  12543. <tbody>
  12544. <tr>
  12545. <td>200</td>
  12546. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12547. <td>200 response</td>
  12548. <td><a href="#schemaintegrations">Integrations</a></td>
  12549. </tr>
  12550. </tbody>
  12551. </table>
  12552. <aside class="warning">
  12553. To perform this operation, you must be authenticated by means of one of the following methods:
  12554. UserSecurity
  12555. </aside>
  12556. <h2 id="new_integration_activities">new_integration_activities</h2>
  12557. <p><a id="opIdnew_integration_activities"></a></p>
  12558. <blockquote>
  12559. <p>Code samples</p>
  12560. </blockquote>
  12561. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12562. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12563. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  12564. -H <span class="hljs-string">'Accept: application/json'</span> \
  12565. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12566. </code></pre>
  12567. <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
  12568. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12569. Accept: application/json
  12570. </span></code></pre>
  12571. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12572. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12573. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12574. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12575. };
  12576. $.ajax({
  12577. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12578. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  12579. <span class="hljs-attr">headers</span>: headers,
  12580. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12581. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12582. }
  12583. })
  12584. </code></pre>
  12585. <pre class="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>);
  12586. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  12587. "activities": "string"
  12588. }'</span>;
  12589. <span class="hljs-keyword">const</span> headers = {
  12590. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12591. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12592. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12593. };
  12594. fetch(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12595. {
  12596. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  12597. <span class="hljs-attr">body</span>: inputBody,
  12598. <span class="hljs-attr">headers</span>: headers
  12599. })
  12600. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12601. <span class="hljs-keyword">return</span> res.json();
  12602. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12603. <span class="hljs-built_in">console</span>.log(body);
  12604. });
  12605. </code></pre>
  12606. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12607. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12608. headers = {
  12609. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  12610. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12611. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12612. }
  12613. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>,
  12614. <span class="hljs-symbol">params:</span> {
  12615. }, <span class="hljs-symbol">headers:</span> headers
  12616. p JSON.parse(result)
  12617. </code></pre>
  12618. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12619. headers = {
  12620. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  12621. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12622. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12623. }
  12624. r = requests.post(<span class="hljs-string">'/api/boards/{board}/integrations/{int}/activities'</span>, params={
  12625. }, headers = headers)
  12626. <span class="hljs-keyword">print</span> r.json()
  12627. </code></pre>
  12628. <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>);
  12629. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12630. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  12631. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12632. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12633. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12634. String inputLine;
  12635. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12636. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12637. response.append(inputLine);
  12638. }
  12639. in.close();
  12640. System.out.println(response.toString());
  12641. </code></pre>
  12642. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12643. <span class="hljs-keyword">import</span> (
  12644. <span class="hljs-string">"bytes"</span>
  12645. <span class="hljs-string">"net/http"</span>
  12646. )
  12647. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12648. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12649. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  12650. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12651. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12652. }
  12653. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12654. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/integrations/{int}/activities"</span>, data)
  12655. req.Header = headers
  12656. client := &amp;http.Client{}
  12657. resp, err := client.Do(req)
  12658. <span class="hljs-comment">// ...</span>
  12659. }
  12660. </code></pre>
  12661. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12662. <p><em>Add subscribed activities</em></p>
  12663. <blockquote>
  12664. <p>Body parameter</p>
  12665. </blockquote>
  12666. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12667. </code></pre>
  12668. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12669. <table>
  12670. <thead>
  12671. <tr>
  12672. <th>Name</th>
  12673. <th>In</th>
  12674. <th>Type</th>
  12675. <th>Required</th>
  12676. <th>Description</th>
  12677. </tr>
  12678. </thead>
  12679. <tbody>
  12680. <tr>
  12681. <td>board</td>
  12682. <td>path</td>
  12683. <td>string</td>
  12684. <td>true</td>
  12685. <td>the board ID</td>
  12686. </tr>
  12687. <tr>
  12688. <td>int</td>
  12689. <td>path</td>
  12690. <td>string</td>
  12691. <td>true</td>
  12692. <td>the integration ID</td>
  12693. </tr>
  12694. <tr>
  12695. <td>body</td>
  12696. <td>body</td>
  12697. <td>object</td>
  12698. <td>false</td>
  12699. <td>none</td>
  12700. </tr>
  12701. <tr>
  12702. <td>» activities</td>
  12703. <td>body</td>
  12704. <td>string</td>
  12705. <td>true</td>
  12706. <td>the activities value</td>
  12707. </tr>
  12708. </tbody>
  12709. </table>
  12710. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12711. <p><strong>board</strong>: the board ID</p>
  12712. <p><strong>int</strong>: the integration ID</p>
  12713. <blockquote>
  12714. <p>Example responses</p>
  12715. </blockquote>
  12716. <blockquote>
  12717. <p>200 Response</p>
  12718. </blockquote>
  12719. <pre class="highlight tab tab-json"><code>{
  12720. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  12721. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  12722. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  12723. <span class="hljs-attr">"activities"</span>: [
  12724. <span class="hljs-string">"string"</span>
  12725. ],
  12726. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  12727. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  12728. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  12729. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  12730. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  12731. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  12732. }
  12733. </code></pre>
  12734. <h3 id="new_integration_activities-responses">Responses</h3>
  12735. <table>
  12736. <thead>
  12737. <tr>
  12738. <th>Status</th>
  12739. <th>Meaning</th>
  12740. <th>Description</th>
  12741. <th>Schema</th>
  12742. </tr>
  12743. </thead>
  12744. <tbody>
  12745. <tr>
  12746. <td>200</td>
  12747. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12748. <td>200 response</td>
  12749. <td><a href="#schemaintegrations">Integrations</a></td>
  12750. </tr>
  12751. </tbody>
  12752. </table>
  12753. <aside class="warning">
  12754. To perform this operation, you must be authenticated by means of one of the following methods:
  12755. UserSecurity
  12756. </aside>
  12757. <h1 id="wekan-rest-api-lists">Lists</h1>
  12758. <h2 id="get_all_lists">get_all_lists</h2>
  12759. <p><a id="opIdget_all_lists"></a></p>
  12760. <blockquote>
  12761. <p>Code samples</p>
  12762. </blockquote>
  12763. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12764. curl -X GET /api/boards/{board}/lists \
  12765. -H <span class="hljs-string">'Accept: application/json'</span> \
  12766. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12767. </code></pre>
  12768. <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
  12769. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  12770. <span class="undefined"></span></span></code></pre>
  12771. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12772. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12773. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12774. };
  12775. $.ajax({
  12776. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12777. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  12778. <span class="hljs-attr">headers</span>: headers,
  12779. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12780. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12781. }
  12782. })
  12783. </code></pre>
  12784. <pre class="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>);
  12785. <span class="hljs-keyword">const</span> headers = {
  12786. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12787. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12788. };
  12789. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12790. {
  12791. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  12792. <span class="hljs-attr">headers</span>: headers
  12793. })
  12794. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12795. <span class="hljs-keyword">return</span> res.json();
  12796. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12797. <span class="hljs-built_in">console</span>.log(body);
  12798. });
  12799. </code></pre>
  12800. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12801. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12802. headers = {
  12803. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12804. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12805. }
  12806. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12807. <span class="hljs-symbol">params:</span> {
  12808. }, <span class="hljs-symbol">headers:</span> headers
  12809. p JSON.parse(result)
  12810. </code></pre>
  12811. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12812. headers = {
  12813. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  12814. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  12815. }
  12816. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  12817. }, headers = headers)
  12818. <span class="hljs-keyword">print</span> r.json()
  12819. </code></pre>
  12820. <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>);
  12821. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12822. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  12823. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12824. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12825. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12826. String inputLine;
  12827. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12828. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12829. response.append(inputLine);
  12830. }
  12831. in.close();
  12832. System.out.println(response.toString());
  12833. </code></pre>
  12834. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12835. <span class="hljs-keyword">import</span> (
  12836. <span class="hljs-string">"bytes"</span>
  12837. <span class="hljs-string">"net/http"</span>
  12838. )
  12839. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12840. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12841. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  12842. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  12843. }
  12844. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12845. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  12846. req.Header = headers
  12847. client := &amp;http.Client{}
  12848. resp, err := client.Do(req)
  12849. <span class="hljs-comment">// ...</span>
  12850. }
  12851. </code></pre>
  12852. <p><code>GET /api/boards/{board}/lists</code></p>
  12853. <p><em>Get the list of Lists attached to a board</em></p>
  12854. <h3 id="get_all_lists-parameters">Parameters</h3>
  12855. <table>
  12856. <thead>
  12857. <tr>
  12858. <th>Name</th>
  12859. <th>In</th>
  12860. <th>Type</th>
  12861. <th>Required</th>
  12862. <th>Description</th>
  12863. </tr>
  12864. </thead>
  12865. <tbody>
  12866. <tr>
  12867. <td>board</td>
  12868. <td>path</td>
  12869. <td>string</td>
  12870. <td>true</td>
  12871. <td>the board ID</td>
  12872. </tr>
  12873. </tbody>
  12874. </table>
  12875. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  12876. <p><strong>board</strong>: the board ID</p>
  12877. <blockquote>
  12878. <p>Example responses</p>
  12879. </blockquote>
  12880. <blockquote>
  12881. <p>200 Response</p>
  12882. </blockquote>
  12883. <pre class="highlight tab tab-json"><code>[
  12884. {
  12885. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  12886. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  12887. }
  12888. ]
  12889. </code></pre>
  12890. <h3 id="get_all_lists-responses">Responses</h3>
  12891. <table>
  12892. <thead>
  12893. <tr>
  12894. <th>Status</th>
  12895. <th>Meaning</th>
  12896. <th>Description</th>
  12897. <th>Schema</th>
  12898. </tr>
  12899. </thead>
  12900. <tbody>
  12901. <tr>
  12902. <td>200</td>
  12903. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12904. <td>200 response</td>
  12905. <td>Inline</td>
  12906. </tr>
  12907. </tbody>
  12908. </table>
  12909. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  12910. <p>Status Code <strong>200</strong></p>
  12911. <table>
  12912. <thead>
  12913. <tr>
  12914. <th>Name</th>
  12915. <th>Type</th>
  12916. <th>Required</th>
  12917. <th>Restrictions</th>
  12918. <th>Description</th>
  12919. </tr>
  12920. </thead>
  12921. <tbody>
  12922. <tr>
  12923. <td>» _id</td>
  12924. <td>string</td>
  12925. <td>false</td>
  12926. <td>none</td>
  12927. <td>none</td>
  12928. </tr>
  12929. <tr>
  12930. <td>» title</td>
  12931. <td>string</td>
  12932. <td>false</td>
  12933. <td>none</td>
  12934. <td>none</td>
  12935. </tr>
  12936. </tbody>
  12937. </table>
  12938. <aside class="warning">
  12939. To perform this operation, you must be authenticated by means of one of the following methods:
  12940. UserSecurity
  12941. </aside>
  12942. <h2 id="new_list">new_list</h2>
  12943. <p><a id="opIdnew_list"></a></p>
  12944. <blockquote>
  12945. <p>Code samples</p>
  12946. </blockquote>
  12947. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12948. curl -X POST /api/boards/{board}/lists \
  12949. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  12950. -H <span class="hljs-string">'Accept: application/json'</span> \
  12951. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  12952. </code></pre>
  12953. <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
  12954. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12955. Accept: application/json
  12956. </span></code></pre>
  12957. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  12958. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12959. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12960. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12961. };
  12962. $.ajax({
  12963. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12964. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  12965. <span class="hljs-attr">headers</span>: headers,
  12966. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  12967. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  12968. }
  12969. })
  12970. </code></pre>
  12971. <pre class="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>);
  12972. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  12973. "title": "string"
  12974. }'</span>;
  12975. <span class="hljs-keyword">const</span> headers = {
  12976. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  12977. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  12978. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  12979. };
  12980. fetch(<span class="hljs-string">'/api/boards/{board}/lists'</span>,
  12981. {
  12982. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  12983. <span class="hljs-attr">body</span>: inputBody,
  12984. <span class="hljs-attr">headers</span>: headers
  12985. })
  12986. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12987. <span class="hljs-keyword">return</span> res.json();
  12988. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12989. <span class="hljs-built_in">console</span>.log(body);
  12990. });
  12991. </code></pre>
  12992. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  12993. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  12994. headers = {
  12995. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  12996. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  12997. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  12998. }
  12999. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/lists'</span>,
  13000. <span class="hljs-symbol">params:</span> {
  13001. }, <span class="hljs-symbol">headers:</span> headers
  13002. p JSON.parse(result)
  13003. </code></pre>
  13004. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13005. headers = {
  13006. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  13007. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13008. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13009. }
  13010. r = requests.post(<span class="hljs-string">'/api/boards/{board}/lists'</span>, params={
  13011. }, headers = headers)
  13012. <span class="hljs-keyword">print</span> r.json()
  13013. </code></pre>
  13014. <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>);
  13015. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13016. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  13017. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13018. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13019. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13020. String inputLine;
  13021. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13022. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13023. response.append(inputLine);
  13024. }
  13025. in.close();
  13026. System.out.println(response.toString());
  13027. </code></pre>
  13028. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13029. <span class="hljs-keyword">import</span> (
  13030. <span class="hljs-string">"bytes"</span>
  13031. <span class="hljs-string">"net/http"</span>
  13032. )
  13033. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13034. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13035. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  13036. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13037. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13038. }
  13039. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13040. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/lists"</span>, data)
  13041. req.Header = headers
  13042. client := &amp;http.Client{}
  13043. resp, err := client.Do(req)
  13044. <span class="hljs-comment">// ...</span>
  13045. }
  13046. </code></pre>
  13047. <p><code>POST /api/boards/{board}/lists</code></p>
  13048. <p><em>Add a List to a board</em></p>
  13049. <blockquote>
  13050. <p>Body parameter</p>
  13051. </blockquote>
  13052. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13053. </code></pre>
  13054. <h3 id="new_list-parameters">Parameters</h3>
  13055. <table>
  13056. <thead>
  13057. <tr>
  13058. <th>Name</th>
  13059. <th>In</th>
  13060. <th>Type</th>
  13061. <th>Required</th>
  13062. <th>Description</th>
  13063. </tr>
  13064. </thead>
  13065. <tbody>
  13066. <tr>
  13067. <td>board</td>
  13068. <td>path</td>
  13069. <td>string</td>
  13070. <td>true</td>
  13071. <td>the board ID</td>
  13072. </tr>
  13073. <tr>
  13074. <td>body</td>
  13075. <td>body</td>
  13076. <td>object</td>
  13077. <td>false</td>
  13078. <td>none</td>
  13079. </tr>
  13080. <tr>
  13081. <td>» title</td>
  13082. <td>body</td>
  13083. <td>string</td>
  13084. <td>true</td>
  13085. <td>the title of the List</td>
  13086. </tr>
  13087. </tbody>
  13088. </table>
  13089. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13090. <p><strong>board</strong>: the board ID</p>
  13091. <blockquote>
  13092. <p>Example responses</p>
  13093. </blockquote>
  13094. <blockquote>
  13095. <p>200 Response</p>
  13096. </blockquote>
  13097. <pre class="highlight tab tab-json"><code>{
  13098. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  13099. }
  13100. </code></pre>
  13101. <h3 id="new_list-responses">Responses</h3>
  13102. <table>
  13103. <thead>
  13104. <tr>
  13105. <th>Status</th>
  13106. <th>Meaning</th>
  13107. <th>Description</th>
  13108. <th>Schema</th>
  13109. </tr>
  13110. </thead>
  13111. <tbody>
  13112. <tr>
  13113. <td>200</td>
  13114. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13115. <td>200 response</td>
  13116. <td>Inline</td>
  13117. </tr>
  13118. </tbody>
  13119. </table>
  13120. <h3 id="new_list-responseschema">Response Schema</h3>
  13121. <p>Status Code <strong>200</strong></p>
  13122. <table>
  13123. <thead>
  13124. <tr>
  13125. <th>Name</th>
  13126. <th>Type</th>
  13127. <th>Required</th>
  13128. <th>Restrictions</th>
  13129. <th>Description</th>
  13130. </tr>
  13131. </thead>
  13132. <tbody>
  13133. <tr>
  13134. <td>» _id</td>
  13135. <td>string</td>
  13136. <td>false</td>
  13137. <td>none</td>
  13138. <td>none</td>
  13139. </tr>
  13140. </tbody>
  13141. </table>
  13142. <aside class="warning">
  13143. To perform this operation, you must be authenticated by means of one of the following methods:
  13144. UserSecurity
  13145. </aside>
  13146. <h2 id="get_list">get_list</h2>
  13147. <p><a id="opIdget_list"></a></p>
  13148. <blockquote>
  13149. <p>Code samples</p>
  13150. </blockquote>
  13151. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13152. curl -X GET /api/boards/{board}/lists/{list} \
  13153. -H <span class="hljs-string">'Accept: application/json'</span> \
  13154. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13155. </code></pre>
  13156. <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
  13157. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  13158. <span class="undefined"></span></span></code></pre>
  13159. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13160. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13161. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13162. };
  13163. $.ajax({
  13164. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13165. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  13166. <span class="hljs-attr">headers</span>: headers,
  13167. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13168. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13169. }
  13170. })
  13171. </code></pre>
  13172. <pre class="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>);
  13173. <span class="hljs-keyword">const</span> headers = {
  13174. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13175. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13176. };
  13177. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13178. {
  13179. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  13180. <span class="hljs-attr">headers</span>: headers
  13181. })
  13182. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13183. <span class="hljs-keyword">return</span> res.json();
  13184. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13185. <span class="hljs-built_in">console</span>.log(body);
  13186. });
  13187. </code></pre>
  13188. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13189. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13190. headers = {
  13191. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13192. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13193. }
  13194. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13195. <span class="hljs-symbol">params:</span> {
  13196. }, <span class="hljs-symbol">headers:</span> headers
  13197. p JSON.parse(result)
  13198. </code></pre>
  13199. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13200. headers = {
  13201. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13202. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13203. }
  13204. r = requests.get(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  13205. }, headers = headers)
  13206. <span class="hljs-keyword">print</span> r.json()
  13207. </code></pre>
  13208. <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>);
  13209. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13210. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  13211. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13212. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13213. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13214. String inputLine;
  13215. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13216. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13217. response.append(inputLine);
  13218. }
  13219. in.close();
  13220. System.out.println(response.toString());
  13221. </code></pre>
  13222. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13223. <span class="hljs-keyword">import</span> (
  13224. <span class="hljs-string">"bytes"</span>
  13225. <span class="hljs-string">"net/http"</span>
  13226. )
  13227. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13228. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13229. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13230. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13231. }
  13232. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13233. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  13234. req.Header = headers
  13235. client := &amp;http.Client{}
  13236. resp, err := client.Do(req)
  13237. <span class="hljs-comment">// ...</span>
  13238. }
  13239. </code></pre>
  13240. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  13241. <p><em>Get a List attached to a board</em></p>
  13242. <h3 id="get_list-parameters">Parameters</h3>
  13243. <table>
  13244. <thead>
  13245. <tr>
  13246. <th>Name</th>
  13247. <th>In</th>
  13248. <th>Type</th>
  13249. <th>Required</th>
  13250. <th>Description</th>
  13251. </tr>
  13252. </thead>
  13253. <tbody>
  13254. <tr>
  13255. <td>board</td>
  13256. <td>path</td>
  13257. <td>string</td>
  13258. <td>true</td>
  13259. <td>the board ID</td>
  13260. </tr>
  13261. <tr>
  13262. <td>list</td>
  13263. <td>path</td>
  13264. <td>string</td>
  13265. <td>true</td>
  13266. <td>the List ID</td>
  13267. </tr>
  13268. </tbody>
  13269. </table>
  13270. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13271. <p><strong>board</strong>: the board ID</p>
  13272. <p><strong>list</strong>: the List ID</p>
  13273. <blockquote>
  13274. <p>Example responses</p>
  13275. </blockquote>
  13276. <blockquote>
  13277. <p>200 Response</p>
  13278. </blockquote>
  13279. <pre class="highlight tab tab-json"><code>{
  13280. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  13281. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  13282. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  13283. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  13284. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  13285. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  13286. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  13287. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  13288. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  13289. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  13290. <span class="hljs-attr">"wipLimit"</span>: {
  13291. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  13292. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  13293. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  13294. },
  13295. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  13296. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  13297. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  13298. }
  13299. </code></pre>
  13300. <h3 id="get_list-responses">Responses</h3>
  13301. <table>
  13302. <thead>
  13303. <tr>
  13304. <th>Status</th>
  13305. <th>Meaning</th>
  13306. <th>Description</th>
  13307. <th>Schema</th>
  13308. </tr>
  13309. </thead>
  13310. <tbody>
  13311. <tr>
  13312. <td>200</td>
  13313. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13314. <td>200 response</td>
  13315. <td><a href="#schemalists">Lists</a></td>
  13316. </tr>
  13317. </tbody>
  13318. </table>
  13319. <aside class="warning">
  13320. To perform this operation, you must be authenticated by means of one of the following methods:
  13321. UserSecurity
  13322. </aside>
  13323. <h2 id="edit_list">edit_list</h2>
  13324. <p><a id="opIdedit_list"></a></p>
  13325. <blockquote>
  13326. <p>Code samples</p>
  13327. </blockquote>
  13328. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13329. curl -X PUT /api/boards/{board}/lists/{list} \
  13330. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  13331. -H <span class="hljs-string">'Accept: application/json'</span> \
  13332. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13333. </code></pre>
  13334. <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
  13335. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13336. Accept: application/json
  13337. </span></code></pre>
  13338. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13339. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  13340. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13341. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13342. };
  13343. $.ajax({
  13344. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13345. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  13346. <span class="hljs-attr">headers</span>: headers,
  13347. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13348. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13349. }
  13350. })
  13351. </code></pre>
  13352. <pre class="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>);
  13353. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  13354. "title": "string",
  13355. "color": "string",
  13356. "starred": true,
  13357. "collapsed": true,
  13358. "wipLimit": {}
  13359. }'</span>;
  13360. <span class="hljs-keyword">const</span> headers = {
  13361. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  13362. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13363. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13364. };
  13365. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13366. {
  13367. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  13368. <span class="hljs-attr">body</span>: inputBody,
  13369. <span class="hljs-attr">headers</span>: headers
  13370. })
  13371. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13372. <span class="hljs-keyword">return</span> res.json();
  13373. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13374. <span class="hljs-built_in">console</span>.log(body);
  13375. });
  13376. </code></pre>
  13377. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13378. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13379. headers = {
  13380. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  13381. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13382. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13383. }
  13384. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13385. <span class="hljs-symbol">params:</span> {
  13386. }, <span class="hljs-symbol">headers:</span> headers
  13387. p JSON.parse(result)
  13388. </code></pre>
  13389. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13390. headers = {
  13391. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  13392. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13393. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13394. }
  13395. r = requests.put(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  13396. }, headers = headers)
  13397. <span class="hljs-keyword">print</span> r.json()
  13398. </code></pre>
  13399. <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>);
  13400. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13401. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  13402. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13403. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13404. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13405. String inputLine;
  13406. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13407. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13408. response.append(inputLine);
  13409. }
  13410. in.close();
  13411. System.out.println(response.toString());
  13412. </code></pre>
  13413. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13414. <span class="hljs-keyword">import</span> (
  13415. <span class="hljs-string">"bytes"</span>
  13416. <span class="hljs-string">"net/http"</span>
  13417. )
  13418. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13419. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13420. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  13421. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13422. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13423. }
  13424. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13425. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  13426. req.Header = headers
  13427. client := &amp;http.Client{}
  13428. resp, err := client.Do(req)
  13429. <span class="hljs-comment">// ...</span>
  13430. }
  13431. </code></pre>
  13432. <p><code>PUT /api/boards/{board}/lists/{list}</code></p>
  13433. <p><em>Edit a List</em></p>
  13434. <p>This updates a list on a board.
  13435. You can update the title, color, wipLimit, starred, and collapsed properties.</p>
  13436. <blockquote>
  13437. <p>Body parameter</p>
  13438. </blockquote>
  13439. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13440. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  13441. <span class="hljs-attr">starred:</span> <span class="hljs-literal">true</span>
  13442. <span class="hljs-attr">collapsed:</span> <span class="hljs-literal">true</span>
  13443. <span class="hljs-attr">wipLimit:</span> <span class="hljs-string">{}</span>
  13444. </code></pre>
  13445. <h3 id="edit_list-parameters">Parameters</h3>
  13446. <table>
  13447. <thead>
  13448. <tr>
  13449. <th>Name</th>
  13450. <th>In</th>
  13451. <th>Type</th>
  13452. <th>Required</th>
  13453. <th>Description</th>
  13454. </tr>
  13455. </thead>
  13456. <tbody>
  13457. <tr>
  13458. <td>board</td>
  13459. <td>path</td>
  13460. <td>string</td>
  13461. <td>true</td>
  13462. <td>the board ID</td>
  13463. </tr>
  13464. <tr>
  13465. <td>list</td>
  13466. <td>path</td>
  13467. <td>string</td>
  13468. <td>true</td>
  13469. <td>the ID of the list to update</td>
  13470. </tr>
  13471. <tr>
  13472. <td>body</td>
  13473. <td>body</td>
  13474. <td>object</td>
  13475. <td>false</td>
  13476. <td>none</td>
  13477. </tr>
  13478. <tr>
  13479. <td>» title</td>
  13480. <td>body</td>
  13481. <td>string</td>
  13482. <td>false</td>
  13483. <td>the new title of the list</td>
  13484. </tr>
  13485. <tr>
  13486. <td>» color</td>
  13487. <td>body</td>
  13488. <td>string</td>
  13489. <td>false</td>
  13490. <td>the new color of the list</td>
  13491. </tr>
  13492. <tr>
  13493. <td>» starred</td>
  13494. <td>body</td>
  13495. <td>boolean</td>
  13496. <td>false</td>
  13497. <td>whether the list is starred</td>
  13498. </tr>
  13499. <tr>
  13500. <td>» collapsed</td>
  13501. <td>body</td>
  13502. <td>boolean</td>
  13503. <td>false</td>
  13504. <td>whether the list is collapsed</td>
  13505. </tr>
  13506. <tr>
  13507. <td>» wipLimit</td>
  13508. <td>body</td>
  13509. <td>object</td>
  13510. <td>false</td>
  13511. <td>the WIP limit configuration</td>
  13512. </tr>
  13513. </tbody>
  13514. </table>
  13515. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13516. <p><strong>board</strong>: the board ID</p>
  13517. <p><strong>list</strong>: the ID of the list to update</p>
  13518. <blockquote>
  13519. <p>Example responses</p>
  13520. </blockquote>
  13521. <blockquote>
  13522. <p>200 Response</p>
  13523. </blockquote>
  13524. <pre class="highlight tab tab-json"><code>{
  13525. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  13526. }
  13527. </code></pre>
  13528. <h3 id="edit_list-responses">Responses</h3>
  13529. <table>
  13530. <thead>
  13531. <tr>
  13532. <th>Status</th>
  13533. <th>Meaning</th>
  13534. <th>Description</th>
  13535. <th>Schema</th>
  13536. </tr>
  13537. </thead>
  13538. <tbody>
  13539. <tr>
  13540. <td>200</td>
  13541. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13542. <td>200 response</td>
  13543. <td>Inline</td>
  13544. </tr>
  13545. </tbody>
  13546. </table>
  13547. <h3 id="edit_list-responseschema">Response Schema</h3>
  13548. <p>Status Code <strong>200</strong></p>
  13549. <table>
  13550. <thead>
  13551. <tr>
  13552. <th>Name</th>
  13553. <th>Type</th>
  13554. <th>Required</th>
  13555. <th>Restrictions</th>
  13556. <th>Description</th>
  13557. </tr>
  13558. </thead>
  13559. <tbody>
  13560. <tr>
  13561. <td>» _id</td>
  13562. <td>string</td>
  13563. <td>false</td>
  13564. <td>none</td>
  13565. <td>none</td>
  13566. </tr>
  13567. </tbody>
  13568. </table>
  13569. <aside class="warning">
  13570. To perform this operation, you must be authenticated by means of one of the following methods:
  13571. UserSecurity
  13572. </aside>
  13573. <h2 id="delete_list">delete_list</h2>
  13574. <p><a id="opIddelete_list"></a></p>
  13575. <blockquote>
  13576. <p>Code samples</p>
  13577. </blockquote>
  13578. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13579. curl -X DELETE /api/boards/{board}/lists/{list} \
  13580. -H <span class="hljs-string">'Accept: application/json'</span> \
  13581. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13582. </code></pre>
  13583. <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
  13584. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  13585. <span class="undefined"></span></span></code></pre>
  13586. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13587. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13588. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13589. };
  13590. $.ajax({
  13591. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13592. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  13593. <span class="hljs-attr">headers</span>: headers,
  13594. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13595. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13596. }
  13597. })
  13598. </code></pre>
  13599. <pre class="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>);
  13600. <span class="hljs-keyword">const</span> headers = {
  13601. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13602. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13603. };
  13604. fetch(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13605. {
  13606. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  13607. <span class="hljs-attr">headers</span>: headers
  13608. })
  13609. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13610. <span class="hljs-keyword">return</span> res.json();
  13611. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13612. <span class="hljs-built_in">console</span>.log(body);
  13613. });
  13614. </code></pre>
  13615. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13616. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13617. headers = {
  13618. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13619. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13620. }
  13621. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>,
  13622. <span class="hljs-symbol">params:</span> {
  13623. }, <span class="hljs-symbol">headers:</span> headers
  13624. p JSON.parse(result)
  13625. </code></pre>
  13626. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13627. headers = {
  13628. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13629. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13630. }
  13631. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/lists/{list}'</span>, params={
  13632. }, headers = headers)
  13633. <span class="hljs-keyword">print</span> r.json()
  13634. </code></pre>
  13635. <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>);
  13636. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13637. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  13638. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13639. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13640. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13641. String inputLine;
  13642. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13643. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13644. response.append(inputLine);
  13645. }
  13646. in.close();
  13647. System.out.println(response.toString());
  13648. </code></pre>
  13649. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13650. <span class="hljs-keyword">import</span> (
  13651. <span class="hljs-string">"bytes"</span>
  13652. <span class="hljs-string">"net/http"</span>
  13653. )
  13654. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13655. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13656. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13657. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13658. }
  13659. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13660. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/lists/{list}"</span>, data)
  13661. req.Header = headers
  13662. client := &amp;http.Client{}
  13663. resp, err := client.Do(req)
  13664. <span class="hljs-comment">// ...</span>
  13665. }
  13666. </code></pre>
  13667. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13668. <p><em>Delete a List</em></p>
  13669. <p>This <strong>deletes</strong> a list from a board.
  13670. The list is not put in the recycle bin.</p>
  13671. <h3 id="delete_list-parameters">Parameters</h3>
  13672. <table>
  13673. <thead>
  13674. <tr>
  13675. <th>Name</th>
  13676. <th>In</th>
  13677. <th>Type</th>
  13678. <th>Required</th>
  13679. <th>Description</th>
  13680. </tr>
  13681. </thead>
  13682. <tbody>
  13683. <tr>
  13684. <td>board</td>
  13685. <td>path</td>
  13686. <td>string</td>
  13687. <td>true</td>
  13688. <td>the board ID</td>
  13689. </tr>
  13690. <tr>
  13691. <td>list</td>
  13692. <td>path</td>
  13693. <td>string</td>
  13694. <td>true</td>
  13695. <td>the ID of the list to remove</td>
  13696. </tr>
  13697. </tbody>
  13698. </table>
  13699. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13700. <p><strong>board</strong>: the board ID</p>
  13701. <p><strong>list</strong>: the ID of the list to remove</p>
  13702. <blockquote>
  13703. <p>Example responses</p>
  13704. </blockquote>
  13705. <blockquote>
  13706. <p>200 Response</p>
  13707. </blockquote>
  13708. <pre class="highlight tab tab-json"><code>{
  13709. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  13710. }
  13711. </code></pre>
  13712. <h3 id="delete_list-responses">Responses</h3>
  13713. <table>
  13714. <thead>
  13715. <tr>
  13716. <th>Status</th>
  13717. <th>Meaning</th>
  13718. <th>Description</th>
  13719. <th>Schema</th>
  13720. </tr>
  13721. </thead>
  13722. <tbody>
  13723. <tr>
  13724. <td>200</td>
  13725. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13726. <td>200 response</td>
  13727. <td>Inline</td>
  13728. </tr>
  13729. </tbody>
  13730. </table>
  13731. <h3 id="delete_list-responseschema">Response Schema</h3>
  13732. <p>Status Code <strong>200</strong></p>
  13733. <table>
  13734. <thead>
  13735. <tr>
  13736. <th>Name</th>
  13737. <th>Type</th>
  13738. <th>Required</th>
  13739. <th>Restrictions</th>
  13740. <th>Description</th>
  13741. </tr>
  13742. </thead>
  13743. <tbody>
  13744. <tr>
  13745. <td>» _id</td>
  13746. <td>string</td>
  13747. <td>false</td>
  13748. <td>none</td>
  13749. <td>none</td>
  13750. </tr>
  13751. </tbody>
  13752. </table>
  13753. <aside class="warning">
  13754. To perform this operation, you must be authenticated by means of one of the following methods:
  13755. UserSecurity
  13756. </aside>
  13757. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  13758. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  13759. <p><a id="opIdget_all_swimlanes"></a></p>
  13760. <blockquote>
  13761. <p>Code samples</p>
  13762. </blockquote>
  13763. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13764. curl -X GET /api/boards/{board}/swimlanes \
  13765. -H <span class="hljs-string">'Accept: application/json'</span> \
  13766. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13767. </code></pre>
  13768. <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
  13769. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  13770. <span class="undefined"></span></span></code></pre>
  13771. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13772. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13773. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13774. };
  13775. $.ajax({
  13776. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13777. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  13778. <span class="hljs-attr">headers</span>: headers,
  13779. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13780. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13781. }
  13782. })
  13783. </code></pre>
  13784. <pre class="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>);
  13785. <span class="hljs-keyword">const</span> headers = {
  13786. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13787. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13788. };
  13789. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13790. {
  13791. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  13792. <span class="hljs-attr">headers</span>: headers
  13793. })
  13794. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13795. <span class="hljs-keyword">return</span> res.json();
  13796. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13797. <span class="hljs-built_in">console</span>.log(body);
  13798. });
  13799. </code></pre>
  13800. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13801. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13802. headers = {
  13803. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13804. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13805. }
  13806. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13807. <span class="hljs-symbol">params:</span> {
  13808. }, <span class="hljs-symbol">headers:</span> headers
  13809. p JSON.parse(result)
  13810. </code></pre>
  13811. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13812. headers = {
  13813. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  13814. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  13815. }
  13816. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  13817. }, headers = headers)
  13818. <span class="hljs-keyword">print</span> r.json()
  13819. </code></pre>
  13820. <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>);
  13821. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13822. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  13823. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13824. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13825. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13826. String inputLine;
  13827. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13828. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13829. response.append(inputLine);
  13830. }
  13831. in.close();
  13832. System.out.println(response.toString());
  13833. </code></pre>
  13834. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13835. <span class="hljs-keyword">import</span> (
  13836. <span class="hljs-string">"bytes"</span>
  13837. <span class="hljs-string">"net/http"</span>
  13838. )
  13839. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13840. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13841. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  13842. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  13843. }
  13844. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13845. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  13846. req.Header = headers
  13847. client := &amp;http.Client{}
  13848. resp, err := client.Do(req)
  13849. <span class="hljs-comment">// ...</span>
  13850. }
  13851. </code></pre>
  13852. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  13853. <p><em>Get the list of swimlanes attached to a board</em></p>
  13854. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  13855. <table>
  13856. <thead>
  13857. <tr>
  13858. <th>Name</th>
  13859. <th>In</th>
  13860. <th>Type</th>
  13861. <th>Required</th>
  13862. <th>Description</th>
  13863. </tr>
  13864. </thead>
  13865. <tbody>
  13866. <tr>
  13867. <td>board</td>
  13868. <td>path</td>
  13869. <td>string</td>
  13870. <td>true</td>
  13871. <td>the ID of the board</td>
  13872. </tr>
  13873. </tbody>
  13874. </table>
  13875. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  13876. <p><strong>board</strong>: the ID of the board</p>
  13877. <blockquote>
  13878. <p>Example responses</p>
  13879. </blockquote>
  13880. <blockquote>
  13881. <p>200 Response</p>
  13882. </blockquote>
  13883. <pre class="highlight tab tab-json"><code>[
  13884. {
  13885. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  13886. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>
  13887. }
  13888. ]
  13889. </code></pre>
  13890. <h3 id="get_all_swimlanes-responses">Responses</h3>
  13891. <table>
  13892. <thead>
  13893. <tr>
  13894. <th>Status</th>
  13895. <th>Meaning</th>
  13896. <th>Description</th>
  13897. <th>Schema</th>
  13898. </tr>
  13899. </thead>
  13900. <tbody>
  13901. <tr>
  13902. <td>200</td>
  13903. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13904. <td>200 response</td>
  13905. <td>Inline</td>
  13906. </tr>
  13907. </tbody>
  13908. </table>
  13909. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  13910. <p>Status Code <strong>200</strong></p>
  13911. <table>
  13912. <thead>
  13913. <tr>
  13914. <th>Name</th>
  13915. <th>Type</th>
  13916. <th>Required</th>
  13917. <th>Restrictions</th>
  13918. <th>Description</th>
  13919. </tr>
  13920. </thead>
  13921. <tbody>
  13922. <tr>
  13923. <td>» _id</td>
  13924. <td>string</td>
  13925. <td>false</td>
  13926. <td>none</td>
  13927. <td>none</td>
  13928. </tr>
  13929. <tr>
  13930. <td>» title</td>
  13931. <td>string</td>
  13932. <td>false</td>
  13933. <td>none</td>
  13934. <td>none</td>
  13935. </tr>
  13936. </tbody>
  13937. </table>
  13938. <aside class="warning">
  13939. To perform this operation, you must be authenticated by means of one of the following methods:
  13940. UserSecurity
  13941. </aside>
  13942. <h2 id="new_swimlane">new_swimlane</h2>
  13943. <p><a id="opIdnew_swimlane"></a></p>
  13944. <blockquote>
  13945. <p>Code samples</p>
  13946. </blockquote>
  13947. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13948. curl -X POST /api/boards/{board}/swimlanes \
  13949. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  13950. -H <span class="hljs-string">'Accept: application/json'</span> \
  13951. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  13952. </code></pre>
  13953. <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
  13954. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13955. Accept: application/json
  13956. </span></code></pre>
  13957. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  13958. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  13959. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13960. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13961. };
  13962. $.ajax({
  13963. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13964. <span class="hljs-attr">method</span>: <span class="hljs-string">'post'</span>,
  13965. <span class="hljs-attr">headers</span>: headers,
  13966. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  13967. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  13968. }
  13969. })
  13970. </code></pre>
  13971. <pre class="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>);
  13972. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  13973. "title": "string"
  13974. }'</span>;
  13975. <span class="hljs-keyword">const</span> headers = {
  13976. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  13977. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  13978. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  13979. };
  13980. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  13981. {
  13982. <span class="hljs-attr">method</span>: <span class="hljs-string">'POST'</span>,
  13983. <span class="hljs-attr">body</span>: inputBody,
  13984. <span class="hljs-attr">headers</span>: headers
  13985. })
  13986. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13987. <span class="hljs-keyword">return</span> res.json();
  13988. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13989. <span class="hljs-built_in">console</span>.log(body);
  13990. });
  13991. </code></pre>
  13992. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  13993. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  13994. headers = {
  13995. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  13996. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  13997. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  13998. }
  13999. result = RestClient.post <span class="hljs-string">'/api/boards/{board}/swimlanes'</span>,
  14000. <span class="hljs-symbol">params:</span> {
  14001. }, <span class="hljs-symbol">headers:</span> headers
  14002. p JSON.parse(result)
  14003. </code></pre>
  14004. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14005. headers = {
  14006. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  14007. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  14008. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  14009. }
  14010. r = requests.post(<span class="hljs-string">'/api/boards/{board}/swimlanes'</span>, params={
  14011. }, headers = headers)
  14012. <span class="hljs-keyword">print</span> r.json()
  14013. </code></pre>
  14014. <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>);
  14015. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14016. con.setRequestMethod(<span class="hljs-string">"POST"</span>);
  14017. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14018. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14019. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14020. String inputLine;
  14021. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14022. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14023. response.append(inputLine);
  14024. }
  14025. in.close();
  14026. System.out.println(response.toString());
  14027. </code></pre>
  14028. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14029. <span class="hljs-keyword">import</span> (
  14030. <span class="hljs-string">"bytes"</span>
  14031. <span class="hljs-string">"net/http"</span>
  14032. )
  14033. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14034. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14035. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  14036. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  14037. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  14038. }
  14039. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14040. req, err := http.NewRequest(<span class="hljs-string">"POST"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes"</span>, data)
  14041. req.Header = headers
  14042. client := &amp;http.Client{}
  14043. resp, err := client.Do(req)
  14044. <span class="hljs-comment">// ...</span>
  14045. }
  14046. </code></pre>
  14047. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  14048. <p><em>Add a swimlane to a board</em></p>
  14049. <blockquote>
  14050. <p>Body parameter</p>
  14051. </blockquote>
  14052. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  14053. </code></pre>
  14054. <h3 id="new_swimlane-parameters">Parameters</h3>
  14055. <table>
  14056. <thead>
  14057. <tr>
  14058. <th>Name</th>
  14059. <th>In</th>
  14060. <th>Type</th>
  14061. <th>Required</th>
  14062. <th>Description</th>
  14063. </tr>
  14064. </thead>
  14065. <tbody>
  14066. <tr>
  14067. <td>board</td>
  14068. <td>path</td>
  14069. <td>string</td>
  14070. <td>true</td>
  14071. <td>the ID of the board</td>
  14072. </tr>
  14073. <tr>
  14074. <td>body</td>
  14075. <td>body</td>
  14076. <td><a href="#schemanew_swimlane">new_swimlane</a></td>
  14077. <td>false</td>
  14078. <td>none</td>
  14079. </tr>
  14080. <tr>
  14081. <td>» title</td>
  14082. <td>body</td>
  14083. <td>string</td>
  14084. <td>true</td>
  14085. <td>the new title of the swimlane</td>
  14086. </tr>
  14087. </tbody>
  14088. </table>
  14089. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  14090. <p><strong>board</strong>: the ID of the board</p>
  14091. <blockquote>
  14092. <p>Example responses</p>
  14093. </blockquote>
  14094. <blockquote>
  14095. <p>200 Response</p>
  14096. </blockquote>
  14097. <pre class="highlight tab tab-json"><code>{
  14098. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  14099. }
  14100. </code></pre>
  14101. <h3 id="new_swimlane-responses">Responses</h3>
  14102. <table>
  14103. <thead>
  14104. <tr>
  14105. <th>Status</th>
  14106. <th>Meaning</th>
  14107. <th>Description</th>
  14108. <th>Schema</th>
  14109. </tr>
  14110. </thead>
  14111. <tbody>
  14112. <tr>
  14113. <td>200</td>
  14114. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14115. <td>200 response</td>
  14116. <td>Inline</td>
  14117. </tr>
  14118. </tbody>
  14119. </table>
  14120. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  14121. <p>Status Code <strong>200</strong></p>
  14122. <table>
  14123. <thead>
  14124. <tr>
  14125. <th>Name</th>
  14126. <th>Type</th>
  14127. <th>Required</th>
  14128. <th>Restrictions</th>
  14129. <th>Description</th>
  14130. </tr>
  14131. </thead>
  14132. <tbody>
  14133. <tr>
  14134. <td>» _id</td>
  14135. <td>string</td>
  14136. <td>false</td>
  14137. <td>none</td>
  14138. <td>none</td>
  14139. </tr>
  14140. </tbody>
  14141. </table>
  14142. <aside class="warning">
  14143. To perform this operation, you must be authenticated by means of one of the following methods:
  14144. UserSecurity
  14145. </aside>
  14146. <h2 id="get_swimlane">get_swimlane</h2>
  14147. <p><a id="opIdget_swimlane"></a></p>
  14148. <blockquote>
  14149. <p>Code samples</p>
  14150. </blockquote>
  14151. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14152. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  14153. -H <span class="hljs-string">'Accept: application/json'</span> \
  14154. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  14155. </code></pre>
  14156. <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
  14157. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  14158. <span class="undefined"></span></span></code></pre>
  14159. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  14160. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14161. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14162. };
  14163. $.ajax({
  14164. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14165. <span class="hljs-attr">method</span>: <span class="hljs-string">'get'</span>,
  14166. <span class="hljs-attr">headers</span>: headers,
  14167. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  14168. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  14169. }
  14170. })
  14171. </code></pre>
  14172. <pre class="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>);
  14173. <span class="hljs-keyword">const</span> headers = {
  14174. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14175. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14176. };
  14177. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14178. {
  14179. <span class="hljs-attr">method</span>: <span class="hljs-string">'GET'</span>,
  14180. <span class="hljs-attr">headers</span>: headers
  14181. })
  14182. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14183. <span class="hljs-keyword">return</span> res.json();
  14184. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14185. <span class="hljs-built_in">console</span>.log(body);
  14186. });
  14187. </code></pre>
  14188. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  14189. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  14190. headers = {
  14191. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  14192. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  14193. }
  14194. result = RestClient.get <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14195. <span class="hljs-symbol">params:</span> {
  14196. }, <span class="hljs-symbol">headers:</span> headers
  14197. p JSON.parse(result)
  14198. </code></pre>
  14199. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14200. headers = {
  14201. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  14202. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  14203. }
  14204. r = requests.get(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  14205. }, headers = headers)
  14206. <span class="hljs-keyword">print</span> r.json()
  14207. </code></pre>
  14208. <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>);
  14209. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14210. con.setRequestMethod(<span class="hljs-string">"GET"</span>);
  14211. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14212. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14213. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14214. String inputLine;
  14215. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14216. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14217. response.append(inputLine);
  14218. }
  14219. in.close();
  14220. System.out.println(response.toString());
  14221. </code></pre>
  14222. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14223. <span class="hljs-keyword">import</span> (
  14224. <span class="hljs-string">"bytes"</span>
  14225. <span class="hljs-string">"net/http"</span>
  14226. )
  14227. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14228. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14229. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  14230. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  14231. }
  14232. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14233. req, err := http.NewRequest(<span class="hljs-string">"GET"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  14234. req.Header = headers
  14235. client := &amp;http.Client{}
  14236. resp, err := client.Do(req)
  14237. <span class="hljs-comment">// ...</span>
  14238. }
  14239. </code></pre>
  14240. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  14241. <p><em>Get a swimlane</em></p>
  14242. <h3 id="get_swimlane-parameters">Parameters</h3>
  14243. <table>
  14244. <thead>
  14245. <tr>
  14246. <th>Name</th>
  14247. <th>In</th>
  14248. <th>Type</th>
  14249. <th>Required</th>
  14250. <th>Description</th>
  14251. </tr>
  14252. </thead>
  14253. <tbody>
  14254. <tr>
  14255. <td>board</td>
  14256. <td>path</td>
  14257. <td>string</td>
  14258. <td>true</td>
  14259. <td>the ID of the board</td>
  14260. </tr>
  14261. <tr>
  14262. <td>swimlane</td>
  14263. <td>path</td>
  14264. <td>string</td>
  14265. <td>true</td>
  14266. <td>the ID of the swimlane</td>
  14267. </tr>
  14268. </tbody>
  14269. </table>
  14270. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  14271. <p><strong>board</strong>: the ID of the board</p>
  14272. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  14273. <blockquote>
  14274. <p>Example responses</p>
  14275. </blockquote>
  14276. <blockquote>
  14277. <p>200 Response</p>
  14278. </blockquote>
  14279. <pre class="highlight tab tab-json"><code>{
  14280. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  14281. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  14282. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  14283. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  14284. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14285. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  14286. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  14287. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  14288. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  14289. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  14290. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  14291. }
  14292. </code></pre>
  14293. <h3 id="get_swimlane-responses">Responses</h3>
  14294. <table>
  14295. <thead>
  14296. <tr>
  14297. <th>Status</th>
  14298. <th>Meaning</th>
  14299. <th>Description</th>
  14300. <th>Schema</th>
  14301. </tr>
  14302. </thead>
  14303. <tbody>
  14304. <tr>
  14305. <td>200</td>
  14306. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14307. <td>200 response</td>
  14308. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  14309. </tr>
  14310. </tbody>
  14311. </table>
  14312. <aside class="warning">
  14313. To perform this operation, you must be authenticated by means of one of the following methods:
  14314. UserSecurity
  14315. </aside>
  14316. <h2 id="edit_swimlane">edit_swimlane</h2>
  14317. <p><a id="opIdedit_swimlane"></a></p>
  14318. <blockquote>
  14319. <p>Code samples</p>
  14320. </blockquote>
  14321. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14322. curl -X PUT /api/boards/{board}/swimlanes/{swimlane} \
  14323. -H <span class="hljs-string">'Content-Type: multipart/form-data'</span> \
  14324. -H <span class="hljs-string">'Accept: application/json'</span> \
  14325. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  14326. </code></pre>
  14327. <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
  14328. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14329. Accept: application/json
  14330. </span></code></pre>
  14331. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  14332. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  14333. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14334. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14335. };
  14336. $.ajax({
  14337. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14338. <span class="hljs-attr">method</span>: <span class="hljs-string">'put'</span>,
  14339. <span class="hljs-attr">headers</span>: headers,
  14340. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  14341. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  14342. }
  14343. })
  14344. </code></pre>
  14345. <pre class="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>);
  14346. <span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">'{
  14347. "title": "string"
  14348. }'</span>;
  14349. <span class="hljs-keyword">const</span> headers = {
  14350. <span class="hljs-string">'Content-Type'</span>:<span class="hljs-string">'multipart/form-data'</span>,
  14351. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14352. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14353. };
  14354. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14355. {
  14356. <span class="hljs-attr">method</span>: <span class="hljs-string">'PUT'</span>,
  14357. <span class="hljs-attr">body</span>: inputBody,
  14358. <span class="hljs-attr">headers</span>: headers
  14359. })
  14360. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14361. <span class="hljs-keyword">return</span> res.json();
  14362. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14363. <span class="hljs-built_in">console</span>.log(body);
  14364. });
  14365. </code></pre>
  14366. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  14367. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  14368. headers = {
  14369. <span class="hljs-string">'Content-Type'</span> =&gt; <span class="hljs-string">'multipart/form-data'</span>,
  14370. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  14371. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  14372. }
  14373. result = RestClient.put <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14374. <span class="hljs-symbol">params:</span> {
  14375. }, <span class="hljs-symbol">headers:</span> headers
  14376. p JSON.parse(result)
  14377. </code></pre>
  14378. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14379. headers = {
  14380. <span class="hljs-string">'Content-Type'</span>: <span class="hljs-string">'multipart/form-data'</span>,
  14381. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  14382. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  14383. }
  14384. r = requests.put(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  14385. }, headers = headers)
  14386. <span class="hljs-keyword">print</span> r.json()
  14387. </code></pre>
  14388. <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>);
  14389. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14390. con.setRequestMethod(<span class="hljs-string">"PUT"</span>);
  14391. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14392. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14393. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14394. String inputLine;
  14395. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14396. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14397. response.append(inputLine);
  14398. }
  14399. in.close();
  14400. System.out.println(response.toString());
  14401. </code></pre>
  14402. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14403. <span class="hljs-keyword">import</span> (
  14404. <span class="hljs-string">"bytes"</span>
  14405. <span class="hljs-string">"net/http"</span>
  14406. )
  14407. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14408. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14409. <span class="hljs-string">"Content-Type"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"multipart/form-data"</span>},
  14410. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  14411. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  14412. }
  14413. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14414. req, err := http.NewRequest(<span class="hljs-string">"PUT"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  14415. req.Header = headers
  14416. client := &amp;http.Client{}
  14417. resp, err := client.Do(req)
  14418. <span class="hljs-comment">// ...</span>
  14419. }
  14420. </code></pre>
  14421. <p><code>PUT /api/boards/{board}/swimlanes/{swimlane}</code></p>
  14422. <p><em>Edit the title of a swimlane</em></p>
  14423. <blockquote>
  14424. <p>Body parameter</p>
  14425. </blockquote>
  14426. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  14427. </code></pre>
  14428. <h3 id="edit_swimlane-parameters">Parameters</h3>
  14429. <table>
  14430. <thead>
  14431. <tr>
  14432. <th>Name</th>
  14433. <th>In</th>
  14434. <th>Type</th>
  14435. <th>Required</th>
  14436. <th>Description</th>
  14437. </tr>
  14438. </thead>
  14439. <tbody>
  14440. <tr>
  14441. <td>board</td>
  14442. <td>path</td>
  14443. <td>string</td>
  14444. <td>true</td>
  14445. <td>the ID of the board</td>
  14446. </tr>
  14447. <tr>
  14448. <td>swimlane</td>
  14449. <td>path</td>
  14450. <td>string</td>
  14451. <td>true</td>
  14452. <td>the ID of the swimlane to edit</td>
  14453. </tr>
  14454. <tr>
  14455. <td>body</td>
  14456. <td>body</td>
  14457. <td><a href="#schemanew_swimlane">new_swimlane</a></td>
  14458. <td>false</td>
  14459. <td>none</td>
  14460. </tr>
  14461. <tr>
  14462. <td>» title</td>
  14463. <td>body</td>
  14464. <td>string</td>
  14465. <td>true</td>
  14466. <td>the new title of the swimlane</td>
  14467. </tr>
  14468. </tbody>
  14469. </table>
  14470. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  14471. <p><strong>board</strong>: the ID of the board</p>
  14472. <p><strong>swimlane</strong>: the ID of the swimlane to edit</p>
  14473. <blockquote>
  14474. <p>Example responses</p>
  14475. </blockquote>
  14476. <blockquote>
  14477. <p>200 Response</p>
  14478. </blockquote>
  14479. <pre class="highlight tab tab-json"><code>{
  14480. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  14481. }
  14482. </code></pre>
  14483. <h3 id="edit_swimlane-responses">Responses</h3>
  14484. <table>
  14485. <thead>
  14486. <tr>
  14487. <th>Status</th>
  14488. <th>Meaning</th>
  14489. <th>Description</th>
  14490. <th>Schema</th>
  14491. </tr>
  14492. </thead>
  14493. <tbody>
  14494. <tr>
  14495. <td>200</td>
  14496. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14497. <td>200 response</td>
  14498. <td>Inline</td>
  14499. </tr>
  14500. </tbody>
  14501. </table>
  14502. <h3 id="edit_swimlane-responseschema">Response Schema</h3>
  14503. <p>Status Code <strong>200</strong></p>
  14504. <table>
  14505. <thead>
  14506. <tr>
  14507. <th>Name</th>
  14508. <th>Type</th>
  14509. <th>Required</th>
  14510. <th>Restrictions</th>
  14511. <th>Description</th>
  14512. </tr>
  14513. </thead>
  14514. <tbody>
  14515. <tr>
  14516. <td>» _id</td>
  14517. <td>string</td>
  14518. <td>false</td>
  14519. <td>none</td>
  14520. <td>none</td>
  14521. </tr>
  14522. </tbody>
  14523. </table>
  14524. <aside class="warning">
  14525. To perform this operation, you must be authenticated by means of one of the following methods:
  14526. UserSecurity
  14527. </aside>
  14528. <h2 id="delete_swimlane">delete_swimlane</h2>
  14529. <p><a id="opIddelete_swimlane"></a></p>
  14530. <blockquote>
  14531. <p>Code samples</p>
  14532. </blockquote>
  14533. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14534. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  14535. -H <span class="hljs-string">'Accept: application/json'</span> \
  14536. -H <span class="hljs-string">'Authorization: API_KEY'</span>
  14537. </code></pre>
  14538. <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
  14539. <span class="http"><span class="hljs-attribute">Accept</span>: application/json
  14540. <span class="undefined"></span></span></code></pre>
  14541. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">var</span> headers = {
  14542. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14543. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14544. };
  14545. $.ajax({
  14546. <span class="hljs-attr">url</span>: <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14547. <span class="hljs-attr">method</span>: <span class="hljs-string">'delete'</span>,
  14548. <span class="hljs-attr">headers</span>: headers,
  14549. <span class="hljs-attr">success</span>: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>) </span>{
  14550. <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">JSON</span>.stringify(data));
  14551. }
  14552. })
  14553. </code></pre>
  14554. <pre class="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>);
  14555. <span class="hljs-keyword">const</span> headers = {
  14556. <span class="hljs-string">'Accept'</span>:<span class="hljs-string">'application/json'</span>,
  14557. <span class="hljs-string">'Authorization'</span>:<span class="hljs-string">'API_KEY'</span>
  14558. };
  14559. fetch(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14560. {
  14561. <span class="hljs-attr">method</span>: <span class="hljs-string">'DELETE'</span>,
  14562. <span class="hljs-attr">headers</span>: headers
  14563. })
  14564. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14565. <span class="hljs-keyword">return</span> res.json();
  14566. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14567. <span class="hljs-built_in">console</span>.log(body);
  14568. });
  14569. </code></pre>
  14570. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">'rest-client'</span>
  14571. <span class="hljs-keyword">require</span> <span class="hljs-string">'json'</span>
  14572. headers = {
  14573. <span class="hljs-string">'Accept'</span> =&gt; <span class="hljs-string">'application/json'</span>,
  14574. <span class="hljs-string">'Authorization'</span> =&gt; <span class="hljs-string">'API_KEY'</span>
  14575. }
  14576. result = RestClient.delete <span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>,
  14577. <span class="hljs-symbol">params:</span> {
  14578. }, <span class="hljs-symbol">headers:</span> headers
  14579. p JSON.parse(result)
  14580. </code></pre>
  14581. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14582. headers = {
  14583. <span class="hljs-string">'Accept'</span>: <span class="hljs-string">'application/json'</span>,
  14584. <span class="hljs-string">'Authorization'</span>: <span class="hljs-string">'API_KEY'</span>
  14585. }
  14586. r = requests.delete(<span class="hljs-string">'/api/boards/{board}/swimlanes/{swimlane}'</span>, params={
  14587. }, headers = headers)
  14588. <span class="hljs-keyword">print</span> r.json()
  14589. </code></pre>
  14590. <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>);
  14591. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14592. con.setRequestMethod(<span class="hljs-string">"DELETE"</span>);
  14593. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14594. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14595. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14596. String inputLine;
  14597. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14598. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14599. response.append(inputLine);
  14600. }
  14601. in.close();
  14602. System.out.println(response.toString());
  14603. </code></pre>
  14604. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14605. <span class="hljs-keyword">import</span> (
  14606. <span class="hljs-string">"bytes"</span>
  14607. <span class="hljs-string">"net/http"</span>
  14608. )
  14609. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14610. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14611. <span class="hljs-string">"Accept"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"application/json"</span>},
  14612. <span class="hljs-string">"Authorization"</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">"API_KEY"</span>},
  14613. }
  14614. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14615. req, err := http.NewRequest(<span class="hljs-string">"DELETE"</span>, <span class="hljs-string">"/api/boards/{board}/swimlanes/{swimlane}"</span>, data)
  14616. req.Header = headers
  14617. client := &amp;http.Client{}
  14618. resp, err := client.Do(req)
  14619. <span class="hljs-comment">// ...</span>
  14620. }
  14621. </code></pre>
  14622. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  14623. <p><em>Delete a swimlane</em></p>
  14624. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  14625. <h3 id="delete_swimlane-parameters">Parameters</h3>
  14626. <table>
  14627. <thead>
  14628. <tr>
  14629. <th>Name</th>
  14630. <th>In</th>
  14631. <th>Type</th>
  14632. <th>Required</th>
  14633. <th>Description</th>
  14634. </tr>
  14635. </thead>
  14636. <tbody>
  14637. <tr>
  14638. <td>board</td>
  14639. <td>path</td>
  14640. <td>string</td>
  14641. <td>true</td>
  14642. <td>the ID of the board</td>
  14643. </tr>
  14644. <tr>
  14645. <td>swimlane</td>
  14646. <td>path</td>
  14647. <td>string</td>
  14648. <td>true</td>
  14649. <td>the ID of the swimlane</td>
  14650. </tr>
  14651. </tbody>
  14652. </table>
  14653. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  14654. <p><strong>board</strong>: the ID of the board</p>
  14655. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  14656. <blockquote>
  14657. <p>Example responses</p>
  14658. </blockquote>
  14659. <blockquote>
  14660. <p>200 Response</p>
  14661. </blockquote>
  14662. <pre class="highlight tab tab-json"><code>{
  14663. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>
  14664. }
  14665. </code></pre>
  14666. <h3 id="delete_swimlane-responses">Responses</h3>
  14667. <table>
  14668. <thead>
  14669. <tr>
  14670. <th>Status</th>
  14671. <th>Meaning</th>
  14672. <th>Description</th>
  14673. <th>Schema</th>
  14674. </tr>
  14675. </thead>
  14676. <tbody>
  14677. <tr>
  14678. <td>200</td>
  14679. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14680. <td>200 response</td>
  14681. <td>Inline</td>
  14682. </tr>
  14683. </tbody>
  14684. </table>
  14685. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  14686. <p>Status Code <strong>200</strong></p>
  14687. <table>
  14688. <thead>
  14689. <tr>
  14690. <th>Name</th>
  14691. <th>Type</th>
  14692. <th>Required</th>
  14693. <th>Restrictions</th>
  14694. <th>Description</th>
  14695. </tr>
  14696. </thead>
  14697. <tbody>
  14698. <tr>
  14699. <td>» _id</td>
  14700. <td>string</td>
  14701. <td>false</td>
  14702. <td>none</td>
  14703. <td>none</td>
  14704. </tr>
  14705. </tbody>
  14706. </table>
  14707. <aside class="warning">
  14708. To perform this operation, you must be authenticated by means of one of the following methods:
  14709. UserSecurity
  14710. </aside>
  14711. <h1 id="schemas">Schemas</h1>
  14712. <h2 id="tocsboards">Boards</h2>
  14713. <p><a id="schemaboards"></a></p>
  14714. <pre class="highlight tab tab-json"><code>{
  14715. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  14716. <span class="hljs-attr">"slug"</span>: <span class="hljs-string">"string"</span>,
  14717. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  14718. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  14719. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  14720. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  14721. <span class="hljs-attr">"stars"</span>: <span class="hljs-number">0</span>,
  14722. <span class="hljs-attr">"labels"</span>: [
  14723. {
  14724. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  14725. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  14726. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>
  14727. }
  14728. ],
  14729. <span class="hljs-attr">"members"</span>: [
  14730. {
  14731. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  14732. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  14733. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  14734. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  14735. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  14736. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  14737. }
  14738. ],
  14739. <span class="hljs-attr">"permission"</span>: <span class="hljs-string">"public"</span>,
  14740. <span class="hljs-attr">"orgs"</span>: [
  14741. {
  14742. <span class="hljs-attr">"orgId"</span>: <span class="hljs-string">"string"</span>,
  14743. <span class="hljs-attr">"orgDisplayName"</span>: <span class="hljs-string">"string"</span>,
  14744. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  14745. }
  14746. ],
  14747. <span class="hljs-attr">"teams"</span>: [
  14748. {
  14749. <span class="hljs-attr">"teamId"</span>: <span class="hljs-string">"string"</span>,
  14750. <span class="hljs-attr">"teamDisplayName"</span>: <span class="hljs-string">"string"</span>,
  14751. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  14752. }
  14753. ],
  14754. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"belize"</span>,
  14755. <span class="hljs-attr">"backgroundImageURL"</span>: <span class="hljs-string">"string"</span>,
  14756. <span class="hljs-attr">"allowsCardCounterList"</span>: <span class="hljs-literal">true</span>,
  14757. <span class="hljs-attr">"allowsBoardMemberList"</span>: <span class="hljs-literal">true</span>,
  14758. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  14759. <span class="hljs-attr">"subtasksDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  14760. <span class="hljs-attr">"subtasksDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  14761. <span class="hljs-attr">"dateSettingsDefaultBoardId"</span>: <span class="hljs-string">"string"</span>,
  14762. <span class="hljs-attr">"dateSettingsDefaultListId"</span>: <span class="hljs-string">"string"</span>,
  14763. <span class="hljs-attr">"allowsSubtasks"</span>: <span class="hljs-literal">true</span>,
  14764. <span class="hljs-attr">"allowsAttachments"</span>: <span class="hljs-literal">true</span>,
  14765. <span class="hljs-attr">"allowsChecklists"</span>: <span class="hljs-literal">true</span>,
  14766. <span class="hljs-attr">"allowsComments"</span>: <span class="hljs-literal">true</span>,
  14767. <span class="hljs-attr">"allowsDescriptionTitle"</span>: <span class="hljs-literal">true</span>,
  14768. <span class="hljs-attr">"allowsDescriptionText"</span>: <span class="hljs-literal">true</span>,
  14769. <span class="hljs-attr">"allowsDescriptionTextOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14770. <span class="hljs-attr">"allowsCoverAttachmentOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14771. <span class="hljs-attr">"allowsBadgeAttachmentOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14772. <span class="hljs-attr">"allowsCardSortingByNumberOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14773. <span class="hljs-attr">"allowsCardNumber"</span>: <span class="hljs-literal">true</span>,
  14774. <span class="hljs-attr">"allowsActivities"</span>: <span class="hljs-literal">true</span>,
  14775. <span class="hljs-attr">"allowsLabels"</span>: <span class="hljs-literal">true</span>,
  14776. <span class="hljs-attr">"allowsCreator"</span>: <span class="hljs-literal">true</span>,
  14777. <span class="hljs-attr">"allowsCreatorOnMinicard"</span>: <span class="hljs-literal">true</span>,
  14778. <span class="hljs-attr">"allowsAssignee"</span>: <span class="hljs-literal">true</span>,
  14779. <span class="hljs-attr">"allowsMembers"</span>: <span class="hljs-literal">true</span>,
  14780. <span class="hljs-attr">"allowsRequestedBy"</span>: <span class="hljs-literal">true</span>,
  14781. <span class="hljs-attr">"allowsCardSortingByNumber"</span>: <span class="hljs-literal">true</span>,
  14782. <span class="hljs-attr">"allowsShowLists"</span>: <span class="hljs-literal">true</span>,
  14783. <span class="hljs-attr">"allowsAssignedBy"</span>: <span class="hljs-literal">true</span>,
  14784. <span class="hljs-attr">"allowsReceivedDate"</span>: <span class="hljs-literal">true</span>,
  14785. <span class="hljs-attr">"allowsStartDate"</span>: <span class="hljs-literal">true</span>,
  14786. <span class="hljs-attr">"allowsEndDate"</span>: <span class="hljs-literal">true</span>,
  14787. <span class="hljs-attr">"allowsDueDate"</span>: <span class="hljs-literal">true</span>,
  14788. <span class="hljs-attr">"presentParentTask"</span>: <span class="hljs-string">"prefix-with-full-path"</span>,
  14789. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  14790. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  14791. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  14792. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  14793. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  14794. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  14795. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"board"</span>,
  14796. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  14797. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>
  14798. }
  14799. </code></pre>
  14800. <p><em>This is a Board.</em></p>
  14801. <h3 id="properties">Properties</h3>
  14802. <table>
  14803. <thead>
  14804. <tr>
  14805. <th>Name</th>
  14806. <th>Type</th>
  14807. <th>Required</th>
  14808. <th>Restrictions</th>
  14809. <th>Description</th>
  14810. </tr>
  14811. </thead>
  14812. <tbody>
  14813. <tr>
  14814. <td>title</td>
  14815. <td>string</td>
  14816. <td>true</td>
  14817. <td>none</td>
  14818. <td>The title of the board</td>
  14819. </tr>
  14820. <tr>
  14821. <td>slug</td>
  14822. <td>string</td>
  14823. <td>true</td>
  14824. <td>none</td>
  14825. <td>The title slugified.</td>
  14826. </tr>
  14827. <tr>
  14828. <td>archived</td>
  14829. <td>boolean</td>
  14830. <td>true</td>
  14831. <td>none</td>
  14832. <td>Is the board archived?</td>
  14833. </tr>
  14834. <tr>
  14835. <td>archivedAt</td>
  14836. <td>string|null</td>
  14837. <td>false</td>
  14838. <td>none</td>
  14839. <td>Latest archiving time of the board</td>
  14840. </tr>
  14841. <tr>
  14842. <td>createdAt</td>
  14843. <td>string</td>
  14844. <td>true</td>
  14845. <td>none</td>
  14846. <td>Creation time of the board</td>
  14847. </tr>
  14848. <tr>
  14849. <td>modifiedAt</td>
  14850. <td>string|null</td>
  14851. <td>false</td>
  14852. <td>none</td>
  14853. <td>Last modification time of the board</td>
  14854. </tr>
  14855. <tr>
  14856. <td>stars</td>
  14857. <td>number</td>
  14858. <td>true</td>
  14859. <td>none</td>
  14860. <td>How many stars the board has</td>
  14861. </tr>
  14862. <tr>
  14863. <td>labels</td>
  14864. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]|null</td>
  14865. <td>false</td>
  14866. <td>none</td>
  14867. <td>List of labels attached to a board</td>
  14868. </tr>
  14869. <tr>
  14870. <td>members</td>
  14871. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  14872. <td>true</td>
  14873. <td>none</td>
  14874. <td>List of members of a board</td>
  14875. </tr>
  14876. <tr>
  14877. <td>permission</td>
  14878. <td>string</td>
  14879. <td>true</td>
  14880. <td>none</td>
  14881. <td>visibility of the board</td>
  14882. </tr>
  14883. <tr>
  14884. <td>orgs</td>
  14885. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]|null</td>
  14886. <td>false</td>
  14887. <td>none</td>
  14888. <td>the list of organizations that a board belongs to</td>
  14889. </tr>
  14890. <tr>
  14891. <td>teams</td>
  14892. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]|null</td>
  14893. <td>false</td>
  14894. <td>none</td>
  14895. <td>the list of teams that a board belongs to</td>
  14896. </tr>
  14897. <tr>
  14898. <td>color</td>
  14899. <td>string</td>
  14900. <td>true</td>
  14901. <td>none</td>
  14902. <td>The color of the board.</td>
  14903. </tr>
  14904. <tr>
  14905. <td>backgroundImageURL</td>
  14906. <td>string|null</td>
  14907. <td>false</td>
  14908. <td>none</td>
  14909. <td>The background image URL of the board.</td>
  14910. </tr>
  14911. <tr>
  14912. <td>allowsCardCounterList</td>
  14913. <td>boolean</td>
  14914. <td>true</td>
  14915. <td>none</td>
  14916. <td>Show card counter per list</td>
  14917. </tr>
  14918. <tr>
  14919. <td>allowsBoardMemberList</td>
  14920. <td>boolean</td>
  14921. <td>true</td>
  14922. <td>none</td>
  14923. <td>Show board member list</td>
  14924. </tr>
  14925. <tr>
  14926. <td>description</td>
  14927. <td>string|null</td>
  14928. <td>false</td>
  14929. <td>none</td>
  14930. <td>The description of the board</td>
  14931. </tr>
  14932. <tr>
  14933. <td>subtasksDefaultBoardId</td>
  14934. <td>string|null</td>
  14935. <td>false</td>
  14936. <td>none</td>
  14937. <td>The default board ID assigned to subtasks.</td>
  14938. </tr>
  14939. <tr>
  14940. <td>subtasksDefaultListId</td>
  14941. <td>string|null</td>
  14942. <td>false</td>
  14943. <td>none</td>
  14944. <td>The default List ID assigned to subtasks.</td>
  14945. </tr>
  14946. <tr>
  14947. <td>dateSettingsDefaultBoardId</td>
  14948. <td>string|null</td>
  14949. <td>false</td>
  14950. <td>none</td>
  14951. <td>none</td>
  14952. </tr>
  14953. <tr>
  14954. <td>dateSettingsDefaultListId</td>
  14955. <td>string|null</td>
  14956. <td>false</td>
  14957. <td>none</td>
  14958. <td>none</td>
  14959. </tr>
  14960. <tr>
  14961. <td>allowsSubtasks</td>
  14962. <td>boolean</td>
  14963. <td>true</td>
  14964. <td>none</td>
  14965. <td>Does the board allows subtasks?</td>
  14966. </tr>
  14967. <tr>
  14968. <td>allowsAttachments</td>
  14969. <td>boolean</td>
  14970. <td>true</td>
  14971. <td>none</td>
  14972. <td>Does the board allows attachments?</td>
  14973. </tr>
  14974. <tr>
  14975. <td>allowsChecklists</td>
  14976. <td>boolean</td>
  14977. <td>true</td>
  14978. <td>none</td>
  14979. <td>Does the board allows checklists?</td>
  14980. </tr>
  14981. <tr>
  14982. <td>allowsComments</td>
  14983. <td>boolean</td>
  14984. <td>true</td>
  14985. <td>none</td>
  14986. <td>Does the board allows comments?</td>
  14987. </tr>
  14988. <tr>
  14989. <td>allowsDescriptionTitle</td>
  14990. <td>boolean</td>
  14991. <td>true</td>
  14992. <td>none</td>
  14993. <td>Does the board allows description title?</td>
  14994. </tr>
  14995. <tr>
  14996. <td>allowsDescriptionText</td>
  14997. <td>boolean</td>
  14998. <td>true</td>
  14999. <td>none</td>
  15000. <td>Does the board allows description text?</td>
  15001. </tr>
  15002. <tr>
  15003. <td>allowsDescriptionTextOnMinicard</td>
  15004. <td>boolean</td>
  15005. <td>true</td>
  15006. <td>none</td>
  15007. <td>Does the board allows description text on minicard?</td>
  15008. </tr>
  15009. <tr>
  15010. <td>allowsCoverAttachmentOnMinicard</td>
  15011. <td>boolean</td>
  15012. <td>true</td>
  15013. <td>none</td>
  15014. <td>Does the board allows cover attachment on minicard?</td>
  15015. </tr>
  15016. <tr>
  15017. <td>allowsBadgeAttachmentOnMinicard</td>
  15018. <td>boolean</td>
  15019. <td>true</td>
  15020. <td>none</td>
  15021. <td>Does the board allows badge attachment on minicard?</td>
  15022. </tr>
  15023. <tr>
  15024. <td>allowsCardSortingByNumberOnMinicard</td>
  15025. <td>boolean</td>
  15026. <td>true</td>
  15027. <td>none</td>
  15028. <td>Does the board allows card sorting by number on minicard?</td>
  15029. </tr>
  15030. <tr>
  15031. <td>allowsCardNumber</td>
  15032. <td>boolean</td>
  15033. <td>true</td>
  15034. <td>none</td>
  15035. <td>Does the board allows card numbers?</td>
  15036. </tr>
  15037. <tr>
  15038. <td>allowsActivities</td>
  15039. <td>boolean</td>
  15040. <td>true</td>
  15041. <td>none</td>
  15042. <td>Does the board allows comments?</td>
  15043. </tr>
  15044. <tr>
  15045. <td>allowsLabels</td>
  15046. <td>boolean</td>
  15047. <td>true</td>
  15048. <td>none</td>
  15049. <td>Does the board allows labels?</td>
  15050. </tr>
  15051. <tr>
  15052. <td>allowsCreator</td>
  15053. <td>boolean</td>
  15054. <td>true</td>
  15055. <td>none</td>
  15056. <td>Does the board allow creator?</td>
  15057. </tr>
  15058. <tr>
  15059. <td>allowsCreatorOnMinicard</td>
  15060. <td>boolean</td>
  15061. <td>true</td>
  15062. <td>none</td>
  15063. <td>Does the board allow creator?</td>
  15064. </tr>
  15065. <tr>
  15066. <td>allowsAssignee</td>
  15067. <td>boolean</td>
  15068. <td>true</td>
  15069. <td>none</td>
  15070. <td>Does the board allows assignee?</td>
  15071. </tr>
  15072. <tr>
  15073. <td>allowsMembers</td>
  15074. <td>boolean</td>
  15075. <td>true</td>
  15076. <td>none</td>
  15077. <td>Does the board allows members?</td>
  15078. </tr>
  15079. <tr>
  15080. <td>allowsRequestedBy</td>
  15081. <td>boolean</td>
  15082. <td>true</td>
  15083. <td>none</td>
  15084. <td>Does the board allows requested by?</td>
  15085. </tr>
  15086. <tr>
  15087. <td>allowsCardSortingByNumber</td>
  15088. <td>boolean</td>
  15089. <td>true</td>
  15090. <td>none</td>
  15091. <td>Does the board allows card sorting by number?</td>
  15092. </tr>
  15093. <tr>
  15094. <td>allowsShowLists</td>
  15095. <td>boolean</td>
  15096. <td>true</td>
  15097. <td>none</td>
  15098. <td>Does the board allows show lists on the card?</td>
  15099. </tr>
  15100. <tr>
  15101. <td>allowsAssignedBy</td>
  15102. <td>boolean</td>
  15103. <td>true</td>
  15104. <td>none</td>
  15105. <td>Does the board allows requested by?</td>
  15106. </tr>
  15107. <tr>
  15108. <td>allowsReceivedDate</td>
  15109. <td>boolean</td>
  15110. <td>true</td>
  15111. <td>none</td>
  15112. <td>Does the board allows received date?</td>
  15113. </tr>
  15114. <tr>
  15115. <td>allowsStartDate</td>
  15116. <td>boolean</td>
  15117. <td>true</td>
  15118. <td>none</td>
  15119. <td>Does the board allows start date?</td>
  15120. </tr>
  15121. <tr>
  15122. <td>allowsEndDate</td>
  15123. <td>boolean</td>
  15124. <td>true</td>
  15125. <td>none</td>
  15126. <td>Does the board allows end date?</td>
  15127. </tr>
  15128. <tr>
  15129. <td>allowsDueDate</td>
  15130. <td>boolean</td>
  15131. <td>true</td>
  15132. <td>none</td>
  15133. <td>Does the board allows due date?</td>
  15134. </tr>
  15135. <tr>
  15136. <td>presentParentTask</td>
  15137. <td>string|null</td>
  15138. <td>false</td>
  15139. <td>none</td>
  15140. <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>
  15141. </tr>
  15142. <tr>
  15143. <td>receivedAt</td>
  15144. <td>string|null</td>
  15145. <td>false</td>
  15146. <td>none</td>
  15147. <td>Date the card was received</td>
  15148. </tr>
  15149. <tr>
  15150. <td>startAt</td>
  15151. <td>string|null</td>
  15152. <td>false</td>
  15153. <td>none</td>
  15154. <td>Starting date of the board.</td>
  15155. </tr>
  15156. <tr>
  15157. <td>dueAt</td>
  15158. <td>string|null</td>
  15159. <td>false</td>
  15160. <td>none</td>
  15161. <td>Due date of the board.</td>
  15162. </tr>
  15163. <tr>
  15164. <td>endAt</td>
  15165. <td>string|null</td>
  15166. <td>false</td>
  15167. <td>none</td>
  15168. <td>End date of the board.</td>
  15169. </tr>
  15170. <tr>
  15171. <td>spentTime</td>
  15172. <td>number|null</td>
  15173. <td>false</td>
  15174. <td>none</td>
  15175. <td>Time spent in the board.</td>
  15176. </tr>
  15177. <tr>
  15178. <td>isOvertime</td>
  15179. <td>boolean|null</td>
  15180. <td>false</td>
  15181. <td>none</td>
  15182. <td>Is the board overtimed?</td>
  15183. </tr>
  15184. <tr>
  15185. <td>type</td>
  15186. <td>string</td>
  15187. <td>true</td>
  15188. <td>none</td>
  15189. <td>The type of board possible values: board, template-board, template-container</td>
  15190. </tr>
  15191. <tr>
  15192. <td>sort</td>
  15193. <td>number</td>
  15194. <td>true</td>
  15195. <td>none</td>
  15196. <td>Sort value</td>
  15197. </tr>
  15198. <tr>
  15199. <td>showActivities</td>
  15200. <td>boolean</td>
  15201. <td>true</td>
  15202. <td>none</td>
  15203. <td>none</td>
  15204. </tr>
  15205. </tbody>
  15206. </table>
  15207. <h4 id="enumerated-values">Enumerated Values</h4>
  15208. <table>
  15209. <thead>
  15210. <tr>
  15211. <th>Property</th>
  15212. <th>Value</th>
  15213. </tr>
  15214. </thead>
  15215. <tbody>
  15216. <tr>
  15217. <td>permission</td>
  15218. <td>public</td>
  15219. </tr>
  15220. <tr>
  15221. <td>permission</td>
  15222. <td>private</td>
  15223. </tr>
  15224. <tr>
  15225. <td>color</td>
  15226. <td>belize</td>
  15227. </tr>
  15228. <tr>
  15229. <td>color</td>
  15230. <td>nephritis</td>
  15231. </tr>
  15232. <tr>
  15233. <td>color</td>
  15234. <td>pomegranate</td>
  15235. </tr>
  15236. <tr>
  15237. <td>color</td>
  15238. <td>pumpkin</td>
  15239. </tr>
  15240. <tr>
  15241. <td>color</td>
  15242. <td>wisteria</td>
  15243. </tr>
  15244. <tr>
  15245. <td>color</td>
  15246. <td>moderatepink</td>
  15247. </tr>
  15248. <tr>
  15249. <td>color</td>
  15250. <td>strongcyan</td>
  15251. </tr>
  15252. <tr>
  15253. <td>color</td>
  15254. <td>limegreen</td>
  15255. </tr>
  15256. <tr>
  15257. <td>color</td>
  15258. <td>midnight</td>
  15259. </tr>
  15260. <tr>
  15261. <td>color</td>
  15262. <td>dark</td>
  15263. </tr>
  15264. <tr>
  15265. <td>color</td>
  15266. <td>relax</td>
  15267. </tr>
  15268. <tr>
  15269. <td>color</td>
  15270. <td>corteza</td>
  15271. </tr>
  15272. <tr>
  15273. <td>color</td>
  15274. <td>clearblue</td>
  15275. </tr>
  15276. <tr>
  15277. <td>color</td>
  15278. <td>natural</td>
  15279. </tr>
  15280. <tr>
  15281. <td>color</td>
  15282. <td>modern</td>
  15283. </tr>
  15284. <tr>
  15285. <td>color</td>
  15286. <td>moderndark</td>
  15287. </tr>
  15288. <tr>
  15289. <td>color</td>
  15290. <td>exodark</td>
  15291. </tr>
  15292. <tr>
  15293. <td>color</td>
  15294. <td>cleandark</td>
  15295. </tr>
  15296. <tr>
  15297. <td>color</td>
  15298. <td>cleanlight</td>
  15299. </tr>
  15300. <tr>
  15301. <td>presentParentTask</td>
  15302. <td>prefix-with-full-path</td>
  15303. </tr>
  15304. <tr>
  15305. <td>presentParentTask</td>
  15306. <td>prefix-with-parent</td>
  15307. </tr>
  15308. <tr>
  15309. <td>presentParentTask</td>
  15310. <td>subtext-with-full-path</td>
  15311. </tr>
  15312. <tr>
  15313. <td>presentParentTask</td>
  15314. <td>subtext-with-parent</td>
  15315. </tr>
  15316. <tr>
  15317. <td>presentParentTask</td>
  15318. <td>no-parent</td>
  15319. </tr>
  15320. <tr>
  15321. <td>type</td>
  15322. <td>board</td>
  15323. </tr>
  15324. <tr>
  15325. <td>type</td>
  15326. <td>template-board</td>
  15327. </tr>
  15328. <tr>
  15329. <td>type</td>
  15330. <td>template-container</td>
  15331. </tr>
  15332. </tbody>
  15333. </table>
  15334. <h2 id="tocsboardslabels">BoardsLabels</h2>
  15335. <p><a id="schemaboardslabels"></a></p>
  15336. <pre class="highlight tab tab-json"><code>{
  15337. <span class="hljs-attr">"_id"</span>: <span class="hljs-string">"string"</span>,
  15338. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  15339. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>
  15340. }
  15341. </code></pre>
  15342. <h3 id="properties">Properties</h3>
  15343. <table>
  15344. <thead>
  15345. <tr>
  15346. <th>Name</th>
  15347. <th>Type</th>
  15348. <th>Required</th>
  15349. <th>Restrictions</th>
  15350. <th>Description</th>
  15351. </tr>
  15352. </thead>
  15353. <tbody>
  15354. <tr>
  15355. <td>_id</td>
  15356. <td>string</td>
  15357. <td>true</td>
  15358. <td>none</td>
  15359. <td>Unique id of a label</td>
  15360. </tr>
  15361. <tr>
  15362. <td>name</td>
  15363. <td>string</td>
  15364. <td>false</td>
  15365. <td>none</td>
  15366. <td>Name of a label</td>
  15367. </tr>
  15368. <tr>
  15369. <td>color</td>
  15370. <td>string</td>
  15371. <td>true</td>
  15372. <td>none</td>
  15373. <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>
  15374. </tr>
  15375. </tbody>
  15376. </table>
  15377. <h4 id="enumerated-values">Enumerated Values</h4>
  15378. <table>
  15379. <thead>
  15380. <tr>
  15381. <th>Property</th>
  15382. <th>Value</th>
  15383. </tr>
  15384. </thead>
  15385. <tbody>
  15386. <tr>
  15387. <td>color</td>
  15388. <td>white</td>
  15389. </tr>
  15390. <tr>
  15391. <td>color</td>
  15392. <td>green</td>
  15393. </tr>
  15394. <tr>
  15395. <td>color</td>
  15396. <td>yellow</td>
  15397. </tr>
  15398. <tr>
  15399. <td>color</td>
  15400. <td>orange</td>
  15401. </tr>
  15402. <tr>
  15403. <td>color</td>
  15404. <td>red</td>
  15405. </tr>
  15406. <tr>
  15407. <td>color</td>
  15408. <td>purple</td>
  15409. </tr>
  15410. <tr>
  15411. <td>color</td>
  15412. <td>blue</td>
  15413. </tr>
  15414. <tr>
  15415. <td>color</td>
  15416. <td>sky</td>
  15417. </tr>
  15418. <tr>
  15419. <td>color</td>
  15420. <td>lime</td>
  15421. </tr>
  15422. <tr>
  15423. <td>color</td>
  15424. <td>pink</td>
  15425. </tr>
  15426. <tr>
  15427. <td>color</td>
  15428. <td>black</td>
  15429. </tr>
  15430. <tr>
  15431. <td>color</td>
  15432. <td>silver</td>
  15433. </tr>
  15434. <tr>
  15435. <td>color</td>
  15436. <td>peachpuff</td>
  15437. </tr>
  15438. <tr>
  15439. <td>color</td>
  15440. <td>crimson</td>
  15441. </tr>
  15442. <tr>
  15443. <td>color</td>
  15444. <td>plum</td>
  15445. </tr>
  15446. <tr>
  15447. <td>color</td>
  15448. <td>darkgreen</td>
  15449. </tr>
  15450. <tr>
  15451. <td>color</td>
  15452. <td>slateblue</td>
  15453. </tr>
  15454. <tr>
  15455. <td>color</td>
  15456. <td>magenta</td>
  15457. </tr>
  15458. <tr>
  15459. <td>color</td>
  15460. <td>gold</td>
  15461. </tr>
  15462. <tr>
  15463. <td>color</td>
  15464. <td>navy</td>
  15465. </tr>
  15466. <tr>
  15467. <td>color</td>
  15468. <td>gray</td>
  15469. </tr>
  15470. <tr>
  15471. <td>color</td>
  15472. <td>saddlebrown</td>
  15473. </tr>
  15474. <tr>
  15475. <td>color</td>
  15476. <td>paleturquoise</td>
  15477. </tr>
  15478. <tr>
  15479. <td>color</td>
  15480. <td>mistyrose</td>
  15481. </tr>
  15482. <tr>
  15483. <td>color</td>
  15484. <td>indigo</td>
  15485. </tr>
  15486. </tbody>
  15487. </table>
  15488. <h2 id="tocsboardsmembers">BoardsMembers</h2>
  15489. <p><a id="schemaboardsmembers"></a></p>
  15490. <pre class="highlight tab tab-json"><code>{
  15491. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  15492. <span class="hljs-attr">"isAdmin"</span>: <span class="hljs-literal">true</span>,
  15493. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>,
  15494. <span class="hljs-attr">"isNoComments"</span>: <span class="hljs-literal">true</span>,
  15495. <span class="hljs-attr">"isCommentOnly"</span>: <span class="hljs-literal">true</span>,
  15496. <span class="hljs-attr">"isWorker"</span>: <span class="hljs-literal">true</span>
  15497. }
  15498. </code></pre>
  15499. <h3 id="properties">Properties</h3>
  15500. <table>
  15501. <thead>
  15502. <tr>
  15503. <th>Name</th>
  15504. <th>Type</th>
  15505. <th>Required</th>
  15506. <th>Restrictions</th>
  15507. <th>Description</th>
  15508. </tr>
  15509. </thead>
  15510. <tbody>
  15511. <tr>
  15512. <td>userId</td>
  15513. <td>string</td>
  15514. <td>true</td>
  15515. <td>none</td>
  15516. <td>The uniq ID of the member</td>
  15517. </tr>
  15518. <tr>
  15519. <td>isAdmin</td>
  15520. <td>boolean</td>
  15521. <td>true</td>
  15522. <td>none</td>
  15523. <td>Is the member an admin of the board?</td>
  15524. </tr>
  15525. <tr>
  15526. <td>isActive</td>
  15527. <td>boolean</td>
  15528. <td>true</td>
  15529. <td>none</td>
  15530. <td>Is the member active?</td>
  15531. </tr>
  15532. <tr>
  15533. <td>isNoComments</td>
  15534. <td>boolean</td>
  15535. <td>false</td>
  15536. <td>none</td>
  15537. <td>Is the member not allowed to make comments</td>
  15538. </tr>
  15539. <tr>
  15540. <td>isCommentOnly</td>
  15541. <td>boolean</td>
  15542. <td>false</td>
  15543. <td>none</td>
  15544. <td>Is the member only allowed to comment on the board</td>
  15545. </tr>
  15546. <tr>
  15547. <td>isWorker</td>
  15548. <td>boolean</td>
  15549. <td>false</td>
  15550. <td>none</td>
  15551. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  15552. </tr>
  15553. </tbody>
  15554. </table>
  15555. <h2 id="tocsboardsorgs">BoardsOrgs</h2>
  15556. <p><a id="schemaboardsorgs"></a></p>
  15557. <pre class="highlight tab tab-json"><code>{
  15558. <span class="hljs-attr">"orgId"</span>: <span class="hljs-string">"string"</span>,
  15559. <span class="hljs-attr">"orgDisplayName"</span>: <span class="hljs-string">"string"</span>,
  15560. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  15561. }
  15562. </code></pre>
  15563. <h3 id="properties">Properties</h3>
  15564. <table>
  15565. <thead>
  15566. <tr>
  15567. <th>Name</th>
  15568. <th>Type</th>
  15569. <th>Required</th>
  15570. <th>Restrictions</th>
  15571. <th>Description</th>
  15572. </tr>
  15573. </thead>
  15574. <tbody>
  15575. <tr>
  15576. <td>orgId</td>
  15577. <td>string</td>
  15578. <td>true</td>
  15579. <td>none</td>
  15580. <td>The uniq ID of the organization</td>
  15581. </tr>
  15582. <tr>
  15583. <td>orgDisplayName</td>
  15584. <td>string</td>
  15585. <td>true</td>
  15586. <td>none</td>
  15587. <td>The display name of the organization</td>
  15588. </tr>
  15589. <tr>
  15590. <td>isActive</td>
  15591. <td>boolean</td>
  15592. <td>true</td>
  15593. <td>none</td>
  15594. <td>Is the organization active?</td>
  15595. </tr>
  15596. </tbody>
  15597. </table>
  15598. <h2 id="tocsboardsteams">BoardsTeams</h2>
  15599. <p><a id="schemaboardsteams"></a></p>
  15600. <pre class="highlight tab tab-json"><code>{
  15601. <span class="hljs-attr">"teamId"</span>: <span class="hljs-string">"string"</span>,
  15602. <span class="hljs-attr">"teamDisplayName"</span>: <span class="hljs-string">"string"</span>,
  15603. <span class="hljs-attr">"isActive"</span>: <span class="hljs-literal">true</span>
  15604. }
  15605. </code></pre>
  15606. <h3 id="properties">Properties</h3>
  15607. <table>
  15608. <thead>
  15609. <tr>
  15610. <th>Name</th>
  15611. <th>Type</th>
  15612. <th>Required</th>
  15613. <th>Restrictions</th>
  15614. <th>Description</th>
  15615. </tr>
  15616. </thead>
  15617. <tbody>
  15618. <tr>
  15619. <td>teamId</td>
  15620. <td>string</td>
  15621. <td>true</td>
  15622. <td>none</td>
  15623. <td>The uniq ID of the team</td>
  15624. </tr>
  15625. <tr>
  15626. <td>teamDisplayName</td>
  15627. <td>string</td>
  15628. <td>true</td>
  15629. <td>none</td>
  15630. <td>The display name of the team</td>
  15631. </tr>
  15632. <tr>
  15633. <td>isActive</td>
  15634. <td>boolean</td>
  15635. <td>true</td>
  15636. <td>none</td>
  15637. <td>Is the team active?</td>
  15638. </tr>
  15639. </tbody>
  15640. </table>
  15641. <h2 id="tocscardcomments">CardComments</h2>
  15642. <p><a id="schemacardcomments"></a></p>
  15643. <pre class="highlight tab tab-json"><code>{
  15644. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  15645. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  15646. <span class="hljs-attr">"text"</span>: <span class="hljs-string">"string"</span>,
  15647. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  15648. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  15649. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  15650. }
  15651. </code></pre>
  15652. <p><em>A comment on a card</em></p>
  15653. <h3 id="properties">Properties</h3>
  15654. <table>
  15655. <thead>
  15656. <tr>
  15657. <th>Name</th>
  15658. <th>Type</th>
  15659. <th>Required</th>
  15660. <th>Restrictions</th>
  15661. <th>Description</th>
  15662. </tr>
  15663. </thead>
  15664. <tbody>
  15665. <tr>
  15666. <td>boardId</td>
  15667. <td>string</td>
  15668. <td>true</td>
  15669. <td>none</td>
  15670. <td>the board ID</td>
  15671. </tr>
  15672. <tr>
  15673. <td>cardId</td>
  15674. <td>string</td>
  15675. <td>true</td>
  15676. <td>none</td>
  15677. <td>the card ID</td>
  15678. </tr>
  15679. <tr>
  15680. <td>text</td>
  15681. <td>string</td>
  15682. <td>true</td>
  15683. <td>none</td>
  15684. <td>the text of the comment</td>
  15685. </tr>
  15686. <tr>
  15687. <td>createdAt</td>
  15688. <td>string</td>
  15689. <td>true</td>
  15690. <td>none</td>
  15691. <td>when was the comment created</td>
  15692. </tr>
  15693. <tr>
  15694. <td>modifiedAt</td>
  15695. <td>string</td>
  15696. <td>true</td>
  15697. <td>none</td>
  15698. <td>none</td>
  15699. </tr>
  15700. <tr>
  15701. <td>userId</td>
  15702. <td>string</td>
  15703. <td>true</td>
  15704. <td>none</td>
  15705. <td>the author ID of the comment</td>
  15706. </tr>
  15707. </tbody>
  15708. </table>
  15709. <h2 id="tocscards">Cards</h2>
  15710. <p><a id="schemacards"></a></p>
  15711. <pre class="highlight tab tab-json"><code>{
  15712. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  15713. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  15714. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  15715. <span class="hljs-attr">"parentId"</span>: <span class="hljs-string">"string"</span>,
  15716. <span class="hljs-attr">"listId"</span>: <span class="hljs-string">"string"</span>,
  15717. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  15718. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  15719. <span class="hljs-attr">"coverId"</span>: <span class="hljs-string">"string"</span>,
  15720. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  15721. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  15722. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  15723. <span class="hljs-attr">"customFields"</span>: [
  15724. {}
  15725. ],
  15726. <span class="hljs-attr">"dateLastActivity"</span>: <span class="hljs-string">"string"</span>,
  15727. <span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>,
  15728. <span class="hljs-attr">"requestedBy"</span>: <span class="hljs-string">"string"</span>,
  15729. <span class="hljs-attr">"assignedBy"</span>: <span class="hljs-string">"string"</span>,
  15730. <span class="hljs-attr">"labelIds"</span>: [
  15731. <span class="hljs-string">"string"</span>
  15732. ],
  15733. <span class="hljs-attr">"members"</span>: [
  15734. <span class="hljs-string">"string"</span>
  15735. ],
  15736. <span class="hljs-attr">"assignees"</span>: [
  15737. <span class="hljs-string">"string"</span>
  15738. ],
  15739. <span class="hljs-attr">"receivedAt"</span>: <span class="hljs-string">"string"</span>,
  15740. <span class="hljs-attr">"startAt"</span>: <span class="hljs-string">"string"</span>,
  15741. <span class="hljs-attr">"dueAt"</span>: <span class="hljs-string">"string"</span>,
  15742. <span class="hljs-attr">"endAt"</span>: <span class="hljs-string">"string"</span>,
  15743. <span class="hljs-attr">"spentTime"</span>: <span class="hljs-number">0</span>,
  15744. <span class="hljs-attr">"isOvertime"</span>: <span class="hljs-literal">true</span>,
  15745. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>,
  15746. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  15747. <span class="hljs-attr">"subtaskSort"</span>: <span class="hljs-number">0</span>,
  15748. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  15749. <span class="hljs-attr">"linkedId"</span>: <span class="hljs-string">"string"</span>,
  15750. <span class="hljs-attr">"vote"</span>: {
  15751. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  15752. <span class="hljs-attr">"positive"</span>: [
  15753. <span class="hljs-string">"string"</span>
  15754. ],
  15755. <span class="hljs-attr">"negative"</span>: [
  15756. <span class="hljs-string">"string"</span>
  15757. ],
  15758. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  15759. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  15760. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  15761. },
  15762. <span class="hljs-attr">"poker"</span>: {
  15763. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  15764. <span class="hljs-attr">"one"</span>: [
  15765. <span class="hljs-string">"string"</span>
  15766. ],
  15767. <span class="hljs-attr">"two"</span>: [
  15768. <span class="hljs-string">"string"</span>
  15769. ],
  15770. <span class="hljs-attr">"three"</span>: [
  15771. <span class="hljs-string">"string"</span>
  15772. ],
  15773. <span class="hljs-attr">"five"</span>: [
  15774. <span class="hljs-string">"string"</span>
  15775. ],
  15776. <span class="hljs-attr">"eight"</span>: [
  15777. <span class="hljs-string">"string"</span>
  15778. ],
  15779. <span class="hljs-attr">"thirteen"</span>: [
  15780. <span class="hljs-string">"string"</span>
  15781. ],
  15782. <span class="hljs-attr">"twenty"</span>: [
  15783. <span class="hljs-string">"string"</span>
  15784. ],
  15785. <span class="hljs-attr">"forty"</span>: [
  15786. <span class="hljs-string">"string"</span>
  15787. ],
  15788. <span class="hljs-attr">"oneHundred"</span>: [
  15789. <span class="hljs-string">"string"</span>
  15790. ],
  15791. <span class="hljs-attr">"unsure"</span>: [
  15792. <span class="hljs-string">"string"</span>
  15793. ],
  15794. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  15795. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  15796. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  15797. },
  15798. <span class="hljs-attr">"targetId_gantt"</span>: [
  15799. <span class="hljs-string">"string"</span>
  15800. ],
  15801. <span class="hljs-attr">"linkType_gantt"</span>: [
  15802. <span class="hljs-number">0</span>
  15803. ],
  15804. <span class="hljs-attr">"linkId_gantt"</span>: [
  15805. <span class="hljs-string">"string"</span>
  15806. ],
  15807. <span class="hljs-attr">"cardNumber"</span>: <span class="hljs-number">0</span>,
  15808. <span class="hljs-attr">"showActivities"</span>: <span class="hljs-literal">true</span>,
  15809. <span class="hljs-attr">"hideFinishedChecklistIfItemsAreHidden"</span>: <span class="hljs-literal">true</span>
  15810. }
  15811. </code></pre>
  15812. <h3 id="properties">Properties</h3>
  15813. <table>
  15814. <thead>
  15815. <tr>
  15816. <th>Name</th>
  15817. <th>Type</th>
  15818. <th>Required</th>
  15819. <th>Restrictions</th>
  15820. <th>Description</th>
  15821. </tr>
  15822. </thead>
  15823. <tbody>
  15824. <tr>
  15825. <td>title</td>
  15826. <td>string|null</td>
  15827. <td>false</td>
  15828. <td>none</td>
  15829. <td>the title of the card</td>
  15830. </tr>
  15831. <tr>
  15832. <td>archived</td>
  15833. <td>boolean</td>
  15834. <td>true</td>
  15835. <td>none</td>
  15836. <td>is the card archived</td>
  15837. </tr>
  15838. <tr>
  15839. <td>archivedAt</td>
  15840. <td>string|null</td>
  15841. <td>false</td>
  15842. <td>none</td>
  15843. <td>latest archiving date</td>
  15844. </tr>
  15845. <tr>
  15846. <td>parentId</td>
  15847. <td>string|null</td>
  15848. <td>false</td>
  15849. <td>none</td>
  15850. <td>ID of the parent card</td>
  15851. </tr>
  15852. <tr>
  15853. <td>listId</td>
  15854. <td>string|null</td>
  15855. <td>false</td>
  15856. <td>none</td>
  15857. <td>List ID where the card is</td>
  15858. </tr>
  15859. <tr>
  15860. <td>swimlaneId</td>
  15861. <td>string</td>
  15862. <td>true</td>
  15863. <td>none</td>
  15864. <td>Swimlane ID where the card is</td>
  15865. </tr>
  15866. <tr>
  15867. <td>boardId</td>
  15868. <td>string|null</td>
  15869. <td>false</td>
  15870. <td>none</td>
  15871. <td>Board ID of the card</td>
  15872. </tr>
  15873. <tr>
  15874. <td>coverId</td>
  15875. <td>string|null</td>
  15876. <td>false</td>
  15877. <td>none</td>
  15878. <td>Cover ID of the card</td>
  15879. </tr>
  15880. <tr>
  15881. <td>color</td>
  15882. <td>string|null</td>
  15883. <td>false</td>
  15884. <td>none</td>
  15885. <td>none</td>
  15886. </tr>
  15887. <tr>
  15888. <td>createdAt</td>
  15889. <td>string</td>
  15890. <td>true</td>
  15891. <td>none</td>
  15892. <td>creation date</td>
  15893. </tr>
  15894. <tr>
  15895. <td>modifiedAt</td>
  15896. <td>string</td>
  15897. <td>true</td>
  15898. <td>none</td>
  15899. <td>none</td>
  15900. </tr>
  15901. <tr>
  15902. <td>customFields</td>
  15903. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]|null</td>
  15904. <td>false</td>
  15905. <td>none</td>
  15906. <td>list of custom fields</td>
  15907. </tr>
  15908. <tr>
  15909. <td>dateLastActivity</td>
  15910. <td>string</td>
  15911. <td>true</td>
  15912. <td>none</td>
  15913. <td>Date of last activity</td>
  15914. </tr>
  15915. <tr>
  15916. <td>description</td>
  15917. <td>string|null</td>
  15918. <td>false</td>
  15919. <td>none</td>
  15920. <td>description of the card</td>
  15921. </tr>
  15922. <tr>
  15923. <td>requestedBy</td>
  15924. <td>string|null</td>
  15925. <td>false</td>
  15926. <td>none</td>
  15927. <td>who requested the card (ID of the user)</td>
  15928. </tr>
  15929. <tr>
  15930. <td>assignedBy</td>
  15931. <td>string|null</td>
  15932. <td>false</td>
  15933. <td>none</td>
  15934. <td>who assigned the card (ID of the user)</td>
  15935. </tr>
  15936. <tr>
  15937. <td>labelIds</td>
  15938. <td>[string]|null</td>
  15939. <td>false</td>
  15940. <td>none</td>
  15941. <td>list of labels ID the card has</td>
  15942. </tr>
  15943. <tr>
  15944. <td>members</td>
  15945. <td>[string]|null</td>
  15946. <td>false</td>
  15947. <td>none</td>
  15948. <td>list of members (user IDs)</td>
  15949. </tr>
  15950. <tr>
  15951. <td>assignees</td>
  15952. <td>[string]|null</td>
  15953. <td>false</td>
  15954. <td>none</td>
  15955. <td>who is assignee of the card (user ID), maximum one ID of assignee in array.</td>
  15956. </tr>
  15957. <tr>
  15958. <td>receivedAt</td>
  15959. <td>string|null</td>
  15960. <td>false</td>
  15961. <td>none</td>
  15962. <td>Date the card was received</td>
  15963. </tr>
  15964. <tr>
  15965. <td>startAt</td>
  15966. <td>string|null</td>
  15967. <td>false</td>
  15968. <td>none</td>
  15969. <td>Date the card was started to be worked on</td>
  15970. </tr>
  15971. <tr>
  15972. <td>dueAt</td>
  15973. <td>string|null</td>
  15974. <td>false</td>
  15975. <td>none</td>
  15976. <td>Date the card is due</td>
  15977. </tr>
  15978. <tr>
  15979. <td>endAt</td>
  15980. <td>string|null</td>
  15981. <td>false</td>
  15982. <td>none</td>
  15983. <td>Date the card ended</td>
  15984. </tr>
  15985. <tr>
  15986. <td>spentTime</td>
  15987. <td>number|null</td>
  15988. <td>false</td>
  15989. <td>none</td>
  15990. <td>How much time has been spent on this</td>
  15991. </tr>
  15992. <tr>
  15993. <td>isOvertime</td>
  15994. <td>boolean|null</td>
  15995. <td>false</td>
  15996. <td>none</td>
  15997. <td>is the card over time?</td>
  15998. </tr>
  15999. <tr>
  16000. <td>userId</td>
  16001. <td>string</td>
  16002. <td>true</td>
  16003. <td>none</td>
  16004. <td>user ID of the author of the card</td>
  16005. </tr>
  16006. <tr>
  16007. <td>sort</td>
  16008. <td>number|null</td>
  16009. <td>false</td>
  16010. <td>none</td>
  16011. <td>Sort value</td>
  16012. </tr>
  16013. <tr>
  16014. <td>subtaskSort</td>
  16015. <td>number|null</td>
  16016. <td>false</td>
  16017. <td>none</td>
  16018. <td>subtask sort value</td>
  16019. </tr>
  16020. <tr>
  16021. <td>type</td>
  16022. <td>string</td>
  16023. <td>true</td>
  16024. <td>none</td>
  16025. <td>type of the card</td>
  16026. </tr>
  16027. <tr>
  16028. <td>linkedId</td>
  16029. <td>string|null</td>
  16030. <td>false</td>
  16031. <td>none</td>
  16032. <td>ID of the linked card</td>
  16033. </tr>
  16034. <tr>
  16035. <td>vote</td>
  16036. <td><a href="#schemacardsvote">CardsVote</a></td>
  16037. <td>false</td>
  16038. <td>none</td>
  16039. <td>vote object, see below</td>
  16040. </tr>
  16041. <tr>
  16042. <td>poker</td>
  16043. <td><a href="#schemacardspoker">CardsPoker</a></td>
  16044. <td>false</td>
  16045. <td>none</td>
  16046. <td>poker object, see below</td>
  16047. </tr>
  16048. <tr>
  16049. <td>targetId_gantt</td>
  16050. <td>[string]|null</td>
  16051. <td>false</td>
  16052. <td>none</td>
  16053. <td>ID of card which is the child link in gantt view</td>
  16054. </tr>
  16055. <tr>
  16056. <td>linkType_gantt</td>
  16057. <td>[number]|null</td>
  16058. <td>false</td>
  16059. <td>none</td>
  16060. <td>ID of card which is the parent link in gantt view</td>
  16061. </tr>
  16062. <tr>
  16063. <td>linkId_gantt</td>
  16064. <td>[string]|null</td>
  16065. <td>false</td>
  16066. <td>none</td>
  16067. <td>ID of card which is the parent link in gantt view</td>
  16068. </tr>
  16069. <tr>
  16070. <td>cardNumber</td>
  16071. <td>number|null</td>
  16072. <td>false</td>
  16073. <td>none</td>
  16074. <td>A boardwise sequentially increasing number that is assigned to every newly created card</td>
  16075. </tr>
  16076. <tr>
  16077. <td>showActivities</td>
  16078. <td>boolean</td>
  16079. <td>true</td>
  16080. <td>none</td>
  16081. <td>none</td>
  16082. </tr>
  16083. <tr>
  16084. <td>hideFinishedChecklistIfItemsAreHidden</td>
  16085. <td>boolean|null</td>
  16086. <td>false</td>
  16087. <td>none</td>
  16088. <td>hide completed checklist?</td>
  16089. </tr>
  16090. </tbody>
  16091. </table>
  16092. <h4 id="enumerated-values">Enumerated Values</h4>
  16093. <table>
  16094. <thead>
  16095. <tr>
  16096. <th>Property</th>
  16097. <th>Value</th>
  16098. </tr>
  16099. </thead>
  16100. <tbody>
  16101. <tr>
  16102. <td>color</td>
  16103. <td>white</td>
  16104. </tr>
  16105. <tr>
  16106. <td>color</td>
  16107. <td>green</td>
  16108. </tr>
  16109. <tr>
  16110. <td>color</td>
  16111. <td>yellow</td>
  16112. </tr>
  16113. <tr>
  16114. <td>color</td>
  16115. <td>orange</td>
  16116. </tr>
  16117. <tr>
  16118. <td>color</td>
  16119. <td>red</td>
  16120. </tr>
  16121. <tr>
  16122. <td>color</td>
  16123. <td>purple</td>
  16124. </tr>
  16125. <tr>
  16126. <td>color</td>
  16127. <td>blue</td>
  16128. </tr>
  16129. <tr>
  16130. <td>color</td>
  16131. <td>sky</td>
  16132. </tr>
  16133. <tr>
  16134. <td>color</td>
  16135. <td>lime</td>
  16136. </tr>
  16137. <tr>
  16138. <td>color</td>
  16139. <td>pink</td>
  16140. </tr>
  16141. <tr>
  16142. <td>color</td>
  16143. <td>black</td>
  16144. </tr>
  16145. <tr>
  16146. <td>color</td>
  16147. <td>silver</td>
  16148. </tr>
  16149. <tr>
  16150. <td>color</td>
  16151. <td>peachpuff</td>
  16152. </tr>
  16153. <tr>
  16154. <td>color</td>
  16155. <td>crimson</td>
  16156. </tr>
  16157. <tr>
  16158. <td>color</td>
  16159. <td>plum</td>
  16160. </tr>
  16161. <tr>
  16162. <td>color</td>
  16163. <td>darkgreen</td>
  16164. </tr>
  16165. <tr>
  16166. <td>color</td>
  16167. <td>slateblue</td>
  16168. </tr>
  16169. <tr>
  16170. <td>color</td>
  16171. <td>magenta</td>
  16172. </tr>
  16173. <tr>
  16174. <td>color</td>
  16175. <td>gold</td>
  16176. </tr>
  16177. <tr>
  16178. <td>color</td>
  16179. <td>navy</td>
  16180. </tr>
  16181. <tr>
  16182. <td>color</td>
  16183. <td>gray</td>
  16184. </tr>
  16185. <tr>
  16186. <td>color</td>
  16187. <td>saddlebrown</td>
  16188. </tr>
  16189. <tr>
  16190. <td>color</td>
  16191. <td>paleturquoise</td>
  16192. </tr>
  16193. <tr>
  16194. <td>color</td>
  16195. <td>mistyrose</td>
  16196. </tr>
  16197. <tr>
  16198. <td>color</td>
  16199. <td>indigo</td>
  16200. </tr>
  16201. </tbody>
  16202. </table>
  16203. <h2 id="tocscardsvote">CardsVote</h2>
  16204. <p><a id="schemacardsvote"></a></p>
  16205. <pre class="highlight tab tab-json"><code>{
  16206. <span class="hljs-attr">"question"</span>: <span class="hljs-string">"string"</span>,
  16207. <span class="hljs-attr">"positive"</span>: [
  16208. <span class="hljs-string">"string"</span>
  16209. ],
  16210. <span class="hljs-attr">"negative"</span>: [
  16211. <span class="hljs-string">"string"</span>
  16212. ],
  16213. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  16214. <span class="hljs-attr">"public"</span>: <span class="hljs-literal">true</span>,
  16215. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>
  16216. }
  16217. </code></pre>
  16218. <h3 id="properties">Properties</h3>
  16219. <table>
  16220. <thead>
  16221. <tr>
  16222. <th>Name</th>
  16223. <th>Type</th>
  16224. <th>Required</th>
  16225. <th>Restrictions</th>
  16226. <th>Description</th>
  16227. </tr>
  16228. </thead>
  16229. <tbody>
  16230. <tr>
  16231. <td>question</td>
  16232. <td>string</td>
  16233. <td>true</td>
  16234. <td>none</td>
  16235. <td>none</td>
  16236. </tr>
  16237. <tr>
  16238. <td>positive</td>
  16239. <td>[string]</td>
  16240. <td>false</td>
  16241. <td>none</td>
  16242. <td>list of members (user IDs)</td>
  16243. </tr>
  16244. <tr>
  16245. <td>negative</td>
  16246. <td>[string]</td>
  16247. <td>false</td>
  16248. <td>none</td>
  16249. <td>list of members (user IDs)</td>
  16250. </tr>
  16251. <tr>
  16252. <td>end</td>
  16253. <td>string</td>
  16254. <td>false</td>
  16255. <td>none</td>
  16256. <td>none</td>
  16257. </tr>
  16258. <tr>
  16259. <td>public</td>
  16260. <td>boolean</td>
  16261. <td>true</td>
  16262. <td>none</td>
  16263. <td>none</td>
  16264. </tr>
  16265. <tr>
  16266. <td>allowNonBoardMembers</td>
  16267. <td>boolean</td>
  16268. <td>true</td>
  16269. <td>none</td>
  16270. <td>none</td>
  16271. </tr>
  16272. </tbody>
  16273. </table>
  16274. <h2 id="tocscardspoker">CardsPoker</h2>
  16275. <p><a id="schemacardspoker"></a></p>
  16276. <pre class="highlight tab tab-json"><code>{
  16277. <span class="hljs-attr">"question"</span>: <span class="hljs-literal">true</span>,
  16278. <span class="hljs-attr">"one"</span>: [
  16279. <span class="hljs-string">"string"</span>
  16280. ],
  16281. <span class="hljs-attr">"two"</span>: [
  16282. <span class="hljs-string">"string"</span>
  16283. ],
  16284. <span class="hljs-attr">"three"</span>: [
  16285. <span class="hljs-string">"string"</span>
  16286. ],
  16287. <span class="hljs-attr">"five"</span>: [
  16288. <span class="hljs-string">"string"</span>
  16289. ],
  16290. <span class="hljs-attr">"eight"</span>: [
  16291. <span class="hljs-string">"string"</span>
  16292. ],
  16293. <span class="hljs-attr">"thirteen"</span>: [
  16294. <span class="hljs-string">"string"</span>
  16295. ],
  16296. <span class="hljs-attr">"twenty"</span>: [
  16297. <span class="hljs-string">"string"</span>
  16298. ],
  16299. <span class="hljs-attr">"forty"</span>: [
  16300. <span class="hljs-string">"string"</span>
  16301. ],
  16302. <span class="hljs-attr">"oneHundred"</span>: [
  16303. <span class="hljs-string">"string"</span>
  16304. ],
  16305. <span class="hljs-attr">"unsure"</span>: [
  16306. <span class="hljs-string">"string"</span>
  16307. ],
  16308. <span class="hljs-attr">"end"</span>: <span class="hljs-string">"string"</span>,
  16309. <span class="hljs-attr">"allowNonBoardMembers"</span>: <span class="hljs-literal">true</span>,
  16310. <span class="hljs-attr">"estimation"</span>: <span class="hljs-number">0</span>
  16311. }
  16312. </code></pre>
  16313. <h3 id="properties">Properties</h3>
  16314. <table>
  16315. <thead>
  16316. <tr>
  16317. <th>Name</th>
  16318. <th>Type</th>
  16319. <th>Required</th>
  16320. <th>Restrictions</th>
  16321. <th>Description</th>
  16322. </tr>
  16323. </thead>
  16324. <tbody>
  16325. <tr>
  16326. <td>question</td>
  16327. <td>boolean</td>
  16328. <td>false</td>
  16329. <td>none</td>
  16330. <td>none</td>
  16331. </tr>
  16332. <tr>
  16333. <td>one</td>
  16334. <td>[string]</td>
  16335. <td>false</td>
  16336. <td>none</td>
  16337. <td>poker card one</td>
  16338. </tr>
  16339. <tr>
  16340. <td>two</td>
  16341. <td>[string]</td>
  16342. <td>false</td>
  16343. <td>none</td>
  16344. <td>poker card two</td>
  16345. </tr>
  16346. <tr>
  16347. <td>three</td>
  16348. <td>[string]</td>
  16349. <td>false</td>
  16350. <td>none</td>
  16351. <td>poker card three</td>
  16352. </tr>
  16353. <tr>
  16354. <td>five</td>
  16355. <td>[string]</td>
  16356. <td>false</td>
  16357. <td>none</td>
  16358. <td>poker card five</td>
  16359. </tr>
  16360. <tr>
  16361. <td>eight</td>
  16362. <td>[string]</td>
  16363. <td>false</td>
  16364. <td>none</td>
  16365. <td>poker card eight</td>
  16366. </tr>
  16367. <tr>
  16368. <td>thirteen</td>
  16369. <td>[string]</td>
  16370. <td>false</td>
  16371. <td>none</td>
  16372. <td>poker card thirteen</td>
  16373. </tr>
  16374. <tr>
  16375. <td>twenty</td>
  16376. <td>[string]</td>
  16377. <td>false</td>
  16378. <td>none</td>
  16379. <td>poker card twenty</td>
  16380. </tr>
  16381. <tr>
  16382. <td>forty</td>
  16383. <td>[string]</td>
  16384. <td>false</td>
  16385. <td>none</td>
  16386. <td>poker card forty</td>
  16387. </tr>
  16388. <tr>
  16389. <td>oneHundred</td>
  16390. <td>[string]</td>
  16391. <td>false</td>
  16392. <td>none</td>
  16393. <td>poker card oneHundred</td>
  16394. </tr>
  16395. <tr>
  16396. <td>unsure</td>
  16397. <td>[string]</td>
  16398. <td>false</td>
  16399. <td>none</td>
  16400. <td>poker card unsure</td>
  16401. </tr>
  16402. <tr>
  16403. <td>end</td>
  16404. <td>string</td>
  16405. <td>false</td>
  16406. <td>none</td>
  16407. <td>none</td>
  16408. </tr>
  16409. <tr>
  16410. <td>allowNonBoardMembers</td>
  16411. <td>boolean</td>
  16412. <td>false</td>
  16413. <td>none</td>
  16414. <td>none</td>
  16415. </tr>
  16416. <tr>
  16417. <td>estimation</td>
  16418. <td>number</td>
  16419. <td>false</td>
  16420. <td>none</td>
  16421. <td>poker estimation value</td>
  16422. </tr>
  16423. </tbody>
  16424. </table>
  16425. <h2 id="tocscardscustomfields">CardsCustomfields</h2>
  16426. <p><a id="schemacardscustomfields"></a></p>
  16427. <pre class="highlight tab tab-json"><code>{}
  16428. </code></pre>
  16429. <h3 id="properties">Properties</h3>
  16430. <p><em>None</em></p>
  16431. <h2 id="tocschecklistitems">ChecklistItems</h2>
  16432. <p><a id="schemachecklistitems"></a></p>
  16433. <pre class="highlight tab tab-json"><code>{
  16434. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  16435. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  16436. <span class="hljs-attr">"isFinished"</span>: <span class="hljs-literal">true</span>,
  16437. <span class="hljs-attr">"checklistId"</span>: <span class="hljs-string">"string"</span>,
  16438. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  16439. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16440. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  16441. }
  16442. </code></pre>
  16443. <p><em>An item in a checklist</em></p>
  16444. <h3 id="properties">Properties</h3>
  16445. <table>
  16446. <thead>
  16447. <tr>
  16448. <th>Name</th>
  16449. <th>Type</th>
  16450. <th>Required</th>
  16451. <th>Restrictions</th>
  16452. <th>Description</th>
  16453. </tr>
  16454. </thead>
  16455. <tbody>
  16456. <tr>
  16457. <td>title</td>
  16458. <td>string</td>
  16459. <td>true</td>
  16460. <td>none</td>
  16461. <td>the text of the item</td>
  16462. </tr>
  16463. <tr>
  16464. <td>sort</td>
  16465. <td>number</td>
  16466. <td>true</td>
  16467. <td>none</td>
  16468. <td>the sorting field of the item</td>
  16469. </tr>
  16470. <tr>
  16471. <td>isFinished</td>
  16472. <td>boolean</td>
  16473. <td>true</td>
  16474. <td>none</td>
  16475. <td>Is the item checked?</td>
  16476. </tr>
  16477. <tr>
  16478. <td>checklistId</td>
  16479. <td>string</td>
  16480. <td>true</td>
  16481. <td>none</td>
  16482. <td>the checklist ID the item is attached to</td>
  16483. </tr>
  16484. <tr>
  16485. <td>cardId</td>
  16486. <td>string</td>
  16487. <td>true</td>
  16488. <td>none</td>
  16489. <td>the card ID the item is attached to</td>
  16490. </tr>
  16491. <tr>
  16492. <td>createdAt</td>
  16493. <td>string|null</td>
  16494. <td>false</td>
  16495. <td>none</td>
  16496. <td>none</td>
  16497. </tr>
  16498. <tr>
  16499. <td>modifiedAt</td>
  16500. <td>string</td>
  16501. <td>true</td>
  16502. <td>none</td>
  16503. <td>none</td>
  16504. </tr>
  16505. </tbody>
  16506. </table>
  16507. <h2 id="tocschecklists">Checklists</h2>
  16508. <p><a id="schemachecklists"></a></p>
  16509. <pre class="highlight tab tab-json"><code>{
  16510. <span class="hljs-attr">"cardId"</span>: <span class="hljs-string">"string"</span>,
  16511. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  16512. <span class="hljs-attr">"finishedAt"</span>: <span class="hljs-string">"string"</span>,
  16513. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16514. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  16515. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  16516. <span class="hljs-attr">"hideCheckedChecklistItems"</span>: <span class="hljs-literal">true</span>,
  16517. <span class="hljs-attr">"hideAllChecklistItems"</span>: <span class="hljs-literal">true</span>
  16518. }
  16519. </code></pre>
  16520. <p><em>A Checklist</em></p>
  16521. <h3 id="properties">Properties</h3>
  16522. <table>
  16523. <thead>
  16524. <tr>
  16525. <th>Name</th>
  16526. <th>Type</th>
  16527. <th>Required</th>
  16528. <th>Restrictions</th>
  16529. <th>Description</th>
  16530. </tr>
  16531. </thead>
  16532. <tbody>
  16533. <tr>
  16534. <td>cardId</td>
  16535. <td>string</td>
  16536. <td>true</td>
  16537. <td>none</td>
  16538. <td>The ID of the card the checklist is in</td>
  16539. </tr>
  16540. <tr>
  16541. <td>title</td>
  16542. <td>string</td>
  16543. <td>true</td>
  16544. <td>none</td>
  16545. <td>the title of the checklist</td>
  16546. </tr>
  16547. <tr>
  16548. <td>finishedAt</td>
  16549. <td>string|null</td>
  16550. <td>false</td>
  16551. <td>none</td>
  16552. <td>When was the checklist finished</td>
  16553. </tr>
  16554. <tr>
  16555. <td>createdAt</td>
  16556. <td>string</td>
  16557. <td>true</td>
  16558. <td>none</td>
  16559. <td>Creation date of the checklist</td>
  16560. </tr>
  16561. <tr>
  16562. <td>modifiedAt</td>
  16563. <td>string</td>
  16564. <td>true</td>
  16565. <td>none</td>
  16566. <td>none</td>
  16567. </tr>
  16568. <tr>
  16569. <td>sort</td>
  16570. <td>number</td>
  16571. <td>true</td>
  16572. <td>none</td>
  16573. <td>sorting value of the checklist</td>
  16574. </tr>
  16575. <tr>
  16576. <td>hideCheckedChecklistItems</td>
  16577. <td>boolean|null</td>
  16578. <td>false</td>
  16579. <td>none</td>
  16580. <td>hide the checked checklist-items?</td>
  16581. </tr>
  16582. <tr>
  16583. <td>hideAllChecklistItems</td>
  16584. <td>boolean|null</td>
  16585. <td>false</td>
  16586. <td>none</td>
  16587. <td>hide all checklist items ?</td>
  16588. </tr>
  16589. </tbody>
  16590. </table>
  16591. <h2 id="tocscustomfields">CustomFields</h2>
  16592. <p><a id="schemacustomfields"></a></p>
  16593. <pre class="highlight tab tab-json"><code>{
  16594. <span class="hljs-attr">"boardIds"</span>: [
  16595. <span class="hljs-string">"string"</span>
  16596. ],
  16597. <span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
  16598. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"text"</span>,
  16599. <span class="hljs-attr">"settings"</span>: {
  16600. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  16601. <span class="hljs-attr">"dropdownItems"</span>: [
  16602. {}
  16603. ],
  16604. <span class="hljs-attr">"stringtemplateFormat"</span>: <span class="hljs-string">"string"</span>,
  16605. <span class="hljs-attr">"stringtemplateSeparator"</span>: <span class="hljs-string">"string"</span>
  16606. },
  16607. <span class="hljs-attr">"showOnCard"</span>: <span class="hljs-literal">true</span>,
  16608. <span class="hljs-attr">"automaticallyOnCard"</span>: <span class="hljs-literal">true</span>,
  16609. <span class="hljs-attr">"alwaysOnCard"</span>: <span class="hljs-literal">true</span>,
  16610. <span class="hljs-attr">"showLabelOnMiniCard"</span>: <span class="hljs-literal">true</span>,
  16611. <span class="hljs-attr">"showSumAtTopOfList"</span>: <span class="hljs-literal">true</span>,
  16612. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16613. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>
  16614. }
  16615. </code></pre>
  16616. <p><em>A custom field on a card in the board</em></p>
  16617. <h3 id="properties">Properties</h3>
  16618. <table>
  16619. <thead>
  16620. <tr>
  16621. <th>Name</th>
  16622. <th>Type</th>
  16623. <th>Required</th>
  16624. <th>Restrictions</th>
  16625. <th>Description</th>
  16626. </tr>
  16627. </thead>
  16628. <tbody>
  16629. <tr>
  16630. <td>boardIds</td>
  16631. <td>[string]</td>
  16632. <td>true</td>
  16633. <td>none</td>
  16634. <td>the ID of the board</td>
  16635. </tr>
  16636. <tr>
  16637. <td>name</td>
  16638. <td>string</td>
  16639. <td>true</td>
  16640. <td>none</td>
  16641. <td>name of the custom field</td>
  16642. </tr>
  16643. <tr>
  16644. <td>type</td>
  16645. <td>string</td>
  16646. <td>true</td>
  16647. <td>none</td>
  16648. <td>type of the custom field</td>
  16649. </tr>
  16650. <tr>
  16651. <td>settings</td>
  16652. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  16653. <td>true</td>
  16654. <td>none</td>
  16655. <td>settings of the custom field</td>
  16656. </tr>
  16657. <tr>
  16658. <td>showOnCard</td>
  16659. <td>boolean</td>
  16660. <td>true</td>
  16661. <td>none</td>
  16662. <td>should we show on the cards this custom field</td>
  16663. </tr>
  16664. <tr>
  16665. <td>automaticallyOnCard</td>
  16666. <td>boolean</td>
  16667. <td>true</td>
  16668. <td>none</td>
  16669. <td>should the custom fields automatically be added on cards?</td>
  16670. </tr>
  16671. <tr>
  16672. <td>alwaysOnCard</td>
  16673. <td>boolean</td>
  16674. <td>true</td>
  16675. <td>none</td>
  16676. <td>should the custom field be automatically added to all cards?</td>
  16677. </tr>
  16678. <tr>
  16679. <td>showLabelOnMiniCard</td>
  16680. <td>boolean</td>
  16681. <td>true</td>
  16682. <td>none</td>
  16683. <td>should the label of the custom field be shown on minicards?</td>
  16684. </tr>
  16685. <tr>
  16686. <td>showSumAtTopOfList</td>
  16687. <td>boolean</td>
  16688. <td>true</td>
  16689. <td>none</td>
  16690. <td>should the sum of the custom fields be shown at top of list?</td>
  16691. </tr>
  16692. <tr>
  16693. <td>createdAt</td>
  16694. <td>string|null</td>
  16695. <td>false</td>
  16696. <td>none</td>
  16697. <td>none</td>
  16698. </tr>
  16699. <tr>
  16700. <td>modifiedAt</td>
  16701. <td>string</td>
  16702. <td>true</td>
  16703. <td>none</td>
  16704. <td>none</td>
  16705. </tr>
  16706. </tbody>
  16707. </table>
  16708. <h4 id="enumerated-values">Enumerated Values</h4>
  16709. <table>
  16710. <thead>
  16711. <tr>
  16712. <th>Property</th>
  16713. <th>Value</th>
  16714. </tr>
  16715. </thead>
  16716. <tbody>
  16717. <tr>
  16718. <td>type</td>
  16719. <td>text</td>
  16720. </tr>
  16721. <tr>
  16722. <td>type</td>
  16723. <td>number</td>
  16724. </tr>
  16725. <tr>
  16726. <td>type</td>
  16727. <td>date</td>
  16728. </tr>
  16729. <tr>
  16730. <td>type</td>
  16731. <td>dropdown</td>
  16732. </tr>
  16733. <tr>
  16734. <td>type</td>
  16735. <td>checkbox</td>
  16736. </tr>
  16737. <tr>
  16738. <td>type</td>
  16739. <td>currency</td>
  16740. </tr>
  16741. <tr>
  16742. <td>type</td>
  16743. <td>stringtemplate</td>
  16744. </tr>
  16745. </tbody>
  16746. </table>
  16747. <h2 id="tocscustomfieldssettings">CustomFieldsSettings</h2>
  16748. <p><a id="schemacustomfieldssettings"></a></p>
  16749. <pre class="highlight tab tab-json"><code>{
  16750. <span class="hljs-attr">"currencyCode"</span>: <span class="hljs-string">"string"</span>,
  16751. <span class="hljs-attr">"dropdownItems"</span>: [
  16752. {}
  16753. ],
  16754. <span class="hljs-attr">"stringtemplateFormat"</span>: <span class="hljs-string">"string"</span>,
  16755. <span class="hljs-attr">"stringtemplateSeparator"</span>: <span class="hljs-string">"string"</span>
  16756. }
  16757. </code></pre>
  16758. <h3 id="properties">Properties</h3>
  16759. <table>
  16760. <thead>
  16761. <tr>
  16762. <th>Name</th>
  16763. <th>Type</th>
  16764. <th>Required</th>
  16765. <th>Restrictions</th>
  16766. <th>Description</th>
  16767. </tr>
  16768. </thead>
  16769. <tbody>
  16770. <tr>
  16771. <td>currencyCode</td>
  16772. <td>string</td>
  16773. <td>false</td>
  16774. <td>none</td>
  16775. <td>none</td>
  16776. </tr>
  16777. <tr>
  16778. <td>dropdownItems</td>
  16779. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  16780. <td>false</td>
  16781. <td>none</td>
  16782. <td>list of drop down items objects</td>
  16783. </tr>
  16784. <tr>
  16785. <td>stringtemplateFormat</td>
  16786. <td>string</td>
  16787. <td>false</td>
  16788. <td>none</td>
  16789. <td>none</td>
  16790. </tr>
  16791. <tr>
  16792. <td>stringtemplateSeparator</td>
  16793. <td>string</td>
  16794. <td>false</td>
  16795. <td>none</td>
  16796. <td>none</td>
  16797. </tr>
  16798. </tbody>
  16799. </table>
  16800. <h2 id="tocscustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  16801. <p><a id="schemacustomfieldssettingsdropdownitems"></a></p>
  16802. <pre class="highlight tab tab-json"><code>{}
  16803. </code></pre>
  16804. <h3 id="properties">Properties</h3>
  16805. <p><em>None</em></p>
  16806. <h2 id="tocsintegrations">Integrations</h2>
  16807. <p><a id="schemaintegrations"></a></p>
  16808. <pre class="highlight tab tab-json"><code>{
  16809. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  16810. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  16811. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  16812. <span class="hljs-attr">"activities"</span>: [
  16813. <span class="hljs-string">"string"</span>
  16814. ],
  16815. <span class="hljs-attr">"url"</span>: <span class="hljs-string">"string"</span>,
  16816. <span class="hljs-attr">"token"</span>: <span class="hljs-string">"string"</span>,
  16817. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  16818. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16819. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  16820. <span class="hljs-attr">"userId"</span>: <span class="hljs-string">"string"</span>
  16821. }
  16822. </code></pre>
  16823. <p><em>Integration with third-party applications</em></p>
  16824. <h3 id="properties">Properties</h3>
  16825. <table>
  16826. <thead>
  16827. <tr>
  16828. <th>Name</th>
  16829. <th>Type</th>
  16830. <th>Required</th>
  16831. <th>Restrictions</th>
  16832. <th>Description</th>
  16833. </tr>
  16834. </thead>
  16835. <tbody>
  16836. <tr>
  16837. <td>enabled</td>
  16838. <td>boolean</td>
  16839. <td>true</td>
  16840. <td>none</td>
  16841. <td>is the integration enabled?</td>
  16842. </tr>
  16843. <tr>
  16844. <td>title</td>
  16845. <td>string|null</td>
  16846. <td>false</td>
  16847. <td>none</td>
  16848. <td>name of the integration</td>
  16849. </tr>
  16850. <tr>
  16851. <td>type</td>
  16852. <td>string</td>
  16853. <td>true</td>
  16854. <td>none</td>
  16855. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  16856. </tr>
  16857. <tr>
  16858. <td>activities</td>
  16859. <td>[string]</td>
  16860. <td>true</td>
  16861. <td>none</td>
  16862. <td>activities the integration gets triggered (list)</td>
  16863. </tr>
  16864. <tr>
  16865. <td>url</td>
  16866. <td>string</td>
  16867. <td>true</td>
  16868. <td>none</td>
  16869. <td>none</td>
  16870. </tr>
  16871. <tr>
  16872. <td>token</td>
  16873. <td>string|null</td>
  16874. <td>false</td>
  16875. <td>none</td>
  16876. <td>token of the integration</td>
  16877. </tr>
  16878. <tr>
  16879. <td>boardId</td>
  16880. <td>string</td>
  16881. <td>true</td>
  16882. <td>none</td>
  16883. <td>Board ID of the integration</td>
  16884. </tr>
  16885. <tr>
  16886. <td>createdAt</td>
  16887. <td>string</td>
  16888. <td>true</td>
  16889. <td>none</td>
  16890. <td>Creation date of the integration</td>
  16891. </tr>
  16892. <tr>
  16893. <td>modifiedAt</td>
  16894. <td>string</td>
  16895. <td>true</td>
  16896. <td>none</td>
  16897. <td>none</td>
  16898. </tr>
  16899. <tr>
  16900. <td>userId</td>
  16901. <td>string</td>
  16902. <td>true</td>
  16903. <td>none</td>
  16904. <td>user ID who created the interation</td>
  16905. </tr>
  16906. </tbody>
  16907. </table>
  16908. <h2 id="tocslists">Lists</h2>
  16909. <p><a id="schemalists"></a></p>
  16910. <pre class="highlight tab tab-json"><code>{
  16911. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  16912. <span class="hljs-attr">"starred"</span>: <span class="hljs-literal">true</span>,
  16913. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  16914. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  16915. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  16916. <span class="hljs-attr">"swimlaneId"</span>: <span class="hljs-string">"string"</span>,
  16917. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  16918. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  16919. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  16920. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  16921. <span class="hljs-attr">"wipLimit"</span>: {
  16922. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  16923. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  16924. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  16925. },
  16926. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  16927. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  16928. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  16929. }
  16930. </code></pre>
  16931. <p><em>A list (column) in the Wekan board.</em></p>
  16932. <h3 id="properties">Properties</h3>
  16933. <table>
  16934. <thead>
  16935. <tr>
  16936. <th>Name</th>
  16937. <th>Type</th>
  16938. <th>Required</th>
  16939. <th>Restrictions</th>
  16940. <th>Description</th>
  16941. </tr>
  16942. </thead>
  16943. <tbody>
  16944. <tr>
  16945. <td>title</td>
  16946. <td>string</td>
  16947. <td>true</td>
  16948. <td>none</td>
  16949. <td>the title of the list</td>
  16950. </tr>
  16951. <tr>
  16952. <td>starred</td>
  16953. <td>boolean|null</td>
  16954. <td>false</td>
  16955. <td>none</td>
  16956. <td>if a list is stared then we put it on the top</td>
  16957. </tr>
  16958. <tr>
  16959. <td>archived</td>
  16960. <td>boolean</td>
  16961. <td>true</td>
  16962. <td>none</td>
  16963. <td>is the list archived</td>
  16964. </tr>
  16965. <tr>
  16966. <td>archivedAt</td>
  16967. <td>string|null</td>
  16968. <td>false</td>
  16969. <td>none</td>
  16970. <td>latest archiving date</td>
  16971. </tr>
  16972. <tr>
  16973. <td>boardId</td>
  16974. <td>string</td>
  16975. <td>true</td>
  16976. <td>none</td>
  16977. <td>the board associated to this list</td>
  16978. </tr>
  16979. <tr>
  16980. <td>swimlaneId</td>
  16981. <td>string</td>
  16982. <td>true</td>
  16983. <td>none</td>
  16984. <td>the swimlane associated to this list. Used for templates</td>
  16985. </tr>
  16986. <tr>
  16987. <td>createdAt</td>
  16988. <td>string</td>
  16989. <td>true</td>
  16990. <td>none</td>
  16991. <td>creation date</td>
  16992. </tr>
  16993. <tr>
  16994. <td>sort</td>
  16995. <td>number|null</td>
  16996. <td>false</td>
  16997. <td>none</td>
  16998. <td>is the list sorted</td>
  16999. </tr>
  17000. <tr>
  17001. <td>updatedAt</td>
  17002. <td>string|null</td>
  17003. <td>false</td>
  17004. <td>none</td>
  17005. <td>last update of the list</td>
  17006. </tr>
  17007. <tr>
  17008. <td>modifiedAt</td>
  17009. <td>string</td>
  17010. <td>true</td>
  17011. <td>none</td>
  17012. <td>none</td>
  17013. </tr>
  17014. <tr>
  17015. <td>wipLimit</td>
  17016. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  17017. <td>false</td>
  17018. <td>none</td>
  17019. <td>WIP object, see below</td>
  17020. </tr>
  17021. <tr>
  17022. <td>color</td>
  17023. <td>string|null</td>
  17024. <td>false</td>
  17025. <td>none</td>
  17026. <td>the color of the list</td>
  17027. </tr>
  17028. <tr>
  17029. <td>type</td>
  17030. <td>string</td>
  17031. <td>true</td>
  17032. <td>none</td>
  17033. <td>The type of list</td>
  17034. </tr>
  17035. <tr>
  17036. <td>collapsed</td>
  17037. <td>boolean</td>
  17038. <td>true</td>
  17039. <td>none</td>
  17040. <td>is the list collapsed</td>
  17041. </tr>
  17042. </tbody>
  17043. </table>
  17044. <h4 id="enumerated-values">Enumerated Values</h4>
  17045. <table>
  17046. <thead>
  17047. <tr>
  17048. <th>Property</th>
  17049. <th>Value</th>
  17050. </tr>
  17051. </thead>
  17052. <tbody>
  17053. <tr>
  17054. <td>color</td>
  17055. <td>white</td>
  17056. </tr>
  17057. <tr>
  17058. <td>color</td>
  17059. <td>green</td>
  17060. </tr>
  17061. <tr>
  17062. <td>color</td>
  17063. <td>yellow</td>
  17064. </tr>
  17065. <tr>
  17066. <td>color</td>
  17067. <td>orange</td>
  17068. </tr>
  17069. <tr>
  17070. <td>color</td>
  17071. <td>red</td>
  17072. </tr>
  17073. <tr>
  17074. <td>color</td>
  17075. <td>purple</td>
  17076. </tr>
  17077. <tr>
  17078. <td>color</td>
  17079. <td>blue</td>
  17080. </tr>
  17081. <tr>
  17082. <td>color</td>
  17083. <td>sky</td>
  17084. </tr>
  17085. <tr>
  17086. <td>color</td>
  17087. <td>lime</td>
  17088. </tr>
  17089. <tr>
  17090. <td>color</td>
  17091. <td>pink</td>
  17092. </tr>
  17093. <tr>
  17094. <td>color</td>
  17095. <td>black</td>
  17096. </tr>
  17097. <tr>
  17098. <td>color</td>
  17099. <td>silver</td>
  17100. </tr>
  17101. <tr>
  17102. <td>color</td>
  17103. <td>peachpuff</td>
  17104. </tr>
  17105. <tr>
  17106. <td>color</td>
  17107. <td>crimson</td>
  17108. </tr>
  17109. <tr>
  17110. <td>color</td>
  17111. <td>plum</td>
  17112. </tr>
  17113. <tr>
  17114. <td>color</td>
  17115. <td>darkgreen</td>
  17116. </tr>
  17117. <tr>
  17118. <td>color</td>
  17119. <td>slateblue</td>
  17120. </tr>
  17121. <tr>
  17122. <td>color</td>
  17123. <td>magenta</td>
  17124. </tr>
  17125. <tr>
  17126. <td>color</td>
  17127. <td>gold</td>
  17128. </tr>
  17129. <tr>
  17130. <td>color</td>
  17131. <td>navy</td>
  17132. </tr>
  17133. <tr>
  17134. <td>color</td>
  17135. <td>gray</td>
  17136. </tr>
  17137. <tr>
  17138. <td>color</td>
  17139. <td>saddlebrown</td>
  17140. </tr>
  17141. <tr>
  17142. <td>color</td>
  17143. <td>paleturquoise</td>
  17144. </tr>
  17145. <tr>
  17146. <td>color</td>
  17147. <td>mistyrose</td>
  17148. </tr>
  17149. <tr>
  17150. <td>color</td>
  17151. <td>indigo</td>
  17152. </tr>
  17153. </tbody>
  17154. </table>
  17155. <h2 id="tocslistswiplimit">ListsWiplimit</h2>
  17156. <p><a id="schemalistswiplimit"></a></p>
  17157. <pre class="highlight tab tab-json"><code>{
  17158. <span class="hljs-attr">"value"</span>: <span class="hljs-number">0</span>,
  17159. <span class="hljs-attr">"enabled"</span>: <span class="hljs-literal">true</span>,
  17160. <span class="hljs-attr">"soft"</span>: <span class="hljs-literal">true</span>
  17161. }
  17162. </code></pre>
  17163. <h3 id="properties">Properties</h3>
  17164. <table>
  17165. <thead>
  17166. <tr>
  17167. <th>Name</th>
  17168. <th>Type</th>
  17169. <th>Required</th>
  17170. <th>Restrictions</th>
  17171. <th>Description</th>
  17172. </tr>
  17173. </thead>
  17174. <tbody>
  17175. <tr>
  17176. <td>value</td>
  17177. <td>number</td>
  17178. <td>true</td>
  17179. <td>none</td>
  17180. <td>value of the WIP</td>
  17181. </tr>
  17182. <tr>
  17183. <td>enabled</td>
  17184. <td>boolean</td>
  17185. <td>true</td>
  17186. <td>none</td>
  17187. <td>is the WIP enabled</td>
  17188. </tr>
  17189. <tr>
  17190. <td>soft</td>
  17191. <td>boolean</td>
  17192. <td>true</td>
  17193. <td>none</td>
  17194. <td>is the WIP a soft or hard requirement</td>
  17195. </tr>
  17196. </tbody>
  17197. </table>
  17198. <h2 id="tocsswimlanes">Swimlanes</h2>
  17199. <p><a id="schemaswimlanes"></a></p>
  17200. <pre class="highlight tab tab-json"><code>{
  17201. <span class="hljs-attr">"title"</span>: <span class="hljs-string">"string"</span>,
  17202. <span class="hljs-attr">"archived"</span>: <span class="hljs-literal">true</span>,
  17203. <span class="hljs-attr">"archivedAt"</span>: <span class="hljs-string">"string"</span>,
  17204. <span class="hljs-attr">"boardId"</span>: <span class="hljs-string">"string"</span>,
  17205. <span class="hljs-attr">"createdAt"</span>: <span class="hljs-string">"string"</span>,
  17206. <span class="hljs-attr">"sort"</span>: <span class="hljs-number">0</span>,
  17207. <span class="hljs-attr">"color"</span>: <span class="hljs-string">"white"</span>,
  17208. <span class="hljs-attr">"updatedAt"</span>: <span class="hljs-string">"string"</span>,
  17209. <span class="hljs-attr">"modifiedAt"</span>: <span class="hljs-string">"string"</span>,
  17210. <span class="hljs-attr">"type"</span>: <span class="hljs-string">"string"</span>,
  17211. <span class="hljs-attr">"collapsed"</span>: <span class="hljs-literal">true</span>
  17212. }
  17213. </code></pre>
  17214. <p><em>A swimlane is an line in the kaban board.</em></p>
  17215. <h3 id="properties">Properties</h3>
  17216. <table>
  17217. <thead>
  17218. <tr>
  17219. <th>Name</th>
  17220. <th>Type</th>
  17221. <th>Required</th>
  17222. <th>Restrictions</th>
  17223. <th>Description</th>
  17224. </tr>
  17225. </thead>
  17226. <tbody>
  17227. <tr>
  17228. <td>title</td>
  17229. <td>string</td>
  17230. <td>true</td>
  17231. <td>none</td>
  17232. <td>the title of the swimlane</td>
  17233. </tr>
  17234. <tr>
  17235. <td>archived</td>
  17236. <td>boolean</td>
  17237. <td>true</td>
  17238. <td>none</td>
  17239. <td>is the swimlane archived?</td>
  17240. </tr>
  17241. <tr>
  17242. <td>archivedAt</td>
  17243. <td>string|null</td>
  17244. <td>false</td>
  17245. <td>none</td>
  17246. <td>latest archiving date of the swimlane</td>
  17247. </tr>
  17248. <tr>
  17249. <td>boardId</td>
  17250. <td>string</td>
  17251. <td>true</td>
  17252. <td>none</td>
  17253. <td>the ID of the board the swimlane is attached to</td>
  17254. </tr>
  17255. <tr>
  17256. <td>createdAt</td>
  17257. <td>string</td>
  17258. <td>true</td>
  17259. <td>none</td>
  17260. <td>creation date of the swimlane</td>
  17261. </tr>
  17262. <tr>
  17263. <td>sort</td>
  17264. <td>number|null</td>
  17265. <td>false</td>
  17266. <td>none</td>
  17267. <td>the sort value of the swimlane</td>
  17268. </tr>
  17269. <tr>
  17270. <td>color</td>
  17271. <td>string|null</td>
  17272. <td>false</td>
  17273. <td>none</td>
  17274. <td>the color of the swimlane</td>
  17275. </tr>
  17276. <tr>
  17277. <td>updatedAt</td>
  17278. <td>string|null</td>
  17279. <td>false</td>
  17280. <td>none</td>
  17281. <td>when was the swimlane last edited</td>
  17282. </tr>
  17283. <tr>
  17284. <td>modifiedAt</td>
  17285. <td>string</td>
  17286. <td>true</td>
  17287. <td>none</td>
  17288. <td>none</td>
  17289. </tr>
  17290. <tr>
  17291. <td>type</td>
  17292. <td>string</td>
  17293. <td>true</td>
  17294. <td>none</td>
  17295. <td>The type of swimlane</td>
  17296. </tr>
  17297. <tr>
  17298. <td>collapsed</td>
  17299. <td>boolean</td>
  17300. <td>true</td>
  17301. <td>none</td>
  17302. <td>is the swimlane collapsed</td>
  17303. </tr>
  17304. </tbody>
  17305. </table>
  17306. <h4 id="enumerated-values">Enumerated Values</h4>
  17307. <table>
  17308. <thead>
  17309. <tr>
  17310. <th>Property</th>
  17311. <th>Value</th>
  17312. </tr>
  17313. </thead>
  17314. <tbody>
  17315. <tr>
  17316. <td>color</td>
  17317. <td>white</td>
  17318. </tr>
  17319. <tr>
  17320. <td>color</td>
  17321. <td>green</td>
  17322. </tr>
  17323. <tr>
  17324. <td>color</td>
  17325. <td>yellow</td>
  17326. </tr>
  17327. <tr>
  17328. <td>color</td>
  17329. <td>orange</td>
  17330. </tr>
  17331. <tr>
  17332. <td>color</td>
  17333. <td>red</td>
  17334. </tr>
  17335. <tr>
  17336. <td>color</td>
  17337. <td>purple</td>
  17338. </tr>
  17339. <tr>
  17340. <td>color</td>
  17341. <td>blue</td>
  17342. </tr>
  17343. <tr>
  17344. <td>color</td>
  17345. <td>sky</td>
  17346. </tr>
  17347. <tr>
  17348. <td>color</td>
  17349. <td>lime</td>
  17350. </tr>
  17351. <tr>
  17352. <td>color</td>
  17353. <td>pink</td>
  17354. </tr>
  17355. <tr>
  17356. <td>color</td>
  17357. <td>black</td>
  17358. </tr>
  17359. <tr>
  17360. <td>color</td>
  17361. <td>silver</td>
  17362. </tr>
  17363. <tr>
  17364. <td>color</td>
  17365. <td>peachpuff</td>
  17366. </tr>
  17367. <tr>
  17368. <td>color</td>
  17369. <td>crimson</td>
  17370. </tr>
  17371. <tr>
  17372. <td>color</td>
  17373. <td>plum</td>
  17374. </tr>
  17375. <tr>
  17376. <td>color</td>
  17377. <td>darkgreen</td>
  17378. </tr>
  17379. <tr>
  17380. <td>color</td>
  17381. <td>slateblue</td>
  17382. </tr>
  17383. <tr>
  17384. <td>color</td>
  17385. <td>magenta</td>
  17386. </tr>
  17387. <tr>
  17388. <td>color</td>
  17389. <td>gold</td>
  17390. </tr>
  17391. <tr>
  17392. <td>color</td>
  17393. <td>navy</td>
  17394. </tr>
  17395. <tr>
  17396. <td>color</td>
  17397. <td>gray</td>
  17398. </tr>
  17399. <tr>
  17400. <td>color</td>
  17401. <td>saddlebrown</td>
  17402. </tr>
  17403. <tr>
  17404. <td>color</td>
  17405. <td>paleturquoise</td>
  17406. </tr>
  17407. <tr>
  17408. <td>color</td>
  17409. <td>mistyrose</td>
  17410. </tr>
  17411. <tr>
  17412. <td>color</td>
  17413. <td>indigo</td>
  17414. </tr>
  17415. </tbody>
  17416. </table>
  17417. </div>
  17418. <div class="dark-box">
  17419. <div class="lang-selector">
  17420. <a href="#" data-language-name="shell">Shell</a>
  17421. <a href="#" data-language-name="http">HTTP</a>
  17422. <a href="#" data-language-name="javascript">JavaScript</a>
  17423. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  17424. <a href="#" data-language-name="ruby">Ruby</a>
  17425. <a href="#" data-language-name="python">Python</a>
  17426. <a href="#" data-language-name="java">Java</a>
  17427. <a href="#" data-language-name="go">Go</a>
  17428. </div>
  17429. </div>
  17430. </div>
  17431. </body>
  17432. </html>