wekan.html 899 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981
  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 v5.22</title>
  8. <style>
  9. </style>
  10. <style media="screen">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  11. /**
  12. * 1. Set default font family to sans-serif.
  13. * 2. Prevent iOS text size adjust after orientation change, without disabling
  14. * user zoom.
  15. */
  16. html {
  17. font-family: sans-serif;
  18. /* 1 */
  19. -ms-text-size-adjust: 100%;
  20. /* 2 */
  21. -webkit-text-size-adjust: 100%;
  22. /* 2 */ }
  23. /**
  24. * Remove default margin.
  25. */
  26. body {
  27. margin: 0; }
  28. /* HTML5 display definitions
  29. ========================================================================== */
  30. /**
  31. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  32. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  33. * and Firefox.
  34. * Correct `block` display not defined for `main` in IE 11.
  35. */
  36. article,
  37. aside,
  38. details,
  39. figcaption,
  40. figure,
  41. footer,
  42. header,
  43. hgroup,
  44. main,
  45. menu,
  46. nav,
  47. section,
  48. summary {
  49. display: block; }
  50. /**
  51. * 1. Correct `inline-block` display not defined in IE 8/9.
  52. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  53. */
  54. audio,
  55. canvas,
  56. progress,
  57. video {
  58. display: inline-block;
  59. /* 1 */
  60. vertical-align: baseline;
  61. /* 2 */ }
  62. /**
  63. * Prevent modern browsers from displaying `audio` without controls.
  64. * Remove excess height in iOS 5 devices.
  65. */
  66. audio:not([controls]) {
  67. display: none;
  68. height: 0; }
  69. /**
  70. * Address `[hidden]` styling not present in IE 8/9/10.
  71. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  72. */
  73. [hidden],
  74. template {
  75. display: none; }
  76. /* Links
  77. ========================================================================== */
  78. /**
  79. * Remove the gray background color from active links in IE 10.
  80. */
  81. a {
  82. background-color: transparent; }
  83. /**
  84. * Improve readability when focused and also mouse hovered in all browsers.
  85. */
  86. a:active,
  87. a:hover {
  88. outline: 0; }
  89. /* Text-level semantics
  90. ========================================================================== */
  91. /**
  92. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  93. */
  94. abbr[title] {
  95. border-bottom: 1px dotted; }
  96. /**
  97. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  98. */
  99. b,
  100. strong {
  101. font-weight: bold; }
  102. /**
  103. * Address styling not present in Safari and Chrome.
  104. */
  105. dfn {
  106. font-style: italic; }
  107. /**
  108. * Address variable `h1` font-size and margin within `section` and `article`
  109. * contexts in Firefox 4+, Safari, and Chrome.
  110. */
  111. h1 {
  112. font-size: 2em;
  113. margin: 0.67em 0; }
  114. /**
  115. * Address styling not present in IE 8/9.
  116. */
  117. mark {
  118. background: #ff0;
  119. color: #000; }
  120. /**
  121. * Address inconsistent and variable font size in all browsers.
  122. */
  123. small {
  124. font-size: 80%; }
  125. /**
  126. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  127. */
  128. sub,
  129. sup {
  130. font-size: 75%;
  131. line-height: 0;
  132. position: relative;
  133. vertical-align: baseline; }
  134. sup {
  135. top: -0.5em; }
  136. sub {
  137. bottom: -0.25em; }
  138. /* Embedded content
  139. ========================================================================== */
  140. /**
  141. * Remove border when inside `a` element in IE 8/9/10.
  142. */
  143. img {
  144. border: 0; }
  145. /**
  146. * Correct overflow not hidden in IE 9/10/11.
  147. */
  148. svg:not(:root) {
  149. overflow: hidden; }
  150. /* Grouping content
  151. ========================================================================== */
  152. /**
  153. * Address margin not present in IE 8/9 and Safari.
  154. */
  155. figure {
  156. margin: 1em 40px; }
  157. /**
  158. * Address differences between Firefox and other browsers.
  159. */
  160. hr {
  161. -moz-box-sizing: content-box;
  162. box-sizing: content-box;
  163. height: 0; }
  164. /**
  165. * Contain overflow in all browsers.
  166. */
  167. pre {
  168. overflow: auto; }
  169. /**
  170. * Address odd `em`-unit font size rendering in all browsers.
  171. */
  172. code,
  173. kbd,
  174. pre,
  175. samp {
  176. font-family: monospace, monospace;
  177. font-size: 1em; }
  178. /* Forms
  179. ========================================================================== */
  180. /**
  181. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  182. * styling of `select`, unless a `border` property is set.
  183. */
  184. /**
  185. * 1. Correct color not being inherited.
  186. * Known issue: affects color of disabled elements.
  187. * 2. Correct font properties not being inherited.
  188. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  189. */
  190. button,
  191. input,
  192. optgroup,
  193. select,
  194. textarea {
  195. color: inherit;
  196. /* 1 */
  197. font: inherit;
  198. /* 2 */
  199. margin: 0;
  200. /* 3 */ }
  201. /**
  202. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  203. */
  204. button {
  205. overflow: visible; }
  206. /**
  207. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  208. * All other form control elements do not inherit `text-transform` values.
  209. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  210. * Correct `select` style inheritance in Firefox.
  211. */
  212. button,
  213. select {
  214. text-transform: none; }
  215. /**
  216. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  217. * and `video` controls.
  218. * 2. Correct inability to style clickable `input` types in iOS.
  219. * 3. Improve usability and consistency of cursor style between image-type
  220. * `input` and others.
  221. */
  222. button,
  223. html input[type="button"],
  224. input[type="reset"],
  225. input[type="submit"] {
  226. -webkit-appearance: button;
  227. /* 2 */
  228. cursor: pointer;
  229. /* 3 */ }
  230. /**
  231. * Re-set default cursor for disabled elements.
  232. */
  233. button[disabled],
  234. html input[disabled] {
  235. cursor: default; }
  236. /**
  237. * Remove inner padding and border in Firefox 4+.
  238. */
  239. button::-moz-focus-inner,
  240. input::-moz-focus-inner {
  241. border: 0;
  242. padding: 0; }
  243. /**
  244. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  245. * the UA stylesheet.
  246. */
  247. input {
  248. line-height: normal; }
  249. /**
  250. * It's recommended that you don't attempt to style these elements.
  251. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  252. *
  253. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  254. * 2. Remove excess padding in IE 8/9/10.
  255. */
  256. input[type="checkbox"],
  257. input[type="radio"] {
  258. box-sizing: border-box;
  259. /* 1 */
  260. padding: 0;
  261. /* 2 */ }
  262. /**
  263. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  264. * `font-size` values of the `input`, it causes the cursor style of the
  265. * decrement button to change from `default` to `text`.
  266. */
  267. input[type="number"]::-webkit-inner-spin-button,
  268. input[type="number"]::-webkit-outer-spin-button {
  269. height: auto; }
  270. /**
  271. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  272. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  273. * (include `-moz` to future-proof).
  274. */
  275. input[type="search"] {
  276. -webkit-appearance: textfield;
  277. /* 1 */
  278. -moz-box-sizing: content-box;
  279. -webkit-box-sizing: content-box;
  280. /* 2 */
  281. box-sizing: content-box; }
  282. /**
  283. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  284. * Safari (but not Chrome) clips the cancel button when the search input has
  285. * padding (and `textfield` appearance).
  286. */
  287. input[type="search"]::-webkit-search-cancel-button,
  288. input[type="search"]::-webkit-search-decoration {
  289. -webkit-appearance: none; }
  290. /**
  291. * Define consistent border, margin, and padding.
  292. */
  293. fieldset {
  294. border: 1px solid #c0c0c0;
  295. margin: 0 2px;
  296. padding: 0.35em 0.625em 0.75em; }
  297. /**
  298. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  299. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  300. */
  301. legend {
  302. border: 0;
  303. /* 1 */
  304. padding: 0;
  305. /* 2 */ }
  306. /**
  307. * Remove default vertical scrollbar in IE 8/9/10/11.
  308. */
  309. textarea {
  310. overflow: auto; }
  311. /**
  312. * Don't inherit the `font-weight` (applied by a rule above).
  313. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  314. */
  315. optgroup {
  316. font-weight: bold; }
  317. /* Tables
  318. ========================================================================== */
  319. /**
  320. * Remove most spacing between table cells.
  321. */
  322. table {
  323. border-collapse: collapse;
  324. border-spacing: 0; }
  325. td,
  326. th {
  327. padding: 0; }
  328. /*
  329. Copyright 2008-2013 Concur Technologies, Inc.
  330. Licensed under the Apache License, Version 2.0 (the "License"); you may
  331. not use this file except in compliance with the License. You may obtain
  332. a copy of the License at
  333. http://www.apache.org/licenses/LICENSE-2.0
  334. Unless required by applicable law or agreed to in writing, software
  335. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  336. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  337. License for the specific language governing permissions and limitations
  338. under the License.
  339. */
  340. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6, html, body {
  341. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  342. font-size: 14px; }
  343. .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  344. font-weight: bold; }
  345. .content code, .content pre {
  346. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  347. font-size: 12px;
  348. line-height: 1.5; }
  349. .content code {
  350. word-break: break-all;
  351. hyphens: auto; }
  352. @font-face {
  353. font-family: 'slate';
  354. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  355. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  356. font-weight: normal;
  357. font-style: normal; }
  358. .content aside.warning:before, .content aside.notice:before, .content aside.success:before, .toc-wrapper > .search:before {
  359. font-family: 'slate';
  360. speak: none;
  361. font-style: normal;
  362. font-weight: normal;
  363. font-variant: normal;
  364. text-transform: none;
  365. line-height: 1; }
  366. .content aside.warning:before {
  367. content: "\e600"; }
  368. .content aside.notice:before {
  369. content: "\e602"; }
  370. .content aside.success:before {
  371. content: "\e606"; }
  372. .toc-wrapper > .search:before {
  373. content: "\e607"; }
  374. /*
  375. Copyright 2008-2013 Concur Technologies, Inc.
  376. Licensed under the Apache License, Version 2.0 (the "License"); you may
  377. not use this file except in compliance with the License. You may obtain
  378. a copy of the License at
  379. http://www.apache.org/licenses/LICENSE-2.0
  380. Unless required by applicable law or agreed to in writing, software
  381. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  382. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  383. License for the specific language governing permissions and limitations
  384. under the License.
  385. */
  386. html, body {
  387. color: #333;
  388. padding: 0;
  389. margin: 0;
  390. -webkit-font-smoothing: antialiased;
  391. -moz-osx-font-smoothing: grayscale;
  392. background-color: #F3F7F9;
  393. height: 100%;
  394. -webkit-text-size-adjust: none;
  395. /* Never autoresize text */ }
  396. #toc > ul > li > a > span {
  397. float: right;
  398. background-color: #2484FF;
  399. border-radius: 40px;
  400. width: 20px; }
  401. .toc-wrapper {
  402. transition: left 0.3s ease-in-out;
  403. overflow-y: auto;
  404. overflow-x: hidden;
  405. position: fixed;
  406. z-index: 30;
  407. top: 0;
  408. left: 0;
  409. bottom: 0;
  410. width: 230px;
  411. background-color: #2E3336;
  412. font-size: 13px;
  413. font-weight: bold; }
  414. .toc-wrapper .lang-selector {
  415. display: none; }
  416. .toc-wrapper .lang-selector a {
  417. padding-top: 0.5em;
  418. padding-bottom: 0.5em; }
  419. .toc-wrapper .logo {
  420. display: block;
  421. max-width: 100%;
  422. margin-bottom: 0px; }
  423. .toc-wrapper > .search {
  424. position: relative; }
  425. .toc-wrapper > .search input {
  426. background: #2E3336;
  427. border-width: 0 0 1px 0;
  428. border-color: #666;
  429. padding: 6px 0 6px 20px;
  430. box-sizing: border-box;
  431. margin: 10px 15px;
  432. width: 200px;
  433. outline: none;
  434. color: #fff;
  435. border-radius: 0;
  436. /* ios has a default border radius */ }
  437. .toc-wrapper > .search:before {
  438. position: absolute;
  439. top: 17px;
  440. left: 15px;
  441. color: #fff; }
  442. .toc-wrapper .search-results {
  443. margin-top: 0;
  444. box-sizing: border-box;
  445. height: 0;
  446. overflow-y: auto;
  447. overflow-x: hidden;
  448. transition-property: height, margin;
  449. transition-duration: 180ms;
  450. transition-timing-function: ease-in-out;
  451. background: #1E2224; }
  452. .toc-wrapper .search-results.visible {
  453. height: 30%;
  454. margin-bottom: 1em; }
  455. .toc-wrapper .search-results li {
  456. margin: 1em 15px;
  457. line-height: 1; }
  458. .toc-wrapper .search-results a {
  459. color: #fff;
  460. text-decoration: none; }
  461. .toc-wrapper .search-results a:hover {
  462. text-decoration: underline; }
  463. .toc-wrapper ul, .toc-wrapper li {
  464. list-style: none;
  465. margin: 0;
  466. padding: 0;
  467. line-height: 28px; }
  468. .toc-wrapper li {
  469. color: #fff;
  470. transition-property: background;
  471. transition-timing-function: linear;
  472. transition-duration: 200ms; }
  473. .toc-wrapper .toc-link.active {
  474. background-color: #0F75D4;
  475. color: #fff; }
  476. .toc-wrapper .toc-link.active-parent {
  477. background-color: #1E2224;
  478. color: #fff; }
  479. .toc-wrapper .toc-list-h2 {
  480. display: none;
  481. background-color: #1E2224;
  482. font-weight: 500; }
  483. .toc-wrapper .toc-h2 {
  484. padding-left: 25px;
  485. font-size: 12px; }
  486. .toc-wrapper .toc-footer {
  487. padding: 1em 0;
  488. margin-top: 1em;
  489. border-top: 1px dashed #666; }
  490. .toc-wrapper .toc-footer li, .toc-wrapper .toc-footer a {
  491. color: #fff;
  492. text-decoration: none; }
  493. .toc-wrapper .toc-footer a:hover {
  494. text-decoration: underline; }
  495. .toc-wrapper .toc-footer li {
  496. font-size: 0.8em;
  497. line-height: 1.7;
  498. text-decoration: none; }
  499. .toc-link, .toc-footer li {
  500. padding: 0 15px 0 15px;
  501. display: block;
  502. overflow-x: hidden;
  503. white-space: nowrap;
  504. text-overflow: ellipsis;
  505. text-decoration: none;
  506. color: #fff;
  507. transition-property: background;
  508. transition-timing-function: linear;
  509. transition-duration: 130ms; }
  510. #nav-button {
  511. padding: 0 1.5em 5em 0;
  512. display: none;
  513. position: fixed;
  514. top: 0;
  515. left: 0;
  516. z-index: 100;
  517. color: #000;
  518. text-decoration: none;
  519. font-weight: bold;
  520. opacity: 0.7;
  521. line-height: 16px;
  522. transition: left 0.3s ease-in-out; }
  523. #nav-button span {
  524. display: block;
  525. padding: 6px 6px 6px;
  526. background-color: rgba(243, 247, 249, 0.7);
  527. transform-origin: 0 0;
  528. transform: rotate(-90deg) translate(-100%, 0);
  529. border-radius: 0 0 0 5px; }
  530. #nav-button img {
  531. height: 16px;
  532. vertical-align: bottom; }
  533. #nav-button:hover {
  534. opacity: 1; }
  535. #nav-button.open {
  536. left: 230px; }
  537. .page-wrapper {
  538. margin-left: 230px;
  539. position: relative;
  540. z-index: 10;
  541. background-color: #F3F7F9;
  542. min-height: 100%;
  543. padding-bottom: 1px; }
  544. .page-wrapper .dark-box {
  545. width: 50%;
  546. background-color: #2E3336;
  547. position: absolute;
  548. right: 0;
  549. top: 0;
  550. bottom: 0; }
  551. .page-wrapper .lang-selector {
  552. position: fixed;
  553. z-index: 50;
  554. border-bottom: 5px solid #2E3336; }
  555. .lang-selector {
  556. background-color: #1E2224;
  557. width: 100%;
  558. font-weight: bold; }
  559. .lang-selector a {
  560. display: block;
  561. float: left;
  562. color: #fff;
  563. text-decoration: none;
  564. padding: 0 10px;
  565. line-height: 30px;
  566. outline: 0; }
  567. .lang-selector a:active, .lang-selector a:focus {
  568. background-color: #111;
  569. color: #fff; }
  570. .lang-selector a.active {
  571. background-color: #2E3336;
  572. color: #fff; }
  573. .lang-selector:after {
  574. content: '';
  575. clear: both;
  576. display: block; }
  577. .content {
  578. -webkit-transform: translateZ(0);
  579. position: relative;
  580. z-index: 30; }
  581. .content:after {
  582. content: '';
  583. display: block;
  584. clear: both; }
  585. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  586. margin-right: 50%;
  587. padding: 0 28px;
  588. box-sizing: border-box;
  589. display: block; }
  590. .content > ul, .content > ol {
  591. padding-left: 43px; }
  592. .content > h1, .content > h2, .content > div {
  593. clear: both; }
  594. .content h1 {
  595. font-size: 25px;
  596. padding-top: 0.5em;
  597. padding-bottom: 0.5em;
  598. margin-bottom: 21px;
  599. margin-top: 2em;
  600. border-top: 1px solid #ccc;
  601. border-bottom: 1px solid #ccc;
  602. background-color: #fdfdfd; }
  603. .content h1:first-child, .content div:first-child + h1 {
  604. border-top-width: 0;
  605. margin-top: 0; }
  606. .content h2 {
  607. font-size: 19px;
  608. margin-top: 4em;
  609. margin-bottom: 0;
  610. border-top: 1px solid #ccc;
  611. padding-top: 1.2em;
  612. padding-bottom: 1.2em;
  613. background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); }
  614. .content h1 + h2, .content h1 + div + h2 {
  615. margin-top: -21px;
  616. border-top: none; }
  617. .content h3, .content h4, .content h5, .content h6 {
  618. font-size: 15px;
  619. margin-top: 2.5em;
  620. margin-bottom: 0.8em; }
  621. .content h4, .content h5, .content h6 {
  622. font-size: 10px; }
  623. .content hr {
  624. margin: 2em 0;
  625. border-top: 2px solid #2E3336;
  626. border-bottom: 2px solid #F3F7F9; }
  627. .content table {
  628. margin-bottom: 1em;
  629. overflow: auto; }
  630. .content table th, .content table td {
  631. text-align: left;
  632. vertical-align: top;
  633. line-height: 1.6; }
  634. .content table th code, .content table td code {
  635. white-space: nowrap; }
  636. .content table th {
  637. padding: 5px 10px;
  638. border-bottom: 1px solid #ccc;
  639. vertical-align: bottom; }
  640. .content table td {
  641. padding: 10px; }
  642. .content table tr:last-child {
  643. border-bottom: 1px solid #ccc; }
  644. .content table tr:nth-child(odd) > td {
  645. background-color: white; }
  646. .content table tr:nth-child(even) > td {
  647. background-color: #fbfcfd; }
  648. .content dt {
  649. font-weight: bold; }
  650. .content dd {
  651. margin-left: 15px; }
  652. .content p, .content li, .content dt, .content dd {
  653. line-height: 1.6;
  654. margin-top: 0; }
  655. .content img {
  656. max-width: 100%; }
  657. .content code {
  658. background-color: rgba(0, 0, 0, 0.05);
  659. padding: 3px;
  660. border-radius: 3px; }
  661. .content pre > code {
  662. background-color: transparent;
  663. padding: 0; }
  664. .content aside {
  665. padding-top: 1em;
  666. padding-bottom: 1em;
  667. margin-top: 1.5em;
  668. margin-bottom: 1.5em;
  669. background: #8fbcd4;
  670. line-height: 1.6; }
  671. .content aside.warning {
  672. background-color: #c97a7e; }
  673. .content aside.success {
  674. background-color: #6ac174; }
  675. .content aside:before {
  676. vertical-align: middle;
  677. padding-right: 0.5em;
  678. font-size: 14px; }
  679. .content .search-highlight {
  680. padding: 2px;
  681. margin: -3px;
  682. border-radius: 4px;
  683. border: 1px solid #F7E633;
  684. background: linear-gradient(to top left, #F7E633 0%, #F1D32F 100%); }
  685. .content pre, .content blockquote {
  686. background-color: #1E2224;
  687. color: #fff;
  688. margin: 0;
  689. width: 50%;
  690. float: right;
  691. clear: right;
  692. box-sizing: border-box; }
  693. .content pre > p, .content blockquote > p {
  694. margin: 0; }
  695. .content pre a, .content blockquote a {
  696. color: #fff;
  697. text-decoration: none;
  698. border-bottom: dashed 1px #ccc; }
  699. .content pre {
  700. padding-top: 2em;
  701. padding-bottom: 2em;
  702. padding: 2em 28px; }
  703. .content blockquote > p {
  704. background-color: #191D1F;
  705. padding: 13px 2em;
  706. color: #eee; }
  707. @media (max-width: 930px) {
  708. .toc-wrapper {
  709. left: -230px; }
  710. .toc-wrapper.open {
  711. left: 0; }
  712. .page-wrapper {
  713. margin-left: 0; }
  714. #nav-button {
  715. display: block; }
  716. .toc-link {
  717. padding-top: 0.3em;
  718. padding-bottom: 0.3em; } }
  719. @media (max-width: 700px) {
  720. .dark-box {
  721. display: none; }
  722. .content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  723. margin-right: 0; }
  724. .toc-wrapper .lang-selector {
  725. display: block; }
  726. .page-wrapper .lang-selector {
  727. display: none; }
  728. .content pre, .content blockquote {
  729. width: auto;
  730. float: none; }
  731. .content > pre + h1, .content > blockquote + h1, .content > pre + h2, .content > blockquote + h2, .content > pre + h3, .content > blockquote + h3, .content > pre + h4, .content > blockquote + h4, .content > pre + h5, .content > blockquote + h5, .content > pre + h6, .content > blockquote + h6, .content > pre + p, .content > blockquote + p, .content > pre + table, .content > blockquote + table, .content > pre + ul, .content > blockquote + ul, .content > pre + ol, .content > blockquote + ol, .content > pre + aside, .content > blockquote + aside, .content > pre + dl, .content > blockquote + dl {
  732. margin-top: 28px; } }
  733. .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {
  734. color: #909090; }
  735. .highlight, .highlight .w {
  736. background-color: #1E2224; }
  737. </style>
  738. <style media="print">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  739. /**
  740. * 1. Set default font family to sans-serif.
  741. * 2. Prevent iOS text size adjust after orientation change, without disabling
  742. * user zoom.
  743. */
  744. html {
  745. font-family: sans-serif;
  746. /* 1 */
  747. -ms-text-size-adjust: 100%;
  748. /* 2 */
  749. -webkit-text-size-adjust: 100%;
  750. /* 2 */ }
  751. /**
  752. * Remove default margin.
  753. */
  754. body {
  755. margin: 0; }
  756. /* HTML5 display definitions
  757. ========================================================================== */
  758. /**
  759. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  760. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  761. * and Firefox.
  762. * Correct `block` display not defined for `main` in IE 11.
  763. */
  764. article,
  765. aside,
  766. details,
  767. figcaption,
  768. figure,
  769. footer,
  770. header,
  771. hgroup,
  772. main,
  773. menu,
  774. nav,
  775. section,
  776. summary {
  777. display: block; }
  778. /**
  779. * 1. Correct `inline-block` display not defined in IE 8/9.
  780. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  781. */
  782. audio,
  783. canvas,
  784. progress,
  785. video {
  786. display: inline-block;
  787. /* 1 */
  788. vertical-align: baseline;
  789. /* 2 */ }
  790. /**
  791. * Prevent modern browsers from displaying `audio` without controls.
  792. * Remove excess height in iOS 5 devices.
  793. */
  794. audio:not([controls]) {
  795. display: none;
  796. height: 0; }
  797. /**
  798. * Address `[hidden]` styling not present in IE 8/9/10.
  799. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  800. */
  801. [hidden],
  802. template {
  803. display: none; }
  804. /* Links
  805. ========================================================================== */
  806. /**
  807. * Remove the gray background color from active links in IE 10.
  808. */
  809. a {
  810. background-color: transparent; }
  811. /**
  812. * Improve readability when focused and also mouse hovered in all browsers.
  813. */
  814. a:active,
  815. a:hover {
  816. outline: 0; }
  817. /* Text-level semantics
  818. ========================================================================== */
  819. /**
  820. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  821. */
  822. abbr[title] {
  823. border-bottom: 1px dotted; }
  824. /**
  825. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  826. */
  827. b,
  828. strong {
  829. font-weight: bold; }
  830. /**
  831. * Address styling not present in Safari and Chrome.
  832. */
  833. dfn {
  834. font-style: italic; }
  835. /**
  836. * Address variable `h1` font-size and margin within `section` and `article`
  837. * contexts in Firefox 4+, Safari, and Chrome.
  838. */
  839. h1 {
  840. font-size: 2em;
  841. margin: 0.67em 0; }
  842. /**
  843. * Address styling not present in IE 8/9.
  844. */
  845. mark {
  846. background: #ff0;
  847. color: #000; }
  848. /**
  849. * Address inconsistent and variable font size in all browsers.
  850. */
  851. small {
  852. font-size: 80%; }
  853. /**
  854. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  855. */
  856. sub,
  857. sup {
  858. font-size: 75%;
  859. line-height: 0;
  860. position: relative;
  861. vertical-align: baseline; }
  862. sup {
  863. top: -0.5em; }
  864. sub {
  865. bottom: -0.25em; }
  866. /* Embedded content
  867. ========================================================================== */
  868. /**
  869. * Remove border when inside `a` element in IE 8/9/10.
  870. */
  871. img {
  872. border: 0; }
  873. /**
  874. * Correct overflow not hidden in IE 9/10/11.
  875. */
  876. svg:not(:root) {
  877. overflow: hidden; }
  878. /* Grouping content
  879. ========================================================================== */
  880. /**
  881. * Address margin not present in IE 8/9 and Safari.
  882. */
  883. figure {
  884. margin: 1em 40px; }
  885. /**
  886. * Address differences between Firefox and other browsers.
  887. */
  888. hr {
  889. -moz-box-sizing: content-box;
  890. box-sizing: content-box;
  891. height: 0; }
  892. /**
  893. * Contain overflow in all browsers.
  894. */
  895. pre {
  896. overflow: auto; }
  897. /**
  898. * Address odd `em`-unit font size rendering in all browsers.
  899. */
  900. code,
  901. kbd,
  902. pre,
  903. samp {
  904. font-family: monospace, monospace;
  905. font-size: 1em; }
  906. /* Forms
  907. ========================================================================== */
  908. /**
  909. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  910. * styling of `select`, unless a `border` property is set.
  911. */
  912. /**
  913. * 1. Correct color not being inherited.
  914. * Known issue: affects color of disabled elements.
  915. * 2. Correct font properties not being inherited.
  916. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  917. */
  918. button,
  919. input,
  920. optgroup,
  921. select,
  922. textarea {
  923. color: inherit;
  924. /* 1 */
  925. font: inherit;
  926. /* 2 */
  927. margin: 0;
  928. /* 3 */ }
  929. /**
  930. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  931. */
  932. button {
  933. overflow: visible; }
  934. /**
  935. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  936. * All other form control elements do not inherit `text-transform` values.
  937. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  938. * Correct `select` style inheritance in Firefox.
  939. */
  940. button,
  941. select {
  942. text-transform: none; }
  943. /**
  944. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  945. * and `video` controls.
  946. * 2. Correct inability to style clickable `input` types in iOS.
  947. * 3. Improve usability and consistency of cursor style between image-type
  948. * `input` and others.
  949. */
  950. button,
  951. html input[type="button"],
  952. input[type="reset"],
  953. input[type="submit"] {
  954. -webkit-appearance: button;
  955. /* 2 */
  956. cursor: pointer;
  957. /* 3 */ }
  958. /**
  959. * Re-set default cursor for disabled elements.
  960. */
  961. button[disabled],
  962. html input[disabled] {
  963. cursor: default; }
  964. /**
  965. * Remove inner padding and border in Firefox 4+.
  966. */
  967. button::-moz-focus-inner,
  968. input::-moz-focus-inner {
  969. border: 0;
  970. padding: 0; }
  971. /**
  972. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  973. * the UA stylesheet.
  974. */
  975. input {
  976. line-height: normal; }
  977. /**
  978. * It's recommended that you don't attempt to style these elements.
  979. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  980. *
  981. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  982. * 2. Remove excess padding in IE 8/9/10.
  983. */
  984. input[type="checkbox"],
  985. input[type="radio"] {
  986. box-sizing: border-box;
  987. /* 1 */
  988. padding: 0;
  989. /* 2 */ }
  990. /**
  991. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  992. * `font-size` values of the `input`, it causes the cursor style of the
  993. * decrement button to change from `default` to `text`.
  994. */
  995. input[type="number"]::-webkit-inner-spin-button,
  996. input[type="number"]::-webkit-outer-spin-button {
  997. height: auto; }
  998. /**
  999. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  1000. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  1001. * (include `-moz` to future-proof).
  1002. */
  1003. input[type="search"] {
  1004. -webkit-appearance: textfield;
  1005. /* 1 */
  1006. -moz-box-sizing: content-box;
  1007. -webkit-box-sizing: content-box;
  1008. /* 2 */
  1009. box-sizing: content-box; }
  1010. /**
  1011. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  1012. * Safari (but not Chrome) clips the cancel button when the search input has
  1013. * padding (and `textfield` appearance).
  1014. */
  1015. input[type="search"]::-webkit-search-cancel-button,
  1016. input[type="search"]::-webkit-search-decoration {
  1017. -webkit-appearance: none; }
  1018. /**
  1019. * Define consistent border, margin, and padding.
  1020. */
  1021. fieldset {
  1022. border: 1px solid #c0c0c0;
  1023. margin: 0 2px;
  1024. padding: 0.35em 0.625em 0.75em; }
  1025. /**
  1026. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  1027. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  1028. */
  1029. legend {
  1030. border: 0;
  1031. /* 1 */
  1032. padding: 0;
  1033. /* 2 */ }
  1034. /**
  1035. * Remove default vertical scrollbar in IE 8/9/10/11.
  1036. */
  1037. textarea {
  1038. overflow: auto; }
  1039. /**
  1040. * Don't inherit the `font-weight` (applied by a rule above).
  1041. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  1042. */
  1043. optgroup {
  1044. font-weight: bold; }
  1045. /* Tables
  1046. ========================================================================== */
  1047. /**
  1048. * Remove most spacing between table cells.
  1049. */
  1050. table {
  1051. border-collapse: collapse;
  1052. border-spacing: 0; }
  1053. td,
  1054. th {
  1055. padding: 0; }
  1056. /*
  1057. Copyright 2008-2013 Concur Technologies, Inc.
  1058. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1059. not use this file except in compliance with the License. You may obtain
  1060. a copy of the License at
  1061. http://www.apache.org/licenses/LICENSE-2.0
  1062. Unless required by applicable law or agreed to in writing, software
  1063. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1064. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1065. License for the specific language governing permissions and limitations
  1066. under the License.
  1067. */
  1068. .content h1, .content h2, .content h3, .content h4, body {
  1069. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  1070. font-size: 14px; }
  1071. .content h1, .content h2, .content h3, .content h4 {
  1072. font-weight: bold; }
  1073. .content pre, .content code {
  1074. font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
  1075. font-size: 12px;
  1076. line-height: 1.5; }
  1077. .content pre, .content code {
  1078. word-break: break-all;
  1079. hyphens: auto; }
  1080. @font-face {
  1081. font-family: 'slate';
  1082. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?-syv14m');
  1083. src: url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.eot?#iefix-syv14m') format("embedded-opentype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff2?-syv14m') format("woff2"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.woff?-syv14m') format("woff"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.ttf?-syv14m') format("truetype"), url('https://raw.githubusercontent.com/Mermade/shins/master/source/fonts/slate.svg?-syv14m#slate') format("svg");
  1084. font-weight: normal;
  1085. font-style: normal; }
  1086. .content aside.warning:before, .content aside.notice:before, .content aside.success:before {
  1087. font-family: 'slate';
  1088. speak: none;
  1089. font-style: normal;
  1090. font-weight: normal;
  1091. font-variant: normal;
  1092. text-transform: none;
  1093. line-height: 1; }
  1094. .content aside.warning:before {
  1095. content: "\e600"; }
  1096. .content aside.notice:before {
  1097. content: "\e602"; }
  1098. .content aside.success:before {
  1099. content: "\e606"; }
  1100. /*
  1101. Copyright 2008-2013 Concur Technologies, Inc.
  1102. Licensed under the Apache License, Version 2.0 (the "License"); you may
  1103. not use this file except in compliance with the License. You may obtain
  1104. a copy of the License at
  1105. http://www.apache.org/licenses/LICENSE-2.0
  1106. Unless required by applicable law or agreed to in writing, software
  1107. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  1108. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  1109. License for the specific language governing permissions and limitations
  1110. under the License.
  1111. */
  1112. .tocify, .toc-footer, .lang-selector, .search, #nav-button {
  1113. display: none; }
  1114. .tocify-wrapper > img {
  1115. margin: 0 auto;
  1116. display: block; }
  1117. .content {
  1118. font-size: 12px; }
  1119. .content pre, .content code {
  1120. border: 1px solid #999;
  1121. border-radius: 5px;
  1122. font-size: 0.8em; }
  1123. .content pre code {
  1124. border: 0; }
  1125. .content pre {
  1126. padding: 1.3em; }
  1127. .content code {
  1128. padding: 0.2em; }
  1129. .content table {
  1130. border: 1px solid #999; }
  1131. .content table tr {
  1132. border-bottom: 1px solid #999; }
  1133. .content table td, .content table th {
  1134. padding: 0.7em; }
  1135. .content p {
  1136. line-height: 1.5; }
  1137. .content a {
  1138. text-decoration: none;
  1139. color: #000; }
  1140. .content h1 {
  1141. font-size: 2.5em;
  1142. padding-top: 0.5em;
  1143. padding-bottom: 0.5em;
  1144. margin-top: 1em;
  1145. margin-bottom: 21px;
  1146. border: 2px solid #ccc;
  1147. border-width: 2px 0;
  1148. text-align: center; }
  1149. .content h2 {
  1150. font-size: 1.8em;
  1151. margin-top: 2em;
  1152. border-top: 2px solid #ccc;
  1153. padding-top: 0.8em; }
  1154. .content h1 + h2, .content h1 + div + h2 {
  1155. border-top: none;
  1156. padding-top: 0;
  1157. margin-top: 0; }
  1158. .content h3, .content h4 {
  1159. font-size: 0.8em;
  1160. margin-top: 1.5em;
  1161. margin-bottom: 0.8em;
  1162. text-transform: uppercase; }
  1163. .content h5, .content h6 {
  1164. text-transform: uppercase; }
  1165. .content aside {
  1166. padding: 1em;
  1167. border: 1px solid #ccc;
  1168. border-radius: 5px;
  1169. margin-top: 1.5em;
  1170. margin-bottom: 1.5em;
  1171. line-height: 1.6; }
  1172. .content aside:before {
  1173. vertical-align: middle;
  1174. padding-right: 0.5em;
  1175. font-size: 14px; }
  1176. </style>
  1177. <style media="screen">/*
  1178. Darkula color scheme from the JetBrains family of IDEs
  1179. */
  1180. .hljs {
  1181. display: block;
  1182. overflow-x: auto;
  1183. padding: 0.5em;
  1184. background: #2b2b2b;
  1185. -webkit-text-size-adjust: none;
  1186. }
  1187. .hljs,
  1188. .hljs-tag,
  1189. .hljs-title,
  1190. .css .hljs-rule,
  1191. .css .hljs-value,
  1192. .aspectj .hljs-function,
  1193. .css .hljs-function .hljs-preprocessor,
  1194. .hljs-pragma {
  1195. color: #bababa;
  1196. }
  1197. .hljs-strongemphasis,
  1198. .hljs-strong,
  1199. .hljs-emphasis {
  1200. color: #a8a8a2;
  1201. }
  1202. .hljs-bullet,
  1203. .hljs-blockquote,
  1204. .hljs-horizontal_rule,
  1205. .hljs-number,
  1206. .hljs-regexp,
  1207. .alias .hljs-keyword,
  1208. .hljs-literal,
  1209. .hljs-hexcolor {
  1210. color: #6896ba;
  1211. }
  1212. .hljs-tag .hljs-value,
  1213. .hljs-code,
  1214. .css .hljs-class,
  1215. .hljs-class .hljs-title:last-child {
  1216. color: #a6e22e;
  1217. }
  1218. .hljs-link_url {
  1219. font-size: 80%;
  1220. }
  1221. .hljs-emphasis,
  1222. .hljs-strongemphasis,
  1223. .hljs-class .hljs-title:last-child,
  1224. .hljs-typename {
  1225. font-style: italic;
  1226. }
  1227. .hljs-keyword,
  1228. .ruby .hljs-class .hljs-keyword:first-child,
  1229. .ruby .hljs-function .hljs-keyword,
  1230. .hljs-function,
  1231. .hljs-change,
  1232. .hljs-winutils,
  1233. .hljs-flow,
  1234. .nginx .hljs-title,
  1235. .tex .hljs-special,
  1236. .hljs-header,
  1237. .hljs-attribute,
  1238. .hljs-symbol,
  1239. .hljs-symbol .hljs-string,
  1240. .hljs-tag .hljs-title,
  1241. .hljs-value,
  1242. .alias .hljs-keyword:first-child,
  1243. .css .hljs-tag,
  1244. .css .unit,
  1245. .css .hljs-important {
  1246. color: #cb7832;
  1247. }
  1248. .hljs-function .hljs-keyword,
  1249. .hljs-class .hljs-keyword:first-child,
  1250. .hljs-aspect .hljs-keyword:first-child,
  1251. .hljs-constant,
  1252. .hljs-typename,
  1253. .css .hljs-attribute {
  1254. color: #cb7832;
  1255. }
  1256. .hljs-variable,
  1257. .hljs-params,
  1258. .hljs-class .hljs-title,
  1259. .hljs-aspect .hljs-title {
  1260. color: #b9b9b9;
  1261. }
  1262. .hljs-string,
  1263. .css .hljs-id,
  1264. .hljs-subst,
  1265. .hljs-type,
  1266. .ruby .hljs-class .hljs-parent,
  1267. .hljs-built_in,
  1268. .django .hljs-template_tag,
  1269. .django .hljs-variable,
  1270. .smalltalk .hljs-class,
  1271. .django .hljs-filter .hljs-argument,
  1272. .smalltalk .hljs-localvars,
  1273. .smalltalk .hljs-array,
  1274. .hljs-attr_selector,
  1275. .hljs-pseudo,
  1276. .hljs-addition,
  1277. .hljs-stream,
  1278. .hljs-envvar,
  1279. .apache .hljs-tag,
  1280. .apache .hljs-cbracket,
  1281. .tex .hljs-command,
  1282. .hljs-prompt,
  1283. .hljs-link_label,
  1284. .hljs-link_url,
  1285. .hljs-name {
  1286. color: #e0c46c;
  1287. }
  1288. .hljs-comment,
  1289. .hljs-annotation,
  1290. .hljs-pi,
  1291. .hljs-doctype,
  1292. .hljs-deletion,
  1293. .hljs-shebang,
  1294. .apache .hljs-sqbracket,
  1295. .tex .hljs-formula {
  1296. color: #7f7f7f;
  1297. }
  1298. .hljs-decorator {
  1299. color: #bab429;
  1300. }
  1301. .coffeescript .javascript,
  1302. .javascript .xml,
  1303. .tex .hljs-formula,
  1304. .xml .javascript,
  1305. .xml .vbscript,
  1306. .xml .css,
  1307. .xml .hljs-cdata,
  1308. .xml .php,
  1309. .php .xml {
  1310. opacity: 0.5;
  1311. }
  1312. </style>
  1313. <script>!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return ae.call(t,e)>-1!==n}):Ee.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return ae.call(t,e)>-1!==n&&1===e.nodeType}))}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t={};return he.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function f(){ne.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),he.ready()}function d(){this.expando=he.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Pe.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(He,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=p(n)}catch(e){}$e.set(e,t,n)}else n=void 0;return n}function g(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=a(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),l=(he.cssNumber[t]||"px"!==c&&+u)&&Re.exec(he.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,he.style(e,t,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Be[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Fe.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Me(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Fe.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)Fe.set(e[n],"globalEval",!t||Fe.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Qe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ve.exec(o)||["",""])[1].toLowerCase(),u=Ue[a]||Ue._default,s.innerHTML=u[1]+he.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;he.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(c=he.contains(o.ownerDocument,o),s=y(f.appendChild(o),"script"),c&&x(s),n)for(l=0;o=s[l++];)Xe.test(o.type||"")&&n.push(o);return f}function w(){return!0}function T(){return!1}function S(){try{return ne.activeElement}catch(e){}}function E(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)E(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=T;else if(!i)return e;return 1===o&&(s=i,i=function(e){return he().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function C(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function k(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function j(e,t){var n,r,i,o,s,a,u,c;if(1===t.nodeType){if(Fe.hasData(e)&&(o=Fe.access(e),s=Fe.set(t,o),c=o.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)he.event.add(t,i,c[i][n])}$e.hasData(e)&&(a=$e.access(e),u=he.extend({},a),$e.set(t,u))}}function A(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ze.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function L(e,t,r,i){t=oe.apply([],t);var o,s,a,u,c,l,f=0,d=e.length,p=d-1,h=t[0],g=he.isFunction(h);if(g||d>1&&"string"==typeof h&&!pe.checkClone&&tt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),L(o,t,r,i)});if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=he.map(y(o,"script"),k),u=a.length;f<d;f++)c=o,f!==p&&(c=he.clone(c,!0,!0),u&&he.merge(a,y(c,"script"))),r.call(e[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,he.map(a,N),f=0;f<u;f++)c=a[f],Xe.test(c.type||"")&&!Fe.access(c,"globalEval")&&he.contains(l,c)&&(c.src?he._evalUrl&&he._evalUrl(c.src):n(c.textContent.replace(rt,""),l))}return e}function D(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(y(r)),r.parentNode&&(n&&he.contains(r.ownerDocument,r)&&x(y(r,"script")),r.parentNode.removeChild(r));return e}function O(e,t,n){var r,i,o,s,a=e.style;return n=n||st(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||he.contains(e.ownerDocument,e)||(s=he.style(e,t)),!pe.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function q(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in dt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ft.length;n--;)if((e=ft[n]+t)in dt)return e}function $(e){var t=he.cssProps[e];return t||(t=he.cssProps[e]=F(e)||e),t}function P(e,t,n){var r=Re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function H(e,t,n,r,i){var o,s=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(s+=he.css(e,n+_e[o],!0,i)),r?("content"===n&&(s-=he.css(e,"padding"+_e[o],!0,i)),"margin"!==n&&(s-=he.css(e,"border"+_e[o]+"Width",!0,i))):(s+=he.css(e,"padding"+_e[o],!0,i),"padding"!==n&&(s+=he.css(e,"border"+_e[o]+"Width",!0,i)));return s}function I(e,t,n){var r,i=st(e),o=O(e,t,i),s="border-box"===he.css(e,"boxSizing",!1,i);return ot.test(o)?o:(r=s&&(pe.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+H(e,t,n||(s?"border":"content"),r,i)+"px")}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function _(){ht&&(!1===ne.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(_):e.setTimeout(_,he.fx.interval),he.fx.tick())}function M(){return e.setTimeout(function(){pt=void 0}),pt=he.now()}function W(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=_e[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(X.tweeners[t]||[]).concat(X.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function z(e,t,n){var r,i,o,s,a,u,c,l,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&Me(e),v=Fe.get(e,"fxshow");n.queue||(s=he._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,he.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(p)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=v&&v.display,null==c&&(c=Fe.get(e,"display")),l=he.css(e,"display"),"none"===l&&(c?l=c:(m([e],!0),c=e.style.display||c,l=he.css(e,"display"),m([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===he.css(e,"float")&&(u||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in p)u||(v?"hidden"in v&&(g=v.hidden):v=Fe.access(e,"fxshow",{display:c}),o&&(v.hidden=!g),g&&m([e],!0),d.done(function(){g||m([e]),Fe.remove(e,"fxshow");for(r in p)he.style(e,r,p[r])})),u=B(g?v[r]:0,r,d),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}}function V(e,t){var n,r,i,o,s;for(n in e)if(r=he.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=he.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function X(e,t,n){var r,i,o=0,s=X.prefilters.length,a=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=pt||M(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(e,[c,o,n]),o<1&&u?n:(u||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||M(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),l=c.props;for(V(l,c.opts.specialEasing);o<s;o++)if(r=X.prefilters[o].call(c,e,l,c.opts))return he.isFunction(r.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=he.proxy(r.stop,r)),r;return he.map(l,B,c),he.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Ae)||[]).join(" ")}function Q(e){return e.getAttribute&&e.getAttribute("class")||""}function Y(e,t,n,r){var i;if(Array.isArray(t))he.each(t,function(t,i){n||kt.test(e)?r(e,i):Y(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==he.type(t))r(e,t);else for(i in t)Y(e+"["+i+"]",t[i],n,r)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Ae)||[];if(he.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function G(e,t,n,r){function i(a){var u;return o[a]=!0,he.each(e[a]||[],function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=e===It;return i(t.dataTypes[0])||!o["*"]&&i("*")}function K(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}function Z(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ee(e,t,n,r){var i,o,s,a,u,c={},l=e.dataTypes.slice();if(l[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,oe=te.concat,se=te.push,ae=te.indexOf,ue={},ce=ue.toString,le=ue.hasOwnProperty,fe=le.toString,de=fe.call(Object),pe={},he=function(e,t){return new he.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ve=/^-ms-/,me=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:"3.2.1",constructor:he,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:se,sort:te.sort,splice:te.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||he.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&he.isPlainObject(n)?n:{},s[t]=he.extend(c,o,r)):void 0!==r&&(s[t]=r));return s},he.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ce.call(e))&&(!(t=re(e))||"function"==typeof(n=le.call(t,"constructor")&&t.constructor)&&fe.call(n)===de)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[ce.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ve,"ms-").replace(me,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):se.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ae.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return oe.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),he.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:Date.now,support:pe}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=te[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var xe=function(e){function t(e,t,n,r){var i,o,s,a,u,l,d,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:R)!==D&&L(t),t=t||D,q)){if(11!==h&&(u=ge.exec(e)))if(i=u[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&H(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!z[e+" "]&&(!F||!F.test(e))){if(1!==h)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(xe,be):t.setAttribute("id",a=I),l=E(e),o=l.length;o--;)l[o]="#"+a+" "+f(l[o]);d=l.join(","),p=ve.test(e)&&c(t.parentNode)||t}if(d)try{return J.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{a===I&&t.removeAttribute("id")}}}return k(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[I]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function f(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=M++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,f,d=[_,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(f=t[I]||(t[I]={}),l=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function v(e,t,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,u){var c,l,f,d=[],p=[],v=s.length,m=r||h(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?m:g(m,d,e,a,u),x=n?o||(r?e:v||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(c=g(x,p),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(x[p[l]]=!(y[p[l]]=f));if(r){if(o||e){if(o){for(c=[],l=x.length;l--;)(f=x[l])&&c.push(y[l]=f);o(null,x=[],c,u)}for(l=x.length;l--;)(f=x[l])&&(c=o?K(r,f):d[l])>-1&&(r[c]=!(s[c]=f))}}else x=g(x===s?x.splice(v,x.length):x),o?o(null,s,x,u):J.apply(s,x)})}function m(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],s=o||w.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),c=d(function(e){return K(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=w.relative[e[a].type])l=[d(p(l),n)];else{if(n=w.filter[e[a].type].apply(null,e[a].matches),n[I]){for(r=++a;r<i&&!w.relative[e[r].type];r++);return v(a>1&&p(l),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&m(e.slice(a,r)),r<i&&m(e=e.slice(r)),r<i&&f(e))}l.push(n)}return p(l)}function y(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,c){var l,f,d,p=0,h="0",v=r&&[],m=[],y=N,x=r||o&&w.find.TAG("*",c),b=_+=null==y?1:Math.random()||.1,T=x.length;for(c&&(N=s===D||s||c);h!==T&&null!=(l=x[h]);h++){if(o&&l){for(f=0,s||l.ownerDocument===D||(L(l),a=!q);d=e[f++];)if(d(l,s||D,a)){u.push(l);break}c&&(_=b)}i&&((l=!d&&l)&&p--,r&&v.push(l))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(v,m,s,a);if(r){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=Q.call(u));m=g(m)}J.apply(u,m),c&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return c&&(_=b,N=y),v};return i?r(s):s}var x,b,w,T,S,E,C,k,N,j,A,L,D,O,q,F,$,P,H,I="sizzle"+1*new Date,R=e.document,_=0,M=0,W=n(),B=n(),z=n(),V=function(e,t){return e===t&&(A=!0),0},X={}.hasOwnProperty,U=[],Q=U.pop,Y=U.push,J=U.push,G=U.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,me=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){L()},Te=d(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(U=G.call(R.childNodes),R.childNodes),U[R.childNodes.length].nodeType}catch(e){J={apply:U.length?function(e,t){Y.apply(e,G.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,O=D.documentElement,q=!S(D),R!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=he.test(D.getElementsByClassName),b.getById=i(function(e){return O.appendChild(e).id=I,!D.getElementsByName||!D.getElementsByName(I).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(me,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&q)return t.getElementsByClassName(e)},$=[],F=[],(b.qsa=he.test(D.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+I+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||F.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(b.matchesSelector=he.test(P=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){b.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),$.push("!=",re)}),F=F.length&&new RegExp(F.join("|")),$=$.length&&new RegExp($.join("|")),t=he.test(O.compareDocumentPosition),H=t||he.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===R&&H(R,e)?-1:t===D||t.ownerDocument===R&&H(R,t)?1:j?K(j,e)-K(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:j?K(j,e)-K(j,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===R?-1:u[r]===R?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&L(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&q&&!z[n+" "]&&(!$||!$.test(n))&&(!F||!F.test(n)))try{var r=P.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&L(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&L(e);var n=w.attrHandle[t.toLowerCase()],r=n&&X.call(w.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:b.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!b.detectDuplicates,j=!b.sortStable&&e.slice(0),e.sort(V),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},w=t.selectors={cacheLength:50,createPseudo:r,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(me,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(me,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(me,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,p,h,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(v){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(d=v,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p&&c[2],d=p&&v.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[_,p,x];break}}else if(y&&(d=t,f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),c=l[e]||[],p=c[0]===_&&c[1],x=p),!1===x)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++x||(y&&(f=d[I]||(d[I]={}),l=f[d.uniqueID]||(f[d.uniqueID]={}),l[e]=[_,x]),d!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[I]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=K(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(oe,"$1"));return i[I]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(me,ye),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(me,ye).toLowerCase(),function(t){var n;do{if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase()
  1314. ;return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(x);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,E=t.tokenize=function(e,n){var r,i,o,s,a,u,c,l=B[e+" "];if(l)return n?0:l.slice(0);for(a=e,u=[],c=w.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in w.filter)!(i=fe[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},C=t.compile=function(e,t){var n,r=[],i=[],o=z[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=m(t[n]),o[I]?r.push(o):i.push(o);o=z(e,y(i,r)),o.selector=e}return o},k=t.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&q&&w.relative[o[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(me,ye),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!w.relative[a=s.type]);)if((u=w.find[a])&&(r=u(s.matches[0].replace(me,ye),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&f(o)))return J.apply(n,r),n;break}}return(l||C(e,d))(r,t,!q,n,!t||ve.test(e)&&c(t.parentNode)||t),n},b.sortStable=I.split("").sort(V).join("")===I,b.detectDuplicates=!!A,L(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=xe,he.expr=xe.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=xe.uniqueSort,he.text=xe.getText,he.isXMLDoc=xe.isXML,he.contains=xe.contains,he.escapeSelector=xe.escape;var be=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Te=he.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ee=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&Te.test(e)?he(e):e||[],!1).length}});var Ce,ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ke.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),Se.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,Ce=he(ne);var Ne=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&he(e);if(!Te.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ae.call(he(e),this[0]):ae.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),this.length>1&&(je[e]||he.uniqueSort(i),Ne.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){e="string"==typeof e?a(e):he.extend({},e);var t,n,r,i,o=[],s=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,s.push(n)),function t(n){he.each(n,function(n,r){he.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==he.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;(n=he.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?he.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=he.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var a=this,l=arguments,f=function(){var e,f;if(!(t<s)){if((e=r.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,he.isFunction(f)?i?f.call(e,o(s,n,u,i),o(s,n,c,i)):(s++,f.call(e,o(s,n,u,i),o(s,n,c,i),o(s,n,u,n.notifyWith))):(r!==u&&(a=void 0,l=[e]),(i||n.resolveWith)(a,l))}},d=i?f:function(){try{f()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,d.stackTrace),t+1>=s&&(r!==c&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?d():(he.Deferred.getStackHook&&(d.stackTrace=he.Deferred.getStackHook()),e.setTimeout(d))}}var s=0;return he.Deferred(function(e){n[0][3].add(o(0,e,he.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,he.isFunction(t)?t:u)),n[2][3].add(o(0,e,he.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),o=he.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||he.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Le.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var De=he.Deferred();he.fn.ready=function(e){return De.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||De.resolveWith(ne,[he]))}}),he.ready.then=De.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(he.ready):(ne.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Oe=function(e,t,n,r,i,o,s){var a=0,u=e.length,c=null==n;if("object"===he.type(n)){i=!0;for(a in n)Oe(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,he.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):u?t(e[0],n):o},qe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={cache:function(e){var t=e[this.expando];return t||(t={},qe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[he.camelCase(t)]=n;else for(r in t)i[he.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][he.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(he.camelCase):(t=he.camelCase(t),t=t in r?[t]:t.match(Ae)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Fe=new d,$e=new d,Pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,He=/[A-Z]/g;he.extend({hasData:function(e){return $e.hasData(e)||Fe.hasData(e)},data:function(e,t,n){return $e.access(e,t,n)},removeData:function(e,t){$e.remove(e,t)},_data:function(e,t,n){return Fe.access(e,t,n)},_removeData:function(e,t){Fe.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=$e.get(o),1===o.nodeType&&!Fe.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=he.camelCase(r.slice(5)),h(o,r,i[r])));Fe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){$e.set(this,e)}):Oe(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=$e.get(o,e)))return n;if(void 0!==(n=h(o,e)))return n}else this.each(function(){$e.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){$e.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||Array.isArray(n)?r=Fe.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t),s=function(){he.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:he.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Fe.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Re=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Me=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&he.contains(e.ownerDocument,e)&&"none"===he.css(e,"display")},We=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},Be={};he.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Me(this)?he(this).show():he(this).hide()})}});var ze=/^(?:checkbox|radio)$/i,Ve=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Xe=/^$|\/(?:java|ecma)script/i,Ue={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Qe=/<|&#?\w+;/;!function(){var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ye=ne.documentElement,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.get(e);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&he.find.matchesSelector(Ye,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p&&(f=he.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=he.event.special[p]||{},l=he.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),he.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,p,h,g,v=Fe.hasData(e)&&Fe.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(a=Ke.exec(t[c])||[],p=g=a[1],h=(a[2]||"").split(".").sort(),p){for(f=he.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)l=d[o],!i&&g!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||he.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)he.event.remove(e,p+t[c],n,r,!0);he.isEmptyObject(u)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=he.event.fix(e),u=new Array(arguments.length),c=(Fe.get(this,"events")||{})[a.type]||[],l=he.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=he.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?he(i,this).index(c)>-1:he.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:he.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==S()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===S()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Je.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||he.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return E(this,e,t,n,r)},one:function(e,t,n,r){return E(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=T),this.each(function(){he.event.remove(this,e,n,t)})}});var Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,et=/<script|<style|<link/i,tt=/checked\s*(?:[^=]|=\s*.checked.)/i,nt=/^true\/(.*)/,rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(Ze,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=he.contains(e.ownerDocument,e);if(!(pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(s=y(a),o=y(e),r=0,i=o.length;r<i;r++)A(o[r],s[r]);if(t)if(n)for(o=o||y(e),s=s||y(a),r=0,i=o.length;r<i;r++)j(o[r],s[r]);else j(e,a);return s=y(a,"script"),s.length>0&&x(s,!u&&y(e,"script")),a},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(qe(n)){if(t=n[Fe.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[Fe.expando]=void 0}n[$e.expando]&&(n[$e.expando]=void 0)}}}),he.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Oe(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){C(this,e).appendChild(e)}})},prepend:function(){return L(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return L(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Oe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!et.test(e)&&!Ue[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(he.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),he(i[s])[t](n),se.apply(r,n.get());return this.pushStack(r)}});var it=/^margin/,ot=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ye.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ye.removeChild(s),a=null}}var n,r,i,o,s=ne.createElement("div"),a=ne.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",pe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),he.extend(pe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,ut=/^--/,ct={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","Moz","ms"],dt=ne.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=O(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=he.camelCase(t),u=ut.test(t),c=e.style;if(u||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:c[t];o=typeof n,"string"===o&&(i=Re.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[a]?"":"px")),pe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,s,a=he.camelCase(t);return ut.test(t)||(t=$(a)),s=he.cssHooks[t]||he.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=O(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?I(e,t,r):We(e,ct,function(){return I(e,t,r)})},set:function(e,n,r){var i,o=r&&st(e),s=r&&H(e,t,r,"border-box"===he.css(e,"boxSizing",!1,o),o);return s&&(i=Re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),P(e,n,s)}}}),he.cssHooks.marginLeft=q(pe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(O(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+_e[r]+t]=o[r]||o[r-2]||o[0];return i}},it.test(e)||(he.cssHooks[e+t].set=P)}),he.fn.extend({css:function(e,t){return Oe(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=st(e),i=t.length;s<i;s++)o[t[s]]=he.css(e,t[s],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)}}),he.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=R.prototype.init,he.fx.step={};var pt,ht,gt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;he.Animation=he.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;r<i;r++)n=e[r],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[z],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Me).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),s=function(){var t=X(this,he.extend({},e),o);(i||Fe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,s=Fe.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&vt.test(i)&&r(s[i])
  1315. ;for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Fe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,s=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(W(t,!0),e,r,i)}}),he.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(pt=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),pt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,_())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",pe.checkOn=""!==e.value,pe.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",pe.radioValue="t"===e.value}();var mt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Oe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=he.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=yt[s],yt[s]=i,i=null!=n(e,t,r)?s:null,yt[s]=o),i}});var xt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Oe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Q(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[u++];)if(i=Q(n),r=1===n.nodeType&&" "+U(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=U(r),i!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(Ae)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=Q(this),t&&Fe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+U(Q(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;he.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=he.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,he(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:U(he.text(e))}},select:{get:function(e){var t,n,r,o=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],c=a?s+1:o.length;for(r=s<0?c:a?s:0;r<c;r++)if(n=o[r],(n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=he(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=he.inArray(he.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},pe.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;he.extend(he.event,{trigger:function(t,n,r,i){var o,s,a,u,c,l,f,d=[r||ne],p=le.call(t,"type")?t.type:t,h=le.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+he.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,t=t[he.expando]?t:new he.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),f=he.event.special[p]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!he.isWindow(r)){for(u=f.delegateType||p,Tt.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(r.ownerDocument||ne)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||p,l=(Fe.get(s,"events")||{})[t.type]&&Fe.get(s,"handle"),l&&l.apply(s,n),(l=c&&s[c])&&l.apply&&qe(s)&&(t.result=l.apply(s,n),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),n)||!qe(r)||c&&he.isFunction(r[p])&&!he.isWindow(r)&&(a=r[c],a&&(r[c]=null),he.event.triggered=p,r[p](),he.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),pe.focusin="onfocusin"in e,pe.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Fe.access(r,t);i||r.addEventListener(e,n,!0),Fe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Fe.access(r,t)-1;i?Fe.access(r,t,i):(r.removeEventListener(e,n,!0),Fe.remove(r,t))}}});var St=e.location,Et=he.now(),Ct=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var kt=/\[\]$/,Nt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=he.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)Y(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&At.test(this.nodeName)&&!jt.test(e)&&(this.checked||!ze.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}});var Lt=/%20/g,Dt=/#.*$/,Ot=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$t=/^(?:GET|HEAD)$/,Pt=/^\/\//,Ht={},It={},Rt="*/".concat("*"),_t=ne.createElement("a");_t.href=St.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Ft.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?K(K(e,he.ajaxSettings),t):K(he.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(It),ajax:function(t,n){function r(t,n,r,a){var c,d,p,b,w,T=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,s=a||"",S.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=Z(h,S,r)),b=ee(h,b,S,c),c?(h.ifModified&&(w=S.getResponseHeader("Last-Modified"),w&&(he.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,p=b.error,c=!p)):(p=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(n||T)+"",c?m.resolveWith(g,[d,T,S]):m.rejectWith(g,[S,T,p]),S.statusCode(x),x=void 0,f&&v.trigger(c?"ajaxSuccess":"ajaxError",[S,h,c?d:p]),y.fireWith(g,[S,T]),f&&(v.trigger("ajaxComplete",[S,h]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,c,l,f,d,p,h=he.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?he(g):he.event,m=he.Deferred(),y=he.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=qt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(m.promise(S),h.url=((t||h.url||St.href)+"").replace(Pt,St.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Ae)||[""],null==h.crossDomain){c=ne.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=he.param(h.data,h.traditional)),G(Ht,h,n,S),l)return S;f=he.event&&h.global,f&&0==he.active++&&he.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(p=h.url.slice(o.length),h.data&&(o+=(Ct.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ot,"$1"),p=(Ct.test(o)?"&":"?")+"_="+Et+++p),h.url=o+p),h.ifModified&&(he.lastModified[o]&&S.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&S.setRequestHeader("If-None-Match",he.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(g,S,h)||l))return S.abort();if(T="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),i=G(It,h,n,S)){if(S.readyState=1,f&&v.trigger("ajaxSend",[S,h]),l)return S;h.async&&h.timeout>0&&(u=e.setTimeout(function(){S.abort("timeout")},h.timeout));try{l=!1,i.send(b,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return he.isFunction(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(he.isFunction(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Wt=he.ajaxSettings.xhr();pe.cors=!!Wt&&"withCredentials"in Wt,pe.ajax=Wt=!!Wt,he.ajaxTransport(function(t){var n,r;if(pe.cors||Wt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=he("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Bt=[],zt=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||he.expando+"_"+Et++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(zt,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||he.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(i)),s&&he.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),pe.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),he.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(pe.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))},he.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=U(e.slice(a)),e=e.slice(0,a)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,c,l=he.css(e,"position"),f=he(e),d={};"static"===l&&(e.style.position="relative"),a=f.offset(),o=he.css(e,"top"),u=he.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):f.css(d)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===he.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+he.css(e[0],"borderTopWidth",!0),left:r.left+he.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-he.css(n,"marginTop",!0),left:t.left-r.left-he.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ye})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Oe(this,function(e,r,i){var o;if(he.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=q(pe.pixelPosition,function(e,n){if(n)return n=O(e,t),ot.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Oe(this,function(t,n,i){var o;return he.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)},t,s?i:void 0,s)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var Vt=e.jQuery,Xt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Xt),t&&e.jQuery===he&&(e.jQuery=Vt),he},t||(e.jQuery=e.$=he),he}),jQuery.extend({highlight:function(e,t,n,r){if(3===e.nodeType){var i=e.data.match(t);if(i){var o=document.createElement(n||"span");o.className=r||"highlight";var s=e.splitText(i.index);s.splitText(i[0].length);var a=s.cloneNode(!0);return o.appendChild(a),s.parentNode.replaceChild(o,s),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==n.toUpperCase()||e.className!==r))for(var u=0;u<e.childNodes.length;u++)u+=jQuery.highlight(e.childNodes[u],t,n,r);return 0}}),jQuery.fn.unhighlight=function(e){var t={className:"highlight",element:"span"};return jQuery.extend(t,e),this.find(t.element+"."+t.className).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()},jQuery.fn.highlight=function(e,t){var n={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1};if(jQuery.extend(n,t),e.constructor===String&&(e=[e]),e=jQuery.grep(e,function(e,t){return""!=e}),e=jQuery.map(e,function(e,t){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}),0==e.length)return this;var r=n.caseSensitive?"":"i",i="("+e.join("|")+")";n.wordsOnly&&(i="\\b"+i+"\\b");var o=new RegExp(i,r);return this.each(function(){jQuery.highlight(this,o,n.element,n.className)})},function(){var e=function(t){var n=new e.Index;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),t&&t.call(n,n),n};e.version="0.5.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.EventEmitter=function(){this.events={}},e.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},e.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||delete this.events[e]}},e.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)})}},e.EventEmitter.prototype.hasHandler=function(e){return e in this.events},e.tokenizer=function(e){if(!arguments.length||null==e||void 0==e)return[];if(Array.isArray(e))return e.map(function(e){return e.toLowerCase()});for(var t=e.toString().replace(/^\s+/,""),n=t.length-1;n>=0;n--)if(/\S/.test(t.charAt(n))){t=t.substring(0,n+1);break}return t.split(/(?:\s+|\-)/).filter(function(e){return!!e}).map(function(e){return e.toLowerCase()})},e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions={},e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(t){var r=e.Pipeline.registeredFunctions[t];if(!r)throw new Error("Cannot load un-registered function: "+t);n.add(r)}),n},e.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t)+1;this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);this._stack.splice(t,1)},e.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,r=this._stack.length,i=0;i<n;i++){for(var o=e[i],s=0;s<r&&void 0!==(o=this._stack[s](o,i,e));s++);void 0!==o&&t.push(o)}return t},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})},e.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},e.Vector.Node=function(e,t,n){this.idx=e,this.val=t,this.next=n},e.Vector.prototype.insert=function(t,n){var r=this.list;if(!r)return this.list=new e.Vector.Node(t,n,r),this.length++;for(var i=r,o=r.next;void 0!=o;){if(t<o.idx)return i.next=new e.Vector.Node(t,n,o),this.length++;i=o,o=o.next}return i.next=new e.Vector.Node(t,n,o),this.length++},e.Vector.prototype.magnitude=function(){if(this._magniture)return this._magnitude;for(var e,t=this.list,n=0;t;)e=t.val,n+=e*e,t=t.next;return this._magnitude=Math.sqrt(n)},e.Vector.prototype.dot=function(e){for(var t=this.list,n=e.list,r=0;t&&n;)t.idx<n.idx?t=t.next:t.idx>n.idx?n=n.next:(r+=t.val*n.val,t=t.next,n=n.next);return r},e.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},e.SortedSet=function(){this.length=0,this.elements=[]},e.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},e.SortedSet.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){~this.indexOf(e)||this.elements.splice(this.locationFor(e),0,e)},this),this.length=this.elements.length},e.SortedSet.prototype.toArray=function(){return this.elements.slice()},e.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},e.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},e.SortedSet.prototype.indexOf=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];return r<=1?o===e?i:-1:o<e?this.indexOf(e,i,n):o>e?this.indexOf(e,t,i):o===e?i:void 0},e.SortedSet.prototype.locationFor=function(e,t,n){var t=t||0,n=n||this.elements.length,r=n-t,i=t+Math.floor(r/2),o=this.elements[i];if(r<=1){if(o>e)return i;if(o<e)return i+1}return o<e?this.locationFor(e,i,n):o>e?this.locationFor(e,t,i):void 0},e.SortedSet.prototype.intersect=function(t){for(var n=new e.SortedSet,r=0,i=0,o=this.length,s=t.length,a=this.elements,u=t.elements;;){if(r>o-1||i>s-1)break;a[r]!==u[i]?a[r]<u[i]?r++:a[r]>u[i]&&i++:(n.add(a[r]),r++,i++)}return n},e.SortedSet.prototype.clone=function(){var t=new e.SortedSet;return t.elements=this.toArray(),t.length=t.elements.length,t},e.SortedSet.prototype.union=function(e){var t,n,r;return this.length>=e.length?(t=this,n=e):(t=e,n=this),r=t.clone(),r.add.apply(r,n.toArray()),r},e.SortedSet.prototype.toJSON=function(){return this.toArray()},e.Index=function(){this._fields=[],this._ref="id",this.pipeline=new e.Pipeline,this.documentStore=new e.Store,this.tokenStore=new e.TokenStore,this.corpusTokens=new e.SortedSet,this.eventEmitter=new e.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},e.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},e.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},e.Index.load=function(t){t.version!==e.version&&e.utils.warn("version mismatch: current "+e.version+" importing "+t.version);var n=new this;return n._fields=t.fields,n._ref=t.ref,n.documentStore=e.Store.load(t.documentStore),n.tokenStore=e.TokenStore.load(t.tokenStore),n.corpusTokens=e.SortedSet.load(t.corpusTokens),n.pipeline=e.Pipeline.load(t.pipeline),n},e.Index.prototype.field=function(e,t){var t=t||{},n={name:e,boost:t.boost||1};return this._fields.push(n),this},e.Index.prototype.ref=function(e){return this._ref=e,this},e.Index.prototype.add=function(t,n){var r={},i=new e.SortedSet,o=t[this._ref],n=void 0===n||n;this._fields.forEach(function(n){var o=this.pipeline.run(e.tokenizer(t[n.name]));r[n.name]=o,e.SortedSet.prototype.add.apply(i,o)},this),this.documentStore.set(o,i),e.SortedSet.prototype.add.apply(this.corpusTokens,i.toArray());for(var s=0;s<i.length;s++){var a=i.elements[s],u=this._fields.reduce(function(e,t){var n=r[t.name].length;return n?e+r[t.name].filter(function(e){return e===a}).length/n*t.boost:e},0);this.tokenStore.add(a,{ref:o,tf:u})}n&&this.eventEmitter.emit("add",t,this)},e.Index.prototype.remove=function(e,t){var n=e[this._ref],t=void 0===t||t;if(this.documentStore.has(n)){var r=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},e.Index.prototype.update=function(e,t){var t=void 0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},e.Index.prototype.idf=function(e){var t="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))return this._idfCache[t];var n=this.tokenStore.count(e),r=1;return n>0&&(r=1+Math.log(this.tokenStore.length/n)),this._idfCache[t]=r},e.Index.prototype.search=function(t){
  1316. var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduce(function(e,t){return e+t.boost},0);return n.some(function(e){return this.tokenStore.has(e)},this)?(n.forEach(function(t,n,s){var a=1/s.length*this._fields.length*o,u=this,c=this.tokenStore.expand(t).reduce(function(n,i){var o=u.corpusTokens.indexOf(i),s=u.idf(i),c=1,l=new e.SortedSet;if(i!==t){var f=Math.max(3,i.length-t.length);c=1/Math.log(f)}return o>-1&&r.insert(o,a*s*c),Object.keys(u.tokenStore.get(i)).forEach(function(e){l.add(e)}),n.union(l)},new e.SortedSet);i.push(c)},this),i.reduce(function(e,t){return e.intersect(t)}).map(function(e){return{ref:e,score:r.similarity(this.documentVector(e))}},this).sort(function(e,t){return t.score-e.score})):[]},e.Index.prototype.documentVector=function(t){for(var n=this.documentStore.get(t),r=n.length,i=new e.Vector,o=0;o<r;o++){var s=n.elements[o],a=this.tokenStore.get(s)[t].tf,u=this.idf(s);i.insert(this.corpusTokens.indexOf(s),a*u)}return i},e.Index.prototype.toJSON=function(){return{version:e.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},e.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},e.Store=function(){this.store={},this.length=0},e.Store.load=function(t){var n=new this;return n.length=t.length,n.store=Object.keys(t.store).reduce(function(n,r){return n[r]=e.SortedSet.load(t.store[r]),n},{}),n},e.Store.prototype.set=function(e,t){this.has(e)||this.length++,this.store[e]=t},e.Store.prototype.get=function(e){return this.store[e]},e.Store.prototype.has=function(e){return e in this.store},e.Store.prototype.remove=function(e){this.has(e)&&(delete this.store[e],this.length--)},e.Store.prototype.toJSON=function(){return{store:this.store,length:this.length}},e.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[aeiouy]",r="[^aeiou][^aeiouy]*",i=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),o=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),u=/^(.+?)(ss|i)es$/,c=/^(.+?)([^s])s$/,l=/^(.+?)eed$/,f=/^(.+?)(ed|ing)$/,d=/.$/,p=/(at|bl|iz)$/,h=new RegExp("([^aeiouylsz])\\1$"),g=new RegExp("^"+r+n+"[^aeiouwxy]$"),v=/^(.+?[^aeiou])y$/,m=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,y=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,x=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,w=/^(.+?)e$/,T=/ll$/,S=new RegExp("^"+r+n+"[^aeiouwxy]$");return function(n){var r,E,C,k,N,j,A;if(n.length<3)return n;if(C=n.substr(0,1),"y"==C&&(n=C.toUpperCase()+n.substr(1)),k=u,N=c,k.test(n)?n=n.replace(k,"$1$2"):N.test(n)&&(n=n.replace(N,"$1$2")),k=l,N=f,k.test(n)){var L=k.exec(n);k=i,k.test(L[1])&&(k=d,n=n.replace(k,""))}else if(N.test(n)){var L=N.exec(n);r=L[1],N=a,N.test(r)&&(n=r,N=p,j=h,A=g,N.test(n)?n+="e":j.test(n)?(k=d,n=n.replace(k,"")):A.test(n)&&(n+="e"))}if(k=v,k.test(n)){var L=k.exec(n);r=L[1],n=r+"i"}if(k=m,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+e[E])}if(k=y,k.test(n)){var L=k.exec(n);r=L[1],E=L[2],k=i,k.test(r)&&(n=r+t[E])}if(k=x,N=b,k.test(n)){var L=k.exec(n);r=L[1],k=o,k.test(r)&&(n=r)}else if(N.test(n)){var L=N.exec(n);r=L[1]+L[2],N=o,N.test(r)&&(n=r)}if(k=w,k.test(n)){var L=k.exec(n);r=L[1],k=o,N=s,j=S,(k.test(r)||N.test(r)&&!j.test(r))&&(n=r)}return k=T,N=o,k.test(n)&&N.test(n)&&(k=d,n=n.replace(k,"")),"y"==C&&(n=C.toLowerCase()+n.substr(1)),n}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer"),e.stopWordFilter=function(t){if(-1===e.stopWordFilter.stopWords.indexOf(t))return t},e.stopWordFilter.stopWords=new e.SortedSet,e.stopWordFilter.stopWords.length=119,e.stopWordFilter.stopWords.elements=["","a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"],e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter"),e.trimmer=function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")},e.Pipeline.registerFunction(e.trimmer,"trimmer"),e.TokenStore=function(){this.root={docs:{}},this.length=0},e.TokenStore.load=function(e){var t=new this;return t.root=e.root,t.length=e.length,t},e.TokenStore.prototype.add=function(e,t,n){var n=n||this.root,r=e[0],i=e.slice(1);return r in n||(n[r]={docs:{}}),0===i.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(i,t,n[r])},e.TokenStore.prototype.has=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},e.TokenStore.prototype.getNode=function(e){if(!e)return{};for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return{};t=t[e[n]]}return t},e.TokenStore.prototype.get=function(e,t){return this.getNode(e,t).docs||{}},e.TokenStore.prototype.count=function(e,t){return Object.keys(this.get(e,t)).length},e.TokenStore.prototype.remove=function(e,t){if(e){for(var n=this.root,r=0;r<e.length;r++){if(!(e[r]in n))return;n=n[e[r]]}delete n.docs[t]}},e.TokenStore.prototype.expand=function(e,t){var n=this.getNode(e),r=n.docs||{},t=t||[];return Object.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},e.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.lunr=t()}(this,function(){return e})}(),function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,o=i.EventEmitter;r.getListeners=function(e){var t,n,r=this._getEvents();if("object"==typeof e){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},r.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},r.addListener=function(e,n){var r,i=this.getListenersAsObject(e),o="object"==typeof n;for(r in i)i.hasOwnProperty(r)&&-1===t(i[r],n)&&i[r].push(o?n:{listener:n,once:!1});return this},r.on=n("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=n("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,n){var r,i,o=this.getListenersAsObject(e);for(i in o)o.hasOwnProperty(i)&&-1!==(r=t(o[i],n))&&o[i].splice(r,1);return this},r.off=n("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},r.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if("object"===n)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=n("removeEvent"),r.emitEvent=function(e,t){var n,r,i,o=this.getListenersAsObject(e);for(i in o)if(o.hasOwnProperty(i))for(r=o[i].length;r--;)n=o[i][r],!0===n.once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},r.trigger=n("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,r=function(){};n.addEventListener?r=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(r=function(e,n,r){e[n+r]=r.handleEvent?function(){var n=t(e);r.handleEvent.call(r,n)}:function(){var n=t(e);r.call(e,n)},e.attachEvent("on"+n,e[n+r])});var i=function(){};n.removeEventListener?i=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(i=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(r){e[t+n]=void 0}});var o={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,r){return t(e,n,r)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(i(e))t=e;else if("number"==typeof e.length)for(var n=0,r=e.length;r>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function a(e){this.img=e}function u(e){this.src=e,p[e]=this}var c=e.jQuery,l=e.console,f=void 0!==l,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var r=n.nodeType;if(r&&(1===r||9===r||11===r))for(var i=n.querySelectorAll("img"),o=0,s=i.length;s>o;o++){var a=i[o];this.addImage(a)}}},s.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},s.prototype.check=function(){function e(e,i){return t.options.debug&&f&&l.log("confirm",e,i),t.progress(e),n++,n===r&&t.complete(),!0}var t=this,n=0,r=this.images.length;if(this.hasAnyBroken=!1,!r)return void this.complete();for(var i=0;r>i;i++){var o=this.images[i];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},c&&(c.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(c(this))}),a.prototype=new t,a.prototype.check=function(){var e=p[this.img.src]||new u(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var p={};return u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},u.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},u.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}),function(){if("ontouchstart"in window){var e,t,n,r,i,o,s={};e=function(e,t){return Math.abs(e[0]-t[0])>5||Math.abs(e[1]-t[1])>5},t=function(e){this.startXY=[e.touches[0].clientX,e.touches[0].clientY],this.threshold=!1},n=function(t){if(this.threshold)return!1;this.threshold=e(this.startXY,[t.touches[0].clientX,t.touches[0].clientY])},r=function(t){if(!this.threshold&&!e(this.startXY,[t.changedTouches[0].clientX,t.changedTouches[0].clientY])){var n=t.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.simulated=!0,t.target.dispatchEvent(r)}},i=function(e){var t=Date.now(),n=t-s.time,r=e.clientX,i=e.clientY,a=[Math.abs(s.x-r),Math.abs(s.y-i)],u=o(e.target,"A")||e.target,c=u.nodeName,l="A"===c,f=window.navigator.standalone&&l&&e.target.getAttribute("href");if(s.time=t,s.x=r,s.y=i,(!e.simulated&&(n<500||n<1500&&a[0]<50&&a[1]<50)||f)&&(e.preventDefault(),e.stopPropagation(),!f))return!1;f&&(window.location=u.getAttribute("href")),u&&u.classList&&(u.classList.add("energize-focus"),window.setTimeout(function(){u.classList.remove("energize-focus")},150))},o=function(e,t){for(var n=e;n!==document.body;){if(!n||n.nodeName===t)return n;n=n.parentNode}return null},document.addEventListener("touchstart",t,!1),document.addEventListener("touchmove",n,!1),document.addEventListener("touchend",r,!1),document.addEventListener("click",i,!0)}}(),function(){"use strict";function e(e){if(e&&""!==e){$(".lang-selector a").removeClass("active"),$(".lang-selector a[data-language-name='"+e+"']").addClass("active");for(var t=0;t<a.length;t++)$(".highlight.tab-"+a[t]).hide(),$(".lang-specific."+a[t]).hide();$(".highlight.tab-"+e).show(),$(".lang-specific."+e).show(),window.recacheHeights(),$(window.location.hash).get(0)&&$(window.location.hash).get(0).scrollIntoView(!0)}}function t(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n[0],i=n[1];return r=decodeURIComponent(r),i=void 0===i?null:decodeURIComponent(i),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i,e},{}):{})}function n(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return Array.isArray(n)?n.sort().map(function(e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"):""}function r(){if(location.search.length>=1){var e=t(location.search).language;if(e)return e;if(-1!=jQuery.inArray(location.search.substr(1),a))return location.search.substr(1)}return!1}function i(e){var r=t(location.search);return r.language?(r.language=e,n(r)):e}function o(e){if(history){var t=window.location.hash;t&&(t=t.replace(/^#+/,"")),history.pushState({},"","?"+i(e)+"#"+t),localStorage.setItem("language",e)}}function s(t){var n=localStorage.getItem("language");a=t;var i=r();i?(e(i),localStorage.setItem("language",i)):e(null!==n&&-1!=jQuery.inArray(n,a)?n:a[0])}var a=[];window.setupLanguages=s,window.activateLanguage=e,window.getLanguageFromQueryString=r,$(function(){$(".lang-selector a").on("click",function(){var t=$(this).data("language-name");return o(t),e(t),!1})})}(),function(){"use strict";function e(){$("h1, h2").each(function(){var e=$(this),t=e.nextUntil("h1, h2");f.add({id:e.prop("id"),title:e.text(),body:t.text()})}),t()}function t(){f.tokenStore.length>5e3&&(c=300)}function n(){s=$(".content"),a=$(".search-results"),$("#input-search").on("keyup",function(e){!function(){return function(e,t){clearTimeout(l),l=setTimeout(e,t)}}()(function(){r(e)},c)})}function r(e){var t=$("#input-search")[0];if(o(),a.addClass("visible"),27===e.keyCode&&(t.value=""),t.value){var n=f.search(t.value).filter(function(e){return e.score>1e-4});n.length?(a.empty(),$.each(n,function(e,t){var n=document.getElementById(t.ref);a.append("<li><a href='#"+t.ref+"'>"+$(n).text()+"</a></li>")}),i.call(t)):(a.html("<li></li>"),$(".search-results li").text('No Results Found for "'+t.value+'"'))}else o(),a.removeClass("visible")}function i(){this.value&&s.highlight(this.value,u)}function o(){s.unhighlight(u)}var s,a,u={element:"span",className:"search-highlight"},c=0,l=0,f=new lunr.Index;f.ref("id"),f.field("title",{boost:10}),f.field("body"),f.pipeline.add(lunr.trimmer,lunr.stopWordFilter),$(e),$(n)}(),function(){"use strict";function e(e,i,o,s){var a={},u=0,c=0,l=document.title,f=function(){a={},u=$(document).height(),c=$(window).height(),e.find(i).each(function(){var e=$(this).attr("href");"#"===e[0]&&(a[e]=$(e).offset().top)})},d=function(){var n=$(document).scrollTop()+s;n+c>=u&&(n=u+1e3);var r=null;for(var f in a)(a[f]<n&&a[f]>a[r]||null===r)&&(r=f);n!=s||t||(r=window.location.hash,t=!0);var d=e.find("[href='"+r+"']").first();if(!d.hasClass("active")){e.find(".active").removeClass("active"),e.find(".active-parent").removeClass("active-parent"),d.addClass("active"),d.parents(o).addClass("active").siblings(i).addClass("active-parent"),d.siblings(o).addClass("active"),e.find(o).filter(":not(.active)").slideUp(150),e.find(o).filter(".active").slideDown(150),window.history.replaceState&&window.history.replaceState(null,"",r);var p=d.data("title");void 0!==p&&p.length>0?document.title=p+" – "+l:document.title=l}};!function(){f(),d(),$("#nav-button").click(function(){return $(".toc-wrapper").toggleClass("open"),$("#nav-button").toggleClass("open"),!1}),$(".page-wrapper").click(r),$(".toc-link").click(r),e.find(i).click(function(){setTimeout(function(){d()},0)}),$(window).scroll(n(d,200)),$(window).resize(n(f,200))}(),window.recacheHeights=f,window.refreshToc=d}var t=!1,n=function(e,t){var n=!1;return function(){!1===n&&(setTimeout(function(){e(),n=!1},t),n=!0)}},r=function(){$(".toc-wrapper").removeClass("open"),$("#nav-button").removeClass("open")};window.loadToc=e}(),$(function(){loadToc($("#toc"),".toc-link",".toc-list-h2, .toc-list-h3, .toc-list-h4, .toc-list-h5, .toc-list-h6",10),setupLanguages($("body").data("languages")),$(".content").imagesLoaded(function(){window.recacheHeights(),window.refreshToc()})}),window.onpopstate=function(){activateLanguage(getLanguageFromQueryString())};</script>
  1317. <meta name="theme-color" content="#F3F7F9" />
  1318. <!-- Renderer: Shins v2.6.0 -->
  1319. <!-- Generator: Widdershins v4.0.1 -->
  1320. <!-- backwards compatibility -->
  1321. <!-- backwards compatibility -->
  1322. <!-- backwards compatibility -->
  1323. <!-- backwards compatibility -->
  1324. <!-- backwards compatibility -->
  1325. <!-- backwards compatibility -->
  1326. <!-- backwards compatibility -->
  1327. <!-- backwards compatibility -->
  1328. <!-- backwards compatibility -->
  1329. <!-- backwards compatibility -->
  1330. <!-- backwards compatibility -->
  1331. <!-- backwards compatibility -->
  1332. <!-- backwards compatibility -->
  1333. <!-- backwards compatibility -->
  1334. <!-- backwards compatibility -->
  1335. <!-- backwards compatibility -->
  1336. <!-- backwards compatibility -->
  1337. <!-- backwards compatibility -->
  1338. <!-- backwards compatibility -->
  1339. <!-- backwards compatibility -->
  1340. </head>
  1341. <body data-languages="[&quot;shell&quot;,&quot;http&quot;,&quot;javascript&quot;,&quot;javascript--nodejs&quot;,&quot;ruby&quot;,&quot;python&quot;,&quot;java&quot;,&quot;go&quot;,&quot;php&quot;]">
  1342. <a href="#" id="nav-button">
  1343. <span>
  1344. NAV
  1345. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1346. </span>
  1347. </a>
  1348. <div class="toc-wrapper">
  1349. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAAcCAYAAABxutG8AAAG6klEQVR4Ad3aA4xkSxcA4LvefbZt27Zt27Zt27Zt27bttWe2R9+vTionlZs7760m/5eMutDVXV11T507RUeD7rgAL+AQzIlx/mYfp6OGs4oOAp3QEz3Er65FR4NO2EL0GhZtZ/t50IhWXFJ0EFgDd+LW9OUWHFd0RJgSr4lewGTVbZ2BFjRh16KDwHNKjEynE+MkfIz7MP0o3pJuEQ3FChXtxsdLgEYs+385CVgQ98rVcAy6jaIt6Vq5DSraLYM/AMMxbdFB4NmRmgRMhtXyjgxATXQ7xs37sA7WxQRFBXTDzXLrVLTbXTK0qNbxJwGTYVe8IPoFF2F3fC96BZPnffkG8AQ2ROeKre4JUV8sVd5GL1wn+an4BzAJFsE62Aa7YM1Ubgbsgz2xF3ajOsLBS397ErAj3kKrpBVnYf56nfXQKLqAOCgsjKGSRhyDTiXPPQs+Fb1F+faCKfCJ5NmindAT2+FuvIufMBBNgA8wSb3u/nIzFBVwIHrjN/wqfT2ZV2Z6vI5W0ZdYHF3Svu1EUSO2yvt0DlpEr5etBiyFmuiKihc5q+jqoh1wFP5ETbkfMG+9/pFys9XL5sI9eLH+9TKextToivHlX73SYOiMA+SacTe6xMGbCI+LvsHc+ZbmHbmLyVcCOmMv0WBsWPFmbik6qryuzlgLfbXP95irfBLMXi/bGTW5tYsqmAp3yfXD/iVtZkQ/0XN5PRtgmNxG5eFpNrmfVO27uEy0ZUm9qXGt9mlDA55XDzawG2oYjCFoxLRpC9cgt1bVBIyH5+V+oXwGsZqoBafFOnrgMrkRmKv8oJbZr6iAj0VL53XMibeU+wtP4WIcgm2xERaKF27rSdHemug0spNwhtwgLF/R7lxRA/EwhWnRW+49TF3S76Gi34t2kJsulpsDf8oNwaVYETNgYnQv/gHshMaq0DqDPnJbFBXwiah/EYSlO0h0c1lSDn9Vb1sR5ifKgw0DRV9h62IUwjrohza0og2wUFXDBtEtRQVMJHdffur1AT7EANGRJf1uIXqpaAfsIWpIZSbFx4A2fDSK3/wA3dAT3du9onCHaNLqNraV2yq/ZmjAtaJh2KSk3w8kfbEoZsKyWBiTlLS7RvRlusi7GjAYJ2CidqZmNsEGWBVz5uGwlbEptsYa+YfUWtgOUxVVMDsGp8FXw30yMVWBD/E6zhN9jwVKVsEIyXd4AZ9hdzyBT3EFxottvS96qv74+oBvqE7mYUu8gB9wDn5AX3yHK9ELe+Nb9MYwtOCG1Icd8C4Ghg9nFayEgXi3nfWHi96J5VYA7CgPN9/G+HnKwXOiNsB+GBf3AdrwNWnS0Si6Gl3wM77GHBWvZwI8ghGAlzAefhcthXvktq33c5g4luFhlVTBdNihup755I6JdTyF3zEhfhQ9nPdpczTKDUQnTIpXJc04OJ1xtIgOx8EYWrUCMCmelDThYEyL/qIV8KrcLFgdraIvMFcxqmFfuYVTueVQw26YXtSCU/JknVfk4HJ0wowYKmnD7mnVaRXtiYHYvzpl7lzRX5gSO6MxTo4Z8LXcePgKI0RPolcxquEuUT9MmNIBrsEf6IGlRSOwWezPIcrUUxXYVPSC+ovDrvkkeAYNVUEGFgYgJv5wu+g1dMcg0Yc4Fp/jCUkbLowXe4sVowI+Fj2iHvNjAdSwS/3v7UXDMU88QGlTpn4Bx2eSq0gRDh6Va0Ir7qX8JhMekNseU+FT0Tn1NjXRYxiK9fCBZBi2Kerw3ijZmjBdvsc7AV3RDVfgS/XTME4UDU596YJfAM1oEfXGdDgD8AmWi+OxNP5UDi4oi9flYDysj49QAwzBxhgPTaIG3IS50Srpk7Krlse7xaiAxfBnyZYxH9qwY6rvYtEP6UDjgTRYp+JL0a84AVeU5IHGxVVoUe3IkADMxpadL86uf/UDfIMZMBua5GbBRqKvY6BixWJUwLxxEgzFEuiG9/EEepbngbxVf/wqwGBshe54C/l2VAIn4hR8I6phqNyZmDzF8p6Suwzj437sjAGAF1Mor1n0Qb1sF9Gt6V9d3FiMSnhSMgjr4UH8iWnypJm/JL/gfkA/UsIPW8tdnz+/cXAXTsX0+EpuPfwp9yFewnOYBu+IDsY2uAiLYhBacVk6pGojT8FgddHR6IQrMEsxKmECfJRvHaYrqb8mBojexqwlCbBG0cWYFfPgZPyFrdMtTd/LzYAp8bzc1+kumanxnWQY3k6Bhh8BL+MUXCi3ULol6yvJK7g0vxk16s8L9+ModK6+aeQ03Ied0akiAXYMPsEwSR9cnJ+2HYs38DN6o2+MwGyHj9APt2GyfGU5Cg/gVHSNK9lX+BIroSt2xWW4C5divPiB8xUa8H3MAJf7Fykvx9WyNCXUAAAAAElFTkSuQmCC" class="logo" alt="Logo">
  1350. <div class="lang-selector">
  1351. <a href="#" data-language-name="shell">Shell</a>
  1352. <a href="#" data-language-name="http">HTTP</a>
  1353. <a href="#" data-language-name="javascript">JavaScript</a>
  1354. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1355. <a href="#" data-language-name="ruby">Ruby</a>
  1356. <a href="#" data-language-name="python">Python</a>
  1357. <a href="#" data-language-name="java">Java</a>
  1358. <a href="#" data-language-name="go">Go</a>
  1359. <a href="#" data-language-name="php">PHP</a>
  1360. </div>
  1361. <div class="search">
  1362. <input type="text" class="search" id="input-search" placeholder="Search">
  1363. </div>
  1364. <ul class="search-results"></ul>
  1365. <div id="toc" class="toc-list-h1">
  1366. <ul class="toc-list-h1">
  1367. <li>
  1368. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v5.22">Wekan REST API v5.22</a>
  1369. </li>
  1370. <li>
  1371. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1372. </li>
  1373. <li>
  1374. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1375. </li>
  1376. <li>
  1377. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1378. <ul class="toc-list-h2">
  1379. <li>
  1380. <a href="#login" class="toc-h2 toc-link" data-title="">login</a>
  1381. </li>
  1382. <li>
  1383. <a href="#register" class="toc-h2 toc-link" data-title="">register</a>
  1384. </li>
  1385. </ul>
  1386. </li>
  1387. <li>
  1388. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1389. <ul class="toc-list-h2">
  1390. <li>
  1391. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="">get_public_boards</a>
  1392. </li>
  1393. <li>
  1394. <a href="#new_board" class="toc-h2 toc-link" data-title="">new_board</a>
  1395. </li>
  1396. <li>
  1397. <a href="#get_board" class="toc-h2 toc-link" data-title="">get_board</a>
  1398. </li>
  1399. <li>
  1400. <a href="#delete_board" class="toc-h2 toc-link" data-title="">delete_board</a>
  1401. </li>
  1402. <li>
  1403. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="">get_board_attachments</a>
  1404. </li>
  1405. <li>
  1406. <a href="#exportjson" class="toc-h2 toc-link" data-title="">exportJson</a>
  1407. </li>
  1408. <li>
  1409. <a href="#add_board_label" class="toc-h2 toc-link" data-title="">add_board_label</a>
  1410. </li>
  1411. <li>
  1412. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="">set_board_member_permission</a>
  1413. </li>
  1414. <li>
  1415. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="">get_boards_count</a>
  1416. </li>
  1417. <li>
  1418. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="">get_boards_from_user</a>
  1419. </li>
  1420. </ul>
  1421. </li>
  1422. <li>
  1423. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1424. <ul class="toc-list-h2">
  1425. <li>
  1426. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="">get_all_checklists</a>
  1427. </li>
  1428. <li>
  1429. <a href="#new_checklist" class="toc-h2 toc-link" data-title="">new_checklist</a>
  1430. </li>
  1431. <li>
  1432. <a href="#get_checklist" class="toc-h2 toc-link" data-title="">get_checklist</a>
  1433. </li>
  1434. <li>
  1435. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="">delete_checklist</a>
  1436. </li>
  1437. </ul>
  1438. </li>
  1439. <li>
  1440. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1441. <ul class="toc-list-h2">
  1442. <li>
  1443. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1444. </li>
  1445. <li>
  1446. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1447. </li>
  1448. <li>
  1449. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1450. </li>
  1451. </ul>
  1452. </li>
  1453. <li>
  1454. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1455. <ul class="toc-list-h2">
  1456. <li>
  1457. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1458. </li>
  1459. <li>
  1460. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1461. </li>
  1462. <li>
  1463. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1464. </li>
  1465. <li>
  1466. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1467. </li>
  1468. </ul>
  1469. </li>
  1470. <li>
  1471. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1472. <ul class="toc-list-h2">
  1473. <li>
  1474. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1475. </li>
  1476. <li>
  1477. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1478. </li>
  1479. <li>
  1480. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1481. </li>
  1482. <li>
  1483. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1484. </li>
  1485. <li>
  1486. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1487. </li>
  1488. <li>
  1489. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1490. </li>
  1491. <li>
  1492. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1493. </li>
  1494. </ul>
  1495. </li>
  1496. <li>
  1497. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1498. <ul class="toc-list-h2">
  1499. <li>
  1500. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1501. </li>
  1502. <li>
  1503. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1504. </li>
  1505. <li>
  1506. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1507. </li>
  1508. <li>
  1509. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1510. </li>
  1511. <li>
  1512. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1513. </li>
  1514. <li>
  1515. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1516. </li>
  1517. <li>
  1518. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1519. </li>
  1520. <li>
  1521. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1522. </li>
  1523. </ul>
  1524. </li>
  1525. <li>
  1526. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1527. <ul class="toc-list-h2">
  1528. <li>
  1529. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1530. </li>
  1531. <li>
  1532. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1533. </li>
  1534. <li>
  1535. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1536. </li>
  1537. <li>
  1538. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1539. </li>
  1540. <li>
  1541. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1542. </li>
  1543. <li>
  1544. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1545. </li>
  1546. <li>
  1547. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1548. </li>
  1549. </ul>
  1550. </li>
  1551. <li>
  1552. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1553. <ul class="toc-list-h2">
  1554. <li>
  1555. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1556. </li>
  1557. <li>
  1558. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1559. </li>
  1560. <li>
  1561. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1562. </li>
  1563. <li>
  1564. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1565. </li>
  1566. </ul>
  1567. </li>
  1568. <li>
  1569. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1570. <ul class="toc-list-h2">
  1571. <li>
  1572. <a href="#add_board_member" class="toc-h2 toc-link" data-title="">add_board_member</a>
  1573. </li>
  1574. <li>
  1575. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="">remove_board_member</a>
  1576. </li>
  1577. <li>
  1578. <a href="#create_user_token" class="toc-h2 toc-link" data-title="">create_user_token</a>
  1579. </li>
  1580. <li>
  1581. <a href="#get_current_user" class="toc-h2 toc-link" data-title="">get_current_user</a>
  1582. </li>
  1583. <li>
  1584. <a href="#get_all_users" class="toc-h2 toc-link" data-title="">get_all_users</a>
  1585. </li>
  1586. <li>
  1587. <a href="#new_user" class="toc-h2 toc-link" data-title="">new_user</a>
  1588. </li>
  1589. <li>
  1590. <a href="#get_user" class="toc-h2 toc-link" data-title="">get_user</a>
  1591. </li>
  1592. <li>
  1593. <a href="#edit_user" class="toc-h2 toc-link" data-title="">edit_user</a>
  1594. </li>
  1595. <li>
  1596. <a href="#delete_user" class="toc-h2 toc-link" data-title="">delete_user</a>
  1597. </li>
  1598. </ul>
  1599. </li>
  1600. <li>
  1601. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1602. <ul class="toc-list-h2">
  1603. <li>
  1604. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1605. </li>
  1606. <li>
  1607. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1608. </li>
  1609. <li>
  1610. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1611. </li>
  1612. <li>
  1613. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1614. </li>
  1615. </ul>
  1616. </li>
  1617. <li>
  1618. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1619. <ul class="toc-list-h2">
  1620. <li>
  1621. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1622. </li>
  1623. <li>
  1624. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1625. </li>
  1626. <li>
  1627. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1628. </li>
  1629. <li>
  1630. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1631. </li>
  1632. <li>
  1633. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1634. </li>
  1635. <li>
  1636. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1637. </li>
  1638. <li>
  1639. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1640. </li>
  1641. <li>
  1642. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1643. </li>
  1644. <li>
  1645. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1646. </li>
  1647. <li>
  1648. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1658. </li>
  1659. <li>
  1660. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1661. </li>
  1662. <li>
  1663. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1664. </li>
  1665. <li>
  1666. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1667. </li>
  1668. <li>
  1669. <a href="#tocs_users" class="toc-h2 toc-link" data-title="">Users</a>
  1670. </li>
  1671. <li>
  1672. <a href="#tocs_usersemails" class="toc-h2 toc-link" data-title="">UsersEmails</a>
  1673. </li>
  1674. <li>
  1675. <a href="#tocs_usersprofile" class="toc-h2 toc-link" data-title="">UsersProfile</a>
  1676. </li>
  1677. <li>
  1678. <a href="#tocs_userssessiondata" class="toc-h2 toc-link" data-title="">UsersSessiondata</a>
  1679. </li>
  1680. </ul>
  1681. </li>
  1682. </ul>
  1683. </div>
  1684. <ul class="toc-footer">
  1685. </ul>
  1686. </div>
  1687. <div class="page-wrapper">
  1688. <div class="dark-box"></div>
  1689. <div class="content">
  1690. <h1 id="wekan-rest-api">Wekan REST API v5.22</h1>
  1691. <blockquote>
  1692. <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>
  1693. </blockquote>
  1694. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1695. <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>
  1696. <blockquote>
  1697. <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>
  1698. </blockquote>
  1699. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1700. <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>
  1701. <ul>
  1702. <li>Only call via HTTPS</li>
  1703. <li>Implement a timed authorization token expiration strategy</li>
  1704. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1705. </ul>
  1706. <h1 id="authentication">Authentication</h1>
  1707. <ul>
  1708. <li>API Key (UserSecurity)
  1709. <ul>
  1710. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1711. </ul>
  1712. </li>
  1713. </ul>
  1714. <h1 id="wekan-rest-api-login">Login</h1>
  1715. <h2 id="login">login</h2>
  1716. <p><a id="opIdlogin"></a></p>
  1717. <blockquote>
  1718. <p>Code samples</p>
  1719. </blockquote>
  1720. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1721. curl -X POST /users/login \
  1722. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1723. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1724. </code></pre>
  1725. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/login</span> <span class="hljs-meta">HTTP/1.1</span>
  1726. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1727. <span class="hljs-keyword">Accept</span>: */*
  1728. </span></code></pre>
  1729. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1730. &quot;username&quot;: &quot;string&quot;,
  1731. &quot;password&quot;: &quot;pa$$word&quot;
  1732. }&#x27;</span>;
  1733. <span class="hljs-keyword">const</span> headers = {
  1734. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1735. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1736. };
  1737. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1738. {
  1739. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1740. <span class="hljs-attr">body</span>: inputBody,
  1741. <span class="hljs-attr">headers</span>: headers
  1742. })
  1743. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1744. <span class="hljs-keyword">return</span> res.json();
  1745. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1746. <span class="hljs-built_in">console</span>.log(body);
  1747. });
  1748. </code></pre>
  1749. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  1750. <span class="hljs-keyword">const</span> inputBody = {
  1751. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1752. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1753. };
  1754. <span class="hljs-keyword">const</span> headers = {
  1755. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1756. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1757. };
  1758. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1759. {
  1760. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1761. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1762. <span class="hljs-attr">headers</span>: headers
  1763. })
  1764. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1765. <span class="hljs-keyword">return</span> res.json();
  1766. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1767. <span class="hljs-built_in">console</span>.log(body);
  1768. });
  1769. </code></pre>
  1770. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1771. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1772. headers = {
  1773. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1774. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1775. }
  1776. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1777. <span class="hljs-symbol">params:</span> {
  1778. }, <span class="hljs-symbol">headers:</span> headers
  1779. p JSON.parse(result)
  1780. </code></pre>
  1781. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1782. headers = {
  1783. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1784. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1785. }
  1786. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1787. <span class="hljs-built_in">print</span>(r.json())
  1788. </code></pre>
  1789. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/users/login&quot;</span>);
  1790. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1791. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1792. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1793. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1794. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1795. String inputLine;
  1796. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1797. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1798. response.append(inputLine);
  1799. }
  1800. in.close();
  1801. System.out.println(response.toString());
  1802. </code></pre>
  1803. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1804. <span class="hljs-keyword">import</span> (
  1805. <span class="hljs-string">&quot;bytes&quot;</span>
  1806. <span class="hljs-string">&quot;net/http&quot;</span>
  1807. )
  1808. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1809. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1810. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/x-www-form-urlencoded&quot;</span>},
  1811. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1812. }
  1813. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1814. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1815. req.Header = headers
  1816. client := &amp;http.Client{}
  1817. resp, err := client.Do(req)
  1818. <span class="hljs-comment">// ...</span>
  1819. }
  1820. </code></pre>
  1821. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1822. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1823. );
  1824. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1825. <span class="hljs-comment">// Define array of request body.</span>
  1826. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1827. <span class="hljs-keyword">try</span> {
  1828. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/users/login&#x27;</span>, <span class="hljs-keyword">array</span>(
  1829. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1830. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1831. )
  1832. );
  1833. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1834. }
  1835. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1836. <span class="hljs-comment">// handle exception or api errors.</span>
  1837. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1838. }
  1839. <span class="hljs-comment">// ...</span>
  1840. </code></pre>
  1841. <p><code>POST /users/login</code></p>
  1842. <p><em>Login with REST API</em></p>
  1843. <blockquote>
  1844. <p>Body parameter</p>
  1845. </blockquote>
  1846. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1847. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1848. </code></pre>
  1849. <h3 id="login-parameters">Parameters</h3>
  1850. <table>
  1851. <thead>
  1852. <tr>
  1853. <th>Name</th>
  1854. <th>In</th>
  1855. <th>Type</th>
  1856. <th>Required</th>
  1857. <th>Description</th>
  1858. </tr>
  1859. </thead>
  1860. <tbody>
  1861. <tr>
  1862. <td>body</td>
  1863. <td>body</td>
  1864. <td>object</td>
  1865. <td>true</td>
  1866. <td>none</td>
  1867. </tr>
  1868. <tr>
  1869. <td>» username</td>
  1870. <td>body</td>
  1871. <td>string</td>
  1872. <td>true</td>
  1873. <td>Your username</td>
  1874. </tr>
  1875. <tr>
  1876. <td>» password</td>
  1877. <td>body</td>
  1878. <td>string(password)</td>
  1879. <td>true</td>
  1880. <td>Your password</td>
  1881. </tr>
  1882. </tbody>
  1883. </table>
  1884. <blockquote>
  1885. <p>Example responses</p>
  1886. </blockquote>
  1887. <blockquote>
  1888. <p>200 Response</p>
  1889. </blockquote>
  1890. <h3 id="login-responses">Responses</h3>
  1891. <table>
  1892. <thead>
  1893. <tr>
  1894. <th>Status</th>
  1895. <th>Meaning</th>
  1896. <th>Description</th>
  1897. <th>Schema</th>
  1898. </tr>
  1899. </thead>
  1900. <tbody>
  1901. <tr>
  1902. <td>200</td>
  1903. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1904. <td>Successful authentication</td>
  1905. <td>Inline</td>
  1906. </tr>
  1907. <tr>
  1908. <td>400</td>
  1909. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1910. <td>Error in authentication</td>
  1911. <td>Inline</td>
  1912. </tr>
  1913. <tr>
  1914. <td>default</td>
  1915. <td>Default</td>
  1916. <td>Error in authentication</td>
  1917. <td>None</td>
  1918. </tr>
  1919. </tbody>
  1920. </table>
  1921. <h3 id="login-responseschema">Response Schema</h3>
  1922. <p>Status Code <strong>200</strong></p>
  1923. <table>
  1924. <thead>
  1925. <tr>
  1926. <th>Name</th>
  1927. <th>Type</th>
  1928. <th>Required</th>
  1929. <th>Restrictions</th>
  1930. <th>Description</th>
  1931. </tr>
  1932. </thead>
  1933. <tbody>
  1934. <tr>
  1935. <td>» id</td>
  1936. <td>string</td>
  1937. <td>false</td>
  1938. <td>none</td>
  1939. <td>none</td>
  1940. </tr>
  1941. <tr>
  1942. <td>» token</td>
  1943. <td>string</td>
  1944. <td>false</td>
  1945. <td>none</td>
  1946. <td>none</td>
  1947. </tr>
  1948. <tr>
  1949. <td>» tokenExpires</td>
  1950. <td>string</td>
  1951. <td>false</td>
  1952. <td>none</td>
  1953. <td>none</td>
  1954. </tr>
  1955. </tbody>
  1956. </table>
  1957. <p>Status Code <strong>400</strong></p>
  1958. <table>
  1959. <thead>
  1960. <tr>
  1961. <th>Name</th>
  1962. <th>Type</th>
  1963. <th>Required</th>
  1964. <th>Restrictions</th>
  1965. <th>Description</th>
  1966. </tr>
  1967. </thead>
  1968. <tbody>
  1969. <tr>
  1970. <td>» error</td>
  1971. <td>number</td>
  1972. <td>false</td>
  1973. <td>none</td>
  1974. <td>none</td>
  1975. </tr>
  1976. <tr>
  1977. <td>» reason</td>
  1978. <td>string</td>
  1979. <td>false</td>
  1980. <td>none</td>
  1981. <td>none</td>
  1982. </tr>
  1983. </tbody>
  1984. </table>
  1985. <aside class="success">
  1986. This operation does not require authentication
  1987. </aside>
  1988. <h2 id="register">register</h2>
  1989. <p><a id="opIdregister"></a></p>
  1990. <blockquote>
  1991. <p>Code samples</p>
  1992. </blockquote>
  1993. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1994. curl -X POST /users/register \
  1995. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1996. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1997. </code></pre>
  1998. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/users/register</span> <span class="hljs-meta">HTTP/1.1</span>
  1999. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  2000. <span class="hljs-keyword">Accept</span>: */*
  2001. </span></code></pre>
  2002. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2003. &quot;username&quot;: &quot;string&quot;,
  2004. &quot;password&quot;: &quot;pa$$word&quot;,
  2005. &quot;email&quot;: &quot;string&quot;
  2006. }&#x27;</span>;
  2007. <span class="hljs-keyword">const</span> headers = {
  2008. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2009. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2010. };
  2011. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2012. {
  2013. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2014. <span class="hljs-attr">body</span>: inputBody,
  2015. <span class="hljs-attr">headers</span>: headers
  2016. })
  2017. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2018. <span class="hljs-keyword">return</span> res.json();
  2019. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2020. <span class="hljs-built_in">console</span>.log(body);
  2021. });
  2022. </code></pre>
  2023. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2024. <span class="hljs-keyword">const</span> inputBody = {
  2025. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2026. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2027. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2028. };
  2029. <span class="hljs-keyword">const</span> headers = {
  2030. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2031. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2032. };
  2033. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2034. {
  2035. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2036. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2037. <span class="hljs-attr">headers</span>: headers
  2038. })
  2039. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2040. <span class="hljs-keyword">return</span> res.json();
  2041. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2042. <span class="hljs-built_in">console</span>.log(body);
  2043. });
  2044. </code></pre>
  2045. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2046. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2047. headers = {
  2048. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2049. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2050. }
  2051. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2052. <span class="hljs-symbol">params:</span> {
  2053. }, <span class="hljs-symbol">headers:</span> headers
  2054. p JSON.parse(result)
  2055. </code></pre>
  2056. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2057. headers = {
  2058. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2059. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2060. }
  2061. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2062. <span class="hljs-built_in">print</span>(r.json())
  2063. </code></pre>
  2064. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/users/register&quot;</span>);
  2065. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2066. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2067. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2068. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2069. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2070. String inputLine;
  2071. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2072. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2073. response.append(inputLine);
  2074. }
  2075. in.close();
  2076. System.out.println(response.toString());
  2077. </code></pre>
  2078. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2079. <span class="hljs-keyword">import</span> (
  2080. <span class="hljs-string">&quot;bytes&quot;</span>
  2081. <span class="hljs-string">&quot;net/http&quot;</span>
  2082. )
  2083. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2084. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2085. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/x-www-form-urlencoded&quot;</span>},
  2086. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2087. }
  2088. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2089. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2090. req.Header = headers
  2091. client := &amp;http.Client{}
  2092. resp, err := client.Do(req)
  2093. <span class="hljs-comment">// ...</span>
  2094. }
  2095. </code></pre>
  2096. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2097. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2098. );
  2099. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2100. <span class="hljs-comment">// Define array of request body.</span>
  2101. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2102. <span class="hljs-keyword">try</span> {
  2103. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/users/register&#x27;</span>, <span class="hljs-keyword">array</span>(
  2104. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2105. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2106. )
  2107. );
  2108. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2109. }
  2110. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2111. <span class="hljs-comment">// handle exception or api errors.</span>
  2112. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2113. }
  2114. <span class="hljs-comment">// ...</span>
  2115. </code></pre>
  2116. <p><code>POST /users/register</code></p>
  2117. <p><em>Register with REST API</em></p>
  2118. <p>Notes:</p>
  2119. <ul>
  2120. <li>You will need to provide the token for any of the authenticated methods.</li>
  2121. </ul>
  2122. <blockquote>
  2123. <p>Body parameter</p>
  2124. </blockquote>
  2125. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2126. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2127. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2128. </code></pre>
  2129. <h3 id="register-parameters">Parameters</h3>
  2130. <table>
  2131. <thead>
  2132. <tr>
  2133. <th>Name</th>
  2134. <th>In</th>
  2135. <th>Type</th>
  2136. <th>Required</th>
  2137. <th>Description</th>
  2138. </tr>
  2139. </thead>
  2140. <tbody>
  2141. <tr>
  2142. <td>body</td>
  2143. <td>body</td>
  2144. <td>object</td>
  2145. <td>true</td>
  2146. <td>none</td>
  2147. </tr>
  2148. <tr>
  2149. <td>» username</td>
  2150. <td>body</td>
  2151. <td>string</td>
  2152. <td>true</td>
  2153. <td>Your username</td>
  2154. </tr>
  2155. <tr>
  2156. <td>» password</td>
  2157. <td>body</td>
  2158. <td>string(password)</td>
  2159. <td>true</td>
  2160. <td>Your password</td>
  2161. </tr>
  2162. <tr>
  2163. <td>» email</td>
  2164. <td>body</td>
  2165. <td>string</td>
  2166. <td>true</td>
  2167. <td>Your email</td>
  2168. </tr>
  2169. </tbody>
  2170. </table>
  2171. <blockquote>
  2172. <p>Example responses</p>
  2173. </blockquote>
  2174. <blockquote>
  2175. <p>200 Response</p>
  2176. </blockquote>
  2177. <h3 id="register-responses">Responses</h3>
  2178. <table>
  2179. <thead>
  2180. <tr>
  2181. <th>Status</th>
  2182. <th>Meaning</th>
  2183. <th>Description</th>
  2184. <th>Schema</th>
  2185. </tr>
  2186. </thead>
  2187. <tbody>
  2188. <tr>
  2189. <td>200</td>
  2190. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2191. <td>Successful registration</td>
  2192. <td>Inline</td>
  2193. </tr>
  2194. <tr>
  2195. <td>400</td>
  2196. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2197. <td>Error in registration</td>
  2198. <td>Inline</td>
  2199. </tr>
  2200. <tr>
  2201. <td>default</td>
  2202. <td>Default</td>
  2203. <td>Error in registration</td>
  2204. <td>None</td>
  2205. </tr>
  2206. </tbody>
  2207. </table>
  2208. <h3 id="register-responseschema">Response Schema</h3>
  2209. <p>Status Code <strong>200</strong></p>
  2210. <table>
  2211. <thead>
  2212. <tr>
  2213. <th>Name</th>
  2214. <th>Type</th>
  2215. <th>Required</th>
  2216. <th>Restrictions</th>
  2217. <th>Description</th>
  2218. </tr>
  2219. </thead>
  2220. <tbody>
  2221. <tr>
  2222. <td>» id</td>
  2223. <td>string</td>
  2224. <td>false</td>
  2225. <td>none</td>
  2226. <td>none</td>
  2227. </tr>
  2228. <tr>
  2229. <td>» token</td>
  2230. <td>string</td>
  2231. <td>false</td>
  2232. <td>none</td>
  2233. <td>none</td>
  2234. </tr>
  2235. <tr>
  2236. <td>» tokenExpires</td>
  2237. <td>string</td>
  2238. <td>false</td>
  2239. <td>none</td>
  2240. <td>none</td>
  2241. </tr>
  2242. </tbody>
  2243. </table>
  2244. <p>Status Code <strong>400</strong></p>
  2245. <table>
  2246. <thead>
  2247. <tr>
  2248. <th>Name</th>
  2249. <th>Type</th>
  2250. <th>Required</th>
  2251. <th>Restrictions</th>
  2252. <th>Description</th>
  2253. </tr>
  2254. </thead>
  2255. <tbody>
  2256. <tr>
  2257. <td>» error</td>
  2258. <td>number</td>
  2259. <td>false</td>
  2260. <td>none</td>
  2261. <td>none</td>
  2262. </tr>
  2263. <tr>
  2264. <td>» reason</td>
  2265. <td>string</td>
  2266. <td>false</td>
  2267. <td>none</td>
  2268. <td>none</td>
  2269. </tr>
  2270. </tbody>
  2271. </table>
  2272. <aside class="success">
  2273. This operation does not require authentication
  2274. </aside>
  2275. <h1 id="wekan-rest-api-boards">Boards</h1>
  2276. <h2 id="get_public_boards">get_public_boards</h2>
  2277. <p><a id="opIdget_public_boards"></a></p>
  2278. <blockquote>
  2279. <p>Code samples</p>
  2280. </blockquote>
  2281. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2282. curl -X GET /api/boards \
  2283. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2284. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2285. </code></pre>
  2286. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards</span> <span class="hljs-meta">HTTP/1.1</span>
  2287. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2288. </span></code></pre>
  2289. <pre class="highlight tab tab-javascript"><code>
  2290. <span class="hljs-keyword">const</span> headers = {
  2291. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2292. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2293. };
  2294. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2295. {
  2296. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2297. <span class="hljs-attr">headers</span>: headers
  2298. })
  2299. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2300. <span class="hljs-keyword">return</span> res.json();
  2301. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2302. <span class="hljs-built_in">console</span>.log(body);
  2303. });
  2304. </code></pre>
  2305. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2306. <span class="hljs-keyword">const</span> headers = {
  2307. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2308. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2309. };
  2310. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2311. {
  2312. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2313. <span class="hljs-attr">headers</span>: headers
  2314. })
  2315. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2316. <span class="hljs-keyword">return</span> res.json();
  2317. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2318. <span class="hljs-built_in">console</span>.log(body);
  2319. });
  2320. </code></pre>
  2321. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2322. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2323. headers = {
  2324. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2325. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2326. }
  2327. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2328. <span class="hljs-symbol">params:</span> {
  2329. }, <span class="hljs-symbol">headers:</span> headers
  2330. p JSON.parse(result)
  2331. </code></pre>
  2332. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2333. headers = {
  2334. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2335. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2336. }
  2337. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2338. <span class="hljs-built_in">print</span>(r.json())
  2339. </code></pre>
  2340. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards&quot;</span>);
  2341. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2342. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2343. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2344. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2345. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2346. String inputLine;
  2347. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2348. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2349. response.append(inputLine);
  2350. }
  2351. in.close();
  2352. System.out.println(response.toString());
  2353. </code></pre>
  2354. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2355. <span class="hljs-keyword">import</span> (
  2356. <span class="hljs-string">&quot;bytes&quot;</span>
  2357. <span class="hljs-string">&quot;net/http&quot;</span>
  2358. )
  2359. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2360. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2361. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2362. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2363. }
  2364. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2365. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2366. req.Header = headers
  2367. client := &amp;http.Client{}
  2368. resp, err := client.Do(req)
  2369. <span class="hljs-comment">// ...</span>
  2370. }
  2371. </code></pre>
  2372. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2373. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2374. );
  2375. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2376. <span class="hljs-comment">// Define array of request body.</span>
  2377. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2378. <span class="hljs-keyword">try</span> {
  2379. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards&#x27;</span>, <span class="hljs-keyword">array</span>(
  2380. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2381. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2382. )
  2383. );
  2384. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2385. }
  2386. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2387. <span class="hljs-comment">// handle exception or api errors.</span>
  2388. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2389. }
  2390. <span class="hljs-comment">// ...</span>
  2391. </code></pre>
  2392. <p><code>GET /api/boards</code></p>
  2393. <p><em>Get all public boards</em></p>
  2394. <blockquote>
  2395. <p>Example responses</p>
  2396. </blockquote>
  2397. <blockquote>
  2398. <p>200 Response</p>
  2399. </blockquote>
  2400. <pre class="highlight tab tab-json"><code>[
  2401. {
  2402. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2403. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2404. }
  2405. ]
  2406. </code></pre>
  2407. <h3 id="get_public_boards-responses">Responses</h3>
  2408. <table>
  2409. <thead>
  2410. <tr>
  2411. <th>Status</th>
  2412. <th>Meaning</th>
  2413. <th>Description</th>
  2414. <th>Schema</th>
  2415. </tr>
  2416. </thead>
  2417. <tbody>
  2418. <tr>
  2419. <td>200</td>
  2420. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2421. <td>200 response</td>
  2422. <td>Inline</td>
  2423. </tr>
  2424. </tbody>
  2425. </table>
  2426. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2427. <p>Status Code <strong>200</strong></p>
  2428. <table>
  2429. <thead>
  2430. <tr>
  2431. <th>Name</th>
  2432. <th>Type</th>
  2433. <th>Required</th>
  2434. <th>Restrictions</th>
  2435. <th>Description</th>
  2436. </tr>
  2437. </thead>
  2438. <tbody>
  2439. <tr>
  2440. <td>» _id</td>
  2441. <td>string</td>
  2442. <td>false</td>
  2443. <td>none</td>
  2444. <td>none</td>
  2445. </tr>
  2446. <tr>
  2447. <td>» title</td>
  2448. <td>string</td>
  2449. <td>false</td>
  2450. <td>none</td>
  2451. <td>none</td>
  2452. </tr>
  2453. </tbody>
  2454. </table>
  2455. <aside class="warning">
  2456. To perform this operation, you must be authenticated by means of one of the following methods:
  2457. UserSecurity
  2458. </aside>
  2459. <h2 id="new_board">new_board</h2>
  2460. <p><a id="opIdnew_board"></a></p>
  2461. <blockquote>
  2462. <p>Code samples</p>
  2463. </blockquote>
  2464. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2465. curl -X POST /api/boards \
  2466. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2467. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2468. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2469. </code></pre>
  2470. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards</span> <span class="hljs-meta">HTTP/1.1</span>
  2471. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2472. Accept: application/json
  2473. </span></code></pre>
  2474. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2475. &quot;title&quot;: &quot;string&quot;,
  2476. &quot;owner&quot;: &quot;string&quot;,
  2477. &quot;isAdmin&quot;: true,
  2478. &quot;isActive&quot;: true,
  2479. &quot;isNoComments&quot;: true,
  2480. &quot;isCommentOnly&quot;: true,
  2481. &quot;isWorker&quot;: true,
  2482. &quot;permission&quot;: &quot;string&quot;,
  2483. &quot;color&quot;: &quot;string&quot;
  2484. }&#x27;</span>;
  2485. <span class="hljs-keyword">const</span> headers = {
  2486. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2487. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2488. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2489. };
  2490. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2491. {
  2492. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2493. <span class="hljs-attr">body</span>: inputBody,
  2494. <span class="hljs-attr">headers</span>: headers
  2495. })
  2496. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2497. <span class="hljs-keyword">return</span> res.json();
  2498. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2499. <span class="hljs-built_in">console</span>.log(body);
  2500. });
  2501. </code></pre>
  2502. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2503. <span class="hljs-keyword">const</span> inputBody = {
  2504. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2505. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2506. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2507. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2508. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2509. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2510. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2511. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2512. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2513. };
  2514. <span class="hljs-keyword">const</span> headers = {
  2515. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2516. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2517. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2518. };
  2519. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2520. {
  2521. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2522. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2523. <span class="hljs-attr">headers</span>: headers
  2524. })
  2525. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2526. <span class="hljs-keyword">return</span> res.json();
  2527. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2528. <span class="hljs-built_in">console</span>.log(body);
  2529. });
  2530. </code></pre>
  2531. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2532. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2533. headers = {
  2534. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2535. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2536. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2537. }
  2538. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2539. <span class="hljs-symbol">params:</span> {
  2540. }, <span class="hljs-symbol">headers:</span> headers
  2541. p JSON.parse(result)
  2542. </code></pre>
  2543. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2544. headers = {
  2545. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2546. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2547. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2548. }
  2549. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2550. <span class="hljs-built_in">print</span>(r.json())
  2551. </code></pre>
  2552. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards&quot;</span>);
  2553. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2554. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2555. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2556. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2557. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2558. String inputLine;
  2559. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2560. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2561. response.append(inputLine);
  2562. }
  2563. in.close();
  2564. System.out.println(response.toString());
  2565. </code></pre>
  2566. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2567. <span class="hljs-keyword">import</span> (
  2568. <span class="hljs-string">&quot;bytes&quot;</span>
  2569. <span class="hljs-string">&quot;net/http&quot;</span>
  2570. )
  2571. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2572. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2573. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  2574. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2575. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2576. }
  2577. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2578. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2579. req.Header = headers
  2580. client := &amp;http.Client{}
  2581. resp, err := client.Do(req)
  2582. <span class="hljs-comment">// ...</span>
  2583. }
  2584. </code></pre>
  2585. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2586. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2587. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2588. );
  2589. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2590. <span class="hljs-comment">// Define array of request body.</span>
  2591. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2592. <span class="hljs-keyword">try</span> {
  2593. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards&#x27;</span>, <span class="hljs-keyword">array</span>(
  2594. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2595. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2596. )
  2597. );
  2598. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2599. }
  2600. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2601. <span class="hljs-comment">// handle exception or api errors.</span>
  2602. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2603. }
  2604. <span class="hljs-comment">// ...</span>
  2605. </code></pre>
  2606. <p><code>POST /api/boards</code></p>
  2607. <p><em>Create a board</em></p>
  2608. <p>This allows to create a board.</p>
  2609. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2610. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2611. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2612. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2613. <blockquote>
  2614. <p>Body parameter</p>
  2615. </blockquote>
  2616. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2617. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2618. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2619. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2620. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2621. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2622. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2623. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2624. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2625. </code></pre>
  2626. <h3 id="new_board-parameters">Parameters</h3>
  2627. <table>
  2628. <thead>
  2629. <tr>
  2630. <th>Name</th>
  2631. <th>In</th>
  2632. <th>Type</th>
  2633. <th>Required</th>
  2634. <th>Description</th>
  2635. </tr>
  2636. </thead>
  2637. <tbody>
  2638. <tr>
  2639. <td>body</td>
  2640. <td>body</td>
  2641. <td>object</td>
  2642. <td>true</td>
  2643. <td>none</td>
  2644. </tr>
  2645. <tr>
  2646. <td>» title</td>
  2647. <td>body</td>
  2648. <td>string</td>
  2649. <td>true</td>
  2650. <td>the new title of the board</td>
  2651. </tr>
  2652. <tr>
  2653. <td>» owner</td>
  2654. <td>body</td>
  2655. <td>string</td>
  2656. <td>true</td>
  2657. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2658. </tr>
  2659. <tr>
  2660. <td>» isAdmin</td>
  2661. <td>body</td>
  2662. <td>boolean</td>
  2663. <td>false</td>
  2664. <td>is the owner an admin of the board (default true)</td>
  2665. </tr>
  2666. <tr>
  2667. <td>» isActive</td>
  2668. <td>body</td>
  2669. <td>boolean</td>
  2670. <td>false</td>
  2671. <td>is the board active (default true)</td>
  2672. </tr>
  2673. <tr>
  2674. <td>» isNoComments</td>
  2675. <td>body</td>
  2676. <td>boolean</td>
  2677. <td>false</td>
  2678. <td>disable comments (default false)</td>
  2679. </tr>
  2680. <tr>
  2681. <td>» isCommentOnly</td>
  2682. <td>body</td>
  2683. <td>boolean</td>
  2684. <td>false</td>
  2685. <td>only enable comments (default false)</td>
  2686. </tr>
  2687. <tr>
  2688. <td>» isWorker</td>
  2689. <td>body</td>
  2690. <td>boolean</td>
  2691. <td>false</td>
  2692. <td>only move cards, assign himself to card and comment (default false)</td>
  2693. </tr>
  2694. <tr>
  2695. <td>» permission</td>
  2696. <td>body</td>
  2697. <td>string</td>
  2698. <td>false</td>
  2699. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2700. </tr>
  2701. <tr>
  2702. <td>» color</td>
  2703. <td>body</td>
  2704. <td>string</td>
  2705. <td>false</td>
  2706. <td>the color of the board</td>
  2707. </tr>
  2708. </tbody>
  2709. </table>
  2710. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2711. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2712. (Not username or email)</p>
  2713. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2714. want public Wekan board</p>
  2715. <blockquote>
  2716. <p>Example responses</p>
  2717. </blockquote>
  2718. <blockquote>
  2719. <p>200 Response</p>
  2720. </blockquote>
  2721. <pre class="highlight tab tab-json"><code>{
  2722. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2723. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2724. }
  2725. </code></pre>
  2726. <h3 id="new_board-responses">Responses</h3>
  2727. <table>
  2728. <thead>
  2729. <tr>
  2730. <th>Status</th>
  2731. <th>Meaning</th>
  2732. <th>Description</th>
  2733. <th>Schema</th>
  2734. </tr>
  2735. </thead>
  2736. <tbody>
  2737. <tr>
  2738. <td>200</td>
  2739. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2740. <td>200 response</td>
  2741. <td>Inline</td>
  2742. </tr>
  2743. </tbody>
  2744. </table>
  2745. <h3 id="new_board-responseschema">Response Schema</h3>
  2746. <p>Status Code <strong>200</strong></p>
  2747. <table>
  2748. <thead>
  2749. <tr>
  2750. <th>Name</th>
  2751. <th>Type</th>
  2752. <th>Required</th>
  2753. <th>Restrictions</th>
  2754. <th>Description</th>
  2755. </tr>
  2756. </thead>
  2757. <tbody>
  2758. <tr>
  2759. <td>» _id</td>
  2760. <td>string</td>
  2761. <td>false</td>
  2762. <td>none</td>
  2763. <td>none</td>
  2764. </tr>
  2765. <tr>
  2766. <td>» defaultSwimlaneId</td>
  2767. <td>string</td>
  2768. <td>false</td>
  2769. <td>none</td>
  2770. <td>none</td>
  2771. </tr>
  2772. </tbody>
  2773. </table>
  2774. <aside class="warning">
  2775. To perform this operation, you must be authenticated by means of one of the following methods:
  2776. UserSecurity
  2777. </aside>
  2778. <h2 id="get_board">get_board</h2>
  2779. <p><a id="opIdget_board"></a></p>
  2780. <blockquote>
  2781. <p>Code samples</p>
  2782. </blockquote>
  2783. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2784. curl -X GET /api/boards/{board} \
  2785. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2786. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2787. </code></pre>
  2788. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}</span> <span class="hljs-meta">HTTP/1.1</span>
  2789. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2790. </span></code></pre>
  2791. <pre class="highlight tab tab-javascript"><code>
  2792. <span class="hljs-keyword">const</span> headers = {
  2793. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2794. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2795. };
  2796. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2797. {
  2798. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2799. <span class="hljs-attr">headers</span>: headers
  2800. })
  2801. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2802. <span class="hljs-keyword">return</span> res.json();
  2803. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2804. <span class="hljs-built_in">console</span>.log(body);
  2805. });
  2806. </code></pre>
  2807. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  2808. <span class="hljs-keyword">const</span> headers = {
  2809. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2810. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2811. };
  2812. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2813. {
  2814. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2815. <span class="hljs-attr">headers</span>: headers
  2816. })
  2817. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2818. <span class="hljs-keyword">return</span> res.json();
  2819. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2820. <span class="hljs-built_in">console</span>.log(body);
  2821. });
  2822. </code></pre>
  2823. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2824. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2825. headers = {
  2826. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2827. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2828. }
  2829. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2830. <span class="hljs-symbol">params:</span> {
  2831. }, <span class="hljs-symbol">headers:</span> headers
  2832. p JSON.parse(result)
  2833. </code></pre>
  2834. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2835. headers = {
  2836. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2837. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2838. }
  2839. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2840. <span class="hljs-built_in">print</span>(r.json())
  2841. </code></pre>
  2842. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}&quot;</span>);
  2843. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2844. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2845. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2846. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2847. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2848. String inputLine;
  2849. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2850. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2851. response.append(inputLine);
  2852. }
  2853. in.close();
  2854. System.out.println(response.toString());
  2855. </code></pre>
  2856. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2857. <span class="hljs-keyword">import</span> (
  2858. <span class="hljs-string">&quot;bytes&quot;</span>
  2859. <span class="hljs-string">&quot;net/http&quot;</span>
  2860. )
  2861. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2862. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2863. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2864. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2865. }
  2866. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2867. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2868. req.Header = headers
  2869. client := &amp;http.Client{}
  2870. resp, err := client.Do(req)
  2871. <span class="hljs-comment">// ...</span>
  2872. }
  2873. </code></pre>
  2874. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2875. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2876. );
  2877. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2878. <span class="hljs-comment">// Define array of request body.</span>
  2879. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2880. <span class="hljs-keyword">try</span> {
  2881. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, <span class="hljs-keyword">array</span>(
  2882. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2883. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2884. )
  2885. );
  2886. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2887. }
  2888. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2889. <span class="hljs-comment">// handle exception or api errors.</span>
  2890. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2891. }
  2892. <span class="hljs-comment">// ...</span>
  2893. </code></pre>
  2894. <p><code>GET /api/boards/{board}</code></p>
  2895. <p><em>Get the board with that particular ID</em></p>
  2896. <h3 id="get_board-parameters">Parameters</h3>
  2897. <table>
  2898. <thead>
  2899. <tr>
  2900. <th>Name</th>
  2901. <th>In</th>
  2902. <th>Type</th>
  2903. <th>Required</th>
  2904. <th>Description</th>
  2905. </tr>
  2906. </thead>
  2907. <tbody>
  2908. <tr>
  2909. <td>board</td>
  2910. <td>path</td>
  2911. <td>string</td>
  2912. <td>true</td>
  2913. <td>the ID of the board to retrieve the data</td>
  2914. </tr>
  2915. </tbody>
  2916. </table>
  2917. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2918. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2919. <blockquote>
  2920. <p>Example responses</p>
  2921. </blockquote>
  2922. <blockquote>
  2923. <p>200 Response</p>
  2924. </blockquote>
  2925. <pre class="highlight tab tab-json"><code>{
  2926. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2927. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2928. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2929. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2930. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2931. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2932. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2933. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2934. {
  2935. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2936. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2937. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2938. }
  2939. ],
  2940. <span class="hljs-attr">&quot;members&quot;</span>: [
  2941. {
  2942. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2943. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2944. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2945. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2946. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2947. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2948. }
  2949. ],
  2950. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2951. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  2952. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2953. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2954. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2955. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2956. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2957. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  2958. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  2959. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  2960. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  2961. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  2962. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  2963. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  2964. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  2965. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  2966. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  2967. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  2968. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  2969. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  2970. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  2971. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  2972. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  2973. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  2974. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  2975. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2976. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2977. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2978. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  2979. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  2980. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  2981. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  2982. }
  2983. </code></pre>
  2984. <h3 id="get_board-responses">Responses</h3>
  2985. <table>
  2986. <thead>
  2987. <tr>
  2988. <th>Status</th>
  2989. <th>Meaning</th>
  2990. <th>Description</th>
  2991. <th>Schema</th>
  2992. </tr>
  2993. </thead>
  2994. <tbody>
  2995. <tr>
  2996. <td>200</td>
  2997. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2998. <td>200 response</td>
  2999. <td><a href="#schemaboards">Boards</a></td>
  3000. </tr>
  3001. </tbody>
  3002. </table>
  3003. <aside class="warning">
  3004. To perform this operation, you must be authenticated by means of one of the following methods:
  3005. UserSecurity
  3006. </aside>
  3007. <h2 id="delete_board">delete_board</h2>
  3008. <p><a id="opIddelete_board"></a></p>
  3009. <blockquote>
  3010. <p>Code samples</p>
  3011. </blockquote>
  3012. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3013. curl -X DELETE /api/boards/{board} \
  3014. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3015. </code></pre>
  3016. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}</span> <span class="hljs-meta">HTTP/1.1</span>
  3017. </code></pre>
  3018. <pre class="highlight tab tab-javascript"><code>
  3019. <span class="hljs-keyword">const</span> headers = {
  3020. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3021. };
  3022. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3023. {
  3024. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3025. <span class="hljs-attr">headers</span>: headers
  3026. })
  3027. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3028. <span class="hljs-keyword">return</span> res.json();
  3029. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3030. <span class="hljs-built_in">console</span>.log(body);
  3031. });
  3032. </code></pre>
  3033. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3034. <span class="hljs-keyword">const</span> headers = {
  3035. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3036. };
  3037. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3038. {
  3039. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3040. <span class="hljs-attr">headers</span>: headers
  3041. })
  3042. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3043. <span class="hljs-keyword">return</span> res.json();
  3044. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3045. <span class="hljs-built_in">console</span>.log(body);
  3046. });
  3047. </code></pre>
  3048. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3049. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3050. headers = {
  3051. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3052. }
  3053. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3054. <span class="hljs-symbol">params:</span> {
  3055. }, <span class="hljs-symbol">headers:</span> headers
  3056. p JSON.parse(result)
  3057. </code></pre>
  3058. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3059. headers = {
  3060. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3061. }
  3062. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3063. <span class="hljs-built_in">print</span>(r.json())
  3064. </code></pre>
  3065. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}&quot;</span>);
  3066. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3067. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3068. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3069. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3070. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3071. String inputLine;
  3072. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3073. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3074. response.append(inputLine);
  3075. }
  3076. in.close();
  3077. System.out.println(response.toString());
  3078. </code></pre>
  3079. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3080. <span class="hljs-keyword">import</span> (
  3081. <span class="hljs-string">&quot;bytes&quot;</span>
  3082. <span class="hljs-string">&quot;net/http&quot;</span>
  3083. )
  3084. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3085. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3086. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3087. }
  3088. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3089. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3090. req.Header = headers
  3091. client := &amp;http.Client{}
  3092. resp, err := client.Do(req)
  3093. <span class="hljs-comment">// ...</span>
  3094. }
  3095. </code></pre>
  3096. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3097. );
  3098. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3099. <span class="hljs-comment">// Define array of request body.</span>
  3100. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3101. <span class="hljs-keyword">try</span> {
  3102. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, <span class="hljs-keyword">array</span>(
  3103. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3104. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3105. )
  3106. );
  3107. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3108. }
  3109. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3110. <span class="hljs-comment">// handle exception or api errors.</span>
  3111. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3112. }
  3113. <span class="hljs-comment">// ...</span>
  3114. </code></pre>
  3115. <p><code>DELETE /api/boards/{board}</code></p>
  3116. <p><em>Delete a board</em></p>
  3117. <h3 id="delete_board-parameters">Parameters</h3>
  3118. <table>
  3119. <thead>
  3120. <tr>
  3121. <th>Name</th>
  3122. <th>In</th>
  3123. <th>Type</th>
  3124. <th>Required</th>
  3125. <th>Description</th>
  3126. </tr>
  3127. </thead>
  3128. <tbody>
  3129. <tr>
  3130. <td>board</td>
  3131. <td>path</td>
  3132. <td>string</td>
  3133. <td>true</td>
  3134. <td>the ID of the board</td>
  3135. </tr>
  3136. </tbody>
  3137. </table>
  3138. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3139. <p><strong>board</strong>: the ID of the board</p>
  3140. <h3 id="delete_board-responses">Responses</h3>
  3141. <table>
  3142. <thead>
  3143. <tr>
  3144. <th>Status</th>
  3145. <th>Meaning</th>
  3146. <th>Description</th>
  3147. <th>Schema</th>
  3148. </tr>
  3149. </thead>
  3150. <tbody>
  3151. <tr>
  3152. <td>200</td>
  3153. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3154. <td>200 response</td>
  3155. <td>None</td>
  3156. </tr>
  3157. </tbody>
  3158. </table>
  3159. <aside class="warning">
  3160. To perform this operation, you must be authenticated by means of one of the following methods:
  3161. UserSecurity
  3162. </aside>
  3163. <h2 id="get_board_attachments">get_board_attachments</h2>
  3164. <p><a id="opIdget_board_attachments"></a></p>
  3165. <blockquote>
  3166. <p>Code samples</p>
  3167. </blockquote>
  3168. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3169. curl -X GET /api/boards/{board}/attachments \
  3170. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3171. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3172. </code></pre>
  3173. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/attachments</span> <span class="hljs-meta">HTTP/1.1</span>
  3174. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3175. </span></code></pre>
  3176. <pre class="highlight tab tab-javascript"><code>
  3177. <span class="hljs-keyword">const</span> headers = {
  3178. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3179. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3180. };
  3181. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3182. {
  3183. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3184. <span class="hljs-attr">headers</span>: headers
  3185. })
  3186. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3187. <span class="hljs-keyword">return</span> res.json();
  3188. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3189. <span class="hljs-built_in">console</span>.log(body);
  3190. });
  3191. </code></pre>
  3192. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3193. <span class="hljs-keyword">const</span> headers = {
  3194. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3195. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3196. };
  3197. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3198. {
  3199. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3200. <span class="hljs-attr">headers</span>: headers
  3201. })
  3202. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3203. <span class="hljs-keyword">return</span> res.json();
  3204. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3205. <span class="hljs-built_in">console</span>.log(body);
  3206. });
  3207. </code></pre>
  3208. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3209. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3210. headers = {
  3211. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3212. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3213. }
  3214. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3215. <span class="hljs-symbol">params:</span> {
  3216. }, <span class="hljs-symbol">headers:</span> headers
  3217. p JSON.parse(result)
  3218. </code></pre>
  3219. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3220. headers = {
  3221. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3222. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3223. }
  3224. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3225. <span class="hljs-built_in">print</span>(r.json())
  3226. </code></pre>
  3227. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>);
  3228. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3229. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3230. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3231. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3232. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3233. String inputLine;
  3234. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3235. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3236. response.append(inputLine);
  3237. }
  3238. in.close();
  3239. System.out.println(response.toString());
  3240. </code></pre>
  3241. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3242. <span class="hljs-keyword">import</span> (
  3243. <span class="hljs-string">&quot;bytes&quot;</span>
  3244. <span class="hljs-string">&quot;net/http&quot;</span>
  3245. )
  3246. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3247. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3248. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3249. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3250. }
  3251. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3252. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3253. req.Header = headers
  3254. client := &amp;http.Client{}
  3255. resp, err := client.Do(req)
  3256. <span class="hljs-comment">// ...</span>
  3257. }
  3258. </code></pre>
  3259. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3260. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3261. );
  3262. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3263. <span class="hljs-comment">// Define array of request body.</span>
  3264. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3265. <span class="hljs-keyword">try</span> {
  3266. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, <span class="hljs-keyword">array</span>(
  3267. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3268. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3269. )
  3270. );
  3271. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3272. }
  3273. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3274. <span class="hljs-comment">// handle exception or api errors.</span>
  3275. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3276. }
  3277. <span class="hljs-comment">// ...</span>
  3278. </code></pre>
  3279. <p><code>GET /api/boards/{board}/attachments</code></p>
  3280. <p><em>Get the list of attachments of a board</em></p>
  3281. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3282. <table>
  3283. <thead>
  3284. <tr>
  3285. <th>Name</th>
  3286. <th>In</th>
  3287. <th>Type</th>
  3288. <th>Required</th>
  3289. <th>Description</th>
  3290. </tr>
  3291. </thead>
  3292. <tbody>
  3293. <tr>
  3294. <td>board</td>
  3295. <td>path</td>
  3296. <td>string</td>
  3297. <td>true</td>
  3298. <td>the board ID</td>
  3299. </tr>
  3300. </tbody>
  3301. </table>
  3302. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3303. <p><strong>board</strong>: the board ID</p>
  3304. <blockquote>
  3305. <p>Example responses</p>
  3306. </blockquote>
  3307. <blockquote>
  3308. <p>200 Response</p>
  3309. </blockquote>
  3310. <pre class="highlight tab tab-json"><code>[
  3311. {
  3312. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3313. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3314. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3315. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3316. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3317. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3318. }
  3319. ]
  3320. </code></pre>
  3321. <h3 id="get_board_attachments-responses">Responses</h3>
  3322. <table>
  3323. <thead>
  3324. <tr>
  3325. <th>Status</th>
  3326. <th>Meaning</th>
  3327. <th>Description</th>
  3328. <th>Schema</th>
  3329. </tr>
  3330. </thead>
  3331. <tbody>
  3332. <tr>
  3333. <td>200</td>
  3334. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3335. <td>200 response</td>
  3336. <td>Inline</td>
  3337. </tr>
  3338. </tbody>
  3339. </table>
  3340. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3341. <p>Status Code <strong>200</strong></p>
  3342. <table>
  3343. <thead>
  3344. <tr>
  3345. <th>Name</th>
  3346. <th>Type</th>
  3347. <th>Required</th>
  3348. <th>Restrictions</th>
  3349. <th>Description</th>
  3350. </tr>
  3351. </thead>
  3352. <tbody>
  3353. <tr>
  3354. <td>» attachmentId</td>
  3355. <td>string</td>
  3356. <td>false</td>
  3357. <td>none</td>
  3358. <td>none</td>
  3359. </tr>
  3360. <tr>
  3361. <td>» attachmentName</td>
  3362. <td>string</td>
  3363. <td>false</td>
  3364. <td>none</td>
  3365. <td>none</td>
  3366. </tr>
  3367. <tr>
  3368. <td>» attachmentType</td>
  3369. <td>string</td>
  3370. <td>false</td>
  3371. <td>none</td>
  3372. <td>none</td>
  3373. </tr>
  3374. <tr>
  3375. <td>» cardId</td>
  3376. <td>string</td>
  3377. <td>false</td>
  3378. <td>none</td>
  3379. <td>none</td>
  3380. </tr>
  3381. <tr>
  3382. <td>» listId</td>
  3383. <td>string</td>
  3384. <td>false</td>
  3385. <td>none</td>
  3386. <td>none</td>
  3387. </tr>
  3388. <tr>
  3389. <td>» swimlaneId</td>
  3390. <td>string</td>
  3391. <td>false</td>
  3392. <td>none</td>
  3393. <td>none</td>
  3394. </tr>
  3395. </tbody>
  3396. </table>
  3397. <aside class="warning">
  3398. To perform this operation, you must be authenticated by means of one of the following methods:
  3399. UserSecurity
  3400. </aside>
  3401. <h2 id="exportjson">exportJson</h2>
  3402. <p><a id="opIdexportJson"></a></p>
  3403. <blockquote>
  3404. <p>Code samples</p>
  3405. </blockquote>
  3406. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3407. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3408. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3409. </code></pre>
  3410. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/export</span> <span class="hljs-meta">HTTP/1.1</span>
  3411. </code></pre>
  3412. <pre class="highlight tab tab-javascript"><code>
  3413. <span class="hljs-keyword">const</span> headers = {
  3414. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3415. };
  3416. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3417. {
  3418. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3419. <span class="hljs-attr">headers</span>: headers
  3420. })
  3421. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3422. <span class="hljs-keyword">return</span> res.json();
  3423. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3424. <span class="hljs-built_in">console</span>.log(body);
  3425. });
  3426. </code></pre>
  3427. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3428. <span class="hljs-keyword">const</span> headers = {
  3429. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3430. };
  3431. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3432. {
  3433. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3434. <span class="hljs-attr">headers</span>: headers
  3435. })
  3436. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3437. <span class="hljs-keyword">return</span> res.json();
  3438. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3439. <span class="hljs-built_in">console</span>.log(body);
  3440. });
  3441. </code></pre>
  3442. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3443. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3444. headers = {
  3445. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3446. }
  3447. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3448. <span class="hljs-symbol">params:</span> {
  3449. }, <span class="hljs-symbol">headers:</span> headers
  3450. p JSON.parse(result)
  3451. </code></pre>
  3452. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3453. headers = {
  3454. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3455. }
  3456. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3457. <span class="hljs-built_in">print</span>(r.json())
  3458. </code></pre>
  3459. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>);
  3460. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3461. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3462. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3463. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3464. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3465. String inputLine;
  3466. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3467. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3468. response.append(inputLine);
  3469. }
  3470. in.close();
  3471. System.out.println(response.toString());
  3472. </code></pre>
  3473. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3474. <span class="hljs-keyword">import</span> (
  3475. <span class="hljs-string">&quot;bytes&quot;</span>
  3476. <span class="hljs-string">&quot;net/http&quot;</span>
  3477. )
  3478. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3479. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3480. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3481. }
  3482. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3483. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3484. req.Header = headers
  3485. client := &amp;http.Client{}
  3486. resp, err := client.Do(req)
  3487. <span class="hljs-comment">// ...</span>
  3488. }
  3489. </code></pre>
  3490. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3491. );
  3492. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3493. <span class="hljs-comment">// Define array of request body.</span>
  3494. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3495. <span class="hljs-keyword">try</span> {
  3496. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, <span class="hljs-keyword">array</span>(
  3497. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3498. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3499. )
  3500. );
  3501. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3502. }
  3503. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3504. <span class="hljs-comment">// handle exception or api errors.</span>
  3505. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3506. }
  3507. <span class="hljs-comment">// ...</span>
  3508. </code></pre>
  3509. <p><code>GET /api/boards/{board}/export</code></p>
  3510. <p><em>This route is used to export the board to a json file format.</em></p>
  3511. <p>If user is already logged-in, pass loginToken as param
  3512. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3513. <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>
  3514. for detailed explanations</p>
  3515. <h3 id="exportjson-parameters">Parameters</h3>
  3516. <table>
  3517. <thead>
  3518. <tr>
  3519. <th>Name</th>
  3520. <th>In</th>
  3521. <th>Type</th>
  3522. <th>Required</th>
  3523. <th>Description</th>
  3524. </tr>
  3525. </thead>
  3526. <tbody>
  3527. <tr>
  3528. <td>board</td>
  3529. <td>path</td>
  3530. <td>string</td>
  3531. <td>true</td>
  3532. <td>the ID of the board we are exporting</td>
  3533. </tr>
  3534. </tbody>
  3535. </table>
  3536. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3537. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3538. <h3 id="exportjson-responses">Responses</h3>
  3539. <table>
  3540. <thead>
  3541. <tr>
  3542. <th>Status</th>
  3543. <th>Meaning</th>
  3544. <th>Description</th>
  3545. <th>Schema</th>
  3546. </tr>
  3547. </thead>
  3548. <tbody>
  3549. <tr>
  3550. <td>200</td>
  3551. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3552. <td>200 response</td>
  3553. <td>None</td>
  3554. </tr>
  3555. </tbody>
  3556. </table>
  3557. <aside class="warning">
  3558. To perform this operation, you must be authenticated by means of one of the following methods:
  3559. UserSecurity
  3560. </aside>
  3561. <h2 id="add_board_label">add_board_label</h2>
  3562. <p><a id="opIdadd_board_label"></a></p>
  3563. <blockquote>
  3564. <p>Code samples</p>
  3565. </blockquote>
  3566. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3567. curl -X PUT /api/boards/{board}/labels \
  3568. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3569. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3570. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3571. </code></pre>
  3572. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/labels</span> <span class="hljs-meta">HTTP/1.1</span>
  3573. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3574. Accept: application/json
  3575. </span></code></pre>
  3576. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3577. &quot;label&quot;: &quot;string&quot;
  3578. }&#x27;</span>;
  3579. <span class="hljs-keyword">const</span> headers = {
  3580. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3581. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3582. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3583. };
  3584. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3585. {
  3586. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3587. <span class="hljs-attr">body</span>: inputBody,
  3588. <span class="hljs-attr">headers</span>: headers
  3589. })
  3590. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3591. <span class="hljs-keyword">return</span> res.json();
  3592. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3593. <span class="hljs-built_in">console</span>.log(body);
  3594. });
  3595. </code></pre>
  3596. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3597. <span class="hljs-keyword">const</span> inputBody = {
  3598. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3599. };
  3600. <span class="hljs-keyword">const</span> headers = {
  3601. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3602. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3603. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3604. };
  3605. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3606. {
  3607. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3608. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3609. <span class="hljs-attr">headers</span>: headers
  3610. })
  3611. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3612. <span class="hljs-keyword">return</span> res.json();
  3613. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3614. <span class="hljs-built_in">console</span>.log(body);
  3615. });
  3616. </code></pre>
  3617. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3618. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3619. headers = {
  3620. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3621. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3622. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3623. }
  3624. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3625. <span class="hljs-symbol">params:</span> {
  3626. }, <span class="hljs-symbol">headers:</span> headers
  3627. p JSON.parse(result)
  3628. </code></pre>
  3629. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3630. headers = {
  3631. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3632. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3633. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3634. }
  3635. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3636. <span class="hljs-built_in">print</span>(r.json())
  3637. </code></pre>
  3638. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>);
  3639. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3640. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3641. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3642. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3643. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3644. String inputLine;
  3645. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3646. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3647. response.append(inputLine);
  3648. }
  3649. in.close();
  3650. System.out.println(response.toString());
  3651. </code></pre>
  3652. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3653. <span class="hljs-keyword">import</span> (
  3654. <span class="hljs-string">&quot;bytes&quot;</span>
  3655. <span class="hljs-string">&quot;net/http&quot;</span>
  3656. )
  3657. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3658. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3659. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  3660. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3661. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3662. }
  3663. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3664. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3665. req.Header = headers
  3666. client := &amp;http.Client{}
  3667. resp, err := client.Do(req)
  3668. <span class="hljs-comment">// ...</span>
  3669. }
  3670. </code></pre>
  3671. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3672. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3673. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3674. );
  3675. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3676. <span class="hljs-comment">// Define array of request body.</span>
  3677. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3678. <span class="hljs-keyword">try</span> {
  3679. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, <span class="hljs-keyword">array</span>(
  3680. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3681. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3682. )
  3683. );
  3684. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3685. }
  3686. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3687. <span class="hljs-comment">// handle exception or api errors.</span>
  3688. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3689. }
  3690. <span class="hljs-comment">// ...</span>
  3691. </code></pre>
  3692. <p><code>PUT /api/boards/{board}/labels</code></p>
  3693. <p><em>Add a label to a board</em></p>
  3694. <p>If the board doesn't have the name/color label, this function
  3695. adds the label to the board.</p>
  3696. <blockquote>
  3697. <p>Body parameter</p>
  3698. </blockquote>
  3699. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3700. </code></pre>
  3701. <h3 id="add_board_label-parameters">Parameters</h3>
  3702. <table>
  3703. <thead>
  3704. <tr>
  3705. <th>Name</th>
  3706. <th>In</th>
  3707. <th>Type</th>
  3708. <th>Required</th>
  3709. <th>Description</th>
  3710. </tr>
  3711. </thead>
  3712. <tbody>
  3713. <tr>
  3714. <td>board</td>
  3715. <td>path</td>
  3716. <td>string</td>
  3717. <td>true</td>
  3718. <td>the board</td>
  3719. </tr>
  3720. <tr>
  3721. <td>body</td>
  3722. <td>body</td>
  3723. <td>object</td>
  3724. <td>true</td>
  3725. <td>none</td>
  3726. </tr>
  3727. <tr>
  3728. <td>» label</td>
  3729. <td>body</td>
  3730. <td>string</td>
  3731. <td>true</td>
  3732. <td>the label value</td>
  3733. </tr>
  3734. </tbody>
  3735. </table>
  3736. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3737. <p><strong>board</strong>: the board</p>
  3738. <blockquote>
  3739. <p>Example responses</p>
  3740. </blockquote>
  3741. <blockquote>
  3742. <p>200 Response</p>
  3743. </blockquote>
  3744. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3745. </code></pre>
  3746. <h3 id="add_board_label-responses">Responses</h3>
  3747. <table>
  3748. <thead>
  3749. <tr>
  3750. <th>Status</th>
  3751. <th>Meaning</th>
  3752. <th>Description</th>
  3753. <th>Schema</th>
  3754. </tr>
  3755. </thead>
  3756. <tbody>
  3757. <tr>
  3758. <td>200</td>
  3759. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3760. <td>200 response</td>
  3761. <td>string</td>
  3762. </tr>
  3763. </tbody>
  3764. </table>
  3765. <aside class="warning">
  3766. To perform this operation, you must be authenticated by means of one of the following methods:
  3767. UserSecurity
  3768. </aside>
  3769. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3770. <p><a id="opIdset_board_member_permission"></a></p>
  3771. <blockquote>
  3772. <p>Code samples</p>
  3773. </blockquote>
  3774. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3775. curl -X POST /api/boards/{board}/members/{member} \
  3776. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3777. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3778. </code></pre>
  3779. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{member}</span> <span class="hljs-meta">HTTP/1.1</span>
  3780. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3781. </span></code></pre>
  3782. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3783. &quot;isAdmin&quot;: true,
  3784. &quot;isNoComments&quot;: true,
  3785. &quot;isCommentOnly&quot;: true,
  3786. &quot;isWorker&quot;: true
  3787. }&#x27;</span>;
  3788. <span class="hljs-keyword">const</span> headers = {
  3789. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3790. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3791. };
  3792. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3793. {
  3794. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</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-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  3805. <span class="hljs-keyword">const</span> inputBody = {
  3806. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3807. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3808. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3809. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3810. };
  3811. <span class="hljs-keyword">const</span> headers = {
  3812. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3813. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3814. };
  3815. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3816. {
  3817. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3818. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3819. <span class="hljs-attr">headers</span>: headers
  3820. })
  3821. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3822. <span class="hljs-keyword">return</span> res.json();
  3823. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3824. <span class="hljs-built_in">console</span>.log(body);
  3825. });
  3826. </code></pre>
  3827. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3828. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3829. headers = {
  3830. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3831. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3832. }
  3833. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3834. <span class="hljs-symbol">params:</span> {
  3835. }, <span class="hljs-symbol">headers:</span> headers
  3836. p JSON.parse(result)
  3837. </code></pre>
  3838. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3839. headers = {
  3840. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3841. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3842. }
  3843. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3844. <span class="hljs-built_in">print</span>(r.json())
  3845. </code></pre>
  3846. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/members/{member}&quot;</span>);
  3847. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3848. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3849. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3850. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3851. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3852. String inputLine;
  3853. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3854. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3855. response.append(inputLine);
  3856. }
  3857. in.close();
  3858. System.out.println(response.toString());
  3859. </code></pre>
  3860. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3861. <span class="hljs-keyword">import</span> (
  3862. <span class="hljs-string">&quot;bytes&quot;</span>
  3863. <span class="hljs-string">&quot;net/http&quot;</span>
  3864. )
  3865. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3866. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3867. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  3868. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3869. }
  3870. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3871. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/members/{member}&quot;</span>, data)
  3872. req.Header = headers
  3873. client := &amp;http.Client{}
  3874. resp, err := client.Do(req)
  3875. <span class="hljs-comment">// ...</span>
  3876. }
  3877. </code></pre>
  3878. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3879. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3880. );
  3881. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3882. <span class="hljs-comment">// Define array of request body.</span>
  3883. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3884. <span class="hljs-keyword">try</span> {
  3885. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, <span class="hljs-keyword">array</span>(
  3886. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3887. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3888. )
  3889. );
  3890. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3891. }
  3892. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3893. <span class="hljs-comment">// handle exception or api errors.</span>
  3894. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3895. }
  3896. <span class="hljs-comment">// ...</span>
  3897. </code></pre>
  3898. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3899. <p><em>Change the permission of a member of a board</em></p>
  3900. <blockquote>
  3901. <p>Body parameter</p>
  3902. </blockquote>
  3903. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3904. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3905. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3906. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3907. </code></pre>
  3908. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3909. <table>
  3910. <thead>
  3911. <tr>
  3912. <th>Name</th>
  3913. <th>In</th>
  3914. <th>Type</th>
  3915. <th>Required</th>
  3916. <th>Description</th>
  3917. </tr>
  3918. </thead>
  3919. <tbody>
  3920. <tr>
  3921. <td>board</td>
  3922. <td>path</td>
  3923. <td>string</td>
  3924. <td>true</td>
  3925. <td>the ID of the board that we are changing</td>
  3926. </tr>
  3927. <tr>
  3928. <td>member</td>
  3929. <td>path</td>
  3930. <td>string</td>
  3931. <td>true</td>
  3932. <td>the ID of the user to change permissions</td>
  3933. </tr>
  3934. <tr>
  3935. <td>body</td>
  3936. <td>body</td>
  3937. <td>object</td>
  3938. <td>true</td>
  3939. <td>none</td>
  3940. </tr>
  3941. <tr>
  3942. <td>» isAdmin</td>
  3943. <td>body</td>
  3944. <td>boolean</td>
  3945. <td>true</td>
  3946. <td>admin capability</td>
  3947. </tr>
  3948. <tr>
  3949. <td>» isNoComments</td>
  3950. <td>body</td>
  3951. <td>boolean</td>
  3952. <td>true</td>
  3953. <td>NoComments capability</td>
  3954. </tr>
  3955. <tr>
  3956. <td>» isCommentOnly</td>
  3957. <td>body</td>
  3958. <td>boolean</td>
  3959. <td>true</td>
  3960. <td>CommentsOnly capability</td>
  3961. </tr>
  3962. <tr>
  3963. <td>» isWorker</td>
  3964. <td>body</td>
  3965. <td>boolean</td>
  3966. <td>true</td>
  3967. <td>Worker capability</td>
  3968. </tr>
  3969. </tbody>
  3970. </table>
  3971. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  3972. <p><strong>board</strong>: the ID of the board that we are changing</p>
  3973. <p><strong>member</strong>: the ID of the user to change permissions</p>
  3974. <h3 id="set_board_member_permission-responses">Responses</h3>
  3975. <table>
  3976. <thead>
  3977. <tr>
  3978. <th>Status</th>
  3979. <th>Meaning</th>
  3980. <th>Description</th>
  3981. <th>Schema</th>
  3982. </tr>
  3983. </thead>
  3984. <tbody>
  3985. <tr>
  3986. <td>200</td>
  3987. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3988. <td>200 response</td>
  3989. <td>None</td>
  3990. </tr>
  3991. </tbody>
  3992. </table>
  3993. <aside class="warning">
  3994. To perform this operation, you must be authenticated by means of one of the following methods:
  3995. UserSecurity
  3996. </aside>
  3997. <h2 id="get_boards_count">get_boards_count</h2>
  3998. <p><a id="opIdget_boards_count"></a></p>
  3999. <blockquote>
  4000. <p>Code samples</p>
  4001. </blockquote>
  4002. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4003. curl -X GET /api/boards_count \
  4004. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4005. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4006. </code></pre>
  4007. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards_count</span> <span class="hljs-meta">HTTP/1.1</span>
  4008. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4009. </span></code></pre>
  4010. <pre class="highlight tab tab-javascript"><code>
  4011. <span class="hljs-keyword">const</span> headers = {
  4012. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4013. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4014. };
  4015. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4016. {
  4017. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4018. <span class="hljs-attr">headers</span>: headers
  4019. })
  4020. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4021. <span class="hljs-keyword">return</span> res.json();
  4022. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4023. <span class="hljs-built_in">console</span>.log(body);
  4024. });
  4025. </code></pre>
  4026. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4027. <span class="hljs-keyword">const</span> headers = {
  4028. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4029. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4030. };
  4031. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4032. {
  4033. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4034. <span class="hljs-attr">headers</span>: headers
  4035. })
  4036. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4037. <span class="hljs-keyword">return</span> res.json();
  4038. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4039. <span class="hljs-built_in">console</span>.log(body);
  4040. });
  4041. </code></pre>
  4042. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4043. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4044. headers = {
  4045. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4046. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4047. }
  4048. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4049. <span class="hljs-symbol">params:</span> {
  4050. }, <span class="hljs-symbol">headers:</span> headers
  4051. p JSON.parse(result)
  4052. </code></pre>
  4053. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4054. headers = {
  4055. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4056. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4057. }
  4058. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4059. <span class="hljs-built_in">print</span>(r.json())
  4060. </code></pre>
  4061. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards_count&quot;</span>);
  4062. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4063. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4064. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4065. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4066. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4067. String inputLine;
  4068. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4069. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4070. response.append(inputLine);
  4071. }
  4072. in.close();
  4073. System.out.println(response.toString());
  4074. </code></pre>
  4075. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4076. <span class="hljs-keyword">import</span> (
  4077. <span class="hljs-string">&quot;bytes&quot;</span>
  4078. <span class="hljs-string">&quot;net/http&quot;</span>
  4079. )
  4080. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4081. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4082. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4083. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4084. }
  4085. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4086. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4087. req.Header = headers
  4088. client := &amp;http.Client{}
  4089. resp, err := client.Do(req)
  4090. <span class="hljs-comment">// ...</span>
  4091. }
  4092. </code></pre>
  4093. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4094. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4095. );
  4096. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4097. <span class="hljs-comment">// Define array of request body.</span>
  4098. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4099. <span class="hljs-keyword">try</span> {
  4100. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, <span class="hljs-keyword">array</span>(
  4101. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4102. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4103. )
  4104. );
  4105. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4106. }
  4107. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4108. <span class="hljs-comment">// handle exception or api errors.</span>
  4109. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4110. }
  4111. <span class="hljs-comment">// ...</span>
  4112. </code></pre>
  4113. <p><code>GET /api/boards_count</code></p>
  4114. <p><em>Get public and private boards count</em></p>
  4115. <blockquote>
  4116. <p>Example responses</p>
  4117. </blockquote>
  4118. <blockquote>
  4119. <p>200 Response</p>
  4120. </blockquote>
  4121. <pre class="highlight tab tab-json"><code>{
  4122. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4123. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4124. }
  4125. </code></pre>
  4126. <h3 id="get_boards_count-responses">Responses</h3>
  4127. <table>
  4128. <thead>
  4129. <tr>
  4130. <th>Status</th>
  4131. <th>Meaning</th>
  4132. <th>Description</th>
  4133. <th>Schema</th>
  4134. </tr>
  4135. </thead>
  4136. <tbody>
  4137. <tr>
  4138. <td>200</td>
  4139. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4140. <td>200 response</td>
  4141. <td>Inline</td>
  4142. </tr>
  4143. </tbody>
  4144. </table>
  4145. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4146. <p>Status Code <strong>200</strong></p>
  4147. <table>
  4148. <thead>
  4149. <tr>
  4150. <th>Name</th>
  4151. <th>Type</th>
  4152. <th>Required</th>
  4153. <th>Restrictions</th>
  4154. <th>Description</th>
  4155. </tr>
  4156. </thead>
  4157. <tbody>
  4158. <tr>
  4159. <td>» private</td>
  4160. <td>integer</td>
  4161. <td>false</td>
  4162. <td>none</td>
  4163. <td>none</td>
  4164. </tr>
  4165. <tr>
  4166. <td>» public</td>
  4167. <td>integer</td>
  4168. <td>false</td>
  4169. <td>none</td>
  4170. <td>none</td>
  4171. </tr>
  4172. </tbody>
  4173. </table>
  4174. <aside class="warning">
  4175. To perform this operation, you must be authenticated by means of one of the following methods:
  4176. UserSecurity
  4177. </aside>
  4178. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4179. <p><a id="opIdget_boards_from_user"></a></p>
  4180. <blockquote>
  4181. <p>Code samples</p>
  4182. </blockquote>
  4183. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4184. curl -X GET /api/users/{user}/boards \
  4185. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4186. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4187. </code></pre>
  4188. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users/{user}/boards</span> <span class="hljs-meta">HTTP/1.1</span>
  4189. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4190. </span></code></pre>
  4191. <pre class="highlight tab tab-javascript"><code>
  4192. <span class="hljs-keyword">const</span> headers = {
  4193. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4194. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4195. };
  4196. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4197. {
  4198. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4199. <span class="hljs-attr">headers</span>: headers
  4200. })
  4201. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4202. <span class="hljs-keyword">return</span> res.json();
  4203. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4204. <span class="hljs-built_in">console</span>.log(body);
  4205. });
  4206. </code></pre>
  4207. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4208. <span class="hljs-keyword">const</span> headers = {
  4209. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4210. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4211. };
  4212. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4213. {
  4214. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4215. <span class="hljs-attr">headers</span>: headers
  4216. })
  4217. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4218. <span class="hljs-keyword">return</span> res.json();
  4219. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4220. <span class="hljs-built_in">console</span>.log(body);
  4221. });
  4222. </code></pre>
  4223. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4224. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4225. headers = {
  4226. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4227. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4228. }
  4229. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4230. <span class="hljs-symbol">params:</span> {
  4231. }, <span class="hljs-symbol">headers:</span> headers
  4232. p JSON.parse(result)
  4233. </code></pre>
  4234. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4235. headers = {
  4236. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4237. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4238. }
  4239. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4240. <span class="hljs-built_in">print</span>(r.json())
  4241. </code></pre>
  4242. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>);
  4243. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4244. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4245. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4246. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4247. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4248. String inputLine;
  4249. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4250. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4251. response.append(inputLine);
  4252. }
  4253. in.close();
  4254. System.out.println(response.toString());
  4255. </code></pre>
  4256. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4257. <span class="hljs-keyword">import</span> (
  4258. <span class="hljs-string">&quot;bytes&quot;</span>
  4259. <span class="hljs-string">&quot;net/http&quot;</span>
  4260. )
  4261. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4262. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4263. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4264. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4265. }
  4266. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4267. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4268. req.Header = headers
  4269. client := &amp;http.Client{}
  4270. resp, err := client.Do(req)
  4271. <span class="hljs-comment">// ...</span>
  4272. }
  4273. </code></pre>
  4274. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4275. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4276. );
  4277. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4278. <span class="hljs-comment">// Define array of request body.</span>
  4279. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4280. <span class="hljs-keyword">try</span> {
  4281. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, <span class="hljs-keyword">array</span>(
  4282. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4283. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4284. )
  4285. );
  4286. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4287. }
  4288. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4289. <span class="hljs-comment">// handle exception or api errors.</span>
  4290. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4291. }
  4292. <span class="hljs-comment">// ...</span>
  4293. </code></pre>
  4294. <p><code>GET /api/users/{user}/boards</code></p>
  4295. <p><em>Get all boards attached to a user</em></p>
  4296. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4297. <table>
  4298. <thead>
  4299. <tr>
  4300. <th>Name</th>
  4301. <th>In</th>
  4302. <th>Type</th>
  4303. <th>Required</th>
  4304. <th>Description</th>
  4305. </tr>
  4306. </thead>
  4307. <tbody>
  4308. <tr>
  4309. <td>user</td>
  4310. <td>path</td>
  4311. <td>string</td>
  4312. <td>true</td>
  4313. <td>the ID of the user to retrieve the data</td>
  4314. </tr>
  4315. </tbody>
  4316. </table>
  4317. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4318. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4319. <blockquote>
  4320. <p>Example responses</p>
  4321. </blockquote>
  4322. <blockquote>
  4323. <p>200 Response</p>
  4324. </blockquote>
  4325. <pre class="highlight tab tab-json"><code>[
  4326. {
  4327. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4328. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4329. }
  4330. ]
  4331. </code></pre>
  4332. <h3 id="get_boards_from_user-responses">Responses</h3>
  4333. <table>
  4334. <thead>
  4335. <tr>
  4336. <th>Status</th>
  4337. <th>Meaning</th>
  4338. <th>Description</th>
  4339. <th>Schema</th>
  4340. </tr>
  4341. </thead>
  4342. <tbody>
  4343. <tr>
  4344. <td>200</td>
  4345. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4346. <td>200 response</td>
  4347. <td>Inline</td>
  4348. </tr>
  4349. </tbody>
  4350. </table>
  4351. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4352. <p>Status Code <strong>200</strong></p>
  4353. <table>
  4354. <thead>
  4355. <tr>
  4356. <th>Name</th>
  4357. <th>Type</th>
  4358. <th>Required</th>
  4359. <th>Restrictions</th>
  4360. <th>Description</th>
  4361. </tr>
  4362. </thead>
  4363. <tbody>
  4364. <tr>
  4365. <td>» _id</td>
  4366. <td>string</td>
  4367. <td>false</td>
  4368. <td>none</td>
  4369. <td>none</td>
  4370. </tr>
  4371. <tr>
  4372. <td>» title</td>
  4373. <td>string</td>
  4374. <td>false</td>
  4375. <td>none</td>
  4376. <td>none</td>
  4377. </tr>
  4378. </tbody>
  4379. </table>
  4380. <aside class="warning">
  4381. To perform this operation, you must be authenticated by means of one of the following methods:
  4382. UserSecurity
  4383. </aside>
  4384. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4385. <h2 id="get_all_checklists">get_all_checklists</h2>
  4386. <p><a id="opIdget_all_checklists"></a></p>
  4387. <blockquote>
  4388. <p>Code samples</p>
  4389. </blockquote>
  4390. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4391. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4392. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4393. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4394. </code></pre>
  4395. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> <span class="hljs-meta">HTTP/1.1</span>
  4396. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4397. </span></code></pre>
  4398. <pre class="highlight tab tab-javascript"><code>
  4399. <span class="hljs-keyword">const</span> headers = {
  4400. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4401. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4402. };
  4403. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4404. {
  4405. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4406. <span class="hljs-attr">headers</span>: headers
  4407. })
  4408. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4409. <span class="hljs-keyword">return</span> res.json();
  4410. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4411. <span class="hljs-built_in">console</span>.log(body);
  4412. });
  4413. </code></pre>
  4414. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4415. <span class="hljs-keyword">const</span> headers = {
  4416. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4417. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4418. };
  4419. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4420. {
  4421. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4422. <span class="hljs-attr">headers</span>: headers
  4423. })
  4424. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4425. <span class="hljs-keyword">return</span> res.json();
  4426. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4427. <span class="hljs-built_in">console</span>.log(body);
  4428. });
  4429. </code></pre>
  4430. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4431. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4432. headers = {
  4433. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4434. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4435. }
  4436. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4437. <span class="hljs-symbol">params:</span> {
  4438. }, <span class="hljs-symbol">headers:</span> headers
  4439. p JSON.parse(result)
  4440. </code></pre>
  4441. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4442. headers = {
  4443. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4444. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4445. }
  4446. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4447. <span class="hljs-built_in">print</span>(r.json())
  4448. </code></pre>
  4449. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists&quot;</span>);
  4450. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4451. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4452. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4453. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4454. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4455. String inputLine;
  4456. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4457. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4458. response.append(inputLine);
  4459. }
  4460. in.close();
  4461. System.out.println(response.toString());
  4462. </code></pre>
  4463. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4464. <span class="hljs-keyword">import</span> (
  4465. <span class="hljs-string">&quot;bytes&quot;</span>
  4466. <span class="hljs-string">&quot;net/http&quot;</span>
  4467. )
  4468. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4469. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4470. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4471. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4472. }
  4473. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4474. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists&quot;</span>, data)
  4475. req.Header = headers
  4476. client := &amp;http.Client{}
  4477. resp, err := client.Do(req)
  4478. <span class="hljs-comment">// ...</span>
  4479. }
  4480. </code></pre>
  4481. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4482. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4483. );
  4484. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4485. <span class="hljs-comment">// Define array of request body.</span>
  4486. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4487. <span class="hljs-keyword">try</span> {
  4488. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, <span class="hljs-keyword">array</span>(
  4489. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4490. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4491. )
  4492. );
  4493. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4494. }
  4495. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4496. <span class="hljs-comment">// handle exception or api errors.</span>
  4497. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4498. }
  4499. <span class="hljs-comment">// ...</span>
  4500. </code></pre>
  4501. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4502. <p><em>Get the list of checklists attached to a card</em></p>
  4503. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4504. <table>
  4505. <thead>
  4506. <tr>
  4507. <th>Name</th>
  4508. <th>In</th>
  4509. <th>Type</th>
  4510. <th>Required</th>
  4511. <th>Description</th>
  4512. </tr>
  4513. </thead>
  4514. <tbody>
  4515. <tr>
  4516. <td>board</td>
  4517. <td>path</td>
  4518. <td>string</td>
  4519. <td>true</td>
  4520. <td>the board ID</td>
  4521. </tr>
  4522. <tr>
  4523. <td>card</td>
  4524. <td>path</td>
  4525. <td>string</td>
  4526. <td>true</td>
  4527. <td>the card ID</td>
  4528. </tr>
  4529. </tbody>
  4530. </table>
  4531. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4532. <p><strong>board</strong>: the board ID</p>
  4533. <p><strong>card</strong>: the card ID</p>
  4534. <blockquote>
  4535. <p>Example responses</p>
  4536. </blockquote>
  4537. <blockquote>
  4538. <p>200 Response</p>
  4539. </blockquote>
  4540. <pre class="highlight tab tab-json"><code>[
  4541. {
  4542. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4543. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4544. }
  4545. ]
  4546. </code></pre>
  4547. <h3 id="get_all_checklists-responses">Responses</h3>
  4548. <table>
  4549. <thead>
  4550. <tr>
  4551. <th>Status</th>
  4552. <th>Meaning</th>
  4553. <th>Description</th>
  4554. <th>Schema</th>
  4555. </tr>
  4556. </thead>
  4557. <tbody>
  4558. <tr>
  4559. <td>200</td>
  4560. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4561. <td>200 response</td>
  4562. <td>Inline</td>
  4563. </tr>
  4564. </tbody>
  4565. </table>
  4566. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4567. <p>Status Code <strong>200</strong></p>
  4568. <table>
  4569. <thead>
  4570. <tr>
  4571. <th>Name</th>
  4572. <th>Type</th>
  4573. <th>Required</th>
  4574. <th>Restrictions</th>
  4575. <th>Description</th>
  4576. </tr>
  4577. </thead>
  4578. <tbody>
  4579. <tr>
  4580. <td>» _id</td>
  4581. <td>string</td>
  4582. <td>false</td>
  4583. <td>none</td>
  4584. <td>none</td>
  4585. </tr>
  4586. <tr>
  4587. <td>» title</td>
  4588. <td>string</td>
  4589. <td>false</td>
  4590. <td>none</td>
  4591. <td>none</td>
  4592. </tr>
  4593. </tbody>
  4594. </table>
  4595. <aside class="warning">
  4596. To perform this operation, you must be authenticated by means of one of the following methods:
  4597. UserSecurity
  4598. </aside>
  4599. <h2 id="new_checklist">new_checklist</h2>
  4600. <p><a id="opIdnew_checklist"></a></p>
  4601. <blockquote>
  4602. <p>Code samples</p>
  4603. </blockquote>
  4604. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4605. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4606. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4607. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4608. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4609. </code></pre>
  4610. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists</span> <span class="hljs-meta">HTTP/1.1</span>
  4611. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4612. Accept: application/json
  4613. </span></code></pre>
  4614. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4615. &quot;title&quot;: &quot;string&quot;,
  4616. &quot;items&quot;: &quot;string&quot;
  4617. }&#x27;</span>;
  4618. <span class="hljs-keyword">const</span> headers = {
  4619. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4620. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4621. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4622. };
  4623. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4624. {
  4625. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4626. <span class="hljs-attr">body</span>: inputBody,
  4627. <span class="hljs-attr">headers</span>: headers
  4628. })
  4629. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4630. <span class="hljs-keyword">return</span> res.json();
  4631. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4632. <span class="hljs-built_in">console</span>.log(body);
  4633. });
  4634. </code></pre>
  4635. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4636. <span class="hljs-keyword">const</span> inputBody = {
  4637. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4638. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4639. };
  4640. <span class="hljs-keyword">const</span> headers = {
  4641. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4642. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4643. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4644. };
  4645. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4646. {
  4647. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4648. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4649. <span class="hljs-attr">headers</span>: headers
  4650. })
  4651. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4652. <span class="hljs-keyword">return</span> res.json();
  4653. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4654. <span class="hljs-built_in">console</span>.log(body);
  4655. });
  4656. </code></pre>
  4657. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4658. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4659. headers = {
  4660. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4661. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4662. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4663. }
  4664. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4665. <span class="hljs-symbol">params:</span> {
  4666. }, <span class="hljs-symbol">headers:</span> headers
  4667. p JSON.parse(result)
  4668. </code></pre>
  4669. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4670. headers = {
  4671. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4672. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4673. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4674. }
  4675. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4676. <span class="hljs-built_in">print</span>(r.json())
  4677. </code></pre>
  4678. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists&quot;</span>);
  4679. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4680. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4681. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4682. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4683. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4684. String inputLine;
  4685. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4686. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4687. response.append(inputLine);
  4688. }
  4689. in.close();
  4690. System.out.println(response.toString());
  4691. </code></pre>
  4692. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4693. <span class="hljs-keyword">import</span> (
  4694. <span class="hljs-string">&quot;bytes&quot;</span>
  4695. <span class="hljs-string">&quot;net/http&quot;</span>
  4696. )
  4697. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4698. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4699. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  4700. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4701. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4702. }
  4703. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4704. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists&quot;</span>, data)
  4705. req.Header = headers
  4706. client := &amp;http.Client{}
  4707. resp, err := client.Do(req)
  4708. <span class="hljs-comment">// ...</span>
  4709. }
  4710. </code></pre>
  4711. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4712. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4713. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4714. );
  4715. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4716. <span class="hljs-comment">// Define array of request body.</span>
  4717. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4718. <span class="hljs-keyword">try</span> {
  4719. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, <span class="hljs-keyword">array</span>(
  4720. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4721. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4722. )
  4723. );
  4724. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4725. }
  4726. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4727. <span class="hljs-comment">// handle exception or api errors.</span>
  4728. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4729. }
  4730. <span class="hljs-comment">// ...</span>
  4731. </code></pre>
  4732. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4733. <p><em>create a new checklist</em></p>
  4734. <blockquote>
  4735. <p>Body parameter</p>
  4736. </blockquote>
  4737. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4738. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4739. </code></pre>
  4740. <h3 id="new_checklist-parameters">Parameters</h3>
  4741. <table>
  4742. <thead>
  4743. <tr>
  4744. <th>Name</th>
  4745. <th>In</th>
  4746. <th>Type</th>
  4747. <th>Required</th>
  4748. <th>Description</th>
  4749. </tr>
  4750. </thead>
  4751. <tbody>
  4752. <tr>
  4753. <td>board</td>
  4754. <td>path</td>
  4755. <td>string</td>
  4756. <td>true</td>
  4757. <td>the board ID</td>
  4758. </tr>
  4759. <tr>
  4760. <td>card</td>
  4761. <td>path</td>
  4762. <td>string</td>
  4763. <td>true</td>
  4764. <td>the card ID</td>
  4765. </tr>
  4766. <tr>
  4767. <td>body</td>
  4768. <td>body</td>
  4769. <td>object</td>
  4770. <td>true</td>
  4771. <td>none</td>
  4772. </tr>
  4773. <tr>
  4774. <td>» title</td>
  4775. <td>body</td>
  4776. <td>string</td>
  4777. <td>true</td>
  4778. <td>the title of the new checklist</td>
  4779. </tr>
  4780. <tr>
  4781. <td>» items</td>
  4782. <td>body</td>
  4783. <td>string</td>
  4784. <td>false</td>
  4785. <td>the list of items on the new checklist</td>
  4786. </tr>
  4787. </tbody>
  4788. </table>
  4789. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4790. <p><strong>board</strong>: the board ID</p>
  4791. <p><strong>card</strong>: the card ID</p>
  4792. <blockquote>
  4793. <p>Example responses</p>
  4794. </blockquote>
  4795. <blockquote>
  4796. <p>200 Response</p>
  4797. </blockquote>
  4798. <pre class="highlight tab tab-json"><code>{
  4799. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4800. }
  4801. </code></pre>
  4802. <h3 id="new_checklist-responses">Responses</h3>
  4803. <table>
  4804. <thead>
  4805. <tr>
  4806. <th>Status</th>
  4807. <th>Meaning</th>
  4808. <th>Description</th>
  4809. <th>Schema</th>
  4810. </tr>
  4811. </thead>
  4812. <tbody>
  4813. <tr>
  4814. <td>200</td>
  4815. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4816. <td>200 response</td>
  4817. <td>Inline</td>
  4818. </tr>
  4819. </tbody>
  4820. </table>
  4821. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4822. <p>Status Code <strong>200</strong></p>
  4823. <table>
  4824. <thead>
  4825. <tr>
  4826. <th>Name</th>
  4827. <th>Type</th>
  4828. <th>Required</th>
  4829. <th>Restrictions</th>
  4830. <th>Description</th>
  4831. </tr>
  4832. </thead>
  4833. <tbody>
  4834. <tr>
  4835. <td>» _id</td>
  4836. <td>string</td>
  4837. <td>false</td>
  4838. <td>none</td>
  4839. <td>none</td>
  4840. </tr>
  4841. </tbody>
  4842. </table>
  4843. <aside class="warning">
  4844. To perform this operation, you must be authenticated by means of one of the following methods:
  4845. UserSecurity
  4846. </aside>
  4847. <h2 id="get_checklist">get_checklist</h2>
  4848. <p><a id="opIdget_checklist"></a></p>
  4849. <blockquote>
  4850. <p>Code samples</p>
  4851. </blockquote>
  4852. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4853. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4854. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4855. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4856. </code></pre>
  4857. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}</span> <span class="hljs-meta">HTTP/1.1</span>
  4858. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4859. </span></code></pre>
  4860. <pre class="highlight tab tab-javascript"><code>
  4861. <span class="hljs-keyword">const</span> headers = {
  4862. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4863. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4864. };
  4865. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4866. {
  4867. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4868. <span class="hljs-attr">headers</span>: headers
  4869. })
  4870. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4871. <span class="hljs-keyword">return</span> res.json();
  4872. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4873. <span class="hljs-built_in">console</span>.log(body);
  4874. });
  4875. </code></pre>
  4876. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  4877. <span class="hljs-keyword">const</span> headers = {
  4878. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4879. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4880. };
  4881. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4882. {
  4883. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4884. <span class="hljs-attr">headers</span>: headers
  4885. })
  4886. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4887. <span class="hljs-keyword">return</span> res.json();
  4888. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4889. <span class="hljs-built_in">console</span>.log(body);
  4890. });
  4891. </code></pre>
  4892. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4893. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4894. headers = {
  4895. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4896. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4897. }
  4898. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4899. <span class="hljs-symbol">params:</span> {
  4900. }, <span class="hljs-symbol">headers:</span> headers
  4901. p JSON.parse(result)
  4902. </code></pre>
  4903. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4904. headers = {
  4905. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4906. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4907. }
  4908. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4909. <span class="hljs-built_in">print</span>(r.json())
  4910. </code></pre>
  4911. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}&quot;</span>);
  4912. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4913. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4914. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4915. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4916. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4917. String inputLine;
  4918. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4919. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4920. response.append(inputLine);
  4921. }
  4922. in.close();
  4923. System.out.println(response.toString());
  4924. </code></pre>
  4925. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4926. <span class="hljs-keyword">import</span> (
  4927. <span class="hljs-string">&quot;bytes&quot;</span>
  4928. <span class="hljs-string">&quot;net/http&quot;</span>
  4929. )
  4930. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4931. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4932. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4933. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4934. }
  4935. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4936. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}&quot;</span>, data)
  4937. req.Header = headers
  4938. client := &amp;http.Client{}
  4939. resp, err := client.Do(req)
  4940. <span class="hljs-comment">// ...</span>
  4941. }
  4942. </code></pre>
  4943. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4944. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4945. );
  4946. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4947. <span class="hljs-comment">// Define array of request body.</span>
  4948. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4949. <span class="hljs-keyword">try</span> {
  4950. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, <span class="hljs-keyword">array</span>(
  4951. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4952. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4953. )
  4954. );
  4955. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4956. }
  4957. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4958. <span class="hljs-comment">// handle exception or api errors.</span>
  4959. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4960. }
  4961. <span class="hljs-comment">// ...</span>
  4962. </code></pre>
  4963. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  4964. <p><em>Get a checklist</em></p>
  4965. <h3 id="get_checklist-parameters">Parameters</h3>
  4966. <table>
  4967. <thead>
  4968. <tr>
  4969. <th>Name</th>
  4970. <th>In</th>
  4971. <th>Type</th>
  4972. <th>Required</th>
  4973. <th>Description</th>
  4974. </tr>
  4975. </thead>
  4976. <tbody>
  4977. <tr>
  4978. <td>board</td>
  4979. <td>path</td>
  4980. <td>string</td>
  4981. <td>true</td>
  4982. <td>the board ID</td>
  4983. </tr>
  4984. <tr>
  4985. <td>card</td>
  4986. <td>path</td>
  4987. <td>string</td>
  4988. <td>true</td>
  4989. <td>the card ID</td>
  4990. </tr>
  4991. <tr>
  4992. <td>checklist</td>
  4993. <td>path</td>
  4994. <td>string</td>
  4995. <td>true</td>
  4996. <td>the ID of the checklist</td>
  4997. </tr>
  4998. </tbody>
  4999. </table>
  5000. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5001. <p><strong>board</strong>: the board ID</p>
  5002. <p><strong>card</strong>: the card ID</p>
  5003. <p><strong>checklist</strong>: the ID of the checklist</p>
  5004. <blockquote>
  5005. <p>Example responses</p>
  5006. </blockquote>
  5007. <blockquote>
  5008. <p>200 Response</p>
  5009. </blockquote>
  5010. <pre class="highlight tab tab-json"><code>{
  5011. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5012. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5013. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5014. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5015. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5016. <span class="hljs-attr">&quot;items&quot;</span>: [
  5017. {
  5018. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5019. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5020. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5021. }
  5022. ]
  5023. }
  5024. </code></pre>
  5025. <h3 id="get_checklist-responses">Responses</h3>
  5026. <table>
  5027. <thead>
  5028. <tr>
  5029. <th>Status</th>
  5030. <th>Meaning</th>
  5031. <th>Description</th>
  5032. <th>Schema</th>
  5033. </tr>
  5034. </thead>
  5035. <tbody>
  5036. <tr>
  5037. <td>200</td>
  5038. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5039. <td>200 response</td>
  5040. <td>Inline</td>
  5041. </tr>
  5042. </tbody>
  5043. </table>
  5044. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5045. <p>Status Code <strong>200</strong></p>
  5046. <table>
  5047. <thead>
  5048. <tr>
  5049. <th>Name</th>
  5050. <th>Type</th>
  5051. <th>Required</th>
  5052. <th>Restrictions</th>
  5053. <th>Description</th>
  5054. </tr>
  5055. </thead>
  5056. <tbody>
  5057. <tr>
  5058. <td>» cardId</td>
  5059. <td>string</td>
  5060. <td>false</td>
  5061. <td>none</td>
  5062. <td>none</td>
  5063. </tr>
  5064. <tr>
  5065. <td>» title</td>
  5066. <td>string</td>
  5067. <td>false</td>
  5068. <td>none</td>
  5069. <td>none</td>
  5070. </tr>
  5071. <tr>
  5072. <td>» finishedAt</td>
  5073. <td>string</td>
  5074. <td>false</td>
  5075. <td>none</td>
  5076. <td>none</td>
  5077. </tr>
  5078. <tr>
  5079. <td>» createdAt</td>
  5080. <td>string</td>
  5081. <td>false</td>
  5082. <td>none</td>
  5083. <td>none</td>
  5084. </tr>
  5085. <tr>
  5086. <td>» sort</td>
  5087. <td>number</td>
  5088. <td>false</td>
  5089. <td>none</td>
  5090. <td>none</td>
  5091. </tr>
  5092. <tr>
  5093. <td>» items</td>
  5094. <td>[object]</td>
  5095. <td>false</td>
  5096. <td>none</td>
  5097. <td>none</td>
  5098. </tr>
  5099. <tr>
  5100. <td>»» _id</td>
  5101. <td>string</td>
  5102. <td>false</td>
  5103. <td>none</td>
  5104. <td>none</td>
  5105. </tr>
  5106. <tr>
  5107. <td>»» title</td>
  5108. <td>string</td>
  5109. <td>false</td>
  5110. <td>none</td>
  5111. <td>none</td>
  5112. </tr>
  5113. <tr>
  5114. <td>»» isFinished</td>
  5115. <td>boolean</td>
  5116. <td>false</td>
  5117. <td>none</td>
  5118. <td>none</td>
  5119. </tr>
  5120. </tbody>
  5121. </table>
  5122. <aside class="warning">
  5123. To perform this operation, you must be authenticated by means of one of the following methods:
  5124. UserSecurity
  5125. </aside>
  5126. <h2 id="delete_checklist">delete_checklist</h2>
  5127. <p><a id="opIddelete_checklist"></a></p>
  5128. <blockquote>
  5129. <p>Code samples</p>
  5130. </blockquote>
  5131. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5132. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5133. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5134. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5135. </code></pre>
  5136. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}</span> <span class="hljs-meta">HTTP/1.1</span>
  5137. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5138. </span></code></pre>
  5139. <pre class="highlight tab tab-javascript"><code>
  5140. <span class="hljs-keyword">const</span> headers = {
  5141. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5142. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5143. };
  5144. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5145. {
  5146. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5147. <span class="hljs-attr">headers</span>: headers
  5148. })
  5149. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5150. <span class="hljs-keyword">return</span> res.json();
  5151. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5152. <span class="hljs-built_in">console</span>.log(body);
  5153. });
  5154. </code></pre>
  5155. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5156. <span class="hljs-keyword">const</span> headers = {
  5157. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5158. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5159. };
  5160. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5161. {
  5162. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5163. <span class="hljs-attr">headers</span>: headers
  5164. })
  5165. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5166. <span class="hljs-keyword">return</span> res.json();
  5167. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5168. <span class="hljs-built_in">console</span>.log(body);
  5169. });
  5170. </code></pre>
  5171. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5172. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5173. headers = {
  5174. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5175. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5176. }
  5177. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5178. <span class="hljs-symbol">params:</span> {
  5179. }, <span class="hljs-symbol">headers:</span> headers
  5180. p JSON.parse(result)
  5181. </code></pre>
  5182. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5183. headers = {
  5184. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5185. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5186. }
  5187. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5188. <span class="hljs-built_in">print</span>(r.json())
  5189. </code></pre>
  5190. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}&quot;</span>);
  5191. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5192. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5193. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5194. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5195. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5196. String inputLine;
  5197. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5198. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5199. response.append(inputLine);
  5200. }
  5201. in.close();
  5202. System.out.println(response.toString());
  5203. </code></pre>
  5204. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5205. <span class="hljs-keyword">import</span> (
  5206. <span class="hljs-string">&quot;bytes&quot;</span>
  5207. <span class="hljs-string">&quot;net/http&quot;</span>
  5208. )
  5209. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5210. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5211. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5212. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5213. }
  5214. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5215. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}&quot;</span>, data)
  5216. req.Header = headers
  5217. client := &amp;http.Client{}
  5218. resp, err := client.Do(req)
  5219. <span class="hljs-comment">// ...</span>
  5220. }
  5221. </code></pre>
  5222. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5223. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5224. );
  5225. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5226. <span class="hljs-comment">// Define array of request body.</span>
  5227. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5228. <span class="hljs-keyword">try</span> {
  5229. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, <span class="hljs-keyword">array</span>(
  5230. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5231. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5232. )
  5233. );
  5234. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5235. }
  5236. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5237. <span class="hljs-comment">// handle exception or api errors.</span>
  5238. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5239. }
  5240. <span class="hljs-comment">// ...</span>
  5241. </code></pre>
  5242. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5243. <p><em>Delete a checklist</em></p>
  5244. <p>The checklist will be removed, not put in the recycle bin.</p>
  5245. <h3 id="delete_checklist-parameters">Parameters</h3>
  5246. <table>
  5247. <thead>
  5248. <tr>
  5249. <th>Name</th>
  5250. <th>In</th>
  5251. <th>Type</th>
  5252. <th>Required</th>
  5253. <th>Description</th>
  5254. </tr>
  5255. </thead>
  5256. <tbody>
  5257. <tr>
  5258. <td>board</td>
  5259. <td>path</td>
  5260. <td>string</td>
  5261. <td>true</td>
  5262. <td>the board ID</td>
  5263. </tr>
  5264. <tr>
  5265. <td>card</td>
  5266. <td>path</td>
  5267. <td>string</td>
  5268. <td>true</td>
  5269. <td>the card ID</td>
  5270. </tr>
  5271. <tr>
  5272. <td>checklist</td>
  5273. <td>path</td>
  5274. <td>string</td>
  5275. <td>true</td>
  5276. <td>the ID of the checklist to remove</td>
  5277. </tr>
  5278. </tbody>
  5279. </table>
  5280. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5281. <p><strong>board</strong>: the board ID</p>
  5282. <p><strong>card</strong>: the card ID</p>
  5283. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5284. <blockquote>
  5285. <p>Example responses</p>
  5286. </blockquote>
  5287. <blockquote>
  5288. <p>200 Response</p>
  5289. </blockquote>
  5290. <pre class="highlight tab tab-json"><code>{
  5291. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5292. }
  5293. </code></pre>
  5294. <h3 id="delete_checklist-responses">Responses</h3>
  5295. <table>
  5296. <thead>
  5297. <tr>
  5298. <th>Status</th>
  5299. <th>Meaning</th>
  5300. <th>Description</th>
  5301. <th>Schema</th>
  5302. </tr>
  5303. </thead>
  5304. <tbody>
  5305. <tr>
  5306. <td>200</td>
  5307. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5308. <td>200 response</td>
  5309. <td>Inline</td>
  5310. </tr>
  5311. </tbody>
  5312. </table>
  5313. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5314. <p>Status Code <strong>200</strong></p>
  5315. <table>
  5316. <thead>
  5317. <tr>
  5318. <th>Name</th>
  5319. <th>Type</th>
  5320. <th>Required</th>
  5321. <th>Restrictions</th>
  5322. <th>Description</th>
  5323. </tr>
  5324. </thead>
  5325. <tbody>
  5326. <tr>
  5327. <td>» _id</td>
  5328. <td>string</td>
  5329. <td>false</td>
  5330. <td>none</td>
  5331. <td>none</td>
  5332. </tr>
  5333. </tbody>
  5334. </table>
  5335. <aside class="warning">
  5336. To perform this operation, you must be authenticated by means of one of the following methods:
  5337. UserSecurity
  5338. </aside>
  5339. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5340. <h2 id="get_checklist_item">get_checklist_item</h2>
  5341. <p><a id="opIdget_checklist_item"></a></p>
  5342. <blockquote>
  5343. <p>Code samples</p>
  5344. </blockquote>
  5345. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5346. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5347. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5348. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5349. </code></pre>
  5350. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> <span class="hljs-meta">HTTP/1.1</span>
  5351. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5352. </span></code></pre>
  5353. <pre class="highlight tab tab-javascript"><code>
  5354. <span class="hljs-keyword">const</span> headers = {
  5355. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5356. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5357. };
  5358. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5359. {
  5360. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5361. <span class="hljs-attr">headers</span>: headers
  5362. })
  5363. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5364. <span class="hljs-keyword">return</span> res.json();
  5365. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5366. <span class="hljs-built_in">console</span>.log(body);
  5367. });
  5368. </code></pre>
  5369. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5370. <span class="hljs-keyword">const</span> headers = {
  5371. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5372. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5373. };
  5374. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5375. {
  5376. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5377. <span class="hljs-attr">headers</span>: headers
  5378. })
  5379. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5380. <span class="hljs-keyword">return</span> res.json();
  5381. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5382. <span class="hljs-built_in">console</span>.log(body);
  5383. });
  5384. </code></pre>
  5385. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5386. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5387. headers = {
  5388. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5389. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5390. }
  5391. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5392. <span class="hljs-symbol">params:</span> {
  5393. }, <span class="hljs-symbol">headers:</span> headers
  5394. p JSON.parse(result)
  5395. </code></pre>
  5396. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5397. headers = {
  5398. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5399. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5400. }
  5401. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5402. <span class="hljs-built_in">print</span>(r.json())
  5403. </code></pre>
  5404. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>);
  5405. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5406. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5407. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5408. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5409. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5410. String inputLine;
  5411. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5412. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5413. response.append(inputLine);
  5414. }
  5415. in.close();
  5416. System.out.println(response.toString());
  5417. </code></pre>
  5418. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5419. <span class="hljs-keyword">import</span> (
  5420. <span class="hljs-string">&quot;bytes&quot;</span>
  5421. <span class="hljs-string">&quot;net/http&quot;</span>
  5422. )
  5423. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5424. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5425. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5426. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5427. }
  5428. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5429. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>, data)
  5430. req.Header = headers
  5431. client := &amp;http.Client{}
  5432. resp, err := client.Do(req)
  5433. <span class="hljs-comment">// ...</span>
  5434. }
  5435. </code></pre>
  5436. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5437. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5438. );
  5439. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5440. <span class="hljs-comment">// Define array of request body.</span>
  5441. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5442. <span class="hljs-keyword">try</span> {
  5443. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, <span class="hljs-keyword">array</span>(
  5444. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5445. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5446. )
  5447. );
  5448. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5449. }
  5450. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5451. <span class="hljs-comment">// handle exception or api errors.</span>
  5452. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5453. }
  5454. <span class="hljs-comment">// ...</span>
  5455. </code></pre>
  5456. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5457. <p><em>Get a checklist item</em></p>
  5458. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5459. <table>
  5460. <thead>
  5461. <tr>
  5462. <th>Name</th>
  5463. <th>In</th>
  5464. <th>Type</th>
  5465. <th>Required</th>
  5466. <th>Description</th>
  5467. </tr>
  5468. </thead>
  5469. <tbody>
  5470. <tr>
  5471. <td>board</td>
  5472. <td>path</td>
  5473. <td>string</td>
  5474. <td>true</td>
  5475. <td>the board ID</td>
  5476. </tr>
  5477. <tr>
  5478. <td>card</td>
  5479. <td>path</td>
  5480. <td>string</td>
  5481. <td>true</td>
  5482. <td>the card ID</td>
  5483. </tr>
  5484. <tr>
  5485. <td>checklist</td>
  5486. <td>path</td>
  5487. <td>string</td>
  5488. <td>true</td>
  5489. <td>the checklist ID</td>
  5490. </tr>
  5491. <tr>
  5492. <td>item</td>
  5493. <td>path</td>
  5494. <td>string</td>
  5495. <td>true</td>
  5496. <td>the ID of the item</td>
  5497. </tr>
  5498. </tbody>
  5499. </table>
  5500. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5501. <p><strong>board</strong>: the board ID</p>
  5502. <p><strong>card</strong>: the card ID</p>
  5503. <p><strong>checklist</strong>: the checklist ID</p>
  5504. <p><strong>item</strong>: the ID of the item</p>
  5505. <blockquote>
  5506. <p>Example responses</p>
  5507. </blockquote>
  5508. <blockquote>
  5509. <p>200 Response</p>
  5510. </blockquote>
  5511. <pre class="highlight tab tab-json"><code>{
  5512. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5513. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5514. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5515. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5516. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5517. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5518. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5519. }
  5520. </code></pre>
  5521. <h3 id="get_checklist_item-responses">Responses</h3>
  5522. <table>
  5523. <thead>
  5524. <tr>
  5525. <th>Status</th>
  5526. <th>Meaning</th>
  5527. <th>Description</th>
  5528. <th>Schema</th>
  5529. </tr>
  5530. </thead>
  5531. <tbody>
  5532. <tr>
  5533. <td>200</td>
  5534. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5535. <td>200 response</td>
  5536. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5537. </tr>
  5538. </tbody>
  5539. </table>
  5540. <aside class="warning">
  5541. To perform this operation, you must be authenticated by means of one of the following methods:
  5542. UserSecurity
  5543. </aside>
  5544. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5545. <p><a id="opIdedit_checklist_item"></a></p>
  5546. <blockquote>
  5547. <p>Code samples</p>
  5548. </blockquote>
  5549. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5550. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5551. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5552. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5553. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5554. </code></pre>
  5555. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> <span class="hljs-meta">HTTP/1.1</span>
  5556. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5557. Accept: application/json
  5558. </span></code></pre>
  5559. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5560. &quot;isFinished&quot;: &quot;string&quot;,
  5561. &quot;title&quot;: &quot;string&quot;
  5562. }&#x27;</span>;
  5563. <span class="hljs-keyword">const</span> headers = {
  5564. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5565. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5566. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5567. };
  5568. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5569. {
  5570. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5571. <span class="hljs-attr">body</span>: inputBody,
  5572. <span class="hljs-attr">headers</span>: headers
  5573. })
  5574. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5575. <span class="hljs-keyword">return</span> res.json();
  5576. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5577. <span class="hljs-built_in">console</span>.log(body);
  5578. });
  5579. </code></pre>
  5580. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5581. <span class="hljs-keyword">const</span> inputBody = {
  5582. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5583. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5584. };
  5585. <span class="hljs-keyword">const</span> headers = {
  5586. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5587. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5588. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5589. };
  5590. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5591. {
  5592. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5593. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5594. <span class="hljs-attr">headers</span>: headers
  5595. })
  5596. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5597. <span class="hljs-keyword">return</span> res.json();
  5598. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5599. <span class="hljs-built_in">console</span>.log(body);
  5600. });
  5601. </code></pre>
  5602. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5603. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5604. headers = {
  5605. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5606. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5607. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5608. }
  5609. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5610. <span class="hljs-symbol">params:</span> {
  5611. }, <span class="hljs-symbol">headers:</span> headers
  5612. p JSON.parse(result)
  5613. </code></pre>
  5614. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5615. headers = {
  5616. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5617. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5618. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5619. }
  5620. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5621. <span class="hljs-built_in">print</span>(r.json())
  5622. </code></pre>
  5623. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>);
  5624. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5625. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5626. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5627. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5628. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5629. String inputLine;
  5630. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5631. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5632. response.append(inputLine);
  5633. }
  5634. in.close();
  5635. System.out.println(response.toString());
  5636. </code></pre>
  5637. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5638. <span class="hljs-keyword">import</span> (
  5639. <span class="hljs-string">&quot;bytes&quot;</span>
  5640. <span class="hljs-string">&quot;net/http&quot;</span>
  5641. )
  5642. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5643. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5644. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  5645. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5646. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5647. }
  5648. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5649. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>, data)
  5650. req.Header = headers
  5651. client := &amp;http.Client{}
  5652. resp, err := client.Do(req)
  5653. <span class="hljs-comment">// ...</span>
  5654. }
  5655. </code></pre>
  5656. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5657. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5658. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5659. );
  5660. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5661. <span class="hljs-comment">// Define array of request body.</span>
  5662. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5663. <span class="hljs-keyword">try</span> {
  5664. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, <span class="hljs-keyword">array</span>(
  5665. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5666. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5667. )
  5668. );
  5669. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5670. }
  5671. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5672. <span class="hljs-comment">// handle exception or api errors.</span>
  5673. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5674. }
  5675. <span class="hljs-comment">// ...</span>
  5676. </code></pre>
  5677. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5678. <p><em>Edit a checklist item</em></p>
  5679. <blockquote>
  5680. <p>Body parameter</p>
  5681. </blockquote>
  5682. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5683. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5684. </code></pre>
  5685. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5686. <table>
  5687. <thead>
  5688. <tr>
  5689. <th>Name</th>
  5690. <th>In</th>
  5691. <th>Type</th>
  5692. <th>Required</th>
  5693. <th>Description</th>
  5694. </tr>
  5695. </thead>
  5696. <tbody>
  5697. <tr>
  5698. <td>board</td>
  5699. <td>path</td>
  5700. <td>string</td>
  5701. <td>true</td>
  5702. <td>the board ID</td>
  5703. </tr>
  5704. <tr>
  5705. <td>card</td>
  5706. <td>path</td>
  5707. <td>string</td>
  5708. <td>true</td>
  5709. <td>the card ID</td>
  5710. </tr>
  5711. <tr>
  5712. <td>checklist</td>
  5713. <td>path</td>
  5714. <td>string</td>
  5715. <td>true</td>
  5716. <td>the checklist ID</td>
  5717. </tr>
  5718. <tr>
  5719. <td>item</td>
  5720. <td>path</td>
  5721. <td>string</td>
  5722. <td>true</td>
  5723. <td>the ID of the item</td>
  5724. </tr>
  5725. <tr>
  5726. <td>body</td>
  5727. <td>body</td>
  5728. <td>object</td>
  5729. <td>false</td>
  5730. <td>none</td>
  5731. </tr>
  5732. <tr>
  5733. <td>» isFinished</td>
  5734. <td>body</td>
  5735. <td>string</td>
  5736. <td>false</td>
  5737. <td>is the item checked?</td>
  5738. </tr>
  5739. <tr>
  5740. <td>» title</td>
  5741. <td>body</td>
  5742. <td>string</td>
  5743. <td>false</td>
  5744. <td>the new text of the item</td>
  5745. </tr>
  5746. </tbody>
  5747. </table>
  5748. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5749. <p><strong>board</strong>: the board ID</p>
  5750. <p><strong>card</strong>: the card ID</p>
  5751. <p><strong>checklist</strong>: the checklist ID</p>
  5752. <p><strong>item</strong>: the ID of the item</p>
  5753. <blockquote>
  5754. <p>Example responses</p>
  5755. </blockquote>
  5756. <blockquote>
  5757. <p>200 Response</p>
  5758. </blockquote>
  5759. <pre class="highlight tab tab-json"><code>{
  5760. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5761. }
  5762. </code></pre>
  5763. <h3 id="edit_checklist_item-responses">Responses</h3>
  5764. <table>
  5765. <thead>
  5766. <tr>
  5767. <th>Status</th>
  5768. <th>Meaning</th>
  5769. <th>Description</th>
  5770. <th>Schema</th>
  5771. </tr>
  5772. </thead>
  5773. <tbody>
  5774. <tr>
  5775. <td>200</td>
  5776. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5777. <td>200 response</td>
  5778. <td>Inline</td>
  5779. </tr>
  5780. </tbody>
  5781. </table>
  5782. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5783. <p>Status Code <strong>200</strong></p>
  5784. <table>
  5785. <thead>
  5786. <tr>
  5787. <th>Name</th>
  5788. <th>Type</th>
  5789. <th>Required</th>
  5790. <th>Restrictions</th>
  5791. <th>Description</th>
  5792. </tr>
  5793. </thead>
  5794. <tbody>
  5795. <tr>
  5796. <td>» _id</td>
  5797. <td>string</td>
  5798. <td>false</td>
  5799. <td>none</td>
  5800. <td>none</td>
  5801. </tr>
  5802. </tbody>
  5803. </table>
  5804. <aside class="warning">
  5805. To perform this operation, you must be authenticated by means of one of the following methods:
  5806. UserSecurity
  5807. </aside>
  5808. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5809. <p><a id="opIddelete_checklist_item"></a></p>
  5810. <blockquote>
  5811. <p>Code samples</p>
  5812. </blockquote>
  5813. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5814. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5815. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5816. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5817. </code></pre>
  5818. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</span> <span class="hljs-meta">HTTP/1.1</span>
  5819. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5820. </span></code></pre>
  5821. <pre class="highlight tab tab-javascript"><code>
  5822. <span class="hljs-keyword">const</span> headers = {
  5823. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5824. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5825. };
  5826. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5827. {
  5828. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5829. <span class="hljs-attr">headers</span>: headers
  5830. })
  5831. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5832. <span class="hljs-keyword">return</span> res.json();
  5833. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5834. <span class="hljs-built_in">console</span>.log(body);
  5835. });
  5836. </code></pre>
  5837. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5838. <span class="hljs-keyword">const</span> headers = {
  5839. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5840. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5841. };
  5842. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5843. {
  5844. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5845. <span class="hljs-attr">headers</span>: headers
  5846. })
  5847. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5848. <span class="hljs-keyword">return</span> res.json();
  5849. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5850. <span class="hljs-built_in">console</span>.log(body);
  5851. });
  5852. </code></pre>
  5853. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5854. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5855. headers = {
  5856. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5857. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5858. }
  5859. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5860. <span class="hljs-symbol">params:</span> {
  5861. }, <span class="hljs-symbol">headers:</span> headers
  5862. p JSON.parse(result)
  5863. </code></pre>
  5864. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5865. headers = {
  5866. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5867. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5868. }
  5869. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5870. <span class="hljs-built_in">print</span>(r.json())
  5871. </code></pre>
  5872. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>);
  5873. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5874. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5875. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5876. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5877. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5878. String inputLine;
  5879. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5880. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5881. response.append(inputLine);
  5882. }
  5883. in.close();
  5884. System.out.println(response.toString());
  5885. </code></pre>
  5886. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5887. <span class="hljs-keyword">import</span> (
  5888. <span class="hljs-string">&quot;bytes&quot;</span>
  5889. <span class="hljs-string">&quot;net/http&quot;</span>
  5890. )
  5891. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5892. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5893. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5894. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5895. }
  5896. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5897. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&quot;</span>, data)
  5898. req.Header = headers
  5899. client := &amp;http.Client{}
  5900. resp, err := client.Do(req)
  5901. <span class="hljs-comment">// ...</span>
  5902. }
  5903. </code></pre>
  5904. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5905. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5906. );
  5907. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5908. <span class="hljs-comment">// Define array of request body.</span>
  5909. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5910. <span class="hljs-keyword">try</span> {
  5911. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, <span class="hljs-keyword">array</span>(
  5912. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5913. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5914. )
  5915. );
  5916. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5917. }
  5918. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5919. <span class="hljs-comment">// handle exception or api errors.</span>
  5920. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5921. }
  5922. <span class="hljs-comment">// ...</span>
  5923. </code></pre>
  5924. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5925. <p><em>Delete a checklist item</em></p>
  5926. <p>Note: this operation can't be reverted.</p>
  5927. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  5928. <table>
  5929. <thead>
  5930. <tr>
  5931. <th>Name</th>
  5932. <th>In</th>
  5933. <th>Type</th>
  5934. <th>Required</th>
  5935. <th>Description</th>
  5936. </tr>
  5937. </thead>
  5938. <tbody>
  5939. <tr>
  5940. <td>board</td>
  5941. <td>path</td>
  5942. <td>string</td>
  5943. <td>true</td>
  5944. <td>the board ID</td>
  5945. </tr>
  5946. <tr>
  5947. <td>card</td>
  5948. <td>path</td>
  5949. <td>string</td>
  5950. <td>true</td>
  5951. <td>the card ID</td>
  5952. </tr>
  5953. <tr>
  5954. <td>checklist</td>
  5955. <td>path</td>
  5956. <td>string</td>
  5957. <td>true</td>
  5958. <td>the checklist ID</td>
  5959. </tr>
  5960. <tr>
  5961. <td>item</td>
  5962. <td>path</td>
  5963. <td>string</td>
  5964. <td>true</td>
  5965. <td>the ID of the item to be removed</td>
  5966. </tr>
  5967. </tbody>
  5968. </table>
  5969. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  5970. <p><strong>board</strong>: the board ID</p>
  5971. <p><strong>card</strong>: the card ID</p>
  5972. <p><strong>checklist</strong>: the checklist ID</p>
  5973. <p><strong>item</strong>: the ID of the item to be removed</p>
  5974. <blockquote>
  5975. <p>Example responses</p>
  5976. </blockquote>
  5977. <blockquote>
  5978. <p>200 Response</p>
  5979. </blockquote>
  5980. <pre class="highlight tab tab-json"><code>{
  5981. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5982. }
  5983. </code></pre>
  5984. <h3 id="delete_checklist_item-responses">Responses</h3>
  5985. <table>
  5986. <thead>
  5987. <tr>
  5988. <th>Status</th>
  5989. <th>Meaning</th>
  5990. <th>Description</th>
  5991. <th>Schema</th>
  5992. </tr>
  5993. </thead>
  5994. <tbody>
  5995. <tr>
  5996. <td>200</td>
  5997. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5998. <td>200 response</td>
  5999. <td>Inline</td>
  6000. </tr>
  6001. </tbody>
  6002. </table>
  6003. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6004. <p>Status Code <strong>200</strong></p>
  6005. <table>
  6006. <thead>
  6007. <tr>
  6008. <th>Name</th>
  6009. <th>Type</th>
  6010. <th>Required</th>
  6011. <th>Restrictions</th>
  6012. <th>Description</th>
  6013. </tr>
  6014. </thead>
  6015. <tbody>
  6016. <tr>
  6017. <td>» _id</td>
  6018. <td>string</td>
  6019. <td>false</td>
  6020. <td>none</td>
  6021. <td>none</td>
  6022. </tr>
  6023. </tbody>
  6024. </table>
  6025. <aside class="warning">
  6026. To perform this operation, you must be authenticated by means of one of the following methods:
  6027. UserSecurity
  6028. </aside>
  6029. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6030. <h2 id="get_all_comments">get_all_comments</h2>
  6031. <p><a id="opIdget_all_comments"></a></p>
  6032. <blockquote>
  6033. <p>Code samples</p>
  6034. </blockquote>
  6035. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6036. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6037. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6038. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6039. </code></pre>
  6040. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> <span class="hljs-meta">HTTP/1.1</span>
  6041. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6042. </span></code></pre>
  6043. <pre class="highlight tab tab-javascript"><code>
  6044. <span class="hljs-keyword">const</span> headers = {
  6045. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6046. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6047. };
  6048. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6049. {
  6050. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6051. <span class="hljs-attr">headers</span>: headers
  6052. })
  6053. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6054. <span class="hljs-keyword">return</span> res.json();
  6055. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6056. <span class="hljs-built_in">console</span>.log(body);
  6057. });
  6058. </code></pre>
  6059. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6060. <span class="hljs-keyword">const</span> headers = {
  6061. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6062. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6063. };
  6064. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6065. {
  6066. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6067. <span class="hljs-attr">headers</span>: headers
  6068. })
  6069. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6070. <span class="hljs-keyword">return</span> res.json();
  6071. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6072. <span class="hljs-built_in">console</span>.log(body);
  6073. });
  6074. </code></pre>
  6075. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6076. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6077. headers = {
  6078. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6079. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6080. }
  6081. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6082. <span class="hljs-symbol">params:</span> {
  6083. }, <span class="hljs-symbol">headers:</span> headers
  6084. p JSON.parse(result)
  6085. </code></pre>
  6086. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6087. headers = {
  6088. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6089. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6090. }
  6091. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6092. <span class="hljs-built_in">print</span>(r.json())
  6093. </code></pre>
  6094. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments&quot;</span>);
  6095. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6096. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6097. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6098. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6099. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6100. String inputLine;
  6101. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6102. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6103. response.append(inputLine);
  6104. }
  6105. in.close();
  6106. System.out.println(response.toString());
  6107. </code></pre>
  6108. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6109. <span class="hljs-keyword">import</span> (
  6110. <span class="hljs-string">&quot;bytes&quot;</span>
  6111. <span class="hljs-string">&quot;net/http&quot;</span>
  6112. )
  6113. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6114. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6115. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6116. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6117. }
  6118. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6119. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments&quot;</span>, data)
  6120. req.Header = headers
  6121. client := &amp;http.Client{}
  6122. resp, err := client.Do(req)
  6123. <span class="hljs-comment">// ...</span>
  6124. }
  6125. </code></pre>
  6126. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6127. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6128. );
  6129. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6130. <span class="hljs-comment">// Define array of request body.</span>
  6131. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6132. <span class="hljs-keyword">try</span> {
  6133. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, <span class="hljs-keyword">array</span>(
  6134. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6135. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6136. )
  6137. );
  6138. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6139. }
  6140. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6141. <span class="hljs-comment">// handle exception or api errors.</span>
  6142. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6143. }
  6144. <span class="hljs-comment">// ...</span>
  6145. </code></pre>
  6146. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6147. <p><em>Get all comments attached to a card</em></p>
  6148. <h3 id="get_all_comments-parameters">Parameters</h3>
  6149. <table>
  6150. <thead>
  6151. <tr>
  6152. <th>Name</th>
  6153. <th>In</th>
  6154. <th>Type</th>
  6155. <th>Required</th>
  6156. <th>Description</th>
  6157. </tr>
  6158. </thead>
  6159. <tbody>
  6160. <tr>
  6161. <td>board</td>
  6162. <td>path</td>
  6163. <td>string</td>
  6164. <td>true</td>
  6165. <td>the board ID of the card</td>
  6166. </tr>
  6167. <tr>
  6168. <td>card</td>
  6169. <td>path</td>
  6170. <td>string</td>
  6171. <td>true</td>
  6172. <td>the ID of the card</td>
  6173. </tr>
  6174. </tbody>
  6175. </table>
  6176. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6177. <p><strong>board</strong>: the board ID of the card</p>
  6178. <p><strong>card</strong>: the ID of the card</p>
  6179. <blockquote>
  6180. <p>Example responses</p>
  6181. </blockquote>
  6182. <blockquote>
  6183. <p>200 Response</p>
  6184. </blockquote>
  6185. <pre class="highlight tab tab-json"><code>[
  6186. {
  6187. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6188. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6189. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6190. }
  6191. ]
  6192. </code></pre>
  6193. <h3 id="get_all_comments-responses">Responses</h3>
  6194. <table>
  6195. <thead>
  6196. <tr>
  6197. <th>Status</th>
  6198. <th>Meaning</th>
  6199. <th>Description</th>
  6200. <th>Schema</th>
  6201. </tr>
  6202. </thead>
  6203. <tbody>
  6204. <tr>
  6205. <td>200</td>
  6206. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6207. <td>200 response</td>
  6208. <td>Inline</td>
  6209. </tr>
  6210. </tbody>
  6211. </table>
  6212. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6213. <p>Status Code <strong>200</strong></p>
  6214. <table>
  6215. <thead>
  6216. <tr>
  6217. <th>Name</th>
  6218. <th>Type</th>
  6219. <th>Required</th>
  6220. <th>Restrictions</th>
  6221. <th>Description</th>
  6222. </tr>
  6223. </thead>
  6224. <tbody>
  6225. <tr>
  6226. <td>» _id</td>
  6227. <td>string</td>
  6228. <td>false</td>
  6229. <td>none</td>
  6230. <td>none</td>
  6231. </tr>
  6232. <tr>
  6233. <td>» comment</td>
  6234. <td>string</td>
  6235. <td>false</td>
  6236. <td>none</td>
  6237. <td>none</td>
  6238. </tr>
  6239. <tr>
  6240. <td>» authorId</td>
  6241. <td>string</td>
  6242. <td>false</td>
  6243. <td>none</td>
  6244. <td>none</td>
  6245. </tr>
  6246. </tbody>
  6247. </table>
  6248. <aside class="warning">
  6249. To perform this operation, you must be authenticated by means of one of the following methods:
  6250. UserSecurity
  6251. </aside>
  6252. <h2 id="new_comment">new_comment</h2>
  6253. <p><a id="opIdnew_comment"></a></p>
  6254. <blockquote>
  6255. <p>Code samples</p>
  6256. </blockquote>
  6257. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6258. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6259. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6260. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6261. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6262. </code></pre>
  6263. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments</span> <span class="hljs-meta">HTTP/1.1</span>
  6264. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6265. Accept: application/json
  6266. </span></code></pre>
  6267. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6268. &quot;authorId&quot;: &quot;string&quot;,
  6269. &quot;comment&quot;: &quot;string&quot;
  6270. }&#x27;</span>;
  6271. <span class="hljs-keyword">const</span> headers = {
  6272. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6273. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6274. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6275. };
  6276. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6277. {
  6278. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6279. <span class="hljs-attr">body</span>: inputBody,
  6280. <span class="hljs-attr">headers</span>: headers
  6281. })
  6282. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6283. <span class="hljs-keyword">return</span> res.json();
  6284. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6285. <span class="hljs-built_in">console</span>.log(body);
  6286. });
  6287. </code></pre>
  6288. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6289. <span class="hljs-keyword">const</span> inputBody = {
  6290. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6291. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6292. };
  6293. <span class="hljs-keyword">const</span> headers = {
  6294. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6295. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6296. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6297. };
  6298. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6299. {
  6300. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6301. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6302. <span class="hljs-attr">headers</span>: headers
  6303. })
  6304. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6305. <span class="hljs-keyword">return</span> res.json();
  6306. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6307. <span class="hljs-built_in">console</span>.log(body);
  6308. });
  6309. </code></pre>
  6310. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6311. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6312. headers = {
  6313. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6314. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6315. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6316. }
  6317. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6318. <span class="hljs-symbol">params:</span> {
  6319. }, <span class="hljs-symbol">headers:</span> headers
  6320. p JSON.parse(result)
  6321. </code></pre>
  6322. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6323. headers = {
  6324. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6325. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6326. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6327. }
  6328. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6329. <span class="hljs-built_in">print</span>(r.json())
  6330. </code></pre>
  6331. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments&quot;</span>);
  6332. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6333. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6334. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6335. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6336. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6337. String inputLine;
  6338. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6339. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6340. response.append(inputLine);
  6341. }
  6342. in.close();
  6343. System.out.println(response.toString());
  6344. </code></pre>
  6345. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6346. <span class="hljs-keyword">import</span> (
  6347. <span class="hljs-string">&quot;bytes&quot;</span>
  6348. <span class="hljs-string">&quot;net/http&quot;</span>
  6349. )
  6350. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6351. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6352. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  6353. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6354. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6355. }
  6356. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6357. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments&quot;</span>, data)
  6358. req.Header = headers
  6359. client := &amp;http.Client{}
  6360. resp, err := client.Do(req)
  6361. <span class="hljs-comment">// ...</span>
  6362. }
  6363. </code></pre>
  6364. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6365. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6366. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6367. );
  6368. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6369. <span class="hljs-comment">// Define array of request body.</span>
  6370. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6371. <span class="hljs-keyword">try</span> {
  6372. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, <span class="hljs-keyword">array</span>(
  6373. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6374. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6375. )
  6376. );
  6377. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6378. }
  6379. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6380. <span class="hljs-comment">// handle exception or api errors.</span>
  6381. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6382. }
  6383. <span class="hljs-comment">// ...</span>
  6384. </code></pre>
  6385. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6386. <p><em>Add a comment on a card</em></p>
  6387. <blockquote>
  6388. <p>Body parameter</p>
  6389. </blockquote>
  6390. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6391. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6392. </code></pre>
  6393. <h3 id="new_comment-parameters">Parameters</h3>
  6394. <table>
  6395. <thead>
  6396. <tr>
  6397. <th>Name</th>
  6398. <th>In</th>
  6399. <th>Type</th>
  6400. <th>Required</th>
  6401. <th>Description</th>
  6402. </tr>
  6403. </thead>
  6404. <tbody>
  6405. <tr>
  6406. <td>board</td>
  6407. <td>path</td>
  6408. <td>string</td>
  6409. <td>true</td>
  6410. <td>the board ID of the card</td>
  6411. </tr>
  6412. <tr>
  6413. <td>card</td>
  6414. <td>path</td>
  6415. <td>string</td>
  6416. <td>true</td>
  6417. <td>the ID of the card</td>
  6418. </tr>
  6419. <tr>
  6420. <td>body</td>
  6421. <td>body</td>
  6422. <td>object</td>
  6423. <td>true</td>
  6424. <td>none</td>
  6425. </tr>
  6426. <tr>
  6427. <td>» authorId</td>
  6428. <td>body</td>
  6429. <td>string</td>
  6430. <td>true</td>
  6431. <td>the user who 'posted' the comment</td>
  6432. </tr>
  6433. <tr>
  6434. <td>» comment</td>
  6435. <td>body</td>
  6436. <td>string</td>
  6437. <td>true</td>
  6438. <td>the comment value</td>
  6439. </tr>
  6440. </tbody>
  6441. </table>
  6442. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6443. <p><strong>board</strong>: the board ID of the card</p>
  6444. <p><strong>card</strong>: the ID of the card</p>
  6445. <blockquote>
  6446. <p>Example responses</p>
  6447. </blockquote>
  6448. <blockquote>
  6449. <p>200 Response</p>
  6450. </blockquote>
  6451. <pre class="highlight tab tab-json"><code>{
  6452. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6453. }
  6454. </code></pre>
  6455. <h3 id="new_comment-responses">Responses</h3>
  6456. <table>
  6457. <thead>
  6458. <tr>
  6459. <th>Status</th>
  6460. <th>Meaning</th>
  6461. <th>Description</th>
  6462. <th>Schema</th>
  6463. </tr>
  6464. </thead>
  6465. <tbody>
  6466. <tr>
  6467. <td>200</td>
  6468. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6469. <td>200 response</td>
  6470. <td>Inline</td>
  6471. </tr>
  6472. </tbody>
  6473. </table>
  6474. <h3 id="new_comment-responseschema">Response Schema</h3>
  6475. <p>Status Code <strong>200</strong></p>
  6476. <table>
  6477. <thead>
  6478. <tr>
  6479. <th>Name</th>
  6480. <th>Type</th>
  6481. <th>Required</th>
  6482. <th>Restrictions</th>
  6483. <th>Description</th>
  6484. </tr>
  6485. </thead>
  6486. <tbody>
  6487. <tr>
  6488. <td>» _id</td>
  6489. <td>string</td>
  6490. <td>false</td>
  6491. <td>none</td>
  6492. <td>none</td>
  6493. </tr>
  6494. </tbody>
  6495. </table>
  6496. <aside class="warning">
  6497. To perform this operation, you must be authenticated by means of one of the following methods:
  6498. UserSecurity
  6499. </aside>
  6500. <h2 id="get_comment">get_comment</h2>
  6501. <p><a id="opIdget_comment"></a></p>
  6502. <blockquote>
  6503. <p>Code samples</p>
  6504. </blockquote>
  6505. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6506. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6507. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6508. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6509. </code></pre>
  6510. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments/{comment}</span> <span class="hljs-meta">HTTP/1.1</span>
  6511. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6512. </span></code></pre>
  6513. <pre class="highlight tab tab-javascript"><code>
  6514. <span class="hljs-keyword">const</span> headers = {
  6515. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6516. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6517. };
  6518. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6519. {
  6520. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6521. <span class="hljs-attr">headers</span>: headers
  6522. })
  6523. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6524. <span class="hljs-keyword">return</span> res.json();
  6525. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6526. <span class="hljs-built_in">console</span>.log(body);
  6527. });
  6528. </code></pre>
  6529. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6530. <span class="hljs-keyword">const</span> headers = {
  6531. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6532. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6533. };
  6534. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6535. {
  6536. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6537. <span class="hljs-attr">headers</span>: headers
  6538. })
  6539. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6540. <span class="hljs-keyword">return</span> res.json();
  6541. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6542. <span class="hljs-built_in">console</span>.log(body);
  6543. });
  6544. </code></pre>
  6545. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6546. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6547. headers = {
  6548. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6549. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6550. }
  6551. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6552. <span class="hljs-symbol">params:</span> {
  6553. }, <span class="hljs-symbol">headers:</span> headers
  6554. p JSON.parse(result)
  6555. </code></pre>
  6556. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6557. headers = {
  6558. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6559. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6560. }
  6561. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6562. <span class="hljs-built_in">print</span>(r.json())
  6563. </code></pre>
  6564. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>);
  6565. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6566. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6567. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6568. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6569. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6570. String inputLine;
  6571. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6572. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6573. response.append(inputLine);
  6574. }
  6575. in.close();
  6576. System.out.println(response.toString());
  6577. </code></pre>
  6578. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6579. <span class="hljs-keyword">import</span> (
  6580. <span class="hljs-string">&quot;bytes&quot;</span>
  6581. <span class="hljs-string">&quot;net/http&quot;</span>
  6582. )
  6583. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6584. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6585. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6586. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6587. }
  6588. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6589. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>, data)
  6590. req.Header = headers
  6591. client := &amp;http.Client{}
  6592. resp, err := client.Do(req)
  6593. <span class="hljs-comment">// ...</span>
  6594. }
  6595. </code></pre>
  6596. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6597. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6598. );
  6599. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6600. <span class="hljs-comment">// Define array of request body.</span>
  6601. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6602. <span class="hljs-keyword">try</span> {
  6603. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, <span class="hljs-keyword">array</span>(
  6604. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6605. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6606. )
  6607. );
  6608. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6609. }
  6610. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6611. <span class="hljs-comment">// handle exception or api errors.</span>
  6612. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6613. }
  6614. <span class="hljs-comment">// ...</span>
  6615. </code></pre>
  6616. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6617. <p><em>Get a comment on a card</em></p>
  6618. <h3 id="get_comment-parameters">Parameters</h3>
  6619. <table>
  6620. <thead>
  6621. <tr>
  6622. <th>Name</th>
  6623. <th>In</th>
  6624. <th>Type</th>
  6625. <th>Required</th>
  6626. <th>Description</th>
  6627. </tr>
  6628. </thead>
  6629. <tbody>
  6630. <tr>
  6631. <td>board</td>
  6632. <td>path</td>
  6633. <td>string</td>
  6634. <td>true</td>
  6635. <td>the board ID of the card</td>
  6636. </tr>
  6637. <tr>
  6638. <td>card</td>
  6639. <td>path</td>
  6640. <td>string</td>
  6641. <td>true</td>
  6642. <td>the ID of the card</td>
  6643. </tr>
  6644. <tr>
  6645. <td>comment</td>
  6646. <td>path</td>
  6647. <td>string</td>
  6648. <td>true</td>
  6649. <td>the ID of the comment to retrieve</td>
  6650. </tr>
  6651. </tbody>
  6652. </table>
  6653. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6654. <p><strong>board</strong>: the board ID of the card</p>
  6655. <p><strong>card</strong>: the ID of the card</p>
  6656. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6657. <blockquote>
  6658. <p>Example responses</p>
  6659. </blockquote>
  6660. <blockquote>
  6661. <p>200 Response</p>
  6662. </blockquote>
  6663. <pre class="highlight tab tab-json"><code>{
  6664. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6665. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6666. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6667. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6668. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6669. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6670. }
  6671. </code></pre>
  6672. <h3 id="get_comment-responses">Responses</h3>
  6673. <table>
  6674. <thead>
  6675. <tr>
  6676. <th>Status</th>
  6677. <th>Meaning</th>
  6678. <th>Description</th>
  6679. <th>Schema</th>
  6680. </tr>
  6681. </thead>
  6682. <tbody>
  6683. <tr>
  6684. <td>200</td>
  6685. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6686. <td>200 response</td>
  6687. <td><a href="#schemacardcomments">CardComments</a></td>
  6688. </tr>
  6689. </tbody>
  6690. </table>
  6691. <aside class="warning">
  6692. To perform this operation, you must be authenticated by means of one of the following methods:
  6693. UserSecurity
  6694. </aside>
  6695. <h2 id="delete_comment">delete_comment</h2>
  6696. <p><a id="opIddelete_comment"></a></p>
  6697. <blockquote>
  6698. <p>Code samples</p>
  6699. </blockquote>
  6700. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6701. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6702. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6703. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6704. </code></pre>
  6705. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/cards/{card}/comments/{comment}</span> <span class="hljs-meta">HTTP/1.1</span>
  6706. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6707. </span></code></pre>
  6708. <pre class="highlight tab tab-javascript"><code>
  6709. <span class="hljs-keyword">const</span> headers = {
  6710. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6711. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6712. };
  6713. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6714. {
  6715. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6716. <span class="hljs-attr">headers</span>: headers
  6717. })
  6718. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6719. <span class="hljs-keyword">return</span> res.json();
  6720. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6721. <span class="hljs-built_in">console</span>.log(body);
  6722. });
  6723. </code></pre>
  6724. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6725. <span class="hljs-keyword">const</span> headers = {
  6726. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6727. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6728. };
  6729. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6730. {
  6731. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6732. <span class="hljs-attr">headers</span>: headers
  6733. })
  6734. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6735. <span class="hljs-keyword">return</span> res.json();
  6736. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6737. <span class="hljs-built_in">console</span>.log(body);
  6738. });
  6739. </code></pre>
  6740. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6741. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6742. headers = {
  6743. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6744. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6745. }
  6746. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6747. <span class="hljs-symbol">params:</span> {
  6748. }, <span class="hljs-symbol">headers:</span> headers
  6749. p JSON.parse(result)
  6750. </code></pre>
  6751. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6752. headers = {
  6753. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6754. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6755. }
  6756. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6757. <span class="hljs-built_in">print</span>(r.json())
  6758. </code></pre>
  6759. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>);
  6760. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6761. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6762. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6763. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6764. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6765. String inputLine;
  6766. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6767. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6768. response.append(inputLine);
  6769. }
  6770. in.close();
  6771. System.out.println(response.toString());
  6772. </code></pre>
  6773. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6774. <span class="hljs-keyword">import</span> (
  6775. <span class="hljs-string">&quot;bytes&quot;</span>
  6776. <span class="hljs-string">&quot;net/http&quot;</span>
  6777. )
  6778. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6779. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6780. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6781. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6782. }
  6783. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6784. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>, data)
  6785. req.Header = headers
  6786. client := &amp;http.Client{}
  6787. resp, err := client.Do(req)
  6788. <span class="hljs-comment">// ...</span>
  6789. }
  6790. </code></pre>
  6791. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6792. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6793. );
  6794. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6795. <span class="hljs-comment">// Define array of request body.</span>
  6796. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6797. <span class="hljs-keyword">try</span> {
  6798. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, <span class="hljs-keyword">array</span>(
  6799. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6800. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6801. )
  6802. );
  6803. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6804. }
  6805. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6806. <span class="hljs-comment">// handle exception or api errors.</span>
  6807. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6808. }
  6809. <span class="hljs-comment">// ...</span>
  6810. </code></pre>
  6811. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6812. <p><em>Delete a comment on a card</em></p>
  6813. <h3 id="delete_comment-parameters">Parameters</h3>
  6814. <table>
  6815. <thead>
  6816. <tr>
  6817. <th>Name</th>
  6818. <th>In</th>
  6819. <th>Type</th>
  6820. <th>Required</th>
  6821. <th>Description</th>
  6822. </tr>
  6823. </thead>
  6824. <tbody>
  6825. <tr>
  6826. <td>board</td>
  6827. <td>path</td>
  6828. <td>string</td>
  6829. <td>true</td>
  6830. <td>the board ID of the card</td>
  6831. </tr>
  6832. <tr>
  6833. <td>card</td>
  6834. <td>path</td>
  6835. <td>string</td>
  6836. <td>true</td>
  6837. <td>the ID of the card</td>
  6838. </tr>
  6839. <tr>
  6840. <td>comment</td>
  6841. <td>path</td>
  6842. <td>string</td>
  6843. <td>true</td>
  6844. <td>the ID of the comment to delete</td>
  6845. </tr>
  6846. </tbody>
  6847. </table>
  6848. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6849. <p><strong>board</strong>: the board ID of the card</p>
  6850. <p><strong>card</strong>: the ID of the card</p>
  6851. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6852. <blockquote>
  6853. <p>Example responses</p>
  6854. </blockquote>
  6855. <blockquote>
  6856. <p>200 Response</p>
  6857. </blockquote>
  6858. <pre class="highlight tab tab-json"><code>{
  6859. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6860. }
  6861. </code></pre>
  6862. <h3 id="delete_comment-responses">Responses</h3>
  6863. <table>
  6864. <thead>
  6865. <tr>
  6866. <th>Status</th>
  6867. <th>Meaning</th>
  6868. <th>Description</th>
  6869. <th>Schema</th>
  6870. </tr>
  6871. </thead>
  6872. <tbody>
  6873. <tr>
  6874. <td>200</td>
  6875. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6876. <td>200 response</td>
  6877. <td>Inline</td>
  6878. </tr>
  6879. </tbody>
  6880. </table>
  6881. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6882. <p>Status Code <strong>200</strong></p>
  6883. <table>
  6884. <thead>
  6885. <tr>
  6886. <th>Name</th>
  6887. <th>Type</th>
  6888. <th>Required</th>
  6889. <th>Restrictions</th>
  6890. <th>Description</th>
  6891. </tr>
  6892. </thead>
  6893. <tbody>
  6894. <tr>
  6895. <td>» _id</td>
  6896. <td>string</td>
  6897. <td>false</td>
  6898. <td>none</td>
  6899. <td>none</td>
  6900. </tr>
  6901. </tbody>
  6902. </table>
  6903. <aside class="warning">
  6904. To perform this operation, you must be authenticated by means of one of the following methods:
  6905. UserSecurity
  6906. </aside>
  6907. <h1 id="wekan-rest-api-cards">Cards</h1>
  6908. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6909. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6910. <blockquote>
  6911. <p>Code samples</p>
  6912. </blockquote>
  6913. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6914. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6915. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6916. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6917. </code></pre>
  6918. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</span> <span class="hljs-meta">HTTP/1.1</span>
  6919. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6920. </span></code></pre>
  6921. <pre class="highlight tab tab-javascript"><code>
  6922. <span class="hljs-keyword">const</span> headers = {
  6923. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6924. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6925. };
  6926. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6927. {
  6928. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6929. <span class="hljs-attr">headers</span>: headers
  6930. })
  6931. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6932. <span class="hljs-keyword">return</span> res.json();
  6933. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6934. <span class="hljs-built_in">console</span>.log(body);
  6935. });
  6936. </code></pre>
  6937. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  6938. <span class="hljs-keyword">const</span> headers = {
  6939. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6940. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6941. };
  6942. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6943. {
  6944. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6945. <span class="hljs-attr">headers</span>: headers
  6946. })
  6947. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6948. <span class="hljs-keyword">return</span> res.json();
  6949. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6950. <span class="hljs-built_in">console</span>.log(body);
  6951. });
  6952. </code></pre>
  6953. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6954. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6955. headers = {
  6956. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6957. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6958. }
  6959. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6960. <span class="hljs-symbol">params:</span> {
  6961. }, <span class="hljs-symbol">headers:</span> headers
  6962. p JSON.parse(result)
  6963. </code></pre>
  6964. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6965. headers = {
  6966. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6967. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6968. }
  6969. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  6970. <span class="hljs-built_in">print</span>(r.json())
  6971. </code></pre>
  6972. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&quot;</span>);
  6973. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6974. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6975. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6976. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6977. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6978. String inputLine;
  6979. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6980. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6981. response.append(inputLine);
  6982. }
  6983. in.close();
  6984. System.out.println(response.toString());
  6985. </code></pre>
  6986. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6987. <span class="hljs-keyword">import</span> (
  6988. <span class="hljs-string">&quot;bytes&quot;</span>
  6989. <span class="hljs-string">&quot;net/http&quot;</span>
  6990. )
  6991. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6992. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6993. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6994. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6995. }
  6996. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6997. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&quot;</span>, data)
  6998. req.Header = headers
  6999. client := &amp;http.Client{}
  7000. resp, err := client.Do(req)
  7001. <span class="hljs-comment">// ...</span>
  7002. }
  7003. </code></pre>
  7004. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7005. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7006. );
  7007. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7008. <span class="hljs-comment">// Define array of request body.</span>
  7009. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7010. <span class="hljs-keyword">try</span> {
  7011. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, <span class="hljs-keyword">array</span>(
  7012. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7013. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7014. )
  7015. );
  7016. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7017. }
  7018. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7019. <span class="hljs-comment">// handle exception or api errors.</span>
  7020. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7021. }
  7022. <span class="hljs-comment">// ...</span>
  7023. </code></pre>
  7024. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7025. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7026. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7027. <table>
  7028. <thead>
  7029. <tr>
  7030. <th>Name</th>
  7031. <th>In</th>
  7032. <th>Type</th>
  7033. <th>Required</th>
  7034. <th>Description</th>
  7035. </tr>
  7036. </thead>
  7037. <tbody>
  7038. <tr>
  7039. <td>board</td>
  7040. <td>path</td>
  7041. <td>string</td>
  7042. <td>true</td>
  7043. <td>the board ID</td>
  7044. </tr>
  7045. <tr>
  7046. <td>customField</td>
  7047. <td>path</td>
  7048. <td>string</td>
  7049. <td>true</td>
  7050. <td>the list ID</td>
  7051. </tr>
  7052. <tr>
  7053. <td>customFieldValue</td>
  7054. <td>path</td>
  7055. <td>string</td>
  7056. <td>true</td>
  7057. <td>the value to look for</td>
  7058. </tr>
  7059. </tbody>
  7060. </table>
  7061. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7062. <p><strong>board</strong>: the board ID</p>
  7063. <p><strong>customField</strong>: the list ID</p>
  7064. <p><strong>customFieldValue</strong>: the value to look for</p>
  7065. <blockquote>
  7066. <p>Example responses</p>
  7067. </blockquote>
  7068. <blockquote>
  7069. <p>200 Response</p>
  7070. </blockquote>
  7071. <pre class="highlight tab tab-json"><code>[
  7072. {
  7073. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7074. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7075. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7076. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7077. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7078. }
  7079. ]
  7080. </code></pre>
  7081. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7082. <table>
  7083. <thead>
  7084. <tr>
  7085. <th>Status</th>
  7086. <th>Meaning</th>
  7087. <th>Description</th>
  7088. <th>Schema</th>
  7089. </tr>
  7090. </thead>
  7091. <tbody>
  7092. <tr>
  7093. <td>200</td>
  7094. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7095. <td>200 response</td>
  7096. <td>Inline</td>
  7097. </tr>
  7098. </tbody>
  7099. </table>
  7100. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7101. <p>Status Code <strong>200</strong></p>
  7102. <table>
  7103. <thead>
  7104. <tr>
  7105. <th>Name</th>
  7106. <th>Type</th>
  7107. <th>Required</th>
  7108. <th>Restrictions</th>
  7109. <th>Description</th>
  7110. </tr>
  7111. </thead>
  7112. <tbody>
  7113. <tr>
  7114. <td>» _id</td>
  7115. <td>string</td>
  7116. <td>false</td>
  7117. <td>none</td>
  7118. <td>none</td>
  7119. </tr>
  7120. <tr>
  7121. <td>» title</td>
  7122. <td>string</td>
  7123. <td>false</td>
  7124. <td>none</td>
  7125. <td>none</td>
  7126. </tr>
  7127. <tr>
  7128. <td>» description</td>
  7129. <td>string</td>
  7130. <td>false</td>
  7131. <td>none</td>
  7132. <td>none</td>
  7133. </tr>
  7134. <tr>
  7135. <td>» listId</td>
  7136. <td>string</td>
  7137. <td>false</td>
  7138. <td>none</td>
  7139. <td>none</td>
  7140. </tr>
  7141. <tr>
  7142. <td>» swinlaneId</td>
  7143. <td>string</td>
  7144. <td>false</td>
  7145. <td>none</td>
  7146. <td>none</td>
  7147. </tr>
  7148. </tbody>
  7149. </table>
  7150. <aside class="warning">
  7151. To perform this operation, you must be authenticated by means of one of the following methods:
  7152. UserSecurity
  7153. </aside>
  7154. <h2 id="get_all_cards">get_all_cards</h2>
  7155. <p><a id="opIdget_all_cards"></a></p>
  7156. <blockquote>
  7157. <p>Code samples</p>
  7158. </blockquote>
  7159. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7160. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7161. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7162. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7163. </code></pre>
  7164. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> <span class="hljs-meta">HTTP/1.1</span>
  7165. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7166. </span></code></pre>
  7167. <pre class="highlight tab tab-javascript"><code>
  7168. <span class="hljs-keyword">const</span> headers = {
  7169. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7170. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7171. };
  7172. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7173. {
  7174. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7175. <span class="hljs-attr">headers</span>: headers
  7176. })
  7177. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7178. <span class="hljs-keyword">return</span> res.json();
  7179. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7180. <span class="hljs-built_in">console</span>.log(body);
  7181. });
  7182. </code></pre>
  7183. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7184. <span class="hljs-keyword">const</span> headers = {
  7185. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7186. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7187. };
  7188. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7189. {
  7190. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7191. <span class="hljs-attr">headers</span>: headers
  7192. })
  7193. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7194. <span class="hljs-keyword">return</span> res.json();
  7195. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7196. <span class="hljs-built_in">console</span>.log(body);
  7197. });
  7198. </code></pre>
  7199. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7200. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7201. headers = {
  7202. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7203. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7204. }
  7205. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7206. <span class="hljs-symbol">params:</span> {
  7207. }, <span class="hljs-symbol">headers:</span> headers
  7208. p JSON.parse(result)
  7209. </code></pre>
  7210. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7211. headers = {
  7212. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7213. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7214. }
  7215. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7216. <span class="hljs-built_in">print</span>(r.json())
  7217. </code></pre>
  7218. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards&quot;</span>);
  7219. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7220. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7221. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7222. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7223. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7224. String inputLine;
  7225. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7226. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7227. response.append(inputLine);
  7228. }
  7229. in.close();
  7230. System.out.println(response.toString());
  7231. </code></pre>
  7232. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7233. <span class="hljs-keyword">import</span> (
  7234. <span class="hljs-string">&quot;bytes&quot;</span>
  7235. <span class="hljs-string">&quot;net/http&quot;</span>
  7236. )
  7237. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7238. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7239. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7240. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7241. }
  7242. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7243. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards&quot;</span>, data)
  7244. req.Header = headers
  7245. client := &amp;http.Client{}
  7246. resp, err := client.Do(req)
  7247. <span class="hljs-comment">// ...</span>
  7248. }
  7249. </code></pre>
  7250. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7251. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7252. );
  7253. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7254. <span class="hljs-comment">// Define array of request body.</span>
  7255. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7256. <span class="hljs-keyword">try</span> {
  7257. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, <span class="hljs-keyword">array</span>(
  7258. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7259. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7260. )
  7261. );
  7262. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7263. }
  7264. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7265. <span class="hljs-comment">// handle exception or api errors.</span>
  7266. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7267. }
  7268. <span class="hljs-comment">// ...</span>
  7269. </code></pre>
  7270. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7271. <p><em>Get all Cards attached to a List</em></p>
  7272. <h3 id="get_all_cards-parameters">Parameters</h3>
  7273. <table>
  7274. <thead>
  7275. <tr>
  7276. <th>Name</th>
  7277. <th>In</th>
  7278. <th>Type</th>
  7279. <th>Required</th>
  7280. <th>Description</th>
  7281. </tr>
  7282. </thead>
  7283. <tbody>
  7284. <tr>
  7285. <td>board</td>
  7286. <td>path</td>
  7287. <td>string</td>
  7288. <td>true</td>
  7289. <td>the board ID</td>
  7290. </tr>
  7291. <tr>
  7292. <td>list</td>
  7293. <td>path</td>
  7294. <td>string</td>
  7295. <td>true</td>
  7296. <td>the list ID</td>
  7297. </tr>
  7298. </tbody>
  7299. </table>
  7300. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7301. <p><strong>board</strong>: the board ID</p>
  7302. <p><strong>list</strong>: the list ID</p>
  7303. <blockquote>
  7304. <p>Example responses</p>
  7305. </blockquote>
  7306. <blockquote>
  7307. <p>200 Response</p>
  7308. </blockquote>
  7309. <pre class="highlight tab tab-json"><code>[
  7310. {
  7311. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7312. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7313. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7314. }
  7315. ]
  7316. </code></pre>
  7317. <h3 id="get_all_cards-responses">Responses</h3>
  7318. <table>
  7319. <thead>
  7320. <tr>
  7321. <th>Status</th>
  7322. <th>Meaning</th>
  7323. <th>Description</th>
  7324. <th>Schema</th>
  7325. </tr>
  7326. </thead>
  7327. <tbody>
  7328. <tr>
  7329. <td>200</td>
  7330. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7331. <td>200 response</td>
  7332. <td>Inline</td>
  7333. </tr>
  7334. </tbody>
  7335. </table>
  7336. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7337. <p>Status Code <strong>200</strong></p>
  7338. <table>
  7339. <thead>
  7340. <tr>
  7341. <th>Name</th>
  7342. <th>Type</th>
  7343. <th>Required</th>
  7344. <th>Restrictions</th>
  7345. <th>Description</th>
  7346. </tr>
  7347. </thead>
  7348. <tbody>
  7349. <tr>
  7350. <td>» _id</td>
  7351. <td>string</td>
  7352. <td>false</td>
  7353. <td>none</td>
  7354. <td>none</td>
  7355. </tr>
  7356. <tr>
  7357. <td>» title</td>
  7358. <td>string</td>
  7359. <td>false</td>
  7360. <td>none</td>
  7361. <td>none</td>
  7362. </tr>
  7363. <tr>
  7364. <td>» description</td>
  7365. <td>string</td>
  7366. <td>false</td>
  7367. <td>none</td>
  7368. <td>none</td>
  7369. </tr>
  7370. </tbody>
  7371. </table>
  7372. <aside class="warning">
  7373. To perform this operation, you must be authenticated by means of one of the following methods:
  7374. UserSecurity
  7375. </aside>
  7376. <h2 id="new_card">new_card</h2>
  7377. <p><a id="opIdnew_card"></a></p>
  7378. <blockquote>
  7379. <p>Code samples</p>
  7380. </blockquote>
  7381. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7382. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7383. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7384. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7385. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7386. </code></pre>
  7387. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards</span> <span class="hljs-meta">HTTP/1.1</span>
  7388. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7389. Accept: application/json
  7390. </span></code></pre>
  7391. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7392. &quot;authorId&quot;: &quot;string&quot;,
  7393. &quot;members&quot;: &quot;string&quot;,
  7394. &quot;assignees&quot;: &quot;string&quot;,
  7395. &quot;title&quot;: &quot;string&quot;,
  7396. &quot;description&quot;: &quot;string&quot;,
  7397. &quot;swimlaneId&quot;: &quot;string&quot;
  7398. }&#x27;</span>;
  7399. <span class="hljs-keyword">const</span> headers = {
  7400. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7401. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7402. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7403. };
  7404. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7405. {
  7406. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7407. <span class="hljs-attr">body</span>: inputBody,
  7408. <span class="hljs-attr">headers</span>: headers
  7409. })
  7410. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7411. <span class="hljs-keyword">return</span> res.json();
  7412. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7413. <span class="hljs-built_in">console</span>.log(body);
  7414. });
  7415. </code></pre>
  7416. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7417. <span class="hljs-keyword">const</span> inputBody = {
  7418. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7419. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7420. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7421. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7422. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7423. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7424. };
  7425. <span class="hljs-keyword">const</span> headers = {
  7426. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7427. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7428. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7429. };
  7430. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7431. {
  7432. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7433. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7434. <span class="hljs-attr">headers</span>: headers
  7435. })
  7436. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7437. <span class="hljs-keyword">return</span> res.json();
  7438. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7439. <span class="hljs-built_in">console</span>.log(body);
  7440. });
  7441. </code></pre>
  7442. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7443. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7444. headers = {
  7445. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7446. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7447. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7448. }
  7449. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7450. <span class="hljs-symbol">params:</span> {
  7451. }, <span class="hljs-symbol">headers:</span> headers
  7452. p JSON.parse(result)
  7453. </code></pre>
  7454. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7455. headers = {
  7456. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7457. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7458. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7459. }
  7460. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7461. <span class="hljs-built_in">print</span>(r.json())
  7462. </code></pre>
  7463. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards&quot;</span>);
  7464. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7465. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7466. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7467. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7468. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7469. String inputLine;
  7470. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7471. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7472. response.append(inputLine);
  7473. }
  7474. in.close();
  7475. System.out.println(response.toString());
  7476. </code></pre>
  7477. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7478. <span class="hljs-keyword">import</span> (
  7479. <span class="hljs-string">&quot;bytes&quot;</span>
  7480. <span class="hljs-string">&quot;net/http&quot;</span>
  7481. )
  7482. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7483. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7484. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  7485. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7486. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7487. }
  7488. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7489. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards&quot;</span>, data)
  7490. req.Header = headers
  7491. client := &amp;http.Client{}
  7492. resp, err := client.Do(req)
  7493. <span class="hljs-comment">// ...</span>
  7494. }
  7495. </code></pre>
  7496. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7497. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7498. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7499. );
  7500. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7501. <span class="hljs-comment">// Define array of request body.</span>
  7502. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7503. <span class="hljs-keyword">try</span> {
  7504. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, <span class="hljs-keyword">array</span>(
  7505. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7506. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7507. )
  7508. );
  7509. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7510. }
  7511. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7512. <span class="hljs-comment">// handle exception or api errors.</span>
  7513. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7514. }
  7515. <span class="hljs-comment">// ...</span>
  7516. </code></pre>
  7517. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7518. <p><em>Create a new Card</em></p>
  7519. <blockquote>
  7520. <p>Body parameter</p>
  7521. </blockquote>
  7522. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7523. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7524. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7525. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7526. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7527. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7528. </code></pre>
  7529. <h3 id="new_card-parameters">Parameters</h3>
  7530. <table>
  7531. <thead>
  7532. <tr>
  7533. <th>Name</th>
  7534. <th>In</th>
  7535. <th>Type</th>
  7536. <th>Required</th>
  7537. <th>Description</th>
  7538. </tr>
  7539. </thead>
  7540. <tbody>
  7541. <tr>
  7542. <td>board</td>
  7543. <td>path</td>
  7544. <td>string</td>
  7545. <td>true</td>
  7546. <td>the board ID of the new card</td>
  7547. </tr>
  7548. <tr>
  7549. <td>list</td>
  7550. <td>path</td>
  7551. <td>string</td>
  7552. <td>true</td>
  7553. <td>the list ID of the new card</td>
  7554. </tr>
  7555. <tr>
  7556. <td>body</td>
  7557. <td>body</td>
  7558. <td>object</td>
  7559. <td>true</td>
  7560. <td>none</td>
  7561. </tr>
  7562. <tr>
  7563. <td>» authorId</td>
  7564. <td>body</td>
  7565. <td>string</td>
  7566. <td>true</td>
  7567. <td>the authorId value</td>
  7568. </tr>
  7569. <tr>
  7570. <td>» members</td>
  7571. <td>body</td>
  7572. <td>string</td>
  7573. <td>false</td>
  7574. <td>the member IDs list of the new card</td>
  7575. </tr>
  7576. <tr>
  7577. <td>» assignees</td>
  7578. <td>body</td>
  7579. <td>string</td>
  7580. <td>false</td>
  7581. <td>the array of maximum one ID of assignee of the new card</td>
  7582. </tr>
  7583. <tr>
  7584. <td>» title</td>
  7585. <td>body</td>
  7586. <td>string</td>
  7587. <td>true</td>
  7588. <td>the title of the new card</td>
  7589. </tr>
  7590. <tr>
  7591. <td>» description</td>
  7592. <td>body</td>
  7593. <td>string</td>
  7594. <td>true</td>
  7595. <td>the description of the new card</td>
  7596. </tr>
  7597. <tr>
  7598. <td>» swimlaneId</td>
  7599. <td>body</td>
  7600. <td>string</td>
  7601. <td>true</td>
  7602. <td>the swimlane ID of the new card</td>
  7603. </tr>
  7604. </tbody>
  7605. </table>
  7606. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7607. <p><strong>board</strong>: the board ID of the new card</p>
  7608. <p><strong>list</strong>: the list ID of the new card</p>
  7609. <blockquote>
  7610. <p>Example responses</p>
  7611. </blockquote>
  7612. <blockquote>
  7613. <p>200 Response</p>
  7614. </blockquote>
  7615. <pre class="highlight tab tab-json"><code>{
  7616. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7617. }
  7618. </code></pre>
  7619. <h3 id="new_card-responses">Responses</h3>
  7620. <table>
  7621. <thead>
  7622. <tr>
  7623. <th>Status</th>
  7624. <th>Meaning</th>
  7625. <th>Description</th>
  7626. <th>Schema</th>
  7627. </tr>
  7628. </thead>
  7629. <tbody>
  7630. <tr>
  7631. <td>200</td>
  7632. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7633. <td>200 response</td>
  7634. <td>Inline</td>
  7635. </tr>
  7636. </tbody>
  7637. </table>
  7638. <h3 id="new_card-responseschema">Response Schema</h3>
  7639. <p>Status Code <strong>200</strong></p>
  7640. <table>
  7641. <thead>
  7642. <tr>
  7643. <th>Name</th>
  7644. <th>Type</th>
  7645. <th>Required</th>
  7646. <th>Restrictions</th>
  7647. <th>Description</th>
  7648. </tr>
  7649. </thead>
  7650. <tbody>
  7651. <tr>
  7652. <td>» _id</td>
  7653. <td>string</td>
  7654. <td>false</td>
  7655. <td>none</td>
  7656. <td>none</td>
  7657. </tr>
  7658. </tbody>
  7659. </table>
  7660. <aside class="warning">
  7661. To perform this operation, you must be authenticated by means of one of the following methods:
  7662. UserSecurity
  7663. </aside>
  7664. <h2 id="get_card">get_card</h2>
  7665. <p><a id="opIdget_card"></a></p>
  7666. <blockquote>
  7667. <p>Code samples</p>
  7668. </blockquote>
  7669. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7670. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7671. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7672. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7673. </code></pre>
  7674. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> <span class="hljs-meta">HTTP/1.1</span>
  7675. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7676. </span></code></pre>
  7677. <pre class="highlight tab tab-javascript"><code>
  7678. <span class="hljs-keyword">const</span> headers = {
  7679. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7680. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7681. };
  7682. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7683. {
  7684. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7685. <span class="hljs-attr">headers</span>: headers
  7686. })
  7687. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7688. <span class="hljs-keyword">return</span> res.json();
  7689. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7690. <span class="hljs-built_in">console</span>.log(body);
  7691. });
  7692. </code></pre>
  7693. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7694. <span class="hljs-keyword">const</span> headers = {
  7695. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7696. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7697. };
  7698. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7699. {
  7700. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7701. <span class="hljs-attr">headers</span>: headers
  7702. })
  7703. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7704. <span class="hljs-keyword">return</span> res.json();
  7705. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7706. <span class="hljs-built_in">console</span>.log(body);
  7707. });
  7708. </code></pre>
  7709. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7710. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7711. headers = {
  7712. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7713. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7714. }
  7715. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7716. <span class="hljs-symbol">params:</span> {
  7717. }, <span class="hljs-symbol">headers:</span> headers
  7718. p JSON.parse(result)
  7719. </code></pre>
  7720. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7721. headers = {
  7722. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7723. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7724. }
  7725. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  7726. <span class="hljs-built_in">print</span>(r.json())
  7727. </code></pre>
  7728. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>);
  7729. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7730. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7731. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7732. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7733. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7734. String inputLine;
  7735. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7736. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7737. response.append(inputLine);
  7738. }
  7739. in.close();
  7740. System.out.println(response.toString());
  7741. </code></pre>
  7742. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7743. <span class="hljs-keyword">import</span> (
  7744. <span class="hljs-string">&quot;bytes&quot;</span>
  7745. <span class="hljs-string">&quot;net/http&quot;</span>
  7746. )
  7747. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7748. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7749. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7750. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7751. }
  7752. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7753. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>, data)
  7754. req.Header = headers
  7755. client := &amp;http.Client{}
  7756. resp, err := client.Do(req)
  7757. <span class="hljs-comment">// ...</span>
  7758. }
  7759. </code></pre>
  7760. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7761. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7762. );
  7763. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7764. <span class="hljs-comment">// Define array of request body.</span>
  7765. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7766. <span class="hljs-keyword">try</span> {
  7767. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, <span class="hljs-keyword">array</span>(
  7768. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7769. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7770. )
  7771. );
  7772. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7773. }
  7774. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7775. <span class="hljs-comment">// handle exception or api errors.</span>
  7776. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7777. }
  7778. <span class="hljs-comment">// ...</span>
  7779. </code></pre>
  7780. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  7781. <p><em>Get a Card</em></p>
  7782. <h3 id="get_card-parameters">Parameters</h3>
  7783. <table>
  7784. <thead>
  7785. <tr>
  7786. <th>Name</th>
  7787. <th>In</th>
  7788. <th>Type</th>
  7789. <th>Required</th>
  7790. <th>Description</th>
  7791. </tr>
  7792. </thead>
  7793. <tbody>
  7794. <tr>
  7795. <td>board</td>
  7796. <td>path</td>
  7797. <td>string</td>
  7798. <td>true</td>
  7799. <td>the board ID</td>
  7800. </tr>
  7801. <tr>
  7802. <td>list</td>
  7803. <td>path</td>
  7804. <td>string</td>
  7805. <td>true</td>
  7806. <td>the list ID of the card</td>
  7807. </tr>
  7808. <tr>
  7809. <td>card</td>
  7810. <td>path</td>
  7811. <td>string</td>
  7812. <td>true</td>
  7813. <td>the card ID</td>
  7814. </tr>
  7815. </tbody>
  7816. </table>
  7817. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7818. <p><strong>board</strong>: the board ID</p>
  7819. <p><strong>list</strong>: the list ID of the card</p>
  7820. <p><strong>card</strong>: the card ID</p>
  7821. <blockquote>
  7822. <p>Example responses</p>
  7823. </blockquote>
  7824. <blockquote>
  7825. <p>200 Response</p>
  7826. </blockquote>
  7827. <pre class="highlight tab tab-json"><code>{
  7828. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7829. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  7830. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7831. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7832. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7833. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7834. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7835. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7836. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  7837. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7838. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7839. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  7840. {}
  7841. ],
  7842. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7843. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7844. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7845. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7846. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  7847. <span class="hljs-string">&quot;string&quot;</span>
  7848. ],
  7849. <span class="hljs-attr">&quot;members&quot;</span>: [
  7850. <span class="hljs-string">&quot;string&quot;</span>
  7851. ],
  7852. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  7853. <span class="hljs-string">&quot;string&quot;</span>
  7854. ],
  7855. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7856. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7857. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7858. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7859. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  7860. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  7861. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7862. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  7863. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  7864. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7865. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7866. <span class="hljs-attr">&quot;vote&quot;</span>: {
  7867. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7868. <span class="hljs-attr">&quot;positive&quot;</span>: [
  7869. <span class="hljs-string">&quot;string&quot;</span>
  7870. ],
  7871. <span class="hljs-attr">&quot;negative&quot;</span>: [
  7872. <span class="hljs-string">&quot;string&quot;</span>
  7873. ],
  7874. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7875. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  7876. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  7877. }
  7878. }
  7879. </code></pre>
  7880. <h3 id="get_card-responses">Responses</h3>
  7881. <table>
  7882. <thead>
  7883. <tr>
  7884. <th>Status</th>
  7885. <th>Meaning</th>
  7886. <th>Description</th>
  7887. <th>Schema</th>
  7888. </tr>
  7889. </thead>
  7890. <tbody>
  7891. <tr>
  7892. <td>200</td>
  7893. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7894. <td>200 response</td>
  7895. <td><a href="#schemacards">Cards</a></td>
  7896. </tr>
  7897. </tbody>
  7898. </table>
  7899. <aside class="warning">
  7900. To perform this operation, you must be authenticated by means of one of the following methods:
  7901. UserSecurity
  7902. </aside>
  7903. <h2 id="edit_card">edit_card</h2>
  7904. <p><a id="opIdedit_card"></a></p>
  7905. <blockquote>
  7906. <p>Code samples</p>
  7907. </blockquote>
  7908. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7909. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  7910. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7911. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7912. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7913. </code></pre>
  7914. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> <span class="hljs-meta">HTTP/1.1</span>
  7915. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7916. Accept: application/json
  7917. </span></code></pre>
  7918. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7919. &quot;title&quot;: &quot;string&quot;,
  7920. &quot;sort&quot;: &quot;string&quot;,
  7921. &quot;parentId&quot;: &quot;string&quot;,
  7922. &quot;description&quot;: &quot;string&quot;,
  7923. &quot;color&quot;: &quot;string&quot;,
  7924. &quot;vote&quot;: {},
  7925. &quot;labelIds&quot;: &quot;string&quot;,
  7926. &quot;requestedBy&quot;: &quot;string&quot;,
  7927. &quot;assignedBy&quot;: &quot;string&quot;,
  7928. &quot;receivedAt&quot;: &quot;string&quot;,
  7929. &quot;startAt&quot;: &quot;string&quot;,
  7930. &quot;dueAt&quot;: &quot;string&quot;,
  7931. &quot;endAt&quot;: &quot;string&quot;,
  7932. &quot;spentTime&quot;: &quot;string&quot;,
  7933. &quot;isOverTime&quot;: true,
  7934. &quot;customFields&quot;: &quot;string&quot;,
  7935. &quot;members&quot;: &quot;string&quot;,
  7936. &quot;assignees&quot;: &quot;string&quot;,
  7937. &quot;swimlaneId&quot;: &quot;string&quot;,
  7938. &quot;listId&quot;: &quot;string&quot;,
  7939. &quot;authorId&quot;: &quot;string&quot;
  7940. }&#x27;</span>;
  7941. <span class="hljs-keyword">const</span> headers = {
  7942. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7943. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7944. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7945. };
  7946. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7947. {
  7948. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  7949. <span class="hljs-attr">body</span>: inputBody,
  7950. <span class="hljs-attr">headers</span>: headers
  7951. })
  7952. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7953. <span class="hljs-keyword">return</span> res.json();
  7954. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7955. <span class="hljs-built_in">console</span>.log(body);
  7956. });
  7957. </code></pre>
  7958. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  7959. <span class="hljs-keyword">const</span> inputBody = {
  7960. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7961. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7962. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7963. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7964. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7965. <span class="hljs-string">&quot;vote&quot;</span>: {},
  7966. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7967. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7968. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7969. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7970. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7971. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7972. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7973. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7974. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  7975. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7976. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7977. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7978. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7979. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7980. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7981. };
  7982. <span class="hljs-keyword">const</span> headers = {
  7983. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7984. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7985. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7986. };
  7987. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7988. {
  7989. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  7990. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7991. <span class="hljs-attr">headers</span>: headers
  7992. })
  7993. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7994. <span class="hljs-keyword">return</span> res.json();
  7995. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7996. <span class="hljs-built_in">console</span>.log(body);
  7997. });
  7998. </code></pre>
  7999. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8000. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8001. headers = {
  8002. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8003. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8004. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8005. }
  8006. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8007. <span class="hljs-symbol">params:</span> {
  8008. }, <span class="hljs-symbol">headers:</span> headers
  8009. p JSON.parse(result)
  8010. </code></pre>
  8011. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8012. headers = {
  8013. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8014. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8015. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8016. }
  8017. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8018. <span class="hljs-built_in">print</span>(r.json())
  8019. </code></pre>
  8020. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>);
  8021. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8022. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8023. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8024. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8025. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8026. String inputLine;
  8027. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8028. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8029. response.append(inputLine);
  8030. }
  8031. in.close();
  8032. System.out.println(response.toString());
  8033. </code></pre>
  8034. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8035. <span class="hljs-keyword">import</span> (
  8036. <span class="hljs-string">&quot;bytes&quot;</span>
  8037. <span class="hljs-string">&quot;net/http&quot;</span>
  8038. )
  8039. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8040. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8041. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  8042. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8043. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8044. }
  8045. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8046. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>, data)
  8047. req.Header = headers
  8048. client := &amp;http.Client{}
  8049. resp, err := client.Do(req)
  8050. <span class="hljs-comment">// ...</span>
  8051. }
  8052. </code></pre>
  8053. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8054. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8055. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8056. );
  8057. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8058. <span class="hljs-comment">// Define array of request body.</span>
  8059. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8060. <span class="hljs-keyword">try</span> {
  8061. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, <span class="hljs-keyword">array</span>(
  8062. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8063. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8064. )
  8065. );
  8066. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8067. }
  8068. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8069. <span class="hljs-comment">// handle exception or api errors.</span>
  8070. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8071. }
  8072. <span class="hljs-comment">// ...</span>
  8073. </code></pre>
  8074. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8075. <p><em>Edit Fields in a Card</em></p>
  8076. <p>Edit a card</p>
  8077. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8078. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8079. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8080. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8081. <code>indigo</code>:</p>
  8082. <img src="/card-colors.png" alt="Wekan card colors" />
  8083. <p>Note: setting the color to white has the same effect than removing it.</p>
  8084. <blockquote>
  8085. <p>Body parameter</p>
  8086. </blockquote>
  8087. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8088. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8089. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8090. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8091. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8092. <span class="hljs-attr">vote:</span> {}
  8093. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8094. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8095. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8096. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8097. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8098. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8099. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8100. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8101. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8102. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8103. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8104. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8105. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8106. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8107. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8108. </code></pre>
  8109. <h3 id="edit_card-parameters">Parameters</h3>
  8110. <table>
  8111. <thead>
  8112. <tr>
  8113. <th>Name</th>
  8114. <th>In</th>
  8115. <th>Type</th>
  8116. <th>Required</th>
  8117. <th>Description</th>
  8118. </tr>
  8119. </thead>
  8120. <tbody>
  8121. <tr>
  8122. <td>board</td>
  8123. <td>path</td>
  8124. <td>string</td>
  8125. <td>true</td>
  8126. <td>the board ID of the card</td>
  8127. </tr>
  8128. <tr>
  8129. <td>list</td>
  8130. <td>path</td>
  8131. <td>string</td>
  8132. <td>true</td>
  8133. <td>the list ID of the card</td>
  8134. </tr>
  8135. <tr>
  8136. <td>card</td>
  8137. <td>path</td>
  8138. <td>string</td>
  8139. <td>true</td>
  8140. <td>the ID of the card</td>
  8141. </tr>
  8142. <tr>
  8143. <td>body</td>
  8144. <td>body</td>
  8145. <td>object</td>
  8146. <td>false</td>
  8147. <td>none</td>
  8148. </tr>
  8149. <tr>
  8150. <td>» title</td>
  8151. <td>body</td>
  8152. <td>string</td>
  8153. <td>false</td>
  8154. <td>the new title of the card</td>
  8155. </tr>
  8156. <tr>
  8157. <td>» sort</td>
  8158. <td>body</td>
  8159. <td>string</td>
  8160. <td>false</td>
  8161. <td>the new sort value of the card</td>
  8162. </tr>
  8163. <tr>
  8164. <td>» parentId</td>
  8165. <td>body</td>
  8166. <td>string</td>
  8167. <td>false</td>
  8168. <td>change the parent of the card</td>
  8169. </tr>
  8170. <tr>
  8171. <td>» description</td>
  8172. <td>body</td>
  8173. <td>string</td>
  8174. <td>false</td>
  8175. <td>the new description of the card</td>
  8176. </tr>
  8177. <tr>
  8178. <td>» color</td>
  8179. <td>body</td>
  8180. <td>string</td>
  8181. <td>false</td>
  8182. <td>the new color of the card</td>
  8183. </tr>
  8184. <tr>
  8185. <td>» vote</td>
  8186. <td>body</td>
  8187. <td>object</td>
  8188. <td>false</td>
  8189. <td>the vote object</td>
  8190. </tr>
  8191. <tr>
  8192. <td>» labelIds</td>
  8193. <td>body</td>
  8194. <td>string</td>
  8195. <td>false</td>
  8196. <td>the new list of label IDs attached to the card</td>
  8197. </tr>
  8198. <tr>
  8199. <td>» requestedBy</td>
  8200. <td>body</td>
  8201. <td>string</td>
  8202. <td>false</td>
  8203. <td>the new requestedBy field of the card</td>
  8204. </tr>
  8205. <tr>
  8206. <td>» assignedBy</td>
  8207. <td>body</td>
  8208. <td>string</td>
  8209. <td>false</td>
  8210. <td>the new assignedBy field of the card</td>
  8211. </tr>
  8212. <tr>
  8213. <td>» receivedAt</td>
  8214. <td>body</td>
  8215. <td>string</td>
  8216. <td>false</td>
  8217. <td>the new receivedAt field of the card</td>
  8218. </tr>
  8219. <tr>
  8220. <td>» startAt</td>
  8221. <td>body</td>
  8222. <td>string</td>
  8223. <td>false</td>
  8224. <td>the new startAt field of the card</td>
  8225. </tr>
  8226. <tr>
  8227. <td>» dueAt</td>
  8228. <td>body</td>
  8229. <td>string</td>
  8230. <td>false</td>
  8231. <td>the new dueAt field of the card</td>
  8232. </tr>
  8233. <tr>
  8234. <td>» endAt</td>
  8235. <td>body</td>
  8236. <td>string</td>
  8237. <td>false</td>
  8238. <td>the new endAt field of the card</td>
  8239. </tr>
  8240. <tr>
  8241. <td>» spentTime</td>
  8242. <td>body</td>
  8243. <td>string</td>
  8244. <td>false</td>
  8245. <td>the new spentTime field of the card</td>
  8246. </tr>
  8247. <tr>
  8248. <td>» isOverTime</td>
  8249. <td>body</td>
  8250. <td>boolean</td>
  8251. <td>false</td>
  8252. <td>the new isOverTime field of the card</td>
  8253. </tr>
  8254. <tr>
  8255. <td>» customFields</td>
  8256. <td>body</td>
  8257. <td>string</td>
  8258. <td>false</td>
  8259. <td>the new customFields value of the card</td>
  8260. </tr>
  8261. <tr>
  8262. <td>» members</td>
  8263. <td>body</td>
  8264. <td>string</td>
  8265. <td>false</td>
  8266. <td>the new list of member IDs attached to the card</td>
  8267. </tr>
  8268. <tr>
  8269. <td>» assignees</td>
  8270. <td>body</td>
  8271. <td>string</td>
  8272. <td>false</td>
  8273. <td>the array of maximum one ID of assignee attached to the card</td>
  8274. </tr>
  8275. <tr>
  8276. <td>» swimlaneId</td>
  8277. <td>body</td>
  8278. <td>string</td>
  8279. <td>false</td>
  8280. <td>the new swimlane ID of the card</td>
  8281. </tr>
  8282. <tr>
  8283. <td>» listId</td>
  8284. <td>body</td>
  8285. <td>string</td>
  8286. <td>false</td>
  8287. <td>the new list ID of the card (move operation)</td>
  8288. </tr>
  8289. <tr>
  8290. <td>» authorId</td>
  8291. <td>body</td>
  8292. <td>string</td>
  8293. <td>false</td>
  8294. <td>change the owner of the card</td>
  8295. </tr>
  8296. </tbody>
  8297. </table>
  8298. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8299. <p><strong>board</strong>: the board ID of the card</p>
  8300. <p><strong>list</strong>: the list ID of the card</p>
  8301. <p><strong>card</strong>: the ID of the card</p>
  8302. <blockquote>
  8303. <p>Example responses</p>
  8304. </blockquote>
  8305. <blockquote>
  8306. <p>200 Response</p>
  8307. </blockquote>
  8308. <pre class="highlight tab tab-json"><code>{
  8309. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8310. }
  8311. </code></pre>
  8312. <h3 id="edit_card-responses">Responses</h3>
  8313. <table>
  8314. <thead>
  8315. <tr>
  8316. <th>Status</th>
  8317. <th>Meaning</th>
  8318. <th>Description</th>
  8319. <th>Schema</th>
  8320. </tr>
  8321. </thead>
  8322. <tbody>
  8323. <tr>
  8324. <td>200</td>
  8325. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8326. <td>200 response</td>
  8327. <td>Inline</td>
  8328. </tr>
  8329. </tbody>
  8330. </table>
  8331. <h3 id="edit_card-responseschema">Response Schema</h3>
  8332. <p>Status Code <strong>200</strong></p>
  8333. <table>
  8334. <thead>
  8335. <tr>
  8336. <th>Name</th>
  8337. <th>Type</th>
  8338. <th>Required</th>
  8339. <th>Restrictions</th>
  8340. <th>Description</th>
  8341. </tr>
  8342. </thead>
  8343. <tbody>
  8344. <tr>
  8345. <td>» _id</td>
  8346. <td>string</td>
  8347. <td>false</td>
  8348. <td>none</td>
  8349. <td>none</td>
  8350. </tr>
  8351. </tbody>
  8352. </table>
  8353. <aside class="warning">
  8354. To perform this operation, you must be authenticated by means of one of the following methods:
  8355. UserSecurity
  8356. </aside>
  8357. <h2 id="delete_card">delete_card</h2>
  8358. <p><a id="opIddelete_card"></a></p>
  8359. <blockquote>
  8360. <p>Code samples</p>
  8361. </blockquote>
  8362. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8363. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8364. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8365. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8366. </code></pre>
  8367. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards/{card}</span> <span class="hljs-meta">HTTP/1.1</span>
  8368. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8369. </span></code></pre>
  8370. <pre class="highlight tab tab-javascript"><code>
  8371. <span class="hljs-keyword">const</span> headers = {
  8372. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8373. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8374. };
  8375. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8376. {
  8377. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8378. <span class="hljs-attr">headers</span>: headers
  8379. })
  8380. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8381. <span class="hljs-keyword">return</span> res.json();
  8382. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8383. <span class="hljs-built_in">console</span>.log(body);
  8384. });
  8385. </code></pre>
  8386. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8387. <span class="hljs-keyword">const</span> headers = {
  8388. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8389. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8390. };
  8391. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8392. {
  8393. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8394. <span class="hljs-attr">headers</span>: headers
  8395. })
  8396. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8397. <span class="hljs-keyword">return</span> res.json();
  8398. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8399. <span class="hljs-built_in">console</span>.log(body);
  8400. });
  8401. </code></pre>
  8402. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8403. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8404. headers = {
  8405. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8406. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8407. }
  8408. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8409. <span class="hljs-symbol">params:</span> {
  8410. }, <span class="hljs-symbol">headers:</span> headers
  8411. p JSON.parse(result)
  8412. </code></pre>
  8413. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8414. headers = {
  8415. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8416. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8417. }
  8418. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8419. <span class="hljs-built_in">print</span>(r.json())
  8420. </code></pre>
  8421. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>);
  8422. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8423. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  8424. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8425. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8426. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8427. String inputLine;
  8428. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8429. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8430. response.append(inputLine);
  8431. }
  8432. in.close();
  8433. System.out.println(response.toString());
  8434. </code></pre>
  8435. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8436. <span class="hljs-keyword">import</span> (
  8437. <span class="hljs-string">&quot;bytes&quot;</span>
  8438. <span class="hljs-string">&quot;net/http&quot;</span>
  8439. )
  8440. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8441. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8442. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8443. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8444. }
  8445. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8446. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards/{card}&quot;</span>, data)
  8447. req.Header = headers
  8448. client := &amp;http.Client{}
  8449. resp, err := client.Do(req)
  8450. <span class="hljs-comment">// ...</span>
  8451. }
  8452. </code></pre>
  8453. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8454. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8455. );
  8456. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8457. <span class="hljs-comment">// Define array of request body.</span>
  8458. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8459. <span class="hljs-keyword">try</span> {
  8460. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, <span class="hljs-keyword">array</span>(
  8461. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8462. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8463. )
  8464. );
  8465. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8466. }
  8467. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8468. <span class="hljs-comment">// handle exception or api errors.</span>
  8469. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8470. }
  8471. <span class="hljs-comment">// ...</span>
  8472. </code></pre>
  8473. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8474. <p><em>Delete a card from a board</em></p>
  8475. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8476. is not put in the recycle bin.</p>
  8477. <h3 id="delete_card-parameters">Parameters</h3>
  8478. <table>
  8479. <thead>
  8480. <tr>
  8481. <th>Name</th>
  8482. <th>In</th>
  8483. <th>Type</th>
  8484. <th>Required</th>
  8485. <th>Description</th>
  8486. </tr>
  8487. </thead>
  8488. <tbody>
  8489. <tr>
  8490. <td>board</td>
  8491. <td>path</td>
  8492. <td>string</td>
  8493. <td>true</td>
  8494. <td>the board ID of the card</td>
  8495. </tr>
  8496. <tr>
  8497. <td>list</td>
  8498. <td>path</td>
  8499. <td>string</td>
  8500. <td>true</td>
  8501. <td>the list ID of the card</td>
  8502. </tr>
  8503. <tr>
  8504. <td>card</td>
  8505. <td>path</td>
  8506. <td>string</td>
  8507. <td>true</td>
  8508. <td>the ID of the card</td>
  8509. </tr>
  8510. </tbody>
  8511. </table>
  8512. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8513. <p><strong>board</strong>: the board ID of the card</p>
  8514. <p><strong>list</strong>: the list ID of the card</p>
  8515. <p><strong>card</strong>: the ID of the card</p>
  8516. <blockquote>
  8517. <p>Example responses</p>
  8518. </blockquote>
  8519. <blockquote>
  8520. <p>200 Response</p>
  8521. </blockquote>
  8522. <pre class="highlight tab tab-json"><code>{
  8523. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8524. }
  8525. </code></pre>
  8526. <h3 id="delete_card-responses">Responses</h3>
  8527. <table>
  8528. <thead>
  8529. <tr>
  8530. <th>Status</th>
  8531. <th>Meaning</th>
  8532. <th>Description</th>
  8533. <th>Schema</th>
  8534. </tr>
  8535. </thead>
  8536. <tbody>
  8537. <tr>
  8538. <td>200</td>
  8539. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8540. <td>200 response</td>
  8541. <td>Inline</td>
  8542. </tr>
  8543. </tbody>
  8544. </table>
  8545. <h3 id="delete_card-responseschema">Response Schema</h3>
  8546. <p>Status Code <strong>200</strong></p>
  8547. <table>
  8548. <thead>
  8549. <tr>
  8550. <th>Name</th>
  8551. <th>Type</th>
  8552. <th>Required</th>
  8553. <th>Restrictions</th>
  8554. <th>Description</th>
  8555. </tr>
  8556. </thead>
  8557. <tbody>
  8558. <tr>
  8559. <td>» _id</td>
  8560. <td>string</td>
  8561. <td>false</td>
  8562. <td>none</td>
  8563. <td>none</td>
  8564. </tr>
  8565. </tbody>
  8566. </table>
  8567. <aside class="warning">
  8568. To perform this operation, you must be authenticated by means of one of the following methods:
  8569. UserSecurity
  8570. </aside>
  8571. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  8572. <p><a id="opIdget_swimlane_cards"></a></p>
  8573. <blockquote>
  8574. <p>Code samples</p>
  8575. </blockquote>
  8576. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8577. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  8578. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8579. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8580. </code></pre>
  8581. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}/cards</span> <span class="hljs-meta">HTTP/1.1</span>
  8582. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8583. </span></code></pre>
  8584. <pre class="highlight tab tab-javascript"><code>
  8585. <span class="hljs-keyword">const</span> headers = {
  8586. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8587. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8588. };
  8589. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8590. {
  8591. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8592. <span class="hljs-attr">headers</span>: headers
  8593. })
  8594. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8595. <span class="hljs-keyword">return</span> res.json();
  8596. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8597. <span class="hljs-built_in">console</span>.log(body);
  8598. });
  8599. </code></pre>
  8600. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8601. <span class="hljs-keyword">const</span> headers = {
  8602. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8603. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8604. };
  8605. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8606. {
  8607. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8608. <span class="hljs-attr">headers</span>: headers
  8609. })
  8610. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8611. <span class="hljs-keyword">return</span> res.json();
  8612. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8613. <span class="hljs-built_in">console</span>.log(body);
  8614. });
  8615. </code></pre>
  8616. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8617. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8618. headers = {
  8619. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8620. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8621. }
  8622. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  8623. <span class="hljs-symbol">params:</span> {
  8624. }, <span class="hljs-symbol">headers:</span> headers
  8625. p JSON.parse(result)
  8626. </code></pre>
  8627. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8628. headers = {
  8629. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8630. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8631. }
  8632. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  8633. <span class="hljs-built_in">print</span>(r.json())
  8634. </code></pre>
  8635. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}/cards&quot;</span>);
  8636. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8637. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8638. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8639. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8640. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8641. String inputLine;
  8642. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8643. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8644. response.append(inputLine);
  8645. }
  8646. in.close();
  8647. System.out.println(response.toString());
  8648. </code></pre>
  8649. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8650. <span class="hljs-keyword">import</span> (
  8651. <span class="hljs-string">&quot;bytes&quot;</span>
  8652. <span class="hljs-string">&quot;net/http&quot;</span>
  8653. )
  8654. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8655. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8656. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8657. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8658. }
  8659. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8660. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}/cards&quot;</span>, data)
  8661. req.Header = headers
  8662. client := &amp;http.Client{}
  8663. resp, err := client.Do(req)
  8664. <span class="hljs-comment">// ...</span>
  8665. }
  8666. </code></pre>
  8667. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8668. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8669. );
  8670. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8671. <span class="hljs-comment">// Define array of request body.</span>
  8672. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8673. <span class="hljs-keyword">try</span> {
  8674. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, <span class="hljs-keyword">array</span>(
  8675. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8676. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8677. )
  8678. );
  8679. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8680. }
  8681. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8682. <span class="hljs-comment">// handle exception or api errors.</span>
  8683. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8684. }
  8685. <span class="hljs-comment">// ...</span>
  8686. </code></pre>
  8687. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  8688. <p><em>get all cards attached to a swimlane</em></p>
  8689. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  8690. <table>
  8691. <thead>
  8692. <tr>
  8693. <th>Name</th>
  8694. <th>In</th>
  8695. <th>Type</th>
  8696. <th>Required</th>
  8697. <th>Description</th>
  8698. </tr>
  8699. </thead>
  8700. <tbody>
  8701. <tr>
  8702. <td>board</td>
  8703. <td>path</td>
  8704. <td>string</td>
  8705. <td>true</td>
  8706. <td>the board ID</td>
  8707. </tr>
  8708. <tr>
  8709. <td>swimlane</td>
  8710. <td>path</td>
  8711. <td>string</td>
  8712. <td>true</td>
  8713. <td>the swimlane ID</td>
  8714. </tr>
  8715. </tbody>
  8716. </table>
  8717. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8718. <p><strong>board</strong>: the board ID</p>
  8719. <p><strong>swimlane</strong>: the swimlane ID</p>
  8720. <blockquote>
  8721. <p>Example responses</p>
  8722. </blockquote>
  8723. <blockquote>
  8724. <p>200 Response</p>
  8725. </blockquote>
  8726. <pre class="highlight tab tab-json"><code>[
  8727. {
  8728. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8729. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8730. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8731. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8732. }
  8733. ]
  8734. </code></pre>
  8735. <h3 id="get_swimlane_cards-responses">Responses</h3>
  8736. <table>
  8737. <thead>
  8738. <tr>
  8739. <th>Status</th>
  8740. <th>Meaning</th>
  8741. <th>Description</th>
  8742. <th>Schema</th>
  8743. </tr>
  8744. </thead>
  8745. <tbody>
  8746. <tr>
  8747. <td>200</td>
  8748. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8749. <td>200 response</td>
  8750. <td>Inline</td>
  8751. </tr>
  8752. </tbody>
  8753. </table>
  8754. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  8755. <p>Status Code <strong>200</strong></p>
  8756. <table>
  8757. <thead>
  8758. <tr>
  8759. <th>Name</th>
  8760. <th>Type</th>
  8761. <th>Required</th>
  8762. <th>Restrictions</th>
  8763. <th>Description</th>
  8764. </tr>
  8765. </thead>
  8766. <tbody>
  8767. <tr>
  8768. <td>» _id</td>
  8769. <td>string</td>
  8770. <td>false</td>
  8771. <td>none</td>
  8772. <td>none</td>
  8773. </tr>
  8774. <tr>
  8775. <td>» title</td>
  8776. <td>string</td>
  8777. <td>false</td>
  8778. <td>none</td>
  8779. <td>none</td>
  8780. </tr>
  8781. <tr>
  8782. <td>» description</td>
  8783. <td>string</td>
  8784. <td>false</td>
  8785. <td>none</td>
  8786. <td>none</td>
  8787. </tr>
  8788. <tr>
  8789. <td>» listId</td>
  8790. <td>string</td>
  8791. <td>false</td>
  8792. <td>none</td>
  8793. <td>none</td>
  8794. </tr>
  8795. </tbody>
  8796. </table>
  8797. <aside class="warning">
  8798. To perform this operation, you must be authenticated by means of one of the following methods:
  8799. UserSecurity
  8800. </aside>
  8801. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  8802. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  8803. <p><a id="opIdget_all_custom_fields"></a></p>
  8804. <blockquote>
  8805. <p>Code samples</p>
  8806. </blockquote>
  8807. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8808. curl -X GET /api/boards/{board}/custom-fields \
  8809. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8810. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8811. </code></pre>
  8812. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> <span class="hljs-meta">HTTP/1.1</span>
  8813. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8814. </span></code></pre>
  8815. <pre class="highlight tab tab-javascript"><code>
  8816. <span class="hljs-keyword">const</span> headers = {
  8817. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8818. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8819. };
  8820. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8821. {
  8822. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8823. <span class="hljs-attr">headers</span>: headers
  8824. })
  8825. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8826. <span class="hljs-keyword">return</span> res.json();
  8827. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8828. <span class="hljs-built_in">console</span>.log(body);
  8829. });
  8830. </code></pre>
  8831. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  8832. <span class="hljs-keyword">const</span> headers = {
  8833. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8834. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8835. };
  8836. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8837. {
  8838. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8839. <span class="hljs-attr">headers</span>: headers
  8840. })
  8841. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8842. <span class="hljs-keyword">return</span> res.json();
  8843. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8844. <span class="hljs-built_in">console</span>.log(body);
  8845. });
  8846. </code></pre>
  8847. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8848. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8849. headers = {
  8850. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8851. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8852. }
  8853. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  8854. <span class="hljs-symbol">params:</span> {
  8855. }, <span class="hljs-symbol">headers:</span> headers
  8856. p JSON.parse(result)
  8857. </code></pre>
  8858. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8859. headers = {
  8860. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8861. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8862. }
  8863. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  8864. <span class="hljs-built_in">print</span>(r.json())
  8865. </code></pre>
  8866. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>);
  8867. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8868. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8869. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8870. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8871. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8872. String inputLine;
  8873. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8874. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8875. response.append(inputLine);
  8876. }
  8877. in.close();
  8878. System.out.println(response.toString());
  8879. </code></pre>
  8880. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8881. <span class="hljs-keyword">import</span> (
  8882. <span class="hljs-string">&quot;bytes&quot;</span>
  8883. <span class="hljs-string">&quot;net/http&quot;</span>
  8884. )
  8885. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8886. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8887. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8888. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8889. }
  8890. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8891. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>, data)
  8892. req.Header = headers
  8893. client := &amp;http.Client{}
  8894. resp, err := client.Do(req)
  8895. <span class="hljs-comment">// ...</span>
  8896. }
  8897. </code></pre>
  8898. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8899. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8900. );
  8901. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8902. <span class="hljs-comment">// Define array of request body.</span>
  8903. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8904. <span class="hljs-keyword">try</span> {
  8905. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, <span class="hljs-keyword">array</span>(
  8906. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8907. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8908. )
  8909. );
  8910. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8911. }
  8912. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8913. <span class="hljs-comment">// handle exception or api errors.</span>
  8914. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8915. }
  8916. <span class="hljs-comment">// ...</span>
  8917. </code></pre>
  8918. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  8919. <p><em>Get the list of Custom Fields attached to a board</em></p>
  8920. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  8921. <table>
  8922. <thead>
  8923. <tr>
  8924. <th>Name</th>
  8925. <th>In</th>
  8926. <th>Type</th>
  8927. <th>Required</th>
  8928. <th>Description</th>
  8929. </tr>
  8930. </thead>
  8931. <tbody>
  8932. <tr>
  8933. <td>board</td>
  8934. <td>path</td>
  8935. <td>string</td>
  8936. <td>true</td>
  8937. <td>the board value</td>
  8938. </tr>
  8939. </tbody>
  8940. </table>
  8941. <blockquote>
  8942. <p>Example responses</p>
  8943. </blockquote>
  8944. <blockquote>
  8945. <p>200 Response</p>
  8946. </blockquote>
  8947. <pre class="highlight tab tab-json"><code>[
  8948. {
  8949. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8950. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8951. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8952. }
  8953. ]
  8954. </code></pre>
  8955. <h3 id="get_all_custom_fields-responses">Responses</h3>
  8956. <table>
  8957. <thead>
  8958. <tr>
  8959. <th>Status</th>
  8960. <th>Meaning</th>
  8961. <th>Description</th>
  8962. <th>Schema</th>
  8963. </tr>
  8964. </thead>
  8965. <tbody>
  8966. <tr>
  8967. <td>200</td>
  8968. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8969. <td>200 response</td>
  8970. <td>Inline</td>
  8971. </tr>
  8972. </tbody>
  8973. </table>
  8974. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  8975. <p>Status Code <strong>200</strong></p>
  8976. <table>
  8977. <thead>
  8978. <tr>
  8979. <th>Name</th>
  8980. <th>Type</th>
  8981. <th>Required</th>
  8982. <th>Restrictions</th>
  8983. <th>Description</th>
  8984. </tr>
  8985. </thead>
  8986. <tbody>
  8987. <tr>
  8988. <td>» _id</td>
  8989. <td>string</td>
  8990. <td>false</td>
  8991. <td>none</td>
  8992. <td>none</td>
  8993. </tr>
  8994. <tr>
  8995. <td>» name</td>
  8996. <td>string</td>
  8997. <td>false</td>
  8998. <td>none</td>
  8999. <td>none</td>
  9000. </tr>
  9001. <tr>
  9002. <td>» type</td>
  9003. <td>string</td>
  9004. <td>false</td>
  9005. <td>none</td>
  9006. <td>none</td>
  9007. </tr>
  9008. </tbody>
  9009. </table>
  9010. <aside class="warning">
  9011. To perform this operation, you must be authenticated by means of one of the following methods:
  9012. UserSecurity
  9013. </aside>
  9014. <h2 id="new_custom_field">new_custom_field</h2>
  9015. <p><a id="opIdnew_custom_field"></a></p>
  9016. <blockquote>
  9017. <p>Code samples</p>
  9018. </blockquote>
  9019. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9020. curl -X POST /api/boards/{board}/custom-fields \
  9021. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9022. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9023. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9024. </code></pre>
  9025. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/custom-fields</span> <span class="hljs-meta">HTTP/1.1</span>
  9026. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9027. Accept: application/json
  9028. </span></code></pre>
  9029. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9030. &quot;name&quot;: &quot;string&quot;,
  9031. &quot;type&quot;: &quot;string&quot;,
  9032. &quot;settings&quot;: &quot;string&quot;,
  9033. &quot;showOnCard&quot;: true,
  9034. &quot;automaticallyOnCard&quot;: true,
  9035. &quot;showLabelOnMiniCard&quot;: true,
  9036. &quot;authorId&quot;: &quot;string&quot;
  9037. }&#x27;</span>;
  9038. <span class="hljs-keyword">const</span> headers = {
  9039. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9040. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9041. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9042. };
  9043. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9044. {
  9045. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9046. <span class="hljs-attr">body</span>: inputBody,
  9047. <span class="hljs-attr">headers</span>: headers
  9048. })
  9049. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9050. <span class="hljs-keyword">return</span> res.json();
  9051. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9052. <span class="hljs-built_in">console</span>.log(body);
  9053. });
  9054. </code></pre>
  9055. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9056. <span class="hljs-keyword">const</span> inputBody = {
  9057. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9058. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9059. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9060. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9061. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9062. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9063. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9064. };
  9065. <span class="hljs-keyword">const</span> headers = {
  9066. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9067. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9068. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9069. };
  9070. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9071. {
  9072. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9073. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9074. <span class="hljs-attr">headers</span>: headers
  9075. })
  9076. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9077. <span class="hljs-keyword">return</span> res.json();
  9078. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9079. <span class="hljs-built_in">console</span>.log(body);
  9080. });
  9081. </code></pre>
  9082. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9083. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9084. headers = {
  9085. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9086. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9087. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9088. }
  9089. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9090. <span class="hljs-symbol">params:</span> {
  9091. }, <span class="hljs-symbol">headers:</span> headers
  9092. p JSON.parse(result)
  9093. </code></pre>
  9094. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9095. headers = {
  9096. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9097. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9098. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9099. }
  9100. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9101. <span class="hljs-built_in">print</span>(r.json())
  9102. </code></pre>
  9103. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>);
  9104. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9105. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9106. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9107. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9108. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9109. String inputLine;
  9110. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9111. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9112. response.append(inputLine);
  9113. }
  9114. in.close();
  9115. System.out.println(response.toString());
  9116. </code></pre>
  9117. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9118. <span class="hljs-keyword">import</span> (
  9119. <span class="hljs-string">&quot;bytes&quot;</span>
  9120. <span class="hljs-string">&quot;net/http&quot;</span>
  9121. )
  9122. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9123. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9124. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  9125. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9126. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9127. }
  9128. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9129. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields&quot;</span>, data)
  9130. req.Header = headers
  9131. client := &amp;http.Client{}
  9132. resp, err := client.Do(req)
  9133. <span class="hljs-comment">// ...</span>
  9134. }
  9135. </code></pre>
  9136. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9137. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9138. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9139. );
  9140. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9141. <span class="hljs-comment">// Define array of request body.</span>
  9142. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9143. <span class="hljs-keyword">try</span> {
  9144. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, <span class="hljs-keyword">array</span>(
  9145. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9146. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9147. )
  9148. );
  9149. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9150. }
  9151. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9152. <span class="hljs-comment">// handle exception or api errors.</span>
  9153. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9154. }
  9155. <span class="hljs-comment">// ...</span>
  9156. </code></pre>
  9157. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9158. <p><em>Create a Custom Field</em></p>
  9159. <blockquote>
  9160. <p>Body parameter</p>
  9161. </blockquote>
  9162. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9163. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9164. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9165. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9166. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9167. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9168. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9169. </code></pre>
  9170. <h3 id="new_custom_field-parameters">Parameters</h3>
  9171. <table>
  9172. <thead>
  9173. <tr>
  9174. <th>Name</th>
  9175. <th>In</th>
  9176. <th>Type</th>
  9177. <th>Required</th>
  9178. <th>Description</th>
  9179. </tr>
  9180. </thead>
  9181. <tbody>
  9182. <tr>
  9183. <td>board</td>
  9184. <td>path</td>
  9185. <td>string</td>
  9186. <td>true</td>
  9187. <td>the board value</td>
  9188. </tr>
  9189. <tr>
  9190. <td>body</td>
  9191. <td>body</td>
  9192. <td>object</td>
  9193. <td>true</td>
  9194. <td>none</td>
  9195. </tr>
  9196. <tr>
  9197. <td>» name</td>
  9198. <td>body</td>
  9199. <td>string</td>
  9200. <td>true</td>
  9201. <td>the name of the custom field</td>
  9202. </tr>
  9203. <tr>
  9204. <td>» type</td>
  9205. <td>body</td>
  9206. <td>string</td>
  9207. <td>true</td>
  9208. <td>the type of the custom field</td>
  9209. </tr>
  9210. <tr>
  9211. <td>» settings</td>
  9212. <td>body</td>
  9213. <td>string</td>
  9214. <td>true</td>
  9215. <td>the settings object of the custom field</td>
  9216. </tr>
  9217. <tr>
  9218. <td>» showOnCard</td>
  9219. <td>body</td>
  9220. <td>boolean</td>
  9221. <td>true</td>
  9222. <td>should we show the custom field on cards?</td>
  9223. </tr>
  9224. <tr>
  9225. <td>» automaticallyOnCard</td>
  9226. <td>body</td>
  9227. <td>boolean</td>
  9228. <td>true</td>
  9229. <td>should the custom fields automatically be added on cards?</td>
  9230. </tr>
  9231. <tr>
  9232. <td>» showLabelOnMiniCard</td>
  9233. <td>body</td>
  9234. <td>boolean</td>
  9235. <td>true</td>
  9236. <td>should the label of the custom field be shown on minicards?</td>
  9237. </tr>
  9238. <tr>
  9239. <td>» authorId</td>
  9240. <td>body</td>
  9241. <td>string</td>
  9242. <td>true</td>
  9243. <td>the authorId value</td>
  9244. </tr>
  9245. </tbody>
  9246. </table>
  9247. <blockquote>
  9248. <p>Example responses</p>
  9249. </blockquote>
  9250. <blockquote>
  9251. <p>200 Response</p>
  9252. </blockquote>
  9253. <pre class="highlight tab tab-json"><code>{
  9254. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9255. }
  9256. </code></pre>
  9257. <h3 id="new_custom_field-responses">Responses</h3>
  9258. <table>
  9259. <thead>
  9260. <tr>
  9261. <th>Status</th>
  9262. <th>Meaning</th>
  9263. <th>Description</th>
  9264. <th>Schema</th>
  9265. </tr>
  9266. </thead>
  9267. <tbody>
  9268. <tr>
  9269. <td>200</td>
  9270. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9271. <td>200 response</td>
  9272. <td>Inline</td>
  9273. </tr>
  9274. </tbody>
  9275. </table>
  9276. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  9277. <p>Status Code <strong>200</strong></p>
  9278. <table>
  9279. <thead>
  9280. <tr>
  9281. <th>Name</th>
  9282. <th>Type</th>
  9283. <th>Required</th>
  9284. <th>Restrictions</th>
  9285. <th>Description</th>
  9286. </tr>
  9287. </thead>
  9288. <tbody>
  9289. <tr>
  9290. <td>» _id</td>
  9291. <td>string</td>
  9292. <td>false</td>
  9293. <td>none</td>
  9294. <td>none</td>
  9295. </tr>
  9296. </tbody>
  9297. </table>
  9298. <aside class="warning">
  9299. To perform this operation, you must be authenticated by means of one of the following methods:
  9300. UserSecurity
  9301. </aside>
  9302. <h2 id="get_custom_field">get_custom_field</h2>
  9303. <p><a id="opIdget_custom_field"></a></p>
  9304. <blockquote>
  9305. <p>Code samples</p>
  9306. </blockquote>
  9307. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9308. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  9309. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9310. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9311. </code></pre>
  9312. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> <span class="hljs-meta">HTTP/1.1</span>
  9313. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9314. </span></code></pre>
  9315. <pre class="highlight tab tab-javascript"><code>
  9316. <span class="hljs-keyword">const</span> headers = {
  9317. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9318. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9319. };
  9320. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9321. {
  9322. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9323. <span class="hljs-attr">headers</span>: headers
  9324. })
  9325. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9326. <span class="hljs-keyword">return</span> res.json();
  9327. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9328. <span class="hljs-built_in">console</span>.log(body);
  9329. });
  9330. </code></pre>
  9331. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9332. <span class="hljs-keyword">const</span> headers = {
  9333. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9334. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9335. };
  9336. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9337. {
  9338. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9339. <span class="hljs-attr">headers</span>: headers
  9340. })
  9341. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9342. <span class="hljs-keyword">return</span> res.json();
  9343. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9344. <span class="hljs-built_in">console</span>.log(body);
  9345. });
  9346. </code></pre>
  9347. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9348. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9349. headers = {
  9350. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9351. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9352. }
  9353. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9354. <span class="hljs-symbol">params:</span> {
  9355. }, <span class="hljs-symbol">headers:</span> headers
  9356. p JSON.parse(result)
  9357. </code></pre>
  9358. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9359. headers = {
  9360. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9361. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9362. }
  9363. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9364. <span class="hljs-built_in">print</span>(r.json())
  9365. </code></pre>
  9366. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>);
  9367. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9368. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9369. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9370. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9371. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9372. String inputLine;
  9373. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9374. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9375. response.append(inputLine);
  9376. }
  9377. in.close();
  9378. System.out.println(response.toString());
  9379. </code></pre>
  9380. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9381. <span class="hljs-keyword">import</span> (
  9382. <span class="hljs-string">&quot;bytes&quot;</span>
  9383. <span class="hljs-string">&quot;net/http&quot;</span>
  9384. )
  9385. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9386. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9387. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9388. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9389. }
  9390. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9391. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>, data)
  9392. req.Header = headers
  9393. client := &amp;http.Client{}
  9394. resp, err := client.Do(req)
  9395. <span class="hljs-comment">// ...</span>
  9396. }
  9397. </code></pre>
  9398. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9399. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9400. );
  9401. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9402. <span class="hljs-comment">// Define array of request body.</span>
  9403. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9404. <span class="hljs-keyword">try</span> {
  9405. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, <span class="hljs-keyword">array</span>(
  9406. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9407. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9408. )
  9409. );
  9410. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9411. }
  9412. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9413. <span class="hljs-comment">// handle exception or api errors.</span>
  9414. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9415. }
  9416. <span class="hljs-comment">// ...</span>
  9417. </code></pre>
  9418. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  9419. <p><em>Get a Custom Fields attached to a board</em></p>
  9420. <h3 id="get_custom_field-parameters">Parameters</h3>
  9421. <table>
  9422. <thead>
  9423. <tr>
  9424. <th>Name</th>
  9425. <th>In</th>
  9426. <th>Type</th>
  9427. <th>Required</th>
  9428. <th>Description</th>
  9429. </tr>
  9430. </thead>
  9431. <tbody>
  9432. <tr>
  9433. <td>board</td>
  9434. <td>path</td>
  9435. <td>string</td>
  9436. <td>true</td>
  9437. <td>the board value</td>
  9438. </tr>
  9439. <tr>
  9440. <td>customField</td>
  9441. <td>path</td>
  9442. <td>string</td>
  9443. <td>true</td>
  9444. <td>the ID of the custom field</td>
  9445. </tr>
  9446. </tbody>
  9447. </table>
  9448. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9449. <p><strong>customField</strong>: the ID of the custom field</p>
  9450. <blockquote>
  9451. <p>Example responses</p>
  9452. </blockquote>
  9453. <blockquote>
  9454. <p>200 Response</p>
  9455. </blockquote>
  9456. <pre class="highlight tab tab-json"><code>[
  9457. {
  9458. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9459. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9460. }
  9461. ]
  9462. </code></pre>
  9463. <h3 id="get_custom_field-responses">Responses</h3>
  9464. <table>
  9465. <thead>
  9466. <tr>
  9467. <th>Status</th>
  9468. <th>Meaning</th>
  9469. <th>Description</th>
  9470. <th>Schema</th>
  9471. </tr>
  9472. </thead>
  9473. <tbody>
  9474. <tr>
  9475. <td>200</td>
  9476. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9477. <td>200 response</td>
  9478. <td>Inline</td>
  9479. </tr>
  9480. </tbody>
  9481. </table>
  9482. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  9483. <p>Status Code <strong>200</strong></p>
  9484. <table>
  9485. <thead>
  9486. <tr>
  9487. <th>Name</th>
  9488. <th>Type</th>
  9489. <th>Required</th>
  9490. <th>Restrictions</th>
  9491. <th>Description</th>
  9492. </tr>
  9493. </thead>
  9494. <tbody>
  9495. <tr>
  9496. <td>» _id</td>
  9497. <td>string</td>
  9498. <td>false</td>
  9499. <td>none</td>
  9500. <td>none</td>
  9501. </tr>
  9502. <tr>
  9503. <td>» boardIds</td>
  9504. <td>string</td>
  9505. <td>false</td>
  9506. <td>none</td>
  9507. <td>none</td>
  9508. </tr>
  9509. </tbody>
  9510. </table>
  9511. <aside class="warning">
  9512. To perform this operation, you must be authenticated by means of one of the following methods:
  9513. UserSecurity
  9514. </aside>
  9515. <h2 id="edit_custom_field">edit_custom_field</h2>
  9516. <p><a id="opIdedit_custom_field"></a></p>
  9517. <blockquote>
  9518. <p>Code samples</p>
  9519. </blockquote>
  9520. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9521. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  9522. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9523. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9524. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9525. </code></pre>
  9526. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> <span class="hljs-meta">HTTP/1.1</span>
  9527. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9528. Accept: application/json
  9529. </span></code></pre>
  9530. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9531. &quot;name&quot;: &quot;string&quot;,
  9532. &quot;type&quot;: &quot;string&quot;,
  9533. &quot;settings&quot;: &quot;string&quot;,
  9534. &quot;showOnCard&quot;: true,
  9535. &quot;automaticallyOnCard&quot;: true,
  9536. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  9537. &quot;showLabelOnMiniCard&quot;: true
  9538. }&#x27;</span>;
  9539. <span class="hljs-keyword">const</span> headers = {
  9540. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9541. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9542. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9543. };
  9544. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9545. {
  9546. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9547. <span class="hljs-attr">body</span>: inputBody,
  9548. <span class="hljs-attr">headers</span>: headers
  9549. })
  9550. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9551. <span class="hljs-keyword">return</span> res.json();
  9552. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9553. <span class="hljs-built_in">console</span>.log(body);
  9554. });
  9555. </code></pre>
  9556. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9557. <span class="hljs-keyword">const</span> inputBody = {
  9558. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9559. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9560. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9561. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9562. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9563. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9564. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>
  9565. };
  9566. <span class="hljs-keyword">const</span> headers = {
  9567. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9568. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9569. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9570. };
  9571. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9572. {
  9573. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  9574. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9575. <span class="hljs-attr">headers</span>: headers
  9576. })
  9577. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9578. <span class="hljs-keyword">return</span> res.json();
  9579. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9580. <span class="hljs-built_in">console</span>.log(body);
  9581. });
  9582. </code></pre>
  9583. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9584. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9585. headers = {
  9586. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9587. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9588. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9589. }
  9590. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9591. <span class="hljs-symbol">params:</span> {
  9592. }, <span class="hljs-symbol">headers:</span> headers
  9593. p JSON.parse(result)
  9594. </code></pre>
  9595. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9596. headers = {
  9597. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9598. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9599. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9600. }
  9601. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9602. <span class="hljs-built_in">print</span>(r.json())
  9603. </code></pre>
  9604. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>);
  9605. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9606. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  9607. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9608. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9609. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9610. String inputLine;
  9611. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9612. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9613. response.append(inputLine);
  9614. }
  9615. in.close();
  9616. System.out.println(response.toString());
  9617. </code></pre>
  9618. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9619. <span class="hljs-keyword">import</span> (
  9620. <span class="hljs-string">&quot;bytes&quot;</span>
  9621. <span class="hljs-string">&quot;net/http&quot;</span>
  9622. )
  9623. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9624. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9625. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  9626. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9627. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9628. }
  9629. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9630. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>, data)
  9631. req.Header = headers
  9632. client := &amp;http.Client{}
  9633. resp, err := client.Do(req)
  9634. <span class="hljs-comment">// ...</span>
  9635. }
  9636. </code></pre>
  9637. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9638. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9639. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9640. );
  9641. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9642. <span class="hljs-comment">// Define array of request body.</span>
  9643. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9644. <span class="hljs-keyword">try</span> {
  9645. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, <span class="hljs-keyword">array</span>(
  9646. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9647. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9648. )
  9649. );
  9650. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9651. }
  9652. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9653. <span class="hljs-comment">// handle exception or api errors.</span>
  9654. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9655. }
  9656. <span class="hljs-comment">// ...</span>
  9657. </code></pre>
  9658. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  9659. <p><em>Update a Custom Field</em></p>
  9660. <blockquote>
  9661. <p>Body parameter</p>
  9662. </blockquote>
  9663. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9664. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9665. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9666. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9667. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9668. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  9669. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9670. </code></pre>
  9671. <h3 id="edit_custom_field-parameters">Parameters</h3>
  9672. <table>
  9673. <thead>
  9674. <tr>
  9675. <th>Name</th>
  9676. <th>In</th>
  9677. <th>Type</th>
  9678. <th>Required</th>
  9679. <th>Description</th>
  9680. </tr>
  9681. </thead>
  9682. <tbody>
  9683. <tr>
  9684. <td>board</td>
  9685. <td>path</td>
  9686. <td>string</td>
  9687. <td>true</td>
  9688. <td>the board value</td>
  9689. </tr>
  9690. <tr>
  9691. <td>customField</td>
  9692. <td>path</td>
  9693. <td>string</td>
  9694. <td>true</td>
  9695. <td>the customField value</td>
  9696. </tr>
  9697. <tr>
  9698. <td>body</td>
  9699. <td>body</td>
  9700. <td>object</td>
  9701. <td>true</td>
  9702. <td>none</td>
  9703. </tr>
  9704. <tr>
  9705. <td>» name</td>
  9706. <td>body</td>
  9707. <td>string</td>
  9708. <td>true</td>
  9709. <td>the name of the custom field</td>
  9710. </tr>
  9711. <tr>
  9712. <td>» type</td>
  9713. <td>body</td>
  9714. <td>string</td>
  9715. <td>true</td>
  9716. <td>the type of the custom field</td>
  9717. </tr>
  9718. <tr>
  9719. <td>» settings</td>
  9720. <td>body</td>
  9721. <td>string</td>
  9722. <td>true</td>
  9723. <td>the settings object of the custom field</td>
  9724. </tr>
  9725. <tr>
  9726. <td>» showOnCard</td>
  9727. <td>body</td>
  9728. <td>boolean</td>
  9729. <td>true</td>
  9730. <td>should we show the custom field on cards</td>
  9731. </tr>
  9732. <tr>
  9733. <td>» automaticallyOnCard</td>
  9734. <td>body</td>
  9735. <td>boolean</td>
  9736. <td>true</td>
  9737. <td>should the custom fields automatically be added on cards</td>
  9738. </tr>
  9739. <tr>
  9740. <td>» alwaysOnCard</td>
  9741. <td>body</td>
  9742. <td>string</td>
  9743. <td>true</td>
  9744. <td>the alwaysOnCard value</td>
  9745. </tr>
  9746. <tr>
  9747. <td>» showLabelOnMiniCard</td>
  9748. <td>body</td>
  9749. <td>boolean</td>
  9750. <td>true</td>
  9751. <td>should the label of the custom field be shown on minicards</td>
  9752. </tr>
  9753. </tbody>
  9754. </table>
  9755. <blockquote>
  9756. <p>Example responses</p>
  9757. </blockquote>
  9758. <blockquote>
  9759. <p>200 Response</p>
  9760. </blockquote>
  9761. <pre class="highlight tab tab-json"><code>{
  9762. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9763. }
  9764. </code></pre>
  9765. <h3 id="edit_custom_field-responses">Responses</h3>
  9766. <table>
  9767. <thead>
  9768. <tr>
  9769. <th>Status</th>
  9770. <th>Meaning</th>
  9771. <th>Description</th>
  9772. <th>Schema</th>
  9773. </tr>
  9774. </thead>
  9775. <tbody>
  9776. <tr>
  9777. <td>200</td>
  9778. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9779. <td>200 response</td>
  9780. <td>Inline</td>
  9781. </tr>
  9782. </tbody>
  9783. </table>
  9784. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  9785. <p>Status Code <strong>200</strong></p>
  9786. <table>
  9787. <thead>
  9788. <tr>
  9789. <th>Name</th>
  9790. <th>Type</th>
  9791. <th>Required</th>
  9792. <th>Restrictions</th>
  9793. <th>Description</th>
  9794. </tr>
  9795. </thead>
  9796. <tbody>
  9797. <tr>
  9798. <td>» _id</td>
  9799. <td>string</td>
  9800. <td>false</td>
  9801. <td>none</td>
  9802. <td>none</td>
  9803. </tr>
  9804. </tbody>
  9805. </table>
  9806. <aside class="warning">
  9807. To perform this operation, you must be authenticated by means of one of the following methods:
  9808. UserSecurity
  9809. </aside>
  9810. <h2 id="delete_custom_field">delete_custom_field</h2>
  9811. <p><a id="opIddelete_custom_field"></a></p>
  9812. <blockquote>
  9813. <p>Code samples</p>
  9814. </blockquote>
  9815. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9816. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  9817. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9818. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9819. </code></pre>
  9820. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}</span> <span class="hljs-meta">HTTP/1.1</span>
  9821. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9822. </span></code></pre>
  9823. <pre class="highlight tab tab-javascript"><code>
  9824. <span class="hljs-keyword">const</span> headers = {
  9825. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9826. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9827. };
  9828. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9829. {
  9830. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9831. <span class="hljs-attr">headers</span>: headers
  9832. })
  9833. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9834. <span class="hljs-keyword">return</span> res.json();
  9835. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9836. <span class="hljs-built_in">console</span>.log(body);
  9837. });
  9838. </code></pre>
  9839. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  9840. <span class="hljs-keyword">const</span> headers = {
  9841. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9842. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9843. };
  9844. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9845. {
  9846. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  9847. <span class="hljs-attr">headers</span>: headers
  9848. })
  9849. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9850. <span class="hljs-keyword">return</span> res.json();
  9851. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9852. <span class="hljs-built_in">console</span>.log(body);
  9853. });
  9854. </code></pre>
  9855. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9856. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9857. headers = {
  9858. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9859. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9860. }
  9861. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9862. <span class="hljs-symbol">params:</span> {
  9863. }, <span class="hljs-symbol">headers:</span> headers
  9864. p JSON.parse(result)
  9865. </code></pre>
  9866. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9867. headers = {
  9868. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9869. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9870. }
  9871. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9872. <span class="hljs-built_in">print</span>(r.json())
  9873. </code></pre>
  9874. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>);
  9875. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9876. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  9877. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9878. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9879. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9880. String inputLine;
  9881. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9882. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9883. response.append(inputLine);
  9884. }
  9885. in.close();
  9886. System.out.println(response.toString());
  9887. </code></pre>
  9888. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9889. <span class="hljs-keyword">import</span> (
  9890. <span class="hljs-string">&quot;bytes&quot;</span>
  9891. <span class="hljs-string">&quot;net/http&quot;</span>
  9892. )
  9893. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9894. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9895. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9896. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9897. }
  9898. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9899. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}&quot;</span>, data)
  9900. req.Header = headers
  9901. client := &amp;http.Client{}
  9902. resp, err := client.Do(req)
  9903. <span class="hljs-comment">// ...</span>
  9904. }
  9905. </code></pre>
  9906. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9907. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9908. );
  9909. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9910. <span class="hljs-comment">// Define array of request body.</span>
  9911. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9912. <span class="hljs-keyword">try</span> {
  9913. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, <span class="hljs-keyword">array</span>(
  9914. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9915. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9916. )
  9917. );
  9918. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9919. }
  9920. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9921. <span class="hljs-comment">// handle exception or api errors.</span>
  9922. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9923. }
  9924. <span class="hljs-comment">// ...</span>
  9925. </code></pre>
  9926. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  9927. <p><em>Delete a Custom Fields attached to a board</em></p>
  9928. <p>The Custom Field can't be retrieved after this operation</p>
  9929. <h3 id="delete_custom_field-parameters">Parameters</h3>
  9930. <table>
  9931. <thead>
  9932. <tr>
  9933. <th>Name</th>
  9934. <th>In</th>
  9935. <th>Type</th>
  9936. <th>Required</th>
  9937. <th>Description</th>
  9938. </tr>
  9939. </thead>
  9940. <tbody>
  9941. <tr>
  9942. <td>board</td>
  9943. <td>path</td>
  9944. <td>string</td>
  9945. <td>true</td>
  9946. <td>the board value</td>
  9947. </tr>
  9948. <tr>
  9949. <td>customField</td>
  9950. <td>path</td>
  9951. <td>string</td>
  9952. <td>true</td>
  9953. <td>the ID of the custom field</td>
  9954. </tr>
  9955. </tbody>
  9956. </table>
  9957. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  9958. <p><strong>customField</strong>: the ID of the custom field</p>
  9959. <blockquote>
  9960. <p>Example responses</p>
  9961. </blockquote>
  9962. <blockquote>
  9963. <p>200 Response</p>
  9964. </blockquote>
  9965. <pre class="highlight tab tab-json"><code>{
  9966. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9967. }
  9968. </code></pre>
  9969. <h3 id="delete_custom_field-responses">Responses</h3>
  9970. <table>
  9971. <thead>
  9972. <tr>
  9973. <th>Status</th>
  9974. <th>Meaning</th>
  9975. <th>Description</th>
  9976. <th>Schema</th>
  9977. </tr>
  9978. </thead>
  9979. <tbody>
  9980. <tr>
  9981. <td>200</td>
  9982. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9983. <td>200 response</td>
  9984. <td>Inline</td>
  9985. </tr>
  9986. </tbody>
  9987. </table>
  9988. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  9989. <p>Status Code <strong>200</strong></p>
  9990. <table>
  9991. <thead>
  9992. <tr>
  9993. <th>Name</th>
  9994. <th>Type</th>
  9995. <th>Required</th>
  9996. <th>Restrictions</th>
  9997. <th>Description</th>
  9998. </tr>
  9999. </thead>
  10000. <tbody>
  10001. <tr>
  10002. <td>» _id</td>
  10003. <td>string</td>
  10004. <td>false</td>
  10005. <td>none</td>
  10006. <td>none</td>
  10007. </tr>
  10008. </tbody>
  10009. </table>
  10010. <aside class="warning">
  10011. To perform this operation, you must be authenticated by means of one of the following methods:
  10012. UserSecurity
  10013. </aside>
  10014. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10015. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10016. <blockquote>
  10017. <p>Code samples</p>
  10018. </blockquote>
  10019. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10020. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10021. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10022. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10023. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10024. </code></pre>
  10025. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items</span> <span class="hljs-meta">HTTP/1.1</span>
  10026. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10027. Accept: application/json
  10028. </span></code></pre>
  10029. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10030. &quot;items&quot;: &quot;string&quot;
  10031. }&#x27;</span>;
  10032. <span class="hljs-keyword">const</span> headers = {
  10033. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10034. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10035. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10036. };
  10037. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10038. {
  10039. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10040. <span class="hljs-attr">body</span>: inputBody,
  10041. <span class="hljs-attr">headers</span>: headers
  10042. })
  10043. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10044. <span class="hljs-keyword">return</span> res.json();
  10045. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10046. <span class="hljs-built_in">console</span>.log(body);
  10047. });
  10048. </code></pre>
  10049. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10050. <span class="hljs-keyword">const</span> inputBody = {
  10051. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10052. };
  10053. <span class="hljs-keyword">const</span> headers = {
  10054. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10055. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10056. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10057. };
  10058. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10059. {
  10060. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10061. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10062. <span class="hljs-attr">headers</span>: headers
  10063. })
  10064. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10065. <span class="hljs-keyword">return</span> res.json();
  10066. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10067. <span class="hljs-built_in">console</span>.log(body);
  10068. });
  10069. </code></pre>
  10070. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10071. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10072. headers = {
  10073. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10074. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10075. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10076. }
  10077. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10078. <span class="hljs-symbol">params:</span> {
  10079. }, <span class="hljs-symbol">headers:</span> headers
  10080. p JSON.parse(result)
  10081. </code></pre>
  10082. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10083. headers = {
  10084. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10085. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10086. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10087. }
  10088. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  10089. <span class="hljs-built_in">print</span>(r.json())
  10090. </code></pre>
  10091. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items&quot;</span>);
  10092. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10093. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10094. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10095. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10096. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10097. String inputLine;
  10098. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10099. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10100. response.append(inputLine);
  10101. }
  10102. in.close();
  10103. System.out.println(response.toString());
  10104. </code></pre>
  10105. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10106. <span class="hljs-keyword">import</span> (
  10107. <span class="hljs-string">&quot;bytes&quot;</span>
  10108. <span class="hljs-string">&quot;net/http&quot;</span>
  10109. )
  10110. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10111. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10112. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  10113. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10114. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10115. }
  10116. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10117. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items&quot;</span>, data)
  10118. req.Header = headers
  10119. client := &amp;http.Client{}
  10120. resp, err := client.Do(req)
  10121. <span class="hljs-comment">// ...</span>
  10122. }
  10123. </code></pre>
  10124. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10125. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10126. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10127. );
  10128. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10129. <span class="hljs-comment">// Define array of request body.</span>
  10130. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10131. <span class="hljs-keyword">try</span> {
  10132. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, <span class="hljs-keyword">array</span>(
  10133. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10134. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10135. )
  10136. );
  10137. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10138. }
  10139. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10140. <span class="hljs-comment">// handle exception or api errors.</span>
  10141. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10142. }
  10143. <span class="hljs-comment">// ...</span>
  10144. </code></pre>
  10145. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10146. <p><em>Update a Custom Field's dropdown items</em></p>
  10147. <blockquote>
  10148. <p>Body parameter</p>
  10149. </blockquote>
  10150. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10151. </code></pre>
  10152. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10153. <table>
  10154. <thead>
  10155. <tr>
  10156. <th>Name</th>
  10157. <th>In</th>
  10158. <th>Type</th>
  10159. <th>Required</th>
  10160. <th>Description</th>
  10161. </tr>
  10162. </thead>
  10163. <tbody>
  10164. <tr>
  10165. <td>board</td>
  10166. <td>path</td>
  10167. <td>string</td>
  10168. <td>true</td>
  10169. <td>the board value</td>
  10170. </tr>
  10171. <tr>
  10172. <td>customField</td>
  10173. <td>path</td>
  10174. <td>string</td>
  10175. <td>true</td>
  10176. <td>the customField value</td>
  10177. </tr>
  10178. <tr>
  10179. <td>body</td>
  10180. <td>body</td>
  10181. <td>object</td>
  10182. <td>false</td>
  10183. <td>none</td>
  10184. </tr>
  10185. <tr>
  10186. <td>» items</td>
  10187. <td>body</td>
  10188. <td>string</td>
  10189. <td>false</td>
  10190. <td>names of the custom field</td>
  10191. </tr>
  10192. </tbody>
  10193. </table>
  10194. <blockquote>
  10195. <p>Example responses</p>
  10196. </blockquote>
  10197. <blockquote>
  10198. <p>200 Response</p>
  10199. </blockquote>
  10200. <pre class="highlight tab tab-json"><code>{
  10201. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10202. }
  10203. </code></pre>
  10204. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10205. <table>
  10206. <thead>
  10207. <tr>
  10208. <th>Status</th>
  10209. <th>Meaning</th>
  10210. <th>Description</th>
  10211. <th>Schema</th>
  10212. </tr>
  10213. </thead>
  10214. <tbody>
  10215. <tr>
  10216. <td>200</td>
  10217. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10218. <td>200 response</td>
  10219. <td>Inline</td>
  10220. </tr>
  10221. </tbody>
  10222. </table>
  10223. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10224. <p>Status Code <strong>200</strong></p>
  10225. <table>
  10226. <thead>
  10227. <tr>
  10228. <th>Name</th>
  10229. <th>Type</th>
  10230. <th>Required</th>
  10231. <th>Restrictions</th>
  10232. <th>Description</th>
  10233. </tr>
  10234. </thead>
  10235. <tbody>
  10236. <tr>
  10237. <td>» _id</td>
  10238. <td>string</td>
  10239. <td>false</td>
  10240. <td>none</td>
  10241. <td>none</td>
  10242. </tr>
  10243. </tbody>
  10244. </table>
  10245. <aside class="warning">
  10246. To perform this operation, you must be authenticated by means of one of the following methods:
  10247. UserSecurity
  10248. </aside>
  10249. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10250. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10251. <blockquote>
  10252. <p>Code samples</p>
  10253. </blockquote>
  10254. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10255. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10256. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10257. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10258. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10259. </code></pre>
  10260. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</span> <span class="hljs-meta">HTTP/1.1</span>
  10261. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10262. Accept: application/json
  10263. </span></code></pre>
  10264. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10265. &quot;name&quot;: &quot;string&quot;
  10266. }&#x27;</span>;
  10267. <span class="hljs-keyword">const</span> headers = {
  10268. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10269. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10270. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10271. };
  10272. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10273. {
  10274. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10275. <span class="hljs-attr">body</span>: inputBody,
  10276. <span class="hljs-attr">headers</span>: headers
  10277. })
  10278. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10279. <span class="hljs-keyword">return</span> res.json();
  10280. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10281. <span class="hljs-built_in">console</span>.log(body);
  10282. });
  10283. </code></pre>
  10284. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10285. <span class="hljs-keyword">const</span> inputBody = {
  10286. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10287. };
  10288. <span class="hljs-keyword">const</span> headers = {
  10289. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10290. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10291. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10292. };
  10293. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10294. {
  10295. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10296. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10297. <span class="hljs-attr">headers</span>: headers
  10298. })
  10299. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10300. <span class="hljs-keyword">return</span> res.json();
  10301. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10302. <span class="hljs-built_in">console</span>.log(body);
  10303. });
  10304. </code></pre>
  10305. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10306. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10307. headers = {
  10308. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10309. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10310. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10311. }
  10312. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10313. <span class="hljs-symbol">params:</span> {
  10314. }, <span class="hljs-symbol">headers:</span> headers
  10315. p JSON.parse(result)
  10316. </code></pre>
  10317. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10318. headers = {
  10319. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10320. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10321. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10322. }
  10323. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10324. <span class="hljs-built_in">print</span>(r.json())
  10325. </code></pre>
  10326. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&quot;</span>);
  10327. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10328. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10329. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10330. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10331. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10332. String inputLine;
  10333. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10334. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10335. response.append(inputLine);
  10336. }
  10337. in.close();
  10338. System.out.println(response.toString());
  10339. </code></pre>
  10340. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10341. <span class="hljs-keyword">import</span> (
  10342. <span class="hljs-string">&quot;bytes&quot;</span>
  10343. <span class="hljs-string">&quot;net/http&quot;</span>
  10344. )
  10345. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10346. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10347. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  10348. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10349. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10350. }
  10351. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10352. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&quot;</span>, data)
  10353. req.Header = headers
  10354. client := &amp;http.Client{}
  10355. resp, err := client.Do(req)
  10356. <span class="hljs-comment">// ...</span>
  10357. }
  10358. </code></pre>
  10359. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10360. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10361. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10362. );
  10363. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10364. <span class="hljs-comment">// Define array of request body.</span>
  10365. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10366. <span class="hljs-keyword">try</span> {
  10367. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, <span class="hljs-keyword">array</span>(
  10368. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10369. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10370. )
  10371. );
  10372. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10373. }
  10374. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10375. <span class="hljs-comment">// handle exception or api errors.</span>
  10376. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10377. }
  10378. <span class="hljs-comment">// ...</span>
  10379. </code></pre>
  10380. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10381. <p><em>Update a Custom Field's dropdown item</em></p>
  10382. <blockquote>
  10383. <p>Body parameter</p>
  10384. </blockquote>
  10385. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10386. </code></pre>
  10387. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  10388. <table>
  10389. <thead>
  10390. <tr>
  10391. <th>Name</th>
  10392. <th>In</th>
  10393. <th>Type</th>
  10394. <th>Required</th>
  10395. <th>Description</th>
  10396. </tr>
  10397. </thead>
  10398. <tbody>
  10399. <tr>
  10400. <td>board</td>
  10401. <td>path</td>
  10402. <td>string</td>
  10403. <td>true</td>
  10404. <td>the board value</td>
  10405. </tr>
  10406. <tr>
  10407. <td>customField</td>
  10408. <td>path</td>
  10409. <td>string</td>
  10410. <td>true</td>
  10411. <td>the customField value</td>
  10412. </tr>
  10413. <tr>
  10414. <td>dropdownItem</td>
  10415. <td>path</td>
  10416. <td>string</td>
  10417. <td>true</td>
  10418. <td>the dropdownItem value</td>
  10419. </tr>
  10420. <tr>
  10421. <td>body</td>
  10422. <td>body</td>
  10423. <td>object</td>
  10424. <td>true</td>
  10425. <td>none</td>
  10426. </tr>
  10427. <tr>
  10428. <td>» name</td>
  10429. <td>body</td>
  10430. <td>string</td>
  10431. <td>true</td>
  10432. <td>names of the custom field</td>
  10433. </tr>
  10434. </tbody>
  10435. </table>
  10436. <blockquote>
  10437. <p>Example responses</p>
  10438. </blockquote>
  10439. <blockquote>
  10440. <p>200 Response</p>
  10441. </blockquote>
  10442. <pre class="highlight tab tab-json"><code>{
  10443. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10444. }
  10445. </code></pre>
  10446. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  10447. <table>
  10448. <thead>
  10449. <tr>
  10450. <th>Status</th>
  10451. <th>Meaning</th>
  10452. <th>Description</th>
  10453. <th>Schema</th>
  10454. </tr>
  10455. </thead>
  10456. <tbody>
  10457. <tr>
  10458. <td>200</td>
  10459. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10460. <td>200 response</td>
  10461. <td>Inline</td>
  10462. </tr>
  10463. </tbody>
  10464. </table>
  10465. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10466. <p>Status Code <strong>200</strong></p>
  10467. <table>
  10468. <thead>
  10469. <tr>
  10470. <th>Name</th>
  10471. <th>Type</th>
  10472. <th>Required</th>
  10473. <th>Restrictions</th>
  10474. <th>Description</th>
  10475. </tr>
  10476. </thead>
  10477. <tbody>
  10478. <tr>
  10479. <td>» _id</td>
  10480. <td>string</td>
  10481. <td>false</td>
  10482. <td>none</td>
  10483. <td>none</td>
  10484. </tr>
  10485. </tbody>
  10486. </table>
  10487. <aside class="warning">
  10488. To perform this operation, you must be authenticated by means of one of the following methods:
  10489. UserSecurity
  10490. </aside>
  10491. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  10492. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  10493. <blockquote>
  10494. <p>Code samples</p>
  10495. </blockquote>
  10496. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10497. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10498. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10499. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10500. </code></pre>
  10501. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</span> <span class="hljs-meta">HTTP/1.1</span>
  10502. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10503. </span></code></pre>
  10504. <pre class="highlight tab tab-javascript"><code>
  10505. <span class="hljs-keyword">const</span> headers = {
  10506. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10507. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10508. };
  10509. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10510. {
  10511. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10512. <span class="hljs-attr">headers</span>: headers
  10513. })
  10514. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10515. <span class="hljs-keyword">return</span> res.json();
  10516. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10517. <span class="hljs-built_in">console</span>.log(body);
  10518. });
  10519. </code></pre>
  10520. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10521. <span class="hljs-keyword">const</span> headers = {
  10522. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10523. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10524. };
  10525. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10526. {
  10527. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10528. <span class="hljs-attr">headers</span>: headers
  10529. })
  10530. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10531. <span class="hljs-keyword">return</span> res.json();
  10532. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10533. <span class="hljs-built_in">console</span>.log(body);
  10534. });
  10535. </code></pre>
  10536. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10537. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10538. headers = {
  10539. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10540. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10541. }
  10542. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10543. <span class="hljs-symbol">params:</span> {
  10544. }, <span class="hljs-symbol">headers:</span> headers
  10545. p JSON.parse(result)
  10546. </code></pre>
  10547. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10548. headers = {
  10549. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10550. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10551. }
  10552. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10553. <span class="hljs-built_in">print</span>(r.json())
  10554. </code></pre>
  10555. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&quot;</span>);
  10556. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10557. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10558. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10559. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10560. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10561. String inputLine;
  10562. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10563. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10564. response.append(inputLine);
  10565. }
  10566. in.close();
  10567. System.out.println(response.toString());
  10568. </code></pre>
  10569. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10570. <span class="hljs-keyword">import</span> (
  10571. <span class="hljs-string">&quot;bytes&quot;</span>
  10572. <span class="hljs-string">&quot;net/http&quot;</span>
  10573. )
  10574. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10575. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10576. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10577. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10578. }
  10579. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10580. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&quot;</span>, data)
  10581. req.Header = headers
  10582. client := &amp;http.Client{}
  10583. resp, err := client.Do(req)
  10584. <span class="hljs-comment">// ...</span>
  10585. }
  10586. </code></pre>
  10587. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10588. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10589. );
  10590. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10591. <span class="hljs-comment">// Define array of request body.</span>
  10592. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10593. <span class="hljs-keyword">try</span> {
  10594. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, <span class="hljs-keyword">array</span>(
  10595. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10596. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10597. )
  10598. );
  10599. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10600. }
  10601. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10602. <span class="hljs-comment">// handle exception or api errors.</span>
  10603. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10604. }
  10605. <span class="hljs-comment">// ...</span>
  10606. </code></pre>
  10607. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10608. <p><em>Update a Custom Field's dropdown items</em></p>
  10609. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  10610. <table>
  10611. <thead>
  10612. <tr>
  10613. <th>Name</th>
  10614. <th>In</th>
  10615. <th>Type</th>
  10616. <th>Required</th>
  10617. <th>Description</th>
  10618. </tr>
  10619. </thead>
  10620. <tbody>
  10621. <tr>
  10622. <td>board</td>
  10623. <td>path</td>
  10624. <td>string</td>
  10625. <td>true</td>
  10626. <td>the board value</td>
  10627. </tr>
  10628. <tr>
  10629. <td>customField</td>
  10630. <td>path</td>
  10631. <td>string</td>
  10632. <td>true</td>
  10633. <td>the customField value</td>
  10634. </tr>
  10635. <tr>
  10636. <td>dropdownItem</td>
  10637. <td>path</td>
  10638. <td>string</td>
  10639. <td>true</td>
  10640. <td>the dropdownItem value</td>
  10641. </tr>
  10642. </tbody>
  10643. </table>
  10644. <blockquote>
  10645. <p>Example responses</p>
  10646. </blockquote>
  10647. <blockquote>
  10648. <p>200 Response</p>
  10649. </blockquote>
  10650. <pre class="highlight tab tab-json"><code>{
  10651. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10652. }
  10653. </code></pre>
  10654. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  10655. <table>
  10656. <thead>
  10657. <tr>
  10658. <th>Status</th>
  10659. <th>Meaning</th>
  10660. <th>Description</th>
  10661. <th>Schema</th>
  10662. </tr>
  10663. </thead>
  10664. <tbody>
  10665. <tr>
  10666. <td>200</td>
  10667. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10668. <td>200 response</td>
  10669. <td>Inline</td>
  10670. </tr>
  10671. </tbody>
  10672. </table>
  10673. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  10674. <p>Status Code <strong>200</strong></p>
  10675. <table>
  10676. <thead>
  10677. <tr>
  10678. <th>Name</th>
  10679. <th>Type</th>
  10680. <th>Required</th>
  10681. <th>Restrictions</th>
  10682. <th>Description</th>
  10683. </tr>
  10684. </thead>
  10685. <tbody>
  10686. <tr>
  10687. <td>» _id</td>
  10688. <td>string</td>
  10689. <td>false</td>
  10690. <td>none</td>
  10691. <td>none</td>
  10692. </tr>
  10693. </tbody>
  10694. </table>
  10695. <aside class="warning">
  10696. To perform this operation, you must be authenticated by means of one of the following methods:
  10697. UserSecurity
  10698. </aside>
  10699. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  10700. <h2 id="get_all_integrations">get_all_integrations</h2>
  10701. <p><a id="opIdget_all_integrations"></a></p>
  10702. <blockquote>
  10703. <p>Code samples</p>
  10704. </blockquote>
  10705. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10706. curl -X GET /api/boards/{board}/integrations \
  10707. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10708. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10709. </code></pre>
  10710. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations</span> <span class="hljs-meta">HTTP/1.1</span>
  10711. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10712. </span></code></pre>
  10713. <pre class="highlight tab tab-javascript"><code>
  10714. <span class="hljs-keyword">const</span> headers = {
  10715. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10716. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10717. };
  10718. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10719. {
  10720. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10721. <span class="hljs-attr">headers</span>: headers
  10722. })
  10723. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10724. <span class="hljs-keyword">return</span> res.json();
  10725. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10726. <span class="hljs-built_in">console</span>.log(body);
  10727. });
  10728. </code></pre>
  10729. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  10730. <span class="hljs-keyword">const</span> headers = {
  10731. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10732. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10733. };
  10734. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10735. {
  10736. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  10737. <span class="hljs-attr">headers</span>: headers
  10738. })
  10739. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10740. <span class="hljs-keyword">return</span> res.json();
  10741. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10742. <span class="hljs-built_in">console</span>.log(body);
  10743. });
  10744. </code></pre>
  10745. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10746. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10747. headers = {
  10748. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10749. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10750. }
  10751. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  10752. <span class="hljs-symbol">params:</span> {
  10753. }, <span class="hljs-symbol">headers:</span> headers
  10754. p JSON.parse(result)
  10755. </code></pre>
  10756. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10757. headers = {
  10758. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10759. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10760. }
  10761. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  10762. <span class="hljs-built_in">print</span>(r.json())
  10763. </code></pre>
  10764. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>);
  10765. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10766. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  10767. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10768. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10769. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10770. String inputLine;
  10771. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10772. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10773. response.append(inputLine);
  10774. }
  10775. in.close();
  10776. System.out.println(response.toString());
  10777. </code></pre>
  10778. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10779. <span class="hljs-keyword">import</span> (
  10780. <span class="hljs-string">&quot;bytes&quot;</span>
  10781. <span class="hljs-string">&quot;net/http&quot;</span>
  10782. )
  10783. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10784. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10785. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10786. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10787. }
  10788. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10789. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  10790. req.Header = headers
  10791. client := &amp;http.Client{}
  10792. resp, err := client.Do(req)
  10793. <span class="hljs-comment">// ...</span>
  10794. }
  10795. </code></pre>
  10796. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10797. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10798. );
  10799. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10800. <span class="hljs-comment">// Define array of request body.</span>
  10801. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10802. <span class="hljs-keyword">try</span> {
  10803. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, <span class="hljs-keyword">array</span>(
  10804. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10805. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10806. )
  10807. );
  10808. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10809. }
  10810. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10811. <span class="hljs-comment">// handle exception or api errors.</span>
  10812. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10813. }
  10814. <span class="hljs-comment">// ...</span>
  10815. </code></pre>
  10816. <p><code>GET /api/boards/{board}/integrations</code></p>
  10817. <p><em>Get all integrations in board</em></p>
  10818. <h3 id="get_all_integrations-parameters">Parameters</h3>
  10819. <table>
  10820. <thead>
  10821. <tr>
  10822. <th>Name</th>
  10823. <th>In</th>
  10824. <th>Type</th>
  10825. <th>Required</th>
  10826. <th>Description</th>
  10827. </tr>
  10828. </thead>
  10829. <tbody>
  10830. <tr>
  10831. <td>board</td>
  10832. <td>path</td>
  10833. <td>string</td>
  10834. <td>true</td>
  10835. <td>the board ID</td>
  10836. </tr>
  10837. </tbody>
  10838. </table>
  10839. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  10840. <p><strong>board</strong>: the board ID</p>
  10841. <blockquote>
  10842. <p>Example responses</p>
  10843. </blockquote>
  10844. <blockquote>
  10845. <p>200 Response</p>
  10846. </blockquote>
  10847. <pre class="highlight tab tab-json"><code>[
  10848. {
  10849. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  10850. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10851. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10852. <span class="hljs-attr">&quot;activities&quot;</span>: [
  10853. <span class="hljs-string">&quot;string&quot;</span>
  10854. ],
  10855. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10856. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10857. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10858. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10859. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10860. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10861. }
  10862. ]
  10863. </code></pre>
  10864. <h3 id="get_all_integrations-responses">Responses</h3>
  10865. <table>
  10866. <thead>
  10867. <tr>
  10868. <th>Status</th>
  10869. <th>Meaning</th>
  10870. <th>Description</th>
  10871. <th>Schema</th>
  10872. </tr>
  10873. </thead>
  10874. <tbody>
  10875. <tr>
  10876. <td>200</td>
  10877. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10878. <td>200 response</td>
  10879. <td>Inline</td>
  10880. </tr>
  10881. </tbody>
  10882. </table>
  10883. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  10884. <p>Status Code <strong>200</strong></p>
  10885. <table>
  10886. <thead>
  10887. <tr>
  10888. <th>Name</th>
  10889. <th>Type</th>
  10890. <th>Required</th>
  10891. <th>Restrictions</th>
  10892. <th>Description</th>
  10893. </tr>
  10894. </thead>
  10895. <tbody>
  10896. <tr>
  10897. <td><em>anonymous</em></td>
  10898. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  10899. <td>false</td>
  10900. <td>none</td>
  10901. <td>[Integration with third-party applications]</td>
  10902. </tr>
  10903. <tr>
  10904. <td>» enabled</td>
  10905. <td>boolean</td>
  10906. <td>true</td>
  10907. <td>none</td>
  10908. <td>is the integration enabled?</td>
  10909. </tr>
  10910. <tr>
  10911. <td>» title</td>
  10912. <td>string¦null</td>
  10913. <td>false</td>
  10914. <td>none</td>
  10915. <td>name of the integration</td>
  10916. </tr>
  10917. <tr>
  10918. <td>» type</td>
  10919. <td>string</td>
  10920. <td>true</td>
  10921. <td>none</td>
  10922. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  10923. </tr>
  10924. <tr>
  10925. <td>» activities</td>
  10926. <td>[string]</td>
  10927. <td>true</td>
  10928. <td>none</td>
  10929. <td>activities the integration gets triggered (list)</td>
  10930. </tr>
  10931. <tr>
  10932. <td>» url</td>
  10933. <td>string</td>
  10934. <td>true</td>
  10935. <td>none</td>
  10936. <td>none</td>
  10937. </tr>
  10938. <tr>
  10939. <td>» token</td>
  10940. <td>string¦null</td>
  10941. <td>false</td>
  10942. <td>none</td>
  10943. <td>token of the integration</td>
  10944. </tr>
  10945. <tr>
  10946. <td>» boardId</td>
  10947. <td>string</td>
  10948. <td>true</td>
  10949. <td>none</td>
  10950. <td>Board ID of the integration</td>
  10951. </tr>
  10952. <tr>
  10953. <td>» createdAt</td>
  10954. <td>string</td>
  10955. <td>true</td>
  10956. <td>none</td>
  10957. <td>Creation date of the integration</td>
  10958. </tr>
  10959. <tr>
  10960. <td>» modifiedAt</td>
  10961. <td>string</td>
  10962. <td>true</td>
  10963. <td>none</td>
  10964. <td>none</td>
  10965. </tr>
  10966. <tr>
  10967. <td>» userId</td>
  10968. <td>string</td>
  10969. <td>true</td>
  10970. <td>none</td>
  10971. <td>user ID who created the interation</td>
  10972. </tr>
  10973. </tbody>
  10974. </table>
  10975. <aside class="warning">
  10976. To perform this operation, you must be authenticated by means of one of the following methods:
  10977. UserSecurity
  10978. </aside>
  10979. <h2 id="new_integration">new_integration</h2>
  10980. <p><a id="opIdnew_integration"></a></p>
  10981. <blockquote>
  10982. <p>Code samples</p>
  10983. </blockquote>
  10984. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10985. curl -X POST /api/boards/{board}/integrations \
  10986. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10987. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10988. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10989. </code></pre>
  10990. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations</span> <span class="hljs-meta">HTTP/1.1</span>
  10991. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10992. Accept: application/json
  10993. </span></code></pre>
  10994. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10995. &quot;url&quot;: &quot;string&quot;
  10996. }&#x27;</span>;
  10997. <span class="hljs-keyword">const</span> headers = {
  10998. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10999. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11000. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11001. };
  11002. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11003. {
  11004. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11005. <span class="hljs-attr">body</span>: inputBody,
  11006. <span class="hljs-attr">headers</span>: headers
  11007. })
  11008. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11009. <span class="hljs-keyword">return</span> res.json();
  11010. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11011. <span class="hljs-built_in">console</span>.log(body);
  11012. });
  11013. </code></pre>
  11014. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11015. <span class="hljs-keyword">const</span> inputBody = {
  11016. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11017. };
  11018. <span class="hljs-keyword">const</span> headers = {
  11019. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11020. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11021. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11022. };
  11023. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11024. {
  11025. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11026. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11027. <span class="hljs-attr">headers</span>: headers
  11028. })
  11029. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11030. <span class="hljs-keyword">return</span> res.json();
  11031. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11032. <span class="hljs-built_in">console</span>.log(body);
  11033. });
  11034. </code></pre>
  11035. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11036. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11037. headers = {
  11038. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11039. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11040. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11041. }
  11042. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11043. <span class="hljs-symbol">params:</span> {
  11044. }, <span class="hljs-symbol">headers:</span> headers
  11045. p JSON.parse(result)
  11046. </code></pre>
  11047. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11048. headers = {
  11049. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11050. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11051. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11052. }
  11053. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11054. <span class="hljs-built_in">print</span>(r.json())
  11055. </code></pre>
  11056. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>);
  11057. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11058. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11059. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11060. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11061. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11062. String inputLine;
  11063. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11064. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11065. response.append(inputLine);
  11066. }
  11067. in.close();
  11068. System.out.println(response.toString());
  11069. </code></pre>
  11070. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11071. <span class="hljs-keyword">import</span> (
  11072. <span class="hljs-string">&quot;bytes&quot;</span>
  11073. <span class="hljs-string">&quot;net/http&quot;</span>
  11074. )
  11075. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11076. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11077. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  11078. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11079. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11080. }
  11081. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11082. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11083. req.Header = headers
  11084. client := &amp;http.Client{}
  11085. resp, err := client.Do(req)
  11086. <span class="hljs-comment">// ...</span>
  11087. }
  11088. </code></pre>
  11089. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11090. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11091. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11092. );
  11093. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11094. <span class="hljs-comment">// Define array of request body.</span>
  11095. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11096. <span class="hljs-keyword">try</span> {
  11097. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, <span class="hljs-keyword">array</span>(
  11098. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11099. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11100. )
  11101. );
  11102. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11103. }
  11104. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11105. <span class="hljs-comment">// handle exception or api errors.</span>
  11106. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11107. }
  11108. <span class="hljs-comment">// ...</span>
  11109. </code></pre>
  11110. <p><code>POST /api/boards/{board}/integrations</code></p>
  11111. <p><em>Create a new integration</em></p>
  11112. <blockquote>
  11113. <p>Body parameter</p>
  11114. </blockquote>
  11115. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11116. </code></pre>
  11117. <h3 id="new_integration-parameters">Parameters</h3>
  11118. <table>
  11119. <thead>
  11120. <tr>
  11121. <th>Name</th>
  11122. <th>In</th>
  11123. <th>Type</th>
  11124. <th>Required</th>
  11125. <th>Description</th>
  11126. </tr>
  11127. </thead>
  11128. <tbody>
  11129. <tr>
  11130. <td>board</td>
  11131. <td>path</td>
  11132. <td>string</td>
  11133. <td>true</td>
  11134. <td>the board ID</td>
  11135. </tr>
  11136. <tr>
  11137. <td>body</td>
  11138. <td>body</td>
  11139. <td>object</td>
  11140. <td>true</td>
  11141. <td>none</td>
  11142. </tr>
  11143. <tr>
  11144. <td>» url</td>
  11145. <td>body</td>
  11146. <td>string</td>
  11147. <td>true</td>
  11148. <td>the URL of the integration</td>
  11149. </tr>
  11150. </tbody>
  11151. </table>
  11152. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  11153. <p><strong>board</strong>: the board ID</p>
  11154. <blockquote>
  11155. <p>Example responses</p>
  11156. </blockquote>
  11157. <blockquote>
  11158. <p>200 Response</p>
  11159. </blockquote>
  11160. <pre class="highlight tab tab-json"><code>{
  11161. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11162. }
  11163. </code></pre>
  11164. <h3 id="new_integration-responses">Responses</h3>
  11165. <table>
  11166. <thead>
  11167. <tr>
  11168. <th>Status</th>
  11169. <th>Meaning</th>
  11170. <th>Description</th>
  11171. <th>Schema</th>
  11172. </tr>
  11173. </thead>
  11174. <tbody>
  11175. <tr>
  11176. <td>200</td>
  11177. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11178. <td>200 response</td>
  11179. <td>Inline</td>
  11180. </tr>
  11181. </tbody>
  11182. </table>
  11183. <h3 id="new_integration-responseschema">Response Schema</h3>
  11184. <p>Status Code <strong>200</strong></p>
  11185. <table>
  11186. <thead>
  11187. <tr>
  11188. <th>Name</th>
  11189. <th>Type</th>
  11190. <th>Required</th>
  11191. <th>Restrictions</th>
  11192. <th>Description</th>
  11193. </tr>
  11194. </thead>
  11195. <tbody>
  11196. <tr>
  11197. <td>» _id</td>
  11198. <td>string</td>
  11199. <td>false</td>
  11200. <td>none</td>
  11201. <td>none</td>
  11202. </tr>
  11203. </tbody>
  11204. </table>
  11205. <aside class="warning">
  11206. To perform this operation, you must be authenticated by means of one of the following methods:
  11207. UserSecurity
  11208. </aside>
  11209. <h2 id="get_integration">get_integration</h2>
  11210. <p><a id="opIdget_integration"></a></p>
  11211. <blockquote>
  11212. <p>Code samples</p>
  11213. </blockquote>
  11214. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11215. curl -X GET /api/boards/{board}/integrations/{int} \
  11216. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11217. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11218. </code></pre>
  11219. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> <span class="hljs-meta">HTTP/1.1</span>
  11220. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11221. </span></code></pre>
  11222. <pre class="highlight tab tab-javascript"><code>
  11223. <span class="hljs-keyword">const</span> headers = {
  11224. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11225. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11226. };
  11227. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11228. {
  11229. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11230. <span class="hljs-attr">headers</span>: headers
  11231. })
  11232. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11233. <span class="hljs-keyword">return</span> res.json();
  11234. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11235. <span class="hljs-built_in">console</span>.log(body);
  11236. });
  11237. </code></pre>
  11238. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11239. <span class="hljs-keyword">const</span> headers = {
  11240. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11241. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11242. };
  11243. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11244. {
  11245. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11246. <span class="hljs-attr">headers</span>: headers
  11247. })
  11248. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11249. <span class="hljs-keyword">return</span> res.json();
  11250. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11251. <span class="hljs-built_in">console</span>.log(body);
  11252. });
  11253. </code></pre>
  11254. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11255. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11256. headers = {
  11257. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11258. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11259. }
  11260. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11261. <span class="hljs-symbol">params:</span> {
  11262. }, <span class="hljs-symbol">headers:</span> headers
  11263. p JSON.parse(result)
  11264. </code></pre>
  11265. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11266. headers = {
  11267. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11268. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11269. }
  11270. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11271. <span class="hljs-built_in">print</span>(r.json())
  11272. </code></pre>
  11273. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>);
  11274. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11275. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11276. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11277. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11278. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11279. String inputLine;
  11280. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11281. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11282. response.append(inputLine);
  11283. }
  11284. in.close();
  11285. System.out.println(response.toString());
  11286. </code></pre>
  11287. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11288. <span class="hljs-keyword">import</span> (
  11289. <span class="hljs-string">&quot;bytes&quot;</span>
  11290. <span class="hljs-string">&quot;net/http&quot;</span>
  11291. )
  11292. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11293. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11294. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11295. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11296. }
  11297. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11298. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>, data)
  11299. req.Header = headers
  11300. client := &amp;http.Client{}
  11301. resp, err := client.Do(req)
  11302. <span class="hljs-comment">// ...</span>
  11303. }
  11304. </code></pre>
  11305. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11306. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11307. );
  11308. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11309. <span class="hljs-comment">// Define array of request body.</span>
  11310. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11311. <span class="hljs-keyword">try</span> {
  11312. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, <span class="hljs-keyword">array</span>(
  11313. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11314. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11315. )
  11316. );
  11317. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11318. }
  11319. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11320. <span class="hljs-comment">// handle exception or api errors.</span>
  11321. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11322. }
  11323. <span class="hljs-comment">// ...</span>
  11324. </code></pre>
  11325. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11326. <p><em>Get a single integration in board</em></p>
  11327. <h3 id="get_integration-parameters">Parameters</h3>
  11328. <table>
  11329. <thead>
  11330. <tr>
  11331. <th>Name</th>
  11332. <th>In</th>
  11333. <th>Type</th>
  11334. <th>Required</th>
  11335. <th>Description</th>
  11336. </tr>
  11337. </thead>
  11338. <tbody>
  11339. <tr>
  11340. <td>board</td>
  11341. <td>path</td>
  11342. <td>string</td>
  11343. <td>true</td>
  11344. <td>the board ID</td>
  11345. </tr>
  11346. <tr>
  11347. <td>int</td>
  11348. <td>path</td>
  11349. <td>string</td>
  11350. <td>true</td>
  11351. <td>the integration ID</td>
  11352. </tr>
  11353. </tbody>
  11354. </table>
  11355. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  11356. <p><strong>board</strong>: the board ID</p>
  11357. <p><strong>int</strong>: the integration ID</p>
  11358. <blockquote>
  11359. <p>Example responses</p>
  11360. </blockquote>
  11361. <blockquote>
  11362. <p>200 Response</p>
  11363. </blockquote>
  11364. <pre class="highlight tab tab-json"><code>{
  11365. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11366. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11367. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11368. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11369. <span class="hljs-string">&quot;string&quot;</span>
  11370. ],
  11371. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11372. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11373. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11374. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11375. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11376. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11377. }
  11378. </code></pre>
  11379. <h3 id="get_integration-responses">Responses</h3>
  11380. <table>
  11381. <thead>
  11382. <tr>
  11383. <th>Status</th>
  11384. <th>Meaning</th>
  11385. <th>Description</th>
  11386. <th>Schema</th>
  11387. </tr>
  11388. </thead>
  11389. <tbody>
  11390. <tr>
  11391. <td>200</td>
  11392. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11393. <td>200 response</td>
  11394. <td><a href="#schemaintegrations">Integrations</a></td>
  11395. </tr>
  11396. </tbody>
  11397. </table>
  11398. <aside class="warning">
  11399. To perform this operation, you must be authenticated by means of one of the following methods:
  11400. UserSecurity
  11401. </aside>
  11402. <h2 id="edit_integration">edit_integration</h2>
  11403. <p><a id="opIdedit_integration"></a></p>
  11404. <blockquote>
  11405. <p>Code samples</p>
  11406. </blockquote>
  11407. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11408. curl -X PUT /api/boards/{board}/integrations/{int} \
  11409. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11410. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11411. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11412. </code></pre>
  11413. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> <span class="hljs-meta">HTTP/1.1</span>
  11414. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11415. Accept: application/json
  11416. </span></code></pre>
  11417. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11418. &quot;enabled&quot;: &quot;string&quot;,
  11419. &quot;title&quot;: &quot;string&quot;,
  11420. &quot;url&quot;: &quot;string&quot;,
  11421. &quot;token&quot;: &quot;string&quot;,
  11422. &quot;activities&quot;: &quot;string&quot;
  11423. }&#x27;</span>;
  11424. <span class="hljs-keyword">const</span> headers = {
  11425. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11426. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11427. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11428. };
  11429. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11430. {
  11431. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11432. <span class="hljs-attr">body</span>: inputBody,
  11433. <span class="hljs-attr">headers</span>: headers
  11434. })
  11435. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11436. <span class="hljs-keyword">return</span> res.json();
  11437. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11438. <span class="hljs-built_in">console</span>.log(body);
  11439. });
  11440. </code></pre>
  11441. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11442. <span class="hljs-keyword">const</span> inputBody = {
  11443. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11444. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11445. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11446. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11447. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11448. };
  11449. <span class="hljs-keyword">const</span> headers = {
  11450. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11451. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11452. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11453. };
  11454. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11455. {
  11456. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11457. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11458. <span class="hljs-attr">headers</span>: headers
  11459. })
  11460. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11461. <span class="hljs-keyword">return</span> res.json();
  11462. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11463. <span class="hljs-built_in">console</span>.log(body);
  11464. });
  11465. </code></pre>
  11466. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11467. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11468. headers = {
  11469. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11470. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11471. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11472. }
  11473. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11474. <span class="hljs-symbol">params:</span> {
  11475. }, <span class="hljs-symbol">headers:</span> headers
  11476. p JSON.parse(result)
  11477. </code></pre>
  11478. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11479. headers = {
  11480. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11481. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11482. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11483. }
  11484. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11485. <span class="hljs-built_in">print</span>(r.json())
  11486. </code></pre>
  11487. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>);
  11488. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11489. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  11490. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11491. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11492. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11493. String inputLine;
  11494. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11495. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11496. response.append(inputLine);
  11497. }
  11498. in.close();
  11499. System.out.println(response.toString());
  11500. </code></pre>
  11501. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11502. <span class="hljs-keyword">import</span> (
  11503. <span class="hljs-string">&quot;bytes&quot;</span>
  11504. <span class="hljs-string">&quot;net/http&quot;</span>
  11505. )
  11506. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11507. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11508. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  11509. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11510. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11511. }
  11512. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11513. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>, data)
  11514. req.Header = headers
  11515. client := &amp;http.Client{}
  11516. resp, err := client.Do(req)
  11517. <span class="hljs-comment">// ...</span>
  11518. }
  11519. </code></pre>
  11520. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11521. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11522. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11523. );
  11524. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11525. <span class="hljs-comment">// Define array of request body.</span>
  11526. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11527. <span class="hljs-keyword">try</span> {
  11528. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, <span class="hljs-keyword">array</span>(
  11529. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11530. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11531. )
  11532. );
  11533. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11534. }
  11535. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11536. <span class="hljs-comment">// handle exception or api errors.</span>
  11537. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11538. }
  11539. <span class="hljs-comment">// ...</span>
  11540. </code></pre>
  11541. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  11542. <p><em>Edit integration data</em></p>
  11543. <blockquote>
  11544. <p>Body parameter</p>
  11545. </blockquote>
  11546. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  11547. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  11548. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11549. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  11550. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  11551. </code></pre>
  11552. <h3 id="edit_integration-parameters">Parameters</h3>
  11553. <table>
  11554. <thead>
  11555. <tr>
  11556. <th>Name</th>
  11557. <th>In</th>
  11558. <th>Type</th>
  11559. <th>Required</th>
  11560. <th>Description</th>
  11561. </tr>
  11562. </thead>
  11563. <tbody>
  11564. <tr>
  11565. <td>board</td>
  11566. <td>path</td>
  11567. <td>string</td>
  11568. <td>true</td>
  11569. <td>the board ID</td>
  11570. </tr>
  11571. <tr>
  11572. <td>int</td>
  11573. <td>path</td>
  11574. <td>string</td>
  11575. <td>true</td>
  11576. <td>the integration ID</td>
  11577. </tr>
  11578. <tr>
  11579. <td>body</td>
  11580. <td>body</td>
  11581. <td>object</td>
  11582. <td>false</td>
  11583. <td>none</td>
  11584. </tr>
  11585. <tr>
  11586. <td>» enabled</td>
  11587. <td>body</td>
  11588. <td>string</td>
  11589. <td>false</td>
  11590. <td>is the integration enabled?</td>
  11591. </tr>
  11592. <tr>
  11593. <td>» title</td>
  11594. <td>body</td>
  11595. <td>string</td>
  11596. <td>false</td>
  11597. <td>new name of the integration</td>
  11598. </tr>
  11599. <tr>
  11600. <td>» url</td>
  11601. <td>body</td>
  11602. <td>string</td>
  11603. <td>false</td>
  11604. <td>new URL of the integration</td>
  11605. </tr>
  11606. <tr>
  11607. <td>» token</td>
  11608. <td>body</td>
  11609. <td>string</td>
  11610. <td>false</td>
  11611. <td>new token of the integration</td>
  11612. </tr>
  11613. <tr>
  11614. <td>» activities</td>
  11615. <td>body</td>
  11616. <td>string</td>
  11617. <td>false</td>
  11618. <td>new list of activities of the integration</td>
  11619. </tr>
  11620. </tbody>
  11621. </table>
  11622. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  11623. <p><strong>board</strong>: the board ID</p>
  11624. <p><strong>int</strong>: the integration ID</p>
  11625. <blockquote>
  11626. <p>Example responses</p>
  11627. </blockquote>
  11628. <blockquote>
  11629. <p>200 Response</p>
  11630. </blockquote>
  11631. <pre class="highlight tab tab-json"><code>{
  11632. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11633. }
  11634. </code></pre>
  11635. <h3 id="edit_integration-responses">Responses</h3>
  11636. <table>
  11637. <thead>
  11638. <tr>
  11639. <th>Status</th>
  11640. <th>Meaning</th>
  11641. <th>Description</th>
  11642. <th>Schema</th>
  11643. </tr>
  11644. </thead>
  11645. <tbody>
  11646. <tr>
  11647. <td>200</td>
  11648. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11649. <td>200 response</td>
  11650. <td>Inline</td>
  11651. </tr>
  11652. </tbody>
  11653. </table>
  11654. <h3 id="edit_integration-responseschema">Response Schema</h3>
  11655. <p>Status Code <strong>200</strong></p>
  11656. <table>
  11657. <thead>
  11658. <tr>
  11659. <th>Name</th>
  11660. <th>Type</th>
  11661. <th>Required</th>
  11662. <th>Restrictions</th>
  11663. <th>Description</th>
  11664. </tr>
  11665. </thead>
  11666. <tbody>
  11667. <tr>
  11668. <td>» _id</td>
  11669. <td>string</td>
  11670. <td>false</td>
  11671. <td>none</td>
  11672. <td>none</td>
  11673. </tr>
  11674. </tbody>
  11675. </table>
  11676. <aside class="warning">
  11677. To perform this operation, you must be authenticated by means of one of the following methods:
  11678. UserSecurity
  11679. </aside>
  11680. <h2 id="delete_integration">delete_integration</h2>
  11681. <p><a id="opIddelete_integration"></a></p>
  11682. <blockquote>
  11683. <p>Code samples</p>
  11684. </blockquote>
  11685. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11686. curl -X DELETE /api/boards/{board}/integrations/{int} \
  11687. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11688. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11689. </code></pre>
  11690. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}</span> <span class="hljs-meta">HTTP/1.1</span>
  11691. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11692. </span></code></pre>
  11693. <pre class="highlight tab tab-javascript"><code>
  11694. <span class="hljs-keyword">const</span> headers = {
  11695. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11696. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11697. };
  11698. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11699. {
  11700. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11701. <span class="hljs-attr">headers</span>: headers
  11702. })
  11703. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11704. <span class="hljs-keyword">return</span> res.json();
  11705. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11706. <span class="hljs-built_in">console</span>.log(body);
  11707. });
  11708. </code></pre>
  11709. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11710. <span class="hljs-keyword">const</span> headers = {
  11711. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11712. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11713. };
  11714. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11715. {
  11716. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11717. <span class="hljs-attr">headers</span>: headers
  11718. })
  11719. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11720. <span class="hljs-keyword">return</span> res.json();
  11721. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11722. <span class="hljs-built_in">console</span>.log(body);
  11723. });
  11724. </code></pre>
  11725. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11726. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11727. headers = {
  11728. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11729. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11730. }
  11731. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11732. <span class="hljs-symbol">params:</span> {
  11733. }, <span class="hljs-symbol">headers:</span> headers
  11734. p JSON.parse(result)
  11735. </code></pre>
  11736. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11737. headers = {
  11738. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11739. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11740. }
  11741. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11742. <span class="hljs-built_in">print</span>(r.json())
  11743. </code></pre>
  11744. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>);
  11745. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11746. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11747. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11748. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11749. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11750. String inputLine;
  11751. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11752. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11753. response.append(inputLine);
  11754. }
  11755. in.close();
  11756. System.out.println(response.toString());
  11757. </code></pre>
  11758. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11759. <span class="hljs-keyword">import</span> (
  11760. <span class="hljs-string">&quot;bytes&quot;</span>
  11761. <span class="hljs-string">&quot;net/http&quot;</span>
  11762. )
  11763. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11764. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11765. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11766. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11767. }
  11768. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11769. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}&quot;</span>, data)
  11770. req.Header = headers
  11771. client := &amp;http.Client{}
  11772. resp, err := client.Do(req)
  11773. <span class="hljs-comment">// ...</span>
  11774. }
  11775. </code></pre>
  11776. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11777. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11778. );
  11779. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11780. <span class="hljs-comment">// Define array of request body.</span>
  11781. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11782. <span class="hljs-keyword">try</span> {
  11783. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, <span class="hljs-keyword">array</span>(
  11784. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11785. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11786. )
  11787. );
  11788. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11789. }
  11790. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11791. <span class="hljs-comment">// handle exception or api errors.</span>
  11792. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11793. }
  11794. <span class="hljs-comment">// ...</span>
  11795. </code></pre>
  11796. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  11797. <p><em>Delete integration</em></p>
  11798. <h3 id="delete_integration-parameters">Parameters</h3>
  11799. <table>
  11800. <thead>
  11801. <tr>
  11802. <th>Name</th>
  11803. <th>In</th>
  11804. <th>Type</th>
  11805. <th>Required</th>
  11806. <th>Description</th>
  11807. </tr>
  11808. </thead>
  11809. <tbody>
  11810. <tr>
  11811. <td>board</td>
  11812. <td>path</td>
  11813. <td>string</td>
  11814. <td>true</td>
  11815. <td>the board ID</td>
  11816. </tr>
  11817. <tr>
  11818. <td>int</td>
  11819. <td>path</td>
  11820. <td>string</td>
  11821. <td>true</td>
  11822. <td>the integration ID</td>
  11823. </tr>
  11824. </tbody>
  11825. </table>
  11826. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11827. <p><strong>board</strong>: the board ID</p>
  11828. <p><strong>int</strong>: the integration ID</p>
  11829. <blockquote>
  11830. <p>Example responses</p>
  11831. </blockquote>
  11832. <blockquote>
  11833. <p>200 Response</p>
  11834. </blockquote>
  11835. <pre class="highlight tab tab-json"><code>{
  11836. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11837. }
  11838. </code></pre>
  11839. <h3 id="delete_integration-responses">Responses</h3>
  11840. <table>
  11841. <thead>
  11842. <tr>
  11843. <th>Status</th>
  11844. <th>Meaning</th>
  11845. <th>Description</th>
  11846. <th>Schema</th>
  11847. </tr>
  11848. </thead>
  11849. <tbody>
  11850. <tr>
  11851. <td>200</td>
  11852. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11853. <td>200 response</td>
  11854. <td>Inline</td>
  11855. </tr>
  11856. </tbody>
  11857. </table>
  11858. <h3 id="delete_integration-responseschema">Response Schema</h3>
  11859. <p>Status Code <strong>200</strong></p>
  11860. <table>
  11861. <thead>
  11862. <tr>
  11863. <th>Name</th>
  11864. <th>Type</th>
  11865. <th>Required</th>
  11866. <th>Restrictions</th>
  11867. <th>Description</th>
  11868. </tr>
  11869. </thead>
  11870. <tbody>
  11871. <tr>
  11872. <td>» _id</td>
  11873. <td>string</td>
  11874. <td>false</td>
  11875. <td>none</td>
  11876. <td>none</td>
  11877. </tr>
  11878. </tbody>
  11879. </table>
  11880. <aside class="warning">
  11881. To perform this operation, you must be authenticated by means of one of the following methods:
  11882. UserSecurity
  11883. </aside>
  11884. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  11885. <p><a id="opIddelete_integration_activities"></a></p>
  11886. <blockquote>
  11887. <p>Code samples</p>
  11888. </blockquote>
  11889. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11890. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  11891. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11892. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11893. </code></pre>
  11894. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> <span class="hljs-meta">HTTP/1.1</span>
  11895. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11896. </span></code></pre>
  11897. <pre class="highlight tab tab-javascript"><code>
  11898. <span class="hljs-keyword">const</span> headers = {
  11899. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11900. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11901. };
  11902. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  11903. {
  11904. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11905. <span class="hljs-attr">headers</span>: headers
  11906. })
  11907. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11908. <span class="hljs-keyword">return</span> res.json();
  11909. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11910. <span class="hljs-built_in">console</span>.log(body);
  11911. });
  11912. </code></pre>
  11913. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  11914. <span class="hljs-keyword">const</span> headers = {
  11915. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11916. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11917. };
  11918. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  11919. {
  11920. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11921. <span class="hljs-attr">headers</span>: headers
  11922. })
  11923. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11924. <span class="hljs-keyword">return</span> res.json();
  11925. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11926. <span class="hljs-built_in">console</span>.log(body);
  11927. });
  11928. </code></pre>
  11929. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11930. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11931. headers = {
  11932. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11933. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11934. }
  11935. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  11936. <span class="hljs-symbol">params:</span> {
  11937. }, <span class="hljs-symbol">headers:</span> headers
  11938. p JSON.parse(result)
  11939. </code></pre>
  11940. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11941. headers = {
  11942. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11943. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11944. }
  11945. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  11946. <span class="hljs-built_in">print</span>(r.json())
  11947. </code></pre>
  11948. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>);
  11949. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11950. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11951. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11952. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11953. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11954. String inputLine;
  11955. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11956. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11957. response.append(inputLine);
  11958. }
  11959. in.close();
  11960. System.out.println(response.toString());
  11961. </code></pre>
  11962. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11963. <span class="hljs-keyword">import</span> (
  11964. <span class="hljs-string">&quot;bytes&quot;</span>
  11965. <span class="hljs-string">&quot;net/http&quot;</span>
  11966. )
  11967. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11968. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11969. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11970. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11971. }
  11972. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11973. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>, data)
  11974. req.Header = headers
  11975. client := &amp;http.Client{}
  11976. resp, err := client.Do(req)
  11977. <span class="hljs-comment">// ...</span>
  11978. }
  11979. </code></pre>
  11980. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11981. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11982. );
  11983. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11984. <span class="hljs-comment">// Define array of request body.</span>
  11985. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11986. <span class="hljs-keyword">try</span> {
  11987. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, <span class="hljs-keyword">array</span>(
  11988. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11989. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11990. )
  11991. );
  11992. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11993. }
  11994. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11995. <span class="hljs-comment">// handle exception or api errors.</span>
  11996. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11997. }
  11998. <span class="hljs-comment">// ...</span>
  11999. </code></pre>
  12000. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12001. <p><em>Delete subscribed activities</em></p>
  12002. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12003. <table>
  12004. <thead>
  12005. <tr>
  12006. <th>Name</th>
  12007. <th>In</th>
  12008. <th>Type</th>
  12009. <th>Required</th>
  12010. <th>Description</th>
  12011. </tr>
  12012. </thead>
  12013. <tbody>
  12014. <tr>
  12015. <td>board</td>
  12016. <td>path</td>
  12017. <td>string</td>
  12018. <td>true</td>
  12019. <td>the board ID</td>
  12020. </tr>
  12021. <tr>
  12022. <td>int</td>
  12023. <td>path</td>
  12024. <td>string</td>
  12025. <td>true</td>
  12026. <td>the integration ID</td>
  12027. </tr>
  12028. </tbody>
  12029. </table>
  12030. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12031. <p><strong>board</strong>: the board ID</p>
  12032. <p><strong>int</strong>: the integration ID</p>
  12033. <blockquote>
  12034. <p>Example responses</p>
  12035. </blockquote>
  12036. <blockquote>
  12037. <p>200 Response</p>
  12038. </blockquote>
  12039. <pre class="highlight tab tab-json"><code>{
  12040. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12041. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12042. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12043. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12044. <span class="hljs-string">&quot;string&quot;</span>
  12045. ],
  12046. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12047. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12048. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12049. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12050. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12051. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12052. }
  12053. </code></pre>
  12054. <h3 id="delete_integration_activities-responses">Responses</h3>
  12055. <table>
  12056. <thead>
  12057. <tr>
  12058. <th>Status</th>
  12059. <th>Meaning</th>
  12060. <th>Description</th>
  12061. <th>Schema</th>
  12062. </tr>
  12063. </thead>
  12064. <tbody>
  12065. <tr>
  12066. <td>200</td>
  12067. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12068. <td>200 response</td>
  12069. <td><a href="#schemaintegrations">Integrations</a></td>
  12070. </tr>
  12071. </tbody>
  12072. </table>
  12073. <aside class="warning">
  12074. To perform this operation, you must be authenticated by means of one of the following methods:
  12075. UserSecurity
  12076. </aside>
  12077. <h2 id="new_integration_activities">new_integration_activities</h2>
  12078. <p><a id="opIdnew_integration_activities"></a></p>
  12079. <blockquote>
  12080. <p>Code samples</p>
  12081. </blockquote>
  12082. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12083. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12084. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12085. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12086. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12087. </code></pre>
  12088. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/integrations/{int}/activities</span> <span class="hljs-meta">HTTP/1.1</span>
  12089. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12090. Accept: application/json
  12091. </span></code></pre>
  12092. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12093. &quot;activities&quot;: &quot;string&quot;
  12094. }&#x27;</span>;
  12095. <span class="hljs-keyword">const</span> headers = {
  12096. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12097. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12098. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12099. };
  12100. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12101. {
  12102. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12103. <span class="hljs-attr">body</span>: inputBody,
  12104. <span class="hljs-attr">headers</span>: headers
  12105. })
  12106. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12107. <span class="hljs-keyword">return</span> res.json();
  12108. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12109. <span class="hljs-built_in">console</span>.log(body);
  12110. });
  12111. </code></pre>
  12112. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12113. <span class="hljs-keyword">const</span> inputBody = {
  12114. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12115. };
  12116. <span class="hljs-keyword">const</span> headers = {
  12117. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12118. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12119. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12120. };
  12121. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12122. {
  12123. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12124. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12125. <span class="hljs-attr">headers</span>: headers
  12126. })
  12127. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12128. <span class="hljs-keyword">return</span> res.json();
  12129. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12130. <span class="hljs-built_in">console</span>.log(body);
  12131. });
  12132. </code></pre>
  12133. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12134. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12135. headers = {
  12136. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12137. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12138. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12139. }
  12140. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12141. <span class="hljs-symbol">params:</span> {
  12142. }, <span class="hljs-symbol">headers:</span> headers
  12143. p JSON.parse(result)
  12144. </code></pre>
  12145. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12146. headers = {
  12147. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12148. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12149. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12150. }
  12151. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12152. <span class="hljs-built_in">print</span>(r.json())
  12153. </code></pre>
  12154. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>);
  12155. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12156. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12157. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12158. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12159. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12160. String inputLine;
  12161. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12162. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12163. response.append(inputLine);
  12164. }
  12165. in.close();
  12166. System.out.println(response.toString());
  12167. </code></pre>
  12168. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12169. <span class="hljs-keyword">import</span> (
  12170. <span class="hljs-string">&quot;bytes&quot;</span>
  12171. <span class="hljs-string">&quot;net/http&quot;</span>
  12172. )
  12173. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12174. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12175. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  12176. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12177. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12178. }
  12179. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12180. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations/{int}/activities&quot;</span>, data)
  12181. req.Header = headers
  12182. client := &amp;http.Client{}
  12183. resp, err := client.Do(req)
  12184. <span class="hljs-comment">// ...</span>
  12185. }
  12186. </code></pre>
  12187. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12188. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12189. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12190. );
  12191. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12192. <span class="hljs-comment">// Define array of request body.</span>
  12193. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12194. <span class="hljs-keyword">try</span> {
  12195. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, <span class="hljs-keyword">array</span>(
  12196. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12197. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12198. )
  12199. );
  12200. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12201. }
  12202. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12203. <span class="hljs-comment">// handle exception or api errors.</span>
  12204. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12205. }
  12206. <span class="hljs-comment">// ...</span>
  12207. </code></pre>
  12208. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12209. <p><em>Add subscribed activities</em></p>
  12210. <blockquote>
  12211. <p>Body parameter</p>
  12212. </blockquote>
  12213. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12214. </code></pre>
  12215. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12216. <table>
  12217. <thead>
  12218. <tr>
  12219. <th>Name</th>
  12220. <th>In</th>
  12221. <th>Type</th>
  12222. <th>Required</th>
  12223. <th>Description</th>
  12224. </tr>
  12225. </thead>
  12226. <tbody>
  12227. <tr>
  12228. <td>board</td>
  12229. <td>path</td>
  12230. <td>string</td>
  12231. <td>true</td>
  12232. <td>the board ID</td>
  12233. </tr>
  12234. <tr>
  12235. <td>int</td>
  12236. <td>path</td>
  12237. <td>string</td>
  12238. <td>true</td>
  12239. <td>the integration ID</td>
  12240. </tr>
  12241. <tr>
  12242. <td>body</td>
  12243. <td>body</td>
  12244. <td>object</td>
  12245. <td>true</td>
  12246. <td>none</td>
  12247. </tr>
  12248. <tr>
  12249. <td>» activities</td>
  12250. <td>body</td>
  12251. <td>string</td>
  12252. <td>true</td>
  12253. <td>the activities value</td>
  12254. </tr>
  12255. </tbody>
  12256. </table>
  12257. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12258. <p><strong>board</strong>: the board ID</p>
  12259. <p><strong>int</strong>: the integration ID</p>
  12260. <blockquote>
  12261. <p>Example responses</p>
  12262. </blockquote>
  12263. <blockquote>
  12264. <p>200 Response</p>
  12265. </blockquote>
  12266. <pre class="highlight tab tab-json"><code>{
  12267. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12268. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12269. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12270. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12271. <span class="hljs-string">&quot;string&quot;</span>
  12272. ],
  12273. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12274. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12275. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12276. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12277. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12278. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12279. }
  12280. </code></pre>
  12281. <h3 id="new_integration_activities-responses">Responses</h3>
  12282. <table>
  12283. <thead>
  12284. <tr>
  12285. <th>Status</th>
  12286. <th>Meaning</th>
  12287. <th>Description</th>
  12288. <th>Schema</th>
  12289. </tr>
  12290. </thead>
  12291. <tbody>
  12292. <tr>
  12293. <td>200</td>
  12294. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12295. <td>200 response</td>
  12296. <td><a href="#schemaintegrations">Integrations</a></td>
  12297. </tr>
  12298. </tbody>
  12299. </table>
  12300. <aside class="warning">
  12301. To perform this operation, you must be authenticated by means of one of the following methods:
  12302. UserSecurity
  12303. </aside>
  12304. <h1 id="wekan-rest-api-lists">Lists</h1>
  12305. <h2 id="get_all_lists">get_all_lists</h2>
  12306. <p><a id="opIdget_all_lists"></a></p>
  12307. <blockquote>
  12308. <p>Code samples</p>
  12309. </blockquote>
  12310. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12311. curl -X GET /api/boards/{board}/lists \
  12312. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12313. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12314. </code></pre>
  12315. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists</span> <span class="hljs-meta">HTTP/1.1</span>
  12316. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12317. </span></code></pre>
  12318. <pre class="highlight tab tab-javascript"><code>
  12319. <span class="hljs-keyword">const</span> headers = {
  12320. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12321. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12322. };
  12323. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12324. {
  12325. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12326. <span class="hljs-attr">headers</span>: headers
  12327. })
  12328. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12329. <span class="hljs-keyword">return</span> res.json();
  12330. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12331. <span class="hljs-built_in">console</span>.log(body);
  12332. });
  12333. </code></pre>
  12334. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12335. <span class="hljs-keyword">const</span> headers = {
  12336. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12337. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12338. };
  12339. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12340. {
  12341. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12342. <span class="hljs-attr">headers</span>: headers
  12343. })
  12344. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12345. <span class="hljs-keyword">return</span> res.json();
  12346. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12347. <span class="hljs-built_in">console</span>.log(body);
  12348. });
  12349. </code></pre>
  12350. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12351. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12352. headers = {
  12353. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12354. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12355. }
  12356. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12357. <span class="hljs-symbol">params:</span> {
  12358. }, <span class="hljs-symbol">headers:</span> headers
  12359. p JSON.parse(result)
  12360. </code></pre>
  12361. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12362. headers = {
  12363. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12364. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12365. }
  12366. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12367. <span class="hljs-built_in">print</span>(r.json())
  12368. </code></pre>
  12369. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>);
  12370. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12371. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12372. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12373. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12374. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12375. String inputLine;
  12376. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12377. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12378. response.append(inputLine);
  12379. }
  12380. in.close();
  12381. System.out.println(response.toString());
  12382. </code></pre>
  12383. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12384. <span class="hljs-keyword">import</span> (
  12385. <span class="hljs-string">&quot;bytes&quot;</span>
  12386. <span class="hljs-string">&quot;net/http&quot;</span>
  12387. )
  12388. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12389. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12390. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12391. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12392. }
  12393. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12394. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12395. req.Header = headers
  12396. client := &amp;http.Client{}
  12397. resp, err := client.Do(req)
  12398. <span class="hljs-comment">// ...</span>
  12399. }
  12400. </code></pre>
  12401. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12402. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12403. );
  12404. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12405. <span class="hljs-comment">// Define array of request body.</span>
  12406. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12407. <span class="hljs-keyword">try</span> {
  12408. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, <span class="hljs-keyword">array</span>(
  12409. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12410. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12411. )
  12412. );
  12413. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12414. }
  12415. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12416. <span class="hljs-comment">// handle exception or api errors.</span>
  12417. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12418. }
  12419. <span class="hljs-comment">// ...</span>
  12420. </code></pre>
  12421. <p><code>GET /api/boards/{board}/lists</code></p>
  12422. <p><em>Get the list of Lists attached to a board</em></p>
  12423. <h3 id="get_all_lists-parameters">Parameters</h3>
  12424. <table>
  12425. <thead>
  12426. <tr>
  12427. <th>Name</th>
  12428. <th>In</th>
  12429. <th>Type</th>
  12430. <th>Required</th>
  12431. <th>Description</th>
  12432. </tr>
  12433. </thead>
  12434. <tbody>
  12435. <tr>
  12436. <td>board</td>
  12437. <td>path</td>
  12438. <td>string</td>
  12439. <td>true</td>
  12440. <td>the board ID</td>
  12441. </tr>
  12442. </tbody>
  12443. </table>
  12444. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12445. <p><strong>board</strong>: the board ID</p>
  12446. <blockquote>
  12447. <p>Example responses</p>
  12448. </blockquote>
  12449. <blockquote>
  12450. <p>200 Response</p>
  12451. </blockquote>
  12452. <pre class="highlight tab tab-json"><code>[
  12453. {
  12454. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12455. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12456. }
  12457. ]
  12458. </code></pre>
  12459. <h3 id="get_all_lists-responses">Responses</h3>
  12460. <table>
  12461. <thead>
  12462. <tr>
  12463. <th>Status</th>
  12464. <th>Meaning</th>
  12465. <th>Description</th>
  12466. <th>Schema</th>
  12467. </tr>
  12468. </thead>
  12469. <tbody>
  12470. <tr>
  12471. <td>200</td>
  12472. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12473. <td>200 response</td>
  12474. <td>Inline</td>
  12475. </tr>
  12476. </tbody>
  12477. </table>
  12478. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  12479. <p>Status Code <strong>200</strong></p>
  12480. <table>
  12481. <thead>
  12482. <tr>
  12483. <th>Name</th>
  12484. <th>Type</th>
  12485. <th>Required</th>
  12486. <th>Restrictions</th>
  12487. <th>Description</th>
  12488. </tr>
  12489. </thead>
  12490. <tbody>
  12491. <tr>
  12492. <td>» _id</td>
  12493. <td>string</td>
  12494. <td>false</td>
  12495. <td>none</td>
  12496. <td>none</td>
  12497. </tr>
  12498. <tr>
  12499. <td>» title</td>
  12500. <td>string</td>
  12501. <td>false</td>
  12502. <td>none</td>
  12503. <td>none</td>
  12504. </tr>
  12505. </tbody>
  12506. </table>
  12507. <aside class="warning">
  12508. To perform this operation, you must be authenticated by means of one of the following methods:
  12509. UserSecurity
  12510. </aside>
  12511. <h2 id="new_list">new_list</h2>
  12512. <p><a id="opIdnew_list"></a></p>
  12513. <blockquote>
  12514. <p>Code samples</p>
  12515. </blockquote>
  12516. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12517. curl -X POST /api/boards/{board}/lists \
  12518. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12519. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12520. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12521. </code></pre>
  12522. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/lists</span> <span class="hljs-meta">HTTP/1.1</span>
  12523. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12524. Accept: application/json
  12525. </span></code></pre>
  12526. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12527. &quot;title&quot;: &quot;string&quot;
  12528. }&#x27;</span>;
  12529. <span class="hljs-keyword">const</span> headers = {
  12530. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12531. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12532. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12533. };
  12534. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12535. {
  12536. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12537. <span class="hljs-attr">body</span>: inputBody,
  12538. <span class="hljs-attr">headers</span>: headers
  12539. })
  12540. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12541. <span class="hljs-keyword">return</span> res.json();
  12542. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12543. <span class="hljs-built_in">console</span>.log(body);
  12544. });
  12545. </code></pre>
  12546. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12547. <span class="hljs-keyword">const</span> inputBody = {
  12548. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12549. };
  12550. <span class="hljs-keyword">const</span> headers = {
  12551. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12552. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12553. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12554. };
  12555. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12556. {
  12557. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12558. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12559. <span class="hljs-attr">headers</span>: headers
  12560. })
  12561. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12562. <span class="hljs-keyword">return</span> res.json();
  12563. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12564. <span class="hljs-built_in">console</span>.log(body);
  12565. });
  12566. </code></pre>
  12567. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12568. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12569. headers = {
  12570. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12571. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12572. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12573. }
  12574. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12575. <span class="hljs-symbol">params:</span> {
  12576. }, <span class="hljs-symbol">headers:</span> headers
  12577. p JSON.parse(result)
  12578. </code></pre>
  12579. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12580. headers = {
  12581. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12582. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12583. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12584. }
  12585. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12586. <span class="hljs-built_in">print</span>(r.json())
  12587. </code></pre>
  12588. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>);
  12589. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12590. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12591. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12592. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12593. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12594. String inputLine;
  12595. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12596. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12597. response.append(inputLine);
  12598. }
  12599. in.close();
  12600. System.out.println(response.toString());
  12601. </code></pre>
  12602. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12603. <span class="hljs-keyword">import</span> (
  12604. <span class="hljs-string">&quot;bytes&quot;</span>
  12605. <span class="hljs-string">&quot;net/http&quot;</span>
  12606. )
  12607. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12608. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12609. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  12610. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12611. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12612. }
  12613. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12614. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12615. req.Header = headers
  12616. client := &amp;http.Client{}
  12617. resp, err := client.Do(req)
  12618. <span class="hljs-comment">// ...</span>
  12619. }
  12620. </code></pre>
  12621. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12622. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12623. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12624. );
  12625. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12626. <span class="hljs-comment">// Define array of request body.</span>
  12627. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12628. <span class="hljs-keyword">try</span> {
  12629. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, <span class="hljs-keyword">array</span>(
  12630. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12631. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12632. )
  12633. );
  12634. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12635. }
  12636. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12637. <span class="hljs-comment">// handle exception or api errors.</span>
  12638. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12639. }
  12640. <span class="hljs-comment">// ...</span>
  12641. </code></pre>
  12642. <p><code>POST /api/boards/{board}/lists</code></p>
  12643. <p><em>Add a List to a board</em></p>
  12644. <blockquote>
  12645. <p>Body parameter</p>
  12646. </blockquote>
  12647. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12648. </code></pre>
  12649. <h3 id="new_list-parameters">Parameters</h3>
  12650. <table>
  12651. <thead>
  12652. <tr>
  12653. <th>Name</th>
  12654. <th>In</th>
  12655. <th>Type</th>
  12656. <th>Required</th>
  12657. <th>Description</th>
  12658. </tr>
  12659. </thead>
  12660. <tbody>
  12661. <tr>
  12662. <td>board</td>
  12663. <td>path</td>
  12664. <td>string</td>
  12665. <td>true</td>
  12666. <td>the board ID</td>
  12667. </tr>
  12668. <tr>
  12669. <td>body</td>
  12670. <td>body</td>
  12671. <td>object</td>
  12672. <td>true</td>
  12673. <td>none</td>
  12674. </tr>
  12675. <tr>
  12676. <td>» title</td>
  12677. <td>body</td>
  12678. <td>string</td>
  12679. <td>true</td>
  12680. <td>the title of the List</td>
  12681. </tr>
  12682. </tbody>
  12683. </table>
  12684. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12685. <p><strong>board</strong>: the board ID</p>
  12686. <blockquote>
  12687. <p>Example responses</p>
  12688. </blockquote>
  12689. <blockquote>
  12690. <p>200 Response</p>
  12691. </blockquote>
  12692. <pre class="highlight tab tab-json"><code>{
  12693. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12694. }
  12695. </code></pre>
  12696. <h3 id="new_list-responses">Responses</h3>
  12697. <table>
  12698. <thead>
  12699. <tr>
  12700. <th>Status</th>
  12701. <th>Meaning</th>
  12702. <th>Description</th>
  12703. <th>Schema</th>
  12704. </tr>
  12705. </thead>
  12706. <tbody>
  12707. <tr>
  12708. <td>200</td>
  12709. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12710. <td>200 response</td>
  12711. <td>Inline</td>
  12712. </tr>
  12713. </tbody>
  12714. </table>
  12715. <h3 id="new_list-responseschema">Response Schema</h3>
  12716. <p>Status Code <strong>200</strong></p>
  12717. <table>
  12718. <thead>
  12719. <tr>
  12720. <th>Name</th>
  12721. <th>Type</th>
  12722. <th>Required</th>
  12723. <th>Restrictions</th>
  12724. <th>Description</th>
  12725. </tr>
  12726. </thead>
  12727. <tbody>
  12728. <tr>
  12729. <td>» _id</td>
  12730. <td>string</td>
  12731. <td>false</td>
  12732. <td>none</td>
  12733. <td>none</td>
  12734. </tr>
  12735. </tbody>
  12736. </table>
  12737. <aside class="warning">
  12738. To perform this operation, you must be authenticated by means of one of the following methods:
  12739. UserSecurity
  12740. </aside>
  12741. <h2 id="get_list">get_list</h2>
  12742. <p><a id="opIdget_list"></a></p>
  12743. <blockquote>
  12744. <p>Code samples</p>
  12745. </blockquote>
  12746. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12747. curl -X GET /api/boards/{board}/lists/{list} \
  12748. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12749. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12750. </code></pre>
  12751. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> <span class="hljs-meta">HTTP/1.1</span>
  12752. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12753. </span></code></pre>
  12754. <pre class="highlight tab tab-javascript"><code>
  12755. <span class="hljs-keyword">const</span> headers = {
  12756. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12757. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12758. };
  12759. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12760. {
  12761. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12762. <span class="hljs-attr">headers</span>: headers
  12763. })
  12764. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12765. <span class="hljs-keyword">return</span> res.json();
  12766. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12767. <span class="hljs-built_in">console</span>.log(body);
  12768. });
  12769. </code></pre>
  12770. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12771. <span class="hljs-keyword">const</span> headers = {
  12772. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12773. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12774. };
  12775. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12776. {
  12777. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12778. <span class="hljs-attr">headers</span>: headers
  12779. })
  12780. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12781. <span class="hljs-keyword">return</span> res.json();
  12782. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12783. <span class="hljs-built_in">console</span>.log(body);
  12784. });
  12785. </code></pre>
  12786. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12787. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12788. headers = {
  12789. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12790. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12791. }
  12792. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12793. <span class="hljs-symbol">params:</span> {
  12794. }, <span class="hljs-symbol">headers:</span> headers
  12795. p JSON.parse(result)
  12796. </code></pre>
  12797. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12798. headers = {
  12799. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12800. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12801. }
  12802. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  12803. <span class="hljs-built_in">print</span>(r.json())
  12804. </code></pre>
  12805. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>);
  12806. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12807. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12808. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12809. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12810. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12811. String inputLine;
  12812. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12813. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12814. response.append(inputLine);
  12815. }
  12816. in.close();
  12817. System.out.println(response.toString());
  12818. </code></pre>
  12819. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12820. <span class="hljs-keyword">import</span> (
  12821. <span class="hljs-string">&quot;bytes&quot;</span>
  12822. <span class="hljs-string">&quot;net/http&quot;</span>
  12823. )
  12824. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12825. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12826. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12827. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12828. }
  12829. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12830. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>, data)
  12831. req.Header = headers
  12832. client := &amp;http.Client{}
  12833. resp, err := client.Do(req)
  12834. <span class="hljs-comment">// ...</span>
  12835. }
  12836. </code></pre>
  12837. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12838. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12839. );
  12840. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12841. <span class="hljs-comment">// Define array of request body.</span>
  12842. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12843. <span class="hljs-keyword">try</span> {
  12844. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, <span class="hljs-keyword">array</span>(
  12845. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12846. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12847. )
  12848. );
  12849. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12850. }
  12851. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12852. <span class="hljs-comment">// handle exception or api errors.</span>
  12853. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12854. }
  12855. <span class="hljs-comment">// ...</span>
  12856. </code></pre>
  12857. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  12858. <p><em>Get a List attached to a board</em></p>
  12859. <h3 id="get_list-parameters">Parameters</h3>
  12860. <table>
  12861. <thead>
  12862. <tr>
  12863. <th>Name</th>
  12864. <th>In</th>
  12865. <th>Type</th>
  12866. <th>Required</th>
  12867. <th>Description</th>
  12868. </tr>
  12869. </thead>
  12870. <tbody>
  12871. <tr>
  12872. <td>board</td>
  12873. <td>path</td>
  12874. <td>string</td>
  12875. <td>true</td>
  12876. <td>the board ID</td>
  12877. </tr>
  12878. <tr>
  12879. <td>list</td>
  12880. <td>path</td>
  12881. <td>string</td>
  12882. <td>true</td>
  12883. <td>the List ID</td>
  12884. </tr>
  12885. </tbody>
  12886. </table>
  12887. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  12888. <p><strong>board</strong>: the board ID</p>
  12889. <p><strong>list</strong>: the List ID</p>
  12890. <blockquote>
  12891. <p>Example responses</p>
  12892. </blockquote>
  12893. <blockquote>
  12894. <p>200 Response</p>
  12895. </blockquote>
  12896. <pre class="highlight tab tab-json"><code>{
  12897. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12898. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  12899. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  12900. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12901. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12902. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12903. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12904. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  12905. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12906. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12907. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  12908. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  12909. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12910. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  12911. },
  12912. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  12913. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12914. }
  12915. </code></pre>
  12916. <h3 id="get_list-responses">Responses</h3>
  12917. <table>
  12918. <thead>
  12919. <tr>
  12920. <th>Status</th>
  12921. <th>Meaning</th>
  12922. <th>Description</th>
  12923. <th>Schema</th>
  12924. </tr>
  12925. </thead>
  12926. <tbody>
  12927. <tr>
  12928. <td>200</td>
  12929. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12930. <td>200 response</td>
  12931. <td><a href="#schemalists">Lists</a></td>
  12932. </tr>
  12933. </tbody>
  12934. </table>
  12935. <aside class="warning">
  12936. To perform this operation, you must be authenticated by means of one of the following methods:
  12937. UserSecurity
  12938. </aside>
  12939. <h2 id="delete_list">delete_list</h2>
  12940. <p><a id="opIddelete_list"></a></p>
  12941. <blockquote>
  12942. <p>Code samples</p>
  12943. </blockquote>
  12944. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12945. curl -X DELETE /api/boards/{board}/lists/{list} \
  12946. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12947. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12948. </code></pre>
  12949. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/lists/{list}</span> <span class="hljs-meta">HTTP/1.1</span>
  12950. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12951. </span></code></pre>
  12952. <pre class="highlight tab tab-javascript"><code>
  12953. <span class="hljs-keyword">const</span> headers = {
  12954. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12955. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12956. };
  12957. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12958. {
  12959. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12960. <span class="hljs-attr">headers</span>: headers
  12961. })
  12962. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12963. <span class="hljs-keyword">return</span> res.json();
  12964. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12965. <span class="hljs-built_in">console</span>.log(body);
  12966. });
  12967. </code></pre>
  12968. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  12969. <span class="hljs-keyword">const</span> headers = {
  12970. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12971. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12972. };
  12973. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12974. {
  12975. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12976. <span class="hljs-attr">headers</span>: headers
  12977. })
  12978. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12979. <span class="hljs-keyword">return</span> res.json();
  12980. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12981. <span class="hljs-built_in">console</span>.log(body);
  12982. });
  12983. </code></pre>
  12984. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12985. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12986. headers = {
  12987. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12988. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12989. }
  12990. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  12991. <span class="hljs-symbol">params:</span> {
  12992. }, <span class="hljs-symbol">headers:</span> headers
  12993. p JSON.parse(result)
  12994. </code></pre>
  12995. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12996. headers = {
  12997. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12998. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12999. }
  13000. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13001. <span class="hljs-built_in">print</span>(r.json())
  13002. </code></pre>
  13003. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>);
  13004. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13005. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13006. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13007. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13008. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13009. String inputLine;
  13010. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13011. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13012. response.append(inputLine);
  13013. }
  13014. in.close();
  13015. System.out.println(response.toString());
  13016. </code></pre>
  13017. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13018. <span class="hljs-keyword">import</span> (
  13019. <span class="hljs-string">&quot;bytes&quot;</span>
  13020. <span class="hljs-string">&quot;net/http&quot;</span>
  13021. )
  13022. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13023. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13024. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13025. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13026. }
  13027. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13028. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}&quot;</span>, data)
  13029. req.Header = headers
  13030. client := &amp;http.Client{}
  13031. resp, err := client.Do(req)
  13032. <span class="hljs-comment">// ...</span>
  13033. }
  13034. </code></pre>
  13035. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13036. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13037. );
  13038. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13039. <span class="hljs-comment">// Define array of request body.</span>
  13040. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13041. <span class="hljs-keyword">try</span> {
  13042. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, <span class="hljs-keyword">array</span>(
  13043. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13044. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13045. )
  13046. );
  13047. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13048. }
  13049. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13050. <span class="hljs-comment">// handle exception or api errors.</span>
  13051. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13052. }
  13053. <span class="hljs-comment">// ...</span>
  13054. </code></pre>
  13055. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13056. <p><em>Delete a List</em></p>
  13057. <p>This <strong>deletes</strong> a list from a board.
  13058. The list is not put in the recycle bin.</p>
  13059. <h3 id="delete_list-parameters">Parameters</h3>
  13060. <table>
  13061. <thead>
  13062. <tr>
  13063. <th>Name</th>
  13064. <th>In</th>
  13065. <th>Type</th>
  13066. <th>Required</th>
  13067. <th>Description</th>
  13068. </tr>
  13069. </thead>
  13070. <tbody>
  13071. <tr>
  13072. <td>board</td>
  13073. <td>path</td>
  13074. <td>string</td>
  13075. <td>true</td>
  13076. <td>the board ID</td>
  13077. </tr>
  13078. <tr>
  13079. <td>list</td>
  13080. <td>path</td>
  13081. <td>string</td>
  13082. <td>true</td>
  13083. <td>the ID of the list to remove</td>
  13084. </tr>
  13085. </tbody>
  13086. </table>
  13087. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13088. <p><strong>board</strong>: the board ID</p>
  13089. <p><strong>list</strong>: the ID of the list to remove</p>
  13090. <blockquote>
  13091. <p>Example responses</p>
  13092. </blockquote>
  13093. <blockquote>
  13094. <p>200 Response</p>
  13095. </blockquote>
  13096. <pre class="highlight tab tab-json"><code>{
  13097. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13098. }
  13099. </code></pre>
  13100. <h3 id="delete_list-responses">Responses</h3>
  13101. <table>
  13102. <thead>
  13103. <tr>
  13104. <th>Status</th>
  13105. <th>Meaning</th>
  13106. <th>Description</th>
  13107. <th>Schema</th>
  13108. </tr>
  13109. </thead>
  13110. <tbody>
  13111. <tr>
  13112. <td>200</td>
  13113. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13114. <td>200 response</td>
  13115. <td>Inline</td>
  13116. </tr>
  13117. </tbody>
  13118. </table>
  13119. <h3 id="delete_list-responseschema">Response Schema</h3>
  13120. <p>Status Code <strong>200</strong></p>
  13121. <table>
  13122. <thead>
  13123. <tr>
  13124. <th>Name</th>
  13125. <th>Type</th>
  13126. <th>Required</th>
  13127. <th>Restrictions</th>
  13128. <th>Description</th>
  13129. </tr>
  13130. </thead>
  13131. <tbody>
  13132. <tr>
  13133. <td>» _id</td>
  13134. <td>string</td>
  13135. <td>false</td>
  13136. <td>none</td>
  13137. <td>none</td>
  13138. </tr>
  13139. </tbody>
  13140. </table>
  13141. <aside class="warning">
  13142. To perform this operation, you must be authenticated by means of one of the following methods:
  13143. UserSecurity
  13144. </aside>
  13145. <h1 id="wekan-rest-api-users">Users</h1>
  13146. <h2 id="add_board_member">add_board_member</h2>
  13147. <p><a id="opIdadd_board_member"></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 POST /api/boards/{board}/members/{user}/add \
  13153. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13154. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13155. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13156. </code></pre>
  13157. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{user}/add</span> <span class="hljs-meta">HTTP/1.1</span>
  13158. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13159. Accept: application/json
  13160. </span></code></pre>
  13161. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13162. &quot;action&quot;: &quot;string&quot;,
  13163. &quot;isAdmin&quot;: true,
  13164. &quot;isNoComments&quot;: true,
  13165. &quot;isCommentOnly&quot;: true
  13166. }&#x27;</span>;
  13167. <span class="hljs-keyword">const</span> headers = {
  13168. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13169. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13170. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13171. };
  13172. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13173. {
  13174. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13175. <span class="hljs-attr">body</span>: inputBody,
  13176. <span class="hljs-attr">headers</span>: headers
  13177. })
  13178. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13179. <span class="hljs-keyword">return</span> res.json();
  13180. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13181. <span class="hljs-built_in">console</span>.log(body);
  13182. });
  13183. </code></pre>
  13184. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13185. <span class="hljs-keyword">const</span> inputBody = {
  13186. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13187. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  13188. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  13189. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>
  13190. };
  13191. <span class="hljs-keyword">const</span> headers = {
  13192. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13193. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13194. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13195. };
  13196. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13197. {
  13198. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13199. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13200. <span class="hljs-attr">headers</span>: headers
  13201. })
  13202. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13203. <span class="hljs-keyword">return</span> res.json();
  13204. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13205. <span class="hljs-built_in">console</span>.log(body);
  13206. });
  13207. </code></pre>
  13208. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13209. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13210. headers = {
  13211. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13212. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13213. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13214. }
  13215. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13216. <span class="hljs-symbol">params:</span> {
  13217. }, <span class="hljs-symbol">headers:</span> headers
  13218. p JSON.parse(result)
  13219. </code></pre>
  13220. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13221. headers = {
  13222. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13223. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13224. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13225. }
  13226. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, headers = headers)
  13227. <span class="hljs-built_in">print</span>(r.json())
  13228. </code></pre>
  13229. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/members/{user}/add&quot;</span>);
  13230. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13231. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13232. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13233. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13234. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13235. String inputLine;
  13236. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13237. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13238. response.append(inputLine);
  13239. }
  13240. in.close();
  13241. System.out.println(response.toString());
  13242. </code></pre>
  13243. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13244. <span class="hljs-keyword">import</span> (
  13245. <span class="hljs-string">&quot;bytes&quot;</span>
  13246. <span class="hljs-string">&quot;net/http&quot;</span>
  13247. )
  13248. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13249. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13250. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  13251. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13252. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13253. }
  13254. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13255. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/members/{user}/add&quot;</span>, data)
  13256. req.Header = headers
  13257. client := &amp;http.Client{}
  13258. resp, err := client.Do(req)
  13259. <span class="hljs-comment">// ...</span>
  13260. }
  13261. </code></pre>
  13262. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13263. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13264. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13265. );
  13266. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13267. <span class="hljs-comment">// Define array of request body.</span>
  13268. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13269. <span class="hljs-keyword">try</span> {
  13270. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, <span class="hljs-keyword">array</span>(
  13271. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13272. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13273. )
  13274. );
  13275. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13276. }
  13277. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13278. <span class="hljs-comment">// handle exception or api errors.</span>
  13279. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13280. }
  13281. <span class="hljs-comment">// ...</span>
  13282. </code></pre>
  13283. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  13284. <p><em>Add New Board Member with Role</em></p>
  13285. <p>Only the admin user (the first user) can call the REST API.</p>
  13286. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  13287. to later change the permissions.</p>
  13288. <blockquote>
  13289. <p>Body parameter</p>
  13290. </blockquote>
  13291. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13292. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  13293. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  13294. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  13295. </code></pre>
  13296. <h3 id="add_board_member-parameters">Parameters</h3>
  13297. <table>
  13298. <thead>
  13299. <tr>
  13300. <th>Name</th>
  13301. <th>In</th>
  13302. <th>Type</th>
  13303. <th>Required</th>
  13304. <th>Description</th>
  13305. </tr>
  13306. </thead>
  13307. <tbody>
  13308. <tr>
  13309. <td>board</td>
  13310. <td>path</td>
  13311. <td>string</td>
  13312. <td>true</td>
  13313. <td>the board ID</td>
  13314. </tr>
  13315. <tr>
  13316. <td>user</td>
  13317. <td>path</td>
  13318. <td>string</td>
  13319. <td>true</td>
  13320. <td>the user ID</td>
  13321. </tr>
  13322. <tr>
  13323. <td>body</td>
  13324. <td>body</td>
  13325. <td>object</td>
  13326. <td>true</td>
  13327. <td>none</td>
  13328. </tr>
  13329. <tr>
  13330. <td>» action</td>
  13331. <td>body</td>
  13332. <td>string</td>
  13333. <td>true</td>
  13334. <td>the action value</td>
  13335. </tr>
  13336. <tr>
  13337. <td>» isAdmin</td>
  13338. <td>body</td>
  13339. <td>boolean</td>
  13340. <td>true</td>
  13341. <td>is the user an admin of the board</td>
  13342. </tr>
  13343. <tr>
  13344. <td>» isNoComments</td>
  13345. <td>body</td>
  13346. <td>boolean</td>
  13347. <td>true</td>
  13348. <td>disable comments</td>
  13349. </tr>
  13350. <tr>
  13351. <td>» isCommentOnly</td>
  13352. <td>body</td>
  13353. <td>boolean</td>
  13354. <td>true</td>
  13355. <td>only enable comments</td>
  13356. </tr>
  13357. </tbody>
  13358. </table>
  13359. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13360. <p><strong>board</strong>: the board ID</p>
  13361. <p><strong>user</strong>: the user ID</p>
  13362. <blockquote>
  13363. <p>Example responses</p>
  13364. </blockquote>
  13365. <blockquote>
  13366. <p>200 Response</p>
  13367. </blockquote>
  13368. <pre class="highlight tab tab-json"><code>{
  13369. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13370. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13371. }
  13372. </code></pre>
  13373. <h3 id="add_board_member-responses">Responses</h3>
  13374. <table>
  13375. <thead>
  13376. <tr>
  13377. <th>Status</th>
  13378. <th>Meaning</th>
  13379. <th>Description</th>
  13380. <th>Schema</th>
  13381. </tr>
  13382. </thead>
  13383. <tbody>
  13384. <tr>
  13385. <td>200</td>
  13386. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13387. <td>200 response</td>
  13388. <td>Inline</td>
  13389. </tr>
  13390. </tbody>
  13391. </table>
  13392. <h3 id="add_board_member-responseschema">Response Schema</h3>
  13393. <p>Status Code <strong>200</strong></p>
  13394. <table>
  13395. <thead>
  13396. <tr>
  13397. <th>Name</th>
  13398. <th>Type</th>
  13399. <th>Required</th>
  13400. <th>Restrictions</th>
  13401. <th>Description</th>
  13402. </tr>
  13403. </thead>
  13404. <tbody>
  13405. <tr>
  13406. <td>» _id</td>
  13407. <td>string</td>
  13408. <td>false</td>
  13409. <td>none</td>
  13410. <td>none</td>
  13411. </tr>
  13412. <tr>
  13413. <td>» title</td>
  13414. <td>string</td>
  13415. <td>false</td>
  13416. <td>none</td>
  13417. <td>none</td>
  13418. </tr>
  13419. </tbody>
  13420. </table>
  13421. <aside class="warning">
  13422. To perform this operation, you must be authenticated by means of one of the following methods:
  13423. UserSecurity
  13424. </aside>
  13425. <h2 id="remove_board_member">remove_board_member</h2>
  13426. <p><a id="opIdremove_board_member"></a></p>
  13427. <blockquote>
  13428. <p>Code samples</p>
  13429. </blockquote>
  13430. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13431. curl -X POST /api/boards/{board}/members/{user}/remove \
  13432. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13433. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13434. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13435. </code></pre>
  13436. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/members/{user}/remove</span> <span class="hljs-meta">HTTP/1.1</span>
  13437. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13438. Accept: application/json
  13439. </span></code></pre>
  13440. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13441. &quot;action&quot;: &quot;string&quot;
  13442. }&#x27;</span>;
  13443. <span class="hljs-keyword">const</span> headers = {
  13444. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13445. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13446. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13447. };
  13448. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13449. {
  13450. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13451. <span class="hljs-attr">body</span>: inputBody,
  13452. <span class="hljs-attr">headers</span>: headers
  13453. })
  13454. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13455. <span class="hljs-keyword">return</span> res.json();
  13456. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13457. <span class="hljs-built_in">console</span>.log(body);
  13458. });
  13459. </code></pre>
  13460. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13461. <span class="hljs-keyword">const</span> inputBody = {
  13462. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13463. };
  13464. <span class="hljs-keyword">const</span> headers = {
  13465. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13466. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13467. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13468. };
  13469. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13470. {
  13471. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13472. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13473. <span class="hljs-attr">headers</span>: headers
  13474. })
  13475. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13476. <span class="hljs-keyword">return</span> res.json();
  13477. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13478. <span class="hljs-built_in">console</span>.log(body);
  13479. });
  13480. </code></pre>
  13481. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13482. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13483. headers = {
  13484. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13485. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13486. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13487. }
  13488. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13489. <span class="hljs-symbol">params:</span> {
  13490. }, <span class="hljs-symbol">headers:</span> headers
  13491. p JSON.parse(result)
  13492. </code></pre>
  13493. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13494. headers = {
  13495. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13496. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13497. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13498. }
  13499. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, headers = headers)
  13500. <span class="hljs-built_in">print</span>(r.json())
  13501. </code></pre>
  13502. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/members/{user}/remove&quot;</span>);
  13503. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13504. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13505. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13506. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13507. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13508. String inputLine;
  13509. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13510. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13511. response.append(inputLine);
  13512. }
  13513. in.close();
  13514. System.out.println(response.toString());
  13515. </code></pre>
  13516. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13517. <span class="hljs-keyword">import</span> (
  13518. <span class="hljs-string">&quot;bytes&quot;</span>
  13519. <span class="hljs-string">&quot;net/http&quot;</span>
  13520. )
  13521. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13522. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13523. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  13524. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13525. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13526. }
  13527. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13528. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/members/{user}/remove&quot;</span>, data)
  13529. req.Header = headers
  13530. client := &amp;http.Client{}
  13531. resp, err := client.Do(req)
  13532. <span class="hljs-comment">// ...</span>
  13533. }
  13534. </code></pre>
  13535. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13536. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13537. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13538. );
  13539. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13540. <span class="hljs-comment">// Define array of request body.</span>
  13541. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13542. <span class="hljs-keyword">try</span> {
  13543. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, <span class="hljs-keyword">array</span>(
  13544. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13545. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13546. )
  13547. );
  13548. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13549. }
  13550. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13551. <span class="hljs-comment">// handle exception or api errors.</span>
  13552. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13553. }
  13554. <span class="hljs-comment">// ...</span>
  13555. </code></pre>
  13556. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  13557. <p><em>Remove Member from Board</em></p>
  13558. <p>Only the admin user (the first user) can call the REST API.</p>
  13559. <blockquote>
  13560. <p>Body parameter</p>
  13561. </blockquote>
  13562. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13563. </code></pre>
  13564. <h3 id="remove_board_member-parameters">Parameters</h3>
  13565. <table>
  13566. <thead>
  13567. <tr>
  13568. <th>Name</th>
  13569. <th>In</th>
  13570. <th>Type</th>
  13571. <th>Required</th>
  13572. <th>Description</th>
  13573. </tr>
  13574. </thead>
  13575. <tbody>
  13576. <tr>
  13577. <td>board</td>
  13578. <td>path</td>
  13579. <td>string</td>
  13580. <td>true</td>
  13581. <td>the board ID</td>
  13582. </tr>
  13583. <tr>
  13584. <td>user</td>
  13585. <td>path</td>
  13586. <td>string</td>
  13587. <td>true</td>
  13588. <td>the user ID</td>
  13589. </tr>
  13590. <tr>
  13591. <td>body</td>
  13592. <td>body</td>
  13593. <td>object</td>
  13594. <td>true</td>
  13595. <td>none</td>
  13596. </tr>
  13597. <tr>
  13598. <td>» action</td>
  13599. <td>body</td>
  13600. <td>string</td>
  13601. <td>true</td>
  13602. <td>the action (needs to be <code>remove</code>)</td>
  13603. </tr>
  13604. </tbody>
  13605. </table>
  13606. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13607. <p><strong>board</strong>: the board ID</p>
  13608. <p><strong>user</strong>: the user ID</p>
  13609. <blockquote>
  13610. <p>Example responses</p>
  13611. </blockquote>
  13612. <blockquote>
  13613. <p>200 Response</p>
  13614. </blockquote>
  13615. <pre class="highlight tab tab-json"><code>{
  13616. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13617. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13618. }
  13619. </code></pre>
  13620. <h3 id="remove_board_member-responses">Responses</h3>
  13621. <table>
  13622. <thead>
  13623. <tr>
  13624. <th>Status</th>
  13625. <th>Meaning</th>
  13626. <th>Description</th>
  13627. <th>Schema</th>
  13628. </tr>
  13629. </thead>
  13630. <tbody>
  13631. <tr>
  13632. <td>200</td>
  13633. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13634. <td>200 response</td>
  13635. <td>Inline</td>
  13636. </tr>
  13637. </tbody>
  13638. </table>
  13639. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  13640. <p>Status Code <strong>200</strong></p>
  13641. <table>
  13642. <thead>
  13643. <tr>
  13644. <th>Name</th>
  13645. <th>Type</th>
  13646. <th>Required</th>
  13647. <th>Restrictions</th>
  13648. <th>Description</th>
  13649. </tr>
  13650. </thead>
  13651. <tbody>
  13652. <tr>
  13653. <td>» _id</td>
  13654. <td>string</td>
  13655. <td>false</td>
  13656. <td>none</td>
  13657. <td>none</td>
  13658. </tr>
  13659. <tr>
  13660. <td>» title</td>
  13661. <td>string</td>
  13662. <td>false</td>
  13663. <td>none</td>
  13664. <td>none</td>
  13665. </tr>
  13666. </tbody>
  13667. </table>
  13668. <aside class="warning">
  13669. To perform this operation, you must be authenticated by means of one of the following methods:
  13670. UserSecurity
  13671. </aside>
  13672. <h2 id="create_user_token">create_user_token</h2>
  13673. <p><a id="opIdcreate_user_token"></a></p>
  13674. <blockquote>
  13675. <p>Code samples</p>
  13676. </blockquote>
  13677. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13678. curl -X POST /api/createtoken/{user} \
  13679. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13680. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13681. </code></pre>
  13682. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/createtoken/{user}</span> <span class="hljs-meta">HTTP/1.1</span>
  13683. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13684. </span></code></pre>
  13685. <pre class="highlight tab tab-javascript"><code>
  13686. <span class="hljs-keyword">const</span> headers = {
  13687. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13688. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13689. };
  13690. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13691. {
  13692. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13693. <span class="hljs-attr">headers</span>: headers
  13694. })
  13695. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13696. <span class="hljs-keyword">return</span> res.json();
  13697. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13698. <span class="hljs-built_in">console</span>.log(body);
  13699. });
  13700. </code></pre>
  13701. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13702. <span class="hljs-keyword">const</span> headers = {
  13703. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13704. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13705. };
  13706. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13707. {
  13708. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13709. <span class="hljs-attr">headers</span>: headers
  13710. })
  13711. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13712. <span class="hljs-keyword">return</span> res.json();
  13713. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13714. <span class="hljs-built_in">console</span>.log(body);
  13715. });
  13716. </code></pre>
  13717. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13718. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13719. headers = {
  13720. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13721. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13722. }
  13723. result = RestClient.post <span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  13724. <span class="hljs-symbol">params:</span> {
  13725. }, <span class="hljs-symbol">headers:</span> headers
  13726. p JSON.parse(result)
  13727. </code></pre>
  13728. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13729. headers = {
  13730. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13731. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13732. }
  13733. r = requests.post(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, headers = headers)
  13734. <span class="hljs-built_in">print</span>(r.json())
  13735. </code></pre>
  13736. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>);
  13737. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13738. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13739. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13740. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13741. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13742. String inputLine;
  13743. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13744. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13745. response.append(inputLine);
  13746. }
  13747. in.close();
  13748. System.out.println(response.toString());
  13749. </code></pre>
  13750. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13751. <span class="hljs-keyword">import</span> (
  13752. <span class="hljs-string">&quot;bytes&quot;</span>
  13753. <span class="hljs-string">&quot;net/http&quot;</span>
  13754. )
  13755. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13756. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13757. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13758. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13759. }
  13760. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13761. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>, data)
  13762. req.Header = headers
  13763. client := &amp;http.Client{}
  13764. resp, err := client.Do(req)
  13765. <span class="hljs-comment">// ...</span>
  13766. }
  13767. </code></pre>
  13768. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13769. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13770. );
  13771. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13772. <span class="hljs-comment">// Define array of request body.</span>
  13773. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13774. <span class="hljs-keyword">try</span> {
  13775. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, <span class="hljs-keyword">array</span>(
  13776. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13777. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13778. )
  13779. );
  13780. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13781. }
  13782. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13783. <span class="hljs-comment">// handle exception or api errors.</span>
  13784. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13785. }
  13786. <span class="hljs-comment">// ...</span>
  13787. </code></pre>
  13788. <p><code>POST /api/createtoken/{user}</code></p>
  13789. <p><em>Create a user token</em></p>
  13790. <p>Only the admin user (the first user) can call the REST API.</p>
  13791. <h3 id="create_user_token-parameters">Parameters</h3>
  13792. <table>
  13793. <thead>
  13794. <tr>
  13795. <th>Name</th>
  13796. <th>In</th>
  13797. <th>Type</th>
  13798. <th>Required</th>
  13799. <th>Description</th>
  13800. </tr>
  13801. </thead>
  13802. <tbody>
  13803. <tr>
  13804. <td>user</td>
  13805. <td>path</td>
  13806. <td>string</td>
  13807. <td>true</td>
  13808. <td>the ID of the user to create token for.</td>
  13809. </tr>
  13810. </tbody>
  13811. </table>
  13812. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13813. <p><strong>user</strong>: the ID of the user to create token for.</p>
  13814. <blockquote>
  13815. <p>Example responses</p>
  13816. </blockquote>
  13817. <blockquote>
  13818. <p>200 Response</p>
  13819. </blockquote>
  13820. <pre class="highlight tab tab-json"><code>{
  13821. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13822. }
  13823. </code></pre>
  13824. <h3 id="create_user_token-responses">Responses</h3>
  13825. <table>
  13826. <thead>
  13827. <tr>
  13828. <th>Status</th>
  13829. <th>Meaning</th>
  13830. <th>Description</th>
  13831. <th>Schema</th>
  13832. </tr>
  13833. </thead>
  13834. <tbody>
  13835. <tr>
  13836. <td>200</td>
  13837. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13838. <td>200 response</td>
  13839. <td>Inline</td>
  13840. </tr>
  13841. </tbody>
  13842. </table>
  13843. <h3 id="create_user_token-responseschema">Response Schema</h3>
  13844. <p>Status Code <strong>200</strong></p>
  13845. <table>
  13846. <thead>
  13847. <tr>
  13848. <th>Name</th>
  13849. <th>Type</th>
  13850. <th>Required</th>
  13851. <th>Restrictions</th>
  13852. <th>Description</th>
  13853. </tr>
  13854. </thead>
  13855. <tbody>
  13856. <tr>
  13857. <td>» _id</td>
  13858. <td>string</td>
  13859. <td>false</td>
  13860. <td>none</td>
  13861. <td>none</td>
  13862. </tr>
  13863. </tbody>
  13864. </table>
  13865. <aside class="warning">
  13866. To perform this operation, you must be authenticated by means of one of the following methods:
  13867. UserSecurity
  13868. </aside>
  13869. <h2 id="get_current_user">get_current_user</h2>
  13870. <p><a id="opIdget_current_user"></a></p>
  13871. <blockquote>
  13872. <p>Code samples</p>
  13873. </blockquote>
  13874. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13875. curl -X GET /api/user \
  13876. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13877. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13878. </code></pre>
  13879. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/user</span> <span class="hljs-meta">HTTP/1.1</span>
  13880. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13881. </span></code></pre>
  13882. <pre class="highlight tab tab-javascript"><code>
  13883. <span class="hljs-keyword">const</span> headers = {
  13884. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13885. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13886. };
  13887. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  13888. {
  13889. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13890. <span class="hljs-attr">headers</span>: headers
  13891. })
  13892. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13893. <span class="hljs-keyword">return</span> res.json();
  13894. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13895. <span class="hljs-built_in">console</span>.log(body);
  13896. });
  13897. </code></pre>
  13898. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  13899. <span class="hljs-keyword">const</span> headers = {
  13900. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13901. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13902. };
  13903. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  13904. {
  13905. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13906. <span class="hljs-attr">headers</span>: headers
  13907. })
  13908. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13909. <span class="hljs-keyword">return</span> res.json();
  13910. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13911. <span class="hljs-built_in">console</span>.log(body);
  13912. });
  13913. </code></pre>
  13914. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13915. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13916. headers = {
  13917. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13918. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13919. }
  13920. result = RestClient.get <span class="hljs-string">&#x27;/api/user&#x27;</span>,
  13921. <span class="hljs-symbol">params:</span> {
  13922. }, <span class="hljs-symbol">headers:</span> headers
  13923. p JSON.parse(result)
  13924. </code></pre>
  13925. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13926. headers = {
  13927. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13928. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13929. }
  13930. r = requests.get(<span class="hljs-string">&#x27;/api/user&#x27;</span>, headers = headers)
  13931. <span class="hljs-built_in">print</span>(r.json())
  13932. </code></pre>
  13933. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/user&quot;</span>);
  13934. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13935. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  13936. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13937. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13938. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13939. String inputLine;
  13940. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13941. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13942. response.append(inputLine);
  13943. }
  13944. in.close();
  13945. System.out.println(response.toString());
  13946. </code></pre>
  13947. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13948. <span class="hljs-keyword">import</span> (
  13949. <span class="hljs-string">&quot;bytes&quot;</span>
  13950. <span class="hljs-string">&quot;net/http&quot;</span>
  13951. )
  13952. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13953. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13954. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13955. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13956. }
  13957. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13958. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/user&quot;</span>, data)
  13959. req.Header = headers
  13960. client := &amp;http.Client{}
  13961. resp, err := client.Do(req)
  13962. <span class="hljs-comment">// ...</span>
  13963. }
  13964. </code></pre>
  13965. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13966. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13967. );
  13968. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13969. <span class="hljs-comment">// Define array of request body.</span>
  13970. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13971. <span class="hljs-keyword">try</span> {
  13972. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/user&#x27;</span>, <span class="hljs-keyword">array</span>(
  13973. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13974. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13975. )
  13976. );
  13977. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13978. }
  13979. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13980. <span class="hljs-comment">// handle exception or api errors.</span>
  13981. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13982. }
  13983. <span class="hljs-comment">// ...</span>
  13984. </code></pre>
  13985. <p><code>GET /api/user</code></p>
  13986. <p><em>returns the current user</em></p>
  13987. <blockquote>
  13988. <p>Example responses</p>
  13989. </blockquote>
  13990. <blockquote>
  13991. <p>200 Response</p>
  13992. </blockquote>
  13993. <pre class="highlight tab tab-json"><code>{
  13994. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13995. <span class="hljs-attr">&quot;emails&quot;</span>: [
  13996. {
  13997. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13998. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  13999. }
  14000. ],
  14001. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14002. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14003. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14004. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14005. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14006. <span class="hljs-string">&quot;string&quot;</span>
  14007. ],
  14008. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14009. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14010. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14011. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14012. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14013. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14014. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14015. <span class="hljs-string">&quot;string&quot;</span>
  14016. ],
  14017. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14018. <span class="hljs-attr">&quot;notifications&quot;</span>: [],
  14019. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14020. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14021. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14022. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14023. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14024. <span class="hljs-string">&quot;string&quot;</span>
  14025. ],
  14026. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14027. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14028. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14029. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14030. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14031. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14032. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14033. },
  14034. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14035. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14036. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14037. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14038. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14039. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14040. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14041. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>,
  14042. <span class="hljs-attr">&quot;lastHit&quot;</span>: <span class="hljs-number">0</span>
  14043. },
  14044. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14045. <span class="hljs-string">&quot;string&quot;</span>
  14046. ]
  14047. }
  14048. </code></pre>
  14049. <h3 id="get_current_user-responses">Responses</h3>
  14050. <table>
  14051. <thead>
  14052. <tr>
  14053. <th>Status</th>
  14054. <th>Meaning</th>
  14055. <th>Description</th>
  14056. <th>Schema</th>
  14057. </tr>
  14058. </thead>
  14059. <tbody>
  14060. <tr>
  14061. <td>200</td>
  14062. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14063. <td>200 response</td>
  14064. <td><a href="#schemausers">Users</a></td>
  14065. </tr>
  14066. </tbody>
  14067. </table>
  14068. <aside class="warning">
  14069. To perform this operation, you must be authenticated by means of one of the following methods:
  14070. UserSecurity
  14071. </aside>
  14072. <h2 id="get_all_users">get_all_users</h2>
  14073. <p><a id="opIdget_all_users"></a></p>
  14074. <blockquote>
  14075. <p>Code samples</p>
  14076. </blockquote>
  14077. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14078. curl -X GET /api/users \
  14079. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14080. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14081. </code></pre>
  14082. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users</span> <span class="hljs-meta">HTTP/1.1</span>
  14083. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14084. </span></code></pre>
  14085. <pre class="highlight tab tab-javascript"><code>
  14086. <span class="hljs-keyword">const</span> headers = {
  14087. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14088. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14089. };
  14090. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14091. {
  14092. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14093. <span class="hljs-attr">headers</span>: headers
  14094. })
  14095. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14096. <span class="hljs-keyword">return</span> res.json();
  14097. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14098. <span class="hljs-built_in">console</span>.log(body);
  14099. });
  14100. </code></pre>
  14101. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14102. <span class="hljs-keyword">const</span> headers = {
  14103. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14104. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14105. };
  14106. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14107. {
  14108. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14109. <span class="hljs-attr">headers</span>: headers
  14110. })
  14111. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14112. <span class="hljs-keyword">return</span> res.json();
  14113. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14114. <span class="hljs-built_in">console</span>.log(body);
  14115. });
  14116. </code></pre>
  14117. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14118. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14119. headers = {
  14120. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14121. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14122. }
  14123. result = RestClient.get <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14124. <span class="hljs-symbol">params:</span> {
  14125. }, <span class="hljs-symbol">headers:</span> headers
  14126. p JSON.parse(result)
  14127. </code></pre>
  14128. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14129. headers = {
  14130. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14131. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14132. }
  14133. r = requests.get(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14134. <span class="hljs-built_in">print</span>(r.json())
  14135. </code></pre>
  14136. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/users&quot;</span>);
  14137. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14138. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14139. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14140. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14141. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14142. String inputLine;
  14143. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14144. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14145. response.append(inputLine);
  14146. }
  14147. in.close();
  14148. System.out.println(response.toString());
  14149. </code></pre>
  14150. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14151. <span class="hljs-keyword">import</span> (
  14152. <span class="hljs-string">&quot;bytes&quot;</span>
  14153. <span class="hljs-string">&quot;net/http&quot;</span>
  14154. )
  14155. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14156. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14157. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14158. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14159. }
  14160. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14161. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14162. req.Header = headers
  14163. client := &amp;http.Client{}
  14164. resp, err := client.Do(req)
  14165. <span class="hljs-comment">// ...</span>
  14166. }
  14167. </code></pre>
  14168. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14169. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14170. );
  14171. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14172. <span class="hljs-comment">// Define array of request body.</span>
  14173. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14174. <span class="hljs-keyword">try</span> {
  14175. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/users&#x27;</span>, <span class="hljs-keyword">array</span>(
  14176. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14177. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14178. )
  14179. );
  14180. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14181. }
  14182. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14183. <span class="hljs-comment">// handle exception or api errors.</span>
  14184. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14185. }
  14186. <span class="hljs-comment">// ...</span>
  14187. </code></pre>
  14188. <p><code>GET /api/users</code></p>
  14189. <p><em>return all the users</em></p>
  14190. <p>Only the admin user (the first user) can call the REST API.</p>
  14191. <blockquote>
  14192. <p>Example responses</p>
  14193. </blockquote>
  14194. <blockquote>
  14195. <p>200 Response</p>
  14196. </blockquote>
  14197. <pre class="highlight tab tab-json"><code>[
  14198. {
  14199. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14200. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14201. }
  14202. ]
  14203. </code></pre>
  14204. <h3 id="get_all_users-responses">Responses</h3>
  14205. <table>
  14206. <thead>
  14207. <tr>
  14208. <th>Status</th>
  14209. <th>Meaning</th>
  14210. <th>Description</th>
  14211. <th>Schema</th>
  14212. </tr>
  14213. </thead>
  14214. <tbody>
  14215. <tr>
  14216. <td>200</td>
  14217. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14218. <td>200 response</td>
  14219. <td>Inline</td>
  14220. </tr>
  14221. </tbody>
  14222. </table>
  14223. <h3 id="get_all_users-responseschema">Response Schema</h3>
  14224. <p>Status Code <strong>200</strong></p>
  14225. <table>
  14226. <thead>
  14227. <tr>
  14228. <th>Name</th>
  14229. <th>Type</th>
  14230. <th>Required</th>
  14231. <th>Restrictions</th>
  14232. <th>Description</th>
  14233. </tr>
  14234. </thead>
  14235. <tbody>
  14236. <tr>
  14237. <td>» _id</td>
  14238. <td>string</td>
  14239. <td>false</td>
  14240. <td>none</td>
  14241. <td>none</td>
  14242. </tr>
  14243. <tr>
  14244. <td>» username</td>
  14245. <td>string</td>
  14246. <td>false</td>
  14247. <td>none</td>
  14248. <td>none</td>
  14249. </tr>
  14250. </tbody>
  14251. </table>
  14252. <aside class="warning">
  14253. To perform this operation, you must be authenticated by means of one of the following methods:
  14254. UserSecurity
  14255. </aside>
  14256. <h2 id="new_user">new_user</h2>
  14257. <p><a id="opIdnew_user"></a></p>
  14258. <blockquote>
  14259. <p>Code samples</p>
  14260. </blockquote>
  14261. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14262. curl -X POST /api/users \
  14263. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14264. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14265. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14266. </code></pre>
  14267. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/users</span> <span class="hljs-meta">HTTP/1.1</span>
  14268. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14269. Accept: application/json
  14270. </span></code></pre>
  14271. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14272. &quot;username&quot;: &quot;string&quot;,
  14273. &quot;email&quot;: &quot;string&quot;,
  14274. &quot;password&quot;: &quot;string&quot;
  14275. }&#x27;</span>;
  14276. <span class="hljs-keyword">const</span> headers = {
  14277. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14278. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14279. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14280. };
  14281. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14282. {
  14283. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14284. <span class="hljs-attr">body</span>: inputBody,
  14285. <span class="hljs-attr">headers</span>: headers
  14286. })
  14287. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14288. <span class="hljs-keyword">return</span> res.json();
  14289. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14290. <span class="hljs-built_in">console</span>.log(body);
  14291. });
  14292. </code></pre>
  14293. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14294. <span class="hljs-keyword">const</span> inputBody = {
  14295. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14296. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14297. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14298. };
  14299. <span class="hljs-keyword">const</span> headers = {
  14300. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14301. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14302. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14303. };
  14304. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14305. {
  14306. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14307. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14308. <span class="hljs-attr">headers</span>: headers
  14309. })
  14310. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14311. <span class="hljs-keyword">return</span> res.json();
  14312. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14313. <span class="hljs-built_in">console</span>.log(body);
  14314. });
  14315. </code></pre>
  14316. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14317. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14318. headers = {
  14319. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14320. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14321. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14322. }
  14323. result = RestClient.post <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14324. <span class="hljs-symbol">params:</span> {
  14325. }, <span class="hljs-symbol">headers:</span> headers
  14326. p JSON.parse(result)
  14327. </code></pre>
  14328. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14329. headers = {
  14330. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14331. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14332. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14333. }
  14334. r = requests.post(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14335. <span class="hljs-built_in">print</span>(r.json())
  14336. </code></pre>
  14337. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/users&quot;</span>);
  14338. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14339. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14340. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14341. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14342. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14343. String inputLine;
  14344. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14345. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14346. response.append(inputLine);
  14347. }
  14348. in.close();
  14349. System.out.println(response.toString());
  14350. </code></pre>
  14351. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14352. <span class="hljs-keyword">import</span> (
  14353. <span class="hljs-string">&quot;bytes&quot;</span>
  14354. <span class="hljs-string">&quot;net/http&quot;</span>
  14355. )
  14356. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14357. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14358. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  14359. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14360. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14361. }
  14362. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14363. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14364. req.Header = headers
  14365. client := &amp;http.Client{}
  14366. resp, err := client.Do(req)
  14367. <span class="hljs-comment">// ...</span>
  14368. }
  14369. </code></pre>
  14370. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14371. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14372. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14373. );
  14374. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14375. <span class="hljs-comment">// Define array of request body.</span>
  14376. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14377. <span class="hljs-keyword">try</span> {
  14378. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/users&#x27;</span>, <span class="hljs-keyword">array</span>(
  14379. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14380. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14381. )
  14382. );
  14383. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14384. }
  14385. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14386. <span class="hljs-comment">// handle exception or api errors.</span>
  14387. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14388. }
  14389. <span class="hljs-comment">// ...</span>
  14390. </code></pre>
  14391. <p><code>POST /api/users</code></p>
  14392. <p><em>Create a new user</em></p>
  14393. <p>Only the admin user (the first user) can call the REST API.</p>
  14394. <blockquote>
  14395. <p>Body parameter</p>
  14396. </blockquote>
  14397. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  14398. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  14399. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  14400. </code></pre>
  14401. <h3 id="new_user-parameters">Parameters</h3>
  14402. <table>
  14403. <thead>
  14404. <tr>
  14405. <th>Name</th>
  14406. <th>In</th>
  14407. <th>Type</th>
  14408. <th>Required</th>
  14409. <th>Description</th>
  14410. </tr>
  14411. </thead>
  14412. <tbody>
  14413. <tr>
  14414. <td>body</td>
  14415. <td>body</td>
  14416. <td>object</td>
  14417. <td>true</td>
  14418. <td>none</td>
  14419. </tr>
  14420. <tr>
  14421. <td>» username</td>
  14422. <td>body</td>
  14423. <td>string</td>
  14424. <td>true</td>
  14425. <td>the new username</td>
  14426. </tr>
  14427. <tr>
  14428. <td>» email</td>
  14429. <td>body</td>
  14430. <td>string</td>
  14431. <td>true</td>
  14432. <td>the email of the new user</td>
  14433. </tr>
  14434. <tr>
  14435. <td>» password</td>
  14436. <td>body</td>
  14437. <td>string</td>
  14438. <td>true</td>
  14439. <td>the password of the new user</td>
  14440. </tr>
  14441. </tbody>
  14442. </table>
  14443. <blockquote>
  14444. <p>Example responses</p>
  14445. </blockquote>
  14446. <blockquote>
  14447. <p>200 Response</p>
  14448. </blockquote>
  14449. <pre class="highlight tab tab-json"><code>{
  14450. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14451. }
  14452. </code></pre>
  14453. <h3 id="new_user-responses">Responses</h3>
  14454. <table>
  14455. <thead>
  14456. <tr>
  14457. <th>Status</th>
  14458. <th>Meaning</th>
  14459. <th>Description</th>
  14460. <th>Schema</th>
  14461. </tr>
  14462. </thead>
  14463. <tbody>
  14464. <tr>
  14465. <td>200</td>
  14466. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14467. <td>200 response</td>
  14468. <td>Inline</td>
  14469. </tr>
  14470. </tbody>
  14471. </table>
  14472. <h3 id="new_user-responseschema">Response Schema</h3>
  14473. <p>Status Code <strong>200</strong></p>
  14474. <table>
  14475. <thead>
  14476. <tr>
  14477. <th>Name</th>
  14478. <th>Type</th>
  14479. <th>Required</th>
  14480. <th>Restrictions</th>
  14481. <th>Description</th>
  14482. </tr>
  14483. </thead>
  14484. <tbody>
  14485. <tr>
  14486. <td>» _id</td>
  14487. <td>string</td>
  14488. <td>false</td>
  14489. <td>none</td>
  14490. <td>none</td>
  14491. </tr>
  14492. </tbody>
  14493. </table>
  14494. <aside class="warning">
  14495. To perform this operation, you must be authenticated by means of one of the following methods:
  14496. UserSecurity
  14497. </aside>
  14498. <h2 id="get_user">get_user</h2>
  14499. <p><a id="opIdget_user"></a></p>
  14500. <blockquote>
  14501. <p>Code samples</p>
  14502. </blockquote>
  14503. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14504. curl -X GET /api/users/{user} \
  14505. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14506. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14507. </code></pre>
  14508. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/users/{user}</span> <span class="hljs-meta">HTTP/1.1</span>
  14509. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14510. </span></code></pre>
  14511. <pre class="highlight tab tab-javascript"><code>
  14512. <span class="hljs-keyword">const</span> headers = {
  14513. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14514. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14515. };
  14516. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14517. {
  14518. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14519. <span class="hljs-attr">headers</span>: headers
  14520. })
  14521. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14522. <span class="hljs-keyword">return</span> res.json();
  14523. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14524. <span class="hljs-built_in">console</span>.log(body);
  14525. });
  14526. </code></pre>
  14527. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14528. <span class="hljs-keyword">const</span> headers = {
  14529. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14530. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14531. };
  14532. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14533. {
  14534. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14535. <span class="hljs-attr">headers</span>: headers
  14536. })
  14537. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14538. <span class="hljs-keyword">return</span> res.json();
  14539. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14540. <span class="hljs-built_in">console</span>.log(body);
  14541. });
  14542. </code></pre>
  14543. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14544. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14545. headers = {
  14546. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14547. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14548. }
  14549. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14550. <span class="hljs-symbol">params:</span> {
  14551. }, <span class="hljs-symbol">headers:</span> headers
  14552. p JSON.parse(result)
  14553. </code></pre>
  14554. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14555. headers = {
  14556. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14557. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14558. }
  14559. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14560. <span class="hljs-built_in">print</span>(r.json())
  14561. </code></pre>
  14562. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/users/{user}&quot;</span>);
  14563. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14564. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14565. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14566. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14567. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14568. String inputLine;
  14569. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14570. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14571. response.append(inputLine);
  14572. }
  14573. in.close();
  14574. System.out.println(response.toString());
  14575. </code></pre>
  14576. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14577. <span class="hljs-keyword">import</span> (
  14578. <span class="hljs-string">&quot;bytes&quot;</span>
  14579. <span class="hljs-string">&quot;net/http&quot;</span>
  14580. )
  14581. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14582. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14583. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14584. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14585. }
  14586. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14587. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14588. req.Header = headers
  14589. client := &amp;http.Client{}
  14590. resp, err := client.Do(req)
  14591. <span class="hljs-comment">// ...</span>
  14592. }
  14593. </code></pre>
  14594. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14595. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14596. );
  14597. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14598. <span class="hljs-comment">// Define array of request body.</span>
  14599. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14600. <span class="hljs-keyword">try</span> {
  14601. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, <span class="hljs-keyword">array</span>(
  14602. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14603. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14604. )
  14605. );
  14606. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14607. }
  14608. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14609. <span class="hljs-comment">// handle exception or api errors.</span>
  14610. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14611. }
  14612. <span class="hljs-comment">// ...</span>
  14613. </code></pre>
  14614. <p><code>GET /api/users/{user}</code></p>
  14615. <p><em>get a given user</em></p>
  14616. <p>Only the admin user (the first user) can call the REST API.</p>
  14617. <h3 id="get_user-parameters">Parameters</h3>
  14618. <table>
  14619. <thead>
  14620. <tr>
  14621. <th>Name</th>
  14622. <th>In</th>
  14623. <th>Type</th>
  14624. <th>Required</th>
  14625. <th>Description</th>
  14626. </tr>
  14627. </thead>
  14628. <tbody>
  14629. <tr>
  14630. <td>user</td>
  14631. <td>path</td>
  14632. <td>string</td>
  14633. <td>true</td>
  14634. <td>the user ID or username</td>
  14635. </tr>
  14636. </tbody>
  14637. </table>
  14638. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14639. <p><strong>user</strong>: the user ID or username</p>
  14640. <blockquote>
  14641. <p>Example responses</p>
  14642. </blockquote>
  14643. <blockquote>
  14644. <p>200 Response</p>
  14645. </blockquote>
  14646. <pre class="highlight tab tab-json"><code>{
  14647. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14648. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14649. {
  14650. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14651. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14652. }
  14653. ],
  14654. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14655. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14656. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14657. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14658. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14659. <span class="hljs-string">&quot;string&quot;</span>
  14660. ],
  14661. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14662. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14663. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14664. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14665. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14666. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14667. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14668. <span class="hljs-string">&quot;string&quot;</span>
  14669. ],
  14670. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14671. <span class="hljs-attr">&quot;notifications&quot;</span>: [],
  14672. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14673. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14674. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14675. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14676. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14677. <span class="hljs-string">&quot;string&quot;</span>
  14678. ],
  14679. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14680. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14681. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14682. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14683. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14684. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14685. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14686. },
  14687. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14688. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14689. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14690. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14691. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14692. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14693. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14694. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>,
  14695. <span class="hljs-attr">&quot;lastHit&quot;</span>: <span class="hljs-number">0</span>
  14696. },
  14697. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14698. <span class="hljs-string">&quot;string&quot;</span>
  14699. ]
  14700. }
  14701. </code></pre>
  14702. <h3 id="get_user-responses">Responses</h3>
  14703. <table>
  14704. <thead>
  14705. <tr>
  14706. <th>Status</th>
  14707. <th>Meaning</th>
  14708. <th>Description</th>
  14709. <th>Schema</th>
  14710. </tr>
  14711. </thead>
  14712. <tbody>
  14713. <tr>
  14714. <td>200</td>
  14715. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14716. <td>200 response</td>
  14717. <td><a href="#schemausers">Users</a></td>
  14718. </tr>
  14719. </tbody>
  14720. </table>
  14721. <aside class="warning">
  14722. To perform this operation, you must be authenticated by means of one of the following methods:
  14723. UserSecurity
  14724. </aside>
  14725. <h2 id="edit_user">edit_user</h2>
  14726. <p><a id="opIdedit_user"></a></p>
  14727. <blockquote>
  14728. <p>Code samples</p>
  14729. </blockquote>
  14730. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14731. curl -X PUT /api/users/{user} \
  14732. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14733. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14734. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14735. </code></pre>
  14736. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">PUT</span> <span class="hljs-string">/api/users/{user}</span> <span class="hljs-meta">HTTP/1.1</span>
  14737. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14738. Accept: application/json
  14739. </span></code></pre>
  14740. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14741. &quot;action&quot;: &quot;string&quot;
  14742. }&#x27;</span>;
  14743. <span class="hljs-keyword">const</span> headers = {
  14744. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14745. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14746. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14747. };
  14748. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14749. {
  14750. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14751. <span class="hljs-attr">body</span>: inputBody,
  14752. <span class="hljs-attr">headers</span>: headers
  14753. })
  14754. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14755. <span class="hljs-keyword">return</span> res.json();
  14756. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14757. <span class="hljs-built_in">console</span>.log(body);
  14758. });
  14759. </code></pre>
  14760. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  14761. <span class="hljs-keyword">const</span> inputBody = {
  14762. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14763. };
  14764. <span class="hljs-keyword">const</span> headers = {
  14765. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14766. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14767. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14768. };
  14769. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14770. {
  14771. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  14772. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14773. <span class="hljs-attr">headers</span>: headers
  14774. })
  14775. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14776. <span class="hljs-keyword">return</span> res.json();
  14777. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14778. <span class="hljs-built_in">console</span>.log(body);
  14779. });
  14780. </code></pre>
  14781. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14782. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14783. headers = {
  14784. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14785. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14786. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14787. }
  14788. result = RestClient.put <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14789. <span class="hljs-symbol">params:</span> {
  14790. }, <span class="hljs-symbol">headers:</span> headers
  14791. p JSON.parse(result)
  14792. </code></pre>
  14793. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14794. headers = {
  14795. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14796. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14797. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14798. }
  14799. r = requests.put(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  14800. <span class="hljs-built_in">print</span>(r.json())
  14801. </code></pre>
  14802. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/users/{user}&quot;</span>);
  14803. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14804. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  14805. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14806. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14807. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14808. String inputLine;
  14809. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14810. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14811. response.append(inputLine);
  14812. }
  14813. in.close();
  14814. System.out.println(response.toString());
  14815. </code></pre>
  14816. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14817. <span class="hljs-keyword">import</span> (
  14818. <span class="hljs-string">&quot;bytes&quot;</span>
  14819. <span class="hljs-string">&quot;net/http&quot;</span>
  14820. )
  14821. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14822. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14823. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  14824. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14825. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14826. }
  14827. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14828. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  14829. req.Header = headers
  14830. client := &amp;http.Client{}
  14831. resp, err := client.Do(req)
  14832. <span class="hljs-comment">// ...</span>
  14833. }
  14834. </code></pre>
  14835. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14836. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14837. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14838. );
  14839. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14840. <span class="hljs-comment">// Define array of request body.</span>
  14841. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14842. <span class="hljs-keyword">try</span> {
  14843. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;PUT&#x27;</span>,<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, <span class="hljs-keyword">array</span>(
  14844. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14845. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14846. )
  14847. );
  14848. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14849. }
  14850. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14851. <span class="hljs-comment">// handle exception or api errors.</span>
  14852. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14853. }
  14854. <span class="hljs-comment">// ...</span>
  14855. </code></pre>
  14856. <p><code>PUT /api/users/{user}</code></p>
  14857. <p><em>edit a given user</em></p>
  14858. <p>Only the admin user (the first user) can call the REST API.</p>
  14859. <p>Possible values for <em>action</em>:</p>
  14860. <ul>
  14861. <li><code>takeOwnership</code>: The admin takes the ownership of ALL boards of the user (archived and not archived) where the user is admin on.</li>
  14862. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  14863. <li><code>enableLogin</code>: Enable a user</li>
  14864. </ul>
  14865. <blockquote>
  14866. <p>Body parameter</p>
  14867. </blockquote>
  14868. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  14869. </code></pre>
  14870. <h3 id="edit_user-parameters">Parameters</h3>
  14871. <table>
  14872. <thead>
  14873. <tr>
  14874. <th>Name</th>
  14875. <th>In</th>
  14876. <th>Type</th>
  14877. <th>Required</th>
  14878. <th>Description</th>
  14879. </tr>
  14880. </thead>
  14881. <tbody>
  14882. <tr>
  14883. <td>user</td>
  14884. <td>path</td>
  14885. <td>string</td>
  14886. <td>true</td>
  14887. <td>the user ID</td>
  14888. </tr>
  14889. <tr>
  14890. <td>body</td>
  14891. <td>body</td>
  14892. <td>object</td>
  14893. <td>true</td>
  14894. <td>none</td>
  14895. </tr>
  14896. <tr>
  14897. <td>» action</td>
  14898. <td>body</td>
  14899. <td>string</td>
  14900. <td>true</td>
  14901. <td>the action</td>
  14902. </tr>
  14903. </tbody>
  14904. </table>
  14905. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  14906. <p><strong>user</strong>: the user ID</p>
  14907. <blockquote>
  14908. <p>Example responses</p>
  14909. </blockquote>
  14910. <blockquote>
  14911. <p>200 Response</p>
  14912. </blockquote>
  14913. <pre class="highlight tab tab-json"><code>{
  14914. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14915. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14916. }
  14917. </code></pre>
  14918. <h3 id="edit_user-responses">Responses</h3>
  14919. <table>
  14920. <thead>
  14921. <tr>
  14922. <th>Status</th>
  14923. <th>Meaning</th>
  14924. <th>Description</th>
  14925. <th>Schema</th>
  14926. </tr>
  14927. </thead>
  14928. <tbody>
  14929. <tr>
  14930. <td>200</td>
  14931. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14932. <td>200 response</td>
  14933. <td>Inline</td>
  14934. </tr>
  14935. </tbody>
  14936. </table>
  14937. <h3 id="edit_user-responseschema">Response Schema</h3>
  14938. <p>Status Code <strong>200</strong></p>
  14939. <table>
  14940. <thead>
  14941. <tr>
  14942. <th>Name</th>
  14943. <th>Type</th>
  14944. <th>Required</th>
  14945. <th>Restrictions</th>
  14946. <th>Description</th>
  14947. </tr>
  14948. </thead>
  14949. <tbody>
  14950. <tr>
  14951. <td>» _id</td>
  14952. <td>string</td>
  14953. <td>false</td>
  14954. <td>none</td>
  14955. <td>none</td>
  14956. </tr>
  14957. <tr>
  14958. <td>» title</td>
  14959. <td>string</td>
  14960. <td>false</td>
  14961. <td>none</td>
  14962. <td>none</td>
  14963. </tr>
  14964. </tbody>
  14965. </table>
  14966. <aside class="warning">
  14967. To perform this operation, you must be authenticated by means of one of the following methods:
  14968. UserSecurity
  14969. </aside>
  14970. <h2 id="delete_user">delete_user</h2>
  14971. <p><a id="opIddelete_user"></a></p>
  14972. <blockquote>
  14973. <p>Code samples</p>
  14974. </blockquote>
  14975. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14976. curl -X DELETE /api/users/{user} \
  14977. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14978. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14979. </code></pre>
  14980. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/users/{user}</span> <span class="hljs-meta">HTTP/1.1</span>
  14981. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14982. </span></code></pre>
  14983. <pre class="highlight tab tab-javascript"><code>
  14984. <span class="hljs-keyword">const</span> headers = {
  14985. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14986. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14987. };
  14988. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  14989. {
  14990. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  14991. <span class="hljs-attr">headers</span>: headers
  14992. })
  14993. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14994. <span class="hljs-keyword">return</span> res.json();
  14995. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14996. <span class="hljs-built_in">console</span>.log(body);
  14997. });
  14998. </code></pre>
  14999. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15000. <span class="hljs-keyword">const</span> headers = {
  15001. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15002. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15003. };
  15004. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15005. {
  15006. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15007. <span class="hljs-attr">headers</span>: headers
  15008. })
  15009. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15010. <span class="hljs-keyword">return</span> res.json();
  15011. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15012. <span class="hljs-built_in">console</span>.log(body);
  15013. });
  15014. </code></pre>
  15015. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15016. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15017. headers = {
  15018. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15019. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15020. }
  15021. result = RestClient.delete <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15022. <span class="hljs-symbol">params:</span> {
  15023. }, <span class="hljs-symbol">headers:</span> headers
  15024. p JSON.parse(result)
  15025. </code></pre>
  15026. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15027. headers = {
  15028. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15029. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15030. }
  15031. r = requests.delete(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15032. <span class="hljs-built_in">print</span>(r.json())
  15033. </code></pre>
  15034. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/users/{user}&quot;</span>);
  15035. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15036. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15037. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15038. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15039. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15040. String inputLine;
  15041. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15042. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15043. response.append(inputLine);
  15044. }
  15045. in.close();
  15046. System.out.println(response.toString());
  15047. </code></pre>
  15048. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15049. <span class="hljs-keyword">import</span> (
  15050. <span class="hljs-string">&quot;bytes&quot;</span>
  15051. <span class="hljs-string">&quot;net/http&quot;</span>
  15052. )
  15053. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15054. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15055. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15056. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15057. }
  15058. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15059. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15060. req.Header = headers
  15061. client := &amp;http.Client{}
  15062. resp, err := client.Do(req)
  15063. <span class="hljs-comment">// ...</span>
  15064. }
  15065. </code></pre>
  15066. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15067. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15068. );
  15069. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15070. <span class="hljs-comment">// Define array of request body.</span>
  15071. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15072. <span class="hljs-keyword">try</span> {
  15073. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, <span class="hljs-keyword">array</span>(
  15074. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15075. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15076. )
  15077. );
  15078. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15079. }
  15080. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15081. <span class="hljs-comment">// handle exception or api errors.</span>
  15082. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15083. }
  15084. <span class="hljs-comment">// ...</span>
  15085. </code></pre>
  15086. <p><code>DELETE /api/users/{user}</code></p>
  15087. <p><em>Delete a user</em></p>
  15088. <p>Only the admin user (the first user) can call the REST API.</p>
  15089. <h3 id="delete_user-parameters">Parameters</h3>
  15090. <table>
  15091. <thead>
  15092. <tr>
  15093. <th>Name</th>
  15094. <th>In</th>
  15095. <th>Type</th>
  15096. <th>Required</th>
  15097. <th>Description</th>
  15098. </tr>
  15099. </thead>
  15100. <tbody>
  15101. <tr>
  15102. <td>user</td>
  15103. <td>path</td>
  15104. <td>string</td>
  15105. <td>true</td>
  15106. <td>the ID of the user to delete</td>
  15107. </tr>
  15108. </tbody>
  15109. </table>
  15110. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  15111. <p><strong>user</strong>: the ID of the user to delete</p>
  15112. <blockquote>
  15113. <p>Example responses</p>
  15114. </blockquote>
  15115. <blockquote>
  15116. <p>200 Response</p>
  15117. </blockquote>
  15118. <pre class="highlight tab tab-json"><code>{
  15119. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15120. }
  15121. </code></pre>
  15122. <h3 id="delete_user-responses">Responses</h3>
  15123. <table>
  15124. <thead>
  15125. <tr>
  15126. <th>Status</th>
  15127. <th>Meaning</th>
  15128. <th>Description</th>
  15129. <th>Schema</th>
  15130. </tr>
  15131. </thead>
  15132. <tbody>
  15133. <tr>
  15134. <td>200</td>
  15135. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15136. <td>200 response</td>
  15137. <td>Inline</td>
  15138. </tr>
  15139. </tbody>
  15140. </table>
  15141. <h3 id="delete_user-responseschema">Response Schema</h3>
  15142. <p>Status Code <strong>200</strong></p>
  15143. <table>
  15144. <thead>
  15145. <tr>
  15146. <th>Name</th>
  15147. <th>Type</th>
  15148. <th>Required</th>
  15149. <th>Restrictions</th>
  15150. <th>Description</th>
  15151. </tr>
  15152. </thead>
  15153. <tbody>
  15154. <tr>
  15155. <td>» _id</td>
  15156. <td>string</td>
  15157. <td>false</td>
  15158. <td>none</td>
  15159. <td>none</td>
  15160. </tr>
  15161. </tbody>
  15162. </table>
  15163. <aside class="warning">
  15164. To perform this operation, you must be authenticated by means of one of the following methods:
  15165. UserSecurity
  15166. </aside>
  15167. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  15168. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  15169. <p><a id="opIdget_all_swimlanes"></a></p>
  15170. <blockquote>
  15171. <p>Code samples</p>
  15172. </blockquote>
  15173. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15174. curl -X GET /api/boards/{board}/swimlanes \
  15175. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15176. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15177. </code></pre>
  15178. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> <span class="hljs-meta">HTTP/1.1</span>
  15179. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15180. </span></code></pre>
  15181. <pre class="highlight tab tab-javascript"><code>
  15182. <span class="hljs-keyword">const</span> headers = {
  15183. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15184. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15185. };
  15186. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15187. {
  15188. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15189. <span class="hljs-attr">headers</span>: headers
  15190. })
  15191. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15192. <span class="hljs-keyword">return</span> res.json();
  15193. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15194. <span class="hljs-built_in">console</span>.log(body);
  15195. });
  15196. </code></pre>
  15197. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15198. <span class="hljs-keyword">const</span> headers = {
  15199. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15200. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15201. };
  15202. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15203. {
  15204. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15205. <span class="hljs-attr">headers</span>: headers
  15206. })
  15207. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15208. <span class="hljs-keyword">return</span> res.json();
  15209. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15210. <span class="hljs-built_in">console</span>.log(body);
  15211. });
  15212. </code></pre>
  15213. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15214. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15215. headers = {
  15216. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15217. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15218. }
  15219. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15220. <span class="hljs-symbol">params:</span> {
  15221. }, <span class="hljs-symbol">headers:</span> headers
  15222. p JSON.parse(result)
  15223. </code></pre>
  15224. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15225. headers = {
  15226. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15227. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15228. }
  15229. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15230. <span class="hljs-built_in">print</span>(r.json())
  15231. </code></pre>
  15232. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>);
  15233. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15234. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15235. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15236. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15237. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15238. String inputLine;
  15239. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15240. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15241. response.append(inputLine);
  15242. }
  15243. in.close();
  15244. System.out.println(response.toString());
  15245. </code></pre>
  15246. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15247. <span class="hljs-keyword">import</span> (
  15248. <span class="hljs-string">&quot;bytes&quot;</span>
  15249. <span class="hljs-string">&quot;net/http&quot;</span>
  15250. )
  15251. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15252. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15253. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15254. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15255. }
  15256. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15257. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15258. req.Header = headers
  15259. client := &amp;http.Client{}
  15260. resp, err := client.Do(req)
  15261. <span class="hljs-comment">// ...</span>
  15262. }
  15263. </code></pre>
  15264. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15265. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15266. );
  15267. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15268. <span class="hljs-comment">// Define array of request body.</span>
  15269. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15270. <span class="hljs-keyword">try</span> {
  15271. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, <span class="hljs-keyword">array</span>(
  15272. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15273. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15274. )
  15275. );
  15276. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15277. }
  15278. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15279. <span class="hljs-comment">// handle exception or api errors.</span>
  15280. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15281. }
  15282. <span class="hljs-comment">// ...</span>
  15283. </code></pre>
  15284. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  15285. <p><em>Get the list of swimlanes attached to a board</em></p>
  15286. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  15287. <table>
  15288. <thead>
  15289. <tr>
  15290. <th>Name</th>
  15291. <th>In</th>
  15292. <th>Type</th>
  15293. <th>Required</th>
  15294. <th>Description</th>
  15295. </tr>
  15296. </thead>
  15297. <tbody>
  15298. <tr>
  15299. <td>board</td>
  15300. <td>path</td>
  15301. <td>string</td>
  15302. <td>true</td>
  15303. <td>the ID of the board</td>
  15304. </tr>
  15305. </tbody>
  15306. </table>
  15307. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  15308. <p><strong>board</strong>: the ID of the board</p>
  15309. <blockquote>
  15310. <p>Example responses</p>
  15311. </blockquote>
  15312. <blockquote>
  15313. <p>200 Response</p>
  15314. </blockquote>
  15315. <pre class="highlight tab tab-json"><code>[
  15316. {
  15317. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15318. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15319. }
  15320. ]
  15321. </code></pre>
  15322. <h3 id="get_all_swimlanes-responses">Responses</h3>
  15323. <table>
  15324. <thead>
  15325. <tr>
  15326. <th>Status</th>
  15327. <th>Meaning</th>
  15328. <th>Description</th>
  15329. <th>Schema</th>
  15330. </tr>
  15331. </thead>
  15332. <tbody>
  15333. <tr>
  15334. <td>200</td>
  15335. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15336. <td>200 response</td>
  15337. <td>Inline</td>
  15338. </tr>
  15339. </tbody>
  15340. </table>
  15341. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  15342. <p>Status Code <strong>200</strong></p>
  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>false</td>
  15358. <td>none</td>
  15359. <td>none</td>
  15360. </tr>
  15361. <tr>
  15362. <td>» title</td>
  15363. <td>string</td>
  15364. <td>false</td>
  15365. <td>none</td>
  15366. <td>none</td>
  15367. </tr>
  15368. </tbody>
  15369. </table>
  15370. <aside class="warning">
  15371. To perform this operation, you must be authenticated by means of one of the following methods:
  15372. UserSecurity
  15373. </aside>
  15374. <h2 id="new_swimlane">new_swimlane</h2>
  15375. <p><a id="opIdnew_swimlane"></a></p>
  15376. <blockquote>
  15377. <p>Code samples</p>
  15378. </blockquote>
  15379. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15380. curl -X POST /api/boards/{board}/swimlanes \
  15381. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15382. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15383. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15384. </code></pre>
  15385. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/boards/{board}/swimlanes</span> <span class="hljs-meta">HTTP/1.1</span>
  15386. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15387. Accept: application/json
  15388. </span></code></pre>
  15389. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15390. &quot;title&quot;: &quot;string&quot;
  15391. }&#x27;</span>;
  15392. <span class="hljs-keyword">const</span> headers = {
  15393. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15394. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15395. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15396. };
  15397. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15398. {
  15399. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15400. <span class="hljs-attr">body</span>: inputBody,
  15401. <span class="hljs-attr">headers</span>: headers
  15402. })
  15403. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15404. <span class="hljs-keyword">return</span> res.json();
  15405. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15406. <span class="hljs-built_in">console</span>.log(body);
  15407. });
  15408. </code></pre>
  15409. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15410. <span class="hljs-keyword">const</span> inputBody = {
  15411. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15412. };
  15413. <span class="hljs-keyword">const</span> headers = {
  15414. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15415. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15416. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15417. };
  15418. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15419. {
  15420. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15421. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15422. <span class="hljs-attr">headers</span>: headers
  15423. })
  15424. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15425. <span class="hljs-keyword">return</span> res.json();
  15426. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15427. <span class="hljs-built_in">console</span>.log(body);
  15428. });
  15429. </code></pre>
  15430. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15431. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15432. headers = {
  15433. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15434. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15435. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15436. }
  15437. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15438. <span class="hljs-symbol">params:</span> {
  15439. }, <span class="hljs-symbol">headers:</span> headers
  15440. p JSON.parse(result)
  15441. </code></pre>
  15442. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15443. headers = {
  15444. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15445. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15446. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15447. }
  15448. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15449. <span class="hljs-built_in">print</span>(r.json())
  15450. </code></pre>
  15451. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>);
  15452. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15453. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  15454. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15455. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15456. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15457. String inputLine;
  15458. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15459. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15460. response.append(inputLine);
  15461. }
  15462. in.close();
  15463. System.out.println(response.toString());
  15464. </code></pre>
  15465. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15466. <span class="hljs-keyword">import</span> (
  15467. <span class="hljs-string">&quot;bytes&quot;</span>
  15468. <span class="hljs-string">&quot;net/http&quot;</span>
  15469. )
  15470. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15471. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15472. <span class="hljs-string">&quot;Content-Type&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;multipart/form-data&quot;</span>},
  15473. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15474. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15475. }
  15476. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15477. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15478. req.Header = headers
  15479. client := &amp;http.Client{}
  15480. resp, err := client.Do(req)
  15481. <span class="hljs-comment">// ...</span>
  15482. }
  15483. </code></pre>
  15484. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15485. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15486. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15487. );
  15488. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15489. <span class="hljs-comment">// Define array of request body.</span>
  15490. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15491. <span class="hljs-keyword">try</span> {
  15492. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;POST&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, <span class="hljs-keyword">array</span>(
  15493. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15494. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15495. )
  15496. );
  15497. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15498. }
  15499. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15500. <span class="hljs-comment">// handle exception or api errors.</span>
  15501. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15502. }
  15503. <span class="hljs-comment">// ...</span>
  15504. </code></pre>
  15505. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  15506. <p><em>Add a swimlane to a board</em></p>
  15507. <blockquote>
  15508. <p>Body parameter</p>
  15509. </blockquote>
  15510. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  15511. </code></pre>
  15512. <h3 id="new_swimlane-parameters">Parameters</h3>
  15513. <table>
  15514. <thead>
  15515. <tr>
  15516. <th>Name</th>
  15517. <th>In</th>
  15518. <th>Type</th>
  15519. <th>Required</th>
  15520. <th>Description</th>
  15521. </tr>
  15522. </thead>
  15523. <tbody>
  15524. <tr>
  15525. <td>board</td>
  15526. <td>path</td>
  15527. <td>string</td>
  15528. <td>true</td>
  15529. <td>the ID of the board</td>
  15530. </tr>
  15531. <tr>
  15532. <td>body</td>
  15533. <td>body</td>
  15534. <td>object</td>
  15535. <td>true</td>
  15536. <td>none</td>
  15537. </tr>
  15538. <tr>
  15539. <td>» title</td>
  15540. <td>body</td>
  15541. <td>string</td>
  15542. <td>true</td>
  15543. <td>the new title of the swimlane</td>
  15544. </tr>
  15545. </tbody>
  15546. </table>
  15547. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  15548. <p><strong>board</strong>: the ID of the board</p>
  15549. <blockquote>
  15550. <p>Example responses</p>
  15551. </blockquote>
  15552. <blockquote>
  15553. <p>200 Response</p>
  15554. </blockquote>
  15555. <pre class="highlight tab tab-json"><code>{
  15556. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15557. }
  15558. </code></pre>
  15559. <h3 id="new_swimlane-responses">Responses</h3>
  15560. <table>
  15561. <thead>
  15562. <tr>
  15563. <th>Status</th>
  15564. <th>Meaning</th>
  15565. <th>Description</th>
  15566. <th>Schema</th>
  15567. </tr>
  15568. </thead>
  15569. <tbody>
  15570. <tr>
  15571. <td>200</td>
  15572. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15573. <td>200 response</td>
  15574. <td>Inline</td>
  15575. </tr>
  15576. </tbody>
  15577. </table>
  15578. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  15579. <p>Status Code <strong>200</strong></p>
  15580. <table>
  15581. <thead>
  15582. <tr>
  15583. <th>Name</th>
  15584. <th>Type</th>
  15585. <th>Required</th>
  15586. <th>Restrictions</th>
  15587. <th>Description</th>
  15588. </tr>
  15589. </thead>
  15590. <tbody>
  15591. <tr>
  15592. <td>» _id</td>
  15593. <td>string</td>
  15594. <td>false</td>
  15595. <td>none</td>
  15596. <td>none</td>
  15597. </tr>
  15598. </tbody>
  15599. </table>
  15600. <aside class="warning">
  15601. To perform this operation, you must be authenticated by means of one of the following methods:
  15602. UserSecurity
  15603. </aside>
  15604. <h2 id="get_swimlane">get_swimlane</h2>
  15605. <p><a id="opIdget_swimlane"></a></p>
  15606. <blockquote>
  15607. <p>Code samples</p>
  15608. </blockquote>
  15609. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15610. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  15611. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15612. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15613. </code></pre>
  15614. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> <span class="hljs-meta">HTTP/1.1</span>
  15615. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15616. </span></code></pre>
  15617. <pre class="highlight tab tab-javascript"><code>
  15618. <span class="hljs-keyword">const</span> headers = {
  15619. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15620. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15621. };
  15622. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15623. {
  15624. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15625. <span class="hljs-attr">headers</span>: headers
  15626. })
  15627. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15628. <span class="hljs-keyword">return</span> res.json();
  15629. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15630. <span class="hljs-built_in">console</span>.log(body);
  15631. });
  15632. </code></pre>
  15633. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15634. <span class="hljs-keyword">const</span> headers = {
  15635. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15636. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15637. };
  15638. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15639. {
  15640. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15641. <span class="hljs-attr">headers</span>: headers
  15642. })
  15643. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15644. <span class="hljs-keyword">return</span> res.json();
  15645. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15646. <span class="hljs-built_in">console</span>.log(body);
  15647. });
  15648. </code></pre>
  15649. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15650. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15651. headers = {
  15652. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15653. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15654. }
  15655. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15656. <span class="hljs-symbol">params:</span> {
  15657. }, <span class="hljs-symbol">headers:</span> headers
  15658. p JSON.parse(result)
  15659. </code></pre>
  15660. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15661. headers = {
  15662. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15663. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15664. }
  15665. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15666. <span class="hljs-built_in">print</span>(r.json())
  15667. </code></pre>
  15668. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>);
  15669. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15670. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15671. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15672. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15673. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15674. String inputLine;
  15675. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15676. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15677. response.append(inputLine);
  15678. }
  15679. in.close();
  15680. System.out.println(response.toString());
  15681. </code></pre>
  15682. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15683. <span class="hljs-keyword">import</span> (
  15684. <span class="hljs-string">&quot;bytes&quot;</span>
  15685. <span class="hljs-string">&quot;net/http&quot;</span>
  15686. )
  15687. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15688. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15689. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15690. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15691. }
  15692. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15693. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>, data)
  15694. req.Header = headers
  15695. client := &amp;http.Client{}
  15696. resp, err := client.Do(req)
  15697. <span class="hljs-comment">// ...</span>
  15698. }
  15699. </code></pre>
  15700. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15701. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15702. );
  15703. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15704. <span class="hljs-comment">// Define array of request body.</span>
  15705. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15706. <span class="hljs-keyword">try</span> {
  15707. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, <span class="hljs-keyword">array</span>(
  15708. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15709. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15710. )
  15711. );
  15712. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15713. }
  15714. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15715. <span class="hljs-comment">// handle exception or api errors.</span>
  15716. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15717. }
  15718. <span class="hljs-comment">// ...</span>
  15719. </code></pre>
  15720. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15721. <p><em>Get a swimlane</em></p>
  15722. <h3 id="get_swimlane-parameters">Parameters</h3>
  15723. <table>
  15724. <thead>
  15725. <tr>
  15726. <th>Name</th>
  15727. <th>In</th>
  15728. <th>Type</th>
  15729. <th>Required</th>
  15730. <th>Description</th>
  15731. </tr>
  15732. </thead>
  15733. <tbody>
  15734. <tr>
  15735. <td>board</td>
  15736. <td>path</td>
  15737. <td>string</td>
  15738. <td>true</td>
  15739. <td>the ID of the board</td>
  15740. </tr>
  15741. <tr>
  15742. <td>swimlane</td>
  15743. <td>path</td>
  15744. <td>string</td>
  15745. <td>true</td>
  15746. <td>the ID of the swimlane</td>
  15747. </tr>
  15748. </tbody>
  15749. </table>
  15750. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  15751. <p><strong>board</strong>: the ID of the board</p>
  15752. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15753. <blockquote>
  15754. <p>Example responses</p>
  15755. </blockquote>
  15756. <blockquote>
  15757. <p>200 Response</p>
  15758. </blockquote>
  15759. <pre class="highlight tab tab-json"><code>{
  15760. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15761. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  15762. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15763. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15764. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15765. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  15766. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  15767. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15768. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15769. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15770. }
  15771. </code></pre>
  15772. <h3 id="get_swimlane-responses">Responses</h3>
  15773. <table>
  15774. <thead>
  15775. <tr>
  15776. <th>Status</th>
  15777. <th>Meaning</th>
  15778. <th>Description</th>
  15779. <th>Schema</th>
  15780. </tr>
  15781. </thead>
  15782. <tbody>
  15783. <tr>
  15784. <td>200</td>
  15785. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15786. <td>200 response</td>
  15787. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  15788. </tr>
  15789. </tbody>
  15790. </table>
  15791. <aside class="warning">
  15792. To perform this operation, you must be authenticated by means of one of the following methods:
  15793. UserSecurity
  15794. </aside>
  15795. <h2 id="delete_swimlane">delete_swimlane</h2>
  15796. <p><a id="opIddelete_swimlane"></a></p>
  15797. <blockquote>
  15798. <p>Code samples</p>
  15799. </blockquote>
  15800. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15801. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  15802. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15803. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15804. </code></pre>
  15805. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">DELETE</span> <span class="hljs-string">/api/boards/{board}/swimlanes/{swimlane}</span> <span class="hljs-meta">HTTP/1.1</span>
  15806. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15807. </span></code></pre>
  15808. <pre class="highlight tab tab-javascript"><code>
  15809. <span class="hljs-keyword">const</span> headers = {
  15810. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15811. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15812. };
  15813. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15814. {
  15815. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15816. <span class="hljs-attr">headers</span>: headers
  15817. })
  15818. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15819. <span class="hljs-keyword">return</span> res.json();
  15820. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15821. <span class="hljs-built_in">console</span>.log(body);
  15822. });
  15823. </code></pre>
  15824. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  15825. <span class="hljs-keyword">const</span> headers = {
  15826. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15827. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15828. };
  15829. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15830. {
  15831. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15832. <span class="hljs-attr">headers</span>: headers
  15833. })
  15834. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15835. <span class="hljs-keyword">return</span> res.json();
  15836. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15837. <span class="hljs-built_in">console</span>.log(body);
  15838. });
  15839. </code></pre>
  15840. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15841. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15842. headers = {
  15843. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15844. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15845. }
  15846. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  15847. <span class="hljs-symbol">params:</span> {
  15848. }, <span class="hljs-symbol">headers:</span> headers
  15849. p JSON.parse(result)
  15850. </code></pre>
  15851. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15852. headers = {
  15853. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15854. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15855. }
  15856. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  15857. <span class="hljs-built_in">print</span>(r.json())
  15858. </code></pre>
  15859. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>);
  15860. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15861. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15862. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15863. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15864. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15865. String inputLine;
  15866. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15867. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15868. response.append(inputLine);
  15869. }
  15870. in.close();
  15871. System.out.println(response.toString());
  15872. </code></pre>
  15873. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15874. <span class="hljs-keyword">import</span> (
  15875. <span class="hljs-string">&quot;bytes&quot;</span>
  15876. <span class="hljs-string">&quot;net/http&quot;</span>
  15877. )
  15878. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15879. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15880. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15881. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15882. }
  15883. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15884. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes/{swimlane}&quot;</span>, data)
  15885. req.Header = headers
  15886. client := &amp;http.Client{}
  15887. resp, err := client.Do(req)
  15888. <span class="hljs-comment">// ...</span>
  15889. }
  15890. </code></pre>
  15891. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15892. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15893. );
  15894. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15895. <span class="hljs-comment">// Define array of request body.</span>
  15896. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15897. <span class="hljs-keyword">try</span> {
  15898. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;DELETE&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, <span class="hljs-keyword">array</span>(
  15899. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15900. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15901. )
  15902. );
  15903. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15904. }
  15905. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15906. <span class="hljs-comment">// handle exception or api errors.</span>
  15907. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15908. }
  15909. <span class="hljs-comment">// ...</span>
  15910. </code></pre>
  15911. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  15912. <p><em>Delete a swimlane</em></p>
  15913. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  15914. <h3 id="delete_swimlane-parameters">Parameters</h3>
  15915. <table>
  15916. <thead>
  15917. <tr>
  15918. <th>Name</th>
  15919. <th>In</th>
  15920. <th>Type</th>
  15921. <th>Required</th>
  15922. <th>Description</th>
  15923. </tr>
  15924. </thead>
  15925. <tbody>
  15926. <tr>
  15927. <td>board</td>
  15928. <td>path</td>
  15929. <td>string</td>
  15930. <td>true</td>
  15931. <td>the ID of the board</td>
  15932. </tr>
  15933. <tr>
  15934. <td>swimlane</td>
  15935. <td>path</td>
  15936. <td>string</td>
  15937. <td>true</td>
  15938. <td>the ID of the swimlane</td>
  15939. </tr>
  15940. </tbody>
  15941. </table>
  15942. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  15943. <p><strong>board</strong>: the ID of the board</p>
  15944. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  15945. <blockquote>
  15946. <p>Example responses</p>
  15947. </blockquote>
  15948. <blockquote>
  15949. <p>200 Response</p>
  15950. </blockquote>
  15951. <pre class="highlight tab tab-json"><code>{
  15952. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15953. }
  15954. </code></pre>
  15955. <h3 id="delete_swimlane-responses">Responses</h3>
  15956. <table>
  15957. <thead>
  15958. <tr>
  15959. <th>Status</th>
  15960. <th>Meaning</th>
  15961. <th>Description</th>
  15962. <th>Schema</th>
  15963. </tr>
  15964. </thead>
  15965. <tbody>
  15966. <tr>
  15967. <td>200</td>
  15968. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15969. <td>200 response</td>
  15970. <td>Inline</td>
  15971. </tr>
  15972. </tbody>
  15973. </table>
  15974. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  15975. <p>Status Code <strong>200</strong></p>
  15976. <table>
  15977. <thead>
  15978. <tr>
  15979. <th>Name</th>
  15980. <th>Type</th>
  15981. <th>Required</th>
  15982. <th>Restrictions</th>
  15983. <th>Description</th>
  15984. </tr>
  15985. </thead>
  15986. <tbody>
  15987. <tr>
  15988. <td>» _id</td>
  15989. <td>string</td>
  15990. <td>false</td>
  15991. <td>none</td>
  15992. <td>none</td>
  15993. </tr>
  15994. </tbody>
  15995. </table>
  15996. <aside class="warning">
  15997. To perform this operation, you must be authenticated by means of one of the following methods:
  15998. UserSecurity
  15999. </aside>
  16000. <h1 id="schemas">Schemas</h1>
  16001. <h2 id="tocs_boards">Boards</h2>
  16002. <p><a id="schemaboards"></a>
  16003. <a id="schema_Boards"></a>
  16004. <a id="tocSboards"></a>
  16005. <a id="tocsboards"></a></p>
  16006. <pre class="highlight tab tab-json"><code>{
  16007. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16008. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16009. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16010. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16011. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16012. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16013. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  16014. <span class="hljs-attr">&quot;labels&quot;</span>: [
  16015. {
  16016. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16017. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16018. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16019. }
  16020. ],
  16021. <span class="hljs-attr">&quot;members&quot;</span>: [
  16022. {
  16023. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16024. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16025. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16026. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16027. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16028. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16029. }
  16030. ],
  16031. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  16032. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  16033. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16034. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16035. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16036. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16037. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16038. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  16039. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  16040. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  16041. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  16042. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  16043. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  16044. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  16045. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  16046. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  16047. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  16048. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16049. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16050. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16051. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  16052. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  16053. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  16054. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  16055. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  16056. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16057. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16058. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16059. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16060. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16061. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  16062. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  16063. }
  16064. </code></pre>
  16065. <p>This is a Board.</p>
  16066. <h3 id="properties">Properties</h3>
  16067. <table>
  16068. <thead>
  16069. <tr>
  16070. <th>Name</th>
  16071. <th>Type</th>
  16072. <th>Required</th>
  16073. <th>Restrictions</th>
  16074. <th>Description</th>
  16075. </tr>
  16076. </thead>
  16077. <tbody>
  16078. <tr>
  16079. <td>title</td>
  16080. <td>string</td>
  16081. <td>true</td>
  16082. <td>none</td>
  16083. <td>The title of the board</td>
  16084. </tr>
  16085. <tr>
  16086. <td>slug</td>
  16087. <td>string</td>
  16088. <td>true</td>
  16089. <td>none</td>
  16090. <td>The title slugified.</td>
  16091. </tr>
  16092. <tr>
  16093. <td>archived</td>
  16094. <td>boolean</td>
  16095. <td>true</td>
  16096. <td>none</td>
  16097. <td>Is the board archived?</td>
  16098. </tr>
  16099. <tr>
  16100. <td>archivedAt</td>
  16101. <td>string¦null</td>
  16102. <td>false</td>
  16103. <td>none</td>
  16104. <td>Latest archiving time of the board</td>
  16105. </tr>
  16106. <tr>
  16107. <td>createdAt</td>
  16108. <td>string</td>
  16109. <td>true</td>
  16110. <td>none</td>
  16111. <td>Creation time of the board</td>
  16112. </tr>
  16113. <tr>
  16114. <td>modifiedAt</td>
  16115. <td>string¦null</td>
  16116. <td>false</td>
  16117. <td>none</td>
  16118. <td>Last modification time of the board</td>
  16119. </tr>
  16120. <tr>
  16121. <td>stars</td>
  16122. <td>number</td>
  16123. <td>true</td>
  16124. <td>none</td>
  16125. <td>How many stars the board has</td>
  16126. </tr>
  16127. <tr>
  16128. <td>labels</td>
  16129. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]</td>
  16130. <td>true</td>
  16131. <td>none</td>
  16132. <td>List of labels attached to a board</td>
  16133. </tr>
  16134. <tr>
  16135. <td>members</td>
  16136. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  16137. <td>true</td>
  16138. <td>none</td>
  16139. <td>List of members of a board</td>
  16140. </tr>
  16141. <tr>
  16142. <td>permission</td>
  16143. <td>string</td>
  16144. <td>true</td>
  16145. <td>none</td>
  16146. <td>visibility of the board</td>
  16147. </tr>
  16148. <tr>
  16149. <td>color</td>
  16150. <td>string</td>
  16151. <td>true</td>
  16152. <td>none</td>
  16153. <td>The color of the board.</td>
  16154. </tr>
  16155. <tr>
  16156. <td>description</td>
  16157. <td>string¦null</td>
  16158. <td>false</td>
  16159. <td>none</td>
  16160. <td>The description of the board</td>
  16161. </tr>
  16162. <tr>
  16163. <td>subtasksDefaultBoardId</td>
  16164. <td>string¦null</td>
  16165. <td>false</td>
  16166. <td>none</td>
  16167. <td>The default board ID assigned to subtasks.</td>
  16168. </tr>
  16169. <tr>
  16170. <td>subtasksDefaultListId</td>
  16171. <td>string¦null</td>
  16172. <td>false</td>
  16173. <td>none</td>
  16174. <td>The default List ID assigned to subtasks.</td>
  16175. </tr>
  16176. <tr>
  16177. <td>dateSettingsDefaultBoardId</td>
  16178. <td>string¦null</td>
  16179. <td>false</td>
  16180. <td>none</td>
  16181. <td>none</td>
  16182. </tr>
  16183. <tr>
  16184. <td>dateSettingsDefaultListId</td>
  16185. <td>string¦null</td>
  16186. <td>false</td>
  16187. <td>none</td>
  16188. <td>none</td>
  16189. </tr>
  16190. <tr>
  16191. <td>allowsSubtasks</td>
  16192. <td>boolean</td>
  16193. <td>true</td>
  16194. <td>none</td>
  16195. <td>Does the board allows subtasks?</td>
  16196. </tr>
  16197. <tr>
  16198. <td>allowsAttachments</td>
  16199. <td>boolean</td>
  16200. <td>true</td>
  16201. <td>none</td>
  16202. <td>Does the board allows attachments?</td>
  16203. </tr>
  16204. <tr>
  16205. <td>allowsChecklists</td>
  16206. <td>boolean</td>
  16207. <td>true</td>
  16208. <td>none</td>
  16209. <td>Does the board allows checklists?</td>
  16210. </tr>
  16211. <tr>
  16212. <td>allowsComments</td>
  16213. <td>boolean</td>
  16214. <td>true</td>
  16215. <td>none</td>
  16216. <td>Does the board allows comments?</td>
  16217. </tr>
  16218. <tr>
  16219. <td>allowsDescriptionTitle</td>
  16220. <td>boolean</td>
  16221. <td>true</td>
  16222. <td>none</td>
  16223. <td>Does the board allows description title?</td>
  16224. </tr>
  16225. <tr>
  16226. <td>allowsDescriptionText</td>
  16227. <td>boolean</td>
  16228. <td>true</td>
  16229. <td>none</td>
  16230. <td>Does the board allows description text?</td>
  16231. </tr>
  16232. <tr>
  16233. <td>allowsActivities</td>
  16234. <td>boolean</td>
  16235. <td>true</td>
  16236. <td>none</td>
  16237. <td>Does the board allows comments?</td>
  16238. </tr>
  16239. <tr>
  16240. <td>allowsLabels</td>
  16241. <td>boolean</td>
  16242. <td>true</td>
  16243. <td>none</td>
  16244. <td>Does the board allows labels?</td>
  16245. </tr>
  16246. <tr>
  16247. <td>allowsCreator</td>
  16248. <td>boolean</td>
  16249. <td>true</td>
  16250. <td>none</td>
  16251. <td>Does the board allow creator?</td>
  16252. </tr>
  16253. <tr>
  16254. <td>allowsAssignee</td>
  16255. <td>boolean</td>
  16256. <td>true</td>
  16257. <td>none</td>
  16258. <td>Does the board allows assignee?</td>
  16259. </tr>
  16260. <tr>
  16261. <td>allowsMembers</td>
  16262. <td>boolean</td>
  16263. <td>true</td>
  16264. <td>none</td>
  16265. <td>Does the board allows members?</td>
  16266. </tr>
  16267. <tr>
  16268. <td>allowsRequestedBy</td>
  16269. <td>boolean</td>
  16270. <td>true</td>
  16271. <td>none</td>
  16272. <td>Does the board allows requested by?</td>
  16273. </tr>
  16274. <tr>
  16275. <td>allowsAssignedBy</td>
  16276. <td>boolean</td>
  16277. <td>true</td>
  16278. <td>none</td>
  16279. <td>Does the board allows requested by?</td>
  16280. </tr>
  16281. <tr>
  16282. <td>allowsReceivedDate</td>
  16283. <td>boolean</td>
  16284. <td>true</td>
  16285. <td>none</td>
  16286. <td>Does the board allows received date?</td>
  16287. </tr>
  16288. <tr>
  16289. <td>allowsStartDate</td>
  16290. <td>boolean</td>
  16291. <td>true</td>
  16292. <td>none</td>
  16293. <td>Does the board allows start date?</td>
  16294. </tr>
  16295. <tr>
  16296. <td>allowsEndDate</td>
  16297. <td>boolean</td>
  16298. <td>true</td>
  16299. <td>none</td>
  16300. <td>Does the board allows end date?</td>
  16301. </tr>
  16302. <tr>
  16303. <td>allowsDueDate</td>
  16304. <td>boolean</td>
  16305. <td>true</td>
  16306. <td>none</td>
  16307. <td>Does the board allows due date?</td>
  16308. </tr>
  16309. <tr>
  16310. <td>presentParentTask</td>
  16311. <td>string¦null</td>
  16312. <td>false</td>
  16313. <td>none</td>
  16314. <td>Controls how to present the parent task:<br /><br />- <code>prefix-with-full-path</code>: add a prefix with the full path<br />- <code>prefix-with-parent</code>: add a prefisx with the parent name<br />- <code>subtext-with-full-path</code>: add a subtext with the full path<br />- <code>subtext-with-parent</code>: add a subtext with the parent name<br />- <code>no-parent</code>: does not show the parent at all</td>
  16315. </tr>
  16316. <tr>
  16317. <td>startAt</td>
  16318. <td>string¦null</td>
  16319. <td>false</td>
  16320. <td>none</td>
  16321. <td>Starting date of the board.</td>
  16322. </tr>
  16323. <tr>
  16324. <td>dueAt</td>
  16325. <td>string¦null</td>
  16326. <td>false</td>
  16327. <td>none</td>
  16328. <td>Due date of the board.</td>
  16329. </tr>
  16330. <tr>
  16331. <td>endAt</td>
  16332. <td>string¦null</td>
  16333. <td>false</td>
  16334. <td>none</td>
  16335. <td>End date of the board.</td>
  16336. </tr>
  16337. <tr>
  16338. <td>spentTime</td>
  16339. <td>number¦null</td>
  16340. <td>false</td>
  16341. <td>none</td>
  16342. <td>Time spent in the board.</td>
  16343. </tr>
  16344. <tr>
  16345. <td>isOvertime</td>
  16346. <td>boolean¦null</td>
  16347. <td>false</td>
  16348. <td>none</td>
  16349. <td>Is the board overtimed?</td>
  16350. </tr>
  16351. <tr>
  16352. <td>type</td>
  16353. <td>string</td>
  16354. <td>true</td>
  16355. <td>none</td>
  16356. <td>The type of board<br />possible values: board, template-board, template-container</td>
  16357. </tr>
  16358. <tr>
  16359. <td>sort</td>
  16360. <td>number</td>
  16361. <td>true</td>
  16362. <td>none</td>
  16363. <td>Sort value</td>
  16364. </tr>
  16365. </tbody>
  16366. </table>
  16367. <h4 id="enumerated-values">Enumerated Values</h4>
  16368. <table>
  16369. <thead>
  16370. <tr>
  16371. <th>Property</th>
  16372. <th>Value</th>
  16373. </tr>
  16374. </thead>
  16375. <tbody>
  16376. <tr>
  16377. <td>permission</td>
  16378. <td>public</td>
  16379. </tr>
  16380. <tr>
  16381. <td>permission</td>
  16382. <td>private</td>
  16383. </tr>
  16384. <tr>
  16385. <td>color</td>
  16386. <td>belize</td>
  16387. </tr>
  16388. <tr>
  16389. <td>color</td>
  16390. <td>nephritis</td>
  16391. </tr>
  16392. <tr>
  16393. <td>color</td>
  16394. <td>pomegranate</td>
  16395. </tr>
  16396. <tr>
  16397. <td>color</td>
  16398. <td>pumpkin</td>
  16399. </tr>
  16400. <tr>
  16401. <td>color</td>
  16402. <td>wisteria</td>
  16403. </tr>
  16404. <tr>
  16405. <td>color</td>
  16406. <td>moderatepink</td>
  16407. </tr>
  16408. <tr>
  16409. <td>color</td>
  16410. <td>strongcyan</td>
  16411. </tr>
  16412. <tr>
  16413. <td>color</td>
  16414. <td>limegreen</td>
  16415. </tr>
  16416. <tr>
  16417. <td>color</td>
  16418. <td>midnight</td>
  16419. </tr>
  16420. <tr>
  16421. <td>color</td>
  16422. <td>dark</td>
  16423. </tr>
  16424. <tr>
  16425. <td>color</td>
  16426. <td>relax</td>
  16427. </tr>
  16428. <tr>
  16429. <td>color</td>
  16430. <td>corteza</td>
  16431. </tr>
  16432. <tr>
  16433. <td>color</td>
  16434. <td>clearblue</td>
  16435. </tr>
  16436. <tr>
  16437. <td>color</td>
  16438. <td>natural</td>
  16439. </tr>
  16440. <tr>
  16441. <td>color</td>
  16442. <td>modern</td>
  16443. </tr>
  16444. <tr>
  16445. <td>color</td>
  16446. <td>moderndark</td>
  16447. </tr>
  16448. <tr>
  16449. <td>presentParentTask</td>
  16450. <td>prefix-with-full-path</td>
  16451. </tr>
  16452. <tr>
  16453. <td>presentParentTask</td>
  16454. <td>prefix-with-parent</td>
  16455. </tr>
  16456. <tr>
  16457. <td>presentParentTask</td>
  16458. <td>subtext-with-full-path</td>
  16459. </tr>
  16460. <tr>
  16461. <td>presentParentTask</td>
  16462. <td>subtext-with-parent</td>
  16463. </tr>
  16464. <tr>
  16465. <td>presentParentTask</td>
  16466. <td>no-parent</td>
  16467. </tr>
  16468. <tr>
  16469. <td>type</td>
  16470. <td>board</td>
  16471. </tr>
  16472. <tr>
  16473. <td>type</td>
  16474. <td>template-board</td>
  16475. </tr>
  16476. <tr>
  16477. <td>type</td>
  16478. <td>template-container</td>
  16479. </tr>
  16480. </tbody>
  16481. </table>
  16482. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  16483. <p><a id="schemaboardslabels"></a>
  16484. <a id="schema_BoardsLabels"></a>
  16485. <a id="tocSboardslabels"></a>
  16486. <a id="tocsboardslabels"></a></p>
  16487. <pre class="highlight tab tab-json"><code>{
  16488. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16489. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16490. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16491. }
  16492. </code></pre>
  16493. <h3 id="properties-2">Properties</h3>
  16494. <table>
  16495. <thead>
  16496. <tr>
  16497. <th>Name</th>
  16498. <th>Type</th>
  16499. <th>Required</th>
  16500. <th>Restrictions</th>
  16501. <th>Description</th>
  16502. </tr>
  16503. </thead>
  16504. <tbody>
  16505. <tr>
  16506. <td>_id</td>
  16507. <td>string</td>
  16508. <td>true</td>
  16509. <td>none</td>
  16510. <td>Unique id of a label</td>
  16511. </tr>
  16512. <tr>
  16513. <td>name</td>
  16514. <td>string</td>
  16515. <td>false</td>
  16516. <td>none</td>
  16517. <td>Name of a label</td>
  16518. </tr>
  16519. <tr>
  16520. <td>color</td>
  16521. <td>string</td>
  16522. <td>true</td>
  16523. <td>none</td>
  16524. <td>color of a label.<br /><br />Can be amongst <code>green</code>, <code>yellow</code>, <code>orange</code>, <code>red</code>, <code>purple</code>,<br /><code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>,<br /><code>silver</code>, <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>,<br /><code>slateblue</code>, <code>magenta</code>, <code>gold</code>, <code>navy</code>, <code>gray</code>,<br /><code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>, <code>indigo</code></td>
  16525. </tr>
  16526. </tbody>
  16527. </table>
  16528. <h4 id="enumerated-values-2">Enumerated Values</h4>
  16529. <table>
  16530. <thead>
  16531. <tr>
  16532. <th>Property</th>
  16533. <th>Value</th>
  16534. </tr>
  16535. </thead>
  16536. <tbody>
  16537. <tr>
  16538. <td>color</td>
  16539. <td>white</td>
  16540. </tr>
  16541. <tr>
  16542. <td>color</td>
  16543. <td>green</td>
  16544. </tr>
  16545. <tr>
  16546. <td>color</td>
  16547. <td>yellow</td>
  16548. </tr>
  16549. <tr>
  16550. <td>color</td>
  16551. <td>orange</td>
  16552. </tr>
  16553. <tr>
  16554. <td>color</td>
  16555. <td>red</td>
  16556. </tr>
  16557. <tr>
  16558. <td>color</td>
  16559. <td>purple</td>
  16560. </tr>
  16561. <tr>
  16562. <td>color</td>
  16563. <td>blue</td>
  16564. </tr>
  16565. <tr>
  16566. <td>color</td>
  16567. <td>sky</td>
  16568. </tr>
  16569. <tr>
  16570. <td>color</td>
  16571. <td>lime</td>
  16572. </tr>
  16573. <tr>
  16574. <td>color</td>
  16575. <td>pink</td>
  16576. </tr>
  16577. <tr>
  16578. <td>color</td>
  16579. <td>black</td>
  16580. </tr>
  16581. <tr>
  16582. <td>color</td>
  16583. <td>silver</td>
  16584. </tr>
  16585. <tr>
  16586. <td>color</td>
  16587. <td>peachpuff</td>
  16588. </tr>
  16589. <tr>
  16590. <td>color</td>
  16591. <td>crimson</td>
  16592. </tr>
  16593. <tr>
  16594. <td>color</td>
  16595. <td>plum</td>
  16596. </tr>
  16597. <tr>
  16598. <td>color</td>
  16599. <td>darkgreen</td>
  16600. </tr>
  16601. <tr>
  16602. <td>color</td>
  16603. <td>slateblue</td>
  16604. </tr>
  16605. <tr>
  16606. <td>color</td>
  16607. <td>magenta</td>
  16608. </tr>
  16609. <tr>
  16610. <td>color</td>
  16611. <td>gold</td>
  16612. </tr>
  16613. <tr>
  16614. <td>color</td>
  16615. <td>navy</td>
  16616. </tr>
  16617. <tr>
  16618. <td>color</td>
  16619. <td>gray</td>
  16620. </tr>
  16621. <tr>
  16622. <td>color</td>
  16623. <td>saddlebrown</td>
  16624. </tr>
  16625. <tr>
  16626. <td>color</td>
  16627. <td>paleturquoise</td>
  16628. </tr>
  16629. <tr>
  16630. <td>color</td>
  16631. <td>mistyrose</td>
  16632. </tr>
  16633. <tr>
  16634. <td>color</td>
  16635. <td>indigo</td>
  16636. </tr>
  16637. </tbody>
  16638. </table>
  16639. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  16640. <p><a id="schemaboardsmembers"></a>
  16641. <a id="schema_BoardsMembers"></a>
  16642. <a id="tocSboardsmembers"></a>
  16643. <a id="tocsboardsmembers"></a></p>
  16644. <pre class="highlight tab tab-json"><code>{
  16645. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16646. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16647. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16648. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16649. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16650. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16651. }
  16652. </code></pre>
  16653. <h3 id="properties-3">Properties</h3>
  16654. <table>
  16655. <thead>
  16656. <tr>
  16657. <th>Name</th>
  16658. <th>Type</th>
  16659. <th>Required</th>
  16660. <th>Restrictions</th>
  16661. <th>Description</th>
  16662. </tr>
  16663. </thead>
  16664. <tbody>
  16665. <tr>
  16666. <td>userId</td>
  16667. <td>string</td>
  16668. <td>true</td>
  16669. <td>none</td>
  16670. <td>The uniq ID of the member</td>
  16671. </tr>
  16672. <tr>
  16673. <td>isAdmin</td>
  16674. <td>boolean</td>
  16675. <td>true</td>
  16676. <td>none</td>
  16677. <td>Is the member an admin of the board?</td>
  16678. </tr>
  16679. <tr>
  16680. <td>isActive</td>
  16681. <td>boolean</td>
  16682. <td>true</td>
  16683. <td>none</td>
  16684. <td>Is the member active?</td>
  16685. </tr>
  16686. <tr>
  16687. <td>isNoComments</td>
  16688. <td>boolean</td>
  16689. <td>false</td>
  16690. <td>none</td>
  16691. <td>Is the member not allowed to make comments</td>
  16692. </tr>
  16693. <tr>
  16694. <td>isCommentOnly</td>
  16695. <td>boolean</td>
  16696. <td>false</td>
  16697. <td>none</td>
  16698. <td>Is the member only allowed to comment on the board</td>
  16699. </tr>
  16700. <tr>
  16701. <td>isWorker</td>
  16702. <td>boolean</td>
  16703. <td>false</td>
  16704. <td>none</td>
  16705. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  16706. </tr>
  16707. </tbody>
  16708. </table>
  16709. <h2 id="tocs_cardcomments">CardComments</h2>
  16710. <p><a id="schemacardcomments"></a>
  16711. <a id="schema_CardComments"></a>
  16712. <a id="tocScardcomments"></a>
  16713. <a id="tocscardcomments"></a></p>
  16714. <pre class="highlight tab tab-json"><code>{
  16715. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16716. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16717. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16718. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16719. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16720. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16721. }
  16722. </code></pre>
  16723. <p>A comment on a card</p>
  16724. <h3 id="properties-4">Properties</h3>
  16725. <table>
  16726. <thead>
  16727. <tr>
  16728. <th>Name</th>
  16729. <th>Type</th>
  16730. <th>Required</th>
  16731. <th>Restrictions</th>
  16732. <th>Description</th>
  16733. </tr>
  16734. </thead>
  16735. <tbody>
  16736. <tr>
  16737. <td>boardId</td>
  16738. <td>string</td>
  16739. <td>true</td>
  16740. <td>none</td>
  16741. <td>the board ID</td>
  16742. </tr>
  16743. <tr>
  16744. <td>cardId</td>
  16745. <td>string</td>
  16746. <td>true</td>
  16747. <td>none</td>
  16748. <td>the card ID</td>
  16749. </tr>
  16750. <tr>
  16751. <td>text</td>
  16752. <td>string</td>
  16753. <td>true</td>
  16754. <td>none</td>
  16755. <td>the text of the comment</td>
  16756. </tr>
  16757. <tr>
  16758. <td>createdAt</td>
  16759. <td>string</td>
  16760. <td>true</td>
  16761. <td>none</td>
  16762. <td>when was the comment created</td>
  16763. </tr>
  16764. <tr>
  16765. <td>modifiedAt</td>
  16766. <td>string</td>
  16767. <td>true</td>
  16768. <td>none</td>
  16769. <td>none</td>
  16770. </tr>
  16771. <tr>
  16772. <td>userId</td>
  16773. <td>string</td>
  16774. <td>true</td>
  16775. <td>none</td>
  16776. <td>the author ID of the comment</td>
  16777. </tr>
  16778. </tbody>
  16779. </table>
  16780. <h2 id="tocs_cards">Cards</h2>
  16781. <p><a id="schemacards"></a>
  16782. <a id="schema_Cards"></a>
  16783. <a id="tocScards"></a>
  16784. <a id="tocscards"></a></p>
  16785. <pre class="highlight tab tab-json"><code>{
  16786. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16787. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16788. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16789. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16790. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16791. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16792. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16793. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16794. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  16795. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16796. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16797. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  16798. {}
  16799. ],
  16800. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16801. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16802. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16803. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16804. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  16805. <span class="hljs-string">&quot;string&quot;</span>
  16806. ],
  16807. <span class="hljs-attr">&quot;members&quot;</span>: [
  16808. <span class="hljs-string">&quot;string&quot;</span>
  16809. ],
  16810. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  16811. <span class="hljs-string">&quot;string&quot;</span>
  16812. ],
  16813. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16814. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16815. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16816. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16817. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16818. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16819. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16820. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  16821. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  16822. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16823. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16824. <span class="hljs-attr">&quot;vote&quot;</span>: {
  16825. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16826. <span class="hljs-attr">&quot;positive&quot;</span>: [
  16827. <span class="hljs-string">&quot;string&quot;</span>
  16828. ],
  16829. <span class="hljs-attr">&quot;negative&quot;</span>: [
  16830. <span class="hljs-string">&quot;string&quot;</span>
  16831. ],
  16832. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16833. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  16834. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  16835. }
  16836. }
  16837. </code></pre>
  16838. <h3 id="properties-5">Properties</h3>
  16839. <table>
  16840. <thead>
  16841. <tr>
  16842. <th>Name</th>
  16843. <th>Type</th>
  16844. <th>Required</th>
  16845. <th>Restrictions</th>
  16846. <th>Description</th>
  16847. </tr>
  16848. </thead>
  16849. <tbody>
  16850. <tr>
  16851. <td>title</td>
  16852. <td>string¦null</td>
  16853. <td>false</td>
  16854. <td>none</td>
  16855. <td>the title of the card</td>
  16856. </tr>
  16857. <tr>
  16858. <td>archived</td>
  16859. <td>boolean</td>
  16860. <td>true</td>
  16861. <td>none</td>
  16862. <td>is the card archived</td>
  16863. </tr>
  16864. <tr>
  16865. <td>archivedAt</td>
  16866. <td>string¦null</td>
  16867. <td>false</td>
  16868. <td>none</td>
  16869. <td>latest archiving date</td>
  16870. </tr>
  16871. <tr>
  16872. <td>parentId</td>
  16873. <td>string¦null</td>
  16874. <td>false</td>
  16875. <td>none</td>
  16876. <td>ID of the parent card</td>
  16877. </tr>
  16878. <tr>
  16879. <td>listId</td>
  16880. <td>string¦null</td>
  16881. <td>false</td>
  16882. <td>none</td>
  16883. <td>List ID where the card is</td>
  16884. </tr>
  16885. <tr>
  16886. <td>swimlaneId</td>
  16887. <td>string</td>
  16888. <td>true</td>
  16889. <td>none</td>
  16890. <td>Swimlane ID where the card is</td>
  16891. </tr>
  16892. <tr>
  16893. <td>boardId</td>
  16894. <td>string¦null</td>
  16895. <td>false</td>
  16896. <td>none</td>
  16897. <td>Board ID of the card</td>
  16898. </tr>
  16899. <tr>
  16900. <td>coverId</td>
  16901. <td>string¦null</td>
  16902. <td>false</td>
  16903. <td>none</td>
  16904. <td>Cover ID of the card</td>
  16905. </tr>
  16906. <tr>
  16907. <td>color</td>
  16908. <td>string¦null</td>
  16909. <td>false</td>
  16910. <td>none</td>
  16911. <td>none</td>
  16912. </tr>
  16913. <tr>
  16914. <td>createdAt</td>
  16915. <td>string</td>
  16916. <td>true</td>
  16917. <td>none</td>
  16918. <td>creation date</td>
  16919. </tr>
  16920. <tr>
  16921. <td>modifiedAt</td>
  16922. <td>string</td>
  16923. <td>true</td>
  16924. <td>none</td>
  16925. <td>none</td>
  16926. </tr>
  16927. <tr>
  16928. <td>customFields</td>
  16929. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  16930. <td>false</td>
  16931. <td>none</td>
  16932. <td>list of custom fields</td>
  16933. </tr>
  16934. <tr>
  16935. <td>dateLastActivity</td>
  16936. <td>string</td>
  16937. <td>true</td>
  16938. <td>none</td>
  16939. <td>Date of last activity</td>
  16940. </tr>
  16941. <tr>
  16942. <td>description</td>
  16943. <td>string¦null</td>
  16944. <td>false</td>
  16945. <td>none</td>
  16946. <td>description of the card</td>
  16947. </tr>
  16948. <tr>
  16949. <td>requestedBy</td>
  16950. <td>string¦null</td>
  16951. <td>false</td>
  16952. <td>none</td>
  16953. <td>who requested the card (ID of the user)</td>
  16954. </tr>
  16955. <tr>
  16956. <td>assignedBy</td>
  16957. <td>string¦null</td>
  16958. <td>false</td>
  16959. <td>none</td>
  16960. <td>who assigned the card (ID of the user)</td>
  16961. </tr>
  16962. <tr>
  16963. <td>labelIds</td>
  16964. <td>[string]¦null</td>
  16965. <td>false</td>
  16966. <td>none</td>
  16967. <td>list of labels ID the card has</td>
  16968. </tr>
  16969. <tr>
  16970. <td>members</td>
  16971. <td>[string]¦null</td>
  16972. <td>false</td>
  16973. <td>none</td>
  16974. <td>list of members (user IDs)</td>
  16975. </tr>
  16976. <tr>
  16977. <td>assignees</td>
  16978. <td>[string]¦null</td>
  16979. <td>false</td>
  16980. <td>none</td>
  16981. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  16982. </tr>
  16983. <tr>
  16984. <td>receivedAt</td>
  16985. <td>string¦null</td>
  16986. <td>false</td>
  16987. <td>none</td>
  16988. <td>Date the card was received</td>
  16989. </tr>
  16990. <tr>
  16991. <td>startAt</td>
  16992. <td>string¦null</td>
  16993. <td>false</td>
  16994. <td>none</td>
  16995. <td>Date the card was started to be worked on</td>
  16996. </tr>
  16997. <tr>
  16998. <td>dueAt</td>
  16999. <td>string¦null</td>
  17000. <td>false</td>
  17001. <td>none</td>
  17002. <td>Date the card is due</td>
  17003. </tr>
  17004. <tr>
  17005. <td>endAt</td>
  17006. <td>string¦null</td>
  17007. <td>false</td>
  17008. <td>none</td>
  17009. <td>Date the card ended</td>
  17010. </tr>
  17011. <tr>
  17012. <td>spentTime</td>
  17013. <td>number¦null</td>
  17014. <td>false</td>
  17015. <td>none</td>
  17016. <td>How much time has been spent on this</td>
  17017. </tr>
  17018. <tr>
  17019. <td>isOvertime</td>
  17020. <td>boolean¦null</td>
  17021. <td>false</td>
  17022. <td>none</td>
  17023. <td>is the card over time?</td>
  17024. </tr>
  17025. <tr>
  17026. <td>userId</td>
  17027. <td>string</td>
  17028. <td>true</td>
  17029. <td>none</td>
  17030. <td>user ID of the author of the card</td>
  17031. </tr>
  17032. <tr>
  17033. <td>sort</td>
  17034. <td>number</td>
  17035. <td>true</td>
  17036. <td>none</td>
  17037. <td>Sort value</td>
  17038. </tr>
  17039. <tr>
  17040. <td>subtaskSort</td>
  17041. <td>number¦null</td>
  17042. <td>false</td>
  17043. <td>none</td>
  17044. <td>subtask sort value</td>
  17045. </tr>
  17046. <tr>
  17047. <td>type</td>
  17048. <td>string</td>
  17049. <td>true</td>
  17050. <td>none</td>
  17051. <td>type of the card</td>
  17052. </tr>
  17053. <tr>
  17054. <td>linkedId</td>
  17055. <td>string¦null</td>
  17056. <td>false</td>
  17057. <td>none</td>
  17058. <td>ID of the linked card</td>
  17059. </tr>
  17060. <tr>
  17061. <td>vote</td>
  17062. <td><a href="#schemacardsvote">CardsVote</a></td>
  17063. <td>false</td>
  17064. <td>none</td>
  17065. <td>none</td>
  17066. </tr>
  17067. </tbody>
  17068. </table>
  17069. <h4 id="enumerated-values-3">Enumerated Values</h4>
  17070. <table>
  17071. <thead>
  17072. <tr>
  17073. <th>Property</th>
  17074. <th>Value</th>
  17075. </tr>
  17076. </thead>
  17077. <tbody>
  17078. <tr>
  17079. <td>color</td>
  17080. <td>white</td>
  17081. </tr>
  17082. <tr>
  17083. <td>color</td>
  17084. <td>green</td>
  17085. </tr>
  17086. <tr>
  17087. <td>color</td>
  17088. <td>yellow</td>
  17089. </tr>
  17090. <tr>
  17091. <td>color</td>
  17092. <td>orange</td>
  17093. </tr>
  17094. <tr>
  17095. <td>color</td>
  17096. <td>red</td>
  17097. </tr>
  17098. <tr>
  17099. <td>color</td>
  17100. <td>purple</td>
  17101. </tr>
  17102. <tr>
  17103. <td>color</td>
  17104. <td>blue</td>
  17105. </tr>
  17106. <tr>
  17107. <td>color</td>
  17108. <td>sky</td>
  17109. </tr>
  17110. <tr>
  17111. <td>color</td>
  17112. <td>lime</td>
  17113. </tr>
  17114. <tr>
  17115. <td>color</td>
  17116. <td>pink</td>
  17117. </tr>
  17118. <tr>
  17119. <td>color</td>
  17120. <td>black</td>
  17121. </tr>
  17122. <tr>
  17123. <td>color</td>
  17124. <td>silver</td>
  17125. </tr>
  17126. <tr>
  17127. <td>color</td>
  17128. <td>peachpuff</td>
  17129. </tr>
  17130. <tr>
  17131. <td>color</td>
  17132. <td>crimson</td>
  17133. </tr>
  17134. <tr>
  17135. <td>color</td>
  17136. <td>plum</td>
  17137. </tr>
  17138. <tr>
  17139. <td>color</td>
  17140. <td>darkgreen</td>
  17141. </tr>
  17142. <tr>
  17143. <td>color</td>
  17144. <td>slateblue</td>
  17145. </tr>
  17146. <tr>
  17147. <td>color</td>
  17148. <td>magenta</td>
  17149. </tr>
  17150. <tr>
  17151. <td>color</td>
  17152. <td>gold</td>
  17153. </tr>
  17154. <tr>
  17155. <td>color</td>
  17156. <td>navy</td>
  17157. </tr>
  17158. <tr>
  17159. <td>color</td>
  17160. <td>gray</td>
  17161. </tr>
  17162. <tr>
  17163. <td>color</td>
  17164. <td>saddlebrown</td>
  17165. </tr>
  17166. <tr>
  17167. <td>color</td>
  17168. <td>paleturquoise</td>
  17169. </tr>
  17170. <tr>
  17171. <td>color</td>
  17172. <td>mistyrose</td>
  17173. </tr>
  17174. <tr>
  17175. <td>color</td>
  17176. <td>indigo</td>
  17177. </tr>
  17178. </tbody>
  17179. </table>
  17180. <h2 id="tocs_cardsvote">CardsVote</h2>
  17181. <p><a id="schemacardsvote"></a>
  17182. <a id="schema_CardsVote"></a>
  17183. <a id="tocScardsvote"></a>
  17184. <a id="tocscardsvote"></a></p>
  17185. <pre class="highlight tab tab-json"><code>{
  17186. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17187. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17188. <span class="hljs-string">&quot;string&quot;</span>
  17189. ],
  17190. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17191. <span class="hljs-string">&quot;string&quot;</span>
  17192. ],
  17193. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17194. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17195. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17196. }
  17197. </code></pre>
  17198. <h3 id="properties-6">Properties</h3>
  17199. <table>
  17200. <thead>
  17201. <tr>
  17202. <th>Name</th>
  17203. <th>Type</th>
  17204. <th>Required</th>
  17205. <th>Restrictions</th>
  17206. <th>Description</th>
  17207. </tr>
  17208. </thead>
  17209. <tbody>
  17210. <tr>
  17211. <td>question</td>
  17212. <td>string</td>
  17213. <td>true</td>
  17214. <td>none</td>
  17215. <td>none</td>
  17216. </tr>
  17217. <tr>
  17218. <td>positive</td>
  17219. <td>[string]</td>
  17220. <td>false</td>
  17221. <td>none</td>
  17222. <td>list of members (user IDs)</td>
  17223. </tr>
  17224. <tr>
  17225. <td>negative</td>
  17226. <td>[string]</td>
  17227. <td>false</td>
  17228. <td>none</td>
  17229. <td>list of members (user IDs)</td>
  17230. </tr>
  17231. <tr>
  17232. <td>end</td>
  17233. <td>string</td>
  17234. <td>false</td>
  17235. <td>none</td>
  17236. <td>none</td>
  17237. </tr>
  17238. <tr>
  17239. <td>public</td>
  17240. <td>boolean</td>
  17241. <td>true</td>
  17242. <td>none</td>
  17243. <td>none</td>
  17244. </tr>
  17245. <tr>
  17246. <td>allowNonBoardMembers</td>
  17247. <td>boolean</td>
  17248. <td>true</td>
  17249. <td>none</td>
  17250. <td>none</td>
  17251. </tr>
  17252. </tbody>
  17253. </table>
  17254. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  17255. <p><a id="schemacardscustomfields"></a>
  17256. <a id="schema_CardsCustomfields"></a>
  17257. <a id="tocScardscustomfields"></a>
  17258. <a id="tocscardscustomfields"></a></p>
  17259. <pre class="highlight tab tab-json"><code>{}
  17260. </code></pre>
  17261. <h3 id="properties-7">Properties</h3>
  17262. <p><em>None</em></p>
  17263. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  17264. <p><a id="schemachecklistitems"></a>
  17265. <a id="schema_ChecklistItems"></a>
  17266. <a id="tocSchecklistitems"></a>
  17267. <a id="tocschecklistitems"></a></p>
  17268. <pre class="highlight tab tab-json"><code>{
  17269. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17270. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17271. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  17272. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17273. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17274. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17275. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17276. }
  17277. </code></pre>
  17278. <p>An item in a checklist</p>
  17279. <h3 id="properties-8">Properties</h3>
  17280. <table>
  17281. <thead>
  17282. <tr>
  17283. <th>Name</th>
  17284. <th>Type</th>
  17285. <th>Required</th>
  17286. <th>Restrictions</th>
  17287. <th>Description</th>
  17288. </tr>
  17289. </thead>
  17290. <tbody>
  17291. <tr>
  17292. <td>title</td>
  17293. <td>string</td>
  17294. <td>true</td>
  17295. <td>none</td>
  17296. <td>the text of the item</td>
  17297. </tr>
  17298. <tr>
  17299. <td>sort</td>
  17300. <td>number</td>
  17301. <td>true</td>
  17302. <td>none</td>
  17303. <td>the sorting field of the item</td>
  17304. </tr>
  17305. <tr>
  17306. <td>isFinished</td>
  17307. <td>boolean</td>
  17308. <td>true</td>
  17309. <td>none</td>
  17310. <td>Is the item checked?</td>
  17311. </tr>
  17312. <tr>
  17313. <td>checklistId</td>
  17314. <td>string</td>
  17315. <td>true</td>
  17316. <td>none</td>
  17317. <td>the checklist ID the item is attached to</td>
  17318. </tr>
  17319. <tr>
  17320. <td>cardId</td>
  17321. <td>string</td>
  17322. <td>true</td>
  17323. <td>none</td>
  17324. <td>the card ID the item is attached to</td>
  17325. </tr>
  17326. <tr>
  17327. <td>createdAt</td>
  17328. <td>string¦null</td>
  17329. <td>false</td>
  17330. <td>none</td>
  17331. <td>none</td>
  17332. </tr>
  17333. <tr>
  17334. <td>modifiedAt</td>
  17335. <td>string</td>
  17336. <td>true</td>
  17337. <td>none</td>
  17338. <td>none</td>
  17339. </tr>
  17340. </tbody>
  17341. </table>
  17342. <h2 id="tocs_checklists">Checklists</h2>
  17343. <p><a id="schemachecklists"></a>
  17344. <a id="schema_Checklists"></a>
  17345. <a id="tocSchecklists"></a>
  17346. <a id="tocschecklists"></a></p>
  17347. <pre class="highlight tab tab-json"><code>{
  17348. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17349. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17350. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17351. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17352. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17353. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  17354. }
  17355. </code></pre>
  17356. <p>A Checklist</p>
  17357. <h3 id="properties-9">Properties</h3>
  17358. <table>
  17359. <thead>
  17360. <tr>
  17361. <th>Name</th>
  17362. <th>Type</th>
  17363. <th>Required</th>
  17364. <th>Restrictions</th>
  17365. <th>Description</th>
  17366. </tr>
  17367. </thead>
  17368. <tbody>
  17369. <tr>
  17370. <td>cardId</td>
  17371. <td>string</td>
  17372. <td>true</td>
  17373. <td>none</td>
  17374. <td>The ID of the card the checklist is in</td>
  17375. </tr>
  17376. <tr>
  17377. <td>title</td>
  17378. <td>string</td>
  17379. <td>true</td>
  17380. <td>none</td>
  17381. <td>the title of the checklist</td>
  17382. </tr>
  17383. <tr>
  17384. <td>finishedAt</td>
  17385. <td>string¦null</td>
  17386. <td>false</td>
  17387. <td>none</td>
  17388. <td>When was the checklist finished</td>
  17389. </tr>
  17390. <tr>
  17391. <td>createdAt</td>
  17392. <td>string</td>
  17393. <td>true</td>
  17394. <td>none</td>
  17395. <td>Creation date of the checklist</td>
  17396. </tr>
  17397. <tr>
  17398. <td>modifiedAt</td>
  17399. <td>string</td>
  17400. <td>true</td>
  17401. <td>none</td>
  17402. <td>none</td>
  17403. </tr>
  17404. <tr>
  17405. <td>sort</td>
  17406. <td>number</td>
  17407. <td>true</td>
  17408. <td>none</td>
  17409. <td>sorting value of the checklist</td>
  17410. </tr>
  17411. </tbody>
  17412. </table>
  17413. <h2 id="tocs_customfields">CustomFields</h2>
  17414. <p><a id="schemacustomfields"></a>
  17415. <a id="schema_CustomFields"></a>
  17416. <a id="tocScustomfields"></a>
  17417. <a id="tocscustomfields"></a></p>
  17418. <pre class="highlight tab tab-json"><code>{
  17419. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  17420. <span class="hljs-string">&quot;string&quot;</span>
  17421. ],
  17422. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17423. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  17424. <span class="hljs-attr">&quot;settings&quot;</span>: {
  17425. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17426. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17427. {}
  17428. ],
  17429. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17430. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17431. },
  17432. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17433. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17434. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  17435. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  17436. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17437. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17438. }
  17439. </code></pre>
  17440. <p>A custom field on a card in the board</p>
  17441. <h3 id="properties-10">Properties</h3>
  17442. <table>
  17443. <thead>
  17444. <tr>
  17445. <th>Name</th>
  17446. <th>Type</th>
  17447. <th>Required</th>
  17448. <th>Restrictions</th>
  17449. <th>Description</th>
  17450. </tr>
  17451. </thead>
  17452. <tbody>
  17453. <tr>
  17454. <td>boardIds</td>
  17455. <td>[string]</td>
  17456. <td>true</td>
  17457. <td>none</td>
  17458. <td>the ID of the board</td>
  17459. </tr>
  17460. <tr>
  17461. <td>name</td>
  17462. <td>string</td>
  17463. <td>true</td>
  17464. <td>none</td>
  17465. <td>name of the custom field</td>
  17466. </tr>
  17467. <tr>
  17468. <td>type</td>
  17469. <td>string</td>
  17470. <td>true</td>
  17471. <td>none</td>
  17472. <td>type of the custom field</td>
  17473. </tr>
  17474. <tr>
  17475. <td>settings</td>
  17476. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  17477. <td>true</td>
  17478. <td>none</td>
  17479. <td>none</td>
  17480. </tr>
  17481. <tr>
  17482. <td>showOnCard</td>
  17483. <td>boolean</td>
  17484. <td>true</td>
  17485. <td>none</td>
  17486. <td>should we show on the cards this custom field</td>
  17487. </tr>
  17488. <tr>
  17489. <td>automaticallyOnCard</td>
  17490. <td>boolean</td>
  17491. <td>true</td>
  17492. <td>none</td>
  17493. <td>should the custom fields automatically be added on cards?</td>
  17494. </tr>
  17495. <tr>
  17496. <td>alwaysOnCard</td>
  17497. <td>boolean</td>
  17498. <td>true</td>
  17499. <td>none</td>
  17500. <td>should the custom field be automatically added to all cards?</td>
  17501. </tr>
  17502. <tr>
  17503. <td>showLabelOnMiniCard</td>
  17504. <td>boolean</td>
  17505. <td>true</td>
  17506. <td>none</td>
  17507. <td>should the label of the custom field be shown on minicards?</td>
  17508. </tr>
  17509. <tr>
  17510. <td>createdAt</td>
  17511. <td>string¦null</td>
  17512. <td>false</td>
  17513. <td>none</td>
  17514. <td>none</td>
  17515. </tr>
  17516. <tr>
  17517. <td>modifiedAt</td>
  17518. <td>string</td>
  17519. <td>true</td>
  17520. <td>none</td>
  17521. <td>none</td>
  17522. </tr>
  17523. </tbody>
  17524. </table>
  17525. <h4 id="enumerated-values-4">Enumerated Values</h4>
  17526. <table>
  17527. <thead>
  17528. <tr>
  17529. <th>Property</th>
  17530. <th>Value</th>
  17531. </tr>
  17532. </thead>
  17533. <tbody>
  17534. <tr>
  17535. <td>type</td>
  17536. <td>text</td>
  17537. </tr>
  17538. <tr>
  17539. <td>type</td>
  17540. <td>number</td>
  17541. </tr>
  17542. <tr>
  17543. <td>type</td>
  17544. <td>date</td>
  17545. </tr>
  17546. <tr>
  17547. <td>type</td>
  17548. <td>dropdown</td>
  17549. </tr>
  17550. <tr>
  17551. <td>type</td>
  17552. <td>checkbox</td>
  17553. </tr>
  17554. <tr>
  17555. <td>type</td>
  17556. <td>currency</td>
  17557. </tr>
  17558. <tr>
  17559. <td>type</td>
  17560. <td>stringtemplate</td>
  17561. </tr>
  17562. </tbody>
  17563. </table>
  17564. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  17565. <p><a id="schemacustomfieldssettings"></a>
  17566. <a id="schema_CustomFieldsSettings"></a>
  17567. <a id="tocScustomfieldssettings"></a>
  17568. <a id="tocscustomfieldssettings"></a></p>
  17569. <pre class="highlight tab tab-json"><code>{
  17570. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17571. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  17572. {}
  17573. ],
  17574. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17575. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17576. }
  17577. </code></pre>
  17578. <h3 id="properties-11">Properties</h3>
  17579. <table>
  17580. <thead>
  17581. <tr>
  17582. <th>Name</th>
  17583. <th>Type</th>
  17584. <th>Required</th>
  17585. <th>Restrictions</th>
  17586. <th>Description</th>
  17587. </tr>
  17588. </thead>
  17589. <tbody>
  17590. <tr>
  17591. <td>currencyCode</td>
  17592. <td>string</td>
  17593. <td>false</td>
  17594. <td>none</td>
  17595. <td>none</td>
  17596. </tr>
  17597. <tr>
  17598. <td>dropdownItems</td>
  17599. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  17600. <td>false</td>
  17601. <td>none</td>
  17602. <td>list of drop down items objects</td>
  17603. </tr>
  17604. <tr>
  17605. <td>stringtemplateFormat</td>
  17606. <td>string</td>
  17607. <td>false</td>
  17608. <td>none</td>
  17609. <td>none</td>
  17610. </tr>
  17611. <tr>
  17612. <td>stringtemplateSeparator</td>
  17613. <td>string</td>
  17614. <td>false</td>
  17615. <td>none</td>
  17616. <td>none</td>
  17617. </tr>
  17618. </tbody>
  17619. </table>
  17620. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  17621. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  17622. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  17623. <a id="tocScustomfieldssettingsdropdownitems"></a>
  17624. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  17625. <pre class="highlight tab tab-json"><code>{}
  17626. </code></pre>
  17627. <h3 id="properties-12">Properties</h3>
  17628. <p><em>None</em></p>
  17629. <h2 id="tocs_integrations">Integrations</h2>
  17630. <p><a id="schemaintegrations"></a>
  17631. <a id="schema_Integrations"></a>
  17632. <a id="tocSintegrations"></a>
  17633. <a id="tocsintegrations"></a></p>
  17634. <pre class="highlight tab tab-json"><code>{
  17635. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  17636. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17637. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17638. <span class="hljs-attr">&quot;activities&quot;</span>: [
  17639. <span class="hljs-string">&quot;string&quot;</span>
  17640. ],
  17641. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17642. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17643. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17644. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17645. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17646. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17647. }
  17648. </code></pre>
  17649. <p>Integration with third-party applications</p>
  17650. <h3 id="properties-13">Properties</h3>
  17651. <table>
  17652. <thead>
  17653. <tr>
  17654. <th>Name</th>
  17655. <th>Type</th>
  17656. <th>Required</th>
  17657. <th>Restrictions</th>
  17658. <th>Description</th>
  17659. </tr>
  17660. </thead>
  17661. <tbody>
  17662. <tr>
  17663. <td>enabled</td>
  17664. <td>boolean</td>
  17665. <td>true</td>
  17666. <td>none</td>
  17667. <td>is the integration enabled?</td>
  17668. </tr>
  17669. <tr>
  17670. <td>title</td>
  17671. <td>string¦null</td>
  17672. <td>false</td>
  17673. <td>none</td>
  17674. <td>name of the integration</td>
  17675. </tr>
  17676. <tr>
  17677. <td>type</td>
  17678. <td>string</td>
  17679. <td>true</td>
  17680. <td>none</td>
  17681. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  17682. </tr>
  17683. <tr>
  17684. <td>activities</td>
  17685. <td>[string]</td>
  17686. <td>true</td>
  17687. <td>none</td>
  17688. <td>activities the integration gets triggered (list)</td>
  17689. </tr>
  17690. <tr>
  17691. <td>url</td>
  17692. <td>string</td>
  17693. <td>true</td>
  17694. <td>none</td>
  17695. <td>none</td>
  17696. </tr>
  17697. <tr>
  17698. <td>token</td>
  17699. <td>string¦null</td>
  17700. <td>false</td>
  17701. <td>none</td>
  17702. <td>token of the integration</td>
  17703. </tr>
  17704. <tr>
  17705. <td>boardId</td>
  17706. <td>string</td>
  17707. <td>true</td>
  17708. <td>none</td>
  17709. <td>Board ID of the integration</td>
  17710. </tr>
  17711. <tr>
  17712. <td>createdAt</td>
  17713. <td>string</td>
  17714. <td>true</td>
  17715. <td>none</td>
  17716. <td>Creation date of the integration</td>
  17717. </tr>
  17718. <tr>
  17719. <td>modifiedAt</td>
  17720. <td>string</td>
  17721. <td>true</td>
  17722. <td>none</td>
  17723. <td>none</td>
  17724. </tr>
  17725. <tr>
  17726. <td>userId</td>
  17727. <td>string</td>
  17728. <td>true</td>
  17729. <td>none</td>
  17730. <td>user ID who created the interation</td>
  17731. </tr>
  17732. </tbody>
  17733. </table>
  17734. <h2 id="tocs_lists">Lists</h2>
  17735. <p><a id="schemalists"></a>
  17736. <a id="schema_Lists"></a>
  17737. <a id="tocSlists"></a>
  17738. <a id="tocslists"></a></p>
  17739. <pre class="highlight tab tab-json"><code>{
  17740. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17741. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  17742. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17743. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17744. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17745. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17746. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17747. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17748. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17749. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17750. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  17751. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  17752. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  17753. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  17754. },
  17755. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17756. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17757. }
  17758. </code></pre>
  17759. <p>A list (column) in the Wekan board.</p>
  17760. <h3 id="properties-14">Properties</h3>
  17761. <table>
  17762. <thead>
  17763. <tr>
  17764. <th>Name</th>
  17765. <th>Type</th>
  17766. <th>Required</th>
  17767. <th>Restrictions</th>
  17768. <th>Description</th>
  17769. </tr>
  17770. </thead>
  17771. <tbody>
  17772. <tr>
  17773. <td>title</td>
  17774. <td>string</td>
  17775. <td>true</td>
  17776. <td>none</td>
  17777. <td>the title of the list</td>
  17778. </tr>
  17779. <tr>
  17780. <td>starred</td>
  17781. <td>boolean¦null</td>
  17782. <td>false</td>
  17783. <td>none</td>
  17784. <td>if a list is stared<br />then we put it on the top</td>
  17785. </tr>
  17786. <tr>
  17787. <td>archived</td>
  17788. <td>boolean</td>
  17789. <td>true</td>
  17790. <td>none</td>
  17791. <td>is the list archived</td>
  17792. </tr>
  17793. <tr>
  17794. <td>archivedAt</td>
  17795. <td>string¦null</td>
  17796. <td>false</td>
  17797. <td>none</td>
  17798. <td>latest archiving date</td>
  17799. </tr>
  17800. <tr>
  17801. <td>boardId</td>
  17802. <td>string</td>
  17803. <td>true</td>
  17804. <td>none</td>
  17805. <td>the board associated to this list</td>
  17806. </tr>
  17807. <tr>
  17808. <td>swimlaneId</td>
  17809. <td>string</td>
  17810. <td>true</td>
  17811. <td>none</td>
  17812. <td>the swimlane associated to this list. Used for templates</td>
  17813. </tr>
  17814. <tr>
  17815. <td>createdAt</td>
  17816. <td>string</td>
  17817. <td>true</td>
  17818. <td>none</td>
  17819. <td>creation date</td>
  17820. </tr>
  17821. <tr>
  17822. <td>sort</td>
  17823. <td>number¦null</td>
  17824. <td>false</td>
  17825. <td>none</td>
  17826. <td>is the list sorted</td>
  17827. </tr>
  17828. <tr>
  17829. <td>updatedAt</td>
  17830. <td>string¦null</td>
  17831. <td>false</td>
  17832. <td>none</td>
  17833. <td>last update of the list</td>
  17834. </tr>
  17835. <tr>
  17836. <td>modifiedAt</td>
  17837. <td>string</td>
  17838. <td>true</td>
  17839. <td>none</td>
  17840. <td>none</td>
  17841. </tr>
  17842. <tr>
  17843. <td>wipLimit</td>
  17844. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  17845. <td>false</td>
  17846. <td>none</td>
  17847. <td>none</td>
  17848. </tr>
  17849. <tr>
  17850. <td>color</td>
  17851. <td>string¦null</td>
  17852. <td>false</td>
  17853. <td>none</td>
  17854. <td>the color of the list</td>
  17855. </tr>
  17856. <tr>
  17857. <td>type</td>
  17858. <td>string</td>
  17859. <td>true</td>
  17860. <td>none</td>
  17861. <td>The type of list</td>
  17862. </tr>
  17863. </tbody>
  17864. </table>
  17865. <h4 id="enumerated-values-5">Enumerated Values</h4>
  17866. <table>
  17867. <thead>
  17868. <tr>
  17869. <th>Property</th>
  17870. <th>Value</th>
  17871. </tr>
  17872. </thead>
  17873. <tbody>
  17874. <tr>
  17875. <td>color</td>
  17876. <td>white</td>
  17877. </tr>
  17878. <tr>
  17879. <td>color</td>
  17880. <td>green</td>
  17881. </tr>
  17882. <tr>
  17883. <td>color</td>
  17884. <td>yellow</td>
  17885. </tr>
  17886. <tr>
  17887. <td>color</td>
  17888. <td>orange</td>
  17889. </tr>
  17890. <tr>
  17891. <td>color</td>
  17892. <td>red</td>
  17893. </tr>
  17894. <tr>
  17895. <td>color</td>
  17896. <td>purple</td>
  17897. </tr>
  17898. <tr>
  17899. <td>color</td>
  17900. <td>blue</td>
  17901. </tr>
  17902. <tr>
  17903. <td>color</td>
  17904. <td>sky</td>
  17905. </tr>
  17906. <tr>
  17907. <td>color</td>
  17908. <td>lime</td>
  17909. </tr>
  17910. <tr>
  17911. <td>color</td>
  17912. <td>pink</td>
  17913. </tr>
  17914. <tr>
  17915. <td>color</td>
  17916. <td>black</td>
  17917. </tr>
  17918. <tr>
  17919. <td>color</td>
  17920. <td>silver</td>
  17921. </tr>
  17922. <tr>
  17923. <td>color</td>
  17924. <td>peachpuff</td>
  17925. </tr>
  17926. <tr>
  17927. <td>color</td>
  17928. <td>crimson</td>
  17929. </tr>
  17930. <tr>
  17931. <td>color</td>
  17932. <td>plum</td>
  17933. </tr>
  17934. <tr>
  17935. <td>color</td>
  17936. <td>darkgreen</td>
  17937. </tr>
  17938. <tr>
  17939. <td>color</td>
  17940. <td>slateblue</td>
  17941. </tr>
  17942. <tr>
  17943. <td>color</td>
  17944. <td>magenta</td>
  17945. </tr>
  17946. <tr>
  17947. <td>color</td>
  17948. <td>gold</td>
  17949. </tr>
  17950. <tr>
  17951. <td>color</td>
  17952. <td>navy</td>
  17953. </tr>
  17954. <tr>
  17955. <td>color</td>
  17956. <td>gray</td>
  17957. </tr>
  17958. <tr>
  17959. <td>color</td>
  17960. <td>saddlebrown</td>
  17961. </tr>
  17962. <tr>
  17963. <td>color</td>
  17964. <td>paleturquoise</td>
  17965. </tr>
  17966. <tr>
  17967. <td>color</td>
  17968. <td>mistyrose</td>
  17969. </tr>
  17970. <tr>
  17971. <td>color</td>
  17972. <td>indigo</td>
  17973. </tr>
  17974. </tbody>
  17975. </table>
  17976. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  17977. <p><a id="schemalistswiplimit"></a>
  17978. <a id="schema_ListsWiplimit"></a>
  17979. <a id="tocSlistswiplimit"></a>
  17980. <a id="tocslistswiplimit"></a></p>
  17981. <pre class="highlight tab tab-json"><code>{
  17982. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  17983. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  17984. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  17985. }
  17986. </code></pre>
  17987. <h3 id="properties-15">Properties</h3>
  17988. <table>
  17989. <thead>
  17990. <tr>
  17991. <th>Name</th>
  17992. <th>Type</th>
  17993. <th>Required</th>
  17994. <th>Restrictions</th>
  17995. <th>Description</th>
  17996. </tr>
  17997. </thead>
  17998. <tbody>
  17999. <tr>
  18000. <td>value</td>
  18001. <td>number</td>
  18002. <td>true</td>
  18003. <td>none</td>
  18004. <td>value of the WIP</td>
  18005. </tr>
  18006. <tr>
  18007. <td>enabled</td>
  18008. <td>boolean</td>
  18009. <td>true</td>
  18010. <td>none</td>
  18011. <td>is the WIP enabled</td>
  18012. </tr>
  18013. <tr>
  18014. <td>soft</td>
  18015. <td>boolean</td>
  18016. <td>true</td>
  18017. <td>none</td>
  18018. <td>is the WIP a soft or hard requirement</td>
  18019. </tr>
  18020. </tbody>
  18021. </table>
  18022. <h2 id="tocs_swimlanes">Swimlanes</h2>
  18023. <p><a id="schemaswimlanes"></a>
  18024. <a id="schema_Swimlanes"></a>
  18025. <a id="tocSswimlanes"></a>
  18026. <a id="tocsswimlanes"></a></p>
  18027. <pre class="highlight tab tab-json"><code>{
  18028. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18029. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18030. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18031. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18032. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18033. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18034. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18035. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18036. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18037. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18038. }
  18039. </code></pre>
  18040. <p>A swimlane is an line in the kaban board.</p>
  18041. <h3 id="properties-16">Properties</h3>
  18042. <table>
  18043. <thead>
  18044. <tr>
  18045. <th>Name</th>
  18046. <th>Type</th>
  18047. <th>Required</th>
  18048. <th>Restrictions</th>
  18049. <th>Description</th>
  18050. </tr>
  18051. </thead>
  18052. <tbody>
  18053. <tr>
  18054. <td>title</td>
  18055. <td>string</td>
  18056. <td>true</td>
  18057. <td>none</td>
  18058. <td>the title of the swimlane</td>
  18059. </tr>
  18060. <tr>
  18061. <td>archived</td>
  18062. <td>boolean</td>
  18063. <td>true</td>
  18064. <td>none</td>
  18065. <td>is the swimlane archived?</td>
  18066. </tr>
  18067. <tr>
  18068. <td>archivedAt</td>
  18069. <td>string¦null</td>
  18070. <td>false</td>
  18071. <td>none</td>
  18072. <td>latest archiving date of the swimlane</td>
  18073. </tr>
  18074. <tr>
  18075. <td>boardId</td>
  18076. <td>string</td>
  18077. <td>true</td>
  18078. <td>none</td>
  18079. <td>the ID of the board the swimlane is attached to</td>
  18080. </tr>
  18081. <tr>
  18082. <td>createdAt</td>
  18083. <td>string</td>
  18084. <td>true</td>
  18085. <td>none</td>
  18086. <td>creation date of the swimlane</td>
  18087. </tr>
  18088. <tr>
  18089. <td>sort</td>
  18090. <td>number¦null</td>
  18091. <td>false</td>
  18092. <td>none</td>
  18093. <td>the sort value of the swimlane</td>
  18094. </tr>
  18095. <tr>
  18096. <td>color</td>
  18097. <td>string¦null</td>
  18098. <td>false</td>
  18099. <td>none</td>
  18100. <td>the color of the swimlane</td>
  18101. </tr>
  18102. <tr>
  18103. <td>updatedAt</td>
  18104. <td>string¦null</td>
  18105. <td>false</td>
  18106. <td>none</td>
  18107. <td>when was the swimlane last edited</td>
  18108. </tr>
  18109. <tr>
  18110. <td>modifiedAt</td>
  18111. <td>string</td>
  18112. <td>true</td>
  18113. <td>none</td>
  18114. <td>none</td>
  18115. </tr>
  18116. <tr>
  18117. <td>type</td>
  18118. <td>string</td>
  18119. <td>true</td>
  18120. <td>none</td>
  18121. <td>The type of swimlane</td>
  18122. </tr>
  18123. </tbody>
  18124. </table>
  18125. <h4 id="enumerated-values-6">Enumerated Values</h4>
  18126. <table>
  18127. <thead>
  18128. <tr>
  18129. <th>Property</th>
  18130. <th>Value</th>
  18131. </tr>
  18132. </thead>
  18133. <tbody>
  18134. <tr>
  18135. <td>color</td>
  18136. <td>white</td>
  18137. </tr>
  18138. <tr>
  18139. <td>color</td>
  18140. <td>green</td>
  18141. </tr>
  18142. <tr>
  18143. <td>color</td>
  18144. <td>yellow</td>
  18145. </tr>
  18146. <tr>
  18147. <td>color</td>
  18148. <td>orange</td>
  18149. </tr>
  18150. <tr>
  18151. <td>color</td>
  18152. <td>red</td>
  18153. </tr>
  18154. <tr>
  18155. <td>color</td>
  18156. <td>purple</td>
  18157. </tr>
  18158. <tr>
  18159. <td>color</td>
  18160. <td>blue</td>
  18161. </tr>
  18162. <tr>
  18163. <td>color</td>
  18164. <td>sky</td>
  18165. </tr>
  18166. <tr>
  18167. <td>color</td>
  18168. <td>lime</td>
  18169. </tr>
  18170. <tr>
  18171. <td>color</td>
  18172. <td>pink</td>
  18173. </tr>
  18174. <tr>
  18175. <td>color</td>
  18176. <td>black</td>
  18177. </tr>
  18178. <tr>
  18179. <td>color</td>
  18180. <td>silver</td>
  18181. </tr>
  18182. <tr>
  18183. <td>color</td>
  18184. <td>peachpuff</td>
  18185. </tr>
  18186. <tr>
  18187. <td>color</td>
  18188. <td>crimson</td>
  18189. </tr>
  18190. <tr>
  18191. <td>color</td>
  18192. <td>plum</td>
  18193. </tr>
  18194. <tr>
  18195. <td>color</td>
  18196. <td>darkgreen</td>
  18197. </tr>
  18198. <tr>
  18199. <td>color</td>
  18200. <td>slateblue</td>
  18201. </tr>
  18202. <tr>
  18203. <td>color</td>
  18204. <td>magenta</td>
  18205. </tr>
  18206. <tr>
  18207. <td>color</td>
  18208. <td>gold</td>
  18209. </tr>
  18210. <tr>
  18211. <td>color</td>
  18212. <td>navy</td>
  18213. </tr>
  18214. <tr>
  18215. <td>color</td>
  18216. <td>gray</td>
  18217. </tr>
  18218. <tr>
  18219. <td>color</td>
  18220. <td>saddlebrown</td>
  18221. </tr>
  18222. <tr>
  18223. <td>color</td>
  18224. <td>paleturquoise</td>
  18225. </tr>
  18226. <tr>
  18227. <td>color</td>
  18228. <td>mistyrose</td>
  18229. </tr>
  18230. <tr>
  18231. <td>color</td>
  18232. <td>indigo</td>
  18233. </tr>
  18234. </tbody>
  18235. </table>
  18236. <h2 id="tocs_users">Users</h2>
  18237. <p><a id="schemausers"></a>
  18238. <a id="schema_Users"></a>
  18239. <a id="tocSusers"></a>
  18240. <a id="tocsusers"></a></p>
  18241. <pre class="highlight tab tab-json"><code>{
  18242. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18243. <span class="hljs-attr">&quot;emails&quot;</span>: [
  18244. {
  18245. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18246. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  18247. }
  18248. ],
  18249. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18250. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18251. <span class="hljs-attr">&quot;profile&quot;</span>: {
  18252. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18253. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18254. <span class="hljs-string">&quot;string&quot;</span>
  18255. ],
  18256. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18257. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  18258. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  18259. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  18260. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  18261. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18262. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  18263. <span class="hljs-string">&quot;string&quot;</span>
  18264. ],
  18265. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18266. <span class="hljs-attr">&quot;notifications&quot;</span>: [],
  18267. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18268. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18269. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  18270. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  18271. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  18272. <span class="hljs-string">&quot;string&quot;</span>
  18273. ],
  18274. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18275. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  18276. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  18277. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18278. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18279. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18280. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18281. },
  18282. <span class="hljs-attr">&quot;services&quot;</span>: {},
  18283. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18284. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  18285. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  18286. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  18287. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18288. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  18289. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>,
  18290. <span class="hljs-attr">&quot;lastHit&quot;</span>: <span class="hljs-number">0</span>
  18291. },
  18292. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  18293. <span class="hljs-string">&quot;string&quot;</span>
  18294. ]
  18295. }
  18296. </code></pre>
  18297. <p>A User in wekan</p>
  18298. <h3 id="properties-17">Properties</h3>
  18299. <table>
  18300. <thead>
  18301. <tr>
  18302. <th>Name</th>
  18303. <th>Type</th>
  18304. <th>Required</th>
  18305. <th>Restrictions</th>
  18306. <th>Description</th>
  18307. </tr>
  18308. </thead>
  18309. <tbody>
  18310. <tr>
  18311. <td>username</td>
  18312. <td>string¦null</td>
  18313. <td>false</td>
  18314. <td>none</td>
  18315. <td>the username of the user</td>
  18316. </tr>
  18317. <tr>
  18318. <td>emails</td>
  18319. <td>[<a href="#schemausersemails">UsersEmails</a>]¦null</td>
  18320. <td>false</td>
  18321. <td>none</td>
  18322. <td>the list of emails attached to a user</td>
  18323. </tr>
  18324. <tr>
  18325. <td>createdAt</td>
  18326. <td>string</td>
  18327. <td>true</td>
  18328. <td>none</td>
  18329. <td>creation date of the user</td>
  18330. </tr>
  18331. <tr>
  18332. <td>modifiedAt</td>
  18333. <td>string</td>
  18334. <td>true</td>
  18335. <td>none</td>
  18336. <td>none</td>
  18337. </tr>
  18338. <tr>
  18339. <td>profile</td>
  18340. <td><a href="#schemausersprofile">UsersProfile</a></td>
  18341. <td>false</td>
  18342. <td>none</td>
  18343. <td>none</td>
  18344. </tr>
  18345. <tr>
  18346. <td>services</td>
  18347. <td>object¦null</td>
  18348. <td>false</td>
  18349. <td>none</td>
  18350. <td>services field of the user</td>
  18351. </tr>
  18352. <tr>
  18353. <td>heartbeat</td>
  18354. <td>string¦null</td>
  18355. <td>false</td>
  18356. <td>none</td>
  18357. <td>last time the user has been seen</td>
  18358. </tr>
  18359. <tr>
  18360. <td>isAdmin</td>
  18361. <td>boolean¦null</td>
  18362. <td>false</td>
  18363. <td>none</td>
  18364. <td>is the user an admin of the board?</td>
  18365. </tr>
  18366. <tr>
  18367. <td>createdThroughApi</td>
  18368. <td>boolean¦null</td>
  18369. <td>false</td>
  18370. <td>none</td>
  18371. <td>was the user created through the API?</td>
  18372. </tr>
  18373. <tr>
  18374. <td>loginDisabled</td>
  18375. <td>boolean¦null</td>
  18376. <td>false</td>
  18377. <td>none</td>
  18378. <td>loginDisabled field of the user</td>
  18379. </tr>
  18380. <tr>
  18381. <td>authenticationMethod</td>
  18382. <td>string</td>
  18383. <td>true</td>
  18384. <td>none</td>
  18385. <td>authentication method of the user</td>
  18386. </tr>
  18387. <tr>
  18388. <td>sessionData</td>
  18389. <td><a href="#schemauserssessiondata">UsersSessiondata</a></td>
  18390. <td>false</td>
  18391. <td>none</td>
  18392. <td>none</td>
  18393. </tr>
  18394. <tr>
  18395. <td>importUsernames</td>
  18396. <td>[string]¦null</td>
  18397. <td>false</td>
  18398. <td>none</td>
  18399. <td>username for imported</td>
  18400. </tr>
  18401. </tbody>
  18402. </table>
  18403. <h2 id="tocs_usersemails">UsersEmails</h2>
  18404. <p><a id="schemausersemails"></a>
  18405. <a id="schema_UsersEmails"></a>
  18406. <a id="tocSusersemails"></a>
  18407. <a id="tocsusersemails"></a></p>
  18408. <pre class="highlight tab tab-json"><code>{
  18409. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18410. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  18411. }
  18412. </code></pre>
  18413. <h3 id="properties-18">Properties</h3>
  18414. <table>
  18415. <thead>
  18416. <tr>
  18417. <th>Name</th>
  18418. <th>Type</th>
  18419. <th>Required</th>
  18420. <th>Restrictions</th>
  18421. <th>Description</th>
  18422. </tr>
  18423. </thead>
  18424. <tbody>
  18425. <tr>
  18426. <td>address</td>
  18427. <td>string</td>
  18428. <td>true</td>
  18429. <td>none</td>
  18430. <td>The email address</td>
  18431. </tr>
  18432. <tr>
  18433. <td>verified</td>
  18434. <td>boolean</td>
  18435. <td>true</td>
  18436. <td>none</td>
  18437. <td>Has the email been verified</td>
  18438. </tr>
  18439. </tbody>
  18440. </table>
  18441. <h2 id="tocs_usersprofile">UsersProfile</h2>
  18442. <p><a id="schemausersprofile"></a>
  18443. <a id="schema_UsersProfile"></a>
  18444. <a id="tocSusersprofile"></a>
  18445. <a id="tocsusersprofile"></a></p>
  18446. <pre class="highlight tab tab-json"><code>{
  18447. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18448. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  18449. <span class="hljs-string">&quot;string&quot;</span>
  18450. ],
  18451. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18452. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  18453. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  18454. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  18455. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  18456. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18457. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  18458. <span class="hljs-string">&quot;string&quot;</span>
  18459. ],
  18460. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18461. <span class="hljs-attr">&quot;notifications&quot;</span>: [],
  18462. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18463. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18464. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  18465. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  18466. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  18467. <span class="hljs-string">&quot;string&quot;</span>
  18468. ],
  18469. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18470. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  18471. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  18472. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18473. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18474. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18475. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18476. }
  18477. </code></pre>
  18478. <h3 id="properties-19">Properties</h3>
  18479. <table>
  18480. <thead>
  18481. <tr>
  18482. <th>Name</th>
  18483. <th>Type</th>
  18484. <th>Required</th>
  18485. <th>Restrictions</th>
  18486. <th>Description</th>
  18487. </tr>
  18488. </thead>
  18489. <tbody>
  18490. <tr>
  18491. <td>avatarUrl</td>
  18492. <td>string</td>
  18493. <td>false</td>
  18494. <td>none</td>
  18495. <td>URL of the avatar of the user</td>
  18496. </tr>
  18497. <tr>
  18498. <td>emailBuffer</td>
  18499. <td>[string]</td>
  18500. <td>false</td>
  18501. <td>none</td>
  18502. <td>list of email buffers of the user</td>
  18503. </tr>
  18504. <tr>
  18505. <td>fullname</td>
  18506. <td>string</td>
  18507. <td>false</td>
  18508. <td>none</td>
  18509. <td>full name of the user</td>
  18510. </tr>
  18511. <tr>
  18512. <td>showDesktopDragHandles</td>
  18513. <td>boolean</td>
  18514. <td>false</td>
  18515. <td>none</td>
  18516. <td>does the user want to hide system messages?</td>
  18517. </tr>
  18518. <tr>
  18519. <td>hideCheckedItems</td>
  18520. <td>boolean</td>
  18521. <td>false</td>
  18522. <td>none</td>
  18523. <td>does the user want to hide checked checklist items?</td>
  18524. </tr>
  18525. <tr>
  18526. <td>hiddenSystemMessages</td>
  18527. <td>boolean</td>
  18528. <td>false</td>
  18529. <td>none</td>
  18530. <td>does the user want to hide system messages?</td>
  18531. </tr>
  18532. <tr>
  18533. <td>hiddenMinicardLabelText</td>
  18534. <td>boolean</td>
  18535. <td>false</td>
  18536. <td>none</td>
  18537. <td>does the user want to hide minicard label texts?</td>
  18538. </tr>
  18539. <tr>
  18540. <td>initials</td>
  18541. <td>string</td>
  18542. <td>false</td>
  18543. <td>none</td>
  18544. <td>initials of the user</td>
  18545. </tr>
  18546. <tr>
  18547. <td>invitedBoards</td>
  18548. <td>[string]</td>
  18549. <td>false</td>
  18550. <td>none</td>
  18551. <td>board IDs the user has been invited to</td>
  18552. </tr>
  18553. <tr>
  18554. <td>language</td>
  18555. <td>string</td>
  18556. <td>false</td>
  18557. <td>none</td>
  18558. <td>language of the user</td>
  18559. </tr>
  18560. <tr>
  18561. <td>notifications</td>
  18562. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  18563. <td>false</td>
  18564. <td>none</td>
  18565. <td>enabled notifications for the user</td>
  18566. </tr>
  18567. <tr>
  18568. <td>activity</td>
  18569. <td>string</td>
  18570. <td>true</td>
  18571. <td>none</td>
  18572. <td>The id of the activity this notification references</td>
  18573. </tr>
  18574. <tr>
  18575. <td>read</td>
  18576. <td>string</td>
  18577. <td>false</td>
  18578. <td>none</td>
  18579. <td>the date on which this notification was read</td>
  18580. </tr>
  18581. <tr>
  18582. <td>showCardsCountAt</td>
  18583. <td>number</td>
  18584. <td>false</td>
  18585. <td>none</td>
  18586. <td>showCardCountAt field of the user</td>
  18587. </tr>
  18588. <tr>
  18589. <td>startDayOfWeek</td>
  18590. <td>number</td>
  18591. <td>false</td>
  18592. <td>none</td>
  18593. <td>startDayOfWeek field of the user</td>
  18594. </tr>
  18595. <tr>
  18596. <td>starredBoards</td>
  18597. <td>[string]</td>
  18598. <td>false</td>
  18599. <td>none</td>
  18600. <td>list of starred board IDs</td>
  18601. </tr>
  18602. <tr>
  18603. <td>icode</td>
  18604. <td>string</td>
  18605. <td>false</td>
  18606. <td>none</td>
  18607. <td>icode</td>
  18608. </tr>
  18609. <tr>
  18610. <td>boardView</td>
  18611. <td>string</td>
  18612. <td>false</td>
  18613. <td>none</td>
  18614. <td>boardView field of the user</td>
  18615. </tr>
  18616. <tr>
  18617. <td>listSortBy</td>
  18618. <td>string</td>
  18619. <td>false</td>
  18620. <td>none</td>
  18621. <td>default sort list for user</td>
  18622. </tr>
  18623. <tr>
  18624. <td>templatesBoardId</td>
  18625. <td>string</td>
  18626. <td>true</td>
  18627. <td>none</td>
  18628. <td>Reference to the templates board</td>
  18629. </tr>
  18630. <tr>
  18631. <td>cardTemplatesSwimlaneId</td>
  18632. <td>string</td>
  18633. <td>true</td>
  18634. <td>none</td>
  18635. <td>Reference to the card templates swimlane Id</td>
  18636. </tr>
  18637. <tr>
  18638. <td>listTemplatesSwimlaneId</td>
  18639. <td>string</td>
  18640. <td>true</td>
  18641. <td>none</td>
  18642. <td>Reference to the list templates swimlane Id</td>
  18643. </tr>
  18644. <tr>
  18645. <td>boardTemplatesSwimlaneId</td>
  18646. <td>string</td>
  18647. <td>true</td>
  18648. <td>none</td>
  18649. <td>Reference to the board templates swimlane Id</td>
  18650. </tr>
  18651. </tbody>
  18652. </table>
  18653. <h4 id="enumerated-values-7">Enumerated Values</h4>
  18654. <table>
  18655. <thead>
  18656. <tr>
  18657. <th>Property</th>
  18658. <th>Value</th>
  18659. </tr>
  18660. </thead>
  18661. <tbody>
  18662. <tr>
  18663. <td>boardView</td>
  18664. <td>board-view-swimlanes</td>
  18665. </tr>
  18666. <tr>
  18667. <td>boardView</td>
  18668. <td>board-view-lists</td>
  18669. </tr>
  18670. <tr>
  18671. <td>boardView</td>
  18672. <td>board-view-cal</td>
  18673. </tr>
  18674. <tr>
  18675. <td>listSortBy</td>
  18676. <td>-modifiedat</td>
  18677. </tr>
  18678. <tr>
  18679. <td>listSortBy</td>
  18680. <td>modifiedat</td>
  18681. </tr>
  18682. <tr>
  18683. <td>listSortBy</td>
  18684. <td>-title</td>
  18685. </tr>
  18686. <tr>
  18687. <td>listSortBy</td>
  18688. <td>title</td>
  18689. </tr>
  18690. <tr>
  18691. <td>listSortBy</td>
  18692. <td>-sort</td>
  18693. </tr>
  18694. <tr>
  18695. <td>listSortBy</td>
  18696. <td>sort</td>
  18697. </tr>
  18698. </tbody>
  18699. </table>
  18700. <h2 id="tocs_userssessiondata">UsersSessiondata</h2>
  18701. <p><a id="schemauserssessiondata"></a>
  18702. <a id="schema_UsersSessiondata"></a>
  18703. <a id="tocSuserssessiondata"></a>
  18704. <a id="tocsuserssessiondata"></a></p>
  18705. <pre class="highlight tab tab-json"><code>{
  18706. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>,
  18707. <span class="hljs-attr">&quot;lastHit&quot;</span>: <span class="hljs-number">0</span>
  18708. }
  18709. </code></pre>
  18710. <h3 id="properties-20">Properties</h3>
  18711. <table>
  18712. <thead>
  18713. <tr>
  18714. <th>Name</th>
  18715. <th>Type</th>
  18716. <th>Required</th>
  18717. <th>Restrictions</th>
  18718. <th>Description</th>
  18719. </tr>
  18720. </thead>
  18721. <tbody>
  18722. <tr>
  18723. <td>totalHits</td>
  18724. <td>number</td>
  18725. <td>false</td>
  18726. <td>none</td>
  18727. <td>Total hits from last search</td>
  18728. </tr>
  18729. <tr>
  18730. <td>lastHit</td>
  18731. <td>number</td>
  18732. <td>false</td>
  18733. <td>none</td>
  18734. <td>last hit that was returned</td>
  18735. </tr>
  18736. </tbody>
  18737. </table>
  18738. <!-- Renderer: Shins v2.6.0 -->
  18739. <!-- Generator: Widdershins v4.0.1 -->
  18740. <!-- backwards compatibility -->
  18741. <!-- backwards compatibility -->
  18742. <!-- backwards compatibility -->
  18743. <!-- backwards compatibility -->
  18744. <!-- backwards compatibility -->
  18745. <!-- backwards compatibility -->
  18746. <!-- backwards compatibility -->
  18747. <!-- backwards compatibility -->
  18748. <!-- backwards compatibility -->
  18749. <!-- backwards compatibility -->
  18750. <!-- backwards compatibility -->
  18751. <!-- backwards compatibility -->
  18752. <!-- backwards compatibility -->
  18753. <!-- backwards compatibility -->
  18754. <!-- backwards compatibility -->
  18755. <!-- backwards compatibility -->
  18756. <!-- backwards compatibility -->
  18757. <!-- backwards compatibility -->
  18758. <!-- backwards compatibility -->
  18759. <!-- backwards compatibility -->
  18760. </div>
  18761. <div class="dark-box">
  18762. <div class="lang-selector">
  18763. <a href="#" data-language-name="shell">Shell</a>
  18764. <a href="#" data-language-name="http">HTTP</a>
  18765. <a href="#" data-language-name="javascript">JavaScript</a>
  18766. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  18767. <a href="#" data-language-name="ruby">Ruby</a>
  18768. <a href="#" data-language-name="python">Python</a>
  18769. <a href="#" data-language-name="java">Java</a>
  18770. <a href="#" data-language-name="go">Go</a>
  18771. <a href="#" data-language-name="php">PHP</a>
  18772. </div>
  18773. </div>
  18774. </div>
  18775. </body>
  18776. </html>