wekan.html 947 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430
  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 v6.49</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. <!-- backwards compatibility -->
  1341. <!-- backwards compatibility -->
  1342. <!-- backwards compatibility -->
  1343. <!-- backwards compatibility -->
  1344. <!-- backwards compatibility -->
  1345. <!-- backwards compatibility -->
  1346. <!-- backwards compatibility -->
  1347. <!-- backwards compatibility -->
  1348. <!-- backwards compatibility -->
  1349. </head>
  1350. <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;]">
  1351. <a href="#" id="nav-button">
  1352. <span>
  1353. NAV
  1354. <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYxgswBIIsLFGrIJRBaMKBh4AAE3cQCEvEU3+AAAAAElFTkSuQmCC" class="undefined" alt="Navigation">
  1355. </span>
  1356. </a>
  1357. <div class="toc-wrapper">
  1358. <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">
  1359. <div class="lang-selector">
  1360. <a href="#" data-language-name="shell">Shell</a>
  1361. <a href="#" data-language-name="http">HTTP</a>
  1362. <a href="#" data-language-name="javascript">JavaScript</a>
  1363. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  1364. <a href="#" data-language-name="ruby">Ruby</a>
  1365. <a href="#" data-language-name="python">Python</a>
  1366. <a href="#" data-language-name="java">Java</a>
  1367. <a href="#" data-language-name="go">Go</a>
  1368. <a href="#" data-language-name="php">PHP</a>
  1369. </div>
  1370. <div class="search">
  1371. <input type="text" class="search" id="input-search" placeholder="Search">
  1372. </div>
  1373. <ul class="search-results"></ul>
  1374. <div id="toc" class="toc-list-h1">
  1375. <ul class="toc-list-h1">
  1376. <li>
  1377. <a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v6.49">Wekan REST API v6.49</a>
  1378. </li>
  1379. <li>
  1380. <a href="#production-security-concerns" class="toc-h1 toc-link" data-title="Production Security Concerns">Production Security Concerns</a>
  1381. </li>
  1382. <li>
  1383. <a href="#authentication" class="toc-h1 toc-link" data-title="Authentication">Authentication</a>
  1384. </li>
  1385. <li>
  1386. <a href="#wekan-rest-api-login" class="toc-h1 toc-link" data-title="Login">Login</a>
  1387. <ul class="toc-list-h2">
  1388. <li>
  1389. <a href="#login" class="toc-h2 toc-link" data-title="">login</a>
  1390. </li>
  1391. <li>
  1392. <a href="#register" class="toc-h2 toc-link" data-title="">register</a>
  1393. </li>
  1394. </ul>
  1395. </li>
  1396. <li>
  1397. <a href="#wekan-rest-api-boards" class="toc-h1 toc-link" data-title="Boards">Boards</a>
  1398. <ul class="toc-list-h2">
  1399. <li>
  1400. <a href="#get_public_boards" class="toc-h2 toc-link" data-title="">get_public_boards</a>
  1401. </li>
  1402. <li>
  1403. <a href="#new_board" class="toc-h2 toc-link" data-title="">new_board</a>
  1404. </li>
  1405. <li>
  1406. <a href="#get_board" class="toc-h2 toc-link" data-title="">get_board</a>
  1407. </li>
  1408. <li>
  1409. <a href="#delete_board" class="toc-h2 toc-link" data-title="">delete_board</a>
  1410. </li>
  1411. <li>
  1412. <a href="#get_board_attachments" class="toc-h2 toc-link" data-title="">get_board_attachments</a>
  1413. </li>
  1414. <li>
  1415. <a href="#exportjson" class="toc-h2 toc-link" data-title="">exportJson</a>
  1416. </li>
  1417. <li>
  1418. <a href="#add_board_label" class="toc-h2 toc-link" data-title="">add_board_label</a>
  1419. </li>
  1420. <li>
  1421. <a href="#set_board_member_permission" class="toc-h2 toc-link" data-title="">set_board_member_permission</a>
  1422. </li>
  1423. <li>
  1424. <a href="#get_boards_count" class="toc-h2 toc-link" data-title="">get_boards_count</a>
  1425. </li>
  1426. <li>
  1427. <a href="#get_boards_from_user" class="toc-h2 toc-link" data-title="">get_boards_from_user</a>
  1428. </li>
  1429. </ul>
  1430. </li>
  1431. <li>
  1432. <a href="#wekan-rest-api-checklists" class="toc-h1 toc-link" data-title="Checklists">Checklists</a>
  1433. <ul class="toc-list-h2">
  1434. <li>
  1435. <a href="#get_all_checklists" class="toc-h2 toc-link" data-title="">get_all_checklists</a>
  1436. </li>
  1437. <li>
  1438. <a href="#new_checklist" class="toc-h2 toc-link" data-title="">new_checklist</a>
  1439. </li>
  1440. <li>
  1441. <a href="#get_checklist" class="toc-h2 toc-link" data-title="">get_checklist</a>
  1442. </li>
  1443. <li>
  1444. <a href="#delete_checklist" class="toc-h2 toc-link" data-title="">delete_checklist</a>
  1445. </li>
  1446. </ul>
  1447. </li>
  1448. <li>
  1449. <a href="#wekan-rest-api-checklistitems" class="toc-h1 toc-link" data-title="ChecklistItems">ChecklistItems</a>
  1450. <ul class="toc-list-h2">
  1451. <li>
  1452. <a href="#get_checklist_item" class="toc-h2 toc-link" data-title="">get_checklist_item</a>
  1453. </li>
  1454. <li>
  1455. <a href="#edit_checklist_item" class="toc-h2 toc-link" data-title="">edit_checklist_item</a>
  1456. </li>
  1457. <li>
  1458. <a href="#delete_checklist_item" class="toc-h2 toc-link" data-title="">delete_checklist_item</a>
  1459. </li>
  1460. </ul>
  1461. </li>
  1462. <li>
  1463. <a href="#wekan-rest-api-cardcomments" class="toc-h1 toc-link" data-title="CardComments">CardComments</a>
  1464. <ul class="toc-list-h2">
  1465. <li>
  1466. <a href="#get_all_comments" class="toc-h2 toc-link" data-title="">get_all_comments</a>
  1467. </li>
  1468. <li>
  1469. <a href="#new_comment" class="toc-h2 toc-link" data-title="">new_comment</a>
  1470. </li>
  1471. <li>
  1472. <a href="#get_comment" class="toc-h2 toc-link" data-title="">get_comment</a>
  1473. </li>
  1474. <li>
  1475. <a href="#delete_comment" class="toc-h2 toc-link" data-title="">delete_comment</a>
  1476. </li>
  1477. </ul>
  1478. </li>
  1479. <li>
  1480. <a href="#wekan-rest-api-cards" class="toc-h1 toc-link" data-title="Cards">Cards</a>
  1481. <ul class="toc-list-h2">
  1482. <li>
  1483. <a href="#get_cards_by_custom_field" class="toc-h2 toc-link" data-title="">get_cards_by_custom_field</a>
  1484. </li>
  1485. <li>
  1486. <a href="#get_board_cards_count" class="toc-h2 toc-link" data-title="">get_board_cards_count</a>
  1487. </li>
  1488. <li>
  1489. <a href="#get_all_cards" class="toc-h2 toc-link" data-title="">get_all_cards</a>
  1490. </li>
  1491. <li>
  1492. <a href="#new_card" class="toc-h2 toc-link" data-title="">new_card</a>
  1493. </li>
  1494. <li>
  1495. <a href="#get_card" class="toc-h2 toc-link" data-title="">get_card</a>
  1496. </li>
  1497. <li>
  1498. <a href="#edit_card" class="toc-h2 toc-link" data-title="">edit_card</a>
  1499. </li>
  1500. <li>
  1501. <a href="#delete_card" class="toc-h2 toc-link" data-title="">delete_card</a>
  1502. </li>
  1503. <li>
  1504. <a href="#get_list_cards_count" class="toc-h2 toc-link" data-title="">get_list_cards_count</a>
  1505. </li>
  1506. <li>
  1507. <a href="#get_swimlane_cards" class="toc-h2 toc-link" data-title="">get_swimlane_cards</a>
  1508. </li>
  1509. </ul>
  1510. </li>
  1511. <li>
  1512. <a href="#wekan-rest-api-customfields" class="toc-h1 toc-link" data-title="CustomFields">CustomFields</a>
  1513. <ul class="toc-list-h2">
  1514. <li>
  1515. <a href="#get_all_custom_fields" class="toc-h2 toc-link" data-title="">get_all_custom_fields</a>
  1516. </li>
  1517. <li>
  1518. <a href="#new_custom_field" class="toc-h2 toc-link" data-title="">new_custom_field</a>
  1519. </li>
  1520. <li>
  1521. <a href="#get_custom_field" class="toc-h2 toc-link" data-title="">get_custom_field</a>
  1522. </li>
  1523. <li>
  1524. <a href="#edit_custom_field" class="toc-h2 toc-link" data-title="">edit_custom_field</a>
  1525. </li>
  1526. <li>
  1527. <a href="#delete_custom_field" class="toc-h2 toc-link" data-title="">delete_custom_field</a>
  1528. </li>
  1529. <li>
  1530. <a href="#add_custom_field_dropdown_items" class="toc-h2 toc-link" data-title="">add_custom_field_dropdown_items</a>
  1531. </li>
  1532. <li>
  1533. <a href="#edit_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">edit_custom_field_dropdown_item</a>
  1534. </li>
  1535. <li>
  1536. <a href="#delete_custom_field_dropdown_item" class="toc-h2 toc-link" data-title="">delete_custom_field_dropdown_item</a>
  1537. </li>
  1538. </ul>
  1539. </li>
  1540. <li>
  1541. <a href="#wekan-rest-api-integrations" class="toc-h1 toc-link" data-title="Integrations">Integrations</a>
  1542. <ul class="toc-list-h2">
  1543. <li>
  1544. <a href="#get_all_integrations" class="toc-h2 toc-link" data-title="">get_all_integrations</a>
  1545. </li>
  1546. <li>
  1547. <a href="#new_integration" class="toc-h2 toc-link" data-title="">new_integration</a>
  1548. </li>
  1549. <li>
  1550. <a href="#get_integration" class="toc-h2 toc-link" data-title="">get_integration</a>
  1551. </li>
  1552. <li>
  1553. <a href="#edit_integration" class="toc-h2 toc-link" data-title="">edit_integration</a>
  1554. </li>
  1555. <li>
  1556. <a href="#delete_integration" class="toc-h2 toc-link" data-title="">delete_integration</a>
  1557. </li>
  1558. <li>
  1559. <a href="#delete_integration_activities" class="toc-h2 toc-link" data-title="">delete_integration_activities</a>
  1560. </li>
  1561. <li>
  1562. <a href="#new_integration_activities" class="toc-h2 toc-link" data-title="">new_integration_activities</a>
  1563. </li>
  1564. </ul>
  1565. </li>
  1566. <li>
  1567. <a href="#wekan-rest-api-lists" class="toc-h1 toc-link" data-title="Lists">Lists</a>
  1568. <ul class="toc-list-h2">
  1569. <li>
  1570. <a href="#get_all_lists" class="toc-h2 toc-link" data-title="">get_all_lists</a>
  1571. </li>
  1572. <li>
  1573. <a href="#new_list" class="toc-h2 toc-link" data-title="">new_list</a>
  1574. </li>
  1575. <li>
  1576. <a href="#get_list" class="toc-h2 toc-link" data-title="">get_list</a>
  1577. </li>
  1578. <li>
  1579. <a href="#delete_list" class="toc-h2 toc-link" data-title="">delete_list</a>
  1580. </li>
  1581. </ul>
  1582. </li>
  1583. <li>
  1584. <a href="#wekan-rest-api-users" class="toc-h1 toc-link" data-title="Users">Users</a>
  1585. <ul class="toc-list-h2">
  1586. <li>
  1587. <a href="#add_board_member" class="toc-h2 toc-link" data-title="">add_board_member</a>
  1588. </li>
  1589. <li>
  1590. <a href="#remove_board_member" class="toc-h2 toc-link" data-title="">remove_board_member</a>
  1591. </li>
  1592. <li>
  1593. <a href="#create_user_token" class="toc-h2 toc-link" data-title="">create_user_token</a>
  1594. </li>
  1595. <li>
  1596. <a href="#get_current_user" class="toc-h2 toc-link" data-title="">get_current_user</a>
  1597. </li>
  1598. <li>
  1599. <a href="#get_all_users" class="toc-h2 toc-link" data-title="">get_all_users</a>
  1600. </li>
  1601. <li>
  1602. <a href="#new_user" class="toc-h2 toc-link" data-title="">new_user</a>
  1603. </li>
  1604. <li>
  1605. <a href="#get_user" class="toc-h2 toc-link" data-title="">get_user</a>
  1606. </li>
  1607. <li>
  1608. <a href="#edit_user" class="toc-h2 toc-link" data-title="">edit_user</a>
  1609. </li>
  1610. <li>
  1611. <a href="#delete_user" class="toc-h2 toc-link" data-title="">delete_user</a>
  1612. </li>
  1613. </ul>
  1614. </li>
  1615. <li>
  1616. <a href="#wekan-rest-api-swimlanes" class="toc-h1 toc-link" data-title="Swimlanes">Swimlanes</a>
  1617. <ul class="toc-list-h2">
  1618. <li>
  1619. <a href="#get_all_swimlanes" class="toc-h2 toc-link" data-title="">get_all_swimlanes</a>
  1620. </li>
  1621. <li>
  1622. <a href="#new_swimlane" class="toc-h2 toc-link" data-title="">new_swimlane</a>
  1623. </li>
  1624. <li>
  1625. <a href="#get_swimlane" class="toc-h2 toc-link" data-title="">get_swimlane</a>
  1626. </li>
  1627. <li>
  1628. <a href="#delete_swimlane" class="toc-h2 toc-link" data-title="">delete_swimlane</a>
  1629. </li>
  1630. </ul>
  1631. </li>
  1632. <li>
  1633. <a href="#schemas" class="toc-h1 toc-link" data-title="Schemas">Schemas</a>
  1634. <ul class="toc-list-h2">
  1635. <li>
  1636. <a href="#tocs_boards" class="toc-h2 toc-link" data-title="">Boards</a>
  1637. </li>
  1638. <li>
  1639. <a href="#tocs_boardslabels" class="toc-h2 toc-link" data-title="">BoardsLabels</a>
  1640. </li>
  1641. <li>
  1642. <a href="#tocs_boardsmembers" class="toc-h2 toc-link" data-title="">BoardsMembers</a>
  1643. </li>
  1644. <li>
  1645. <a href="#tocs_boardsorgs" class="toc-h2 toc-link" data-title="">BoardsOrgs</a>
  1646. </li>
  1647. <li>
  1648. <a href="#tocs_boardsteams" class="toc-h2 toc-link" data-title="">BoardsTeams</a>
  1649. </li>
  1650. <li>
  1651. <a href="#tocs_cardcomments" class="toc-h2 toc-link" data-title="">CardComments</a>
  1652. </li>
  1653. <li>
  1654. <a href="#tocs_cards" class="toc-h2 toc-link" data-title="">Cards</a>
  1655. </li>
  1656. <li>
  1657. <a href="#tocs_cardsvote" class="toc-h2 toc-link" data-title="">CardsVote</a>
  1658. </li>
  1659. <li>
  1660. <a href="#tocs_cardspoker" class="toc-h2 toc-link" data-title="">CardsPoker</a>
  1661. </li>
  1662. <li>
  1663. <a href="#tocs_cardscustomfields" class="toc-h2 toc-link" data-title="">CardsCustomfields</a>
  1664. </li>
  1665. <li>
  1666. <a href="#tocs_checklistitems" class="toc-h2 toc-link" data-title="">ChecklistItems</a>
  1667. </li>
  1668. <li>
  1669. <a href="#tocs_checklists" class="toc-h2 toc-link" data-title="">Checklists</a>
  1670. </li>
  1671. <li>
  1672. <a href="#tocs_customfields" class="toc-h2 toc-link" data-title="">CustomFields</a>
  1673. </li>
  1674. <li>
  1675. <a href="#tocs_customfieldssettings" class="toc-h2 toc-link" data-title="">CustomFieldsSettings</a>
  1676. </li>
  1677. <li>
  1678. <a href="#tocs_customfieldssettingsdropdownitems" class="toc-h2 toc-link" data-title="">CustomFieldsSettingsDropdownitems</a>
  1679. </li>
  1680. <li>
  1681. <a href="#tocs_integrations" class="toc-h2 toc-link" data-title="">Integrations</a>
  1682. </li>
  1683. <li>
  1684. <a href="#tocs_lists" class="toc-h2 toc-link" data-title="">Lists</a>
  1685. </li>
  1686. <li>
  1687. <a href="#tocs_listswiplimit" class="toc-h2 toc-link" data-title="">ListsWiplimit</a>
  1688. </li>
  1689. <li>
  1690. <a href="#tocs_swimlanes" class="toc-h2 toc-link" data-title="">Swimlanes</a>
  1691. </li>
  1692. <li>
  1693. <a href="#tocs_users" class="toc-h2 toc-link" data-title="">Users</a>
  1694. </li>
  1695. <li>
  1696. <a href="#tocs_usersprofile" class="toc-h2 toc-link" data-title="">UsersProfile</a>
  1697. </li>
  1698. <li>
  1699. <a href="#tocs_userssessiondata" class="toc-h2 toc-link" data-title="">UsersSessiondata</a>
  1700. </li>
  1701. <li>
  1702. <a href="#tocs_usersorgs" class="toc-h2 toc-link" data-title="">UsersOrgs</a>
  1703. </li>
  1704. <li>
  1705. <a href="#tocs_usersteams" class="toc-h2 toc-link" data-title="">UsersTeams</a>
  1706. </li>
  1707. <li>
  1708. <a href="#tocs_usersemails" class="toc-h2 toc-link" data-title="">UsersEmails</a>
  1709. </li>
  1710. <li>
  1711. <a href="#tocs_usersprofilemoveandcopydialog" class="toc-h2 toc-link" data-title="">UsersProfileMoveandcopydialog</a>
  1712. </li>
  1713. <li>
  1714. <a href="#tocs_usersprofilemovechecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileMovechecklistdialog</a>
  1715. </li>
  1716. <li>
  1717. <a href="#tocs_usersprofilecopychecklistdialog" class="toc-h2 toc-link" data-title="">UsersProfileCopychecklistdialog</a>
  1718. </li>
  1719. <li>
  1720. <a href="#tocs_usersprofilenotifications" class="toc-h2 toc-link" data-title="">UsersProfileNotifications</a>
  1721. </li>
  1722. </ul>
  1723. </li>
  1724. </ul>
  1725. </div>
  1726. <ul class="toc-footer">
  1727. </ul>
  1728. </div>
  1729. <div class="page-wrapper">
  1730. <div class="dark-box"></div>
  1731. <div class="content">
  1732. <h1 id="wekan-rest-api">Wekan REST API v6.49</h1>
  1733. <blockquote>
  1734. <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>
  1735. </blockquote>
  1736. <p>The REST API allows you to control and extend Wekan with ease.</p>
  1737. <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>
  1738. <blockquote>
  1739. <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>
  1740. </blockquote>
  1741. <h1 id="production-security-concerns">Production Security Concerns</h1>
  1742. <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>
  1743. <ul>
  1744. <li>Only call via HTTPS</li>
  1745. <li>Implement a timed authorization token expiration strategy</li>
  1746. <li>Ensure the calling user only has permissions for what they are calling and no more</li>
  1747. </ul>
  1748. <h1 id="authentication">Authentication</h1>
  1749. <ul>
  1750. <li>API Key (UserSecurity)
  1751. <ul>
  1752. <li>Parameter Name: <strong>Authorization</strong>, in: header.</li>
  1753. </ul>
  1754. </li>
  1755. </ul>
  1756. <h1 id="wekan-rest-api-login">Login</h1>
  1757. <h2 id="login">login</h2>
  1758. <p><a id="opIdlogin"></a></p>
  1759. <blockquote>
  1760. <p>Code samples</p>
  1761. </blockquote>
  1762. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  1763. curl -X POST /users/login \
  1764. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  1765. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  1766. </code></pre>
  1767. <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>
  1768. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  1769. <span class="hljs-keyword">Accept</span>: */*
  1770. </span></code></pre>
  1771. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  1772. &quot;username&quot;: &quot;string&quot;,
  1773. &quot;password&quot;: &quot;pa$$word&quot;
  1774. }&#x27;</span>;
  1775. <span class="hljs-keyword">const</span> headers = {
  1776. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1777. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1778. };
  1779. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1780. {
  1781. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1782. <span class="hljs-attr">body</span>: inputBody,
  1783. <span class="hljs-attr">headers</span>: headers
  1784. })
  1785. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1786. <span class="hljs-keyword">return</span> res.json();
  1787. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1788. <span class="hljs-built_in">console</span>.log(body);
  1789. });
  1790. </code></pre>
  1791. <pre class="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>);
  1792. <span class="hljs-keyword">const</span> inputBody = {
  1793. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  1794. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>
  1795. };
  1796. <span class="hljs-keyword">const</span> headers = {
  1797. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1798. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  1799. };
  1800. fetch(<span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1801. {
  1802. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  1803. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  1804. <span class="hljs-attr">headers</span>: headers
  1805. })
  1806. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  1807. <span class="hljs-keyword">return</span> res.json();
  1808. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  1809. <span class="hljs-built_in">console</span>.log(body);
  1810. });
  1811. </code></pre>
  1812. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  1813. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  1814. headers = {
  1815. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1816. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  1817. }
  1818. result = RestClient.post <span class="hljs-string">&#x27;/users/login&#x27;</span>,
  1819. <span class="hljs-symbol">params:</span> {
  1820. }, <span class="hljs-symbol">headers:</span> headers
  1821. p JSON.parse(result)
  1822. </code></pre>
  1823. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  1824. headers = {
  1825. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1826. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  1827. }
  1828. r = requests.post(<span class="hljs-string">&#x27;/users/login&#x27;</span>, headers = headers)
  1829. <span class="hljs-built_in">print</span>(r.json())
  1830. </code></pre>
  1831. <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>);
  1832. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  1833. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  1834. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  1835. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  1836. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  1837. String inputLine;
  1838. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  1839. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  1840. response.append(inputLine);
  1841. }
  1842. in.close();
  1843. System.out.println(response.toString());
  1844. </code></pre>
  1845. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  1846. <span class="hljs-keyword">import</span> (
  1847. <span class="hljs-string">&quot;bytes&quot;</span>
  1848. <span class="hljs-string">&quot;net/http&quot;</span>
  1849. )
  1850. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  1851. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  1852. <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>},
  1853. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  1854. }
  1855. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  1856. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/login&quot;</span>, data)
  1857. req.Header = headers
  1858. client := &amp;http.Client{}
  1859. resp, err := client.Do(req)
  1860. <span class="hljs-comment">// ...</span>
  1861. }
  1862. </code></pre>
  1863. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  1864. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  1865. );
  1866. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  1867. <span class="hljs-comment">// Define array of request body.</span>
  1868. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  1869. <span class="hljs-keyword">try</span> {
  1870. <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>(
  1871. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  1872. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  1873. )
  1874. );
  1875. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  1876. }
  1877. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  1878. <span class="hljs-comment">// handle exception or api errors.</span>
  1879. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  1880. }
  1881. <span class="hljs-comment">// ...</span>
  1882. </code></pre>
  1883. <p><code>POST /users/login</code></p>
  1884. <p><em>Login with REST API</em></p>
  1885. <blockquote>
  1886. <p>Body parameter</p>
  1887. </blockquote>
  1888. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  1889. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  1890. </code></pre>
  1891. <h3 id="login-parameters">Parameters</h3>
  1892. <table>
  1893. <thead>
  1894. <tr>
  1895. <th>Name</th>
  1896. <th>In</th>
  1897. <th>Type</th>
  1898. <th>Required</th>
  1899. <th>Description</th>
  1900. </tr>
  1901. </thead>
  1902. <tbody>
  1903. <tr>
  1904. <td>body</td>
  1905. <td>body</td>
  1906. <td>object</td>
  1907. <td>true</td>
  1908. <td>none</td>
  1909. </tr>
  1910. <tr>
  1911. <td>» username</td>
  1912. <td>body</td>
  1913. <td>string</td>
  1914. <td>true</td>
  1915. <td>Your username</td>
  1916. </tr>
  1917. <tr>
  1918. <td>» password</td>
  1919. <td>body</td>
  1920. <td>string(password)</td>
  1921. <td>true</td>
  1922. <td>Your password</td>
  1923. </tr>
  1924. </tbody>
  1925. </table>
  1926. <blockquote>
  1927. <p>Example responses</p>
  1928. </blockquote>
  1929. <blockquote>
  1930. <p>200 Response</p>
  1931. </blockquote>
  1932. <h3 id="login-responses">Responses</h3>
  1933. <table>
  1934. <thead>
  1935. <tr>
  1936. <th>Status</th>
  1937. <th>Meaning</th>
  1938. <th>Description</th>
  1939. <th>Schema</th>
  1940. </tr>
  1941. </thead>
  1942. <tbody>
  1943. <tr>
  1944. <td>200</td>
  1945. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  1946. <td>Successful authentication</td>
  1947. <td>Inline</td>
  1948. </tr>
  1949. <tr>
  1950. <td>400</td>
  1951. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  1952. <td>Error in authentication</td>
  1953. <td>Inline</td>
  1954. </tr>
  1955. <tr>
  1956. <td>default</td>
  1957. <td>Default</td>
  1958. <td>Error in authentication</td>
  1959. <td>None</td>
  1960. </tr>
  1961. </tbody>
  1962. </table>
  1963. <h3 id="login-responseschema">Response Schema</h3>
  1964. <p>Status Code <strong>200</strong></p>
  1965. <table>
  1966. <thead>
  1967. <tr>
  1968. <th>Name</th>
  1969. <th>Type</th>
  1970. <th>Required</th>
  1971. <th>Restrictions</th>
  1972. <th>Description</th>
  1973. </tr>
  1974. </thead>
  1975. <tbody>
  1976. <tr>
  1977. <td>» id</td>
  1978. <td>string</td>
  1979. <td>false</td>
  1980. <td>none</td>
  1981. <td>none</td>
  1982. </tr>
  1983. <tr>
  1984. <td>» token</td>
  1985. <td>string</td>
  1986. <td>false</td>
  1987. <td>none</td>
  1988. <td>none</td>
  1989. </tr>
  1990. <tr>
  1991. <td>» tokenExpires</td>
  1992. <td>string</td>
  1993. <td>false</td>
  1994. <td>none</td>
  1995. <td>none</td>
  1996. </tr>
  1997. </tbody>
  1998. </table>
  1999. <p>Status Code <strong>400</strong></p>
  2000. <table>
  2001. <thead>
  2002. <tr>
  2003. <th>Name</th>
  2004. <th>Type</th>
  2005. <th>Required</th>
  2006. <th>Restrictions</th>
  2007. <th>Description</th>
  2008. </tr>
  2009. </thead>
  2010. <tbody>
  2011. <tr>
  2012. <td>» error</td>
  2013. <td>number</td>
  2014. <td>false</td>
  2015. <td>none</td>
  2016. <td>none</td>
  2017. </tr>
  2018. <tr>
  2019. <td>» reason</td>
  2020. <td>string</td>
  2021. <td>false</td>
  2022. <td>none</td>
  2023. <td>none</td>
  2024. </tr>
  2025. </tbody>
  2026. </table>
  2027. <aside class="success">
  2028. This operation does not require authentication
  2029. </aside>
  2030. <h2 id="register">register</h2>
  2031. <p><a id="opIdregister"></a></p>
  2032. <blockquote>
  2033. <p>Code samples</p>
  2034. </blockquote>
  2035. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2036. curl -X POST /users/register \
  2037. -H <span class="hljs-string">&#x27;Content-Type: application/x-www-form-urlencoded&#x27;</span> \
  2038. -H <span class="hljs-string">&#x27;Accept: */*&#x27;</span>
  2039. </code></pre>
  2040. <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>
  2041. <span class="ada">Content-<span class="hljs-keyword">Type</span>: application/x-www-form-urlencoded
  2042. <span class="hljs-keyword">Accept</span>: */*
  2043. </span></code></pre>
  2044. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2045. &quot;username&quot;: &quot;string&quot;,
  2046. &quot;password&quot;: &quot;pa$$word&quot;,
  2047. &quot;email&quot;: &quot;string&quot;
  2048. }&#x27;</span>;
  2049. <span class="hljs-keyword">const</span> headers = {
  2050. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2051. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2052. };
  2053. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2054. {
  2055. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2056. <span class="hljs-attr">body</span>: inputBody,
  2057. <span class="hljs-attr">headers</span>: headers
  2058. })
  2059. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2060. <span class="hljs-keyword">return</span> res.json();
  2061. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2062. <span class="hljs-built_in">console</span>.log(body);
  2063. });
  2064. </code></pre>
  2065. <pre class="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>);
  2066. <span class="hljs-keyword">const</span> inputBody = {
  2067. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2068. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;pa$$word&quot;</span>,
  2069. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2070. };
  2071. <span class="hljs-keyword">const</span> headers = {
  2072. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2073. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;*/*&#x27;</span>
  2074. };
  2075. fetch(<span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2076. {
  2077. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2078. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2079. <span class="hljs-attr">headers</span>: headers
  2080. })
  2081. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2082. <span class="hljs-keyword">return</span> res.json();
  2083. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2084. <span class="hljs-built_in">console</span>.log(body);
  2085. });
  2086. </code></pre>
  2087. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2088. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2089. headers = {
  2090. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2091. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>
  2092. }
  2093. result = RestClient.post <span class="hljs-string">&#x27;/users/register&#x27;</span>,
  2094. <span class="hljs-symbol">params:</span> {
  2095. }, <span class="hljs-symbol">headers:</span> headers
  2096. p JSON.parse(result)
  2097. </code></pre>
  2098. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2099. headers = {
  2100. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2101. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;*/*&#x27;</span>
  2102. }
  2103. r = requests.post(<span class="hljs-string">&#x27;/users/register&#x27;</span>, headers = headers)
  2104. <span class="hljs-built_in">print</span>(r.json())
  2105. </code></pre>
  2106. <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>);
  2107. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2108. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2109. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2110. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2111. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2112. String inputLine;
  2113. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2114. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2115. response.append(inputLine);
  2116. }
  2117. in.close();
  2118. System.out.println(response.toString());
  2119. </code></pre>
  2120. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2121. <span class="hljs-keyword">import</span> (
  2122. <span class="hljs-string">&quot;bytes&quot;</span>
  2123. <span class="hljs-string">&quot;net/http&quot;</span>
  2124. )
  2125. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2126. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2127. <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>},
  2128. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;*/*&quot;</span>},
  2129. }
  2130. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2131. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/users/register&quot;</span>, data)
  2132. req.Header = headers
  2133. client := &amp;http.Client{}
  2134. resp, err := client.Do(req)
  2135. <span class="hljs-comment">// ...</span>
  2136. }
  2137. </code></pre>
  2138. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/x-www-form-urlencoded&#x27;</span>,
  2139. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;*/*&#x27;</span>,
  2140. );
  2141. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2142. <span class="hljs-comment">// Define array of request body.</span>
  2143. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2144. <span class="hljs-keyword">try</span> {
  2145. <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>(
  2146. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2147. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2148. )
  2149. );
  2150. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2151. }
  2152. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2153. <span class="hljs-comment">// handle exception or api errors.</span>
  2154. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2155. }
  2156. <span class="hljs-comment">// ...</span>
  2157. </code></pre>
  2158. <p><code>POST /users/register</code></p>
  2159. <p><em>Register with REST API</em></p>
  2160. <p>Notes:</p>
  2161. <ul>
  2162. <li>You will need to provide the token for any of the authenticated methods.</li>
  2163. </ul>
  2164. <blockquote>
  2165. <p>Body parameter</p>
  2166. </blockquote>
  2167. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  2168. <span class="hljs-attr">password:</span> <span class="hljs-string">pa$$word</span>
  2169. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  2170. </code></pre>
  2171. <h3 id="register-parameters">Parameters</h3>
  2172. <table>
  2173. <thead>
  2174. <tr>
  2175. <th>Name</th>
  2176. <th>In</th>
  2177. <th>Type</th>
  2178. <th>Required</th>
  2179. <th>Description</th>
  2180. </tr>
  2181. </thead>
  2182. <tbody>
  2183. <tr>
  2184. <td>body</td>
  2185. <td>body</td>
  2186. <td>object</td>
  2187. <td>true</td>
  2188. <td>none</td>
  2189. </tr>
  2190. <tr>
  2191. <td>» username</td>
  2192. <td>body</td>
  2193. <td>string</td>
  2194. <td>true</td>
  2195. <td>Your username</td>
  2196. </tr>
  2197. <tr>
  2198. <td>» password</td>
  2199. <td>body</td>
  2200. <td>string(password)</td>
  2201. <td>true</td>
  2202. <td>Your password</td>
  2203. </tr>
  2204. <tr>
  2205. <td>» email</td>
  2206. <td>body</td>
  2207. <td>string</td>
  2208. <td>true</td>
  2209. <td>Your email</td>
  2210. </tr>
  2211. </tbody>
  2212. </table>
  2213. <blockquote>
  2214. <p>Example responses</p>
  2215. </blockquote>
  2216. <blockquote>
  2217. <p>200 Response</p>
  2218. </blockquote>
  2219. <h3 id="register-responses">Responses</h3>
  2220. <table>
  2221. <thead>
  2222. <tr>
  2223. <th>Status</th>
  2224. <th>Meaning</th>
  2225. <th>Description</th>
  2226. <th>Schema</th>
  2227. </tr>
  2228. </thead>
  2229. <tbody>
  2230. <tr>
  2231. <td>200</td>
  2232. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2233. <td>Successful registration</td>
  2234. <td>Inline</td>
  2235. </tr>
  2236. <tr>
  2237. <td>400</td>
  2238. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td>
  2239. <td>Error in registration</td>
  2240. <td>Inline</td>
  2241. </tr>
  2242. <tr>
  2243. <td>default</td>
  2244. <td>Default</td>
  2245. <td>Error in registration</td>
  2246. <td>None</td>
  2247. </tr>
  2248. </tbody>
  2249. </table>
  2250. <h3 id="register-responseschema">Response Schema</h3>
  2251. <p>Status Code <strong>200</strong></p>
  2252. <table>
  2253. <thead>
  2254. <tr>
  2255. <th>Name</th>
  2256. <th>Type</th>
  2257. <th>Required</th>
  2258. <th>Restrictions</th>
  2259. <th>Description</th>
  2260. </tr>
  2261. </thead>
  2262. <tbody>
  2263. <tr>
  2264. <td>» id</td>
  2265. <td>string</td>
  2266. <td>false</td>
  2267. <td>none</td>
  2268. <td>none</td>
  2269. </tr>
  2270. <tr>
  2271. <td>» token</td>
  2272. <td>string</td>
  2273. <td>false</td>
  2274. <td>none</td>
  2275. <td>none</td>
  2276. </tr>
  2277. <tr>
  2278. <td>» tokenExpires</td>
  2279. <td>string</td>
  2280. <td>false</td>
  2281. <td>none</td>
  2282. <td>none</td>
  2283. </tr>
  2284. </tbody>
  2285. </table>
  2286. <p>Status Code <strong>400</strong></p>
  2287. <table>
  2288. <thead>
  2289. <tr>
  2290. <th>Name</th>
  2291. <th>Type</th>
  2292. <th>Required</th>
  2293. <th>Restrictions</th>
  2294. <th>Description</th>
  2295. </tr>
  2296. </thead>
  2297. <tbody>
  2298. <tr>
  2299. <td>» error</td>
  2300. <td>number</td>
  2301. <td>false</td>
  2302. <td>none</td>
  2303. <td>none</td>
  2304. </tr>
  2305. <tr>
  2306. <td>» reason</td>
  2307. <td>string</td>
  2308. <td>false</td>
  2309. <td>none</td>
  2310. <td>none</td>
  2311. </tr>
  2312. </tbody>
  2313. </table>
  2314. <aside class="success">
  2315. This operation does not require authentication
  2316. </aside>
  2317. <h1 id="wekan-rest-api-boards">Boards</h1>
  2318. <h2 id="get_public_boards">get_public_boards</h2>
  2319. <p><a id="opIdget_public_boards"></a></p>
  2320. <blockquote>
  2321. <p>Code samples</p>
  2322. </blockquote>
  2323. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2324. curl -X GET /api/boards \
  2325. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2326. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2327. </code></pre>
  2328. <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>
  2329. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2330. </span></code></pre>
  2331. <pre class="highlight tab tab-javascript"><code>
  2332. <span class="hljs-keyword">const</span> headers = {
  2333. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2334. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2335. };
  2336. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2337. {
  2338. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2339. <span class="hljs-attr">headers</span>: headers
  2340. })
  2341. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2342. <span class="hljs-keyword">return</span> res.json();
  2343. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2344. <span class="hljs-built_in">console</span>.log(body);
  2345. });
  2346. </code></pre>
  2347. <pre class="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>);
  2348. <span class="hljs-keyword">const</span> headers = {
  2349. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2350. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2351. };
  2352. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2353. {
  2354. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2355. <span class="hljs-attr">headers</span>: headers
  2356. })
  2357. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2358. <span class="hljs-keyword">return</span> res.json();
  2359. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2360. <span class="hljs-built_in">console</span>.log(body);
  2361. });
  2362. </code></pre>
  2363. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2364. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2365. headers = {
  2366. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2367. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2368. }
  2369. result = RestClient.get <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2370. <span class="hljs-symbol">params:</span> {
  2371. }, <span class="hljs-symbol">headers:</span> headers
  2372. p JSON.parse(result)
  2373. </code></pre>
  2374. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2375. headers = {
  2376. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2377. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2378. }
  2379. r = requests.get(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2380. <span class="hljs-built_in">print</span>(r.json())
  2381. </code></pre>
  2382. <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>);
  2383. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2384. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2385. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2386. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2387. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2388. String inputLine;
  2389. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2390. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2391. response.append(inputLine);
  2392. }
  2393. in.close();
  2394. System.out.println(response.toString());
  2395. </code></pre>
  2396. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2397. <span class="hljs-keyword">import</span> (
  2398. <span class="hljs-string">&quot;bytes&quot;</span>
  2399. <span class="hljs-string">&quot;net/http&quot;</span>
  2400. )
  2401. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2402. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2403. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2404. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2405. }
  2406. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2407. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2408. req.Header = headers
  2409. client := &amp;http.Client{}
  2410. resp, err := client.Do(req)
  2411. <span class="hljs-comment">// ...</span>
  2412. }
  2413. </code></pre>
  2414. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2415. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2416. );
  2417. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2418. <span class="hljs-comment">// Define array of request body.</span>
  2419. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2420. <span class="hljs-keyword">try</span> {
  2421. <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>(
  2422. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2423. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2424. )
  2425. );
  2426. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2427. }
  2428. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2429. <span class="hljs-comment">// handle exception or api errors.</span>
  2430. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2431. }
  2432. <span class="hljs-comment">// ...</span>
  2433. </code></pre>
  2434. <p><code>GET /api/boards</code></p>
  2435. <p><em>Get all public boards</em></p>
  2436. <blockquote>
  2437. <p>Example responses</p>
  2438. </blockquote>
  2439. <blockquote>
  2440. <p>200 Response</p>
  2441. </blockquote>
  2442. <pre class="highlight tab tab-json"><code>[
  2443. {
  2444. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2445. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2446. }
  2447. ]
  2448. </code></pre>
  2449. <h3 id="get_public_boards-responses">Responses</h3>
  2450. <table>
  2451. <thead>
  2452. <tr>
  2453. <th>Status</th>
  2454. <th>Meaning</th>
  2455. <th>Description</th>
  2456. <th>Schema</th>
  2457. </tr>
  2458. </thead>
  2459. <tbody>
  2460. <tr>
  2461. <td>200</td>
  2462. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2463. <td>200 response</td>
  2464. <td>Inline</td>
  2465. </tr>
  2466. </tbody>
  2467. </table>
  2468. <h3 id="get_public_boards-responseschema">Response Schema</h3>
  2469. <p>Status Code <strong>200</strong></p>
  2470. <table>
  2471. <thead>
  2472. <tr>
  2473. <th>Name</th>
  2474. <th>Type</th>
  2475. <th>Required</th>
  2476. <th>Restrictions</th>
  2477. <th>Description</th>
  2478. </tr>
  2479. </thead>
  2480. <tbody>
  2481. <tr>
  2482. <td>» _id</td>
  2483. <td>string</td>
  2484. <td>false</td>
  2485. <td>none</td>
  2486. <td>none</td>
  2487. </tr>
  2488. <tr>
  2489. <td>» title</td>
  2490. <td>string</td>
  2491. <td>false</td>
  2492. <td>none</td>
  2493. <td>none</td>
  2494. </tr>
  2495. </tbody>
  2496. </table>
  2497. <aside class="warning">
  2498. To perform this operation, you must be authenticated by means of one of the following methods:
  2499. UserSecurity
  2500. </aside>
  2501. <h2 id="new_board">new_board</h2>
  2502. <p><a id="opIdnew_board"></a></p>
  2503. <blockquote>
  2504. <p>Code samples</p>
  2505. </blockquote>
  2506. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2507. curl -X POST /api/boards \
  2508. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  2509. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2510. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2511. </code></pre>
  2512. <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>
  2513. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  2514. Accept: application/json
  2515. </span></code></pre>
  2516. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  2517. &quot;title&quot;: &quot;string&quot;,
  2518. &quot;owner&quot;: &quot;string&quot;,
  2519. &quot;isAdmin&quot;: true,
  2520. &quot;isActive&quot;: true,
  2521. &quot;isNoComments&quot;: true,
  2522. &quot;isCommentOnly&quot;: true,
  2523. &quot;isWorker&quot;: true,
  2524. &quot;permission&quot;: &quot;string&quot;,
  2525. &quot;color&quot;: &quot;string&quot;
  2526. }&#x27;</span>;
  2527. <span class="hljs-keyword">const</span> headers = {
  2528. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2529. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2530. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2531. };
  2532. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2533. {
  2534. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2535. <span class="hljs-attr">body</span>: inputBody,
  2536. <span class="hljs-attr">headers</span>: headers
  2537. })
  2538. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2539. <span class="hljs-keyword">return</span> res.json();
  2540. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2541. <span class="hljs-built_in">console</span>.log(body);
  2542. });
  2543. </code></pre>
  2544. <pre class="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>);
  2545. <span class="hljs-keyword">const</span> inputBody = {
  2546. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2547. <span class="hljs-string">&quot;owner&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2548. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2549. <span class="hljs-string">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2550. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2551. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2552. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>,
  2553. <span class="hljs-string">&quot;permission&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2554. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2555. };
  2556. <span class="hljs-keyword">const</span> headers = {
  2557. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2558. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2559. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2560. };
  2561. fetch(<span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2562. {
  2563. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  2564. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  2565. <span class="hljs-attr">headers</span>: headers
  2566. })
  2567. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2568. <span class="hljs-keyword">return</span> res.json();
  2569. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2570. <span class="hljs-built_in">console</span>.log(body);
  2571. });
  2572. </code></pre>
  2573. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2574. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2575. headers = {
  2576. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2577. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2578. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2579. }
  2580. result = RestClient.post <span class="hljs-string">&#x27;/api/boards&#x27;</span>,
  2581. <span class="hljs-symbol">params:</span> {
  2582. }, <span class="hljs-symbol">headers:</span> headers
  2583. p JSON.parse(result)
  2584. </code></pre>
  2585. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2586. headers = {
  2587. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2588. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2589. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2590. }
  2591. r = requests.post(<span class="hljs-string">&#x27;/api/boards&#x27;</span>, headers = headers)
  2592. <span class="hljs-built_in">print</span>(r.json())
  2593. </code></pre>
  2594. <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>);
  2595. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2596. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  2597. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2598. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2599. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2600. String inputLine;
  2601. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2602. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2603. response.append(inputLine);
  2604. }
  2605. in.close();
  2606. System.out.println(response.toString());
  2607. </code></pre>
  2608. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2609. <span class="hljs-keyword">import</span> (
  2610. <span class="hljs-string">&quot;bytes&quot;</span>
  2611. <span class="hljs-string">&quot;net/http&quot;</span>
  2612. )
  2613. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2614. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2615. <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>},
  2616. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2617. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2618. }
  2619. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2620. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards&quot;</span>, data)
  2621. req.Header = headers
  2622. client := &amp;http.Client{}
  2623. resp, err := client.Do(req)
  2624. <span class="hljs-comment">// ...</span>
  2625. }
  2626. </code></pre>
  2627. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  2628. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2629. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2630. );
  2631. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2632. <span class="hljs-comment">// Define array of request body.</span>
  2633. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2634. <span class="hljs-keyword">try</span> {
  2635. <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>(
  2636. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2637. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2638. )
  2639. );
  2640. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2641. }
  2642. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2643. <span class="hljs-comment">// handle exception or api errors.</span>
  2644. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2645. }
  2646. <span class="hljs-comment">// ...</span>
  2647. </code></pre>
  2648. <p><code>POST /api/boards</code></p>
  2649. <p><em>Create a board</em></p>
  2650. <p>This allows to create a board.</p>
  2651. <p>The color has to be chosen between <code>belize</code>, <code>nephritis</code>, <code>pomegranate</code>,
  2652. <code>pumpkin</code>, <code>wisteria</code>, <code>moderatepink</code>, <code>strongcyan</code>,
  2653. <code>limegreen</code>, <code>midnight</code>, <code>dark</code>, <code>relax</code>, <code>corteza</code>:</p>
  2654. <img src="https://wekan.github.io/board-colors.png" alt="Wekan logo" />
  2655. <blockquote>
  2656. <p>Body parameter</p>
  2657. </blockquote>
  2658. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  2659. <span class="hljs-attr">owner:</span> <span class="hljs-string">string</span>
  2660. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  2661. <span class="hljs-attr">isActive:</span> <span class="hljs-literal">true</span>
  2662. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  2663. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  2664. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  2665. <span class="hljs-attr">permission:</span> <span class="hljs-string">string</span>
  2666. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  2667. </code></pre>
  2668. <h3 id="new_board-parameters">Parameters</h3>
  2669. <table>
  2670. <thead>
  2671. <tr>
  2672. <th>Name</th>
  2673. <th>In</th>
  2674. <th>Type</th>
  2675. <th>Required</th>
  2676. <th>Description</th>
  2677. </tr>
  2678. </thead>
  2679. <tbody>
  2680. <tr>
  2681. <td>body</td>
  2682. <td>body</td>
  2683. <td>object</td>
  2684. <td>true</td>
  2685. <td>none</td>
  2686. </tr>
  2687. <tr>
  2688. <td>» title</td>
  2689. <td>body</td>
  2690. <td>string</td>
  2691. <td>true</td>
  2692. <td>the new title of the board</td>
  2693. </tr>
  2694. <tr>
  2695. <td>» owner</td>
  2696. <td>body</td>
  2697. <td>string</td>
  2698. <td>true</td>
  2699. <td>&quot;ABCDE12345&quot; &lt;= User ID in Wekan.</td>
  2700. </tr>
  2701. <tr>
  2702. <td>» isAdmin</td>
  2703. <td>body</td>
  2704. <td>boolean</td>
  2705. <td>false</td>
  2706. <td>is the owner an admin of the board (default true)</td>
  2707. </tr>
  2708. <tr>
  2709. <td>» isActive</td>
  2710. <td>body</td>
  2711. <td>boolean</td>
  2712. <td>false</td>
  2713. <td>is the board active (default true)</td>
  2714. </tr>
  2715. <tr>
  2716. <td>» isNoComments</td>
  2717. <td>body</td>
  2718. <td>boolean</td>
  2719. <td>false</td>
  2720. <td>disable comments (default false)</td>
  2721. </tr>
  2722. <tr>
  2723. <td>» isCommentOnly</td>
  2724. <td>body</td>
  2725. <td>boolean</td>
  2726. <td>false</td>
  2727. <td>only enable comments (default false)</td>
  2728. </tr>
  2729. <tr>
  2730. <td>» isWorker</td>
  2731. <td>body</td>
  2732. <td>boolean</td>
  2733. <td>false</td>
  2734. <td>only move cards, assign himself to card and comment (default false)</td>
  2735. </tr>
  2736. <tr>
  2737. <td>» permission</td>
  2738. <td>body</td>
  2739. <td>string</td>
  2740. <td>false</td>
  2741. <td>&quot;private&quot; board &lt;== Set to &quot;public&quot; if you</td>
  2742. </tr>
  2743. <tr>
  2744. <td>» color</td>
  2745. <td>body</td>
  2746. <td>string</td>
  2747. <td>false</td>
  2748. <td>the color of the board</td>
  2749. </tr>
  2750. </tbody>
  2751. </table>
  2752. <h4 id="detailed-descriptions">Detailed descriptions</h4>
  2753. <p><strong>» owner</strong>: &quot;ABCDE12345&quot; &lt;= User ID in Wekan.
  2754. (Not username or email)</p>
  2755. <p><strong>» permission</strong>: &quot;private&quot; board &lt;== Set to &quot;public&quot; if you
  2756. want public Wekan board</p>
  2757. <blockquote>
  2758. <p>Example responses</p>
  2759. </blockquote>
  2760. <blockquote>
  2761. <p>200 Response</p>
  2762. </blockquote>
  2763. <pre class="highlight tab tab-json"><code>{
  2764. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2765. <span class="hljs-attr">&quot;defaultSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  2766. }
  2767. </code></pre>
  2768. <h3 id="new_board-responses">Responses</h3>
  2769. <table>
  2770. <thead>
  2771. <tr>
  2772. <th>Status</th>
  2773. <th>Meaning</th>
  2774. <th>Description</th>
  2775. <th>Schema</th>
  2776. </tr>
  2777. </thead>
  2778. <tbody>
  2779. <tr>
  2780. <td>200</td>
  2781. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  2782. <td>200 response</td>
  2783. <td>Inline</td>
  2784. </tr>
  2785. </tbody>
  2786. </table>
  2787. <h3 id="new_board-responseschema">Response Schema</h3>
  2788. <p>Status Code <strong>200</strong></p>
  2789. <table>
  2790. <thead>
  2791. <tr>
  2792. <th>Name</th>
  2793. <th>Type</th>
  2794. <th>Required</th>
  2795. <th>Restrictions</th>
  2796. <th>Description</th>
  2797. </tr>
  2798. </thead>
  2799. <tbody>
  2800. <tr>
  2801. <td>» _id</td>
  2802. <td>string</td>
  2803. <td>false</td>
  2804. <td>none</td>
  2805. <td>none</td>
  2806. </tr>
  2807. <tr>
  2808. <td>» defaultSwimlaneId</td>
  2809. <td>string</td>
  2810. <td>false</td>
  2811. <td>none</td>
  2812. <td>none</td>
  2813. </tr>
  2814. </tbody>
  2815. </table>
  2816. <aside class="warning">
  2817. To perform this operation, you must be authenticated by means of one of the following methods:
  2818. UserSecurity
  2819. </aside>
  2820. <h2 id="get_board">get_board</h2>
  2821. <p><a id="opIdget_board"></a></p>
  2822. <blockquote>
  2823. <p>Code samples</p>
  2824. </blockquote>
  2825. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  2826. curl -X GET /api/boards/{board} \
  2827. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  2828. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  2829. </code></pre>
  2830. <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>
  2831. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  2832. </span></code></pre>
  2833. <pre class="highlight tab tab-javascript"><code>
  2834. <span class="hljs-keyword">const</span> headers = {
  2835. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2836. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2837. };
  2838. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2839. {
  2840. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2841. <span class="hljs-attr">headers</span>: headers
  2842. })
  2843. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2844. <span class="hljs-keyword">return</span> res.json();
  2845. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2846. <span class="hljs-built_in">console</span>.log(body);
  2847. });
  2848. </code></pre>
  2849. <pre class="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>);
  2850. <span class="hljs-keyword">const</span> headers = {
  2851. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  2852. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2853. };
  2854. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2855. {
  2856. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  2857. <span class="hljs-attr">headers</span>: headers
  2858. })
  2859. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  2860. <span class="hljs-keyword">return</span> res.json();
  2861. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  2862. <span class="hljs-built_in">console</span>.log(body);
  2863. });
  2864. </code></pre>
  2865. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  2866. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  2867. headers = {
  2868. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2869. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2870. }
  2871. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  2872. <span class="hljs-symbol">params:</span> {
  2873. }, <span class="hljs-symbol">headers:</span> headers
  2874. p JSON.parse(result)
  2875. </code></pre>
  2876. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  2877. headers = {
  2878. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2879. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  2880. }
  2881. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  2882. <span class="hljs-built_in">print</span>(r.json())
  2883. </code></pre>
  2884. <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>);
  2885. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  2886. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  2887. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  2888. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  2889. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  2890. String inputLine;
  2891. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  2892. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  2893. response.append(inputLine);
  2894. }
  2895. in.close();
  2896. System.out.println(response.toString());
  2897. </code></pre>
  2898. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  2899. <span class="hljs-keyword">import</span> (
  2900. <span class="hljs-string">&quot;bytes&quot;</span>
  2901. <span class="hljs-string">&quot;net/http&quot;</span>
  2902. )
  2903. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  2904. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  2905. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  2906. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  2907. }
  2908. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  2909. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  2910. req.Header = headers
  2911. client := &amp;http.Client{}
  2912. resp, err := client.Do(req)
  2913. <span class="hljs-comment">// ...</span>
  2914. }
  2915. </code></pre>
  2916. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  2917. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  2918. );
  2919. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  2920. <span class="hljs-comment">// Define array of request body.</span>
  2921. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  2922. <span class="hljs-keyword">try</span> {
  2923. <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>(
  2924. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  2925. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  2926. )
  2927. );
  2928. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  2929. }
  2930. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  2931. <span class="hljs-comment">// handle exception or api errors.</span>
  2932. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  2933. }
  2934. <span class="hljs-comment">// ...</span>
  2935. </code></pre>
  2936. <p><code>GET /api/boards/{board}</code></p>
  2937. <p><em>Get the board with that particular ID</em></p>
  2938. <h3 id="get_board-parameters">Parameters</h3>
  2939. <table>
  2940. <thead>
  2941. <tr>
  2942. <th>Name</th>
  2943. <th>In</th>
  2944. <th>Type</th>
  2945. <th>Required</th>
  2946. <th>Description</th>
  2947. </tr>
  2948. </thead>
  2949. <tbody>
  2950. <tr>
  2951. <td>board</td>
  2952. <td>path</td>
  2953. <td>string</td>
  2954. <td>true</td>
  2955. <td>the ID of the board to retrieve the data</td>
  2956. </tr>
  2957. </tbody>
  2958. </table>
  2959. <h4 id="detailed-descriptions-2">Detailed descriptions</h4>
  2960. <p><strong>board</strong>: the ID of the board to retrieve the data</p>
  2961. <blockquote>
  2962. <p>Example responses</p>
  2963. </blockquote>
  2964. <blockquote>
  2965. <p>200 Response</p>
  2966. </blockquote>
  2967. <pre class="highlight tab tab-json"><code>{
  2968. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2969. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2970. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  2971. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2972. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2973. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2974. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  2975. <span class="hljs-attr">&quot;labels&quot;</span>: [
  2976. {
  2977. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2978. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2979. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  2980. }
  2981. ],
  2982. <span class="hljs-attr">&quot;members&quot;</span>: [
  2983. {
  2984. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2985. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  2986. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  2987. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  2988. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  2989. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  2990. }
  2991. ],
  2992. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  2993. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  2994. {
  2995. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2996. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  2997. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  2998. }
  2999. ],
  3000. <span class="hljs-attr">&quot;teams&quot;</span>: [
  3001. {
  3002. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3003. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3004. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  3005. }
  3006. ],
  3007. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  3008. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  3009. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  3010. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3011. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3012. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3013. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3014. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3015. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  3016. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  3017. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  3018. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  3019. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  3020. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  3021. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  3022. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3023. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  3024. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  3025. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  3026. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  3027. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  3028. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3029. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  3030. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  3031. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  3032. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  3033. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  3034. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  3035. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  3036. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  3037. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3038. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3039. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3040. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3041. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  3042. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  3043. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  3044. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  3045. }
  3046. </code></pre>
  3047. <h3 id="get_board-responses">Responses</h3>
  3048. <table>
  3049. <thead>
  3050. <tr>
  3051. <th>Status</th>
  3052. <th>Meaning</th>
  3053. <th>Description</th>
  3054. <th>Schema</th>
  3055. </tr>
  3056. </thead>
  3057. <tbody>
  3058. <tr>
  3059. <td>200</td>
  3060. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3061. <td>200 response</td>
  3062. <td><a href="#schemaboards">Boards</a></td>
  3063. </tr>
  3064. </tbody>
  3065. </table>
  3066. <aside class="warning">
  3067. To perform this operation, you must be authenticated by means of one of the following methods:
  3068. UserSecurity
  3069. </aside>
  3070. <h2 id="delete_board">delete_board</h2>
  3071. <p><a id="opIddelete_board"></a></p>
  3072. <blockquote>
  3073. <p>Code samples</p>
  3074. </blockquote>
  3075. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3076. curl -X DELETE /api/boards/{board} \
  3077. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3078. </code></pre>
  3079. <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>
  3080. </code></pre>
  3081. <pre class="highlight tab tab-javascript"><code>
  3082. <span class="hljs-keyword">const</span> headers = {
  3083. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3084. };
  3085. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3086. {
  3087. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3088. <span class="hljs-attr">headers</span>: headers
  3089. })
  3090. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3091. <span class="hljs-keyword">return</span> res.json();
  3092. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3093. <span class="hljs-built_in">console</span>.log(body);
  3094. });
  3095. </code></pre>
  3096. <pre class="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>);
  3097. <span class="hljs-keyword">const</span> headers = {
  3098. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3099. };
  3100. fetch(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3101. {
  3102. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  3103. <span class="hljs-attr">headers</span>: headers
  3104. })
  3105. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3106. <span class="hljs-keyword">return</span> res.json();
  3107. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3108. <span class="hljs-built_in">console</span>.log(body);
  3109. });
  3110. </code></pre>
  3111. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3112. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3113. headers = {
  3114. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3115. }
  3116. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>,
  3117. <span class="hljs-symbol">params:</span> {
  3118. }, <span class="hljs-symbol">headers:</span> headers
  3119. p JSON.parse(result)
  3120. </code></pre>
  3121. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3122. headers = {
  3123. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3124. }
  3125. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}&#x27;</span>, headers = headers)
  3126. <span class="hljs-built_in">print</span>(r.json())
  3127. </code></pre>
  3128. <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>);
  3129. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3130. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  3131. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3132. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3133. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3134. String inputLine;
  3135. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3136. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3137. response.append(inputLine);
  3138. }
  3139. in.close();
  3140. System.out.println(response.toString());
  3141. </code></pre>
  3142. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3143. <span class="hljs-keyword">import</span> (
  3144. <span class="hljs-string">&quot;bytes&quot;</span>
  3145. <span class="hljs-string">&quot;net/http&quot;</span>
  3146. )
  3147. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3148. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3149. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3150. }
  3151. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3152. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}&quot;</span>, data)
  3153. req.Header = headers
  3154. client := &amp;http.Client{}
  3155. resp, err := client.Do(req)
  3156. <span class="hljs-comment">// ...</span>
  3157. }
  3158. </code></pre>
  3159. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3160. );
  3161. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3162. <span class="hljs-comment">// Define array of request body.</span>
  3163. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3164. <span class="hljs-keyword">try</span> {
  3165. <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>(
  3166. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3167. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3168. )
  3169. );
  3170. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3171. }
  3172. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3173. <span class="hljs-comment">// handle exception or api errors.</span>
  3174. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3175. }
  3176. <span class="hljs-comment">// ...</span>
  3177. </code></pre>
  3178. <p><code>DELETE /api/boards/{board}</code></p>
  3179. <p><em>Delete a board</em></p>
  3180. <h3 id="delete_board-parameters">Parameters</h3>
  3181. <table>
  3182. <thead>
  3183. <tr>
  3184. <th>Name</th>
  3185. <th>In</th>
  3186. <th>Type</th>
  3187. <th>Required</th>
  3188. <th>Description</th>
  3189. </tr>
  3190. </thead>
  3191. <tbody>
  3192. <tr>
  3193. <td>board</td>
  3194. <td>path</td>
  3195. <td>string</td>
  3196. <td>true</td>
  3197. <td>the ID of the board</td>
  3198. </tr>
  3199. </tbody>
  3200. </table>
  3201. <h4 id="detailed-descriptions-3">Detailed descriptions</h4>
  3202. <p><strong>board</strong>: the ID of the board</p>
  3203. <h3 id="delete_board-responses">Responses</h3>
  3204. <table>
  3205. <thead>
  3206. <tr>
  3207. <th>Status</th>
  3208. <th>Meaning</th>
  3209. <th>Description</th>
  3210. <th>Schema</th>
  3211. </tr>
  3212. </thead>
  3213. <tbody>
  3214. <tr>
  3215. <td>200</td>
  3216. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3217. <td>200 response</td>
  3218. <td>None</td>
  3219. </tr>
  3220. </tbody>
  3221. </table>
  3222. <aside class="warning">
  3223. To perform this operation, you must be authenticated by means of one of the following methods:
  3224. UserSecurity
  3225. </aside>
  3226. <h2 id="get_board_attachments">get_board_attachments</h2>
  3227. <p><a id="opIdget_board_attachments"></a></p>
  3228. <blockquote>
  3229. <p>Code samples</p>
  3230. </blockquote>
  3231. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3232. curl -X GET /api/boards/{board}/attachments \
  3233. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3234. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3235. </code></pre>
  3236. <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>
  3237. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  3238. </span></code></pre>
  3239. <pre class="highlight tab tab-javascript"><code>
  3240. <span class="hljs-keyword">const</span> headers = {
  3241. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3242. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3243. };
  3244. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3245. {
  3246. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3247. <span class="hljs-attr">headers</span>: headers
  3248. })
  3249. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3250. <span class="hljs-keyword">return</span> res.json();
  3251. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3252. <span class="hljs-built_in">console</span>.log(body);
  3253. });
  3254. </code></pre>
  3255. <pre class="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>);
  3256. <span class="hljs-keyword">const</span> headers = {
  3257. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3258. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3259. };
  3260. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3261. {
  3262. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3263. <span class="hljs-attr">headers</span>: headers
  3264. })
  3265. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3266. <span class="hljs-keyword">return</span> res.json();
  3267. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3268. <span class="hljs-built_in">console</span>.log(body);
  3269. });
  3270. </code></pre>
  3271. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3272. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3273. headers = {
  3274. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3275. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3276. }
  3277. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>,
  3278. <span class="hljs-symbol">params:</span> {
  3279. }, <span class="hljs-symbol">headers:</span> headers
  3280. p JSON.parse(result)
  3281. </code></pre>
  3282. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3283. headers = {
  3284. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3285. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3286. }
  3287. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/attachments&#x27;</span>, headers = headers)
  3288. <span class="hljs-built_in">print</span>(r.json())
  3289. </code></pre>
  3290. <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>);
  3291. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3292. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3293. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3294. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3295. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3296. String inputLine;
  3297. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3298. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3299. response.append(inputLine);
  3300. }
  3301. in.close();
  3302. System.out.println(response.toString());
  3303. </code></pre>
  3304. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3305. <span class="hljs-keyword">import</span> (
  3306. <span class="hljs-string">&quot;bytes&quot;</span>
  3307. <span class="hljs-string">&quot;net/http&quot;</span>
  3308. )
  3309. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3310. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3311. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3312. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3313. }
  3314. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3315. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/attachments&quot;</span>, data)
  3316. req.Header = headers
  3317. client := &amp;http.Client{}
  3318. resp, err := client.Do(req)
  3319. <span class="hljs-comment">// ...</span>
  3320. }
  3321. </code></pre>
  3322. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3323. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3324. );
  3325. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3326. <span class="hljs-comment">// Define array of request body.</span>
  3327. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3328. <span class="hljs-keyword">try</span> {
  3329. <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>(
  3330. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3331. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3332. )
  3333. );
  3334. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3335. }
  3336. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3337. <span class="hljs-comment">// handle exception or api errors.</span>
  3338. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3339. }
  3340. <span class="hljs-comment">// ...</span>
  3341. </code></pre>
  3342. <p><code>GET /api/boards/{board}/attachments</code></p>
  3343. <p><em>Get the list of attachments of a board</em></p>
  3344. <h3 id="get_board_attachments-parameters">Parameters</h3>
  3345. <table>
  3346. <thead>
  3347. <tr>
  3348. <th>Name</th>
  3349. <th>In</th>
  3350. <th>Type</th>
  3351. <th>Required</th>
  3352. <th>Description</th>
  3353. </tr>
  3354. </thead>
  3355. <tbody>
  3356. <tr>
  3357. <td>board</td>
  3358. <td>path</td>
  3359. <td>string</td>
  3360. <td>true</td>
  3361. <td>the board ID</td>
  3362. </tr>
  3363. </tbody>
  3364. </table>
  3365. <h4 id="detailed-descriptions-4">Detailed descriptions</h4>
  3366. <p><strong>board</strong>: the board ID</p>
  3367. <blockquote>
  3368. <p>Example responses</p>
  3369. </blockquote>
  3370. <blockquote>
  3371. <p>200 Response</p>
  3372. </blockquote>
  3373. <pre class="highlight tab tab-json"><code>[
  3374. {
  3375. <span class="hljs-attr">&quot;attachmentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3376. <span class="hljs-attr">&quot;attachmentName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3377. <span class="hljs-attr">&quot;attachmentType&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3378. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3379. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  3380. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3381. }
  3382. ]
  3383. </code></pre>
  3384. <h3 id="get_board_attachments-responses">Responses</h3>
  3385. <table>
  3386. <thead>
  3387. <tr>
  3388. <th>Status</th>
  3389. <th>Meaning</th>
  3390. <th>Description</th>
  3391. <th>Schema</th>
  3392. </tr>
  3393. </thead>
  3394. <tbody>
  3395. <tr>
  3396. <td>200</td>
  3397. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3398. <td>200 response</td>
  3399. <td>Inline</td>
  3400. </tr>
  3401. </tbody>
  3402. </table>
  3403. <h3 id="get_board_attachments-responseschema">Response Schema</h3>
  3404. <p>Status Code <strong>200</strong></p>
  3405. <table>
  3406. <thead>
  3407. <tr>
  3408. <th>Name</th>
  3409. <th>Type</th>
  3410. <th>Required</th>
  3411. <th>Restrictions</th>
  3412. <th>Description</th>
  3413. </tr>
  3414. </thead>
  3415. <tbody>
  3416. <tr>
  3417. <td>» attachmentId</td>
  3418. <td>string</td>
  3419. <td>false</td>
  3420. <td>none</td>
  3421. <td>none</td>
  3422. </tr>
  3423. <tr>
  3424. <td>» attachmentName</td>
  3425. <td>string</td>
  3426. <td>false</td>
  3427. <td>none</td>
  3428. <td>none</td>
  3429. </tr>
  3430. <tr>
  3431. <td>» attachmentType</td>
  3432. <td>string</td>
  3433. <td>false</td>
  3434. <td>none</td>
  3435. <td>none</td>
  3436. </tr>
  3437. <tr>
  3438. <td>» cardId</td>
  3439. <td>string</td>
  3440. <td>false</td>
  3441. <td>none</td>
  3442. <td>none</td>
  3443. </tr>
  3444. <tr>
  3445. <td>» listId</td>
  3446. <td>string</td>
  3447. <td>false</td>
  3448. <td>none</td>
  3449. <td>none</td>
  3450. </tr>
  3451. <tr>
  3452. <td>» swimlaneId</td>
  3453. <td>string</td>
  3454. <td>false</td>
  3455. <td>none</td>
  3456. <td>none</td>
  3457. </tr>
  3458. </tbody>
  3459. </table>
  3460. <aside class="warning">
  3461. To perform this operation, you must be authenticated by means of one of the following methods:
  3462. UserSecurity
  3463. </aside>
  3464. <h2 id="exportjson">exportJson</h2>
  3465. <p><a id="opIdexportJson"></a></p>
  3466. <blockquote>
  3467. <p>Code samples</p>
  3468. </blockquote>
  3469. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3470. curl -X GET /api/boards/{board}/<span class="hljs-built_in">export</span> \
  3471. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3472. </code></pre>
  3473. <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>
  3474. </code></pre>
  3475. <pre class="highlight tab tab-javascript"><code>
  3476. <span class="hljs-keyword">const</span> headers = {
  3477. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3478. };
  3479. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3480. {
  3481. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3482. <span class="hljs-attr">headers</span>: headers
  3483. })
  3484. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3485. <span class="hljs-keyword">return</span> res.json();
  3486. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3487. <span class="hljs-built_in">console</span>.log(body);
  3488. });
  3489. </code></pre>
  3490. <pre class="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>);
  3491. <span class="hljs-keyword">const</span> headers = {
  3492. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3493. };
  3494. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3495. {
  3496. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  3497. <span class="hljs-attr">headers</span>: headers
  3498. })
  3499. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3500. <span class="hljs-keyword">return</span> res.json();
  3501. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3502. <span class="hljs-built_in">console</span>.log(body);
  3503. });
  3504. </code></pre>
  3505. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3506. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3507. headers = {
  3508. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3509. }
  3510. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>,
  3511. <span class="hljs-symbol">params:</span> {
  3512. }, <span class="hljs-symbol">headers:</span> headers
  3513. p JSON.parse(result)
  3514. </code></pre>
  3515. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3516. headers = {
  3517. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3518. }
  3519. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/export&#x27;</span>, headers = headers)
  3520. <span class="hljs-built_in">print</span>(r.json())
  3521. </code></pre>
  3522. <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>);
  3523. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3524. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  3525. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3526. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3527. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3528. String inputLine;
  3529. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3530. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3531. response.append(inputLine);
  3532. }
  3533. in.close();
  3534. System.out.println(response.toString());
  3535. </code></pre>
  3536. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3537. <span class="hljs-keyword">import</span> (
  3538. <span class="hljs-string">&quot;bytes&quot;</span>
  3539. <span class="hljs-string">&quot;net/http&quot;</span>
  3540. )
  3541. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3542. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3543. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3544. }
  3545. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3546. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/export&quot;</span>, data)
  3547. req.Header = headers
  3548. client := &amp;http.Client{}
  3549. resp, err := client.Do(req)
  3550. <span class="hljs-comment">// ...</span>
  3551. }
  3552. </code></pre>
  3553. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3554. );
  3555. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3556. <span class="hljs-comment">// Define array of request body.</span>
  3557. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3558. <span class="hljs-keyword">try</span> {
  3559. <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>(
  3560. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3561. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3562. )
  3563. );
  3564. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3565. }
  3566. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3567. <span class="hljs-comment">// handle exception or api errors.</span>
  3568. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3569. }
  3570. <span class="hljs-comment">// ...</span>
  3571. </code></pre>
  3572. <p><code>GET /api/boards/{board}/export</code></p>
  3573. <p><em>This route is used to export the board to a json file format.</em></p>
  3574. <p>If user is already logged-in, pass loginToken as param
  3575. &quot;authToken&quot;: '/api/boards/:boardId/export?authToken=:token'</p>
  3576. <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>
  3577. for detailed explanations</p>
  3578. <h3 id="exportjson-parameters">Parameters</h3>
  3579. <table>
  3580. <thead>
  3581. <tr>
  3582. <th>Name</th>
  3583. <th>In</th>
  3584. <th>Type</th>
  3585. <th>Required</th>
  3586. <th>Description</th>
  3587. </tr>
  3588. </thead>
  3589. <tbody>
  3590. <tr>
  3591. <td>board</td>
  3592. <td>path</td>
  3593. <td>string</td>
  3594. <td>true</td>
  3595. <td>the ID of the board we are exporting</td>
  3596. </tr>
  3597. </tbody>
  3598. </table>
  3599. <h4 id="detailed-descriptions-5">Detailed descriptions</h4>
  3600. <p><strong>board</strong>: the ID of the board we are exporting</p>
  3601. <h3 id="exportjson-responses">Responses</h3>
  3602. <table>
  3603. <thead>
  3604. <tr>
  3605. <th>Status</th>
  3606. <th>Meaning</th>
  3607. <th>Description</th>
  3608. <th>Schema</th>
  3609. </tr>
  3610. </thead>
  3611. <tbody>
  3612. <tr>
  3613. <td>200</td>
  3614. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3615. <td>200 response</td>
  3616. <td>None</td>
  3617. </tr>
  3618. </tbody>
  3619. </table>
  3620. <aside class="warning">
  3621. To perform this operation, you must be authenticated by means of one of the following methods:
  3622. UserSecurity
  3623. </aside>
  3624. <h2 id="add_board_label">add_board_label</h2>
  3625. <p><a id="opIdadd_board_label"></a></p>
  3626. <blockquote>
  3627. <p>Code samples</p>
  3628. </blockquote>
  3629. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3630. curl -X PUT /api/boards/{board}/labels \
  3631. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3632. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  3633. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3634. </code></pre>
  3635. <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>
  3636. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3637. Accept: application/json
  3638. </span></code></pre>
  3639. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3640. &quot;label&quot;: &quot;string&quot;
  3641. }&#x27;</span>;
  3642. <span class="hljs-keyword">const</span> headers = {
  3643. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3644. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3645. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3646. };
  3647. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3648. {
  3649. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3650. <span class="hljs-attr">body</span>: inputBody,
  3651. <span class="hljs-attr">headers</span>: headers
  3652. })
  3653. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3654. <span class="hljs-keyword">return</span> res.json();
  3655. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3656. <span class="hljs-built_in">console</span>.log(body);
  3657. });
  3658. </code></pre>
  3659. <pre class="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>);
  3660. <span class="hljs-keyword">const</span> inputBody = {
  3661. <span class="hljs-string">&quot;label&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  3662. };
  3663. <span class="hljs-keyword">const</span> headers = {
  3664. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3665. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  3666. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3667. };
  3668. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3669. {
  3670. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  3671. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3672. <span class="hljs-attr">headers</span>: headers
  3673. })
  3674. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3675. <span class="hljs-keyword">return</span> res.json();
  3676. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3677. <span class="hljs-built_in">console</span>.log(body);
  3678. });
  3679. </code></pre>
  3680. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3681. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3682. headers = {
  3683. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3684. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3685. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3686. }
  3687. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>,
  3688. <span class="hljs-symbol">params:</span> {
  3689. }, <span class="hljs-symbol">headers:</span> headers
  3690. p JSON.parse(result)
  3691. </code></pre>
  3692. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3693. headers = {
  3694. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3695. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3696. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3697. }
  3698. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/labels&#x27;</span>, headers = headers)
  3699. <span class="hljs-built_in">print</span>(r.json())
  3700. </code></pre>
  3701. <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>);
  3702. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3703. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  3704. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3705. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3706. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3707. String inputLine;
  3708. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3709. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3710. response.append(inputLine);
  3711. }
  3712. in.close();
  3713. System.out.println(response.toString());
  3714. </code></pre>
  3715. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3716. <span class="hljs-keyword">import</span> (
  3717. <span class="hljs-string">&quot;bytes&quot;</span>
  3718. <span class="hljs-string">&quot;net/http&quot;</span>
  3719. )
  3720. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3721. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3722. <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>},
  3723. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  3724. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3725. }
  3726. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3727. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/labels&quot;</span>, data)
  3728. req.Header = headers
  3729. client := &amp;http.Client{}
  3730. resp, err := client.Do(req)
  3731. <span class="hljs-comment">// ...</span>
  3732. }
  3733. </code></pre>
  3734. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3735. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  3736. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3737. );
  3738. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3739. <span class="hljs-comment">// Define array of request body.</span>
  3740. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3741. <span class="hljs-keyword">try</span> {
  3742. <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>(
  3743. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3744. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3745. )
  3746. );
  3747. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3748. }
  3749. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3750. <span class="hljs-comment">// handle exception or api errors.</span>
  3751. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3752. }
  3753. <span class="hljs-comment">// ...</span>
  3754. </code></pre>
  3755. <p><code>PUT /api/boards/{board}/labels</code></p>
  3756. <p><em>Add a label to a board</em></p>
  3757. <p>If the board doesn't have the name/color label, this function
  3758. adds the label to the board.</p>
  3759. <blockquote>
  3760. <p>Body parameter</p>
  3761. </blockquote>
  3762. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">label:</span> <span class="hljs-string">string</span>
  3763. </code></pre>
  3764. <h3 id="add_board_label-parameters">Parameters</h3>
  3765. <table>
  3766. <thead>
  3767. <tr>
  3768. <th>Name</th>
  3769. <th>In</th>
  3770. <th>Type</th>
  3771. <th>Required</th>
  3772. <th>Description</th>
  3773. </tr>
  3774. </thead>
  3775. <tbody>
  3776. <tr>
  3777. <td>board</td>
  3778. <td>path</td>
  3779. <td>string</td>
  3780. <td>true</td>
  3781. <td>the board</td>
  3782. </tr>
  3783. <tr>
  3784. <td>body</td>
  3785. <td>body</td>
  3786. <td>object</td>
  3787. <td>true</td>
  3788. <td>none</td>
  3789. </tr>
  3790. <tr>
  3791. <td>» label</td>
  3792. <td>body</td>
  3793. <td>string</td>
  3794. <td>true</td>
  3795. <td>the label value</td>
  3796. </tr>
  3797. </tbody>
  3798. </table>
  3799. <h4 id="detailed-descriptions-6">Detailed descriptions</h4>
  3800. <p><strong>board</strong>: the board</p>
  3801. <blockquote>
  3802. <p>Example responses</p>
  3803. </blockquote>
  3804. <blockquote>
  3805. <p>200 Response</p>
  3806. </blockquote>
  3807. <pre class="highlight tab tab-json"><code><span class="hljs-string">&quot;string&quot;</span>
  3808. </code></pre>
  3809. <h3 id="add_board_label-responses">Responses</h3>
  3810. <table>
  3811. <thead>
  3812. <tr>
  3813. <th>Status</th>
  3814. <th>Meaning</th>
  3815. <th>Description</th>
  3816. <th>Schema</th>
  3817. </tr>
  3818. </thead>
  3819. <tbody>
  3820. <tr>
  3821. <td>200</td>
  3822. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  3823. <td>200 response</td>
  3824. <td>string</td>
  3825. </tr>
  3826. </tbody>
  3827. </table>
  3828. <aside class="warning">
  3829. To perform this operation, you must be authenticated by means of one of the following methods:
  3830. UserSecurity
  3831. </aside>
  3832. <h2 id="set_board_member_permission">set_board_member_permission</h2>
  3833. <p><a id="opIdset_board_member_permission"></a></p>
  3834. <blockquote>
  3835. <p>Code samples</p>
  3836. </blockquote>
  3837. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  3838. curl -X POST /api/boards/{board}/members/{member} \
  3839. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  3840. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  3841. </code></pre>
  3842. <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>
  3843. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  3844. </span></code></pre>
  3845. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  3846. &quot;isAdmin&quot;: true,
  3847. &quot;isNoComments&quot;: true,
  3848. &quot;isCommentOnly&quot;: true,
  3849. &quot;isWorker&quot;: true
  3850. }&#x27;</span>;
  3851. <span class="hljs-keyword">const</span> headers = {
  3852. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3853. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3854. };
  3855. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3856. {
  3857. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3858. <span class="hljs-attr">body</span>: inputBody,
  3859. <span class="hljs-attr">headers</span>: headers
  3860. })
  3861. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3862. <span class="hljs-keyword">return</span> res.json();
  3863. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3864. <span class="hljs-built_in">console</span>.log(body);
  3865. });
  3866. </code></pre>
  3867. <pre class="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>);
  3868. <span class="hljs-keyword">const</span> inputBody = {
  3869. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  3870. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  3871. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  3872. <span class="hljs-string">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  3873. };
  3874. <span class="hljs-keyword">const</span> headers = {
  3875. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3876. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3877. };
  3878. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3879. {
  3880. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  3881. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  3882. <span class="hljs-attr">headers</span>: headers
  3883. })
  3884. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  3885. <span class="hljs-keyword">return</span> res.json();
  3886. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  3887. <span class="hljs-built_in">console</span>.log(body);
  3888. });
  3889. </code></pre>
  3890. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  3891. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  3892. headers = {
  3893. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3894. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3895. }
  3896. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>,
  3897. <span class="hljs-symbol">params:</span> {
  3898. }, <span class="hljs-symbol">headers:</span> headers
  3899. p JSON.parse(result)
  3900. </code></pre>
  3901. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  3902. headers = {
  3903. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3904. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  3905. }
  3906. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{member}&#x27;</span>, headers = headers)
  3907. <span class="hljs-built_in">print</span>(r.json())
  3908. </code></pre>
  3909. <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>);
  3910. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  3911. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  3912. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  3913. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  3914. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  3915. String inputLine;
  3916. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  3917. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  3918. response.append(inputLine);
  3919. }
  3920. in.close();
  3921. System.out.println(response.toString());
  3922. </code></pre>
  3923. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  3924. <span class="hljs-keyword">import</span> (
  3925. <span class="hljs-string">&quot;bytes&quot;</span>
  3926. <span class="hljs-string">&quot;net/http&quot;</span>
  3927. )
  3928. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  3929. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  3930. <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>},
  3931. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  3932. }
  3933. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  3934. 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)
  3935. req.Header = headers
  3936. client := &amp;http.Client{}
  3937. resp, err := client.Do(req)
  3938. <span class="hljs-comment">// ...</span>
  3939. }
  3940. </code></pre>
  3941. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  3942. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  3943. );
  3944. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  3945. <span class="hljs-comment">// Define array of request body.</span>
  3946. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  3947. <span class="hljs-keyword">try</span> {
  3948. <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>(
  3949. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  3950. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  3951. )
  3952. );
  3953. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  3954. }
  3955. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  3956. <span class="hljs-comment">// handle exception or api errors.</span>
  3957. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  3958. }
  3959. <span class="hljs-comment">// ...</span>
  3960. </code></pre>
  3961. <p><code>POST /api/boards/{board}/members/{member}</code></p>
  3962. <p><em>Change the permission of a member of a board</em></p>
  3963. <blockquote>
  3964. <p>Body parameter</p>
  3965. </blockquote>
  3966. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  3967. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  3968. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  3969. <span class="hljs-attr">isWorker:</span> <span class="hljs-literal">true</span>
  3970. </code></pre>
  3971. <h3 id="set_board_member_permission-parameters">Parameters</h3>
  3972. <table>
  3973. <thead>
  3974. <tr>
  3975. <th>Name</th>
  3976. <th>In</th>
  3977. <th>Type</th>
  3978. <th>Required</th>
  3979. <th>Description</th>
  3980. </tr>
  3981. </thead>
  3982. <tbody>
  3983. <tr>
  3984. <td>board</td>
  3985. <td>path</td>
  3986. <td>string</td>
  3987. <td>true</td>
  3988. <td>the ID of the board that we are changing</td>
  3989. </tr>
  3990. <tr>
  3991. <td>member</td>
  3992. <td>path</td>
  3993. <td>string</td>
  3994. <td>true</td>
  3995. <td>the ID of the user to change permissions</td>
  3996. </tr>
  3997. <tr>
  3998. <td>body</td>
  3999. <td>body</td>
  4000. <td>object</td>
  4001. <td>true</td>
  4002. <td>none</td>
  4003. </tr>
  4004. <tr>
  4005. <td>» isAdmin</td>
  4006. <td>body</td>
  4007. <td>boolean</td>
  4008. <td>true</td>
  4009. <td>admin capability</td>
  4010. </tr>
  4011. <tr>
  4012. <td>» isNoComments</td>
  4013. <td>body</td>
  4014. <td>boolean</td>
  4015. <td>true</td>
  4016. <td>NoComments capability</td>
  4017. </tr>
  4018. <tr>
  4019. <td>» isCommentOnly</td>
  4020. <td>body</td>
  4021. <td>boolean</td>
  4022. <td>true</td>
  4023. <td>CommentsOnly capability</td>
  4024. </tr>
  4025. <tr>
  4026. <td>» isWorker</td>
  4027. <td>body</td>
  4028. <td>boolean</td>
  4029. <td>true</td>
  4030. <td>Worker capability</td>
  4031. </tr>
  4032. </tbody>
  4033. </table>
  4034. <h4 id="detailed-descriptions-7">Detailed descriptions</h4>
  4035. <p><strong>board</strong>: the ID of the board that we are changing</p>
  4036. <p><strong>member</strong>: the ID of the user to change permissions</p>
  4037. <h3 id="set_board_member_permission-responses">Responses</h3>
  4038. <table>
  4039. <thead>
  4040. <tr>
  4041. <th>Status</th>
  4042. <th>Meaning</th>
  4043. <th>Description</th>
  4044. <th>Schema</th>
  4045. </tr>
  4046. </thead>
  4047. <tbody>
  4048. <tr>
  4049. <td>200</td>
  4050. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4051. <td>200 response</td>
  4052. <td>None</td>
  4053. </tr>
  4054. </tbody>
  4055. </table>
  4056. <aside class="warning">
  4057. To perform this operation, you must be authenticated by means of one of the following methods:
  4058. UserSecurity
  4059. </aside>
  4060. <h2 id="get_boards_count">get_boards_count</h2>
  4061. <p><a id="opIdget_boards_count"></a></p>
  4062. <blockquote>
  4063. <p>Code samples</p>
  4064. </blockquote>
  4065. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4066. curl -X GET /api/boards_count \
  4067. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4068. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4069. </code></pre>
  4070. <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>
  4071. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4072. </span></code></pre>
  4073. <pre class="highlight tab tab-javascript"><code>
  4074. <span class="hljs-keyword">const</span> headers = {
  4075. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4076. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4077. };
  4078. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4079. {
  4080. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4081. <span class="hljs-attr">headers</span>: headers
  4082. })
  4083. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4084. <span class="hljs-keyword">return</span> res.json();
  4085. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4086. <span class="hljs-built_in">console</span>.log(body);
  4087. });
  4088. </code></pre>
  4089. <pre class="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>);
  4090. <span class="hljs-keyword">const</span> headers = {
  4091. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4092. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4093. };
  4094. fetch(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4095. {
  4096. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4097. <span class="hljs-attr">headers</span>: headers
  4098. })
  4099. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4100. <span class="hljs-keyword">return</span> res.json();
  4101. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4102. <span class="hljs-built_in">console</span>.log(body);
  4103. });
  4104. </code></pre>
  4105. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4106. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4107. headers = {
  4108. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4109. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4110. }
  4111. result = RestClient.get <span class="hljs-string">&#x27;/api/boards_count&#x27;</span>,
  4112. <span class="hljs-symbol">params:</span> {
  4113. }, <span class="hljs-symbol">headers:</span> headers
  4114. p JSON.parse(result)
  4115. </code></pre>
  4116. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4117. headers = {
  4118. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4119. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4120. }
  4121. r = requests.get(<span class="hljs-string">&#x27;/api/boards_count&#x27;</span>, headers = headers)
  4122. <span class="hljs-built_in">print</span>(r.json())
  4123. </code></pre>
  4124. <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>);
  4125. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4126. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4127. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4128. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4129. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4130. String inputLine;
  4131. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4132. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4133. response.append(inputLine);
  4134. }
  4135. in.close();
  4136. System.out.println(response.toString());
  4137. </code></pre>
  4138. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4139. <span class="hljs-keyword">import</span> (
  4140. <span class="hljs-string">&quot;bytes&quot;</span>
  4141. <span class="hljs-string">&quot;net/http&quot;</span>
  4142. )
  4143. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4144. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4145. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4146. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4147. }
  4148. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4149. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards_count&quot;</span>, data)
  4150. req.Header = headers
  4151. client := &amp;http.Client{}
  4152. resp, err := client.Do(req)
  4153. <span class="hljs-comment">// ...</span>
  4154. }
  4155. </code></pre>
  4156. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4157. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4158. );
  4159. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4160. <span class="hljs-comment">// Define array of request body.</span>
  4161. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4162. <span class="hljs-keyword">try</span> {
  4163. <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>(
  4164. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4165. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4166. )
  4167. );
  4168. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4169. }
  4170. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4171. <span class="hljs-comment">// handle exception or api errors.</span>
  4172. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4173. }
  4174. <span class="hljs-comment">// ...</span>
  4175. </code></pre>
  4176. <p><code>GET /api/boards_count</code></p>
  4177. <p><em>Get public and private boards count</em></p>
  4178. <blockquote>
  4179. <p>Example responses</p>
  4180. </blockquote>
  4181. <blockquote>
  4182. <p>200 Response</p>
  4183. </blockquote>
  4184. <pre class="highlight tab tab-json"><code>{
  4185. <span class="hljs-attr">&quot;private&quot;</span>: <span class="hljs-number">0</span>,
  4186. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-number">0</span>
  4187. }
  4188. </code></pre>
  4189. <h3 id="get_boards_count-responses">Responses</h3>
  4190. <table>
  4191. <thead>
  4192. <tr>
  4193. <th>Status</th>
  4194. <th>Meaning</th>
  4195. <th>Description</th>
  4196. <th>Schema</th>
  4197. </tr>
  4198. </thead>
  4199. <tbody>
  4200. <tr>
  4201. <td>200</td>
  4202. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4203. <td>200 response</td>
  4204. <td>Inline</td>
  4205. </tr>
  4206. </tbody>
  4207. </table>
  4208. <h3 id="get_boards_count-responseschema">Response Schema</h3>
  4209. <p>Status Code <strong>200</strong></p>
  4210. <table>
  4211. <thead>
  4212. <tr>
  4213. <th>Name</th>
  4214. <th>Type</th>
  4215. <th>Required</th>
  4216. <th>Restrictions</th>
  4217. <th>Description</th>
  4218. </tr>
  4219. </thead>
  4220. <tbody>
  4221. <tr>
  4222. <td>» private</td>
  4223. <td>integer</td>
  4224. <td>false</td>
  4225. <td>none</td>
  4226. <td>none</td>
  4227. </tr>
  4228. <tr>
  4229. <td>» public</td>
  4230. <td>integer</td>
  4231. <td>false</td>
  4232. <td>none</td>
  4233. <td>none</td>
  4234. </tr>
  4235. </tbody>
  4236. </table>
  4237. <aside class="warning">
  4238. To perform this operation, you must be authenticated by means of one of the following methods:
  4239. UserSecurity
  4240. </aside>
  4241. <h2 id="get_boards_from_user">get_boards_from_user</h2>
  4242. <p><a id="opIdget_boards_from_user"></a></p>
  4243. <blockquote>
  4244. <p>Code samples</p>
  4245. </blockquote>
  4246. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4247. curl -X GET /api/users/{user}/boards \
  4248. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4249. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4250. </code></pre>
  4251. <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>
  4252. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4253. </span></code></pre>
  4254. <pre class="highlight tab tab-javascript"><code>
  4255. <span class="hljs-keyword">const</span> headers = {
  4256. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4257. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4258. };
  4259. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4260. {
  4261. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4262. <span class="hljs-attr">headers</span>: headers
  4263. })
  4264. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4265. <span class="hljs-keyword">return</span> res.json();
  4266. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4267. <span class="hljs-built_in">console</span>.log(body);
  4268. });
  4269. </code></pre>
  4270. <pre class="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>);
  4271. <span class="hljs-keyword">const</span> headers = {
  4272. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4273. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4274. };
  4275. fetch(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4276. {
  4277. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4278. <span class="hljs-attr">headers</span>: headers
  4279. })
  4280. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4281. <span class="hljs-keyword">return</span> res.json();
  4282. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4283. <span class="hljs-built_in">console</span>.log(body);
  4284. });
  4285. </code></pre>
  4286. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4287. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4288. headers = {
  4289. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4290. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4291. }
  4292. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>,
  4293. <span class="hljs-symbol">params:</span> {
  4294. }, <span class="hljs-symbol">headers:</span> headers
  4295. p JSON.parse(result)
  4296. </code></pre>
  4297. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4298. headers = {
  4299. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4300. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4301. }
  4302. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}/boards&#x27;</span>, headers = headers)
  4303. <span class="hljs-built_in">print</span>(r.json())
  4304. </code></pre>
  4305. <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>);
  4306. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4307. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4308. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4309. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4310. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4311. String inputLine;
  4312. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4313. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4314. response.append(inputLine);
  4315. }
  4316. in.close();
  4317. System.out.println(response.toString());
  4318. </code></pre>
  4319. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4320. <span class="hljs-keyword">import</span> (
  4321. <span class="hljs-string">&quot;bytes&quot;</span>
  4322. <span class="hljs-string">&quot;net/http&quot;</span>
  4323. )
  4324. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4325. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4326. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4327. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4328. }
  4329. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4330. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}/boards&quot;</span>, data)
  4331. req.Header = headers
  4332. client := &amp;http.Client{}
  4333. resp, err := client.Do(req)
  4334. <span class="hljs-comment">// ...</span>
  4335. }
  4336. </code></pre>
  4337. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4338. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4339. );
  4340. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4341. <span class="hljs-comment">// Define array of request body.</span>
  4342. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4343. <span class="hljs-keyword">try</span> {
  4344. <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>(
  4345. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4346. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4347. )
  4348. );
  4349. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4350. }
  4351. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4352. <span class="hljs-comment">// handle exception or api errors.</span>
  4353. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4354. }
  4355. <span class="hljs-comment">// ...</span>
  4356. </code></pre>
  4357. <p><code>GET /api/users/{user}/boards</code></p>
  4358. <p><em>Get all boards attached to a user</em></p>
  4359. <h3 id="get_boards_from_user-parameters">Parameters</h3>
  4360. <table>
  4361. <thead>
  4362. <tr>
  4363. <th>Name</th>
  4364. <th>In</th>
  4365. <th>Type</th>
  4366. <th>Required</th>
  4367. <th>Description</th>
  4368. </tr>
  4369. </thead>
  4370. <tbody>
  4371. <tr>
  4372. <td>user</td>
  4373. <td>path</td>
  4374. <td>string</td>
  4375. <td>true</td>
  4376. <td>the ID of the user to retrieve the data</td>
  4377. </tr>
  4378. </tbody>
  4379. </table>
  4380. <h4 id="detailed-descriptions-8">Detailed descriptions</h4>
  4381. <p><strong>user</strong>: the ID of the user to retrieve the data</p>
  4382. <blockquote>
  4383. <p>Example responses</p>
  4384. </blockquote>
  4385. <blockquote>
  4386. <p>200 Response</p>
  4387. </blockquote>
  4388. <pre class="highlight tab tab-json"><code>[
  4389. {
  4390. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4391. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4392. }
  4393. ]
  4394. </code></pre>
  4395. <h3 id="get_boards_from_user-responses">Responses</h3>
  4396. <table>
  4397. <thead>
  4398. <tr>
  4399. <th>Status</th>
  4400. <th>Meaning</th>
  4401. <th>Description</th>
  4402. <th>Schema</th>
  4403. </tr>
  4404. </thead>
  4405. <tbody>
  4406. <tr>
  4407. <td>200</td>
  4408. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4409. <td>200 response</td>
  4410. <td>Inline</td>
  4411. </tr>
  4412. </tbody>
  4413. </table>
  4414. <h3 id="get_boards_from_user-responseschema">Response Schema</h3>
  4415. <p>Status Code <strong>200</strong></p>
  4416. <table>
  4417. <thead>
  4418. <tr>
  4419. <th>Name</th>
  4420. <th>Type</th>
  4421. <th>Required</th>
  4422. <th>Restrictions</th>
  4423. <th>Description</th>
  4424. </tr>
  4425. </thead>
  4426. <tbody>
  4427. <tr>
  4428. <td>» _id</td>
  4429. <td>string</td>
  4430. <td>false</td>
  4431. <td>none</td>
  4432. <td>none</td>
  4433. </tr>
  4434. <tr>
  4435. <td>» title</td>
  4436. <td>string</td>
  4437. <td>false</td>
  4438. <td>none</td>
  4439. <td>none</td>
  4440. </tr>
  4441. </tbody>
  4442. </table>
  4443. <aside class="warning">
  4444. To perform this operation, you must be authenticated by means of one of the following methods:
  4445. UserSecurity
  4446. </aside>
  4447. <h1 id="wekan-rest-api-checklists">Checklists</h1>
  4448. <h2 id="get_all_checklists">get_all_checklists</h2>
  4449. <p><a id="opIdget_all_checklists"></a></p>
  4450. <blockquote>
  4451. <p>Code samples</p>
  4452. </blockquote>
  4453. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4454. curl -X GET /api/boards/{board}/cards/{card}/checklists \
  4455. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4456. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4457. </code></pre>
  4458. <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>
  4459. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4460. </span></code></pre>
  4461. <pre class="highlight tab tab-javascript"><code>
  4462. <span class="hljs-keyword">const</span> headers = {
  4463. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4464. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4465. };
  4466. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4467. {
  4468. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4469. <span class="hljs-attr">headers</span>: headers
  4470. })
  4471. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4472. <span class="hljs-keyword">return</span> res.json();
  4473. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4474. <span class="hljs-built_in">console</span>.log(body);
  4475. });
  4476. </code></pre>
  4477. <pre class="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>);
  4478. <span class="hljs-keyword">const</span> headers = {
  4479. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4480. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4481. };
  4482. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4483. {
  4484. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4485. <span class="hljs-attr">headers</span>: headers
  4486. })
  4487. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4488. <span class="hljs-keyword">return</span> res.json();
  4489. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4490. <span class="hljs-built_in">console</span>.log(body);
  4491. });
  4492. </code></pre>
  4493. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4494. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4495. headers = {
  4496. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4497. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4498. }
  4499. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4500. <span class="hljs-symbol">params:</span> {
  4501. }, <span class="hljs-symbol">headers:</span> headers
  4502. p JSON.parse(result)
  4503. </code></pre>
  4504. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4505. headers = {
  4506. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4507. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4508. }
  4509. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4510. <span class="hljs-built_in">print</span>(r.json())
  4511. </code></pre>
  4512. <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>);
  4513. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4514. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4515. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4516. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4517. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4518. String inputLine;
  4519. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4520. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4521. response.append(inputLine);
  4522. }
  4523. in.close();
  4524. System.out.println(response.toString());
  4525. </code></pre>
  4526. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4527. <span class="hljs-keyword">import</span> (
  4528. <span class="hljs-string">&quot;bytes&quot;</span>
  4529. <span class="hljs-string">&quot;net/http&quot;</span>
  4530. )
  4531. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4532. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4533. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4534. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4535. }
  4536. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4537. 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)
  4538. req.Header = headers
  4539. client := &amp;http.Client{}
  4540. resp, err := client.Do(req)
  4541. <span class="hljs-comment">// ...</span>
  4542. }
  4543. </code></pre>
  4544. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4545. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4546. );
  4547. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4548. <span class="hljs-comment">// Define array of request body.</span>
  4549. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4550. <span class="hljs-keyword">try</span> {
  4551. <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>(
  4552. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4553. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4554. )
  4555. );
  4556. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4557. }
  4558. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4559. <span class="hljs-comment">// handle exception or api errors.</span>
  4560. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4561. }
  4562. <span class="hljs-comment">// ...</span>
  4563. </code></pre>
  4564. <p><code>GET /api/boards/{board}/cards/{card}/checklists</code></p>
  4565. <p><em>Get the list of checklists attached to a card</em></p>
  4566. <h3 id="get_all_checklists-parameters">Parameters</h3>
  4567. <table>
  4568. <thead>
  4569. <tr>
  4570. <th>Name</th>
  4571. <th>In</th>
  4572. <th>Type</th>
  4573. <th>Required</th>
  4574. <th>Description</th>
  4575. </tr>
  4576. </thead>
  4577. <tbody>
  4578. <tr>
  4579. <td>board</td>
  4580. <td>path</td>
  4581. <td>string</td>
  4582. <td>true</td>
  4583. <td>the board ID</td>
  4584. </tr>
  4585. <tr>
  4586. <td>card</td>
  4587. <td>path</td>
  4588. <td>string</td>
  4589. <td>true</td>
  4590. <td>the card ID</td>
  4591. </tr>
  4592. </tbody>
  4593. </table>
  4594. <h4 id="detailed-descriptions-9">Detailed descriptions</h4>
  4595. <p><strong>board</strong>: the board ID</p>
  4596. <p><strong>card</strong>: the card ID</p>
  4597. <blockquote>
  4598. <p>Example responses</p>
  4599. </blockquote>
  4600. <blockquote>
  4601. <p>200 Response</p>
  4602. </blockquote>
  4603. <pre class="highlight tab tab-json"><code>[
  4604. {
  4605. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4606. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4607. }
  4608. ]
  4609. </code></pre>
  4610. <h3 id="get_all_checklists-responses">Responses</h3>
  4611. <table>
  4612. <thead>
  4613. <tr>
  4614. <th>Status</th>
  4615. <th>Meaning</th>
  4616. <th>Description</th>
  4617. <th>Schema</th>
  4618. </tr>
  4619. </thead>
  4620. <tbody>
  4621. <tr>
  4622. <td>200</td>
  4623. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4624. <td>200 response</td>
  4625. <td>Inline</td>
  4626. </tr>
  4627. </tbody>
  4628. </table>
  4629. <h3 id="get_all_checklists-responseschema">Response Schema</h3>
  4630. <p>Status Code <strong>200</strong></p>
  4631. <table>
  4632. <thead>
  4633. <tr>
  4634. <th>Name</th>
  4635. <th>Type</th>
  4636. <th>Required</th>
  4637. <th>Restrictions</th>
  4638. <th>Description</th>
  4639. </tr>
  4640. </thead>
  4641. <tbody>
  4642. <tr>
  4643. <td>» _id</td>
  4644. <td>string</td>
  4645. <td>false</td>
  4646. <td>none</td>
  4647. <td>none</td>
  4648. </tr>
  4649. <tr>
  4650. <td>» title</td>
  4651. <td>string</td>
  4652. <td>false</td>
  4653. <td>none</td>
  4654. <td>none</td>
  4655. </tr>
  4656. </tbody>
  4657. </table>
  4658. <aside class="warning">
  4659. To perform this operation, you must be authenticated by means of one of the following methods:
  4660. UserSecurity
  4661. </aside>
  4662. <h2 id="new_checklist">new_checklist</h2>
  4663. <p><a id="opIdnew_checklist"></a></p>
  4664. <blockquote>
  4665. <p>Code samples</p>
  4666. </blockquote>
  4667. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4668. curl -X POST /api/boards/{board}/cards/{card}/checklists \
  4669. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  4670. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4671. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4672. </code></pre>
  4673. <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>
  4674. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  4675. Accept: application/json
  4676. </span></code></pre>
  4677. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  4678. &quot;title&quot;: &quot;string&quot;,
  4679. &quot;items&quot;: &quot;string&quot;
  4680. }&#x27;</span>;
  4681. <span class="hljs-keyword">const</span> headers = {
  4682. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4683. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4684. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4685. };
  4686. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4687. {
  4688. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4689. <span class="hljs-attr">body</span>: inputBody,
  4690. <span class="hljs-attr">headers</span>: headers
  4691. })
  4692. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4693. <span class="hljs-keyword">return</span> res.json();
  4694. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4695. <span class="hljs-built_in">console</span>.log(body);
  4696. });
  4697. </code></pre>
  4698. <pre class="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>);
  4699. <span class="hljs-keyword">const</span> inputBody = {
  4700. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  4701. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4702. };
  4703. <span class="hljs-keyword">const</span> headers = {
  4704. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4705. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4706. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4707. };
  4708. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4709. {
  4710. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  4711. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  4712. <span class="hljs-attr">headers</span>: headers
  4713. })
  4714. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4715. <span class="hljs-keyword">return</span> res.json();
  4716. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4717. <span class="hljs-built_in">console</span>.log(body);
  4718. });
  4719. </code></pre>
  4720. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4721. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4722. headers = {
  4723. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4724. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4725. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4726. }
  4727. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>,
  4728. <span class="hljs-symbol">params:</span> {
  4729. }, <span class="hljs-symbol">headers:</span> headers
  4730. p JSON.parse(result)
  4731. </code></pre>
  4732. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4733. headers = {
  4734. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4735. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4736. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4737. }
  4738. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists&#x27;</span>, headers = headers)
  4739. <span class="hljs-built_in">print</span>(r.json())
  4740. </code></pre>
  4741. <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>);
  4742. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4743. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  4744. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4745. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4746. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4747. String inputLine;
  4748. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4749. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4750. response.append(inputLine);
  4751. }
  4752. in.close();
  4753. System.out.println(response.toString());
  4754. </code></pre>
  4755. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4756. <span class="hljs-keyword">import</span> (
  4757. <span class="hljs-string">&quot;bytes&quot;</span>
  4758. <span class="hljs-string">&quot;net/http&quot;</span>
  4759. )
  4760. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4761. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4762. <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>},
  4763. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4764. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4765. }
  4766. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4767. 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)
  4768. req.Header = headers
  4769. client := &amp;http.Client{}
  4770. resp, err := client.Do(req)
  4771. <span class="hljs-comment">// ...</span>
  4772. }
  4773. </code></pre>
  4774. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  4775. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4776. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  4777. );
  4778. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  4779. <span class="hljs-comment">// Define array of request body.</span>
  4780. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  4781. <span class="hljs-keyword">try</span> {
  4782. <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>(
  4783. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  4784. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  4785. )
  4786. );
  4787. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  4788. }
  4789. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  4790. <span class="hljs-comment">// handle exception or api errors.</span>
  4791. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  4792. }
  4793. <span class="hljs-comment">// ...</span>
  4794. </code></pre>
  4795. <p><code>POST /api/boards/{board}/cards/{card}/checklists</code></p>
  4796. <p><em>create a new checklist</em></p>
  4797. <blockquote>
  4798. <p>Body parameter</p>
  4799. </blockquote>
  4800. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  4801. <span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  4802. </code></pre>
  4803. <h3 id="new_checklist-parameters">Parameters</h3>
  4804. <table>
  4805. <thead>
  4806. <tr>
  4807. <th>Name</th>
  4808. <th>In</th>
  4809. <th>Type</th>
  4810. <th>Required</th>
  4811. <th>Description</th>
  4812. </tr>
  4813. </thead>
  4814. <tbody>
  4815. <tr>
  4816. <td>board</td>
  4817. <td>path</td>
  4818. <td>string</td>
  4819. <td>true</td>
  4820. <td>the board ID</td>
  4821. </tr>
  4822. <tr>
  4823. <td>card</td>
  4824. <td>path</td>
  4825. <td>string</td>
  4826. <td>true</td>
  4827. <td>the card ID</td>
  4828. </tr>
  4829. <tr>
  4830. <td>body</td>
  4831. <td>body</td>
  4832. <td>object</td>
  4833. <td>true</td>
  4834. <td>none</td>
  4835. </tr>
  4836. <tr>
  4837. <td>» title</td>
  4838. <td>body</td>
  4839. <td>string</td>
  4840. <td>true</td>
  4841. <td>the title of the new checklist</td>
  4842. </tr>
  4843. <tr>
  4844. <td>» items</td>
  4845. <td>body</td>
  4846. <td>string</td>
  4847. <td>false</td>
  4848. <td>the list of items on the new checklist</td>
  4849. </tr>
  4850. </tbody>
  4851. </table>
  4852. <h4 id="detailed-descriptions-10">Detailed descriptions</h4>
  4853. <p><strong>board</strong>: the board ID</p>
  4854. <p><strong>card</strong>: the card ID</p>
  4855. <blockquote>
  4856. <p>Example responses</p>
  4857. </blockquote>
  4858. <blockquote>
  4859. <p>200 Response</p>
  4860. </blockquote>
  4861. <pre class="highlight tab tab-json"><code>{
  4862. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  4863. }
  4864. </code></pre>
  4865. <h3 id="new_checklist-responses">Responses</h3>
  4866. <table>
  4867. <thead>
  4868. <tr>
  4869. <th>Status</th>
  4870. <th>Meaning</th>
  4871. <th>Description</th>
  4872. <th>Schema</th>
  4873. </tr>
  4874. </thead>
  4875. <tbody>
  4876. <tr>
  4877. <td>200</td>
  4878. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  4879. <td>200 response</td>
  4880. <td>Inline</td>
  4881. </tr>
  4882. </tbody>
  4883. </table>
  4884. <h3 id="new_checklist-responseschema">Response Schema</h3>
  4885. <p>Status Code <strong>200</strong></p>
  4886. <table>
  4887. <thead>
  4888. <tr>
  4889. <th>Name</th>
  4890. <th>Type</th>
  4891. <th>Required</th>
  4892. <th>Restrictions</th>
  4893. <th>Description</th>
  4894. </tr>
  4895. </thead>
  4896. <tbody>
  4897. <tr>
  4898. <td>» _id</td>
  4899. <td>string</td>
  4900. <td>false</td>
  4901. <td>none</td>
  4902. <td>none</td>
  4903. </tr>
  4904. </tbody>
  4905. </table>
  4906. <aside class="warning">
  4907. To perform this operation, you must be authenticated by means of one of the following methods:
  4908. UserSecurity
  4909. </aside>
  4910. <h2 id="get_checklist">get_checklist</h2>
  4911. <p><a id="opIdget_checklist"></a></p>
  4912. <blockquote>
  4913. <p>Code samples</p>
  4914. </blockquote>
  4915. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  4916. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist} \
  4917. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  4918. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  4919. </code></pre>
  4920. <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>
  4921. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  4922. </span></code></pre>
  4923. <pre class="highlight tab tab-javascript"><code>
  4924. <span class="hljs-keyword">const</span> headers = {
  4925. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4926. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4927. };
  4928. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4929. {
  4930. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4931. <span class="hljs-attr">headers</span>: headers
  4932. })
  4933. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4934. <span class="hljs-keyword">return</span> res.json();
  4935. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4936. <span class="hljs-built_in">console</span>.log(body);
  4937. });
  4938. </code></pre>
  4939. <pre class="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>);
  4940. <span class="hljs-keyword">const</span> headers = {
  4941. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  4942. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4943. };
  4944. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4945. {
  4946. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  4947. <span class="hljs-attr">headers</span>: headers
  4948. })
  4949. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  4950. <span class="hljs-keyword">return</span> res.json();
  4951. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  4952. <span class="hljs-built_in">console</span>.log(body);
  4953. });
  4954. </code></pre>
  4955. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  4956. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  4957. headers = {
  4958. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4959. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4960. }
  4961. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  4962. <span class="hljs-symbol">params:</span> {
  4963. }, <span class="hljs-symbol">headers:</span> headers
  4964. p JSON.parse(result)
  4965. </code></pre>
  4966. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  4967. headers = {
  4968. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  4969. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  4970. }
  4971. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  4972. <span class="hljs-built_in">print</span>(r.json())
  4973. </code></pre>
  4974. <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>);
  4975. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  4976. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  4977. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  4978. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  4979. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  4980. String inputLine;
  4981. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  4982. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  4983. response.append(inputLine);
  4984. }
  4985. in.close();
  4986. System.out.println(response.toString());
  4987. </code></pre>
  4988. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  4989. <span class="hljs-keyword">import</span> (
  4990. <span class="hljs-string">&quot;bytes&quot;</span>
  4991. <span class="hljs-string">&quot;net/http&quot;</span>
  4992. )
  4993. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  4994. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  4995. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  4996. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  4997. }
  4998. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  4999. 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)
  5000. req.Header = headers
  5001. client := &amp;http.Client{}
  5002. resp, err := client.Do(req)
  5003. <span class="hljs-comment">// ...</span>
  5004. }
  5005. </code></pre>
  5006. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5007. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5008. );
  5009. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5010. <span class="hljs-comment">// Define array of request body.</span>
  5011. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5012. <span class="hljs-keyword">try</span> {
  5013. <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>(
  5014. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5015. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5016. )
  5017. );
  5018. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5019. }
  5020. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5021. <span class="hljs-comment">// handle exception or api errors.</span>
  5022. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5023. }
  5024. <span class="hljs-comment">// ...</span>
  5025. </code></pre>
  5026. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5027. <p><em>Get a checklist</em></p>
  5028. <h3 id="get_checklist-parameters">Parameters</h3>
  5029. <table>
  5030. <thead>
  5031. <tr>
  5032. <th>Name</th>
  5033. <th>In</th>
  5034. <th>Type</th>
  5035. <th>Required</th>
  5036. <th>Description</th>
  5037. </tr>
  5038. </thead>
  5039. <tbody>
  5040. <tr>
  5041. <td>board</td>
  5042. <td>path</td>
  5043. <td>string</td>
  5044. <td>true</td>
  5045. <td>the board ID</td>
  5046. </tr>
  5047. <tr>
  5048. <td>card</td>
  5049. <td>path</td>
  5050. <td>string</td>
  5051. <td>true</td>
  5052. <td>the card ID</td>
  5053. </tr>
  5054. <tr>
  5055. <td>checklist</td>
  5056. <td>path</td>
  5057. <td>string</td>
  5058. <td>true</td>
  5059. <td>the ID of the checklist</td>
  5060. </tr>
  5061. </tbody>
  5062. </table>
  5063. <h4 id="detailed-descriptions-11">Detailed descriptions</h4>
  5064. <p><strong>board</strong>: the board ID</p>
  5065. <p><strong>card</strong>: the card ID</p>
  5066. <p><strong>checklist</strong>: the ID of the checklist</p>
  5067. <blockquote>
  5068. <p>Example responses</p>
  5069. </blockquote>
  5070. <blockquote>
  5071. <p>200 Response</p>
  5072. </blockquote>
  5073. <pre class="highlight tab tab-json"><code>{
  5074. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5075. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5076. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5077. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5078. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5079. <span class="hljs-attr">&quot;items&quot;</span>: [
  5080. {
  5081. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5082. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5083. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>
  5084. }
  5085. ]
  5086. }
  5087. </code></pre>
  5088. <h3 id="get_checklist-responses">Responses</h3>
  5089. <table>
  5090. <thead>
  5091. <tr>
  5092. <th>Status</th>
  5093. <th>Meaning</th>
  5094. <th>Description</th>
  5095. <th>Schema</th>
  5096. </tr>
  5097. </thead>
  5098. <tbody>
  5099. <tr>
  5100. <td>200</td>
  5101. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5102. <td>200 response</td>
  5103. <td>Inline</td>
  5104. </tr>
  5105. </tbody>
  5106. </table>
  5107. <h3 id="get_checklist-responseschema">Response Schema</h3>
  5108. <p>Status Code <strong>200</strong></p>
  5109. <table>
  5110. <thead>
  5111. <tr>
  5112. <th>Name</th>
  5113. <th>Type</th>
  5114. <th>Required</th>
  5115. <th>Restrictions</th>
  5116. <th>Description</th>
  5117. </tr>
  5118. </thead>
  5119. <tbody>
  5120. <tr>
  5121. <td>» cardId</td>
  5122. <td>string</td>
  5123. <td>false</td>
  5124. <td>none</td>
  5125. <td>none</td>
  5126. </tr>
  5127. <tr>
  5128. <td>» title</td>
  5129. <td>string</td>
  5130. <td>false</td>
  5131. <td>none</td>
  5132. <td>none</td>
  5133. </tr>
  5134. <tr>
  5135. <td>» finishedAt</td>
  5136. <td>string</td>
  5137. <td>false</td>
  5138. <td>none</td>
  5139. <td>none</td>
  5140. </tr>
  5141. <tr>
  5142. <td>» createdAt</td>
  5143. <td>string</td>
  5144. <td>false</td>
  5145. <td>none</td>
  5146. <td>none</td>
  5147. </tr>
  5148. <tr>
  5149. <td>» sort</td>
  5150. <td>number</td>
  5151. <td>false</td>
  5152. <td>none</td>
  5153. <td>none</td>
  5154. </tr>
  5155. <tr>
  5156. <td>» items</td>
  5157. <td>[object]</td>
  5158. <td>false</td>
  5159. <td>none</td>
  5160. <td>none</td>
  5161. </tr>
  5162. <tr>
  5163. <td>»» _id</td>
  5164. <td>string</td>
  5165. <td>false</td>
  5166. <td>none</td>
  5167. <td>none</td>
  5168. </tr>
  5169. <tr>
  5170. <td>»» title</td>
  5171. <td>string</td>
  5172. <td>false</td>
  5173. <td>none</td>
  5174. <td>none</td>
  5175. </tr>
  5176. <tr>
  5177. <td>»» isFinished</td>
  5178. <td>boolean</td>
  5179. <td>false</td>
  5180. <td>none</td>
  5181. <td>none</td>
  5182. </tr>
  5183. </tbody>
  5184. </table>
  5185. <aside class="warning">
  5186. To perform this operation, you must be authenticated by means of one of the following methods:
  5187. UserSecurity
  5188. </aside>
  5189. <h2 id="delete_checklist">delete_checklist</h2>
  5190. <p><a id="opIddelete_checklist"></a></p>
  5191. <blockquote>
  5192. <p>Code samples</p>
  5193. </blockquote>
  5194. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5195. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist} \
  5196. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5197. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5198. </code></pre>
  5199. <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>
  5200. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5201. </span></code></pre>
  5202. <pre class="highlight tab tab-javascript"><code>
  5203. <span class="hljs-keyword">const</span> headers = {
  5204. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5205. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5206. };
  5207. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5208. {
  5209. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5210. <span class="hljs-attr">headers</span>: headers
  5211. })
  5212. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5213. <span class="hljs-keyword">return</span> res.json();
  5214. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5215. <span class="hljs-built_in">console</span>.log(body);
  5216. });
  5217. </code></pre>
  5218. <pre class="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>);
  5219. <span class="hljs-keyword">const</span> headers = {
  5220. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5221. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5222. };
  5223. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5224. {
  5225. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5226. <span class="hljs-attr">headers</span>: headers
  5227. })
  5228. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5229. <span class="hljs-keyword">return</span> res.json();
  5230. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5231. <span class="hljs-built_in">console</span>.log(body);
  5232. });
  5233. </code></pre>
  5234. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5235. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5236. headers = {
  5237. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5238. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5239. }
  5240. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>,
  5241. <span class="hljs-symbol">params:</span> {
  5242. }, <span class="hljs-symbol">headers:</span> headers
  5243. p JSON.parse(result)
  5244. </code></pre>
  5245. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5246. headers = {
  5247. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5248. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5249. }
  5250. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}&#x27;</span>, headers = headers)
  5251. <span class="hljs-built_in">print</span>(r.json())
  5252. </code></pre>
  5253. <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>);
  5254. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5255. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5256. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5257. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5258. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5259. String inputLine;
  5260. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5261. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5262. response.append(inputLine);
  5263. }
  5264. in.close();
  5265. System.out.println(response.toString());
  5266. </code></pre>
  5267. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5268. <span class="hljs-keyword">import</span> (
  5269. <span class="hljs-string">&quot;bytes&quot;</span>
  5270. <span class="hljs-string">&quot;net/http&quot;</span>
  5271. )
  5272. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5273. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5274. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5275. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5276. }
  5277. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5278. 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)
  5279. req.Header = headers
  5280. client := &amp;http.Client{}
  5281. resp, err := client.Do(req)
  5282. <span class="hljs-comment">// ...</span>
  5283. }
  5284. </code></pre>
  5285. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5286. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5287. );
  5288. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5289. <span class="hljs-comment">// Define array of request body.</span>
  5290. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5291. <span class="hljs-keyword">try</span> {
  5292. <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>(
  5293. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5294. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5295. )
  5296. );
  5297. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5298. }
  5299. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5300. <span class="hljs-comment">// handle exception or api errors.</span>
  5301. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5302. }
  5303. <span class="hljs-comment">// ...</span>
  5304. </code></pre>
  5305. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}</code></p>
  5306. <p><em>Delete a checklist</em></p>
  5307. <p>The checklist will be removed, not put in the recycle bin.</p>
  5308. <h3 id="delete_checklist-parameters">Parameters</h3>
  5309. <table>
  5310. <thead>
  5311. <tr>
  5312. <th>Name</th>
  5313. <th>In</th>
  5314. <th>Type</th>
  5315. <th>Required</th>
  5316. <th>Description</th>
  5317. </tr>
  5318. </thead>
  5319. <tbody>
  5320. <tr>
  5321. <td>board</td>
  5322. <td>path</td>
  5323. <td>string</td>
  5324. <td>true</td>
  5325. <td>the board ID</td>
  5326. </tr>
  5327. <tr>
  5328. <td>card</td>
  5329. <td>path</td>
  5330. <td>string</td>
  5331. <td>true</td>
  5332. <td>the card ID</td>
  5333. </tr>
  5334. <tr>
  5335. <td>checklist</td>
  5336. <td>path</td>
  5337. <td>string</td>
  5338. <td>true</td>
  5339. <td>the ID of the checklist to remove</td>
  5340. </tr>
  5341. </tbody>
  5342. </table>
  5343. <h4 id="detailed-descriptions-12">Detailed descriptions</h4>
  5344. <p><strong>board</strong>: the board ID</p>
  5345. <p><strong>card</strong>: the card ID</p>
  5346. <p><strong>checklist</strong>: the ID of the checklist to remove</p>
  5347. <blockquote>
  5348. <p>Example responses</p>
  5349. </blockquote>
  5350. <blockquote>
  5351. <p>200 Response</p>
  5352. </blockquote>
  5353. <pre class="highlight tab tab-json"><code>{
  5354. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5355. }
  5356. </code></pre>
  5357. <h3 id="delete_checklist-responses">Responses</h3>
  5358. <table>
  5359. <thead>
  5360. <tr>
  5361. <th>Status</th>
  5362. <th>Meaning</th>
  5363. <th>Description</th>
  5364. <th>Schema</th>
  5365. </tr>
  5366. </thead>
  5367. <tbody>
  5368. <tr>
  5369. <td>200</td>
  5370. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5371. <td>200 response</td>
  5372. <td>Inline</td>
  5373. </tr>
  5374. </tbody>
  5375. </table>
  5376. <h3 id="delete_checklist-responseschema">Response Schema</h3>
  5377. <p>Status Code <strong>200</strong></p>
  5378. <table>
  5379. <thead>
  5380. <tr>
  5381. <th>Name</th>
  5382. <th>Type</th>
  5383. <th>Required</th>
  5384. <th>Restrictions</th>
  5385. <th>Description</th>
  5386. </tr>
  5387. </thead>
  5388. <tbody>
  5389. <tr>
  5390. <td>» _id</td>
  5391. <td>string</td>
  5392. <td>false</td>
  5393. <td>none</td>
  5394. <td>none</td>
  5395. </tr>
  5396. </tbody>
  5397. </table>
  5398. <aside class="warning">
  5399. To perform this operation, you must be authenticated by means of one of the following methods:
  5400. UserSecurity
  5401. </aside>
  5402. <h1 id="wekan-rest-api-checklistitems">ChecklistItems</h1>
  5403. <h2 id="get_checklist_item">get_checklist_item</h2>
  5404. <p><a id="opIdget_checklist_item"></a></p>
  5405. <blockquote>
  5406. <p>Code samples</p>
  5407. </blockquote>
  5408. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5409. curl -X GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5410. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5411. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5412. </code></pre>
  5413. <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>
  5414. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5415. </span></code></pre>
  5416. <pre class="highlight tab tab-javascript"><code>
  5417. <span class="hljs-keyword">const</span> headers = {
  5418. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5419. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5420. };
  5421. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5422. {
  5423. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5424. <span class="hljs-attr">headers</span>: headers
  5425. })
  5426. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5427. <span class="hljs-keyword">return</span> res.json();
  5428. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5429. <span class="hljs-built_in">console</span>.log(body);
  5430. });
  5431. </code></pre>
  5432. <pre class="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>);
  5433. <span class="hljs-keyword">const</span> headers = {
  5434. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5435. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5436. };
  5437. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5438. {
  5439. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  5440. <span class="hljs-attr">headers</span>: headers
  5441. })
  5442. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5443. <span class="hljs-keyword">return</span> res.json();
  5444. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5445. <span class="hljs-built_in">console</span>.log(body);
  5446. });
  5447. </code></pre>
  5448. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5449. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5450. headers = {
  5451. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5452. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5453. }
  5454. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5455. <span class="hljs-symbol">params:</span> {
  5456. }, <span class="hljs-symbol">headers:</span> headers
  5457. p JSON.parse(result)
  5458. </code></pre>
  5459. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5460. headers = {
  5461. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5462. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5463. }
  5464. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5465. <span class="hljs-built_in">print</span>(r.json())
  5466. </code></pre>
  5467. <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>);
  5468. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5469. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  5470. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5471. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5472. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5473. String inputLine;
  5474. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5475. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5476. response.append(inputLine);
  5477. }
  5478. in.close();
  5479. System.out.println(response.toString());
  5480. </code></pre>
  5481. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5482. <span class="hljs-keyword">import</span> (
  5483. <span class="hljs-string">&quot;bytes&quot;</span>
  5484. <span class="hljs-string">&quot;net/http&quot;</span>
  5485. )
  5486. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5487. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5488. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5489. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5490. }
  5491. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5492. 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)
  5493. req.Header = headers
  5494. client := &amp;http.Client{}
  5495. resp, err := client.Do(req)
  5496. <span class="hljs-comment">// ...</span>
  5497. }
  5498. </code></pre>
  5499. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5500. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5501. );
  5502. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5503. <span class="hljs-comment">// Define array of request body.</span>
  5504. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5505. <span class="hljs-keyword">try</span> {
  5506. <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>(
  5507. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5508. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5509. )
  5510. );
  5511. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5512. }
  5513. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5514. <span class="hljs-comment">// handle exception or api errors.</span>
  5515. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5516. }
  5517. <span class="hljs-comment">// ...</span>
  5518. </code></pre>
  5519. <p><code>GET /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5520. <p><em>Get a checklist item</em></p>
  5521. <h3 id="get_checklist_item-parameters">Parameters</h3>
  5522. <table>
  5523. <thead>
  5524. <tr>
  5525. <th>Name</th>
  5526. <th>In</th>
  5527. <th>Type</th>
  5528. <th>Required</th>
  5529. <th>Description</th>
  5530. </tr>
  5531. </thead>
  5532. <tbody>
  5533. <tr>
  5534. <td>board</td>
  5535. <td>path</td>
  5536. <td>string</td>
  5537. <td>true</td>
  5538. <td>the board ID</td>
  5539. </tr>
  5540. <tr>
  5541. <td>card</td>
  5542. <td>path</td>
  5543. <td>string</td>
  5544. <td>true</td>
  5545. <td>the card ID</td>
  5546. </tr>
  5547. <tr>
  5548. <td>checklist</td>
  5549. <td>path</td>
  5550. <td>string</td>
  5551. <td>true</td>
  5552. <td>the checklist ID</td>
  5553. </tr>
  5554. <tr>
  5555. <td>item</td>
  5556. <td>path</td>
  5557. <td>string</td>
  5558. <td>true</td>
  5559. <td>the ID of the item</td>
  5560. </tr>
  5561. </tbody>
  5562. </table>
  5563. <h4 id="detailed-descriptions-13">Detailed descriptions</h4>
  5564. <p><strong>board</strong>: the board ID</p>
  5565. <p><strong>card</strong>: the card ID</p>
  5566. <p><strong>checklist</strong>: the checklist ID</p>
  5567. <p><strong>item</strong>: the ID of the item</p>
  5568. <blockquote>
  5569. <p>Example responses</p>
  5570. </blockquote>
  5571. <blockquote>
  5572. <p>200 Response</p>
  5573. </blockquote>
  5574. <pre class="highlight tab tab-json"><code>{
  5575. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5576. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  5577. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  5578. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5579. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5580. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5581. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5582. }
  5583. </code></pre>
  5584. <h3 id="get_checklist_item-responses">Responses</h3>
  5585. <table>
  5586. <thead>
  5587. <tr>
  5588. <th>Status</th>
  5589. <th>Meaning</th>
  5590. <th>Description</th>
  5591. <th>Schema</th>
  5592. </tr>
  5593. </thead>
  5594. <tbody>
  5595. <tr>
  5596. <td>200</td>
  5597. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5598. <td>200 response</td>
  5599. <td><a href="#schemachecklistitems">ChecklistItems</a></td>
  5600. </tr>
  5601. </tbody>
  5602. </table>
  5603. <aside class="warning">
  5604. To perform this operation, you must be authenticated by means of one of the following methods:
  5605. UserSecurity
  5606. </aside>
  5607. <h2 id="edit_checklist_item">edit_checklist_item</h2>
  5608. <p><a id="opIdedit_checklist_item"></a></p>
  5609. <blockquote>
  5610. <p>Code samples</p>
  5611. </blockquote>
  5612. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5613. curl -X PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5614. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  5615. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5616. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5617. </code></pre>
  5618. <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>
  5619. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  5620. Accept: application/json
  5621. </span></code></pre>
  5622. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  5623. &quot;isFinished&quot;: &quot;string&quot;,
  5624. &quot;title&quot;: &quot;string&quot;
  5625. }&#x27;</span>;
  5626. <span class="hljs-keyword">const</span> headers = {
  5627. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5628. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5629. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5630. };
  5631. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5632. {
  5633. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5634. <span class="hljs-attr">body</span>: inputBody,
  5635. <span class="hljs-attr">headers</span>: headers
  5636. })
  5637. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5638. <span class="hljs-keyword">return</span> res.json();
  5639. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5640. <span class="hljs-built_in">console</span>.log(body);
  5641. });
  5642. </code></pre>
  5643. <pre class="highlight tab tab-javascript--nodejs"><code><span class="hljs-keyword">const</span> fetch = <span class="hljs-built_in">require</span>(<span class="hljs-string">&#x27;node-fetch&#x27;</span>);
  5644. <span class="hljs-keyword">const</span> inputBody = {
  5645. <span class="hljs-string">&quot;isFinished&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  5646. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5647. };
  5648. <span class="hljs-keyword">const</span> headers = {
  5649. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5650. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5651. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5652. };
  5653. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5654. {
  5655. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  5656. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  5657. <span class="hljs-attr">headers</span>: headers
  5658. })
  5659. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5660. <span class="hljs-keyword">return</span> res.json();
  5661. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5662. <span class="hljs-built_in">console</span>.log(body);
  5663. });
  5664. </code></pre>
  5665. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5666. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5667. headers = {
  5668. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5669. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5670. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5671. }
  5672. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5673. <span class="hljs-symbol">params:</span> {
  5674. }, <span class="hljs-symbol">headers:</span> headers
  5675. p JSON.parse(result)
  5676. </code></pre>
  5677. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5678. headers = {
  5679. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5680. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5681. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5682. }
  5683. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5684. <span class="hljs-built_in">print</span>(r.json())
  5685. </code></pre>
  5686. <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>);
  5687. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5688. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  5689. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5690. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5691. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5692. String inputLine;
  5693. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5694. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5695. response.append(inputLine);
  5696. }
  5697. in.close();
  5698. System.out.println(response.toString());
  5699. </code></pre>
  5700. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5701. <span class="hljs-keyword">import</span> (
  5702. <span class="hljs-string">&quot;bytes&quot;</span>
  5703. <span class="hljs-string">&quot;net/http&quot;</span>
  5704. )
  5705. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5706. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5707. <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>},
  5708. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5709. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5710. }
  5711. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5712. 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)
  5713. req.Header = headers
  5714. client := &amp;http.Client{}
  5715. resp, err := client.Do(req)
  5716. <span class="hljs-comment">// ...</span>
  5717. }
  5718. </code></pre>
  5719. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  5720. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5721. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5722. );
  5723. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5724. <span class="hljs-comment">// Define array of request body.</span>
  5725. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5726. <span class="hljs-keyword">try</span> {
  5727. <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>(
  5728. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5729. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5730. )
  5731. );
  5732. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5733. }
  5734. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5735. <span class="hljs-comment">// handle exception or api errors.</span>
  5736. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5737. }
  5738. <span class="hljs-comment">// ...</span>
  5739. </code></pre>
  5740. <p><code>PUT /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5741. <p><em>Edit a checklist item</em></p>
  5742. <blockquote>
  5743. <p>Body parameter</p>
  5744. </blockquote>
  5745. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">isFinished:</span> <span class="hljs-string">string</span>
  5746. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  5747. </code></pre>
  5748. <h3 id="edit_checklist_item-parameters">Parameters</h3>
  5749. <table>
  5750. <thead>
  5751. <tr>
  5752. <th>Name</th>
  5753. <th>In</th>
  5754. <th>Type</th>
  5755. <th>Required</th>
  5756. <th>Description</th>
  5757. </tr>
  5758. </thead>
  5759. <tbody>
  5760. <tr>
  5761. <td>board</td>
  5762. <td>path</td>
  5763. <td>string</td>
  5764. <td>true</td>
  5765. <td>the board ID</td>
  5766. </tr>
  5767. <tr>
  5768. <td>card</td>
  5769. <td>path</td>
  5770. <td>string</td>
  5771. <td>true</td>
  5772. <td>the card ID</td>
  5773. </tr>
  5774. <tr>
  5775. <td>checklist</td>
  5776. <td>path</td>
  5777. <td>string</td>
  5778. <td>true</td>
  5779. <td>the checklist ID</td>
  5780. </tr>
  5781. <tr>
  5782. <td>item</td>
  5783. <td>path</td>
  5784. <td>string</td>
  5785. <td>true</td>
  5786. <td>the ID of the item</td>
  5787. </tr>
  5788. <tr>
  5789. <td>body</td>
  5790. <td>body</td>
  5791. <td>object</td>
  5792. <td>false</td>
  5793. <td>none</td>
  5794. </tr>
  5795. <tr>
  5796. <td>» isFinished</td>
  5797. <td>body</td>
  5798. <td>string</td>
  5799. <td>false</td>
  5800. <td>is the item checked?</td>
  5801. </tr>
  5802. <tr>
  5803. <td>» title</td>
  5804. <td>body</td>
  5805. <td>string</td>
  5806. <td>false</td>
  5807. <td>the new text of the item</td>
  5808. </tr>
  5809. </tbody>
  5810. </table>
  5811. <h4 id="detailed-descriptions-14">Detailed descriptions</h4>
  5812. <p><strong>board</strong>: the board ID</p>
  5813. <p><strong>card</strong>: the card ID</p>
  5814. <p><strong>checklist</strong>: the checklist ID</p>
  5815. <p><strong>item</strong>: the ID of the item</p>
  5816. <blockquote>
  5817. <p>Example responses</p>
  5818. </blockquote>
  5819. <blockquote>
  5820. <p>200 Response</p>
  5821. </blockquote>
  5822. <pre class="highlight tab tab-json"><code>{
  5823. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  5824. }
  5825. </code></pre>
  5826. <h3 id="edit_checklist_item-responses">Responses</h3>
  5827. <table>
  5828. <thead>
  5829. <tr>
  5830. <th>Status</th>
  5831. <th>Meaning</th>
  5832. <th>Description</th>
  5833. <th>Schema</th>
  5834. </tr>
  5835. </thead>
  5836. <tbody>
  5837. <tr>
  5838. <td>200</td>
  5839. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  5840. <td>200 response</td>
  5841. <td>Inline</td>
  5842. </tr>
  5843. </tbody>
  5844. </table>
  5845. <h3 id="edit_checklist_item-responseschema">Response Schema</h3>
  5846. <p>Status Code <strong>200</strong></p>
  5847. <table>
  5848. <thead>
  5849. <tr>
  5850. <th>Name</th>
  5851. <th>Type</th>
  5852. <th>Required</th>
  5853. <th>Restrictions</th>
  5854. <th>Description</th>
  5855. </tr>
  5856. </thead>
  5857. <tbody>
  5858. <tr>
  5859. <td>» _id</td>
  5860. <td>string</td>
  5861. <td>false</td>
  5862. <td>none</td>
  5863. <td>none</td>
  5864. </tr>
  5865. </tbody>
  5866. </table>
  5867. <aside class="warning">
  5868. To perform this operation, you must be authenticated by means of one of the following methods:
  5869. UserSecurity
  5870. </aside>
  5871. <h2 id="delete_checklist_item">delete_checklist_item</h2>
  5872. <p><a id="opIddelete_checklist_item"></a></p>
  5873. <blockquote>
  5874. <p>Code samples</p>
  5875. </blockquote>
  5876. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  5877. curl -X DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item} \
  5878. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  5879. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  5880. </code></pre>
  5881. <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>
  5882. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  5883. </span></code></pre>
  5884. <pre class="highlight tab tab-javascript"><code>
  5885. <span class="hljs-keyword">const</span> headers = {
  5886. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5887. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5888. };
  5889. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5890. {
  5891. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5892. <span class="hljs-attr">headers</span>: headers
  5893. })
  5894. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5895. <span class="hljs-keyword">return</span> res.json();
  5896. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5897. <span class="hljs-built_in">console</span>.log(body);
  5898. });
  5899. </code></pre>
  5900. <pre class="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>);
  5901. <span class="hljs-keyword">const</span> headers = {
  5902. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  5903. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5904. };
  5905. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5906. {
  5907. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  5908. <span class="hljs-attr">headers</span>: headers
  5909. })
  5910. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  5911. <span class="hljs-keyword">return</span> res.json();
  5912. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  5913. <span class="hljs-built_in">console</span>.log(body);
  5914. });
  5915. </code></pre>
  5916. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  5917. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  5918. headers = {
  5919. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5920. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5921. }
  5922. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>,
  5923. <span class="hljs-symbol">params:</span> {
  5924. }, <span class="hljs-symbol">headers:</span> headers
  5925. p JSON.parse(result)
  5926. </code></pre>
  5927. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  5928. headers = {
  5929. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5930. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  5931. }
  5932. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}&#x27;</span>, headers = headers)
  5933. <span class="hljs-built_in">print</span>(r.json())
  5934. </code></pre>
  5935. <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>);
  5936. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  5937. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  5938. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  5939. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  5940. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  5941. String inputLine;
  5942. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  5943. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  5944. response.append(inputLine);
  5945. }
  5946. in.close();
  5947. System.out.println(response.toString());
  5948. </code></pre>
  5949. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  5950. <span class="hljs-keyword">import</span> (
  5951. <span class="hljs-string">&quot;bytes&quot;</span>
  5952. <span class="hljs-string">&quot;net/http&quot;</span>
  5953. )
  5954. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  5955. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  5956. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  5957. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  5958. }
  5959. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  5960. 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)
  5961. req.Header = headers
  5962. client := &amp;http.Client{}
  5963. resp, err := client.Do(req)
  5964. <span class="hljs-comment">// ...</span>
  5965. }
  5966. </code></pre>
  5967. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  5968. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  5969. );
  5970. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  5971. <span class="hljs-comment">// Define array of request body.</span>
  5972. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  5973. <span class="hljs-keyword">try</span> {
  5974. <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>(
  5975. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  5976. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  5977. )
  5978. );
  5979. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  5980. }
  5981. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  5982. <span class="hljs-comment">// handle exception or api errors.</span>
  5983. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  5984. }
  5985. <span class="hljs-comment">// ...</span>
  5986. </code></pre>
  5987. <p><code>DELETE /api/boards/{board}/cards/{card}/checklists/{checklist}/items/{item}</code></p>
  5988. <p><em>Delete a checklist item</em></p>
  5989. <p>Note: this operation can't be reverted.</p>
  5990. <h3 id="delete_checklist_item-parameters">Parameters</h3>
  5991. <table>
  5992. <thead>
  5993. <tr>
  5994. <th>Name</th>
  5995. <th>In</th>
  5996. <th>Type</th>
  5997. <th>Required</th>
  5998. <th>Description</th>
  5999. </tr>
  6000. </thead>
  6001. <tbody>
  6002. <tr>
  6003. <td>board</td>
  6004. <td>path</td>
  6005. <td>string</td>
  6006. <td>true</td>
  6007. <td>the board ID</td>
  6008. </tr>
  6009. <tr>
  6010. <td>card</td>
  6011. <td>path</td>
  6012. <td>string</td>
  6013. <td>true</td>
  6014. <td>the card ID</td>
  6015. </tr>
  6016. <tr>
  6017. <td>checklist</td>
  6018. <td>path</td>
  6019. <td>string</td>
  6020. <td>true</td>
  6021. <td>the checklist ID</td>
  6022. </tr>
  6023. <tr>
  6024. <td>item</td>
  6025. <td>path</td>
  6026. <td>string</td>
  6027. <td>true</td>
  6028. <td>the ID of the item to be removed</td>
  6029. </tr>
  6030. </tbody>
  6031. </table>
  6032. <h4 id="detailed-descriptions-15">Detailed descriptions</h4>
  6033. <p><strong>board</strong>: the board ID</p>
  6034. <p><strong>card</strong>: the card ID</p>
  6035. <p><strong>checklist</strong>: the checklist ID</p>
  6036. <p><strong>item</strong>: the ID of the item to be removed</p>
  6037. <blockquote>
  6038. <p>Example responses</p>
  6039. </blockquote>
  6040. <blockquote>
  6041. <p>200 Response</p>
  6042. </blockquote>
  6043. <pre class="highlight tab tab-json"><code>{
  6044. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6045. }
  6046. </code></pre>
  6047. <h3 id="delete_checklist_item-responses">Responses</h3>
  6048. <table>
  6049. <thead>
  6050. <tr>
  6051. <th>Status</th>
  6052. <th>Meaning</th>
  6053. <th>Description</th>
  6054. <th>Schema</th>
  6055. </tr>
  6056. </thead>
  6057. <tbody>
  6058. <tr>
  6059. <td>200</td>
  6060. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6061. <td>200 response</td>
  6062. <td>Inline</td>
  6063. </tr>
  6064. </tbody>
  6065. </table>
  6066. <h3 id="delete_checklist_item-responseschema">Response Schema</h3>
  6067. <p>Status Code <strong>200</strong></p>
  6068. <table>
  6069. <thead>
  6070. <tr>
  6071. <th>Name</th>
  6072. <th>Type</th>
  6073. <th>Required</th>
  6074. <th>Restrictions</th>
  6075. <th>Description</th>
  6076. </tr>
  6077. </thead>
  6078. <tbody>
  6079. <tr>
  6080. <td>» _id</td>
  6081. <td>string</td>
  6082. <td>false</td>
  6083. <td>none</td>
  6084. <td>none</td>
  6085. </tr>
  6086. </tbody>
  6087. </table>
  6088. <aside class="warning">
  6089. To perform this operation, you must be authenticated by means of one of the following methods:
  6090. UserSecurity
  6091. </aside>
  6092. <h1 id="wekan-rest-api-cardcomments">CardComments</h1>
  6093. <h2 id="get_all_comments">get_all_comments</h2>
  6094. <p><a id="opIdget_all_comments"></a></p>
  6095. <blockquote>
  6096. <p>Code samples</p>
  6097. </blockquote>
  6098. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6099. curl -X GET /api/boards/{board}/cards/{card}/comments \
  6100. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6101. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6102. </code></pre>
  6103. <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>
  6104. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6105. </span></code></pre>
  6106. <pre class="highlight tab tab-javascript"><code>
  6107. <span class="hljs-keyword">const</span> headers = {
  6108. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6109. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6110. };
  6111. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6112. {
  6113. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6114. <span class="hljs-attr">headers</span>: headers
  6115. })
  6116. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6117. <span class="hljs-keyword">return</span> res.json();
  6118. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6119. <span class="hljs-built_in">console</span>.log(body);
  6120. });
  6121. </code></pre>
  6122. <pre class="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>);
  6123. <span class="hljs-keyword">const</span> headers = {
  6124. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6125. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6126. };
  6127. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6128. {
  6129. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6130. <span class="hljs-attr">headers</span>: headers
  6131. })
  6132. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6133. <span class="hljs-keyword">return</span> res.json();
  6134. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6135. <span class="hljs-built_in">console</span>.log(body);
  6136. });
  6137. </code></pre>
  6138. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6139. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6140. headers = {
  6141. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6142. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6143. }
  6144. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6145. <span class="hljs-symbol">params:</span> {
  6146. }, <span class="hljs-symbol">headers:</span> headers
  6147. p JSON.parse(result)
  6148. </code></pre>
  6149. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6150. headers = {
  6151. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6152. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6153. }
  6154. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6155. <span class="hljs-built_in">print</span>(r.json())
  6156. </code></pre>
  6157. <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>);
  6158. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6159. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6160. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6161. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6162. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6163. String inputLine;
  6164. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6165. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6166. response.append(inputLine);
  6167. }
  6168. in.close();
  6169. System.out.println(response.toString());
  6170. </code></pre>
  6171. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6172. <span class="hljs-keyword">import</span> (
  6173. <span class="hljs-string">&quot;bytes&quot;</span>
  6174. <span class="hljs-string">&quot;net/http&quot;</span>
  6175. )
  6176. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6177. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6178. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6179. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6180. }
  6181. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6182. 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)
  6183. req.Header = headers
  6184. client := &amp;http.Client{}
  6185. resp, err := client.Do(req)
  6186. <span class="hljs-comment">// ...</span>
  6187. }
  6188. </code></pre>
  6189. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6190. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6191. );
  6192. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6193. <span class="hljs-comment">// Define array of request body.</span>
  6194. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6195. <span class="hljs-keyword">try</span> {
  6196. <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>(
  6197. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6198. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6199. )
  6200. );
  6201. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6202. }
  6203. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6204. <span class="hljs-comment">// handle exception or api errors.</span>
  6205. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6206. }
  6207. <span class="hljs-comment">// ...</span>
  6208. </code></pre>
  6209. <p><code>GET /api/boards/{board}/cards/{card}/comments</code></p>
  6210. <p><em>Get all comments attached to a card</em></p>
  6211. <h3 id="get_all_comments-parameters">Parameters</h3>
  6212. <table>
  6213. <thead>
  6214. <tr>
  6215. <th>Name</th>
  6216. <th>In</th>
  6217. <th>Type</th>
  6218. <th>Required</th>
  6219. <th>Description</th>
  6220. </tr>
  6221. </thead>
  6222. <tbody>
  6223. <tr>
  6224. <td>board</td>
  6225. <td>path</td>
  6226. <td>string</td>
  6227. <td>true</td>
  6228. <td>the board ID of the card</td>
  6229. </tr>
  6230. <tr>
  6231. <td>card</td>
  6232. <td>path</td>
  6233. <td>string</td>
  6234. <td>true</td>
  6235. <td>the ID of the card</td>
  6236. </tr>
  6237. </tbody>
  6238. </table>
  6239. <h4 id="detailed-descriptions-16">Detailed descriptions</h4>
  6240. <p><strong>board</strong>: the board ID of the card</p>
  6241. <p><strong>card</strong>: the ID of the card</p>
  6242. <blockquote>
  6243. <p>Example responses</p>
  6244. </blockquote>
  6245. <blockquote>
  6246. <p>200 Response</p>
  6247. </blockquote>
  6248. <pre class="highlight tab tab-json"><code>[
  6249. {
  6250. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6251. <span class="hljs-attr">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6252. <span class="hljs-attr">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6253. }
  6254. ]
  6255. </code></pre>
  6256. <h3 id="get_all_comments-responses">Responses</h3>
  6257. <table>
  6258. <thead>
  6259. <tr>
  6260. <th>Status</th>
  6261. <th>Meaning</th>
  6262. <th>Description</th>
  6263. <th>Schema</th>
  6264. </tr>
  6265. </thead>
  6266. <tbody>
  6267. <tr>
  6268. <td>200</td>
  6269. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6270. <td>200 response</td>
  6271. <td>Inline</td>
  6272. </tr>
  6273. </tbody>
  6274. </table>
  6275. <h3 id="get_all_comments-responseschema">Response Schema</h3>
  6276. <p>Status Code <strong>200</strong></p>
  6277. <table>
  6278. <thead>
  6279. <tr>
  6280. <th>Name</th>
  6281. <th>Type</th>
  6282. <th>Required</th>
  6283. <th>Restrictions</th>
  6284. <th>Description</th>
  6285. </tr>
  6286. </thead>
  6287. <tbody>
  6288. <tr>
  6289. <td>» _id</td>
  6290. <td>string</td>
  6291. <td>false</td>
  6292. <td>none</td>
  6293. <td>none</td>
  6294. </tr>
  6295. <tr>
  6296. <td>» comment</td>
  6297. <td>string</td>
  6298. <td>false</td>
  6299. <td>none</td>
  6300. <td>none</td>
  6301. </tr>
  6302. <tr>
  6303. <td>» authorId</td>
  6304. <td>string</td>
  6305. <td>false</td>
  6306. <td>none</td>
  6307. <td>none</td>
  6308. </tr>
  6309. </tbody>
  6310. </table>
  6311. <aside class="warning">
  6312. To perform this operation, you must be authenticated by means of one of the following methods:
  6313. UserSecurity
  6314. </aside>
  6315. <h2 id="new_comment">new_comment</h2>
  6316. <p><a id="opIdnew_comment"></a></p>
  6317. <blockquote>
  6318. <p>Code samples</p>
  6319. </blockquote>
  6320. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6321. curl -X POST /api/boards/{board}/cards/{card}/comments \
  6322. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  6323. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6324. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6325. </code></pre>
  6326. <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>
  6327. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  6328. Accept: application/json
  6329. </span></code></pre>
  6330. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  6331. &quot;authorId&quot;: &quot;string&quot;,
  6332. &quot;comment&quot;: &quot;string&quot;
  6333. }&#x27;</span>;
  6334. <span class="hljs-keyword">const</span> headers = {
  6335. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6336. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6337. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6338. };
  6339. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6340. {
  6341. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6342. <span class="hljs-attr">body</span>: inputBody,
  6343. <span class="hljs-attr">headers</span>: headers
  6344. })
  6345. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6346. <span class="hljs-keyword">return</span> res.json();
  6347. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6348. <span class="hljs-built_in">console</span>.log(body);
  6349. });
  6350. </code></pre>
  6351. <pre class="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>);
  6352. <span class="hljs-keyword">const</span> inputBody = {
  6353. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6354. <span class="hljs-string">&quot;comment&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6355. };
  6356. <span class="hljs-keyword">const</span> headers = {
  6357. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6358. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6359. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6360. };
  6361. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6362. {
  6363. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  6364. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  6365. <span class="hljs-attr">headers</span>: headers
  6366. })
  6367. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6368. <span class="hljs-keyword">return</span> res.json();
  6369. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6370. <span class="hljs-built_in">console</span>.log(body);
  6371. });
  6372. </code></pre>
  6373. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6374. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6375. headers = {
  6376. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6377. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6378. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6379. }
  6380. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>,
  6381. <span class="hljs-symbol">params:</span> {
  6382. }, <span class="hljs-symbol">headers:</span> headers
  6383. p JSON.parse(result)
  6384. </code></pre>
  6385. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6386. headers = {
  6387. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6388. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6389. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6390. }
  6391. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments&#x27;</span>, headers = headers)
  6392. <span class="hljs-built_in">print</span>(r.json())
  6393. </code></pre>
  6394. <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>);
  6395. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6396. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  6397. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6398. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6399. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6400. String inputLine;
  6401. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6402. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6403. response.append(inputLine);
  6404. }
  6405. in.close();
  6406. System.out.println(response.toString());
  6407. </code></pre>
  6408. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6409. <span class="hljs-keyword">import</span> (
  6410. <span class="hljs-string">&quot;bytes&quot;</span>
  6411. <span class="hljs-string">&quot;net/http&quot;</span>
  6412. )
  6413. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6414. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6415. <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>},
  6416. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6417. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6418. }
  6419. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6420. 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)
  6421. req.Header = headers
  6422. client := &amp;http.Client{}
  6423. resp, err := client.Do(req)
  6424. <span class="hljs-comment">// ...</span>
  6425. }
  6426. </code></pre>
  6427. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  6428. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6429. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6430. );
  6431. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6432. <span class="hljs-comment">// Define array of request body.</span>
  6433. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6434. <span class="hljs-keyword">try</span> {
  6435. <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>(
  6436. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6437. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6438. )
  6439. );
  6440. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6441. }
  6442. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6443. <span class="hljs-comment">// handle exception or api errors.</span>
  6444. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6445. }
  6446. <span class="hljs-comment">// ...</span>
  6447. </code></pre>
  6448. <p><code>POST /api/boards/{board}/cards/{card}/comments</code></p>
  6449. <p><em>Add a comment on a card</em></p>
  6450. <blockquote>
  6451. <p>Body parameter</p>
  6452. </blockquote>
  6453. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  6454. <span class="hljs-attr">comment:</span> <span class="hljs-string">string</span>
  6455. </code></pre>
  6456. <h3 id="new_comment-parameters">Parameters</h3>
  6457. <table>
  6458. <thead>
  6459. <tr>
  6460. <th>Name</th>
  6461. <th>In</th>
  6462. <th>Type</th>
  6463. <th>Required</th>
  6464. <th>Description</th>
  6465. </tr>
  6466. </thead>
  6467. <tbody>
  6468. <tr>
  6469. <td>board</td>
  6470. <td>path</td>
  6471. <td>string</td>
  6472. <td>true</td>
  6473. <td>the board ID of the card</td>
  6474. </tr>
  6475. <tr>
  6476. <td>card</td>
  6477. <td>path</td>
  6478. <td>string</td>
  6479. <td>true</td>
  6480. <td>the ID of the card</td>
  6481. </tr>
  6482. <tr>
  6483. <td>body</td>
  6484. <td>body</td>
  6485. <td>object</td>
  6486. <td>true</td>
  6487. <td>none</td>
  6488. </tr>
  6489. <tr>
  6490. <td>» authorId</td>
  6491. <td>body</td>
  6492. <td>string</td>
  6493. <td>true</td>
  6494. <td>the user who 'posted' the comment</td>
  6495. </tr>
  6496. <tr>
  6497. <td>» comment</td>
  6498. <td>body</td>
  6499. <td>string</td>
  6500. <td>true</td>
  6501. <td>the comment value</td>
  6502. </tr>
  6503. </tbody>
  6504. </table>
  6505. <h4 id="detailed-descriptions-17">Detailed descriptions</h4>
  6506. <p><strong>board</strong>: the board ID of the card</p>
  6507. <p><strong>card</strong>: the ID of the card</p>
  6508. <blockquote>
  6509. <p>Example responses</p>
  6510. </blockquote>
  6511. <blockquote>
  6512. <p>200 Response</p>
  6513. </blockquote>
  6514. <pre class="highlight tab tab-json"><code>{
  6515. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6516. }
  6517. </code></pre>
  6518. <h3 id="new_comment-responses">Responses</h3>
  6519. <table>
  6520. <thead>
  6521. <tr>
  6522. <th>Status</th>
  6523. <th>Meaning</th>
  6524. <th>Description</th>
  6525. <th>Schema</th>
  6526. </tr>
  6527. </thead>
  6528. <tbody>
  6529. <tr>
  6530. <td>200</td>
  6531. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6532. <td>200 response</td>
  6533. <td>Inline</td>
  6534. </tr>
  6535. </tbody>
  6536. </table>
  6537. <h3 id="new_comment-responseschema">Response Schema</h3>
  6538. <p>Status Code <strong>200</strong></p>
  6539. <table>
  6540. <thead>
  6541. <tr>
  6542. <th>Name</th>
  6543. <th>Type</th>
  6544. <th>Required</th>
  6545. <th>Restrictions</th>
  6546. <th>Description</th>
  6547. </tr>
  6548. </thead>
  6549. <tbody>
  6550. <tr>
  6551. <td>» _id</td>
  6552. <td>string</td>
  6553. <td>false</td>
  6554. <td>none</td>
  6555. <td>none</td>
  6556. </tr>
  6557. </tbody>
  6558. </table>
  6559. <aside class="warning">
  6560. To perform this operation, you must be authenticated by means of one of the following methods:
  6561. UserSecurity
  6562. </aside>
  6563. <h2 id="get_comment">get_comment</h2>
  6564. <p><a id="opIdget_comment"></a></p>
  6565. <blockquote>
  6566. <p>Code samples</p>
  6567. </blockquote>
  6568. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6569. curl -X GET /api/boards/{board}/cards/{card}/comments/{comment} \
  6570. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6571. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6572. </code></pre>
  6573. <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>
  6574. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6575. </span></code></pre>
  6576. <pre class="highlight tab tab-javascript"><code>
  6577. <span class="hljs-keyword">const</span> headers = {
  6578. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6579. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6580. };
  6581. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6582. {
  6583. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6584. <span class="hljs-attr">headers</span>: headers
  6585. })
  6586. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6587. <span class="hljs-keyword">return</span> res.json();
  6588. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6589. <span class="hljs-built_in">console</span>.log(body);
  6590. });
  6591. </code></pre>
  6592. <pre class="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>);
  6593. <span class="hljs-keyword">const</span> headers = {
  6594. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6595. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6596. };
  6597. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6598. {
  6599. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6600. <span class="hljs-attr">headers</span>: headers
  6601. })
  6602. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6603. <span class="hljs-keyword">return</span> res.json();
  6604. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6605. <span class="hljs-built_in">console</span>.log(body);
  6606. });
  6607. </code></pre>
  6608. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6609. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6610. headers = {
  6611. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6612. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6613. }
  6614. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6615. <span class="hljs-symbol">params:</span> {
  6616. }, <span class="hljs-symbol">headers:</span> headers
  6617. p JSON.parse(result)
  6618. </code></pre>
  6619. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6620. headers = {
  6621. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6622. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6623. }
  6624. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6625. <span class="hljs-built_in">print</span>(r.json())
  6626. </code></pre>
  6627. <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>);
  6628. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6629. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  6630. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6631. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6632. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6633. String inputLine;
  6634. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6635. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6636. response.append(inputLine);
  6637. }
  6638. in.close();
  6639. System.out.println(response.toString());
  6640. </code></pre>
  6641. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6642. <span class="hljs-keyword">import</span> (
  6643. <span class="hljs-string">&quot;bytes&quot;</span>
  6644. <span class="hljs-string">&quot;net/http&quot;</span>
  6645. )
  6646. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6647. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6648. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6649. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6650. }
  6651. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6652. 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)
  6653. req.Header = headers
  6654. client := &amp;http.Client{}
  6655. resp, err := client.Do(req)
  6656. <span class="hljs-comment">// ...</span>
  6657. }
  6658. </code></pre>
  6659. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6660. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6661. );
  6662. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6663. <span class="hljs-comment">// Define array of request body.</span>
  6664. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6665. <span class="hljs-keyword">try</span> {
  6666. <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>(
  6667. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6668. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6669. )
  6670. );
  6671. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6672. }
  6673. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6674. <span class="hljs-comment">// handle exception or api errors.</span>
  6675. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6676. }
  6677. <span class="hljs-comment">// ...</span>
  6678. </code></pre>
  6679. <p><code>GET /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6680. <p><em>Get a comment on a card</em></p>
  6681. <h3 id="get_comment-parameters">Parameters</h3>
  6682. <table>
  6683. <thead>
  6684. <tr>
  6685. <th>Name</th>
  6686. <th>In</th>
  6687. <th>Type</th>
  6688. <th>Required</th>
  6689. <th>Description</th>
  6690. </tr>
  6691. </thead>
  6692. <tbody>
  6693. <tr>
  6694. <td>board</td>
  6695. <td>path</td>
  6696. <td>string</td>
  6697. <td>true</td>
  6698. <td>the board ID of the card</td>
  6699. </tr>
  6700. <tr>
  6701. <td>card</td>
  6702. <td>path</td>
  6703. <td>string</td>
  6704. <td>true</td>
  6705. <td>the ID of the card</td>
  6706. </tr>
  6707. <tr>
  6708. <td>comment</td>
  6709. <td>path</td>
  6710. <td>string</td>
  6711. <td>true</td>
  6712. <td>the ID of the comment to retrieve</td>
  6713. </tr>
  6714. </tbody>
  6715. </table>
  6716. <h4 id="detailed-descriptions-18">Detailed descriptions</h4>
  6717. <p><strong>board</strong>: the board ID of the card</p>
  6718. <p><strong>card</strong>: the ID of the card</p>
  6719. <p><strong>comment</strong>: the ID of the comment to retrieve</p>
  6720. <blockquote>
  6721. <p>Example responses</p>
  6722. </blockquote>
  6723. <blockquote>
  6724. <p>200 Response</p>
  6725. </blockquote>
  6726. <pre class="highlight tab tab-json"><code>{
  6727. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6728. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6729. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6730. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6731. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  6732. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6733. }
  6734. </code></pre>
  6735. <h3 id="get_comment-responses">Responses</h3>
  6736. <table>
  6737. <thead>
  6738. <tr>
  6739. <th>Status</th>
  6740. <th>Meaning</th>
  6741. <th>Description</th>
  6742. <th>Schema</th>
  6743. </tr>
  6744. </thead>
  6745. <tbody>
  6746. <tr>
  6747. <td>200</td>
  6748. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6749. <td>200 response</td>
  6750. <td><a href="#schemacardcomments">CardComments</a></td>
  6751. </tr>
  6752. </tbody>
  6753. </table>
  6754. <aside class="warning">
  6755. To perform this operation, you must be authenticated by means of one of the following methods:
  6756. UserSecurity
  6757. </aside>
  6758. <h2 id="delete_comment">delete_comment</h2>
  6759. <p><a id="opIddelete_comment"></a></p>
  6760. <blockquote>
  6761. <p>Code samples</p>
  6762. </blockquote>
  6763. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6764. curl -X DELETE /api/boards/{board}/cards/{card}/comments/{comment} \
  6765. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6766. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6767. </code></pre>
  6768. <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>
  6769. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6770. </span></code></pre>
  6771. <pre class="highlight tab tab-javascript"><code>
  6772. <span class="hljs-keyword">const</span> headers = {
  6773. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6774. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6775. };
  6776. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6777. {
  6778. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6779. <span class="hljs-attr">headers</span>: headers
  6780. })
  6781. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6782. <span class="hljs-keyword">return</span> res.json();
  6783. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6784. <span class="hljs-built_in">console</span>.log(body);
  6785. });
  6786. </code></pre>
  6787. <pre class="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>);
  6788. <span class="hljs-keyword">const</span> headers = {
  6789. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6790. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6791. };
  6792. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6793. {
  6794. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  6795. <span class="hljs-attr">headers</span>: headers
  6796. })
  6797. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6798. <span class="hljs-keyword">return</span> res.json();
  6799. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6800. <span class="hljs-built_in">console</span>.log(body);
  6801. });
  6802. </code></pre>
  6803. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  6804. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  6805. headers = {
  6806. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6807. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6808. }
  6809. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>,
  6810. <span class="hljs-symbol">params:</span> {
  6811. }, <span class="hljs-symbol">headers:</span> headers
  6812. p JSON.parse(result)
  6813. </code></pre>
  6814. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  6815. headers = {
  6816. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6817. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6818. }
  6819. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/cards/{card}/comments/{comment}&#x27;</span>, headers = headers)
  6820. <span class="hljs-built_in">print</span>(r.json())
  6821. </code></pre>
  6822. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards/{card}/comments/{comment}&quot;</span>);
  6823. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  6824. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  6825. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  6826. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  6827. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  6828. String inputLine;
  6829. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  6830. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  6831. response.append(inputLine);
  6832. }
  6833. in.close();
  6834. System.out.println(response.toString());
  6835. </code></pre>
  6836. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  6837. <span class="hljs-keyword">import</span> (
  6838. <span class="hljs-string">&quot;bytes&quot;</span>
  6839. <span class="hljs-string">&quot;net/http&quot;</span>
  6840. )
  6841. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  6842. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  6843. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  6844. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  6845. }
  6846. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  6847. 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)
  6848. req.Header = headers
  6849. client := &amp;http.Client{}
  6850. resp, err := client.Do(req)
  6851. <span class="hljs-comment">// ...</span>
  6852. }
  6853. </code></pre>
  6854. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  6855. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  6856. );
  6857. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  6858. <span class="hljs-comment">// Define array of request body.</span>
  6859. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  6860. <span class="hljs-keyword">try</span> {
  6861. <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>(
  6862. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  6863. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  6864. )
  6865. );
  6866. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  6867. }
  6868. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  6869. <span class="hljs-comment">// handle exception or api errors.</span>
  6870. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  6871. }
  6872. <span class="hljs-comment">// ...</span>
  6873. </code></pre>
  6874. <p><code>DELETE /api/boards/{board}/cards/{card}/comments/{comment}</code></p>
  6875. <p><em>Delete a comment on a card</em></p>
  6876. <h3 id="delete_comment-parameters">Parameters</h3>
  6877. <table>
  6878. <thead>
  6879. <tr>
  6880. <th>Name</th>
  6881. <th>In</th>
  6882. <th>Type</th>
  6883. <th>Required</th>
  6884. <th>Description</th>
  6885. </tr>
  6886. </thead>
  6887. <tbody>
  6888. <tr>
  6889. <td>board</td>
  6890. <td>path</td>
  6891. <td>string</td>
  6892. <td>true</td>
  6893. <td>the board ID of the card</td>
  6894. </tr>
  6895. <tr>
  6896. <td>card</td>
  6897. <td>path</td>
  6898. <td>string</td>
  6899. <td>true</td>
  6900. <td>the ID of the card</td>
  6901. </tr>
  6902. <tr>
  6903. <td>comment</td>
  6904. <td>path</td>
  6905. <td>string</td>
  6906. <td>true</td>
  6907. <td>the ID of the comment to delete</td>
  6908. </tr>
  6909. </tbody>
  6910. </table>
  6911. <h4 id="detailed-descriptions-19">Detailed descriptions</h4>
  6912. <p><strong>board</strong>: the board ID of the card</p>
  6913. <p><strong>card</strong>: the ID of the card</p>
  6914. <p><strong>comment</strong>: the ID of the comment to delete</p>
  6915. <blockquote>
  6916. <p>Example responses</p>
  6917. </blockquote>
  6918. <blockquote>
  6919. <p>200 Response</p>
  6920. </blockquote>
  6921. <pre class="highlight tab tab-json"><code>{
  6922. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  6923. }
  6924. </code></pre>
  6925. <h3 id="delete_comment-responses">Responses</h3>
  6926. <table>
  6927. <thead>
  6928. <tr>
  6929. <th>Status</th>
  6930. <th>Meaning</th>
  6931. <th>Description</th>
  6932. <th>Schema</th>
  6933. </tr>
  6934. </thead>
  6935. <tbody>
  6936. <tr>
  6937. <td>200</td>
  6938. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  6939. <td>200 response</td>
  6940. <td>Inline</td>
  6941. </tr>
  6942. </tbody>
  6943. </table>
  6944. <h3 id="delete_comment-responseschema">Response Schema</h3>
  6945. <p>Status Code <strong>200</strong></p>
  6946. <table>
  6947. <thead>
  6948. <tr>
  6949. <th>Name</th>
  6950. <th>Type</th>
  6951. <th>Required</th>
  6952. <th>Restrictions</th>
  6953. <th>Description</th>
  6954. </tr>
  6955. </thead>
  6956. <tbody>
  6957. <tr>
  6958. <td>» _id</td>
  6959. <td>string</td>
  6960. <td>false</td>
  6961. <td>none</td>
  6962. <td>none</td>
  6963. </tr>
  6964. </tbody>
  6965. </table>
  6966. <aside class="warning">
  6967. To perform this operation, you must be authenticated by means of one of the following methods:
  6968. UserSecurity
  6969. </aside>
  6970. <h1 id="wekan-rest-api-cards">Cards</h1>
  6971. <h2 id="get_cards_by_custom_field">get_cards_by_custom_field</h2>
  6972. <p><a id="opIdget_cards_by_custom_field"></a></p>
  6973. <blockquote>
  6974. <p>Code samples</p>
  6975. </blockquote>
  6976. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  6977. curl -X GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue} \
  6978. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  6979. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  6980. </code></pre>
  6981. <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>
  6982. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  6983. </span></code></pre>
  6984. <pre class="highlight tab tab-javascript"><code>
  6985. <span class="hljs-keyword">const</span> headers = {
  6986. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  6987. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  6988. };
  6989. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  6990. {
  6991. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  6992. <span class="hljs-attr">headers</span>: headers
  6993. })
  6994. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  6995. <span class="hljs-keyword">return</span> res.json();
  6996. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  6997. <span class="hljs-built_in">console</span>.log(body);
  6998. });
  6999. </code></pre>
  7000. <pre class="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>);
  7001. <span class="hljs-keyword">const</span> headers = {
  7002. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7003. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7004. };
  7005. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7006. {
  7007. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7008. <span class="hljs-attr">headers</span>: headers
  7009. })
  7010. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7011. <span class="hljs-keyword">return</span> res.json();
  7012. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7013. <span class="hljs-built_in">console</span>.log(body);
  7014. });
  7015. </code></pre>
  7016. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7017. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7018. headers = {
  7019. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7020. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7021. }
  7022. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>,
  7023. <span class="hljs-symbol">params:</span> {
  7024. }, <span class="hljs-symbol">headers:</span> headers
  7025. p JSON.parse(result)
  7026. </code></pre>
  7027. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7028. headers = {
  7029. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7030. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7031. }
  7032. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}&#x27;</span>, headers = headers)
  7033. <span class="hljs-built_in">print</span>(r.json())
  7034. </code></pre>
  7035. <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>);
  7036. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7037. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7038. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7039. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7040. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7041. String inputLine;
  7042. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7043. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7044. response.append(inputLine);
  7045. }
  7046. in.close();
  7047. System.out.println(response.toString());
  7048. </code></pre>
  7049. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7050. <span class="hljs-keyword">import</span> (
  7051. <span class="hljs-string">&quot;bytes&quot;</span>
  7052. <span class="hljs-string">&quot;net/http&quot;</span>
  7053. )
  7054. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7055. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7056. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7057. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7058. }
  7059. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7060. 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)
  7061. req.Header = headers
  7062. client := &amp;http.Client{}
  7063. resp, err := client.Do(req)
  7064. <span class="hljs-comment">// ...</span>
  7065. }
  7066. </code></pre>
  7067. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7068. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7069. );
  7070. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7071. <span class="hljs-comment">// Define array of request body.</span>
  7072. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7073. <span class="hljs-keyword">try</span> {
  7074. <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>(
  7075. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7076. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7077. )
  7078. );
  7079. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7080. }
  7081. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7082. <span class="hljs-comment">// handle exception or api errors.</span>
  7083. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7084. }
  7085. <span class="hljs-comment">// ...</span>
  7086. </code></pre>
  7087. <p><code>GET /api/boards/{board}/cardsByCustomField/{customField}/{customFieldValue}</code></p>
  7088. <p><em>Get all Cards that matchs a value of a specific custom field</em></p>
  7089. <h3 id="get_cards_by_custom_field-parameters">Parameters</h3>
  7090. <table>
  7091. <thead>
  7092. <tr>
  7093. <th>Name</th>
  7094. <th>In</th>
  7095. <th>Type</th>
  7096. <th>Required</th>
  7097. <th>Description</th>
  7098. </tr>
  7099. </thead>
  7100. <tbody>
  7101. <tr>
  7102. <td>board</td>
  7103. <td>path</td>
  7104. <td>string</td>
  7105. <td>true</td>
  7106. <td>the board ID</td>
  7107. </tr>
  7108. <tr>
  7109. <td>customField</td>
  7110. <td>path</td>
  7111. <td>string</td>
  7112. <td>true</td>
  7113. <td>the list ID</td>
  7114. </tr>
  7115. <tr>
  7116. <td>customFieldValue</td>
  7117. <td>path</td>
  7118. <td>string</td>
  7119. <td>true</td>
  7120. <td>the value to look for</td>
  7121. </tr>
  7122. </tbody>
  7123. </table>
  7124. <h4 id="detailed-descriptions-20">Detailed descriptions</h4>
  7125. <p><strong>board</strong>: the board ID</p>
  7126. <p><strong>customField</strong>: the list ID</p>
  7127. <p><strong>customFieldValue</strong>: the value to look for</p>
  7128. <blockquote>
  7129. <p>Example responses</p>
  7130. </blockquote>
  7131. <blockquote>
  7132. <p>200 Response</p>
  7133. </blockquote>
  7134. <pre class="highlight tab tab-json"><code>[
  7135. {
  7136. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7137. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7138. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7139. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7140. <span class="hljs-attr">&quot;swinlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7141. }
  7142. ]
  7143. </code></pre>
  7144. <h3 id="get_cards_by_custom_field-responses">Responses</h3>
  7145. <table>
  7146. <thead>
  7147. <tr>
  7148. <th>Status</th>
  7149. <th>Meaning</th>
  7150. <th>Description</th>
  7151. <th>Schema</th>
  7152. </tr>
  7153. </thead>
  7154. <tbody>
  7155. <tr>
  7156. <td>200</td>
  7157. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7158. <td>200 response</td>
  7159. <td>Inline</td>
  7160. </tr>
  7161. </tbody>
  7162. </table>
  7163. <h3 id="get_cards_by_custom_field-responseschema">Response Schema</h3>
  7164. <p>Status Code <strong>200</strong></p>
  7165. <table>
  7166. <thead>
  7167. <tr>
  7168. <th>Name</th>
  7169. <th>Type</th>
  7170. <th>Required</th>
  7171. <th>Restrictions</th>
  7172. <th>Description</th>
  7173. </tr>
  7174. </thead>
  7175. <tbody>
  7176. <tr>
  7177. <td>» _id</td>
  7178. <td>string</td>
  7179. <td>false</td>
  7180. <td>none</td>
  7181. <td>none</td>
  7182. </tr>
  7183. <tr>
  7184. <td>» title</td>
  7185. <td>string</td>
  7186. <td>false</td>
  7187. <td>none</td>
  7188. <td>none</td>
  7189. </tr>
  7190. <tr>
  7191. <td>» description</td>
  7192. <td>string</td>
  7193. <td>false</td>
  7194. <td>none</td>
  7195. <td>none</td>
  7196. </tr>
  7197. <tr>
  7198. <td>» listId</td>
  7199. <td>string</td>
  7200. <td>false</td>
  7201. <td>none</td>
  7202. <td>none</td>
  7203. </tr>
  7204. <tr>
  7205. <td>» swinlaneId</td>
  7206. <td>string</td>
  7207. <td>false</td>
  7208. <td>none</td>
  7209. <td>none</td>
  7210. </tr>
  7211. </tbody>
  7212. </table>
  7213. <aside class="warning">
  7214. To perform this operation, you must be authenticated by means of one of the following methods:
  7215. UserSecurity
  7216. </aside>
  7217. <h2 id="get_board_cards_count">get_board_cards_count</h2>
  7218. <p><a id="opIdget_board_cards_count"></a></p>
  7219. <blockquote>
  7220. <p>Code samples</p>
  7221. </blockquote>
  7222. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7223. curl -X GET /api/boards/{board}/cards_count \
  7224. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7225. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7226. </code></pre>
  7227. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/cards_count</span> <span class="hljs-meta">HTTP/1.1</span>
  7228. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7229. </span></code></pre>
  7230. <pre class="highlight tab tab-javascript"><code>
  7231. <span class="hljs-keyword">const</span> headers = {
  7232. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7233. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7234. };
  7235. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7236. {
  7237. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7238. <span class="hljs-attr">headers</span>: headers
  7239. })
  7240. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7241. <span class="hljs-keyword">return</span> res.json();
  7242. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7243. <span class="hljs-built_in">console</span>.log(body);
  7244. });
  7245. </code></pre>
  7246. <pre class="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>);
  7247. <span class="hljs-keyword">const</span> headers = {
  7248. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7249. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7250. };
  7251. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7252. {
  7253. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7254. <span class="hljs-attr">headers</span>: headers
  7255. })
  7256. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7257. <span class="hljs-keyword">return</span> res.json();
  7258. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7259. <span class="hljs-built_in">console</span>.log(body);
  7260. });
  7261. </code></pre>
  7262. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7263. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7264. headers = {
  7265. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7266. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7267. }
  7268. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>,
  7269. <span class="hljs-symbol">params:</span> {
  7270. }, <span class="hljs-symbol">headers:</span> headers
  7271. p JSON.parse(result)
  7272. </code></pre>
  7273. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7274. headers = {
  7275. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7276. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7277. }
  7278. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>, headers = headers)
  7279. <span class="hljs-built_in">print</span>(r.json())
  7280. </code></pre>
  7281. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/cards_count&quot;</span>);
  7282. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7283. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7284. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7285. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7286. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7287. String inputLine;
  7288. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7289. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7290. response.append(inputLine);
  7291. }
  7292. in.close();
  7293. System.out.println(response.toString());
  7294. </code></pre>
  7295. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7296. <span class="hljs-keyword">import</span> (
  7297. <span class="hljs-string">&quot;bytes&quot;</span>
  7298. <span class="hljs-string">&quot;net/http&quot;</span>
  7299. )
  7300. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7301. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7302. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7303. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7304. }
  7305. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7306. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/cards_count&quot;</span>, data)
  7307. req.Header = headers
  7308. client := &amp;http.Client{}
  7309. resp, err := client.Do(req)
  7310. <span class="hljs-comment">// ...</span>
  7311. }
  7312. </code></pre>
  7313. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7314. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7315. );
  7316. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7317. <span class="hljs-comment">// Define array of request body.</span>
  7318. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7319. <span class="hljs-keyword">try</span> {
  7320. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/cards_count&#x27;</span>, <span class="hljs-keyword">array</span>(
  7321. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7322. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7323. )
  7324. );
  7325. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7326. }
  7327. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7328. <span class="hljs-comment">// handle exception or api errors.</span>
  7329. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7330. }
  7331. <span class="hljs-comment">// ...</span>
  7332. </code></pre>
  7333. <p><code>GET /api/boards/{board}/cards_count</code></p>
  7334. <p><em>Get a cards count to a board</em></p>
  7335. <h3 id="get_board_cards_count-parameters">Parameters</h3>
  7336. <table>
  7337. <thead>
  7338. <tr>
  7339. <th>Name</th>
  7340. <th>In</th>
  7341. <th>Type</th>
  7342. <th>Required</th>
  7343. <th>Description</th>
  7344. </tr>
  7345. </thead>
  7346. <tbody>
  7347. <tr>
  7348. <td>board</td>
  7349. <td>path</td>
  7350. <td>string</td>
  7351. <td>true</td>
  7352. <td>the board ID</td>
  7353. </tr>
  7354. </tbody>
  7355. </table>
  7356. <h4 id="detailed-descriptions-21">Detailed descriptions</h4>
  7357. <p><strong>board</strong>: the board ID</p>
  7358. <blockquote>
  7359. <p>Example responses</p>
  7360. </blockquote>
  7361. <blockquote>
  7362. <p>200 Response</p>
  7363. </blockquote>
  7364. <pre class="highlight tab tab-json"><code>{
  7365. <span class="hljs-attr">&quot;board_cards_count&quot;</span>: <span class="hljs-number">0</span>
  7366. }
  7367. </code></pre>
  7368. <h3 id="get_board_cards_count-responses">Responses</h3>
  7369. <table>
  7370. <thead>
  7371. <tr>
  7372. <th>Status</th>
  7373. <th>Meaning</th>
  7374. <th>Description</th>
  7375. <th>Schema</th>
  7376. </tr>
  7377. </thead>
  7378. <tbody>
  7379. <tr>
  7380. <td>200</td>
  7381. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7382. <td>200 response</td>
  7383. <td>Inline</td>
  7384. </tr>
  7385. </tbody>
  7386. </table>
  7387. <h3 id="get_board_cards_count-responseschema">Response Schema</h3>
  7388. <p>Status Code <strong>200</strong></p>
  7389. <table>
  7390. <thead>
  7391. <tr>
  7392. <th>Name</th>
  7393. <th>Type</th>
  7394. <th>Required</th>
  7395. <th>Restrictions</th>
  7396. <th>Description</th>
  7397. </tr>
  7398. </thead>
  7399. <tbody>
  7400. <tr>
  7401. <td>» board_cards_count</td>
  7402. <td>integer</td>
  7403. <td>false</td>
  7404. <td>none</td>
  7405. <td>none</td>
  7406. </tr>
  7407. </tbody>
  7408. </table>
  7409. <aside class="warning">
  7410. To perform this operation, you must be authenticated by means of one of the following methods:
  7411. UserSecurity
  7412. </aside>
  7413. <h2 id="get_all_cards">get_all_cards</h2>
  7414. <p><a id="opIdget_all_cards"></a></p>
  7415. <blockquote>
  7416. <p>Code samples</p>
  7417. </blockquote>
  7418. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7419. curl -X GET /api/boards/{board}/lists/{list}/cards \
  7420. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7421. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7422. </code></pre>
  7423. <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>
  7424. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7425. </span></code></pre>
  7426. <pre class="highlight tab tab-javascript"><code>
  7427. <span class="hljs-keyword">const</span> headers = {
  7428. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7429. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7430. };
  7431. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7432. {
  7433. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  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-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>);
  7443. <span class="hljs-keyword">const</span> headers = {
  7444. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7445. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7446. };
  7447. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7448. {
  7449. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7450. <span class="hljs-attr">headers</span>: headers
  7451. })
  7452. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7453. <span class="hljs-keyword">return</span> res.json();
  7454. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7455. <span class="hljs-built_in">console</span>.log(body);
  7456. });
  7457. </code></pre>
  7458. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7459. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7460. headers = {
  7461. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7462. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7463. }
  7464. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7465. <span class="hljs-symbol">params:</span> {
  7466. }, <span class="hljs-symbol">headers:</span> headers
  7467. p JSON.parse(result)
  7468. </code></pre>
  7469. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7470. headers = {
  7471. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7472. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7473. }
  7474. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7475. <span class="hljs-built_in">print</span>(r.json())
  7476. </code></pre>
  7477. <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>);
  7478. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7479. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7480. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7481. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7482. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7483. String inputLine;
  7484. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7485. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7486. response.append(inputLine);
  7487. }
  7488. in.close();
  7489. System.out.println(response.toString());
  7490. </code></pre>
  7491. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7492. <span class="hljs-keyword">import</span> (
  7493. <span class="hljs-string">&quot;bytes&quot;</span>
  7494. <span class="hljs-string">&quot;net/http&quot;</span>
  7495. )
  7496. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7497. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7498. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7499. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7500. }
  7501. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7502. 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)
  7503. req.Header = headers
  7504. client := &amp;http.Client{}
  7505. resp, err := client.Do(req)
  7506. <span class="hljs-comment">// ...</span>
  7507. }
  7508. </code></pre>
  7509. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7510. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7511. );
  7512. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7513. <span class="hljs-comment">// Define array of request body.</span>
  7514. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7515. <span class="hljs-keyword">try</span> {
  7516. <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>(
  7517. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7518. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7519. )
  7520. );
  7521. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7522. }
  7523. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7524. <span class="hljs-comment">// handle exception or api errors.</span>
  7525. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7526. }
  7527. <span class="hljs-comment">// ...</span>
  7528. </code></pre>
  7529. <p><code>GET /api/boards/{board}/lists/{list}/cards</code></p>
  7530. <p><em>Get all Cards attached to a List</em></p>
  7531. <h3 id="get_all_cards-parameters">Parameters</h3>
  7532. <table>
  7533. <thead>
  7534. <tr>
  7535. <th>Name</th>
  7536. <th>In</th>
  7537. <th>Type</th>
  7538. <th>Required</th>
  7539. <th>Description</th>
  7540. </tr>
  7541. </thead>
  7542. <tbody>
  7543. <tr>
  7544. <td>board</td>
  7545. <td>path</td>
  7546. <td>string</td>
  7547. <td>true</td>
  7548. <td>the board ID</td>
  7549. </tr>
  7550. <tr>
  7551. <td>list</td>
  7552. <td>path</td>
  7553. <td>string</td>
  7554. <td>true</td>
  7555. <td>the list ID</td>
  7556. </tr>
  7557. </tbody>
  7558. </table>
  7559. <h4 id="detailed-descriptions-22">Detailed descriptions</h4>
  7560. <p><strong>board</strong>: the board ID</p>
  7561. <p><strong>list</strong>: the list ID</p>
  7562. <blockquote>
  7563. <p>Example responses</p>
  7564. </blockquote>
  7565. <blockquote>
  7566. <p>200 Response</p>
  7567. </blockquote>
  7568. <pre class="highlight tab tab-json"><code>[
  7569. {
  7570. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7571. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7572. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7573. }
  7574. ]
  7575. </code></pre>
  7576. <h3 id="get_all_cards-responses">Responses</h3>
  7577. <table>
  7578. <thead>
  7579. <tr>
  7580. <th>Status</th>
  7581. <th>Meaning</th>
  7582. <th>Description</th>
  7583. <th>Schema</th>
  7584. </tr>
  7585. </thead>
  7586. <tbody>
  7587. <tr>
  7588. <td>200</td>
  7589. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7590. <td>200 response</td>
  7591. <td>Inline</td>
  7592. </tr>
  7593. </tbody>
  7594. </table>
  7595. <h3 id="get_all_cards-responseschema">Response Schema</h3>
  7596. <p>Status Code <strong>200</strong></p>
  7597. <table>
  7598. <thead>
  7599. <tr>
  7600. <th>Name</th>
  7601. <th>Type</th>
  7602. <th>Required</th>
  7603. <th>Restrictions</th>
  7604. <th>Description</th>
  7605. </tr>
  7606. </thead>
  7607. <tbody>
  7608. <tr>
  7609. <td>» _id</td>
  7610. <td>string</td>
  7611. <td>false</td>
  7612. <td>none</td>
  7613. <td>none</td>
  7614. </tr>
  7615. <tr>
  7616. <td>» title</td>
  7617. <td>string</td>
  7618. <td>false</td>
  7619. <td>none</td>
  7620. <td>none</td>
  7621. </tr>
  7622. <tr>
  7623. <td>» description</td>
  7624. <td>string</td>
  7625. <td>false</td>
  7626. <td>none</td>
  7627. <td>none</td>
  7628. </tr>
  7629. </tbody>
  7630. </table>
  7631. <aside class="warning">
  7632. To perform this operation, you must be authenticated by means of one of the following methods:
  7633. UserSecurity
  7634. </aside>
  7635. <h2 id="new_card">new_card</h2>
  7636. <p><a id="opIdnew_card"></a></p>
  7637. <blockquote>
  7638. <p>Code samples</p>
  7639. </blockquote>
  7640. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7641. curl -X POST /api/boards/{board}/lists/{list}/cards \
  7642. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  7643. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7644. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7645. </code></pre>
  7646. <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>
  7647. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  7648. Accept: application/json
  7649. </span></code></pre>
  7650. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  7651. &quot;authorId&quot;: &quot;string&quot;,
  7652. &quot;members&quot;: &quot;string&quot;,
  7653. &quot;assignees&quot;: &quot;string&quot;,
  7654. &quot;title&quot;: &quot;string&quot;,
  7655. &quot;description&quot;: &quot;string&quot;,
  7656. &quot;swimlaneId&quot;: &quot;string&quot;
  7657. }&#x27;</span>;
  7658. <span class="hljs-keyword">const</span> headers = {
  7659. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7660. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7661. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7662. };
  7663. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7664. {
  7665. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7666. <span class="hljs-attr">body</span>: inputBody,
  7667. <span class="hljs-attr">headers</span>: headers
  7668. })
  7669. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7670. <span class="hljs-keyword">return</span> res.json();
  7671. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7672. <span class="hljs-built_in">console</span>.log(body);
  7673. });
  7674. </code></pre>
  7675. <pre class="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>);
  7676. <span class="hljs-keyword">const</span> inputBody = {
  7677. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7678. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7679. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7680. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7681. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  7682. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7683. };
  7684. <span class="hljs-keyword">const</span> headers = {
  7685. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7686. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7687. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7688. };
  7689. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7690. {
  7691. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  7692. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  7693. <span class="hljs-attr">headers</span>: headers
  7694. })
  7695. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7696. <span class="hljs-keyword">return</span> res.json();
  7697. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7698. <span class="hljs-built_in">console</span>.log(body);
  7699. });
  7700. </code></pre>
  7701. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7702. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7703. headers = {
  7704. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7705. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7706. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7707. }
  7708. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>,
  7709. <span class="hljs-symbol">params:</span> {
  7710. }, <span class="hljs-symbol">headers:</span> headers
  7711. p JSON.parse(result)
  7712. </code></pre>
  7713. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7714. headers = {
  7715. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7716. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7717. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7718. }
  7719. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards&#x27;</span>, headers = headers)
  7720. <span class="hljs-built_in">print</span>(r.json())
  7721. </code></pre>
  7722. <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>);
  7723. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7724. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  7725. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7726. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7727. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7728. String inputLine;
  7729. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7730. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7731. response.append(inputLine);
  7732. }
  7733. in.close();
  7734. System.out.println(response.toString());
  7735. </code></pre>
  7736. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  7737. <span class="hljs-keyword">import</span> (
  7738. <span class="hljs-string">&quot;bytes&quot;</span>
  7739. <span class="hljs-string">&quot;net/http&quot;</span>
  7740. )
  7741. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  7742. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  7743. <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>},
  7744. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  7745. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  7746. }
  7747. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  7748. 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)
  7749. req.Header = headers
  7750. client := &amp;http.Client{}
  7751. resp, err := client.Do(req)
  7752. <span class="hljs-comment">// ...</span>
  7753. }
  7754. </code></pre>
  7755. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  7756. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7757. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  7758. );
  7759. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  7760. <span class="hljs-comment">// Define array of request body.</span>
  7761. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  7762. <span class="hljs-keyword">try</span> {
  7763. <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>(
  7764. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  7765. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  7766. )
  7767. );
  7768. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  7769. }
  7770. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  7771. <span class="hljs-comment">// handle exception or api errors.</span>
  7772. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  7773. }
  7774. <span class="hljs-comment">// ...</span>
  7775. </code></pre>
  7776. <p><code>POST /api/boards/{board}/lists/{list}/cards</code></p>
  7777. <p><em>Create a new Card</em></p>
  7778. <blockquote>
  7779. <p>Body parameter</p>
  7780. </blockquote>
  7781. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  7782. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  7783. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  7784. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  7785. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  7786. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  7787. </code></pre>
  7788. <h3 id="new_card-parameters">Parameters</h3>
  7789. <table>
  7790. <thead>
  7791. <tr>
  7792. <th>Name</th>
  7793. <th>In</th>
  7794. <th>Type</th>
  7795. <th>Required</th>
  7796. <th>Description</th>
  7797. </tr>
  7798. </thead>
  7799. <tbody>
  7800. <tr>
  7801. <td>board</td>
  7802. <td>path</td>
  7803. <td>string</td>
  7804. <td>true</td>
  7805. <td>the board ID of the new card</td>
  7806. </tr>
  7807. <tr>
  7808. <td>list</td>
  7809. <td>path</td>
  7810. <td>string</td>
  7811. <td>true</td>
  7812. <td>the list ID of the new card</td>
  7813. </tr>
  7814. <tr>
  7815. <td>body</td>
  7816. <td>body</td>
  7817. <td>object</td>
  7818. <td>true</td>
  7819. <td>none</td>
  7820. </tr>
  7821. <tr>
  7822. <td>» authorId</td>
  7823. <td>body</td>
  7824. <td>string</td>
  7825. <td>true</td>
  7826. <td>the authorId value</td>
  7827. </tr>
  7828. <tr>
  7829. <td>» members</td>
  7830. <td>body</td>
  7831. <td>string</td>
  7832. <td>false</td>
  7833. <td>the member IDs list of the new card</td>
  7834. </tr>
  7835. <tr>
  7836. <td>» assignees</td>
  7837. <td>body</td>
  7838. <td>string</td>
  7839. <td>false</td>
  7840. <td>the array of maximum one ID of assignee of the new card</td>
  7841. </tr>
  7842. <tr>
  7843. <td>» title</td>
  7844. <td>body</td>
  7845. <td>string</td>
  7846. <td>true</td>
  7847. <td>the title of the new card</td>
  7848. </tr>
  7849. <tr>
  7850. <td>» description</td>
  7851. <td>body</td>
  7852. <td>string</td>
  7853. <td>true</td>
  7854. <td>the description of the new card</td>
  7855. </tr>
  7856. <tr>
  7857. <td>» swimlaneId</td>
  7858. <td>body</td>
  7859. <td>string</td>
  7860. <td>true</td>
  7861. <td>the swimlane ID of the new card</td>
  7862. </tr>
  7863. </tbody>
  7864. </table>
  7865. <h4 id="detailed-descriptions-23">Detailed descriptions</h4>
  7866. <p><strong>board</strong>: the board ID of the new card</p>
  7867. <p><strong>list</strong>: the list ID of the new card</p>
  7868. <blockquote>
  7869. <p>Example responses</p>
  7870. </blockquote>
  7871. <blockquote>
  7872. <p>200 Response</p>
  7873. </blockquote>
  7874. <pre class="highlight tab tab-json"><code>{
  7875. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  7876. }
  7877. </code></pre>
  7878. <h3 id="new_card-responses">Responses</h3>
  7879. <table>
  7880. <thead>
  7881. <tr>
  7882. <th>Status</th>
  7883. <th>Meaning</th>
  7884. <th>Description</th>
  7885. <th>Schema</th>
  7886. </tr>
  7887. </thead>
  7888. <tbody>
  7889. <tr>
  7890. <td>200</td>
  7891. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  7892. <td>200 response</td>
  7893. <td>Inline</td>
  7894. </tr>
  7895. </tbody>
  7896. </table>
  7897. <h3 id="new_card-responseschema">Response Schema</h3>
  7898. <p>Status Code <strong>200</strong></p>
  7899. <table>
  7900. <thead>
  7901. <tr>
  7902. <th>Name</th>
  7903. <th>Type</th>
  7904. <th>Required</th>
  7905. <th>Restrictions</th>
  7906. <th>Description</th>
  7907. </tr>
  7908. </thead>
  7909. <tbody>
  7910. <tr>
  7911. <td>» _id</td>
  7912. <td>string</td>
  7913. <td>false</td>
  7914. <td>none</td>
  7915. <td>none</td>
  7916. </tr>
  7917. </tbody>
  7918. </table>
  7919. <aside class="warning">
  7920. To perform this operation, you must be authenticated by means of one of the following methods:
  7921. UserSecurity
  7922. </aside>
  7923. <h2 id="get_card">get_card</h2>
  7924. <p><a id="opIdget_card"></a></p>
  7925. <blockquote>
  7926. <p>Code samples</p>
  7927. </blockquote>
  7928. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  7929. curl -X GET /api/boards/{board}/lists/{list}/cards/{card} \
  7930. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  7931. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  7932. </code></pre>
  7933. <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>
  7934. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  7935. </span></code></pre>
  7936. <pre class="highlight tab tab-javascript"><code>
  7937. <span class="hljs-keyword">const</span> headers = {
  7938. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7939. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7940. };
  7941. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7942. {
  7943. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7944. <span class="hljs-attr">headers</span>: headers
  7945. })
  7946. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7947. <span class="hljs-keyword">return</span> res.json();
  7948. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7949. <span class="hljs-built_in">console</span>.log(body);
  7950. });
  7951. </code></pre>
  7952. <pre class="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>);
  7953. <span class="hljs-keyword">const</span> headers = {
  7954. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  7955. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7956. };
  7957. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7958. {
  7959. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  7960. <span class="hljs-attr">headers</span>: headers
  7961. })
  7962. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  7963. <span class="hljs-keyword">return</span> res.json();
  7964. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  7965. <span class="hljs-built_in">console</span>.log(body);
  7966. });
  7967. </code></pre>
  7968. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  7969. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  7970. headers = {
  7971. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7972. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7973. }
  7974. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  7975. <span class="hljs-symbol">params:</span> {
  7976. }, <span class="hljs-symbol">headers:</span> headers
  7977. p JSON.parse(result)
  7978. </code></pre>
  7979. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  7980. headers = {
  7981. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  7982. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  7983. }
  7984. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  7985. <span class="hljs-built_in">print</span>(r.json())
  7986. </code></pre>
  7987. <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>);
  7988. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  7989. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  7990. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  7991. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  7992. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  7993. String inputLine;
  7994. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  7995. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  7996. response.append(inputLine);
  7997. }
  7998. in.close();
  7999. System.out.println(response.toString());
  8000. </code></pre>
  8001. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8002. <span class="hljs-keyword">import</span> (
  8003. <span class="hljs-string">&quot;bytes&quot;</span>
  8004. <span class="hljs-string">&quot;net/http&quot;</span>
  8005. )
  8006. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8007. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8008. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8009. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8010. }
  8011. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8012. 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)
  8013. req.Header = headers
  8014. client := &amp;http.Client{}
  8015. resp, err := client.Do(req)
  8016. <span class="hljs-comment">// ...</span>
  8017. }
  8018. </code></pre>
  8019. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8020. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8021. );
  8022. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8023. <span class="hljs-comment">// Define array of request body.</span>
  8024. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8025. <span class="hljs-keyword">try</span> {
  8026. <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>(
  8027. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8028. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8029. )
  8030. );
  8031. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8032. }
  8033. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8034. <span class="hljs-comment">// handle exception or api errors.</span>
  8035. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8036. }
  8037. <span class="hljs-comment">// ...</span>
  8038. </code></pre>
  8039. <p><code>GET /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8040. <p><em>Get a Card</em></p>
  8041. <h3 id="get_card-parameters">Parameters</h3>
  8042. <table>
  8043. <thead>
  8044. <tr>
  8045. <th>Name</th>
  8046. <th>In</th>
  8047. <th>Type</th>
  8048. <th>Required</th>
  8049. <th>Description</th>
  8050. </tr>
  8051. </thead>
  8052. <tbody>
  8053. <tr>
  8054. <td>board</td>
  8055. <td>path</td>
  8056. <td>string</td>
  8057. <td>true</td>
  8058. <td>the board ID</td>
  8059. </tr>
  8060. <tr>
  8061. <td>list</td>
  8062. <td>path</td>
  8063. <td>string</td>
  8064. <td>true</td>
  8065. <td>the list ID of the card</td>
  8066. </tr>
  8067. <tr>
  8068. <td>card</td>
  8069. <td>path</td>
  8070. <td>string</td>
  8071. <td>true</td>
  8072. <td>the card ID</td>
  8073. </tr>
  8074. </tbody>
  8075. </table>
  8076. <h4 id="detailed-descriptions-24">Detailed descriptions</h4>
  8077. <p><strong>board</strong>: the board ID</p>
  8078. <p><strong>list</strong>: the list ID of the card</p>
  8079. <p><strong>card</strong>: the card ID</p>
  8080. <blockquote>
  8081. <p>Example responses</p>
  8082. </blockquote>
  8083. <blockquote>
  8084. <p>200 Response</p>
  8085. </blockquote>
  8086. <pre class="highlight tab tab-json"><code>{
  8087. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8088. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  8089. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8090. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8091. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8092. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8093. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8094. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8095. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  8096. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8097. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8098. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  8099. {}
  8100. ],
  8101. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8102. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8103. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8104. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8105. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  8106. <span class="hljs-string">&quot;string&quot;</span>
  8107. ],
  8108. <span class="hljs-attr">&quot;members&quot;</span>: [
  8109. <span class="hljs-string">&quot;string&quot;</span>
  8110. ],
  8111. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  8112. <span class="hljs-string">&quot;string&quot;</span>
  8113. ],
  8114. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8115. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8116. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8117. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8118. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  8119. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  8120. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8121. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  8122. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  8123. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8124. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8125. <span class="hljs-attr">&quot;vote&quot;</span>: {
  8126. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8127. <span class="hljs-attr">&quot;positive&quot;</span>: [
  8128. <span class="hljs-string">&quot;string&quot;</span>
  8129. ],
  8130. <span class="hljs-attr">&quot;negative&quot;</span>: [
  8131. <span class="hljs-string">&quot;string&quot;</span>
  8132. ],
  8133. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8134. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  8135. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  8136. },
  8137. <span class="hljs-attr">&quot;poker&quot;</span>: {
  8138. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  8139. <span class="hljs-attr">&quot;one&quot;</span>: [
  8140. <span class="hljs-string">&quot;string&quot;</span>
  8141. ],
  8142. <span class="hljs-attr">&quot;two&quot;</span>: [
  8143. <span class="hljs-string">&quot;string&quot;</span>
  8144. ],
  8145. <span class="hljs-attr">&quot;three&quot;</span>: [
  8146. <span class="hljs-string">&quot;string&quot;</span>
  8147. ],
  8148. <span class="hljs-attr">&quot;five&quot;</span>: [
  8149. <span class="hljs-string">&quot;string&quot;</span>
  8150. ],
  8151. <span class="hljs-attr">&quot;eight&quot;</span>: [
  8152. <span class="hljs-string">&quot;string&quot;</span>
  8153. ],
  8154. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  8155. <span class="hljs-string">&quot;string&quot;</span>
  8156. ],
  8157. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  8158. <span class="hljs-string">&quot;string&quot;</span>
  8159. ],
  8160. <span class="hljs-attr">&quot;forty&quot;</span>: [
  8161. <span class="hljs-string">&quot;string&quot;</span>
  8162. ],
  8163. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  8164. <span class="hljs-string">&quot;string&quot;</span>
  8165. ],
  8166. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  8167. <span class="hljs-string">&quot;string&quot;</span>
  8168. ],
  8169. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8170. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  8171. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  8172. },
  8173. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  8174. <span class="hljs-string">&quot;string&quot;</span>
  8175. ],
  8176. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  8177. <span class="hljs-number">0</span>
  8178. ],
  8179. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  8180. <span class="hljs-string">&quot;string&quot;</span>
  8181. ],
  8182. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  8183. }
  8184. </code></pre>
  8185. <h3 id="get_card-responses">Responses</h3>
  8186. <table>
  8187. <thead>
  8188. <tr>
  8189. <th>Status</th>
  8190. <th>Meaning</th>
  8191. <th>Description</th>
  8192. <th>Schema</th>
  8193. </tr>
  8194. </thead>
  8195. <tbody>
  8196. <tr>
  8197. <td>200</td>
  8198. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8199. <td>200 response</td>
  8200. <td><a href="#schemacards">Cards</a></td>
  8201. </tr>
  8202. </tbody>
  8203. </table>
  8204. <aside class="warning">
  8205. To perform this operation, you must be authenticated by means of one of the following methods:
  8206. UserSecurity
  8207. </aside>
  8208. <h2 id="edit_card">edit_card</h2>
  8209. <p><a id="opIdedit_card"></a></p>
  8210. <blockquote>
  8211. <p>Code samples</p>
  8212. </blockquote>
  8213. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8214. curl -X PUT /api/boards/{board}/lists/{list}/cards/{card} \
  8215. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  8216. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8217. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8218. </code></pre>
  8219. <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>
  8220. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  8221. Accept: application/json
  8222. </span></code></pre>
  8223. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  8224. &quot;title&quot;: &quot;string&quot;,
  8225. &quot;sort&quot;: &quot;string&quot;,
  8226. &quot;parentId&quot;: &quot;string&quot;,
  8227. &quot;description&quot;: &quot;string&quot;,
  8228. &quot;color&quot;: &quot;string&quot;,
  8229. &quot;vote&quot;: {},
  8230. &quot;poker&quot;: {},
  8231. &quot;labelIds&quot;: &quot;string&quot;,
  8232. &quot;requestedBy&quot;: &quot;string&quot;,
  8233. &quot;assignedBy&quot;: &quot;string&quot;,
  8234. &quot;receivedAt&quot;: &quot;string&quot;,
  8235. &quot;startAt&quot;: &quot;string&quot;,
  8236. &quot;dueAt&quot;: &quot;string&quot;,
  8237. &quot;endAt&quot;: &quot;string&quot;,
  8238. &quot;spentTime&quot;: &quot;string&quot;,
  8239. &quot;isOverTime&quot;: true,
  8240. &quot;customFields&quot;: &quot;string&quot;,
  8241. &quot;members&quot;: &quot;string&quot;,
  8242. &quot;assignees&quot;: &quot;string&quot;,
  8243. &quot;swimlaneId&quot;: &quot;string&quot;,
  8244. &quot;listId&quot;: &quot;string&quot;,
  8245. &quot;authorId&quot;: &quot;string&quot;
  8246. }&#x27;</span>;
  8247. <span class="hljs-keyword">const</span> headers = {
  8248. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8249. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8250. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8251. };
  8252. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8253. {
  8254. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8255. <span class="hljs-attr">body</span>: inputBody,
  8256. <span class="hljs-attr">headers</span>: headers
  8257. })
  8258. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8259. <span class="hljs-keyword">return</span> res.json();
  8260. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8261. <span class="hljs-built_in">console</span>.log(body);
  8262. });
  8263. </code></pre>
  8264. <pre class="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>);
  8265. <span class="hljs-keyword">const</span> inputBody = {
  8266. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8267. <span class="hljs-string">&quot;sort&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8268. <span class="hljs-string">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8269. <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8270. <span class="hljs-string">&quot;color&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8271. <span class="hljs-string">&quot;vote&quot;</span>: {},
  8272. <span class="hljs-string">&quot;poker&quot;</span>: {},
  8273. <span class="hljs-string">&quot;labelIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8274. <span class="hljs-string">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8275. <span class="hljs-string">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8276. <span class="hljs-string">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8277. <span class="hljs-string">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8278. <span class="hljs-string">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8279. <span class="hljs-string">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8280. <span class="hljs-string">&quot;spentTime&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8281. <span class="hljs-string">&quot;isOverTime&quot;</span>: <span class="hljs-literal">true</span>,
  8282. <span class="hljs-string">&quot;customFields&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8283. <span class="hljs-string">&quot;members&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8284. <span class="hljs-string">&quot;assignees&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8285. <span class="hljs-string">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8286. <span class="hljs-string">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  8287. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8288. };
  8289. <span class="hljs-keyword">const</span> headers = {
  8290. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8291. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8292. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8293. };
  8294. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8295. {
  8296. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  8297. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  8298. <span class="hljs-attr">headers</span>: headers
  8299. })
  8300. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8301. <span class="hljs-keyword">return</span> res.json();
  8302. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8303. <span class="hljs-built_in">console</span>.log(body);
  8304. });
  8305. </code></pre>
  8306. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8307. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8308. headers = {
  8309. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8310. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8311. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8312. }
  8313. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8314. <span class="hljs-symbol">params:</span> {
  8315. }, <span class="hljs-symbol">headers:</span> headers
  8316. p JSON.parse(result)
  8317. </code></pre>
  8318. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8319. headers = {
  8320. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8321. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8322. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8323. }
  8324. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8325. <span class="hljs-built_in">print</span>(r.json())
  8326. </code></pre>
  8327. <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>);
  8328. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8329. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  8330. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8331. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8332. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8333. String inputLine;
  8334. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8335. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8336. response.append(inputLine);
  8337. }
  8338. in.close();
  8339. System.out.println(response.toString());
  8340. </code></pre>
  8341. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8342. <span class="hljs-keyword">import</span> (
  8343. <span class="hljs-string">&quot;bytes&quot;</span>
  8344. <span class="hljs-string">&quot;net/http&quot;</span>
  8345. )
  8346. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8347. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8348. <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>},
  8349. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8350. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8351. }
  8352. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8353. 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)
  8354. req.Header = headers
  8355. client := &amp;http.Client{}
  8356. resp, err := client.Do(req)
  8357. <span class="hljs-comment">// ...</span>
  8358. }
  8359. </code></pre>
  8360. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  8361. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8362. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8363. );
  8364. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8365. <span class="hljs-comment">// Define array of request body.</span>
  8366. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8367. <span class="hljs-keyword">try</span> {
  8368. <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>(
  8369. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8370. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8371. )
  8372. );
  8373. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8374. }
  8375. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8376. <span class="hljs-comment">// handle exception or api errors.</span>
  8377. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8378. }
  8379. <span class="hljs-comment">// ...</span>
  8380. </code></pre>
  8381. <p><code>PUT /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8382. <p><em>Edit Fields in a Card</em></p>
  8383. <p>Edit a card</p>
  8384. <p>The color has to be chosen between <code>white</code>, <code>green</code>, <code>yellow</code>, <code>orange</code>,
  8385. <code>red</code>, <code>purple</code>, <code>blue</code>, <code>sky</code>, <code>lime</code>, <code>pink</code>, <code>black</code>, <code>silver</code>,
  8386. <code>peachpuff</code>, <code>crimson</code>, <code>plum</code>, <code>darkgreen</code>, <code>slateblue</code>, <code>magenta</code>,
  8387. <code>gold</code>, <code>navy</code>, <code>gray</code>, <code>saddlebrown</code>, <code>paleturquoise</code>, <code>mistyrose</code>,
  8388. <code>indigo</code>:</p>
  8389. <img src="/card-colors.png" alt="Wekan card colors" />
  8390. <p>Note: setting the color to white has the same effect than removing it.</p>
  8391. <blockquote>
  8392. <p>Body parameter</p>
  8393. </blockquote>
  8394. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  8395. <span class="hljs-attr">sort:</span> <span class="hljs-string">string</span>
  8396. <span class="hljs-attr">parentId:</span> <span class="hljs-string">string</span>
  8397. <span class="hljs-attr">description:</span> <span class="hljs-string">string</span>
  8398. <span class="hljs-attr">color:</span> <span class="hljs-string">string</span>
  8399. <span class="hljs-attr">vote:</span> {}
  8400. <span class="hljs-attr">poker:</span> {}
  8401. <span class="hljs-attr">labelIds:</span> <span class="hljs-string">string</span>
  8402. <span class="hljs-attr">requestedBy:</span> <span class="hljs-string">string</span>
  8403. <span class="hljs-attr">assignedBy:</span> <span class="hljs-string">string</span>
  8404. <span class="hljs-attr">receivedAt:</span> <span class="hljs-string">string</span>
  8405. <span class="hljs-attr">startAt:</span> <span class="hljs-string">string</span>
  8406. <span class="hljs-attr">dueAt:</span> <span class="hljs-string">string</span>
  8407. <span class="hljs-attr">endAt:</span> <span class="hljs-string">string</span>
  8408. <span class="hljs-attr">spentTime:</span> <span class="hljs-string">string</span>
  8409. <span class="hljs-attr">isOverTime:</span> <span class="hljs-literal">true</span>
  8410. <span class="hljs-attr">customFields:</span> <span class="hljs-string">string</span>
  8411. <span class="hljs-attr">members:</span> <span class="hljs-string">string</span>
  8412. <span class="hljs-attr">assignees:</span> <span class="hljs-string">string</span>
  8413. <span class="hljs-attr">swimlaneId:</span> <span class="hljs-string">string</span>
  8414. <span class="hljs-attr">listId:</span> <span class="hljs-string">string</span>
  8415. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  8416. </code></pre>
  8417. <h3 id="edit_card-parameters">Parameters</h3>
  8418. <table>
  8419. <thead>
  8420. <tr>
  8421. <th>Name</th>
  8422. <th>In</th>
  8423. <th>Type</th>
  8424. <th>Required</th>
  8425. <th>Description</th>
  8426. </tr>
  8427. </thead>
  8428. <tbody>
  8429. <tr>
  8430. <td>board</td>
  8431. <td>path</td>
  8432. <td>string</td>
  8433. <td>true</td>
  8434. <td>the board ID of the card</td>
  8435. </tr>
  8436. <tr>
  8437. <td>list</td>
  8438. <td>path</td>
  8439. <td>string</td>
  8440. <td>true</td>
  8441. <td>the list ID of the card</td>
  8442. </tr>
  8443. <tr>
  8444. <td>card</td>
  8445. <td>path</td>
  8446. <td>string</td>
  8447. <td>true</td>
  8448. <td>the ID of the card</td>
  8449. </tr>
  8450. <tr>
  8451. <td>body</td>
  8452. <td>body</td>
  8453. <td>object</td>
  8454. <td>false</td>
  8455. <td>none</td>
  8456. </tr>
  8457. <tr>
  8458. <td>» title</td>
  8459. <td>body</td>
  8460. <td>string</td>
  8461. <td>false</td>
  8462. <td>the new title of the card</td>
  8463. </tr>
  8464. <tr>
  8465. <td>» sort</td>
  8466. <td>body</td>
  8467. <td>string</td>
  8468. <td>false</td>
  8469. <td>the new sort value of the card</td>
  8470. </tr>
  8471. <tr>
  8472. <td>» parentId</td>
  8473. <td>body</td>
  8474. <td>string</td>
  8475. <td>false</td>
  8476. <td>change the parent of the card</td>
  8477. </tr>
  8478. <tr>
  8479. <td>» description</td>
  8480. <td>body</td>
  8481. <td>string</td>
  8482. <td>false</td>
  8483. <td>the new description of the card</td>
  8484. </tr>
  8485. <tr>
  8486. <td>» color</td>
  8487. <td>body</td>
  8488. <td>string</td>
  8489. <td>false</td>
  8490. <td>the new color of the card</td>
  8491. </tr>
  8492. <tr>
  8493. <td>» vote</td>
  8494. <td>body</td>
  8495. <td>object</td>
  8496. <td>false</td>
  8497. <td>the vote object</td>
  8498. </tr>
  8499. <tr>
  8500. <td>» poker</td>
  8501. <td>body</td>
  8502. <td>object</td>
  8503. <td>false</td>
  8504. <td>the poker object</td>
  8505. </tr>
  8506. <tr>
  8507. <td>» labelIds</td>
  8508. <td>body</td>
  8509. <td>string</td>
  8510. <td>false</td>
  8511. <td>the new list of label IDs attached to the card</td>
  8512. </tr>
  8513. <tr>
  8514. <td>» requestedBy</td>
  8515. <td>body</td>
  8516. <td>string</td>
  8517. <td>false</td>
  8518. <td>the new requestedBy field of the card</td>
  8519. </tr>
  8520. <tr>
  8521. <td>» assignedBy</td>
  8522. <td>body</td>
  8523. <td>string</td>
  8524. <td>false</td>
  8525. <td>the new assignedBy field of the card</td>
  8526. </tr>
  8527. <tr>
  8528. <td>» receivedAt</td>
  8529. <td>body</td>
  8530. <td>string</td>
  8531. <td>false</td>
  8532. <td>the new receivedAt field of the card</td>
  8533. </tr>
  8534. <tr>
  8535. <td>» startAt</td>
  8536. <td>body</td>
  8537. <td>string</td>
  8538. <td>false</td>
  8539. <td>the new startAt field of the card</td>
  8540. </tr>
  8541. <tr>
  8542. <td>» dueAt</td>
  8543. <td>body</td>
  8544. <td>string</td>
  8545. <td>false</td>
  8546. <td>the new dueAt field of the card</td>
  8547. </tr>
  8548. <tr>
  8549. <td>» endAt</td>
  8550. <td>body</td>
  8551. <td>string</td>
  8552. <td>false</td>
  8553. <td>the new endAt field of the card</td>
  8554. </tr>
  8555. <tr>
  8556. <td>» spentTime</td>
  8557. <td>body</td>
  8558. <td>string</td>
  8559. <td>false</td>
  8560. <td>the new spentTime field of the card</td>
  8561. </tr>
  8562. <tr>
  8563. <td>» isOverTime</td>
  8564. <td>body</td>
  8565. <td>boolean</td>
  8566. <td>false</td>
  8567. <td>the new isOverTime field of the card</td>
  8568. </tr>
  8569. <tr>
  8570. <td>» customFields</td>
  8571. <td>body</td>
  8572. <td>string</td>
  8573. <td>false</td>
  8574. <td>the new customFields value of the card</td>
  8575. </tr>
  8576. <tr>
  8577. <td>» members</td>
  8578. <td>body</td>
  8579. <td>string</td>
  8580. <td>false</td>
  8581. <td>the new list of member IDs attached to the card</td>
  8582. </tr>
  8583. <tr>
  8584. <td>» assignees</td>
  8585. <td>body</td>
  8586. <td>string</td>
  8587. <td>false</td>
  8588. <td>the array of maximum one ID of assignee attached to the card</td>
  8589. </tr>
  8590. <tr>
  8591. <td>» swimlaneId</td>
  8592. <td>body</td>
  8593. <td>string</td>
  8594. <td>false</td>
  8595. <td>the new swimlane ID of the card</td>
  8596. </tr>
  8597. <tr>
  8598. <td>» listId</td>
  8599. <td>body</td>
  8600. <td>string</td>
  8601. <td>false</td>
  8602. <td>the new list ID of the card (move operation)</td>
  8603. </tr>
  8604. <tr>
  8605. <td>» authorId</td>
  8606. <td>body</td>
  8607. <td>string</td>
  8608. <td>false</td>
  8609. <td>change the owner of the card</td>
  8610. </tr>
  8611. </tbody>
  8612. </table>
  8613. <h4 id="detailed-descriptions-25">Detailed descriptions</h4>
  8614. <p><strong>board</strong>: the board ID of the card</p>
  8615. <p><strong>list</strong>: the list ID of the card</p>
  8616. <p><strong>card</strong>: the ID of the card</p>
  8617. <blockquote>
  8618. <p>Example responses</p>
  8619. </blockquote>
  8620. <blockquote>
  8621. <p>200 Response</p>
  8622. </blockquote>
  8623. <pre class="highlight tab tab-json"><code>{
  8624. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8625. }
  8626. </code></pre>
  8627. <h3 id="edit_card-responses">Responses</h3>
  8628. <table>
  8629. <thead>
  8630. <tr>
  8631. <th>Status</th>
  8632. <th>Meaning</th>
  8633. <th>Description</th>
  8634. <th>Schema</th>
  8635. </tr>
  8636. </thead>
  8637. <tbody>
  8638. <tr>
  8639. <td>200</td>
  8640. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8641. <td>200 response</td>
  8642. <td>Inline</td>
  8643. </tr>
  8644. </tbody>
  8645. </table>
  8646. <h3 id="edit_card-responseschema">Response Schema</h3>
  8647. <p>Status Code <strong>200</strong></p>
  8648. <table>
  8649. <thead>
  8650. <tr>
  8651. <th>Name</th>
  8652. <th>Type</th>
  8653. <th>Required</th>
  8654. <th>Restrictions</th>
  8655. <th>Description</th>
  8656. </tr>
  8657. </thead>
  8658. <tbody>
  8659. <tr>
  8660. <td>» _id</td>
  8661. <td>string</td>
  8662. <td>false</td>
  8663. <td>none</td>
  8664. <td>none</td>
  8665. </tr>
  8666. </tbody>
  8667. </table>
  8668. <aside class="warning">
  8669. To perform this operation, you must be authenticated by means of one of the following methods:
  8670. UserSecurity
  8671. </aside>
  8672. <h2 id="delete_card">delete_card</h2>
  8673. <p><a id="opIddelete_card"></a></p>
  8674. <blockquote>
  8675. <p>Code samples</p>
  8676. </blockquote>
  8677. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8678. curl -X DELETE /api/boards/{board}/lists/{list}/cards/{card} \
  8679. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8680. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8681. </code></pre>
  8682. <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>
  8683. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8684. </span></code></pre>
  8685. <pre class="highlight tab tab-javascript"><code>
  8686. <span class="hljs-keyword">const</span> headers = {
  8687. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8688. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8689. };
  8690. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8691. {
  8692. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8693. <span class="hljs-attr">headers</span>: headers
  8694. })
  8695. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8696. <span class="hljs-keyword">return</span> res.json();
  8697. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8698. <span class="hljs-built_in">console</span>.log(body);
  8699. });
  8700. </code></pre>
  8701. <pre class="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>);
  8702. <span class="hljs-keyword">const</span> headers = {
  8703. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8704. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8705. };
  8706. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8707. {
  8708. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  8709. <span class="hljs-attr">headers</span>: headers
  8710. })
  8711. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8712. <span class="hljs-keyword">return</span> res.json();
  8713. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8714. <span class="hljs-built_in">console</span>.log(body);
  8715. });
  8716. </code></pre>
  8717. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8718. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8719. headers = {
  8720. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8721. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8722. }
  8723. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>,
  8724. <span class="hljs-symbol">params:</span> {
  8725. }, <span class="hljs-symbol">headers:</span> headers
  8726. p JSON.parse(result)
  8727. </code></pre>
  8728. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8729. headers = {
  8730. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8731. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8732. }
  8733. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards/{card}&#x27;</span>, headers = headers)
  8734. <span class="hljs-built_in">print</span>(r.json())
  8735. </code></pre>
  8736. <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>);
  8737. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8738. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  8739. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8740. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8741. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8742. String inputLine;
  8743. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8744. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8745. response.append(inputLine);
  8746. }
  8747. in.close();
  8748. System.out.println(response.toString());
  8749. </code></pre>
  8750. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8751. <span class="hljs-keyword">import</span> (
  8752. <span class="hljs-string">&quot;bytes&quot;</span>
  8753. <span class="hljs-string">&quot;net/http&quot;</span>
  8754. )
  8755. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8756. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8757. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8758. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8759. }
  8760. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8761. 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)
  8762. req.Header = headers
  8763. client := &amp;http.Client{}
  8764. resp, err := client.Do(req)
  8765. <span class="hljs-comment">// ...</span>
  8766. }
  8767. </code></pre>
  8768. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8769. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8770. );
  8771. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8772. <span class="hljs-comment">// Define array of request body.</span>
  8773. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8774. <span class="hljs-keyword">try</span> {
  8775. <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>(
  8776. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8777. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8778. )
  8779. );
  8780. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8781. }
  8782. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8783. <span class="hljs-comment">// handle exception or api errors.</span>
  8784. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8785. }
  8786. <span class="hljs-comment">// ...</span>
  8787. </code></pre>
  8788. <p><code>DELETE /api/boards/{board}/lists/{list}/cards/{card}</code></p>
  8789. <p><em>Delete a card from a board</em></p>
  8790. <p>This operation <strong>deletes</strong> a card, and therefore the card
  8791. is not put in the recycle bin.</p>
  8792. <h3 id="delete_card-parameters">Parameters</h3>
  8793. <table>
  8794. <thead>
  8795. <tr>
  8796. <th>Name</th>
  8797. <th>In</th>
  8798. <th>Type</th>
  8799. <th>Required</th>
  8800. <th>Description</th>
  8801. </tr>
  8802. </thead>
  8803. <tbody>
  8804. <tr>
  8805. <td>board</td>
  8806. <td>path</td>
  8807. <td>string</td>
  8808. <td>true</td>
  8809. <td>the board ID of the card</td>
  8810. </tr>
  8811. <tr>
  8812. <td>list</td>
  8813. <td>path</td>
  8814. <td>string</td>
  8815. <td>true</td>
  8816. <td>the list ID of the card</td>
  8817. </tr>
  8818. <tr>
  8819. <td>card</td>
  8820. <td>path</td>
  8821. <td>string</td>
  8822. <td>true</td>
  8823. <td>the ID of the card</td>
  8824. </tr>
  8825. </tbody>
  8826. </table>
  8827. <h4 id="detailed-descriptions-26">Detailed descriptions</h4>
  8828. <p><strong>board</strong>: the board ID of the card</p>
  8829. <p><strong>list</strong>: the list ID of the card</p>
  8830. <p><strong>card</strong>: the ID of the card</p>
  8831. <blockquote>
  8832. <p>Example responses</p>
  8833. </blockquote>
  8834. <blockquote>
  8835. <p>200 Response</p>
  8836. </blockquote>
  8837. <pre class="highlight tab tab-json"><code>{
  8838. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  8839. }
  8840. </code></pre>
  8841. <h3 id="delete_card-responses">Responses</h3>
  8842. <table>
  8843. <thead>
  8844. <tr>
  8845. <th>Status</th>
  8846. <th>Meaning</th>
  8847. <th>Description</th>
  8848. <th>Schema</th>
  8849. </tr>
  8850. </thead>
  8851. <tbody>
  8852. <tr>
  8853. <td>200</td>
  8854. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  8855. <td>200 response</td>
  8856. <td>Inline</td>
  8857. </tr>
  8858. </tbody>
  8859. </table>
  8860. <h3 id="delete_card-responseschema">Response Schema</h3>
  8861. <p>Status Code <strong>200</strong></p>
  8862. <table>
  8863. <thead>
  8864. <tr>
  8865. <th>Name</th>
  8866. <th>Type</th>
  8867. <th>Required</th>
  8868. <th>Restrictions</th>
  8869. <th>Description</th>
  8870. </tr>
  8871. </thead>
  8872. <tbody>
  8873. <tr>
  8874. <td>» _id</td>
  8875. <td>string</td>
  8876. <td>false</td>
  8877. <td>none</td>
  8878. <td>none</td>
  8879. </tr>
  8880. </tbody>
  8881. </table>
  8882. <aside class="warning">
  8883. To perform this operation, you must be authenticated by means of one of the following methods:
  8884. UserSecurity
  8885. </aside>
  8886. <h2 id="get_list_cards_count">get_list_cards_count</h2>
  8887. <p><a id="opIdget_list_cards_count"></a></p>
  8888. <blockquote>
  8889. <p>Code samples</p>
  8890. </blockquote>
  8891. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  8892. curl -X GET /api/boards/{board}/lists/{list}/cards_count \
  8893. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  8894. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  8895. </code></pre>
  8896. <pre class="highlight tab tab-http"><code><span class="hljs-keyword">GET</span> <span class="hljs-string">/api/boards/{board}/lists/{list}/cards_count</span> <span class="hljs-meta">HTTP/1.1</span>
  8897. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  8898. </span></code></pre>
  8899. <pre class="highlight tab tab-javascript"><code>
  8900. <span class="hljs-keyword">const</span> headers = {
  8901. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8902. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8903. };
  8904. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  8905. {
  8906. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8907. <span class="hljs-attr">headers</span>: headers
  8908. })
  8909. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8910. <span class="hljs-keyword">return</span> res.json();
  8911. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8912. <span class="hljs-built_in">console</span>.log(body);
  8913. });
  8914. </code></pre>
  8915. <pre class="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>);
  8916. <span class="hljs-keyword">const</span> headers = {
  8917. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  8918. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8919. };
  8920. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  8921. {
  8922. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  8923. <span class="hljs-attr">headers</span>: headers
  8924. })
  8925. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  8926. <span class="hljs-keyword">return</span> res.json();
  8927. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  8928. <span class="hljs-built_in">console</span>.log(body);
  8929. });
  8930. </code></pre>
  8931. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  8932. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  8933. headers = {
  8934. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8935. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8936. }
  8937. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>,
  8938. <span class="hljs-symbol">params:</span> {
  8939. }, <span class="hljs-symbol">headers:</span> headers
  8940. p JSON.parse(result)
  8941. </code></pre>
  8942. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  8943. headers = {
  8944. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8945. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  8946. }
  8947. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>, headers = headers)
  8948. <span class="hljs-built_in">print</span>(r.json())
  8949. </code></pre>
  8950. <pre class="highlight tab tab-java"><code>URL obj = <span class="hljs-keyword">new</span> URL(<span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards_count&quot;</span>);
  8951. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  8952. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  8953. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  8954. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  8955. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  8956. String inputLine;
  8957. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  8958. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  8959. response.append(inputLine);
  8960. }
  8961. in.close();
  8962. System.out.println(response.toString());
  8963. </code></pre>
  8964. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  8965. <span class="hljs-keyword">import</span> (
  8966. <span class="hljs-string">&quot;bytes&quot;</span>
  8967. <span class="hljs-string">&quot;net/http&quot;</span>
  8968. )
  8969. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  8970. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  8971. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  8972. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  8973. }
  8974. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  8975. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists/{list}/cards_count&quot;</span>, data)
  8976. req.Header = headers
  8977. client := &amp;http.Client{}
  8978. resp, err := client.Do(req)
  8979. <span class="hljs-comment">// ...</span>
  8980. }
  8981. </code></pre>
  8982. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  8983. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  8984. );
  8985. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  8986. <span class="hljs-comment">// Define array of request body.</span>
  8987. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  8988. <span class="hljs-keyword">try</span> {
  8989. <span class="hljs-variable">$response</span> = <span class="hljs-variable">$client</span>-&gt;request(<span class="hljs-string">&#x27;GET&#x27;</span>,<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}/cards_count&#x27;</span>, <span class="hljs-keyword">array</span>(
  8990. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  8991. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  8992. )
  8993. );
  8994. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  8995. }
  8996. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  8997. <span class="hljs-comment">// handle exception or api errors.</span>
  8998. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  8999. }
  9000. <span class="hljs-comment">// ...</span>
  9001. </code></pre>
  9002. <p><code>GET /api/boards/{board}/lists/{list}/cards_count</code></p>
  9003. <p><em>Get a cards count to a list</em></p>
  9004. <h3 id="get_list_cards_count-parameters">Parameters</h3>
  9005. <table>
  9006. <thead>
  9007. <tr>
  9008. <th>Name</th>
  9009. <th>In</th>
  9010. <th>Type</th>
  9011. <th>Required</th>
  9012. <th>Description</th>
  9013. </tr>
  9014. </thead>
  9015. <tbody>
  9016. <tr>
  9017. <td>board</td>
  9018. <td>path</td>
  9019. <td>string</td>
  9020. <td>true</td>
  9021. <td>the board ID</td>
  9022. </tr>
  9023. <tr>
  9024. <td>list</td>
  9025. <td>path</td>
  9026. <td>string</td>
  9027. <td>true</td>
  9028. <td>the List ID</td>
  9029. </tr>
  9030. </tbody>
  9031. </table>
  9032. <h4 id="detailed-descriptions-27">Detailed descriptions</h4>
  9033. <p><strong>board</strong>: the board ID</p>
  9034. <p><strong>list</strong>: the List ID</p>
  9035. <blockquote>
  9036. <p>Example responses</p>
  9037. </blockquote>
  9038. <blockquote>
  9039. <p>200 Response</p>
  9040. </blockquote>
  9041. <pre class="highlight tab tab-json"><code>{
  9042. <span class="hljs-attr">&quot;list_cards_count&quot;</span>: <span class="hljs-number">0</span>
  9043. }
  9044. </code></pre>
  9045. <h3 id="get_list_cards_count-responses">Responses</h3>
  9046. <table>
  9047. <thead>
  9048. <tr>
  9049. <th>Status</th>
  9050. <th>Meaning</th>
  9051. <th>Description</th>
  9052. <th>Schema</th>
  9053. </tr>
  9054. </thead>
  9055. <tbody>
  9056. <tr>
  9057. <td>200</td>
  9058. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9059. <td>200 response</td>
  9060. <td>Inline</td>
  9061. </tr>
  9062. </tbody>
  9063. </table>
  9064. <h3 id="get_list_cards_count-responseschema">Response Schema</h3>
  9065. <p>Status Code <strong>200</strong></p>
  9066. <table>
  9067. <thead>
  9068. <tr>
  9069. <th>Name</th>
  9070. <th>Type</th>
  9071. <th>Required</th>
  9072. <th>Restrictions</th>
  9073. <th>Description</th>
  9074. </tr>
  9075. </thead>
  9076. <tbody>
  9077. <tr>
  9078. <td>» list_cards_count</td>
  9079. <td>integer</td>
  9080. <td>false</td>
  9081. <td>none</td>
  9082. <td>none</td>
  9083. </tr>
  9084. </tbody>
  9085. </table>
  9086. <aside class="warning">
  9087. To perform this operation, you must be authenticated by means of one of the following methods:
  9088. UserSecurity
  9089. </aside>
  9090. <h2 id="get_swimlane_cards">get_swimlane_cards</h2>
  9091. <p><a id="opIdget_swimlane_cards"></a></p>
  9092. <blockquote>
  9093. <p>Code samples</p>
  9094. </blockquote>
  9095. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9096. curl -X GET /api/boards/{board}/swimlanes/{swimlane}/cards \
  9097. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9098. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9099. </code></pre>
  9100. <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>
  9101. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9102. </span></code></pre>
  9103. <pre class="highlight tab tab-javascript"><code>
  9104. <span class="hljs-keyword">const</span> headers = {
  9105. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9106. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9107. };
  9108. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9109. {
  9110. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9111. <span class="hljs-attr">headers</span>: headers
  9112. })
  9113. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9114. <span class="hljs-keyword">return</span> res.json();
  9115. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9116. <span class="hljs-built_in">console</span>.log(body);
  9117. });
  9118. </code></pre>
  9119. <pre class="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>);
  9120. <span class="hljs-keyword">const</span> headers = {
  9121. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9122. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9123. };
  9124. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9125. {
  9126. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9127. <span class="hljs-attr">headers</span>: headers
  9128. })
  9129. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9130. <span class="hljs-keyword">return</span> res.json();
  9131. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9132. <span class="hljs-built_in">console</span>.log(body);
  9133. });
  9134. </code></pre>
  9135. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9136. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9137. headers = {
  9138. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9139. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9140. }
  9141. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>,
  9142. <span class="hljs-symbol">params:</span> {
  9143. }, <span class="hljs-symbol">headers:</span> headers
  9144. p JSON.parse(result)
  9145. </code></pre>
  9146. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9147. headers = {
  9148. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9149. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9150. }
  9151. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}/cards&#x27;</span>, headers = headers)
  9152. <span class="hljs-built_in">print</span>(r.json())
  9153. </code></pre>
  9154. <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>);
  9155. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9156. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9157. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9158. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9159. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9160. String inputLine;
  9161. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9162. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9163. response.append(inputLine);
  9164. }
  9165. in.close();
  9166. System.out.println(response.toString());
  9167. </code></pre>
  9168. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9169. <span class="hljs-keyword">import</span> (
  9170. <span class="hljs-string">&quot;bytes&quot;</span>
  9171. <span class="hljs-string">&quot;net/http&quot;</span>
  9172. )
  9173. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9174. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9175. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9176. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9177. }
  9178. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9179. 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)
  9180. req.Header = headers
  9181. client := &amp;http.Client{}
  9182. resp, err := client.Do(req)
  9183. <span class="hljs-comment">// ...</span>
  9184. }
  9185. </code></pre>
  9186. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9187. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9188. );
  9189. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9190. <span class="hljs-comment">// Define array of request body.</span>
  9191. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9192. <span class="hljs-keyword">try</span> {
  9193. <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>(
  9194. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9195. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9196. )
  9197. );
  9198. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9199. }
  9200. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9201. <span class="hljs-comment">// handle exception or api errors.</span>
  9202. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9203. }
  9204. <span class="hljs-comment">// ...</span>
  9205. </code></pre>
  9206. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}/cards</code></p>
  9207. <p><em>get all cards attached to a swimlane</em></p>
  9208. <h3 id="get_swimlane_cards-parameters">Parameters</h3>
  9209. <table>
  9210. <thead>
  9211. <tr>
  9212. <th>Name</th>
  9213. <th>In</th>
  9214. <th>Type</th>
  9215. <th>Required</th>
  9216. <th>Description</th>
  9217. </tr>
  9218. </thead>
  9219. <tbody>
  9220. <tr>
  9221. <td>board</td>
  9222. <td>path</td>
  9223. <td>string</td>
  9224. <td>true</td>
  9225. <td>the board ID</td>
  9226. </tr>
  9227. <tr>
  9228. <td>swimlane</td>
  9229. <td>path</td>
  9230. <td>string</td>
  9231. <td>true</td>
  9232. <td>the swimlane ID</td>
  9233. </tr>
  9234. </tbody>
  9235. </table>
  9236. <h4 id="detailed-descriptions-28">Detailed descriptions</h4>
  9237. <p><strong>board</strong>: the board ID</p>
  9238. <p><strong>swimlane</strong>: the swimlane ID</p>
  9239. <blockquote>
  9240. <p>Example responses</p>
  9241. </blockquote>
  9242. <blockquote>
  9243. <p>200 Response</p>
  9244. </blockquote>
  9245. <pre class="highlight tab tab-json"><code>[
  9246. {
  9247. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9248. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9249. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9250. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9251. }
  9252. ]
  9253. </code></pre>
  9254. <h3 id="get_swimlane_cards-responses">Responses</h3>
  9255. <table>
  9256. <thead>
  9257. <tr>
  9258. <th>Status</th>
  9259. <th>Meaning</th>
  9260. <th>Description</th>
  9261. <th>Schema</th>
  9262. </tr>
  9263. </thead>
  9264. <tbody>
  9265. <tr>
  9266. <td>200</td>
  9267. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9268. <td>200 response</td>
  9269. <td>Inline</td>
  9270. </tr>
  9271. </tbody>
  9272. </table>
  9273. <h3 id="get_swimlane_cards-responseschema">Response Schema</h3>
  9274. <p>Status Code <strong>200</strong></p>
  9275. <table>
  9276. <thead>
  9277. <tr>
  9278. <th>Name</th>
  9279. <th>Type</th>
  9280. <th>Required</th>
  9281. <th>Restrictions</th>
  9282. <th>Description</th>
  9283. </tr>
  9284. </thead>
  9285. <tbody>
  9286. <tr>
  9287. <td>» _id</td>
  9288. <td>string</td>
  9289. <td>false</td>
  9290. <td>none</td>
  9291. <td>none</td>
  9292. </tr>
  9293. <tr>
  9294. <td>» title</td>
  9295. <td>string</td>
  9296. <td>false</td>
  9297. <td>none</td>
  9298. <td>none</td>
  9299. </tr>
  9300. <tr>
  9301. <td>» description</td>
  9302. <td>string</td>
  9303. <td>false</td>
  9304. <td>none</td>
  9305. <td>none</td>
  9306. </tr>
  9307. <tr>
  9308. <td>» listId</td>
  9309. <td>string</td>
  9310. <td>false</td>
  9311. <td>none</td>
  9312. <td>none</td>
  9313. </tr>
  9314. </tbody>
  9315. </table>
  9316. <aside class="warning">
  9317. To perform this operation, you must be authenticated by means of one of the following methods:
  9318. UserSecurity
  9319. </aside>
  9320. <h1 id="wekan-rest-api-customfields">CustomFields</h1>
  9321. <h2 id="get_all_custom_fields">get_all_custom_fields</h2>
  9322. <p><a id="opIdget_all_custom_fields"></a></p>
  9323. <blockquote>
  9324. <p>Code samples</p>
  9325. </blockquote>
  9326. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9327. curl -X GET /api/boards/{board}/custom-fields \
  9328. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9329. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9330. </code></pre>
  9331. <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>
  9332. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9333. </span></code></pre>
  9334. <pre class="highlight tab tab-javascript"><code>
  9335. <span class="hljs-keyword">const</span> headers = {
  9336. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9337. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9338. };
  9339. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9340. {
  9341. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9342. <span class="hljs-attr">headers</span>: headers
  9343. })
  9344. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9345. <span class="hljs-keyword">return</span> res.json();
  9346. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9347. <span class="hljs-built_in">console</span>.log(body);
  9348. });
  9349. </code></pre>
  9350. <pre class="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>);
  9351. <span class="hljs-keyword">const</span> headers = {
  9352. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9353. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9354. };
  9355. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9356. {
  9357. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9358. <span class="hljs-attr">headers</span>: headers
  9359. })
  9360. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9361. <span class="hljs-keyword">return</span> res.json();
  9362. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9363. <span class="hljs-built_in">console</span>.log(body);
  9364. });
  9365. </code></pre>
  9366. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9367. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9368. headers = {
  9369. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9370. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9371. }
  9372. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9373. <span class="hljs-symbol">params:</span> {
  9374. }, <span class="hljs-symbol">headers:</span> headers
  9375. p JSON.parse(result)
  9376. </code></pre>
  9377. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9378. headers = {
  9379. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9380. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9381. }
  9382. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9383. <span class="hljs-built_in">print</span>(r.json())
  9384. </code></pre>
  9385. <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>);
  9386. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9387. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9388. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9389. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9390. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9391. String inputLine;
  9392. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9393. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9394. response.append(inputLine);
  9395. }
  9396. in.close();
  9397. System.out.println(response.toString());
  9398. </code></pre>
  9399. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9400. <span class="hljs-keyword">import</span> (
  9401. <span class="hljs-string">&quot;bytes&quot;</span>
  9402. <span class="hljs-string">&quot;net/http&quot;</span>
  9403. )
  9404. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9405. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9406. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9407. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9408. }
  9409. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9410. 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)
  9411. req.Header = headers
  9412. client := &amp;http.Client{}
  9413. resp, err := client.Do(req)
  9414. <span class="hljs-comment">// ...</span>
  9415. }
  9416. </code></pre>
  9417. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9418. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9419. );
  9420. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9421. <span class="hljs-comment">// Define array of request body.</span>
  9422. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9423. <span class="hljs-keyword">try</span> {
  9424. <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>(
  9425. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9426. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9427. )
  9428. );
  9429. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9430. }
  9431. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9432. <span class="hljs-comment">// handle exception or api errors.</span>
  9433. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9434. }
  9435. <span class="hljs-comment">// ...</span>
  9436. </code></pre>
  9437. <p><code>GET /api/boards/{board}/custom-fields</code></p>
  9438. <p><em>Get the list of Custom Fields attached to a board</em></p>
  9439. <h3 id="get_all_custom_fields-parameters">Parameters</h3>
  9440. <table>
  9441. <thead>
  9442. <tr>
  9443. <th>Name</th>
  9444. <th>In</th>
  9445. <th>Type</th>
  9446. <th>Required</th>
  9447. <th>Description</th>
  9448. </tr>
  9449. </thead>
  9450. <tbody>
  9451. <tr>
  9452. <td>board</td>
  9453. <td>path</td>
  9454. <td>string</td>
  9455. <td>true</td>
  9456. <td>the board value</td>
  9457. </tr>
  9458. </tbody>
  9459. </table>
  9460. <blockquote>
  9461. <p>Example responses</p>
  9462. </blockquote>
  9463. <blockquote>
  9464. <p>200 Response</p>
  9465. </blockquote>
  9466. <pre class="highlight tab tab-json"><code>[
  9467. {
  9468. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9469. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9470. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9471. }
  9472. ]
  9473. </code></pre>
  9474. <h3 id="get_all_custom_fields-responses">Responses</h3>
  9475. <table>
  9476. <thead>
  9477. <tr>
  9478. <th>Status</th>
  9479. <th>Meaning</th>
  9480. <th>Description</th>
  9481. <th>Schema</th>
  9482. </tr>
  9483. </thead>
  9484. <tbody>
  9485. <tr>
  9486. <td>200</td>
  9487. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9488. <td>200 response</td>
  9489. <td>Inline</td>
  9490. </tr>
  9491. </tbody>
  9492. </table>
  9493. <h3 id="get_all_custom_fields-responseschema">Response Schema</h3>
  9494. <p>Status Code <strong>200</strong></p>
  9495. <table>
  9496. <thead>
  9497. <tr>
  9498. <th>Name</th>
  9499. <th>Type</th>
  9500. <th>Required</th>
  9501. <th>Restrictions</th>
  9502. <th>Description</th>
  9503. </tr>
  9504. </thead>
  9505. <tbody>
  9506. <tr>
  9507. <td>» _id</td>
  9508. <td>string</td>
  9509. <td>false</td>
  9510. <td>none</td>
  9511. <td>none</td>
  9512. </tr>
  9513. <tr>
  9514. <td>» name</td>
  9515. <td>string</td>
  9516. <td>false</td>
  9517. <td>none</td>
  9518. <td>none</td>
  9519. </tr>
  9520. <tr>
  9521. <td>» type</td>
  9522. <td>string</td>
  9523. <td>false</td>
  9524. <td>none</td>
  9525. <td>none</td>
  9526. </tr>
  9527. </tbody>
  9528. </table>
  9529. <aside class="warning">
  9530. To perform this operation, you must be authenticated by means of one of the following methods:
  9531. UserSecurity
  9532. </aside>
  9533. <h2 id="new_custom_field">new_custom_field</h2>
  9534. <p><a id="opIdnew_custom_field"></a></p>
  9535. <blockquote>
  9536. <p>Code samples</p>
  9537. </blockquote>
  9538. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9539. curl -X POST /api/boards/{board}/custom-fields \
  9540. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  9541. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9542. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9543. </code></pre>
  9544. <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>
  9545. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  9546. Accept: application/json
  9547. </span></code></pre>
  9548. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  9549. &quot;name&quot;: &quot;string&quot;,
  9550. &quot;type&quot;: &quot;string&quot;,
  9551. &quot;settings&quot;: &quot;string&quot;,
  9552. &quot;showOnCard&quot;: true,
  9553. &quot;automaticallyOnCard&quot;: true,
  9554. &quot;showLabelOnMiniCard&quot;: true,
  9555. &quot;showSumAtTopOfList&quot;: true,
  9556. &quot;authorId&quot;: &quot;string&quot;
  9557. }&#x27;</span>;
  9558. <span class="hljs-keyword">const</span> headers = {
  9559. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9560. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9561. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9562. };
  9563. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9564. {
  9565. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9566. <span class="hljs-attr">body</span>: inputBody,
  9567. <span class="hljs-attr">headers</span>: headers
  9568. })
  9569. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9570. <span class="hljs-keyword">return</span> res.json();
  9571. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9572. <span class="hljs-built_in">console</span>.log(body);
  9573. });
  9574. </code></pre>
  9575. <pre class="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>);
  9576. <span class="hljs-keyword">const</span> inputBody = {
  9577. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9578. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9579. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9580. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9581. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  9582. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  9583. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  9584. <span class="hljs-string">&quot;authorId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9585. };
  9586. <span class="hljs-keyword">const</span> headers = {
  9587. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9588. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9589. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9590. };
  9591. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9592. {
  9593. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  9594. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  9595. <span class="hljs-attr">headers</span>: headers
  9596. })
  9597. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9598. <span class="hljs-keyword">return</span> res.json();
  9599. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9600. <span class="hljs-built_in">console</span>.log(body);
  9601. });
  9602. </code></pre>
  9603. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9604. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9605. headers = {
  9606. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9607. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9608. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9609. }
  9610. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>,
  9611. <span class="hljs-symbol">params:</span> {
  9612. }, <span class="hljs-symbol">headers:</span> headers
  9613. p JSON.parse(result)
  9614. </code></pre>
  9615. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9616. headers = {
  9617. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9618. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9619. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9620. }
  9621. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields&#x27;</span>, headers = headers)
  9622. <span class="hljs-built_in">print</span>(r.json())
  9623. </code></pre>
  9624. <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>);
  9625. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9626. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  9627. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9628. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9629. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9630. String inputLine;
  9631. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9632. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9633. response.append(inputLine);
  9634. }
  9635. in.close();
  9636. System.out.println(response.toString());
  9637. </code></pre>
  9638. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9639. <span class="hljs-keyword">import</span> (
  9640. <span class="hljs-string">&quot;bytes&quot;</span>
  9641. <span class="hljs-string">&quot;net/http&quot;</span>
  9642. )
  9643. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9644. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9645. <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>},
  9646. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9647. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9648. }
  9649. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9650. 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)
  9651. req.Header = headers
  9652. client := &amp;http.Client{}
  9653. resp, err := client.Do(req)
  9654. <span class="hljs-comment">// ...</span>
  9655. }
  9656. </code></pre>
  9657. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  9658. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9659. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9660. );
  9661. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9662. <span class="hljs-comment">// Define array of request body.</span>
  9663. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9664. <span class="hljs-keyword">try</span> {
  9665. <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>(
  9666. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9667. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9668. )
  9669. );
  9670. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9671. }
  9672. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9673. <span class="hljs-comment">// handle exception or api errors.</span>
  9674. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9675. }
  9676. <span class="hljs-comment">// ...</span>
  9677. </code></pre>
  9678. <p><code>POST /api/boards/{board}/custom-fields</code></p>
  9679. <p><em>Create a Custom Field</em></p>
  9680. <blockquote>
  9681. <p>Body parameter</p>
  9682. </blockquote>
  9683. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  9684. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  9685. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  9686. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  9687. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  9688. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  9689. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  9690. <span class="hljs-attr">authorId:</span> <span class="hljs-string">string</span>
  9691. </code></pre>
  9692. <h3 id="new_custom_field-parameters">Parameters</h3>
  9693. <table>
  9694. <thead>
  9695. <tr>
  9696. <th>Name</th>
  9697. <th>In</th>
  9698. <th>Type</th>
  9699. <th>Required</th>
  9700. <th>Description</th>
  9701. </tr>
  9702. </thead>
  9703. <tbody>
  9704. <tr>
  9705. <td>board</td>
  9706. <td>path</td>
  9707. <td>string</td>
  9708. <td>true</td>
  9709. <td>the board value</td>
  9710. </tr>
  9711. <tr>
  9712. <td>body</td>
  9713. <td>body</td>
  9714. <td>object</td>
  9715. <td>true</td>
  9716. <td>none</td>
  9717. </tr>
  9718. <tr>
  9719. <td>» name</td>
  9720. <td>body</td>
  9721. <td>string</td>
  9722. <td>true</td>
  9723. <td>the name of the custom field</td>
  9724. </tr>
  9725. <tr>
  9726. <td>» type</td>
  9727. <td>body</td>
  9728. <td>string</td>
  9729. <td>true</td>
  9730. <td>the type of the custom field</td>
  9731. </tr>
  9732. <tr>
  9733. <td>» settings</td>
  9734. <td>body</td>
  9735. <td>string</td>
  9736. <td>true</td>
  9737. <td>the settings object of the custom field</td>
  9738. </tr>
  9739. <tr>
  9740. <td>» showOnCard</td>
  9741. <td>body</td>
  9742. <td>boolean</td>
  9743. <td>true</td>
  9744. <td>should we show the custom field on cards?</td>
  9745. </tr>
  9746. <tr>
  9747. <td>» automaticallyOnCard</td>
  9748. <td>body</td>
  9749. <td>boolean</td>
  9750. <td>true</td>
  9751. <td>should the custom fields automatically be added on cards?</td>
  9752. </tr>
  9753. <tr>
  9754. <td>» showLabelOnMiniCard</td>
  9755. <td>body</td>
  9756. <td>boolean</td>
  9757. <td>true</td>
  9758. <td>should the label of the custom field be shown on minicards?</td>
  9759. </tr>
  9760. <tr>
  9761. <td>» showSumAtTopOfList</td>
  9762. <td>body</td>
  9763. <td>boolean</td>
  9764. <td>true</td>
  9765. <td>should the sum of the custom fields be shown at top of list?</td>
  9766. </tr>
  9767. <tr>
  9768. <td>» authorId</td>
  9769. <td>body</td>
  9770. <td>string</td>
  9771. <td>true</td>
  9772. <td>the authorId value</td>
  9773. </tr>
  9774. </tbody>
  9775. </table>
  9776. <blockquote>
  9777. <p>Example responses</p>
  9778. </blockquote>
  9779. <blockquote>
  9780. <p>200 Response</p>
  9781. </blockquote>
  9782. <pre class="highlight tab tab-json"><code>{
  9783. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9784. }
  9785. </code></pre>
  9786. <h3 id="new_custom_field-responses">Responses</h3>
  9787. <table>
  9788. <thead>
  9789. <tr>
  9790. <th>Status</th>
  9791. <th>Meaning</th>
  9792. <th>Description</th>
  9793. <th>Schema</th>
  9794. </tr>
  9795. </thead>
  9796. <tbody>
  9797. <tr>
  9798. <td>200</td>
  9799. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  9800. <td>200 response</td>
  9801. <td>Inline</td>
  9802. </tr>
  9803. </tbody>
  9804. </table>
  9805. <h3 id="new_custom_field-responseschema">Response Schema</h3>
  9806. <p>Status Code <strong>200</strong></p>
  9807. <table>
  9808. <thead>
  9809. <tr>
  9810. <th>Name</th>
  9811. <th>Type</th>
  9812. <th>Required</th>
  9813. <th>Restrictions</th>
  9814. <th>Description</th>
  9815. </tr>
  9816. </thead>
  9817. <tbody>
  9818. <tr>
  9819. <td>» _id</td>
  9820. <td>string</td>
  9821. <td>false</td>
  9822. <td>none</td>
  9823. <td>none</td>
  9824. </tr>
  9825. </tbody>
  9826. </table>
  9827. <aside class="warning">
  9828. To perform this operation, you must be authenticated by means of one of the following methods:
  9829. UserSecurity
  9830. </aside>
  9831. <h2 id="get_custom_field">get_custom_field</h2>
  9832. <p><a id="opIdget_custom_field"></a></p>
  9833. <blockquote>
  9834. <p>Code samples</p>
  9835. </blockquote>
  9836. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  9837. curl -X GET /api/boards/{board}/custom-fields/{customField} \
  9838. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  9839. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  9840. </code></pre>
  9841. <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>
  9842. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  9843. </span></code></pre>
  9844. <pre class="highlight tab tab-javascript"><code>
  9845. <span class="hljs-keyword">const</span> headers = {
  9846. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9847. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9848. };
  9849. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9850. {
  9851. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9852. <span class="hljs-attr">headers</span>: headers
  9853. })
  9854. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9855. <span class="hljs-keyword">return</span> res.json();
  9856. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9857. <span class="hljs-built_in">console</span>.log(body);
  9858. });
  9859. </code></pre>
  9860. <pre class="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>);
  9861. <span class="hljs-keyword">const</span> headers = {
  9862. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  9863. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9864. };
  9865. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9866. {
  9867. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  9868. <span class="hljs-attr">headers</span>: headers
  9869. })
  9870. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  9871. <span class="hljs-keyword">return</span> res.json();
  9872. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  9873. <span class="hljs-built_in">console</span>.log(body);
  9874. });
  9875. </code></pre>
  9876. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  9877. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  9878. headers = {
  9879. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9880. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9881. }
  9882. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  9883. <span class="hljs-symbol">params:</span> {
  9884. }, <span class="hljs-symbol">headers:</span> headers
  9885. p JSON.parse(result)
  9886. </code></pre>
  9887. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  9888. headers = {
  9889. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9890. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  9891. }
  9892. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  9893. <span class="hljs-built_in">print</span>(r.json())
  9894. </code></pre>
  9895. <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>);
  9896. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  9897. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  9898. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  9899. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  9900. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  9901. String inputLine;
  9902. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  9903. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  9904. response.append(inputLine);
  9905. }
  9906. in.close();
  9907. System.out.println(response.toString());
  9908. </code></pre>
  9909. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  9910. <span class="hljs-keyword">import</span> (
  9911. <span class="hljs-string">&quot;bytes&quot;</span>
  9912. <span class="hljs-string">&quot;net/http&quot;</span>
  9913. )
  9914. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  9915. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  9916. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  9917. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  9918. }
  9919. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  9920. 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)
  9921. req.Header = headers
  9922. client := &amp;http.Client{}
  9923. resp, err := client.Do(req)
  9924. <span class="hljs-comment">// ...</span>
  9925. }
  9926. </code></pre>
  9927. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  9928. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  9929. );
  9930. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  9931. <span class="hljs-comment">// Define array of request body.</span>
  9932. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  9933. <span class="hljs-keyword">try</span> {
  9934. <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>(
  9935. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  9936. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  9937. )
  9938. );
  9939. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  9940. }
  9941. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  9942. <span class="hljs-comment">// handle exception or api errors.</span>
  9943. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  9944. }
  9945. <span class="hljs-comment">// ...</span>
  9946. </code></pre>
  9947. <p><code>GET /api/boards/{board}/custom-fields/{customField}</code></p>
  9948. <p><em>Get a Custom Fields attached to a board</em></p>
  9949. <h3 id="get_custom_field-parameters">Parameters</h3>
  9950. <table>
  9951. <thead>
  9952. <tr>
  9953. <th>Name</th>
  9954. <th>In</th>
  9955. <th>Type</th>
  9956. <th>Required</th>
  9957. <th>Description</th>
  9958. </tr>
  9959. </thead>
  9960. <tbody>
  9961. <tr>
  9962. <td>board</td>
  9963. <td>path</td>
  9964. <td>string</td>
  9965. <td>true</td>
  9966. <td>the board value</td>
  9967. </tr>
  9968. <tr>
  9969. <td>customField</td>
  9970. <td>path</td>
  9971. <td>string</td>
  9972. <td>true</td>
  9973. <td>the ID of the custom field</td>
  9974. </tr>
  9975. </tbody>
  9976. </table>
  9977. <h4 id="detailed-descriptions-29">Detailed descriptions</h4>
  9978. <p><strong>customField</strong>: the ID of the custom field</p>
  9979. <blockquote>
  9980. <p>Example responses</p>
  9981. </blockquote>
  9982. <blockquote>
  9983. <p>200 Response</p>
  9984. </blockquote>
  9985. <pre class="highlight tab tab-json"><code>[
  9986. {
  9987. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  9988. <span class="hljs-attr">&quot;boardIds&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  9989. }
  9990. ]
  9991. </code></pre>
  9992. <h3 id="get_custom_field-responses">Responses</h3>
  9993. <table>
  9994. <thead>
  9995. <tr>
  9996. <th>Status</th>
  9997. <th>Meaning</th>
  9998. <th>Description</th>
  9999. <th>Schema</th>
  10000. </tr>
  10001. </thead>
  10002. <tbody>
  10003. <tr>
  10004. <td>200</td>
  10005. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10006. <td>200 response</td>
  10007. <td>Inline</td>
  10008. </tr>
  10009. </tbody>
  10010. </table>
  10011. <h3 id="get_custom_field-responseschema">Response Schema</h3>
  10012. <p>Status Code <strong>200</strong></p>
  10013. <table>
  10014. <thead>
  10015. <tr>
  10016. <th>Name</th>
  10017. <th>Type</th>
  10018. <th>Required</th>
  10019. <th>Restrictions</th>
  10020. <th>Description</th>
  10021. </tr>
  10022. </thead>
  10023. <tbody>
  10024. <tr>
  10025. <td>» _id</td>
  10026. <td>string</td>
  10027. <td>false</td>
  10028. <td>none</td>
  10029. <td>none</td>
  10030. </tr>
  10031. <tr>
  10032. <td>» boardIds</td>
  10033. <td>string</td>
  10034. <td>false</td>
  10035. <td>none</td>
  10036. <td>none</td>
  10037. </tr>
  10038. </tbody>
  10039. </table>
  10040. <aside class="warning">
  10041. To perform this operation, you must be authenticated by means of one of the following methods:
  10042. UserSecurity
  10043. </aside>
  10044. <h2 id="edit_custom_field">edit_custom_field</h2>
  10045. <p><a id="opIdedit_custom_field"></a></p>
  10046. <blockquote>
  10047. <p>Code samples</p>
  10048. </blockquote>
  10049. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10050. curl -X PUT /api/boards/{board}/custom-fields/{customField} \
  10051. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10052. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10053. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10054. </code></pre>
  10055. <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>
  10056. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10057. Accept: application/json
  10058. </span></code></pre>
  10059. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10060. &quot;name&quot;: &quot;string&quot;,
  10061. &quot;type&quot;: &quot;string&quot;,
  10062. &quot;settings&quot;: &quot;string&quot;,
  10063. &quot;showOnCard&quot;: true,
  10064. &quot;automaticallyOnCard&quot;: true,
  10065. &quot;alwaysOnCard&quot;: &quot;string&quot;,
  10066. &quot;showLabelOnMiniCard&quot;: true,
  10067. &quot;showSumAtTopOfList&quot;: true
  10068. }&#x27;</span>;
  10069. <span class="hljs-keyword">const</span> headers = {
  10070. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10071. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10072. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10073. };
  10074. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10075. {
  10076. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10077. <span class="hljs-attr">body</span>: inputBody,
  10078. <span class="hljs-attr">headers</span>: headers
  10079. })
  10080. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10081. <span class="hljs-keyword">return</span> res.json();
  10082. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10083. <span class="hljs-built_in">console</span>.log(body);
  10084. });
  10085. </code></pre>
  10086. <pre class="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>);
  10087. <span class="hljs-keyword">const</span> inputBody = {
  10088. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10089. <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10090. <span class="hljs-string">&quot;settings&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10091. <span class="hljs-string">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10092. <span class="hljs-string">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  10093. <span class="hljs-string">&quot;alwaysOnCard&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  10094. <span class="hljs-string">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  10095. <span class="hljs-string">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>
  10096. };
  10097. <span class="hljs-keyword">const</span> headers = {
  10098. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10099. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10100. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10101. };
  10102. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10103. {
  10104. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10105. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10106. <span class="hljs-attr">headers</span>: headers
  10107. })
  10108. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10109. <span class="hljs-keyword">return</span> res.json();
  10110. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10111. <span class="hljs-built_in">console</span>.log(body);
  10112. });
  10113. </code></pre>
  10114. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10115. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10116. headers = {
  10117. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10118. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10119. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10120. }
  10121. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10122. <span class="hljs-symbol">params:</span> {
  10123. }, <span class="hljs-symbol">headers:</span> headers
  10124. p JSON.parse(result)
  10125. </code></pre>
  10126. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10127. headers = {
  10128. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10129. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10130. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10131. }
  10132. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10133. <span class="hljs-built_in">print</span>(r.json())
  10134. </code></pre>
  10135. <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>);
  10136. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10137. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10138. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10139. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10140. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10141. String inputLine;
  10142. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10143. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10144. response.append(inputLine);
  10145. }
  10146. in.close();
  10147. System.out.println(response.toString());
  10148. </code></pre>
  10149. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10150. <span class="hljs-keyword">import</span> (
  10151. <span class="hljs-string">&quot;bytes&quot;</span>
  10152. <span class="hljs-string">&quot;net/http&quot;</span>
  10153. )
  10154. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10155. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10156. <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>},
  10157. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10158. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10159. }
  10160. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10161. 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)
  10162. req.Header = headers
  10163. client := &amp;http.Client{}
  10164. resp, err := client.Do(req)
  10165. <span class="hljs-comment">// ...</span>
  10166. }
  10167. </code></pre>
  10168. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10169. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10170. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10171. );
  10172. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10173. <span class="hljs-comment">// Define array of request body.</span>
  10174. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10175. <span class="hljs-keyword">try</span> {
  10176. <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>(
  10177. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10178. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10179. )
  10180. );
  10181. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10182. }
  10183. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10184. <span class="hljs-comment">// handle exception or api errors.</span>
  10185. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10186. }
  10187. <span class="hljs-comment">// ...</span>
  10188. </code></pre>
  10189. <p><code>PUT /api/boards/{board}/custom-fields/{customField}</code></p>
  10190. <p><em>Update a Custom Field</em></p>
  10191. <blockquote>
  10192. <p>Body parameter</p>
  10193. </blockquote>
  10194. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10195. <span class="hljs-attr">type:</span> <span class="hljs-string">string</span>
  10196. <span class="hljs-attr">settings:</span> <span class="hljs-string">string</span>
  10197. <span class="hljs-attr">showOnCard:</span> <span class="hljs-literal">true</span>
  10198. <span class="hljs-attr">automaticallyOnCard:</span> <span class="hljs-literal">true</span>
  10199. <span class="hljs-attr">alwaysOnCard:</span> <span class="hljs-string">string</span>
  10200. <span class="hljs-attr">showLabelOnMiniCard:</span> <span class="hljs-literal">true</span>
  10201. <span class="hljs-attr">showSumAtTopOfList:</span> <span class="hljs-literal">true</span>
  10202. </code></pre>
  10203. <h3 id="edit_custom_field-parameters">Parameters</h3>
  10204. <table>
  10205. <thead>
  10206. <tr>
  10207. <th>Name</th>
  10208. <th>In</th>
  10209. <th>Type</th>
  10210. <th>Required</th>
  10211. <th>Description</th>
  10212. </tr>
  10213. </thead>
  10214. <tbody>
  10215. <tr>
  10216. <td>board</td>
  10217. <td>path</td>
  10218. <td>string</td>
  10219. <td>true</td>
  10220. <td>the board value</td>
  10221. </tr>
  10222. <tr>
  10223. <td>customField</td>
  10224. <td>path</td>
  10225. <td>string</td>
  10226. <td>true</td>
  10227. <td>the customField value</td>
  10228. </tr>
  10229. <tr>
  10230. <td>body</td>
  10231. <td>body</td>
  10232. <td>object</td>
  10233. <td>true</td>
  10234. <td>none</td>
  10235. </tr>
  10236. <tr>
  10237. <td>» name</td>
  10238. <td>body</td>
  10239. <td>string</td>
  10240. <td>true</td>
  10241. <td>the name of the custom field</td>
  10242. </tr>
  10243. <tr>
  10244. <td>» type</td>
  10245. <td>body</td>
  10246. <td>string</td>
  10247. <td>true</td>
  10248. <td>the type of the custom field</td>
  10249. </tr>
  10250. <tr>
  10251. <td>» settings</td>
  10252. <td>body</td>
  10253. <td>string</td>
  10254. <td>true</td>
  10255. <td>the settings object of the custom field</td>
  10256. </tr>
  10257. <tr>
  10258. <td>» showOnCard</td>
  10259. <td>body</td>
  10260. <td>boolean</td>
  10261. <td>true</td>
  10262. <td>should we show the custom field on cards</td>
  10263. </tr>
  10264. <tr>
  10265. <td>» automaticallyOnCard</td>
  10266. <td>body</td>
  10267. <td>boolean</td>
  10268. <td>true</td>
  10269. <td>should the custom fields automatically be added on cards</td>
  10270. </tr>
  10271. <tr>
  10272. <td>» alwaysOnCard</td>
  10273. <td>body</td>
  10274. <td>string</td>
  10275. <td>true</td>
  10276. <td>the alwaysOnCard value</td>
  10277. </tr>
  10278. <tr>
  10279. <td>» showLabelOnMiniCard</td>
  10280. <td>body</td>
  10281. <td>boolean</td>
  10282. <td>true</td>
  10283. <td>should the label of the custom field be shown on minicards</td>
  10284. </tr>
  10285. <tr>
  10286. <td>» showSumAtTopOfList</td>
  10287. <td>body</td>
  10288. <td>boolean</td>
  10289. <td>true</td>
  10290. <td>should the sum of the custom fields be shown at top of list</td>
  10291. </tr>
  10292. </tbody>
  10293. </table>
  10294. <blockquote>
  10295. <p>Example responses</p>
  10296. </blockquote>
  10297. <blockquote>
  10298. <p>200 Response</p>
  10299. </blockquote>
  10300. <pre class="highlight tab tab-json"><code>{
  10301. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10302. }
  10303. </code></pre>
  10304. <h3 id="edit_custom_field-responses">Responses</h3>
  10305. <table>
  10306. <thead>
  10307. <tr>
  10308. <th>Status</th>
  10309. <th>Meaning</th>
  10310. <th>Description</th>
  10311. <th>Schema</th>
  10312. </tr>
  10313. </thead>
  10314. <tbody>
  10315. <tr>
  10316. <td>200</td>
  10317. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10318. <td>200 response</td>
  10319. <td>Inline</td>
  10320. </tr>
  10321. </tbody>
  10322. </table>
  10323. <h3 id="edit_custom_field-responseschema">Response Schema</h3>
  10324. <p>Status Code <strong>200</strong></p>
  10325. <table>
  10326. <thead>
  10327. <tr>
  10328. <th>Name</th>
  10329. <th>Type</th>
  10330. <th>Required</th>
  10331. <th>Restrictions</th>
  10332. <th>Description</th>
  10333. </tr>
  10334. </thead>
  10335. <tbody>
  10336. <tr>
  10337. <td>» _id</td>
  10338. <td>string</td>
  10339. <td>false</td>
  10340. <td>none</td>
  10341. <td>none</td>
  10342. </tr>
  10343. </tbody>
  10344. </table>
  10345. <aside class="warning">
  10346. To perform this operation, you must be authenticated by means of one of the following methods:
  10347. UserSecurity
  10348. </aside>
  10349. <h2 id="delete_custom_field">delete_custom_field</h2>
  10350. <p><a id="opIddelete_custom_field"></a></p>
  10351. <blockquote>
  10352. <p>Code samples</p>
  10353. </blockquote>
  10354. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10355. curl -X DELETE /api/boards/{board}/custom-fields/{customField} \
  10356. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10357. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10358. </code></pre>
  10359. <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>
  10360. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  10361. </span></code></pre>
  10362. <pre class="highlight tab tab-javascript"><code>
  10363. <span class="hljs-keyword">const</span> headers = {
  10364. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10365. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10366. };
  10367. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10368. {
  10369. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10370. <span class="hljs-attr">headers</span>: headers
  10371. })
  10372. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10373. <span class="hljs-keyword">return</span> res.json();
  10374. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10375. <span class="hljs-built_in">console</span>.log(body);
  10376. });
  10377. </code></pre>
  10378. <pre class="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>);
  10379. <span class="hljs-keyword">const</span> headers = {
  10380. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10381. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10382. };
  10383. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10384. {
  10385. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  10386. <span class="hljs-attr">headers</span>: headers
  10387. })
  10388. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10389. <span class="hljs-keyword">return</span> res.json();
  10390. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10391. <span class="hljs-built_in">console</span>.log(body);
  10392. });
  10393. </code></pre>
  10394. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10395. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10396. headers = {
  10397. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10398. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10399. }
  10400. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>,
  10401. <span class="hljs-symbol">params:</span> {
  10402. }, <span class="hljs-symbol">headers:</span> headers
  10403. p JSON.parse(result)
  10404. </code></pre>
  10405. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10406. headers = {
  10407. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10408. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10409. }
  10410. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}&#x27;</span>, headers = headers)
  10411. <span class="hljs-built_in">print</span>(r.json())
  10412. </code></pre>
  10413. <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>);
  10414. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10415. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  10416. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10417. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10418. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10419. String inputLine;
  10420. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10421. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10422. response.append(inputLine);
  10423. }
  10424. in.close();
  10425. System.out.println(response.toString());
  10426. </code></pre>
  10427. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10428. <span class="hljs-keyword">import</span> (
  10429. <span class="hljs-string">&quot;bytes&quot;</span>
  10430. <span class="hljs-string">&quot;net/http&quot;</span>
  10431. )
  10432. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10433. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10434. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10435. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10436. }
  10437. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10438. 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)
  10439. req.Header = headers
  10440. client := &amp;http.Client{}
  10441. resp, err := client.Do(req)
  10442. <span class="hljs-comment">// ...</span>
  10443. }
  10444. </code></pre>
  10445. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10446. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10447. );
  10448. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10449. <span class="hljs-comment">// Define array of request body.</span>
  10450. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10451. <span class="hljs-keyword">try</span> {
  10452. <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>(
  10453. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10454. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10455. )
  10456. );
  10457. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10458. }
  10459. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10460. <span class="hljs-comment">// handle exception or api errors.</span>
  10461. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10462. }
  10463. <span class="hljs-comment">// ...</span>
  10464. </code></pre>
  10465. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}</code></p>
  10466. <p><em>Delete a Custom Fields attached to a board</em></p>
  10467. <p>The Custom Field can't be retrieved after this operation</p>
  10468. <h3 id="delete_custom_field-parameters">Parameters</h3>
  10469. <table>
  10470. <thead>
  10471. <tr>
  10472. <th>Name</th>
  10473. <th>In</th>
  10474. <th>Type</th>
  10475. <th>Required</th>
  10476. <th>Description</th>
  10477. </tr>
  10478. </thead>
  10479. <tbody>
  10480. <tr>
  10481. <td>board</td>
  10482. <td>path</td>
  10483. <td>string</td>
  10484. <td>true</td>
  10485. <td>the board value</td>
  10486. </tr>
  10487. <tr>
  10488. <td>customField</td>
  10489. <td>path</td>
  10490. <td>string</td>
  10491. <td>true</td>
  10492. <td>the ID of the custom field</td>
  10493. </tr>
  10494. </tbody>
  10495. </table>
  10496. <h4 id="detailed-descriptions-30">Detailed descriptions</h4>
  10497. <p><strong>customField</strong>: the ID of the custom field</p>
  10498. <blockquote>
  10499. <p>Example responses</p>
  10500. </blockquote>
  10501. <blockquote>
  10502. <p>200 Response</p>
  10503. </blockquote>
  10504. <pre class="highlight tab tab-json"><code>{
  10505. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10506. }
  10507. </code></pre>
  10508. <h3 id="delete_custom_field-responses">Responses</h3>
  10509. <table>
  10510. <thead>
  10511. <tr>
  10512. <th>Status</th>
  10513. <th>Meaning</th>
  10514. <th>Description</th>
  10515. <th>Schema</th>
  10516. </tr>
  10517. </thead>
  10518. <tbody>
  10519. <tr>
  10520. <td>200</td>
  10521. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10522. <td>200 response</td>
  10523. <td>Inline</td>
  10524. </tr>
  10525. </tbody>
  10526. </table>
  10527. <h3 id="delete_custom_field-responseschema">Response Schema</h3>
  10528. <p>Status Code <strong>200</strong></p>
  10529. <table>
  10530. <thead>
  10531. <tr>
  10532. <th>Name</th>
  10533. <th>Type</th>
  10534. <th>Required</th>
  10535. <th>Restrictions</th>
  10536. <th>Description</th>
  10537. </tr>
  10538. </thead>
  10539. <tbody>
  10540. <tr>
  10541. <td>» _id</td>
  10542. <td>string</td>
  10543. <td>false</td>
  10544. <td>none</td>
  10545. <td>none</td>
  10546. </tr>
  10547. </tbody>
  10548. </table>
  10549. <aside class="warning">
  10550. To perform this operation, you must be authenticated by means of one of the following methods:
  10551. UserSecurity
  10552. </aside>
  10553. <h2 id="add_custom_field_dropdown_items">add_custom_field_dropdown_items</h2>
  10554. <p><a id="opIdadd_custom_field_dropdown_items"></a></p>
  10555. <blockquote>
  10556. <p>Code samples</p>
  10557. </blockquote>
  10558. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10559. curl -X POST /api/boards/{board}/custom-fields/{customField}/dropdown-items \
  10560. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10561. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10562. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10563. </code></pre>
  10564. <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>
  10565. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10566. Accept: application/json
  10567. </span></code></pre>
  10568. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10569. &quot;items&quot;: &quot;string&quot;
  10570. }&#x27;</span>;
  10571. <span class="hljs-keyword">const</span> headers = {
  10572. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10573. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10574. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10575. };
  10576. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10577. {
  10578. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10579. <span class="hljs-attr">body</span>: inputBody,
  10580. <span class="hljs-attr">headers</span>: headers
  10581. })
  10582. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10583. <span class="hljs-keyword">return</span> res.json();
  10584. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10585. <span class="hljs-built_in">console</span>.log(body);
  10586. });
  10587. </code></pre>
  10588. <pre class="highlight tab tab-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>);
  10589. <span class="hljs-keyword">const</span> inputBody = {
  10590. <span class="hljs-string">&quot;items&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10591. };
  10592. <span class="hljs-keyword">const</span> headers = {
  10593. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10594. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10595. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10596. };
  10597. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10598. {
  10599. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  10600. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10601. <span class="hljs-attr">headers</span>: headers
  10602. })
  10603. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10604. <span class="hljs-keyword">return</span> res.json();
  10605. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10606. <span class="hljs-built_in">console</span>.log(body);
  10607. });
  10608. </code></pre>
  10609. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10610. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10611. headers = {
  10612. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10613. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10614. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10615. }
  10616. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>,
  10617. <span class="hljs-symbol">params:</span> {
  10618. }, <span class="hljs-symbol">headers:</span> headers
  10619. p JSON.parse(result)
  10620. </code></pre>
  10621. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10622. headers = {
  10623. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10624. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10625. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10626. }
  10627. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items&#x27;</span>, headers = headers)
  10628. <span class="hljs-built_in">print</span>(r.json())
  10629. </code></pre>
  10630. <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>);
  10631. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10632. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  10633. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10634. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10635. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10636. String inputLine;
  10637. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10638. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10639. response.append(inputLine);
  10640. }
  10641. in.close();
  10642. System.out.println(response.toString());
  10643. </code></pre>
  10644. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10645. <span class="hljs-keyword">import</span> (
  10646. <span class="hljs-string">&quot;bytes&quot;</span>
  10647. <span class="hljs-string">&quot;net/http&quot;</span>
  10648. )
  10649. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10650. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10651. <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>},
  10652. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10653. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10654. }
  10655. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10656. 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)
  10657. req.Header = headers
  10658. client := &amp;http.Client{}
  10659. resp, err := client.Do(req)
  10660. <span class="hljs-comment">// ...</span>
  10661. }
  10662. </code></pre>
  10663. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10664. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10665. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10666. );
  10667. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10668. <span class="hljs-comment">// Define array of request body.</span>
  10669. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10670. <span class="hljs-keyword">try</span> {
  10671. <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>(
  10672. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10673. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10674. )
  10675. );
  10676. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10677. }
  10678. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10679. <span class="hljs-comment">// handle exception or api errors.</span>
  10680. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10681. }
  10682. <span class="hljs-comment">// ...</span>
  10683. </code></pre>
  10684. <p><code>POST /api/boards/{board}/custom-fields/{customField}/dropdown-items</code></p>
  10685. <p><em>Update a Custom Field's dropdown items</em></p>
  10686. <blockquote>
  10687. <p>Body parameter</p>
  10688. </blockquote>
  10689. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">items:</span> <span class="hljs-string">string</span>
  10690. </code></pre>
  10691. <h3 id="add_custom_field_dropdown_items-parameters">Parameters</h3>
  10692. <table>
  10693. <thead>
  10694. <tr>
  10695. <th>Name</th>
  10696. <th>In</th>
  10697. <th>Type</th>
  10698. <th>Required</th>
  10699. <th>Description</th>
  10700. </tr>
  10701. </thead>
  10702. <tbody>
  10703. <tr>
  10704. <td>board</td>
  10705. <td>path</td>
  10706. <td>string</td>
  10707. <td>true</td>
  10708. <td>the board value</td>
  10709. </tr>
  10710. <tr>
  10711. <td>customField</td>
  10712. <td>path</td>
  10713. <td>string</td>
  10714. <td>true</td>
  10715. <td>the customField value</td>
  10716. </tr>
  10717. <tr>
  10718. <td>body</td>
  10719. <td>body</td>
  10720. <td>object</td>
  10721. <td>false</td>
  10722. <td>none</td>
  10723. </tr>
  10724. <tr>
  10725. <td>» items</td>
  10726. <td>body</td>
  10727. <td>string</td>
  10728. <td>false</td>
  10729. <td>names of the custom field</td>
  10730. </tr>
  10731. </tbody>
  10732. </table>
  10733. <blockquote>
  10734. <p>Example responses</p>
  10735. </blockquote>
  10736. <blockquote>
  10737. <p>200 Response</p>
  10738. </blockquote>
  10739. <pre class="highlight tab tab-json"><code>{
  10740. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10741. }
  10742. </code></pre>
  10743. <h3 id="add_custom_field_dropdown_items-responses">Responses</h3>
  10744. <table>
  10745. <thead>
  10746. <tr>
  10747. <th>Status</th>
  10748. <th>Meaning</th>
  10749. <th>Description</th>
  10750. <th>Schema</th>
  10751. </tr>
  10752. </thead>
  10753. <tbody>
  10754. <tr>
  10755. <td>200</td>
  10756. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10757. <td>200 response</td>
  10758. <td>Inline</td>
  10759. </tr>
  10760. </tbody>
  10761. </table>
  10762. <h3 id="add_custom_field_dropdown_items-responseschema">Response Schema</h3>
  10763. <p>Status Code <strong>200</strong></p>
  10764. <table>
  10765. <thead>
  10766. <tr>
  10767. <th>Name</th>
  10768. <th>Type</th>
  10769. <th>Required</th>
  10770. <th>Restrictions</th>
  10771. <th>Description</th>
  10772. </tr>
  10773. </thead>
  10774. <tbody>
  10775. <tr>
  10776. <td>» _id</td>
  10777. <td>string</td>
  10778. <td>false</td>
  10779. <td>none</td>
  10780. <td>none</td>
  10781. </tr>
  10782. </tbody>
  10783. </table>
  10784. <aside class="warning">
  10785. To perform this operation, you must be authenticated by means of one of the following methods:
  10786. UserSecurity
  10787. </aside>
  10788. <h2 id="edit_custom_field_dropdown_item">edit_custom_field_dropdown_item</h2>
  10789. <p><a id="opIdedit_custom_field_dropdown_item"></a></p>
  10790. <blockquote>
  10791. <p>Code samples</p>
  10792. </blockquote>
  10793. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  10794. curl -X PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  10795. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  10796. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  10797. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  10798. </code></pre>
  10799. <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>
  10800. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  10801. Accept: application/json
  10802. </span></code></pre>
  10803. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  10804. &quot;name&quot;: &quot;string&quot;
  10805. }&#x27;</span>;
  10806. <span class="hljs-keyword">const</span> headers = {
  10807. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10808. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10809. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10810. };
  10811. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10812. {
  10813. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10814. <span class="hljs-attr">body</span>: inputBody,
  10815. <span class="hljs-attr">headers</span>: headers
  10816. })
  10817. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10818. <span class="hljs-keyword">return</span> res.json();
  10819. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10820. <span class="hljs-built_in">console</span>.log(body);
  10821. });
  10822. </code></pre>
  10823. <pre class="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>);
  10824. <span class="hljs-keyword">const</span> inputBody = {
  10825. <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10826. };
  10827. <span class="hljs-keyword">const</span> headers = {
  10828. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10829. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  10830. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10831. };
  10832. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10833. {
  10834. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  10835. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  10836. <span class="hljs-attr">headers</span>: headers
  10837. })
  10838. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  10839. <span class="hljs-keyword">return</span> res.json();
  10840. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  10841. <span class="hljs-built_in">console</span>.log(body);
  10842. });
  10843. </code></pre>
  10844. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  10845. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  10846. headers = {
  10847. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10848. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10849. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10850. }
  10851. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  10852. <span class="hljs-symbol">params:</span> {
  10853. }, <span class="hljs-symbol">headers:</span> headers
  10854. p JSON.parse(result)
  10855. </code></pre>
  10856. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  10857. headers = {
  10858. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10859. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10860. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  10861. }
  10862. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  10863. <span class="hljs-built_in">print</span>(r.json())
  10864. </code></pre>
  10865. <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>);
  10866. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  10867. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  10868. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  10869. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  10870. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  10871. String inputLine;
  10872. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  10873. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  10874. response.append(inputLine);
  10875. }
  10876. in.close();
  10877. System.out.println(response.toString());
  10878. </code></pre>
  10879. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  10880. <span class="hljs-keyword">import</span> (
  10881. <span class="hljs-string">&quot;bytes&quot;</span>
  10882. <span class="hljs-string">&quot;net/http&quot;</span>
  10883. )
  10884. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  10885. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  10886. <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>},
  10887. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  10888. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  10889. }
  10890. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  10891. 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)
  10892. req.Header = headers
  10893. client := &amp;http.Client{}
  10894. resp, err := client.Do(req)
  10895. <span class="hljs-comment">// ...</span>
  10896. }
  10897. </code></pre>
  10898. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  10899. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  10900. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  10901. );
  10902. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  10903. <span class="hljs-comment">// Define array of request body.</span>
  10904. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  10905. <span class="hljs-keyword">try</span> {
  10906. <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>(
  10907. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  10908. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  10909. )
  10910. );
  10911. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  10912. }
  10913. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  10914. <span class="hljs-comment">// handle exception or api errors.</span>
  10915. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  10916. }
  10917. <span class="hljs-comment">// ...</span>
  10918. </code></pre>
  10919. <p><code>PUT /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  10920. <p><em>Update a Custom Field's dropdown item</em></p>
  10921. <blockquote>
  10922. <p>Body parameter</p>
  10923. </blockquote>
  10924. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">name:</span> <span class="hljs-string">string</span>
  10925. </code></pre>
  10926. <h3 id="edit_custom_field_dropdown_item-parameters">Parameters</h3>
  10927. <table>
  10928. <thead>
  10929. <tr>
  10930. <th>Name</th>
  10931. <th>In</th>
  10932. <th>Type</th>
  10933. <th>Required</th>
  10934. <th>Description</th>
  10935. </tr>
  10936. </thead>
  10937. <tbody>
  10938. <tr>
  10939. <td>board</td>
  10940. <td>path</td>
  10941. <td>string</td>
  10942. <td>true</td>
  10943. <td>the board value</td>
  10944. </tr>
  10945. <tr>
  10946. <td>customField</td>
  10947. <td>path</td>
  10948. <td>string</td>
  10949. <td>true</td>
  10950. <td>the customField value</td>
  10951. </tr>
  10952. <tr>
  10953. <td>dropdownItem</td>
  10954. <td>path</td>
  10955. <td>string</td>
  10956. <td>true</td>
  10957. <td>the dropdownItem value</td>
  10958. </tr>
  10959. <tr>
  10960. <td>body</td>
  10961. <td>body</td>
  10962. <td>object</td>
  10963. <td>true</td>
  10964. <td>none</td>
  10965. </tr>
  10966. <tr>
  10967. <td>» name</td>
  10968. <td>body</td>
  10969. <td>string</td>
  10970. <td>true</td>
  10971. <td>names of the custom field</td>
  10972. </tr>
  10973. </tbody>
  10974. </table>
  10975. <blockquote>
  10976. <p>Example responses</p>
  10977. </blockquote>
  10978. <blockquote>
  10979. <p>200 Response</p>
  10980. </blockquote>
  10981. <pre class="highlight tab tab-json"><code>{
  10982. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  10983. }
  10984. </code></pre>
  10985. <h3 id="edit_custom_field_dropdown_item-responses">Responses</h3>
  10986. <table>
  10987. <thead>
  10988. <tr>
  10989. <th>Status</th>
  10990. <th>Meaning</th>
  10991. <th>Description</th>
  10992. <th>Schema</th>
  10993. </tr>
  10994. </thead>
  10995. <tbody>
  10996. <tr>
  10997. <td>200</td>
  10998. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  10999. <td>200 response</td>
  11000. <td>Inline</td>
  11001. </tr>
  11002. </tbody>
  11003. </table>
  11004. <h3 id="edit_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11005. <p>Status Code <strong>200</strong></p>
  11006. <table>
  11007. <thead>
  11008. <tr>
  11009. <th>Name</th>
  11010. <th>Type</th>
  11011. <th>Required</th>
  11012. <th>Restrictions</th>
  11013. <th>Description</th>
  11014. </tr>
  11015. </thead>
  11016. <tbody>
  11017. <tr>
  11018. <td>» _id</td>
  11019. <td>string</td>
  11020. <td>false</td>
  11021. <td>none</td>
  11022. <td>none</td>
  11023. </tr>
  11024. </tbody>
  11025. </table>
  11026. <aside class="warning">
  11027. To perform this operation, you must be authenticated by means of one of the following methods:
  11028. UserSecurity
  11029. </aside>
  11030. <h2 id="delete_custom_field_dropdown_item">delete_custom_field_dropdown_item</h2>
  11031. <p><a id="opIddelete_custom_field_dropdown_item"></a></p>
  11032. <blockquote>
  11033. <p>Code samples</p>
  11034. </blockquote>
  11035. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11036. curl -X DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem} \
  11037. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11038. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11039. </code></pre>
  11040. <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>
  11041. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11042. </span></code></pre>
  11043. <pre class="highlight tab tab-javascript"><code>
  11044. <span class="hljs-keyword">const</span> headers = {
  11045. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11046. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11047. };
  11048. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11049. {
  11050. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11051. <span class="hljs-attr">headers</span>: headers
  11052. })
  11053. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11054. <span class="hljs-keyword">return</span> res.json();
  11055. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11056. <span class="hljs-built_in">console</span>.log(body);
  11057. });
  11058. </code></pre>
  11059. <pre class="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>);
  11060. <span class="hljs-keyword">const</span> headers = {
  11061. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11062. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11063. };
  11064. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11065. {
  11066. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  11067. <span class="hljs-attr">headers</span>: headers
  11068. })
  11069. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11070. <span class="hljs-keyword">return</span> res.json();
  11071. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11072. <span class="hljs-built_in">console</span>.log(body);
  11073. });
  11074. </code></pre>
  11075. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11076. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11077. headers = {
  11078. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11079. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11080. }
  11081. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>,
  11082. <span class="hljs-symbol">params:</span> {
  11083. }, <span class="hljs-symbol">headers:</span> headers
  11084. p JSON.parse(result)
  11085. </code></pre>
  11086. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11087. headers = {
  11088. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11089. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11090. }
  11091. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}&#x27;</span>, headers = headers)
  11092. <span class="hljs-built_in">print</span>(r.json())
  11093. </code></pre>
  11094. <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>);
  11095. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11096. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  11097. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11098. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11099. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11100. String inputLine;
  11101. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11102. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11103. response.append(inputLine);
  11104. }
  11105. in.close();
  11106. System.out.println(response.toString());
  11107. </code></pre>
  11108. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11109. <span class="hljs-keyword">import</span> (
  11110. <span class="hljs-string">&quot;bytes&quot;</span>
  11111. <span class="hljs-string">&quot;net/http&quot;</span>
  11112. )
  11113. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11114. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11115. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11116. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11117. }
  11118. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11119. 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)
  11120. req.Header = headers
  11121. client := &amp;http.Client{}
  11122. resp, err := client.Do(req)
  11123. <span class="hljs-comment">// ...</span>
  11124. }
  11125. </code></pre>
  11126. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11127. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11128. );
  11129. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11130. <span class="hljs-comment">// Define array of request body.</span>
  11131. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11132. <span class="hljs-keyword">try</span> {
  11133. <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>(
  11134. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11135. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11136. )
  11137. );
  11138. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11139. }
  11140. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11141. <span class="hljs-comment">// handle exception or api errors.</span>
  11142. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11143. }
  11144. <span class="hljs-comment">// ...</span>
  11145. </code></pre>
  11146. <p><code>DELETE /api/boards/{board}/custom-fields/{customField}/dropdown-items/{dropdownItem}</code></p>
  11147. <p><em>Update a Custom Field's dropdown items</em></p>
  11148. <h3 id="delete_custom_field_dropdown_item-parameters">Parameters</h3>
  11149. <table>
  11150. <thead>
  11151. <tr>
  11152. <th>Name</th>
  11153. <th>In</th>
  11154. <th>Type</th>
  11155. <th>Required</th>
  11156. <th>Description</th>
  11157. </tr>
  11158. </thead>
  11159. <tbody>
  11160. <tr>
  11161. <td>board</td>
  11162. <td>path</td>
  11163. <td>string</td>
  11164. <td>true</td>
  11165. <td>the board value</td>
  11166. </tr>
  11167. <tr>
  11168. <td>customField</td>
  11169. <td>path</td>
  11170. <td>string</td>
  11171. <td>true</td>
  11172. <td>the customField value</td>
  11173. </tr>
  11174. <tr>
  11175. <td>dropdownItem</td>
  11176. <td>path</td>
  11177. <td>string</td>
  11178. <td>true</td>
  11179. <td>the dropdownItem value</td>
  11180. </tr>
  11181. </tbody>
  11182. </table>
  11183. <blockquote>
  11184. <p>Example responses</p>
  11185. </blockquote>
  11186. <blockquote>
  11187. <p>200 Response</p>
  11188. </blockquote>
  11189. <pre class="highlight tab tab-json"><code>{
  11190. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11191. }
  11192. </code></pre>
  11193. <h3 id="delete_custom_field_dropdown_item-responses">Responses</h3>
  11194. <table>
  11195. <thead>
  11196. <tr>
  11197. <th>Status</th>
  11198. <th>Meaning</th>
  11199. <th>Description</th>
  11200. <th>Schema</th>
  11201. </tr>
  11202. </thead>
  11203. <tbody>
  11204. <tr>
  11205. <td>200</td>
  11206. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11207. <td>200 response</td>
  11208. <td>Inline</td>
  11209. </tr>
  11210. </tbody>
  11211. </table>
  11212. <h3 id="delete_custom_field_dropdown_item-responseschema">Response Schema</h3>
  11213. <p>Status Code <strong>200</strong></p>
  11214. <table>
  11215. <thead>
  11216. <tr>
  11217. <th>Name</th>
  11218. <th>Type</th>
  11219. <th>Required</th>
  11220. <th>Restrictions</th>
  11221. <th>Description</th>
  11222. </tr>
  11223. </thead>
  11224. <tbody>
  11225. <tr>
  11226. <td>» _id</td>
  11227. <td>string</td>
  11228. <td>false</td>
  11229. <td>none</td>
  11230. <td>none</td>
  11231. </tr>
  11232. </tbody>
  11233. </table>
  11234. <aside class="warning">
  11235. To perform this operation, you must be authenticated by means of one of the following methods:
  11236. UserSecurity
  11237. </aside>
  11238. <h1 id="wekan-rest-api-integrations">Integrations</h1>
  11239. <h2 id="get_all_integrations">get_all_integrations</h2>
  11240. <p><a id="opIdget_all_integrations"></a></p>
  11241. <blockquote>
  11242. <p>Code samples</p>
  11243. </blockquote>
  11244. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11245. curl -X GET /api/boards/{board}/integrations \
  11246. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11247. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11248. </code></pre>
  11249. <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>
  11250. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11251. </span></code></pre>
  11252. <pre class="highlight tab tab-javascript"><code>
  11253. <span class="hljs-keyword">const</span> headers = {
  11254. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11255. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11256. };
  11257. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11258. {
  11259. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11260. <span class="hljs-attr">headers</span>: headers
  11261. })
  11262. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11263. <span class="hljs-keyword">return</span> res.json();
  11264. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11265. <span class="hljs-built_in">console</span>.log(body);
  11266. });
  11267. </code></pre>
  11268. <pre class="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>);
  11269. <span class="hljs-keyword">const</span> headers = {
  11270. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11271. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11272. };
  11273. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11274. {
  11275. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11276. <span class="hljs-attr">headers</span>: headers
  11277. })
  11278. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11279. <span class="hljs-keyword">return</span> res.json();
  11280. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11281. <span class="hljs-built_in">console</span>.log(body);
  11282. });
  11283. </code></pre>
  11284. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11285. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11286. headers = {
  11287. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11288. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11289. }
  11290. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11291. <span class="hljs-symbol">params:</span> {
  11292. }, <span class="hljs-symbol">headers:</span> headers
  11293. p JSON.parse(result)
  11294. </code></pre>
  11295. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11296. headers = {
  11297. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11298. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11299. }
  11300. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11301. <span class="hljs-built_in">print</span>(r.json())
  11302. </code></pre>
  11303. <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>);
  11304. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11305. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11306. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11307. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11308. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11309. String inputLine;
  11310. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11311. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11312. response.append(inputLine);
  11313. }
  11314. in.close();
  11315. System.out.println(response.toString());
  11316. </code></pre>
  11317. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11318. <span class="hljs-keyword">import</span> (
  11319. <span class="hljs-string">&quot;bytes&quot;</span>
  11320. <span class="hljs-string">&quot;net/http&quot;</span>
  11321. )
  11322. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11323. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11324. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11325. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11326. }
  11327. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11328. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11329. req.Header = headers
  11330. client := &amp;http.Client{}
  11331. resp, err := client.Do(req)
  11332. <span class="hljs-comment">// ...</span>
  11333. }
  11334. </code></pre>
  11335. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11336. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11337. );
  11338. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11339. <span class="hljs-comment">// Define array of request body.</span>
  11340. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11341. <span class="hljs-keyword">try</span> {
  11342. <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>(
  11343. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11344. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11345. )
  11346. );
  11347. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11348. }
  11349. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11350. <span class="hljs-comment">// handle exception or api errors.</span>
  11351. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11352. }
  11353. <span class="hljs-comment">// ...</span>
  11354. </code></pre>
  11355. <p><code>GET /api/boards/{board}/integrations</code></p>
  11356. <p><em>Get all integrations in board</em></p>
  11357. <h3 id="get_all_integrations-parameters">Parameters</h3>
  11358. <table>
  11359. <thead>
  11360. <tr>
  11361. <th>Name</th>
  11362. <th>In</th>
  11363. <th>Type</th>
  11364. <th>Required</th>
  11365. <th>Description</th>
  11366. </tr>
  11367. </thead>
  11368. <tbody>
  11369. <tr>
  11370. <td>board</td>
  11371. <td>path</td>
  11372. <td>string</td>
  11373. <td>true</td>
  11374. <td>the board ID</td>
  11375. </tr>
  11376. </tbody>
  11377. </table>
  11378. <h4 id="detailed-descriptions-31">Detailed descriptions</h4>
  11379. <p><strong>board</strong>: the board ID</p>
  11380. <blockquote>
  11381. <p>Example responses</p>
  11382. </blockquote>
  11383. <blockquote>
  11384. <p>200 Response</p>
  11385. </blockquote>
  11386. <pre class="highlight tab tab-json"><code>[
  11387. {
  11388. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11389. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11390. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11391. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11392. <span class="hljs-string">&quot;string&quot;</span>
  11393. ],
  11394. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11395. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11396. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11397. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11398. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11399. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11400. }
  11401. ]
  11402. </code></pre>
  11403. <h3 id="get_all_integrations-responses">Responses</h3>
  11404. <table>
  11405. <thead>
  11406. <tr>
  11407. <th>Status</th>
  11408. <th>Meaning</th>
  11409. <th>Description</th>
  11410. <th>Schema</th>
  11411. </tr>
  11412. </thead>
  11413. <tbody>
  11414. <tr>
  11415. <td>200</td>
  11416. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11417. <td>200 response</td>
  11418. <td>Inline</td>
  11419. </tr>
  11420. </tbody>
  11421. </table>
  11422. <h3 id="get_all_integrations-responseschema">Response Schema</h3>
  11423. <p>Status Code <strong>200</strong></p>
  11424. <table>
  11425. <thead>
  11426. <tr>
  11427. <th>Name</th>
  11428. <th>Type</th>
  11429. <th>Required</th>
  11430. <th>Restrictions</th>
  11431. <th>Description</th>
  11432. </tr>
  11433. </thead>
  11434. <tbody>
  11435. <tr>
  11436. <td><em>anonymous</em></td>
  11437. <td>[<a href="#schemaintegrations">Integrations</a>]</td>
  11438. <td>false</td>
  11439. <td>none</td>
  11440. <td>[Integration with third-party applications]</td>
  11441. </tr>
  11442. <tr>
  11443. <td>» enabled</td>
  11444. <td>boolean</td>
  11445. <td>true</td>
  11446. <td>none</td>
  11447. <td>is the integration enabled?</td>
  11448. </tr>
  11449. <tr>
  11450. <td>» title</td>
  11451. <td>string¦null</td>
  11452. <td>false</td>
  11453. <td>none</td>
  11454. <td>name of the integration</td>
  11455. </tr>
  11456. <tr>
  11457. <td>» type</td>
  11458. <td>string</td>
  11459. <td>true</td>
  11460. <td>none</td>
  11461. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  11462. </tr>
  11463. <tr>
  11464. <td>» activities</td>
  11465. <td>[string]</td>
  11466. <td>true</td>
  11467. <td>none</td>
  11468. <td>activities the integration gets triggered (list)</td>
  11469. </tr>
  11470. <tr>
  11471. <td>» url</td>
  11472. <td>string</td>
  11473. <td>true</td>
  11474. <td>none</td>
  11475. <td>none</td>
  11476. </tr>
  11477. <tr>
  11478. <td>» token</td>
  11479. <td>string¦null</td>
  11480. <td>false</td>
  11481. <td>none</td>
  11482. <td>token of the integration</td>
  11483. </tr>
  11484. <tr>
  11485. <td>» boardId</td>
  11486. <td>string</td>
  11487. <td>true</td>
  11488. <td>none</td>
  11489. <td>Board ID of the integration</td>
  11490. </tr>
  11491. <tr>
  11492. <td>» createdAt</td>
  11493. <td>string</td>
  11494. <td>true</td>
  11495. <td>none</td>
  11496. <td>Creation date of the integration</td>
  11497. </tr>
  11498. <tr>
  11499. <td>» modifiedAt</td>
  11500. <td>string</td>
  11501. <td>true</td>
  11502. <td>none</td>
  11503. <td>none</td>
  11504. </tr>
  11505. <tr>
  11506. <td>» userId</td>
  11507. <td>string</td>
  11508. <td>true</td>
  11509. <td>none</td>
  11510. <td>user ID who created the interation</td>
  11511. </tr>
  11512. </tbody>
  11513. </table>
  11514. <aside class="warning">
  11515. To perform this operation, you must be authenticated by means of one of the following methods:
  11516. UserSecurity
  11517. </aside>
  11518. <h2 id="new_integration">new_integration</h2>
  11519. <p><a id="opIdnew_integration"></a></p>
  11520. <blockquote>
  11521. <p>Code samples</p>
  11522. </blockquote>
  11523. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11524. curl -X POST /api/boards/{board}/integrations \
  11525. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11526. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11527. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11528. </code></pre>
  11529. <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>
  11530. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11531. Accept: application/json
  11532. </span></code></pre>
  11533. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11534. &quot;url&quot;: &quot;string&quot;
  11535. }&#x27;</span>;
  11536. <span class="hljs-keyword">const</span> headers = {
  11537. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11538. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11539. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11540. };
  11541. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11542. {
  11543. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11544. <span class="hljs-attr">body</span>: inputBody,
  11545. <span class="hljs-attr">headers</span>: headers
  11546. })
  11547. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11548. <span class="hljs-keyword">return</span> res.json();
  11549. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11550. <span class="hljs-built_in">console</span>.log(body);
  11551. });
  11552. </code></pre>
  11553. <pre class="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>);
  11554. <span class="hljs-keyword">const</span> inputBody = {
  11555. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11556. };
  11557. <span class="hljs-keyword">const</span> headers = {
  11558. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11559. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11560. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11561. };
  11562. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11563. {
  11564. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  11565. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11566. <span class="hljs-attr">headers</span>: headers
  11567. })
  11568. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11569. <span class="hljs-keyword">return</span> res.json();
  11570. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11571. <span class="hljs-built_in">console</span>.log(body);
  11572. });
  11573. </code></pre>
  11574. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11575. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11576. headers = {
  11577. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11578. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11579. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11580. }
  11581. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>,
  11582. <span class="hljs-symbol">params:</span> {
  11583. }, <span class="hljs-symbol">headers:</span> headers
  11584. p JSON.parse(result)
  11585. </code></pre>
  11586. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11587. headers = {
  11588. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11589. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11590. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11591. }
  11592. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations&#x27;</span>, headers = headers)
  11593. <span class="hljs-built_in">print</span>(r.json())
  11594. </code></pre>
  11595. <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>);
  11596. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11597. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  11598. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11599. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11600. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11601. String inputLine;
  11602. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11603. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11604. response.append(inputLine);
  11605. }
  11606. in.close();
  11607. System.out.println(response.toString());
  11608. </code></pre>
  11609. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11610. <span class="hljs-keyword">import</span> (
  11611. <span class="hljs-string">&quot;bytes&quot;</span>
  11612. <span class="hljs-string">&quot;net/http&quot;</span>
  11613. )
  11614. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11615. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11616. <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>},
  11617. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11618. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11619. }
  11620. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11621. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/integrations&quot;</span>, data)
  11622. req.Header = headers
  11623. client := &amp;http.Client{}
  11624. resp, err := client.Do(req)
  11625. <span class="hljs-comment">// ...</span>
  11626. }
  11627. </code></pre>
  11628. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11629. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11630. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11631. );
  11632. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11633. <span class="hljs-comment">// Define array of request body.</span>
  11634. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11635. <span class="hljs-keyword">try</span> {
  11636. <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>(
  11637. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11638. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11639. )
  11640. );
  11641. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11642. }
  11643. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11644. <span class="hljs-comment">// handle exception or api errors.</span>
  11645. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11646. }
  11647. <span class="hljs-comment">// ...</span>
  11648. </code></pre>
  11649. <p><code>POST /api/boards/{board}/integrations</code></p>
  11650. <p><em>Create a new integration</em></p>
  11651. <blockquote>
  11652. <p>Body parameter</p>
  11653. </blockquote>
  11654. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  11655. </code></pre>
  11656. <h3 id="new_integration-parameters">Parameters</h3>
  11657. <table>
  11658. <thead>
  11659. <tr>
  11660. <th>Name</th>
  11661. <th>In</th>
  11662. <th>Type</th>
  11663. <th>Required</th>
  11664. <th>Description</th>
  11665. </tr>
  11666. </thead>
  11667. <tbody>
  11668. <tr>
  11669. <td>board</td>
  11670. <td>path</td>
  11671. <td>string</td>
  11672. <td>true</td>
  11673. <td>the board ID</td>
  11674. </tr>
  11675. <tr>
  11676. <td>body</td>
  11677. <td>body</td>
  11678. <td>object</td>
  11679. <td>true</td>
  11680. <td>none</td>
  11681. </tr>
  11682. <tr>
  11683. <td>» url</td>
  11684. <td>body</td>
  11685. <td>string</td>
  11686. <td>true</td>
  11687. <td>the URL of the integration</td>
  11688. </tr>
  11689. </tbody>
  11690. </table>
  11691. <h4 id="detailed-descriptions-32">Detailed descriptions</h4>
  11692. <p><strong>board</strong>: the board ID</p>
  11693. <blockquote>
  11694. <p>Example responses</p>
  11695. </blockquote>
  11696. <blockquote>
  11697. <p>200 Response</p>
  11698. </blockquote>
  11699. <pre class="highlight tab tab-json"><code>{
  11700. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11701. }
  11702. </code></pre>
  11703. <h3 id="new_integration-responses">Responses</h3>
  11704. <table>
  11705. <thead>
  11706. <tr>
  11707. <th>Status</th>
  11708. <th>Meaning</th>
  11709. <th>Description</th>
  11710. <th>Schema</th>
  11711. </tr>
  11712. </thead>
  11713. <tbody>
  11714. <tr>
  11715. <td>200</td>
  11716. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11717. <td>200 response</td>
  11718. <td>Inline</td>
  11719. </tr>
  11720. </tbody>
  11721. </table>
  11722. <h3 id="new_integration-responseschema">Response Schema</h3>
  11723. <p>Status Code <strong>200</strong></p>
  11724. <table>
  11725. <thead>
  11726. <tr>
  11727. <th>Name</th>
  11728. <th>Type</th>
  11729. <th>Required</th>
  11730. <th>Restrictions</th>
  11731. <th>Description</th>
  11732. </tr>
  11733. </thead>
  11734. <tbody>
  11735. <tr>
  11736. <td>» _id</td>
  11737. <td>string</td>
  11738. <td>false</td>
  11739. <td>none</td>
  11740. <td>none</td>
  11741. </tr>
  11742. </tbody>
  11743. </table>
  11744. <aside class="warning">
  11745. To perform this operation, you must be authenticated by means of one of the following methods:
  11746. UserSecurity
  11747. </aside>
  11748. <h2 id="get_integration">get_integration</h2>
  11749. <p><a id="opIdget_integration"></a></p>
  11750. <blockquote>
  11751. <p>Code samples</p>
  11752. </blockquote>
  11753. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11754. curl -X GET /api/boards/{board}/integrations/{int} \
  11755. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11756. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11757. </code></pre>
  11758. <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>
  11759. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  11760. </span></code></pre>
  11761. <pre class="highlight tab tab-javascript"><code>
  11762. <span class="hljs-keyword">const</span> headers = {
  11763. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11764. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11765. };
  11766. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11767. {
  11768. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11769. <span class="hljs-attr">headers</span>: headers
  11770. })
  11771. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11772. <span class="hljs-keyword">return</span> res.json();
  11773. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11774. <span class="hljs-built_in">console</span>.log(body);
  11775. });
  11776. </code></pre>
  11777. <pre class="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>);
  11778. <span class="hljs-keyword">const</span> headers = {
  11779. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11780. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11781. };
  11782. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11783. {
  11784. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  11785. <span class="hljs-attr">headers</span>: headers
  11786. })
  11787. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11788. <span class="hljs-keyword">return</span> res.json();
  11789. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11790. <span class="hljs-built_in">console</span>.log(body);
  11791. });
  11792. </code></pre>
  11793. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  11794. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  11795. headers = {
  11796. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11797. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11798. }
  11799. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11800. <span class="hljs-symbol">params:</span> {
  11801. }, <span class="hljs-symbol">headers:</span> headers
  11802. p JSON.parse(result)
  11803. </code></pre>
  11804. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  11805. headers = {
  11806. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11807. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11808. }
  11809. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  11810. <span class="hljs-built_in">print</span>(r.json())
  11811. </code></pre>
  11812. <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>);
  11813. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  11814. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  11815. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  11816. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  11817. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  11818. String inputLine;
  11819. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  11820. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  11821. response.append(inputLine);
  11822. }
  11823. in.close();
  11824. System.out.println(response.toString());
  11825. </code></pre>
  11826. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  11827. <span class="hljs-keyword">import</span> (
  11828. <span class="hljs-string">&quot;bytes&quot;</span>
  11829. <span class="hljs-string">&quot;net/http&quot;</span>
  11830. )
  11831. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  11832. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  11833. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  11834. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  11835. }
  11836. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  11837. 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)
  11838. req.Header = headers
  11839. client := &amp;http.Client{}
  11840. resp, err := client.Do(req)
  11841. <span class="hljs-comment">// ...</span>
  11842. }
  11843. </code></pre>
  11844. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  11845. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  11846. );
  11847. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  11848. <span class="hljs-comment">// Define array of request body.</span>
  11849. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  11850. <span class="hljs-keyword">try</span> {
  11851. <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>(
  11852. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  11853. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  11854. )
  11855. );
  11856. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  11857. }
  11858. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  11859. <span class="hljs-comment">// handle exception or api errors.</span>
  11860. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  11861. }
  11862. <span class="hljs-comment">// ...</span>
  11863. </code></pre>
  11864. <p><code>GET /api/boards/{board}/integrations/{int}</code></p>
  11865. <p><em>Get a single integration in board</em></p>
  11866. <h3 id="get_integration-parameters">Parameters</h3>
  11867. <table>
  11868. <thead>
  11869. <tr>
  11870. <th>Name</th>
  11871. <th>In</th>
  11872. <th>Type</th>
  11873. <th>Required</th>
  11874. <th>Description</th>
  11875. </tr>
  11876. </thead>
  11877. <tbody>
  11878. <tr>
  11879. <td>board</td>
  11880. <td>path</td>
  11881. <td>string</td>
  11882. <td>true</td>
  11883. <td>the board ID</td>
  11884. </tr>
  11885. <tr>
  11886. <td>int</td>
  11887. <td>path</td>
  11888. <td>string</td>
  11889. <td>true</td>
  11890. <td>the integration ID</td>
  11891. </tr>
  11892. </tbody>
  11893. </table>
  11894. <h4 id="detailed-descriptions-33">Detailed descriptions</h4>
  11895. <p><strong>board</strong>: the board ID</p>
  11896. <p><strong>int</strong>: the integration ID</p>
  11897. <blockquote>
  11898. <p>Example responses</p>
  11899. </blockquote>
  11900. <blockquote>
  11901. <p>200 Response</p>
  11902. </blockquote>
  11903. <pre class="highlight tab tab-json"><code>{
  11904. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  11905. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11906. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11907. <span class="hljs-attr">&quot;activities&quot;</span>: [
  11908. <span class="hljs-string">&quot;string&quot;</span>
  11909. ],
  11910. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11911. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11912. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11913. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11914. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11915. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11916. }
  11917. </code></pre>
  11918. <h3 id="get_integration-responses">Responses</h3>
  11919. <table>
  11920. <thead>
  11921. <tr>
  11922. <th>Status</th>
  11923. <th>Meaning</th>
  11924. <th>Description</th>
  11925. <th>Schema</th>
  11926. </tr>
  11927. </thead>
  11928. <tbody>
  11929. <tr>
  11930. <td>200</td>
  11931. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  11932. <td>200 response</td>
  11933. <td><a href="#schemaintegrations">Integrations</a></td>
  11934. </tr>
  11935. </tbody>
  11936. </table>
  11937. <aside class="warning">
  11938. To perform this operation, you must be authenticated by means of one of the following methods:
  11939. UserSecurity
  11940. </aside>
  11941. <h2 id="edit_integration">edit_integration</h2>
  11942. <p><a id="opIdedit_integration"></a></p>
  11943. <blockquote>
  11944. <p>Code samples</p>
  11945. </blockquote>
  11946. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  11947. curl -X PUT /api/boards/{board}/integrations/{int} \
  11948. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  11949. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  11950. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  11951. </code></pre>
  11952. <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>
  11953. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  11954. Accept: application/json
  11955. </span></code></pre>
  11956. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  11957. &quot;enabled&quot;: &quot;string&quot;,
  11958. &quot;title&quot;: &quot;string&quot;,
  11959. &quot;url&quot;: &quot;string&quot;,
  11960. &quot;token&quot;: &quot;string&quot;,
  11961. &quot;activities&quot;: &quot;string&quot;
  11962. }&#x27;</span>;
  11963. <span class="hljs-keyword">const</span> headers = {
  11964. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11965. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11966. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11967. };
  11968. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11969. {
  11970. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11971. <span class="hljs-attr">body</span>: inputBody,
  11972. <span class="hljs-attr">headers</span>: headers
  11973. })
  11974. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  11975. <span class="hljs-keyword">return</span> res.json();
  11976. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  11977. <span class="hljs-built_in">console</span>.log(body);
  11978. });
  11979. </code></pre>
  11980. <pre class="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>);
  11981. <span class="hljs-keyword">const</span> inputBody = {
  11982. <span class="hljs-string">&quot;enabled&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11983. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11984. <span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11985. <span class="hljs-string">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  11986. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  11987. };
  11988. <span class="hljs-keyword">const</span> headers = {
  11989. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  11990. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  11991. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  11992. };
  11993. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  11994. {
  11995. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  11996. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  11997. <span class="hljs-attr">headers</span>: headers
  11998. })
  11999. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12000. <span class="hljs-keyword">return</span> res.json();
  12001. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12002. <span class="hljs-built_in">console</span>.log(body);
  12003. });
  12004. </code></pre>
  12005. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12006. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12007. headers = {
  12008. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12009. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12010. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12011. }
  12012. result = RestClient.put <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12013. <span class="hljs-symbol">params:</span> {
  12014. }, <span class="hljs-symbol">headers:</span> headers
  12015. p JSON.parse(result)
  12016. </code></pre>
  12017. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12018. headers = {
  12019. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12020. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12021. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12022. }
  12023. r = requests.put(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12024. <span class="hljs-built_in">print</span>(r.json())
  12025. </code></pre>
  12026. <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>);
  12027. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12028. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  12029. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12030. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12031. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12032. String inputLine;
  12033. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12034. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12035. response.append(inputLine);
  12036. }
  12037. in.close();
  12038. System.out.println(response.toString());
  12039. </code></pre>
  12040. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12041. <span class="hljs-keyword">import</span> (
  12042. <span class="hljs-string">&quot;bytes&quot;</span>
  12043. <span class="hljs-string">&quot;net/http&quot;</span>
  12044. )
  12045. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12046. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12047. <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>},
  12048. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12049. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12050. }
  12051. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12052. 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)
  12053. req.Header = headers
  12054. client := &amp;http.Client{}
  12055. resp, err := client.Do(req)
  12056. <span class="hljs-comment">// ...</span>
  12057. }
  12058. </code></pre>
  12059. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12060. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12061. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12062. );
  12063. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12064. <span class="hljs-comment">// Define array of request body.</span>
  12065. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12066. <span class="hljs-keyword">try</span> {
  12067. <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>(
  12068. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12069. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12070. )
  12071. );
  12072. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12073. }
  12074. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12075. <span class="hljs-comment">// handle exception or api errors.</span>
  12076. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12077. }
  12078. <span class="hljs-comment">// ...</span>
  12079. </code></pre>
  12080. <p><code>PUT /api/boards/{board}/integrations/{int}</code></p>
  12081. <p><em>Edit integration data</em></p>
  12082. <blockquote>
  12083. <p>Body parameter</p>
  12084. </blockquote>
  12085. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">enabled:</span> <span class="hljs-string">string</span>
  12086. <span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  12087. <span class="hljs-attr">url:</span> <span class="hljs-string">string</span>
  12088. <span class="hljs-attr">token:</span> <span class="hljs-string">string</span>
  12089. <span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12090. </code></pre>
  12091. <h3 id="edit_integration-parameters">Parameters</h3>
  12092. <table>
  12093. <thead>
  12094. <tr>
  12095. <th>Name</th>
  12096. <th>In</th>
  12097. <th>Type</th>
  12098. <th>Required</th>
  12099. <th>Description</th>
  12100. </tr>
  12101. </thead>
  12102. <tbody>
  12103. <tr>
  12104. <td>board</td>
  12105. <td>path</td>
  12106. <td>string</td>
  12107. <td>true</td>
  12108. <td>the board ID</td>
  12109. </tr>
  12110. <tr>
  12111. <td>int</td>
  12112. <td>path</td>
  12113. <td>string</td>
  12114. <td>true</td>
  12115. <td>the integration ID</td>
  12116. </tr>
  12117. <tr>
  12118. <td>body</td>
  12119. <td>body</td>
  12120. <td>object</td>
  12121. <td>false</td>
  12122. <td>none</td>
  12123. </tr>
  12124. <tr>
  12125. <td>» enabled</td>
  12126. <td>body</td>
  12127. <td>string</td>
  12128. <td>false</td>
  12129. <td>is the integration enabled?</td>
  12130. </tr>
  12131. <tr>
  12132. <td>» title</td>
  12133. <td>body</td>
  12134. <td>string</td>
  12135. <td>false</td>
  12136. <td>new name of the integration</td>
  12137. </tr>
  12138. <tr>
  12139. <td>» url</td>
  12140. <td>body</td>
  12141. <td>string</td>
  12142. <td>false</td>
  12143. <td>new URL of the integration</td>
  12144. </tr>
  12145. <tr>
  12146. <td>» token</td>
  12147. <td>body</td>
  12148. <td>string</td>
  12149. <td>false</td>
  12150. <td>new token of the integration</td>
  12151. </tr>
  12152. <tr>
  12153. <td>» activities</td>
  12154. <td>body</td>
  12155. <td>string</td>
  12156. <td>false</td>
  12157. <td>new list of activities of the integration</td>
  12158. </tr>
  12159. </tbody>
  12160. </table>
  12161. <h4 id="detailed-descriptions-34">Detailed descriptions</h4>
  12162. <p><strong>board</strong>: the board ID</p>
  12163. <p><strong>int</strong>: the integration ID</p>
  12164. <blockquote>
  12165. <p>Example responses</p>
  12166. </blockquote>
  12167. <blockquote>
  12168. <p>200 Response</p>
  12169. </blockquote>
  12170. <pre class="highlight tab tab-json"><code>{
  12171. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12172. }
  12173. </code></pre>
  12174. <h3 id="edit_integration-responses">Responses</h3>
  12175. <table>
  12176. <thead>
  12177. <tr>
  12178. <th>Status</th>
  12179. <th>Meaning</th>
  12180. <th>Description</th>
  12181. <th>Schema</th>
  12182. </tr>
  12183. </thead>
  12184. <tbody>
  12185. <tr>
  12186. <td>200</td>
  12187. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12188. <td>200 response</td>
  12189. <td>Inline</td>
  12190. </tr>
  12191. </tbody>
  12192. </table>
  12193. <h3 id="edit_integration-responseschema">Response Schema</h3>
  12194. <p>Status Code <strong>200</strong></p>
  12195. <table>
  12196. <thead>
  12197. <tr>
  12198. <th>Name</th>
  12199. <th>Type</th>
  12200. <th>Required</th>
  12201. <th>Restrictions</th>
  12202. <th>Description</th>
  12203. </tr>
  12204. </thead>
  12205. <tbody>
  12206. <tr>
  12207. <td>» _id</td>
  12208. <td>string</td>
  12209. <td>false</td>
  12210. <td>none</td>
  12211. <td>none</td>
  12212. </tr>
  12213. </tbody>
  12214. </table>
  12215. <aside class="warning">
  12216. To perform this operation, you must be authenticated by means of one of the following methods:
  12217. UserSecurity
  12218. </aside>
  12219. <h2 id="delete_integration">delete_integration</h2>
  12220. <p><a id="opIddelete_integration"></a></p>
  12221. <blockquote>
  12222. <p>Code samples</p>
  12223. </blockquote>
  12224. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12225. curl -X DELETE /api/boards/{board}/integrations/{int} \
  12226. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12227. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12228. </code></pre>
  12229. <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>
  12230. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12231. </span></code></pre>
  12232. <pre class="highlight tab tab-javascript"><code>
  12233. <span class="hljs-keyword">const</span> headers = {
  12234. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12235. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12236. };
  12237. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12238. {
  12239. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12240. <span class="hljs-attr">headers</span>: headers
  12241. })
  12242. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12243. <span class="hljs-keyword">return</span> res.json();
  12244. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12245. <span class="hljs-built_in">console</span>.log(body);
  12246. });
  12247. </code></pre>
  12248. <pre class="highlight tab tab-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>);
  12249. <span class="hljs-keyword">const</span> headers = {
  12250. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12251. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12252. };
  12253. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12254. {
  12255. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12256. <span class="hljs-attr">headers</span>: headers
  12257. })
  12258. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12259. <span class="hljs-keyword">return</span> res.json();
  12260. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12261. <span class="hljs-built_in">console</span>.log(body);
  12262. });
  12263. </code></pre>
  12264. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12265. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12266. headers = {
  12267. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12268. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12269. }
  12270. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>,
  12271. <span class="hljs-symbol">params:</span> {
  12272. }, <span class="hljs-symbol">headers:</span> headers
  12273. p JSON.parse(result)
  12274. </code></pre>
  12275. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12276. headers = {
  12277. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12278. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12279. }
  12280. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}&#x27;</span>, headers = headers)
  12281. <span class="hljs-built_in">print</span>(r.json())
  12282. </code></pre>
  12283. <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>);
  12284. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12285. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12286. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12287. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12288. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12289. String inputLine;
  12290. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12291. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12292. response.append(inputLine);
  12293. }
  12294. in.close();
  12295. System.out.println(response.toString());
  12296. </code></pre>
  12297. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12298. <span class="hljs-keyword">import</span> (
  12299. <span class="hljs-string">&quot;bytes&quot;</span>
  12300. <span class="hljs-string">&quot;net/http&quot;</span>
  12301. )
  12302. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12303. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12304. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12305. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12306. }
  12307. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12308. 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)
  12309. req.Header = headers
  12310. client := &amp;http.Client{}
  12311. resp, err := client.Do(req)
  12312. <span class="hljs-comment">// ...</span>
  12313. }
  12314. </code></pre>
  12315. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12316. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12317. );
  12318. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12319. <span class="hljs-comment">// Define array of request body.</span>
  12320. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12321. <span class="hljs-keyword">try</span> {
  12322. <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>(
  12323. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12324. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12325. )
  12326. );
  12327. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12328. }
  12329. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12330. <span class="hljs-comment">// handle exception or api errors.</span>
  12331. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12332. }
  12333. <span class="hljs-comment">// ...</span>
  12334. </code></pre>
  12335. <p><code>DELETE /api/boards/{board}/integrations/{int}</code></p>
  12336. <p><em>Delete integration</em></p>
  12337. <h3 id="delete_integration-parameters">Parameters</h3>
  12338. <table>
  12339. <thead>
  12340. <tr>
  12341. <th>Name</th>
  12342. <th>In</th>
  12343. <th>Type</th>
  12344. <th>Required</th>
  12345. <th>Description</th>
  12346. </tr>
  12347. </thead>
  12348. <tbody>
  12349. <tr>
  12350. <td>board</td>
  12351. <td>path</td>
  12352. <td>string</td>
  12353. <td>true</td>
  12354. <td>the board ID</td>
  12355. </tr>
  12356. <tr>
  12357. <td>int</td>
  12358. <td>path</td>
  12359. <td>string</td>
  12360. <td>true</td>
  12361. <td>the integration ID</td>
  12362. </tr>
  12363. </tbody>
  12364. </table>
  12365. <h4 id="detailed-descriptions-35">Detailed descriptions</h4>
  12366. <p><strong>board</strong>: the board ID</p>
  12367. <p><strong>int</strong>: the integration ID</p>
  12368. <blockquote>
  12369. <p>Example responses</p>
  12370. </blockquote>
  12371. <blockquote>
  12372. <p>200 Response</p>
  12373. </blockquote>
  12374. <pre class="highlight tab tab-json"><code>{
  12375. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12376. }
  12377. </code></pre>
  12378. <h3 id="delete_integration-responses">Responses</h3>
  12379. <table>
  12380. <thead>
  12381. <tr>
  12382. <th>Status</th>
  12383. <th>Meaning</th>
  12384. <th>Description</th>
  12385. <th>Schema</th>
  12386. </tr>
  12387. </thead>
  12388. <tbody>
  12389. <tr>
  12390. <td>200</td>
  12391. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12392. <td>200 response</td>
  12393. <td>Inline</td>
  12394. </tr>
  12395. </tbody>
  12396. </table>
  12397. <h3 id="delete_integration-responseschema">Response Schema</h3>
  12398. <p>Status Code <strong>200</strong></p>
  12399. <table>
  12400. <thead>
  12401. <tr>
  12402. <th>Name</th>
  12403. <th>Type</th>
  12404. <th>Required</th>
  12405. <th>Restrictions</th>
  12406. <th>Description</th>
  12407. </tr>
  12408. </thead>
  12409. <tbody>
  12410. <tr>
  12411. <td>» _id</td>
  12412. <td>string</td>
  12413. <td>false</td>
  12414. <td>none</td>
  12415. <td>none</td>
  12416. </tr>
  12417. </tbody>
  12418. </table>
  12419. <aside class="warning">
  12420. To perform this operation, you must be authenticated by means of one of the following methods:
  12421. UserSecurity
  12422. </aside>
  12423. <h2 id="delete_integration_activities">delete_integration_activities</h2>
  12424. <p><a id="opIddelete_integration_activities"></a></p>
  12425. <blockquote>
  12426. <p>Code samples</p>
  12427. </blockquote>
  12428. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12429. curl -X DELETE /api/boards/{board}/integrations/{int}/activities \
  12430. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12431. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12432. </code></pre>
  12433. <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>
  12434. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12435. </span></code></pre>
  12436. <pre class="highlight tab tab-javascript"><code>
  12437. <span class="hljs-keyword">const</span> headers = {
  12438. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12439. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12440. };
  12441. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12442. {
  12443. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12444. <span class="hljs-attr">headers</span>: headers
  12445. })
  12446. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12447. <span class="hljs-keyword">return</span> res.json();
  12448. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12449. <span class="hljs-built_in">console</span>.log(body);
  12450. });
  12451. </code></pre>
  12452. <pre class="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>);
  12453. <span class="hljs-keyword">const</span> headers = {
  12454. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12455. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12456. };
  12457. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12458. {
  12459. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  12460. <span class="hljs-attr">headers</span>: headers
  12461. })
  12462. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12463. <span class="hljs-keyword">return</span> res.json();
  12464. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12465. <span class="hljs-built_in">console</span>.log(body);
  12466. });
  12467. </code></pre>
  12468. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12469. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12470. headers = {
  12471. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12472. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12473. }
  12474. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12475. <span class="hljs-symbol">params:</span> {
  12476. }, <span class="hljs-symbol">headers:</span> headers
  12477. p JSON.parse(result)
  12478. </code></pre>
  12479. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12480. headers = {
  12481. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12482. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12483. }
  12484. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12485. <span class="hljs-built_in">print</span>(r.json())
  12486. </code></pre>
  12487. <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>);
  12488. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12489. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  12490. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12491. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12492. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12493. String inputLine;
  12494. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12495. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12496. response.append(inputLine);
  12497. }
  12498. in.close();
  12499. System.out.println(response.toString());
  12500. </code></pre>
  12501. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12502. <span class="hljs-keyword">import</span> (
  12503. <span class="hljs-string">&quot;bytes&quot;</span>
  12504. <span class="hljs-string">&quot;net/http&quot;</span>
  12505. )
  12506. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12507. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12508. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12509. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12510. }
  12511. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12512. 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)
  12513. req.Header = headers
  12514. client := &amp;http.Client{}
  12515. resp, err := client.Do(req)
  12516. <span class="hljs-comment">// ...</span>
  12517. }
  12518. </code></pre>
  12519. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12520. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12521. );
  12522. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12523. <span class="hljs-comment">// Define array of request body.</span>
  12524. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12525. <span class="hljs-keyword">try</span> {
  12526. <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>(
  12527. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12528. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12529. )
  12530. );
  12531. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12532. }
  12533. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12534. <span class="hljs-comment">// handle exception or api errors.</span>
  12535. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12536. }
  12537. <span class="hljs-comment">// ...</span>
  12538. </code></pre>
  12539. <p><code>DELETE /api/boards/{board}/integrations/{int}/activities</code></p>
  12540. <p><em>Delete subscribed activities</em></p>
  12541. <h3 id="delete_integration_activities-parameters">Parameters</h3>
  12542. <table>
  12543. <thead>
  12544. <tr>
  12545. <th>Name</th>
  12546. <th>In</th>
  12547. <th>Type</th>
  12548. <th>Required</th>
  12549. <th>Description</th>
  12550. </tr>
  12551. </thead>
  12552. <tbody>
  12553. <tr>
  12554. <td>board</td>
  12555. <td>path</td>
  12556. <td>string</td>
  12557. <td>true</td>
  12558. <td>the board ID</td>
  12559. </tr>
  12560. <tr>
  12561. <td>int</td>
  12562. <td>path</td>
  12563. <td>string</td>
  12564. <td>true</td>
  12565. <td>the integration ID</td>
  12566. </tr>
  12567. </tbody>
  12568. </table>
  12569. <h4 id="detailed-descriptions-36">Detailed descriptions</h4>
  12570. <p><strong>board</strong>: the board ID</p>
  12571. <p><strong>int</strong>: the integration ID</p>
  12572. <blockquote>
  12573. <p>Example responses</p>
  12574. </blockquote>
  12575. <blockquote>
  12576. <p>200 Response</p>
  12577. </blockquote>
  12578. <pre class="highlight tab tab-json"><code>{
  12579. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12580. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12581. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12582. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12583. <span class="hljs-string">&quot;string&quot;</span>
  12584. ],
  12585. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12586. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12587. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12588. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12589. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12590. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12591. }
  12592. </code></pre>
  12593. <h3 id="delete_integration_activities-responses">Responses</h3>
  12594. <table>
  12595. <thead>
  12596. <tr>
  12597. <th>Status</th>
  12598. <th>Meaning</th>
  12599. <th>Description</th>
  12600. <th>Schema</th>
  12601. </tr>
  12602. </thead>
  12603. <tbody>
  12604. <tr>
  12605. <td>200</td>
  12606. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12607. <td>200 response</td>
  12608. <td><a href="#schemaintegrations">Integrations</a></td>
  12609. </tr>
  12610. </tbody>
  12611. </table>
  12612. <aside class="warning">
  12613. To perform this operation, you must be authenticated by means of one of the following methods:
  12614. UserSecurity
  12615. </aside>
  12616. <h2 id="new_integration_activities">new_integration_activities</h2>
  12617. <p><a id="opIdnew_integration_activities"></a></p>
  12618. <blockquote>
  12619. <p>Code samples</p>
  12620. </blockquote>
  12621. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12622. curl -X POST /api/boards/{board}/integrations/{int}/activities \
  12623. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  12624. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12625. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12626. </code></pre>
  12627. <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>
  12628. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  12629. Accept: application/json
  12630. </span></code></pre>
  12631. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  12632. &quot;activities&quot;: &quot;string&quot;
  12633. }&#x27;</span>;
  12634. <span class="hljs-keyword">const</span> headers = {
  12635. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12636. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12637. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12638. };
  12639. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12640. {
  12641. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12642. <span class="hljs-attr">body</span>: inputBody,
  12643. <span class="hljs-attr">headers</span>: headers
  12644. })
  12645. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12646. <span class="hljs-keyword">return</span> res.json();
  12647. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12648. <span class="hljs-built_in">console</span>.log(body);
  12649. });
  12650. </code></pre>
  12651. <pre class="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>);
  12652. <span class="hljs-keyword">const</span> inputBody = {
  12653. <span class="hljs-string">&quot;activities&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12654. };
  12655. <span class="hljs-keyword">const</span> headers = {
  12656. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12657. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12658. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12659. };
  12660. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12661. {
  12662. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  12663. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  12664. <span class="hljs-attr">headers</span>: headers
  12665. })
  12666. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12667. <span class="hljs-keyword">return</span> res.json();
  12668. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12669. <span class="hljs-built_in">console</span>.log(body);
  12670. });
  12671. </code></pre>
  12672. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12673. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12674. headers = {
  12675. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12676. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12677. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12678. }
  12679. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>,
  12680. <span class="hljs-symbol">params:</span> {
  12681. }, <span class="hljs-symbol">headers:</span> headers
  12682. p JSON.parse(result)
  12683. </code></pre>
  12684. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12685. headers = {
  12686. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12687. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12688. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12689. }
  12690. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/integrations/{int}/activities&#x27;</span>, headers = headers)
  12691. <span class="hljs-built_in">print</span>(r.json())
  12692. </code></pre>
  12693. <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>);
  12694. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12695. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  12696. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12697. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12698. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12699. String inputLine;
  12700. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12701. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12702. response.append(inputLine);
  12703. }
  12704. in.close();
  12705. System.out.println(response.toString());
  12706. </code></pre>
  12707. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12708. <span class="hljs-keyword">import</span> (
  12709. <span class="hljs-string">&quot;bytes&quot;</span>
  12710. <span class="hljs-string">&quot;net/http&quot;</span>
  12711. )
  12712. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12713. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12714. <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>},
  12715. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12716. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12717. }
  12718. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12719. 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)
  12720. req.Header = headers
  12721. client := &amp;http.Client{}
  12722. resp, err := client.Do(req)
  12723. <span class="hljs-comment">// ...</span>
  12724. }
  12725. </code></pre>
  12726. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  12727. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12728. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12729. );
  12730. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12731. <span class="hljs-comment">// Define array of request body.</span>
  12732. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12733. <span class="hljs-keyword">try</span> {
  12734. <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>(
  12735. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12736. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12737. )
  12738. );
  12739. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12740. }
  12741. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12742. <span class="hljs-comment">// handle exception or api errors.</span>
  12743. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12744. }
  12745. <span class="hljs-comment">// ...</span>
  12746. </code></pre>
  12747. <p><code>POST /api/boards/{board}/integrations/{int}/activities</code></p>
  12748. <p><em>Add subscribed activities</em></p>
  12749. <blockquote>
  12750. <p>Body parameter</p>
  12751. </blockquote>
  12752. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">activities:</span> <span class="hljs-string">string</span>
  12753. </code></pre>
  12754. <h3 id="new_integration_activities-parameters">Parameters</h3>
  12755. <table>
  12756. <thead>
  12757. <tr>
  12758. <th>Name</th>
  12759. <th>In</th>
  12760. <th>Type</th>
  12761. <th>Required</th>
  12762. <th>Description</th>
  12763. </tr>
  12764. </thead>
  12765. <tbody>
  12766. <tr>
  12767. <td>board</td>
  12768. <td>path</td>
  12769. <td>string</td>
  12770. <td>true</td>
  12771. <td>the board ID</td>
  12772. </tr>
  12773. <tr>
  12774. <td>int</td>
  12775. <td>path</td>
  12776. <td>string</td>
  12777. <td>true</td>
  12778. <td>the integration ID</td>
  12779. </tr>
  12780. <tr>
  12781. <td>body</td>
  12782. <td>body</td>
  12783. <td>object</td>
  12784. <td>true</td>
  12785. <td>none</td>
  12786. </tr>
  12787. <tr>
  12788. <td>» activities</td>
  12789. <td>body</td>
  12790. <td>string</td>
  12791. <td>true</td>
  12792. <td>the activities value</td>
  12793. </tr>
  12794. </tbody>
  12795. </table>
  12796. <h4 id="detailed-descriptions-37">Detailed descriptions</h4>
  12797. <p><strong>board</strong>: the board ID</p>
  12798. <p><strong>int</strong>: the integration ID</p>
  12799. <blockquote>
  12800. <p>Example responses</p>
  12801. </blockquote>
  12802. <blockquote>
  12803. <p>200 Response</p>
  12804. </blockquote>
  12805. <pre class="highlight tab tab-json"><code>{
  12806. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  12807. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12808. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12809. <span class="hljs-attr">&quot;activities&quot;</span>: [
  12810. <span class="hljs-string">&quot;string&quot;</span>
  12811. ],
  12812. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12813. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12814. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12815. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12816. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12817. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12818. }
  12819. </code></pre>
  12820. <h3 id="new_integration_activities-responses">Responses</h3>
  12821. <table>
  12822. <thead>
  12823. <tr>
  12824. <th>Status</th>
  12825. <th>Meaning</th>
  12826. <th>Description</th>
  12827. <th>Schema</th>
  12828. </tr>
  12829. </thead>
  12830. <tbody>
  12831. <tr>
  12832. <td>200</td>
  12833. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  12834. <td>200 response</td>
  12835. <td><a href="#schemaintegrations">Integrations</a></td>
  12836. </tr>
  12837. </tbody>
  12838. </table>
  12839. <aside class="warning">
  12840. To perform this operation, you must be authenticated by means of one of the following methods:
  12841. UserSecurity
  12842. </aside>
  12843. <h1 id="wekan-rest-api-lists">Lists</h1>
  12844. <h2 id="get_all_lists">get_all_lists</h2>
  12845. <p><a id="opIdget_all_lists"></a></p>
  12846. <blockquote>
  12847. <p>Code samples</p>
  12848. </blockquote>
  12849. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  12850. curl -X GET /api/boards/{board}/lists \
  12851. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  12852. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  12853. </code></pre>
  12854. <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>
  12855. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  12856. </span></code></pre>
  12857. <pre class="highlight tab tab-javascript"><code>
  12858. <span class="hljs-keyword">const</span> headers = {
  12859. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12860. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12861. };
  12862. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12863. {
  12864. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12865. <span class="hljs-attr">headers</span>: headers
  12866. })
  12867. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12868. <span class="hljs-keyword">return</span> res.json();
  12869. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12870. <span class="hljs-built_in">console</span>.log(body);
  12871. });
  12872. </code></pre>
  12873. <pre class="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>);
  12874. <span class="hljs-keyword">const</span> headers = {
  12875. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  12876. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12877. };
  12878. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12879. {
  12880. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  12881. <span class="hljs-attr">headers</span>: headers
  12882. })
  12883. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  12884. <span class="hljs-keyword">return</span> res.json();
  12885. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  12886. <span class="hljs-built_in">console</span>.log(body);
  12887. });
  12888. </code></pre>
  12889. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  12890. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  12891. headers = {
  12892. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12893. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12894. }
  12895. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  12896. <span class="hljs-symbol">params:</span> {
  12897. }, <span class="hljs-symbol">headers:</span> headers
  12898. p JSON.parse(result)
  12899. </code></pre>
  12900. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  12901. headers = {
  12902. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12903. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  12904. }
  12905. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  12906. <span class="hljs-built_in">print</span>(r.json())
  12907. </code></pre>
  12908. <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>);
  12909. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  12910. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  12911. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  12912. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  12913. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  12914. String inputLine;
  12915. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  12916. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  12917. response.append(inputLine);
  12918. }
  12919. in.close();
  12920. System.out.println(response.toString());
  12921. </code></pre>
  12922. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  12923. <span class="hljs-keyword">import</span> (
  12924. <span class="hljs-string">&quot;bytes&quot;</span>
  12925. <span class="hljs-string">&quot;net/http&quot;</span>
  12926. )
  12927. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  12928. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  12929. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  12930. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  12931. }
  12932. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  12933. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  12934. req.Header = headers
  12935. client := &amp;http.Client{}
  12936. resp, err := client.Do(req)
  12937. <span class="hljs-comment">// ...</span>
  12938. }
  12939. </code></pre>
  12940. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  12941. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  12942. );
  12943. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  12944. <span class="hljs-comment">// Define array of request body.</span>
  12945. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  12946. <span class="hljs-keyword">try</span> {
  12947. <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>(
  12948. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  12949. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  12950. )
  12951. );
  12952. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  12953. }
  12954. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  12955. <span class="hljs-comment">// handle exception or api errors.</span>
  12956. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  12957. }
  12958. <span class="hljs-comment">// ...</span>
  12959. </code></pre>
  12960. <p><code>GET /api/boards/{board}/lists</code></p>
  12961. <p><em>Get the list of Lists attached to a board</em></p>
  12962. <h3 id="get_all_lists-parameters">Parameters</h3>
  12963. <table>
  12964. <thead>
  12965. <tr>
  12966. <th>Name</th>
  12967. <th>In</th>
  12968. <th>Type</th>
  12969. <th>Required</th>
  12970. <th>Description</th>
  12971. </tr>
  12972. </thead>
  12973. <tbody>
  12974. <tr>
  12975. <td>board</td>
  12976. <td>path</td>
  12977. <td>string</td>
  12978. <td>true</td>
  12979. <td>the board ID</td>
  12980. </tr>
  12981. </tbody>
  12982. </table>
  12983. <h4 id="detailed-descriptions-38">Detailed descriptions</h4>
  12984. <p><strong>board</strong>: the board ID</p>
  12985. <blockquote>
  12986. <p>Example responses</p>
  12987. </blockquote>
  12988. <blockquote>
  12989. <p>200 Response</p>
  12990. </blockquote>
  12991. <pre class="highlight tab tab-json"><code>[
  12992. {
  12993. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  12994. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  12995. }
  12996. ]
  12997. </code></pre>
  12998. <h3 id="get_all_lists-responses">Responses</h3>
  12999. <table>
  13000. <thead>
  13001. <tr>
  13002. <th>Status</th>
  13003. <th>Meaning</th>
  13004. <th>Description</th>
  13005. <th>Schema</th>
  13006. </tr>
  13007. </thead>
  13008. <tbody>
  13009. <tr>
  13010. <td>200</td>
  13011. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13012. <td>200 response</td>
  13013. <td>Inline</td>
  13014. </tr>
  13015. </tbody>
  13016. </table>
  13017. <h3 id="get_all_lists-responseschema">Response Schema</h3>
  13018. <p>Status Code <strong>200</strong></p>
  13019. <table>
  13020. <thead>
  13021. <tr>
  13022. <th>Name</th>
  13023. <th>Type</th>
  13024. <th>Required</th>
  13025. <th>Restrictions</th>
  13026. <th>Description</th>
  13027. </tr>
  13028. </thead>
  13029. <tbody>
  13030. <tr>
  13031. <td>» _id</td>
  13032. <td>string</td>
  13033. <td>false</td>
  13034. <td>none</td>
  13035. <td>none</td>
  13036. </tr>
  13037. <tr>
  13038. <td>» title</td>
  13039. <td>string</td>
  13040. <td>false</td>
  13041. <td>none</td>
  13042. <td>none</td>
  13043. </tr>
  13044. </tbody>
  13045. </table>
  13046. <aside class="warning">
  13047. To perform this operation, you must be authenticated by means of one of the following methods:
  13048. UserSecurity
  13049. </aside>
  13050. <h2 id="new_list">new_list</h2>
  13051. <p><a id="opIdnew_list"></a></p>
  13052. <blockquote>
  13053. <p>Code samples</p>
  13054. </blockquote>
  13055. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13056. curl -X POST /api/boards/{board}/lists \
  13057. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13058. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13059. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13060. </code></pre>
  13061. <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>
  13062. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13063. Accept: application/json
  13064. </span></code></pre>
  13065. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13066. &quot;title&quot;: &quot;string&quot;
  13067. }&#x27;</span>;
  13068. <span class="hljs-keyword">const</span> headers = {
  13069. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13070. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13071. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13072. };
  13073. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13074. {
  13075. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13076. <span class="hljs-attr">body</span>: inputBody,
  13077. <span class="hljs-attr">headers</span>: headers
  13078. })
  13079. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13080. <span class="hljs-keyword">return</span> res.json();
  13081. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13082. <span class="hljs-built_in">console</span>.log(body);
  13083. });
  13084. </code></pre>
  13085. <pre class="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>);
  13086. <span class="hljs-keyword">const</span> inputBody = {
  13087. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13088. };
  13089. <span class="hljs-keyword">const</span> headers = {
  13090. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13091. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13092. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13093. };
  13094. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13095. {
  13096. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13097. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13098. <span class="hljs-attr">headers</span>: headers
  13099. })
  13100. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13101. <span class="hljs-keyword">return</span> res.json();
  13102. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13103. <span class="hljs-built_in">console</span>.log(body);
  13104. });
  13105. </code></pre>
  13106. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13107. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13108. headers = {
  13109. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13110. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13111. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13112. }
  13113. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>,
  13114. <span class="hljs-symbol">params:</span> {
  13115. }, <span class="hljs-symbol">headers:</span> headers
  13116. p JSON.parse(result)
  13117. </code></pre>
  13118. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13119. headers = {
  13120. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13121. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13122. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13123. }
  13124. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/lists&#x27;</span>, headers = headers)
  13125. <span class="hljs-built_in">print</span>(r.json())
  13126. </code></pre>
  13127. <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>);
  13128. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13129. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13130. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13131. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13132. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13133. String inputLine;
  13134. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13135. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13136. response.append(inputLine);
  13137. }
  13138. in.close();
  13139. System.out.println(response.toString());
  13140. </code></pre>
  13141. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13142. <span class="hljs-keyword">import</span> (
  13143. <span class="hljs-string">&quot;bytes&quot;</span>
  13144. <span class="hljs-string">&quot;net/http&quot;</span>
  13145. )
  13146. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13147. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13148. <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>},
  13149. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13150. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13151. }
  13152. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13153. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/lists&quot;</span>, data)
  13154. req.Header = headers
  13155. client := &amp;http.Client{}
  13156. resp, err := client.Do(req)
  13157. <span class="hljs-comment">// ...</span>
  13158. }
  13159. </code></pre>
  13160. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13161. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13162. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13163. );
  13164. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13165. <span class="hljs-comment">// Define array of request body.</span>
  13166. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13167. <span class="hljs-keyword">try</span> {
  13168. <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>(
  13169. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13170. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13171. )
  13172. );
  13173. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13174. }
  13175. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13176. <span class="hljs-comment">// handle exception or api errors.</span>
  13177. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13178. }
  13179. <span class="hljs-comment">// ...</span>
  13180. </code></pre>
  13181. <p><code>POST /api/boards/{board}/lists</code></p>
  13182. <p><em>Add a List to a board</em></p>
  13183. <blockquote>
  13184. <p>Body parameter</p>
  13185. </blockquote>
  13186. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  13187. </code></pre>
  13188. <h3 id="new_list-parameters">Parameters</h3>
  13189. <table>
  13190. <thead>
  13191. <tr>
  13192. <th>Name</th>
  13193. <th>In</th>
  13194. <th>Type</th>
  13195. <th>Required</th>
  13196. <th>Description</th>
  13197. </tr>
  13198. </thead>
  13199. <tbody>
  13200. <tr>
  13201. <td>board</td>
  13202. <td>path</td>
  13203. <td>string</td>
  13204. <td>true</td>
  13205. <td>the board ID</td>
  13206. </tr>
  13207. <tr>
  13208. <td>body</td>
  13209. <td>body</td>
  13210. <td>object</td>
  13211. <td>true</td>
  13212. <td>none</td>
  13213. </tr>
  13214. <tr>
  13215. <td>» title</td>
  13216. <td>body</td>
  13217. <td>string</td>
  13218. <td>true</td>
  13219. <td>the title of the List</td>
  13220. </tr>
  13221. </tbody>
  13222. </table>
  13223. <h4 id="detailed-descriptions-39">Detailed descriptions</h4>
  13224. <p><strong>board</strong>: the board ID</p>
  13225. <blockquote>
  13226. <p>Example responses</p>
  13227. </blockquote>
  13228. <blockquote>
  13229. <p>200 Response</p>
  13230. </blockquote>
  13231. <pre class="highlight tab tab-json"><code>{
  13232. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13233. }
  13234. </code></pre>
  13235. <h3 id="new_list-responses">Responses</h3>
  13236. <table>
  13237. <thead>
  13238. <tr>
  13239. <th>Status</th>
  13240. <th>Meaning</th>
  13241. <th>Description</th>
  13242. <th>Schema</th>
  13243. </tr>
  13244. </thead>
  13245. <tbody>
  13246. <tr>
  13247. <td>200</td>
  13248. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13249. <td>200 response</td>
  13250. <td>Inline</td>
  13251. </tr>
  13252. </tbody>
  13253. </table>
  13254. <h3 id="new_list-responseschema">Response Schema</h3>
  13255. <p>Status Code <strong>200</strong></p>
  13256. <table>
  13257. <thead>
  13258. <tr>
  13259. <th>Name</th>
  13260. <th>Type</th>
  13261. <th>Required</th>
  13262. <th>Restrictions</th>
  13263. <th>Description</th>
  13264. </tr>
  13265. </thead>
  13266. <tbody>
  13267. <tr>
  13268. <td>» _id</td>
  13269. <td>string</td>
  13270. <td>false</td>
  13271. <td>none</td>
  13272. <td>none</td>
  13273. </tr>
  13274. </tbody>
  13275. </table>
  13276. <aside class="warning">
  13277. To perform this operation, you must be authenticated by means of one of the following methods:
  13278. UserSecurity
  13279. </aside>
  13280. <h2 id="get_list">get_list</h2>
  13281. <p><a id="opIdget_list"></a></p>
  13282. <blockquote>
  13283. <p>Code samples</p>
  13284. </blockquote>
  13285. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13286. curl -X GET /api/boards/{board}/lists/{list} \
  13287. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13288. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13289. </code></pre>
  13290. <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>
  13291. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13292. </span></code></pre>
  13293. <pre class="highlight tab tab-javascript"><code>
  13294. <span class="hljs-keyword">const</span> headers = {
  13295. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13296. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13297. };
  13298. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13299. {
  13300. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13301. <span class="hljs-attr">headers</span>: headers
  13302. })
  13303. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13304. <span class="hljs-keyword">return</span> res.json();
  13305. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13306. <span class="hljs-built_in">console</span>.log(body);
  13307. });
  13308. </code></pre>
  13309. <pre class="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>);
  13310. <span class="hljs-keyword">const</span> headers = {
  13311. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13312. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13313. };
  13314. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13315. {
  13316. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  13317. <span class="hljs-attr">headers</span>: headers
  13318. })
  13319. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13320. <span class="hljs-keyword">return</span> res.json();
  13321. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13322. <span class="hljs-built_in">console</span>.log(body);
  13323. });
  13324. </code></pre>
  13325. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13326. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13327. headers = {
  13328. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13329. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13330. }
  13331. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13332. <span class="hljs-symbol">params:</span> {
  13333. }, <span class="hljs-symbol">headers:</span> headers
  13334. p JSON.parse(result)
  13335. </code></pre>
  13336. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13337. headers = {
  13338. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13339. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13340. }
  13341. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13342. <span class="hljs-built_in">print</span>(r.json())
  13343. </code></pre>
  13344. <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>);
  13345. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13346. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  13347. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13348. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13349. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13350. String inputLine;
  13351. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13352. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13353. response.append(inputLine);
  13354. }
  13355. in.close();
  13356. System.out.println(response.toString());
  13357. </code></pre>
  13358. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13359. <span class="hljs-keyword">import</span> (
  13360. <span class="hljs-string">&quot;bytes&quot;</span>
  13361. <span class="hljs-string">&quot;net/http&quot;</span>
  13362. )
  13363. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13364. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13365. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13366. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13367. }
  13368. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13369. 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)
  13370. req.Header = headers
  13371. client := &amp;http.Client{}
  13372. resp, err := client.Do(req)
  13373. <span class="hljs-comment">// ...</span>
  13374. }
  13375. </code></pre>
  13376. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13377. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13378. );
  13379. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13380. <span class="hljs-comment">// Define array of request body.</span>
  13381. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13382. <span class="hljs-keyword">try</span> {
  13383. <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>(
  13384. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13385. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13386. )
  13387. );
  13388. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13389. }
  13390. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13391. <span class="hljs-comment">// handle exception or api errors.</span>
  13392. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13393. }
  13394. <span class="hljs-comment">// ...</span>
  13395. </code></pre>
  13396. <p><code>GET /api/boards/{board}/lists/{list}</code></p>
  13397. <p><em>Get a List attached to a board</em></p>
  13398. <h3 id="get_list-parameters">Parameters</h3>
  13399. <table>
  13400. <thead>
  13401. <tr>
  13402. <th>Name</th>
  13403. <th>In</th>
  13404. <th>Type</th>
  13405. <th>Required</th>
  13406. <th>Description</th>
  13407. </tr>
  13408. </thead>
  13409. <tbody>
  13410. <tr>
  13411. <td>board</td>
  13412. <td>path</td>
  13413. <td>string</td>
  13414. <td>true</td>
  13415. <td>the board ID</td>
  13416. </tr>
  13417. <tr>
  13418. <td>list</td>
  13419. <td>path</td>
  13420. <td>string</td>
  13421. <td>true</td>
  13422. <td>the List ID</td>
  13423. </tr>
  13424. </tbody>
  13425. </table>
  13426. <h4 id="detailed-descriptions-40">Detailed descriptions</h4>
  13427. <p><strong>board</strong>: the board ID</p>
  13428. <p><strong>list</strong>: the List ID</p>
  13429. <blockquote>
  13430. <p>Example responses</p>
  13431. </blockquote>
  13432. <blockquote>
  13433. <p>200 Response</p>
  13434. </blockquote>
  13435. <pre class="highlight tab tab-json"><code>{
  13436. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13437. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  13438. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  13439. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13440. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13441. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13442. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13443. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  13444. <span class="hljs-attr">&quot;width&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13445. <span class="hljs-attr">&quot;height&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13446. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13447. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13448. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  13449. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  13450. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  13451. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  13452. },
  13453. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  13454. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13455. }
  13456. </code></pre>
  13457. <h3 id="get_list-responses">Responses</h3>
  13458. <table>
  13459. <thead>
  13460. <tr>
  13461. <th>Status</th>
  13462. <th>Meaning</th>
  13463. <th>Description</th>
  13464. <th>Schema</th>
  13465. </tr>
  13466. </thead>
  13467. <tbody>
  13468. <tr>
  13469. <td>200</td>
  13470. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13471. <td>200 response</td>
  13472. <td><a href="#schemalists">Lists</a></td>
  13473. </tr>
  13474. </tbody>
  13475. </table>
  13476. <aside class="warning">
  13477. To perform this operation, you must be authenticated by means of one of the following methods:
  13478. UserSecurity
  13479. </aside>
  13480. <h2 id="delete_list">delete_list</h2>
  13481. <p><a id="opIddelete_list"></a></p>
  13482. <blockquote>
  13483. <p>Code samples</p>
  13484. </blockquote>
  13485. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13486. curl -X DELETE /api/boards/{board}/lists/{list} \
  13487. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13488. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13489. </code></pre>
  13490. <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>
  13491. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  13492. </span></code></pre>
  13493. <pre class="highlight tab tab-javascript"><code>
  13494. <span class="hljs-keyword">const</span> headers = {
  13495. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13496. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13497. };
  13498. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13499. {
  13500. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13501. <span class="hljs-attr">headers</span>: headers
  13502. })
  13503. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13504. <span class="hljs-keyword">return</span> res.json();
  13505. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13506. <span class="hljs-built_in">console</span>.log(body);
  13507. });
  13508. </code></pre>
  13509. <pre class="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>);
  13510. <span class="hljs-keyword">const</span> headers = {
  13511. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13512. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13513. };
  13514. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13515. {
  13516. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  13517. <span class="hljs-attr">headers</span>: headers
  13518. })
  13519. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13520. <span class="hljs-keyword">return</span> res.json();
  13521. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13522. <span class="hljs-built_in">console</span>.log(body);
  13523. });
  13524. </code></pre>
  13525. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13526. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13527. headers = {
  13528. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13529. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13530. }
  13531. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>,
  13532. <span class="hljs-symbol">params:</span> {
  13533. }, <span class="hljs-symbol">headers:</span> headers
  13534. p JSON.parse(result)
  13535. </code></pre>
  13536. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13537. headers = {
  13538. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13539. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13540. }
  13541. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/lists/{list}&#x27;</span>, headers = headers)
  13542. <span class="hljs-built_in">print</span>(r.json())
  13543. </code></pre>
  13544. <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>);
  13545. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13546. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  13547. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13548. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13549. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13550. String inputLine;
  13551. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13552. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13553. response.append(inputLine);
  13554. }
  13555. in.close();
  13556. System.out.println(response.toString());
  13557. </code></pre>
  13558. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13559. <span class="hljs-keyword">import</span> (
  13560. <span class="hljs-string">&quot;bytes&quot;</span>
  13561. <span class="hljs-string">&quot;net/http&quot;</span>
  13562. )
  13563. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13564. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13565. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13566. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13567. }
  13568. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13569. 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)
  13570. req.Header = headers
  13571. client := &amp;http.Client{}
  13572. resp, err := client.Do(req)
  13573. <span class="hljs-comment">// ...</span>
  13574. }
  13575. </code></pre>
  13576. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13577. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13578. );
  13579. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13580. <span class="hljs-comment">// Define array of request body.</span>
  13581. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13582. <span class="hljs-keyword">try</span> {
  13583. <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>(
  13584. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13585. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13586. )
  13587. );
  13588. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13589. }
  13590. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13591. <span class="hljs-comment">// handle exception or api errors.</span>
  13592. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13593. }
  13594. <span class="hljs-comment">// ...</span>
  13595. </code></pre>
  13596. <p><code>DELETE /api/boards/{board}/lists/{list}</code></p>
  13597. <p><em>Delete a List</em></p>
  13598. <p>This <strong>deletes</strong> a list from a board.
  13599. The list is not put in the recycle bin.</p>
  13600. <h3 id="delete_list-parameters">Parameters</h3>
  13601. <table>
  13602. <thead>
  13603. <tr>
  13604. <th>Name</th>
  13605. <th>In</th>
  13606. <th>Type</th>
  13607. <th>Required</th>
  13608. <th>Description</th>
  13609. </tr>
  13610. </thead>
  13611. <tbody>
  13612. <tr>
  13613. <td>board</td>
  13614. <td>path</td>
  13615. <td>string</td>
  13616. <td>true</td>
  13617. <td>the board ID</td>
  13618. </tr>
  13619. <tr>
  13620. <td>list</td>
  13621. <td>path</td>
  13622. <td>string</td>
  13623. <td>true</td>
  13624. <td>the ID of the list to remove</td>
  13625. </tr>
  13626. </tbody>
  13627. </table>
  13628. <h4 id="detailed-descriptions-41">Detailed descriptions</h4>
  13629. <p><strong>board</strong>: the board ID</p>
  13630. <p><strong>list</strong>: the ID of the list to remove</p>
  13631. <blockquote>
  13632. <p>Example responses</p>
  13633. </blockquote>
  13634. <blockquote>
  13635. <p>200 Response</p>
  13636. </blockquote>
  13637. <pre class="highlight tab tab-json"><code>{
  13638. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13639. }
  13640. </code></pre>
  13641. <h3 id="delete_list-responses">Responses</h3>
  13642. <table>
  13643. <thead>
  13644. <tr>
  13645. <th>Status</th>
  13646. <th>Meaning</th>
  13647. <th>Description</th>
  13648. <th>Schema</th>
  13649. </tr>
  13650. </thead>
  13651. <tbody>
  13652. <tr>
  13653. <td>200</td>
  13654. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13655. <td>200 response</td>
  13656. <td>Inline</td>
  13657. </tr>
  13658. </tbody>
  13659. </table>
  13660. <h3 id="delete_list-responseschema">Response Schema</h3>
  13661. <p>Status Code <strong>200</strong></p>
  13662. <table>
  13663. <thead>
  13664. <tr>
  13665. <th>Name</th>
  13666. <th>Type</th>
  13667. <th>Required</th>
  13668. <th>Restrictions</th>
  13669. <th>Description</th>
  13670. </tr>
  13671. </thead>
  13672. <tbody>
  13673. <tr>
  13674. <td>» _id</td>
  13675. <td>string</td>
  13676. <td>false</td>
  13677. <td>none</td>
  13678. <td>none</td>
  13679. </tr>
  13680. </tbody>
  13681. </table>
  13682. <aside class="warning">
  13683. To perform this operation, you must be authenticated by means of one of the following methods:
  13684. UserSecurity
  13685. </aside>
  13686. <h1 id="wekan-rest-api-users">Users</h1>
  13687. <h2 id="add_board_member">add_board_member</h2>
  13688. <p><a id="opIdadd_board_member"></a></p>
  13689. <blockquote>
  13690. <p>Code samples</p>
  13691. </blockquote>
  13692. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13693. curl -X POST /api/boards/{board}/members/{user}/add \
  13694. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13695. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13696. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13697. </code></pre>
  13698. <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>
  13699. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13700. Accept: application/json
  13701. </span></code></pre>
  13702. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13703. &quot;action&quot;: &quot;string&quot;,
  13704. &quot;isAdmin&quot;: true,
  13705. &quot;isNoComments&quot;: true,
  13706. &quot;isCommentOnly&quot;: true
  13707. }&#x27;</span>;
  13708. <span class="hljs-keyword">const</span> headers = {
  13709. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13710. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13711. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13712. };
  13713. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13714. {
  13715. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13716. <span class="hljs-attr">body</span>: inputBody,
  13717. <span class="hljs-attr">headers</span>: headers
  13718. })
  13719. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13720. <span class="hljs-keyword">return</span> res.json();
  13721. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13722. <span class="hljs-built_in">console</span>.log(body);
  13723. });
  13724. </code></pre>
  13725. <pre class="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>);
  13726. <span class="hljs-keyword">const</span> inputBody = {
  13727. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13728. <span class="hljs-string">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  13729. <span class="hljs-string">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  13730. <span class="hljs-string">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>
  13731. };
  13732. <span class="hljs-keyword">const</span> headers = {
  13733. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13734. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13735. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13736. };
  13737. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13738. {
  13739. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13740. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  13741. <span class="hljs-attr">headers</span>: headers
  13742. })
  13743. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13744. <span class="hljs-keyword">return</span> res.json();
  13745. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13746. <span class="hljs-built_in">console</span>.log(body);
  13747. });
  13748. </code></pre>
  13749. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  13750. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  13751. headers = {
  13752. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13753. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13754. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13755. }
  13756. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>,
  13757. <span class="hljs-symbol">params:</span> {
  13758. }, <span class="hljs-symbol">headers:</span> headers
  13759. p JSON.parse(result)
  13760. </code></pre>
  13761. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  13762. headers = {
  13763. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13764. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13765. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13766. }
  13767. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/add&#x27;</span>, headers = headers)
  13768. <span class="hljs-built_in">print</span>(r.json())
  13769. </code></pre>
  13770. <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>);
  13771. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  13772. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  13773. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  13774. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  13775. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  13776. String inputLine;
  13777. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  13778. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  13779. response.append(inputLine);
  13780. }
  13781. in.close();
  13782. System.out.println(response.toString());
  13783. </code></pre>
  13784. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  13785. <span class="hljs-keyword">import</span> (
  13786. <span class="hljs-string">&quot;bytes&quot;</span>
  13787. <span class="hljs-string">&quot;net/http&quot;</span>
  13788. )
  13789. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  13790. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  13791. <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>},
  13792. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  13793. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  13794. }
  13795. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  13796. 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)
  13797. req.Header = headers
  13798. client := &amp;http.Client{}
  13799. resp, err := client.Do(req)
  13800. <span class="hljs-comment">// ...</span>
  13801. }
  13802. </code></pre>
  13803. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13804. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  13805. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  13806. );
  13807. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  13808. <span class="hljs-comment">// Define array of request body.</span>
  13809. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  13810. <span class="hljs-keyword">try</span> {
  13811. <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>(
  13812. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  13813. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  13814. )
  13815. );
  13816. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  13817. }
  13818. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  13819. <span class="hljs-comment">// handle exception or api errors.</span>
  13820. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  13821. }
  13822. <span class="hljs-comment">// ...</span>
  13823. </code></pre>
  13824. <p><code>POST /api/boards/{board}/members/{user}/add</code></p>
  13825. <p><em>Add New Board Member with Role</em></p>
  13826. <p>Only the admin user (the first user) can call the REST API.</p>
  13827. <p><strong>Note</strong>: see <a href="#set_board_member_permission">Boards.set_board_member_permission</a>
  13828. to later change the permissions.</p>
  13829. <blockquote>
  13830. <p>Body parameter</p>
  13831. </blockquote>
  13832. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  13833. <span class="hljs-attr">isAdmin:</span> <span class="hljs-literal">true</span>
  13834. <span class="hljs-attr">isNoComments:</span> <span class="hljs-literal">true</span>
  13835. <span class="hljs-attr">isCommentOnly:</span> <span class="hljs-literal">true</span>
  13836. </code></pre>
  13837. <h3 id="add_board_member-parameters">Parameters</h3>
  13838. <table>
  13839. <thead>
  13840. <tr>
  13841. <th>Name</th>
  13842. <th>In</th>
  13843. <th>Type</th>
  13844. <th>Required</th>
  13845. <th>Description</th>
  13846. </tr>
  13847. </thead>
  13848. <tbody>
  13849. <tr>
  13850. <td>board</td>
  13851. <td>path</td>
  13852. <td>string</td>
  13853. <td>true</td>
  13854. <td>the board ID</td>
  13855. </tr>
  13856. <tr>
  13857. <td>user</td>
  13858. <td>path</td>
  13859. <td>string</td>
  13860. <td>true</td>
  13861. <td>the user ID</td>
  13862. </tr>
  13863. <tr>
  13864. <td>body</td>
  13865. <td>body</td>
  13866. <td>object</td>
  13867. <td>true</td>
  13868. <td>none</td>
  13869. </tr>
  13870. <tr>
  13871. <td>» action</td>
  13872. <td>body</td>
  13873. <td>string</td>
  13874. <td>true</td>
  13875. <td>the action value</td>
  13876. </tr>
  13877. <tr>
  13878. <td>» isAdmin</td>
  13879. <td>body</td>
  13880. <td>boolean</td>
  13881. <td>true</td>
  13882. <td>is the user an admin of the board</td>
  13883. </tr>
  13884. <tr>
  13885. <td>» isNoComments</td>
  13886. <td>body</td>
  13887. <td>boolean</td>
  13888. <td>true</td>
  13889. <td>disable comments</td>
  13890. </tr>
  13891. <tr>
  13892. <td>» isCommentOnly</td>
  13893. <td>body</td>
  13894. <td>boolean</td>
  13895. <td>true</td>
  13896. <td>only enable comments</td>
  13897. </tr>
  13898. </tbody>
  13899. </table>
  13900. <h4 id="detailed-descriptions-42">Detailed descriptions</h4>
  13901. <p><strong>board</strong>: the board ID</p>
  13902. <p><strong>user</strong>: the user ID</p>
  13903. <blockquote>
  13904. <p>Example responses</p>
  13905. </blockquote>
  13906. <blockquote>
  13907. <p>200 Response</p>
  13908. </blockquote>
  13909. <pre class="highlight tab tab-json"><code>{
  13910. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  13911. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  13912. }
  13913. </code></pre>
  13914. <h3 id="add_board_member-responses">Responses</h3>
  13915. <table>
  13916. <thead>
  13917. <tr>
  13918. <th>Status</th>
  13919. <th>Meaning</th>
  13920. <th>Description</th>
  13921. <th>Schema</th>
  13922. </tr>
  13923. </thead>
  13924. <tbody>
  13925. <tr>
  13926. <td>200</td>
  13927. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  13928. <td>200 response</td>
  13929. <td>Inline</td>
  13930. </tr>
  13931. </tbody>
  13932. </table>
  13933. <h3 id="add_board_member-responseschema">Response Schema</h3>
  13934. <p>Status Code <strong>200</strong></p>
  13935. <table>
  13936. <thead>
  13937. <tr>
  13938. <th>Name</th>
  13939. <th>Type</th>
  13940. <th>Required</th>
  13941. <th>Restrictions</th>
  13942. <th>Description</th>
  13943. </tr>
  13944. </thead>
  13945. <tbody>
  13946. <tr>
  13947. <td>» _id</td>
  13948. <td>string</td>
  13949. <td>false</td>
  13950. <td>none</td>
  13951. <td>none</td>
  13952. </tr>
  13953. <tr>
  13954. <td>» title</td>
  13955. <td>string</td>
  13956. <td>false</td>
  13957. <td>none</td>
  13958. <td>none</td>
  13959. </tr>
  13960. </tbody>
  13961. </table>
  13962. <aside class="warning">
  13963. To perform this operation, you must be authenticated by means of one of the following methods:
  13964. UserSecurity
  13965. </aside>
  13966. <h2 id="remove_board_member">remove_board_member</h2>
  13967. <p><a id="opIdremove_board_member"></a></p>
  13968. <blockquote>
  13969. <p>Code samples</p>
  13970. </blockquote>
  13971. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  13972. curl -X POST /api/boards/{board}/members/{user}/remove \
  13973. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  13974. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  13975. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  13976. </code></pre>
  13977. <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>
  13978. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  13979. Accept: application/json
  13980. </span></code></pre>
  13981. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  13982. &quot;action&quot;: &quot;string&quot;
  13983. }&#x27;</span>;
  13984. <span class="hljs-keyword">const</span> headers = {
  13985. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  13986. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  13987. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  13988. };
  13989. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  13990. {
  13991. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  13992. <span class="hljs-attr">body</span>: inputBody,
  13993. <span class="hljs-attr">headers</span>: headers
  13994. })
  13995. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  13996. <span class="hljs-keyword">return</span> res.json();
  13997. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  13998. <span class="hljs-built_in">console</span>.log(body);
  13999. });
  14000. </code></pre>
  14001. <pre class="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>);
  14002. <span class="hljs-keyword">const</span> inputBody = {
  14003. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14004. };
  14005. <span class="hljs-keyword">const</span> headers = {
  14006. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14007. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14008. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14009. };
  14010. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  14011. {
  14012. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14013. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14014. <span class="hljs-attr">headers</span>: headers
  14015. })
  14016. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14017. <span class="hljs-keyword">return</span> res.json();
  14018. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14019. <span class="hljs-built_in">console</span>.log(body);
  14020. });
  14021. </code></pre>
  14022. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14023. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14024. headers = {
  14025. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14026. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14027. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14028. }
  14029. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>,
  14030. <span class="hljs-symbol">params:</span> {
  14031. }, <span class="hljs-symbol">headers:</span> headers
  14032. p JSON.parse(result)
  14033. </code></pre>
  14034. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14035. headers = {
  14036. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14037. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14038. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14039. }
  14040. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/members/{user}/remove&#x27;</span>, headers = headers)
  14041. <span class="hljs-built_in">print</span>(r.json())
  14042. </code></pre>
  14043. <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>);
  14044. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14045. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14046. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14047. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14048. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14049. String inputLine;
  14050. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14051. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14052. response.append(inputLine);
  14053. }
  14054. in.close();
  14055. System.out.println(response.toString());
  14056. </code></pre>
  14057. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14058. <span class="hljs-keyword">import</span> (
  14059. <span class="hljs-string">&quot;bytes&quot;</span>
  14060. <span class="hljs-string">&quot;net/http&quot;</span>
  14061. )
  14062. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14063. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14064. <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>},
  14065. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14066. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14067. }
  14068. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14069. 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)
  14070. req.Header = headers
  14071. client := &amp;http.Client{}
  14072. resp, err := client.Do(req)
  14073. <span class="hljs-comment">// ...</span>
  14074. }
  14075. </code></pre>
  14076. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14077. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14078. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14079. );
  14080. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14081. <span class="hljs-comment">// Define array of request body.</span>
  14082. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14083. <span class="hljs-keyword">try</span> {
  14084. <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>(
  14085. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14086. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14087. )
  14088. );
  14089. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14090. }
  14091. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14092. <span class="hljs-comment">// handle exception or api errors.</span>
  14093. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14094. }
  14095. <span class="hljs-comment">// ...</span>
  14096. </code></pre>
  14097. <p><code>POST /api/boards/{board}/members/{user}/remove</code></p>
  14098. <p><em>Remove Member from Board</em></p>
  14099. <p>Only the admin user (the first user) can call the REST API.</p>
  14100. <blockquote>
  14101. <p>Body parameter</p>
  14102. </blockquote>
  14103. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  14104. </code></pre>
  14105. <h3 id="remove_board_member-parameters">Parameters</h3>
  14106. <table>
  14107. <thead>
  14108. <tr>
  14109. <th>Name</th>
  14110. <th>In</th>
  14111. <th>Type</th>
  14112. <th>Required</th>
  14113. <th>Description</th>
  14114. </tr>
  14115. </thead>
  14116. <tbody>
  14117. <tr>
  14118. <td>board</td>
  14119. <td>path</td>
  14120. <td>string</td>
  14121. <td>true</td>
  14122. <td>the board ID</td>
  14123. </tr>
  14124. <tr>
  14125. <td>user</td>
  14126. <td>path</td>
  14127. <td>string</td>
  14128. <td>true</td>
  14129. <td>the user ID</td>
  14130. </tr>
  14131. <tr>
  14132. <td>body</td>
  14133. <td>body</td>
  14134. <td>object</td>
  14135. <td>true</td>
  14136. <td>none</td>
  14137. </tr>
  14138. <tr>
  14139. <td>» action</td>
  14140. <td>body</td>
  14141. <td>string</td>
  14142. <td>true</td>
  14143. <td>the action (needs to be <code>remove</code>)</td>
  14144. </tr>
  14145. </tbody>
  14146. </table>
  14147. <h4 id="detailed-descriptions-43">Detailed descriptions</h4>
  14148. <p><strong>board</strong>: the board ID</p>
  14149. <p><strong>user</strong>: the user ID</p>
  14150. <blockquote>
  14151. <p>Example responses</p>
  14152. </blockquote>
  14153. <blockquote>
  14154. <p>200 Response</p>
  14155. </blockquote>
  14156. <pre class="highlight tab tab-json"><code>{
  14157. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14158. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14159. }
  14160. </code></pre>
  14161. <h3 id="remove_board_member-responses">Responses</h3>
  14162. <table>
  14163. <thead>
  14164. <tr>
  14165. <th>Status</th>
  14166. <th>Meaning</th>
  14167. <th>Description</th>
  14168. <th>Schema</th>
  14169. </tr>
  14170. </thead>
  14171. <tbody>
  14172. <tr>
  14173. <td>200</td>
  14174. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14175. <td>200 response</td>
  14176. <td>Inline</td>
  14177. </tr>
  14178. </tbody>
  14179. </table>
  14180. <h3 id="remove_board_member-responseschema">Response Schema</h3>
  14181. <p>Status Code <strong>200</strong></p>
  14182. <table>
  14183. <thead>
  14184. <tr>
  14185. <th>Name</th>
  14186. <th>Type</th>
  14187. <th>Required</th>
  14188. <th>Restrictions</th>
  14189. <th>Description</th>
  14190. </tr>
  14191. </thead>
  14192. <tbody>
  14193. <tr>
  14194. <td>» _id</td>
  14195. <td>string</td>
  14196. <td>false</td>
  14197. <td>none</td>
  14198. <td>none</td>
  14199. </tr>
  14200. <tr>
  14201. <td>» title</td>
  14202. <td>string</td>
  14203. <td>false</td>
  14204. <td>none</td>
  14205. <td>none</td>
  14206. </tr>
  14207. </tbody>
  14208. </table>
  14209. <aside class="warning">
  14210. To perform this operation, you must be authenticated by means of one of the following methods:
  14211. UserSecurity
  14212. </aside>
  14213. <h2 id="create_user_token">create_user_token</h2>
  14214. <p><a id="opIdcreate_user_token"></a></p>
  14215. <blockquote>
  14216. <p>Code samples</p>
  14217. </blockquote>
  14218. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14219. curl -X POST /api/createtoken/{user} \
  14220. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14221. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14222. </code></pre>
  14223. <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>
  14224. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14225. </span></code></pre>
  14226. <pre class="highlight tab tab-javascript"><code>
  14227. <span class="hljs-keyword">const</span> headers = {
  14228. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14229. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14230. };
  14231. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14232. {
  14233. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14234. <span class="hljs-attr">headers</span>: headers
  14235. })
  14236. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14237. <span class="hljs-keyword">return</span> res.json();
  14238. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14239. <span class="hljs-built_in">console</span>.log(body);
  14240. });
  14241. </code></pre>
  14242. <pre class="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>);
  14243. <span class="hljs-keyword">const</span> headers = {
  14244. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14245. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14246. };
  14247. fetch(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14248. {
  14249. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14250. <span class="hljs-attr">headers</span>: headers
  14251. })
  14252. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14253. <span class="hljs-keyword">return</span> res.json();
  14254. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14255. <span class="hljs-built_in">console</span>.log(body);
  14256. });
  14257. </code></pre>
  14258. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14259. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14260. headers = {
  14261. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14262. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14263. }
  14264. result = RestClient.post <span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>,
  14265. <span class="hljs-symbol">params:</span> {
  14266. }, <span class="hljs-symbol">headers:</span> headers
  14267. p JSON.parse(result)
  14268. </code></pre>
  14269. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14270. headers = {
  14271. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14272. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14273. }
  14274. r = requests.post(<span class="hljs-string">&#x27;/api/createtoken/{user}&#x27;</span>, headers = headers)
  14275. <span class="hljs-built_in">print</span>(r.json())
  14276. </code></pre>
  14277. <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>);
  14278. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14279. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14280. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14281. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14282. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14283. String inputLine;
  14284. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14285. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14286. response.append(inputLine);
  14287. }
  14288. in.close();
  14289. System.out.println(response.toString());
  14290. </code></pre>
  14291. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14292. <span class="hljs-keyword">import</span> (
  14293. <span class="hljs-string">&quot;bytes&quot;</span>
  14294. <span class="hljs-string">&quot;net/http&quot;</span>
  14295. )
  14296. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14297. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14298. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14299. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14300. }
  14301. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14302. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/createtoken/{user}&quot;</span>, data)
  14303. req.Header = headers
  14304. client := &amp;http.Client{}
  14305. resp, err := client.Do(req)
  14306. <span class="hljs-comment">// ...</span>
  14307. }
  14308. </code></pre>
  14309. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14310. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14311. );
  14312. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14313. <span class="hljs-comment">// Define array of request body.</span>
  14314. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14315. <span class="hljs-keyword">try</span> {
  14316. <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>(
  14317. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14318. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14319. )
  14320. );
  14321. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14322. }
  14323. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14324. <span class="hljs-comment">// handle exception or api errors.</span>
  14325. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14326. }
  14327. <span class="hljs-comment">// ...</span>
  14328. </code></pre>
  14329. <p><code>POST /api/createtoken/{user}</code></p>
  14330. <p><em>Create a user token</em></p>
  14331. <p>Only the admin user (the first user) can call the REST API.</p>
  14332. <h3 id="create_user_token-parameters">Parameters</h3>
  14333. <table>
  14334. <thead>
  14335. <tr>
  14336. <th>Name</th>
  14337. <th>In</th>
  14338. <th>Type</th>
  14339. <th>Required</th>
  14340. <th>Description</th>
  14341. </tr>
  14342. </thead>
  14343. <tbody>
  14344. <tr>
  14345. <td>user</td>
  14346. <td>path</td>
  14347. <td>string</td>
  14348. <td>true</td>
  14349. <td>the ID of the user to create token for.</td>
  14350. </tr>
  14351. </tbody>
  14352. </table>
  14353. <h4 id="detailed-descriptions-44">Detailed descriptions</h4>
  14354. <p><strong>user</strong>: the ID of the user to create token for.</p>
  14355. <blockquote>
  14356. <p>Example responses</p>
  14357. </blockquote>
  14358. <blockquote>
  14359. <p>200 Response</p>
  14360. </blockquote>
  14361. <pre class="highlight tab tab-json"><code>{
  14362. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14363. }
  14364. </code></pre>
  14365. <h3 id="create_user_token-responses">Responses</h3>
  14366. <table>
  14367. <thead>
  14368. <tr>
  14369. <th>Status</th>
  14370. <th>Meaning</th>
  14371. <th>Description</th>
  14372. <th>Schema</th>
  14373. </tr>
  14374. </thead>
  14375. <tbody>
  14376. <tr>
  14377. <td>200</td>
  14378. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14379. <td>200 response</td>
  14380. <td>Inline</td>
  14381. </tr>
  14382. </tbody>
  14383. </table>
  14384. <h3 id="create_user_token-responseschema">Response Schema</h3>
  14385. <p>Status Code <strong>200</strong></p>
  14386. <table>
  14387. <thead>
  14388. <tr>
  14389. <th>Name</th>
  14390. <th>Type</th>
  14391. <th>Required</th>
  14392. <th>Restrictions</th>
  14393. <th>Description</th>
  14394. </tr>
  14395. </thead>
  14396. <tbody>
  14397. <tr>
  14398. <td>» _id</td>
  14399. <td>string</td>
  14400. <td>false</td>
  14401. <td>none</td>
  14402. <td>none</td>
  14403. </tr>
  14404. </tbody>
  14405. </table>
  14406. <aside class="warning">
  14407. To perform this operation, you must be authenticated by means of one of the following methods:
  14408. UserSecurity
  14409. </aside>
  14410. <h2 id="get_current_user">get_current_user</h2>
  14411. <p><a id="opIdget_current_user"></a></p>
  14412. <blockquote>
  14413. <p>Code samples</p>
  14414. </blockquote>
  14415. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14416. curl -X GET /api/user \
  14417. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14418. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14419. </code></pre>
  14420. <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>
  14421. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14422. </span></code></pre>
  14423. <pre class="highlight tab tab-javascript"><code>
  14424. <span class="hljs-keyword">const</span> headers = {
  14425. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14426. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14427. };
  14428. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14429. {
  14430. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14431. <span class="hljs-attr">headers</span>: headers
  14432. })
  14433. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14434. <span class="hljs-keyword">return</span> res.json();
  14435. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14436. <span class="hljs-built_in">console</span>.log(body);
  14437. });
  14438. </code></pre>
  14439. <pre class="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>);
  14440. <span class="hljs-keyword">const</span> headers = {
  14441. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14442. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14443. };
  14444. fetch(<span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14445. {
  14446. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14447. <span class="hljs-attr">headers</span>: headers
  14448. })
  14449. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14450. <span class="hljs-keyword">return</span> res.json();
  14451. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14452. <span class="hljs-built_in">console</span>.log(body);
  14453. });
  14454. </code></pre>
  14455. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14456. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14457. headers = {
  14458. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14459. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14460. }
  14461. result = RestClient.get <span class="hljs-string">&#x27;/api/user&#x27;</span>,
  14462. <span class="hljs-symbol">params:</span> {
  14463. }, <span class="hljs-symbol">headers:</span> headers
  14464. p JSON.parse(result)
  14465. </code></pre>
  14466. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14467. headers = {
  14468. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14469. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14470. }
  14471. r = requests.get(<span class="hljs-string">&#x27;/api/user&#x27;</span>, headers = headers)
  14472. <span class="hljs-built_in">print</span>(r.json())
  14473. </code></pre>
  14474. <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>);
  14475. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14476. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14477. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14478. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14479. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14480. String inputLine;
  14481. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14482. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14483. response.append(inputLine);
  14484. }
  14485. in.close();
  14486. System.out.println(response.toString());
  14487. </code></pre>
  14488. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14489. <span class="hljs-keyword">import</span> (
  14490. <span class="hljs-string">&quot;bytes&quot;</span>
  14491. <span class="hljs-string">&quot;net/http&quot;</span>
  14492. )
  14493. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14494. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14495. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14496. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14497. }
  14498. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14499. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/user&quot;</span>, data)
  14500. req.Header = headers
  14501. client := &amp;http.Client{}
  14502. resp, err := client.Do(req)
  14503. <span class="hljs-comment">// ...</span>
  14504. }
  14505. </code></pre>
  14506. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14507. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14508. );
  14509. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14510. <span class="hljs-comment">// Define array of request body.</span>
  14511. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14512. <span class="hljs-keyword">try</span> {
  14513. <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>(
  14514. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14515. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14516. )
  14517. );
  14518. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14519. }
  14520. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14521. <span class="hljs-comment">// handle exception or api errors.</span>
  14522. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14523. }
  14524. <span class="hljs-comment">// ...</span>
  14525. </code></pre>
  14526. <p><code>GET /api/user</code></p>
  14527. <p><em>returns the current user</em></p>
  14528. <blockquote>
  14529. <p>Example responses</p>
  14530. </blockquote>
  14531. <blockquote>
  14532. <p>200 Response</p>
  14533. </blockquote>
  14534. <pre class="highlight tab tab-json"><code>{
  14535. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14536. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  14537. {
  14538. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14539. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14540. }
  14541. ],
  14542. <span class="hljs-attr">&quot;teams&quot;</span>: [
  14543. {
  14544. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14545. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14546. }
  14547. ],
  14548. <span class="hljs-attr">&quot;emails&quot;</span>: [
  14549. {
  14550. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14551. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  14552. }
  14553. ],
  14554. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14555. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14556. <span class="hljs-attr">&quot;profile&quot;</span>: {
  14557. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14558. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  14559. <span class="hljs-string">&quot;string&quot;</span>
  14560. ],
  14561. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14562. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  14563. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  14564. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  14565. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  14566. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  14567. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  14568. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14569. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  14570. <span class="hljs-string">&quot;string&quot;</span>
  14571. ],
  14572. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14573. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  14574. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  14575. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  14576. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  14577. {
  14578. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14579. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14580. }
  14581. ],
  14582. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  14583. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  14584. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  14585. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  14586. <span class="hljs-string">&quot;string&quot;</span>
  14587. ],
  14588. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14589. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  14590. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  14591. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14592. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14593. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14594. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14595. },
  14596. <span class="hljs-attr">&quot;services&quot;</span>: {},
  14597. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14598. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  14599. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  14600. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  14601. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14602. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  14603. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  14604. },
  14605. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  14606. <span class="hljs-string">&quot;string&quot;</span>
  14607. ]
  14608. }
  14609. </code></pre>
  14610. <h3 id="get_current_user-responses">Responses</h3>
  14611. <table>
  14612. <thead>
  14613. <tr>
  14614. <th>Status</th>
  14615. <th>Meaning</th>
  14616. <th>Description</th>
  14617. <th>Schema</th>
  14618. </tr>
  14619. </thead>
  14620. <tbody>
  14621. <tr>
  14622. <td>200</td>
  14623. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14624. <td>200 response</td>
  14625. <td><a href="#schemausers">Users</a></td>
  14626. </tr>
  14627. </tbody>
  14628. </table>
  14629. <aside class="warning">
  14630. To perform this operation, you must be authenticated by means of one of the following methods:
  14631. UserSecurity
  14632. </aside>
  14633. <h2 id="get_all_users">get_all_users</h2>
  14634. <p><a id="opIdget_all_users"></a></p>
  14635. <blockquote>
  14636. <p>Code samples</p>
  14637. </blockquote>
  14638. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14639. curl -X GET /api/users \
  14640. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14641. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14642. </code></pre>
  14643. <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>
  14644. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  14645. </span></code></pre>
  14646. <pre class="highlight tab tab-javascript"><code>
  14647. <span class="hljs-keyword">const</span> headers = {
  14648. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14649. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14650. };
  14651. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14652. {
  14653. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14654. <span class="hljs-attr">headers</span>: headers
  14655. })
  14656. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14657. <span class="hljs-keyword">return</span> res.json();
  14658. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14659. <span class="hljs-built_in">console</span>.log(body);
  14660. });
  14661. </code></pre>
  14662. <pre class="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>);
  14663. <span class="hljs-keyword">const</span> headers = {
  14664. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14665. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14666. };
  14667. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14668. {
  14669. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  14670. <span class="hljs-attr">headers</span>: headers
  14671. })
  14672. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14673. <span class="hljs-keyword">return</span> res.json();
  14674. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14675. <span class="hljs-built_in">console</span>.log(body);
  14676. });
  14677. </code></pre>
  14678. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14679. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14680. headers = {
  14681. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14682. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14683. }
  14684. result = RestClient.get <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14685. <span class="hljs-symbol">params:</span> {
  14686. }, <span class="hljs-symbol">headers:</span> headers
  14687. p JSON.parse(result)
  14688. </code></pre>
  14689. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14690. headers = {
  14691. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14692. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14693. }
  14694. r = requests.get(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14695. <span class="hljs-built_in">print</span>(r.json())
  14696. </code></pre>
  14697. <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>);
  14698. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14699. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  14700. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14701. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14702. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14703. String inputLine;
  14704. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14705. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14706. response.append(inputLine);
  14707. }
  14708. in.close();
  14709. System.out.println(response.toString());
  14710. </code></pre>
  14711. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14712. <span class="hljs-keyword">import</span> (
  14713. <span class="hljs-string">&quot;bytes&quot;</span>
  14714. <span class="hljs-string">&quot;net/http&quot;</span>
  14715. )
  14716. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14717. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14718. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14719. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14720. }
  14721. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14722. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14723. req.Header = headers
  14724. client := &amp;http.Client{}
  14725. resp, err := client.Do(req)
  14726. <span class="hljs-comment">// ...</span>
  14727. }
  14728. </code></pre>
  14729. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14730. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14731. );
  14732. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14733. <span class="hljs-comment">// Define array of request body.</span>
  14734. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14735. <span class="hljs-keyword">try</span> {
  14736. <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>(
  14737. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14738. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14739. )
  14740. );
  14741. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14742. }
  14743. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14744. <span class="hljs-comment">// handle exception or api errors.</span>
  14745. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14746. }
  14747. <span class="hljs-comment">// ...</span>
  14748. </code></pre>
  14749. <p><code>GET /api/users</code></p>
  14750. <p><em>return all the users</em></p>
  14751. <p>Only the admin user (the first user) can call the REST API.</p>
  14752. <blockquote>
  14753. <p>Example responses</p>
  14754. </blockquote>
  14755. <blockquote>
  14756. <p>200 Response</p>
  14757. </blockquote>
  14758. <pre class="highlight tab tab-json"><code>[
  14759. {
  14760. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14761. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14762. }
  14763. ]
  14764. </code></pre>
  14765. <h3 id="get_all_users-responses">Responses</h3>
  14766. <table>
  14767. <thead>
  14768. <tr>
  14769. <th>Status</th>
  14770. <th>Meaning</th>
  14771. <th>Description</th>
  14772. <th>Schema</th>
  14773. </tr>
  14774. </thead>
  14775. <tbody>
  14776. <tr>
  14777. <td>200</td>
  14778. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  14779. <td>200 response</td>
  14780. <td>Inline</td>
  14781. </tr>
  14782. </tbody>
  14783. </table>
  14784. <h3 id="get_all_users-responseschema">Response Schema</h3>
  14785. <p>Status Code <strong>200</strong></p>
  14786. <table>
  14787. <thead>
  14788. <tr>
  14789. <th>Name</th>
  14790. <th>Type</th>
  14791. <th>Required</th>
  14792. <th>Restrictions</th>
  14793. <th>Description</th>
  14794. </tr>
  14795. </thead>
  14796. <tbody>
  14797. <tr>
  14798. <td>» _id</td>
  14799. <td>string</td>
  14800. <td>false</td>
  14801. <td>none</td>
  14802. <td>none</td>
  14803. </tr>
  14804. <tr>
  14805. <td>» username</td>
  14806. <td>string</td>
  14807. <td>false</td>
  14808. <td>none</td>
  14809. <td>none</td>
  14810. </tr>
  14811. </tbody>
  14812. </table>
  14813. <aside class="warning">
  14814. To perform this operation, you must be authenticated by means of one of the following methods:
  14815. UserSecurity
  14816. </aside>
  14817. <h2 id="new_user">new_user</h2>
  14818. <p><a id="opIdnew_user"></a></p>
  14819. <blockquote>
  14820. <p>Code samples</p>
  14821. </blockquote>
  14822. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  14823. curl -X POST /api/users \
  14824. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  14825. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  14826. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  14827. </code></pre>
  14828. <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>
  14829. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  14830. Accept: application/json
  14831. </span></code></pre>
  14832. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  14833. &quot;username&quot;: &quot;string&quot;,
  14834. &quot;email&quot;: &quot;string&quot;,
  14835. &quot;password&quot;: &quot;string&quot;
  14836. }&#x27;</span>;
  14837. <span class="hljs-keyword">const</span> headers = {
  14838. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14839. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14840. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14841. };
  14842. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14843. {
  14844. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14845. <span class="hljs-attr">body</span>: inputBody,
  14846. <span class="hljs-attr">headers</span>: headers
  14847. })
  14848. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14849. <span class="hljs-keyword">return</span> res.json();
  14850. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14851. <span class="hljs-built_in">console</span>.log(body);
  14852. });
  14853. </code></pre>
  14854. <pre class="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>);
  14855. <span class="hljs-keyword">const</span> inputBody = {
  14856. <span class="hljs-string">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14857. <span class="hljs-string">&quot;email&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  14858. <span class="hljs-string">&quot;password&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  14859. };
  14860. <span class="hljs-keyword">const</span> headers = {
  14861. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14862. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  14863. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14864. };
  14865. fetch(<span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14866. {
  14867. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  14868. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  14869. <span class="hljs-attr">headers</span>: headers
  14870. })
  14871. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  14872. <span class="hljs-keyword">return</span> res.json();
  14873. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  14874. <span class="hljs-built_in">console</span>.log(body);
  14875. });
  14876. </code></pre>
  14877. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  14878. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  14879. headers = {
  14880. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14881. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14882. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14883. }
  14884. result = RestClient.post <span class="hljs-string">&#x27;/api/users&#x27;</span>,
  14885. <span class="hljs-symbol">params:</span> {
  14886. }, <span class="hljs-symbol">headers:</span> headers
  14887. p JSON.parse(result)
  14888. </code></pre>
  14889. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  14890. headers = {
  14891. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14892. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14893. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  14894. }
  14895. r = requests.post(<span class="hljs-string">&#x27;/api/users&#x27;</span>, headers = headers)
  14896. <span class="hljs-built_in">print</span>(r.json())
  14897. </code></pre>
  14898. <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>);
  14899. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  14900. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  14901. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  14902. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  14903. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  14904. String inputLine;
  14905. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  14906. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  14907. response.append(inputLine);
  14908. }
  14909. in.close();
  14910. System.out.println(response.toString());
  14911. </code></pre>
  14912. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  14913. <span class="hljs-keyword">import</span> (
  14914. <span class="hljs-string">&quot;bytes&quot;</span>
  14915. <span class="hljs-string">&quot;net/http&quot;</span>
  14916. )
  14917. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  14918. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  14919. <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>},
  14920. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  14921. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  14922. }
  14923. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  14924. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/users&quot;</span>, data)
  14925. req.Header = headers
  14926. client := &amp;http.Client{}
  14927. resp, err := client.Do(req)
  14928. <span class="hljs-comment">// ...</span>
  14929. }
  14930. </code></pre>
  14931. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  14932. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  14933. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  14934. );
  14935. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  14936. <span class="hljs-comment">// Define array of request body.</span>
  14937. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  14938. <span class="hljs-keyword">try</span> {
  14939. <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>(
  14940. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  14941. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  14942. )
  14943. );
  14944. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  14945. }
  14946. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  14947. <span class="hljs-comment">// handle exception or api errors.</span>
  14948. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  14949. }
  14950. <span class="hljs-comment">// ...</span>
  14951. </code></pre>
  14952. <p><code>POST /api/users</code></p>
  14953. <p><em>Create a new user</em></p>
  14954. <p>Only the admin user (the first user) can call the REST API.</p>
  14955. <blockquote>
  14956. <p>Body parameter</p>
  14957. </blockquote>
  14958. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">username:</span> <span class="hljs-string">string</span>
  14959. <span class="hljs-attr">email:</span> <span class="hljs-string">string</span>
  14960. <span class="hljs-attr">password:</span> <span class="hljs-string">string</span>
  14961. </code></pre>
  14962. <h3 id="new_user-parameters">Parameters</h3>
  14963. <table>
  14964. <thead>
  14965. <tr>
  14966. <th>Name</th>
  14967. <th>In</th>
  14968. <th>Type</th>
  14969. <th>Required</th>
  14970. <th>Description</th>
  14971. </tr>
  14972. </thead>
  14973. <tbody>
  14974. <tr>
  14975. <td>body</td>
  14976. <td>body</td>
  14977. <td>object</td>
  14978. <td>true</td>
  14979. <td>none</td>
  14980. </tr>
  14981. <tr>
  14982. <td>» username</td>
  14983. <td>body</td>
  14984. <td>string</td>
  14985. <td>true</td>
  14986. <td>the new username</td>
  14987. </tr>
  14988. <tr>
  14989. <td>» email</td>
  14990. <td>body</td>
  14991. <td>string</td>
  14992. <td>true</td>
  14993. <td>the email of the new user</td>
  14994. </tr>
  14995. <tr>
  14996. <td>» password</td>
  14997. <td>body</td>
  14998. <td>string</td>
  14999. <td>true</td>
  15000. <td>the password of the new user</td>
  15001. </tr>
  15002. </tbody>
  15003. </table>
  15004. <blockquote>
  15005. <p>Example responses</p>
  15006. </blockquote>
  15007. <blockquote>
  15008. <p>200 Response</p>
  15009. </blockquote>
  15010. <pre class="highlight tab tab-json"><code>{
  15011. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15012. }
  15013. </code></pre>
  15014. <h3 id="new_user-responses">Responses</h3>
  15015. <table>
  15016. <thead>
  15017. <tr>
  15018. <th>Status</th>
  15019. <th>Meaning</th>
  15020. <th>Description</th>
  15021. <th>Schema</th>
  15022. </tr>
  15023. </thead>
  15024. <tbody>
  15025. <tr>
  15026. <td>200</td>
  15027. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15028. <td>200 response</td>
  15029. <td>Inline</td>
  15030. </tr>
  15031. </tbody>
  15032. </table>
  15033. <h3 id="new_user-responseschema">Response Schema</h3>
  15034. <p>Status Code <strong>200</strong></p>
  15035. <table>
  15036. <thead>
  15037. <tr>
  15038. <th>Name</th>
  15039. <th>Type</th>
  15040. <th>Required</th>
  15041. <th>Restrictions</th>
  15042. <th>Description</th>
  15043. </tr>
  15044. </thead>
  15045. <tbody>
  15046. <tr>
  15047. <td>» _id</td>
  15048. <td>string</td>
  15049. <td>false</td>
  15050. <td>none</td>
  15051. <td>none</td>
  15052. </tr>
  15053. </tbody>
  15054. </table>
  15055. <aside class="warning">
  15056. To perform this operation, you must be authenticated by means of one of the following methods:
  15057. UserSecurity
  15058. </aside>
  15059. <h2 id="get_user">get_user</h2>
  15060. <p><a id="opIdget_user"></a></p>
  15061. <blockquote>
  15062. <p>Code samples</p>
  15063. </blockquote>
  15064. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15065. curl -X GET /api/users/{user} \
  15066. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15067. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15068. </code></pre>
  15069. <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>
  15070. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15071. </span></code></pre>
  15072. <pre class="highlight tab tab-javascript"><code>
  15073. <span class="hljs-keyword">const</span> headers = {
  15074. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15075. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15076. };
  15077. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15078. {
  15079. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15080. <span class="hljs-attr">headers</span>: headers
  15081. })
  15082. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15083. <span class="hljs-keyword">return</span> res.json();
  15084. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15085. <span class="hljs-built_in">console</span>.log(body);
  15086. });
  15087. </code></pre>
  15088. <pre class="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>);
  15089. <span class="hljs-keyword">const</span> headers = {
  15090. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15091. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15092. };
  15093. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15094. {
  15095. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15096. <span class="hljs-attr">headers</span>: headers
  15097. })
  15098. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15099. <span class="hljs-keyword">return</span> res.json();
  15100. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15101. <span class="hljs-built_in">console</span>.log(body);
  15102. });
  15103. </code></pre>
  15104. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15105. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15106. headers = {
  15107. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15108. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15109. }
  15110. result = RestClient.get <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15111. <span class="hljs-symbol">params:</span> {
  15112. }, <span class="hljs-symbol">headers:</span> headers
  15113. p JSON.parse(result)
  15114. </code></pre>
  15115. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15116. headers = {
  15117. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15118. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15119. }
  15120. r = requests.get(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15121. <span class="hljs-built_in">print</span>(r.json())
  15122. </code></pre>
  15123. <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>);
  15124. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15125. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15126. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15127. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15128. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15129. String inputLine;
  15130. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15131. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15132. response.append(inputLine);
  15133. }
  15134. in.close();
  15135. System.out.println(response.toString());
  15136. </code></pre>
  15137. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15138. <span class="hljs-keyword">import</span> (
  15139. <span class="hljs-string">&quot;bytes&quot;</span>
  15140. <span class="hljs-string">&quot;net/http&quot;</span>
  15141. )
  15142. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15143. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15144. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15145. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15146. }
  15147. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15148. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15149. req.Header = headers
  15150. client := &amp;http.Client{}
  15151. resp, err := client.Do(req)
  15152. <span class="hljs-comment">// ...</span>
  15153. }
  15154. </code></pre>
  15155. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15156. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15157. );
  15158. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15159. <span class="hljs-comment">// Define array of request body.</span>
  15160. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15161. <span class="hljs-keyword">try</span> {
  15162. <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>(
  15163. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15164. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15165. )
  15166. );
  15167. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15168. }
  15169. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15170. <span class="hljs-comment">// handle exception or api errors.</span>
  15171. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15172. }
  15173. <span class="hljs-comment">// ...</span>
  15174. </code></pre>
  15175. <p><code>GET /api/users/{user}</code></p>
  15176. <p><em>get a given user</em></p>
  15177. <p>Only the admin user (the first user) can call the REST API.</p>
  15178. <h3 id="get_user-parameters">Parameters</h3>
  15179. <table>
  15180. <thead>
  15181. <tr>
  15182. <th>Name</th>
  15183. <th>In</th>
  15184. <th>Type</th>
  15185. <th>Required</th>
  15186. <th>Description</th>
  15187. </tr>
  15188. </thead>
  15189. <tbody>
  15190. <tr>
  15191. <td>user</td>
  15192. <td>path</td>
  15193. <td>string</td>
  15194. <td>true</td>
  15195. <td>the user ID or username</td>
  15196. </tr>
  15197. </tbody>
  15198. </table>
  15199. <h4 id="detailed-descriptions-45">Detailed descriptions</h4>
  15200. <p><strong>user</strong>: the user ID or username</p>
  15201. <blockquote>
  15202. <p>Example responses</p>
  15203. </blockquote>
  15204. <blockquote>
  15205. <p>200 Response</p>
  15206. </blockquote>
  15207. <pre class="highlight tab tab-json"><code>{
  15208. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15209. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  15210. {
  15211. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15212. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15213. }
  15214. ],
  15215. <span class="hljs-attr">&quot;teams&quot;</span>: [
  15216. {
  15217. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15218. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15219. }
  15220. ],
  15221. <span class="hljs-attr">&quot;emails&quot;</span>: [
  15222. {
  15223. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15224. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  15225. }
  15226. ],
  15227. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15228. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15229. <span class="hljs-attr">&quot;profile&quot;</span>: {
  15230. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15231. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  15232. <span class="hljs-string">&quot;string&quot;</span>
  15233. ],
  15234. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15235. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  15236. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  15237. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  15238. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  15239. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  15240. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  15241. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15242. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  15243. <span class="hljs-string">&quot;string&quot;</span>
  15244. ],
  15245. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15246. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  15247. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  15248. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  15249. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  15250. {
  15251. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15252. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15253. }
  15254. ],
  15255. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  15256. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  15257. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  15258. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  15259. <span class="hljs-string">&quot;string&quot;</span>
  15260. ],
  15261. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15262. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  15263. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  15264. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15265. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15266. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15267. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15268. },
  15269. <span class="hljs-attr">&quot;services&quot;</span>: {},
  15270. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15271. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  15272. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  15273. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  15274. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15275. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  15276. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  15277. },
  15278. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  15279. <span class="hljs-string">&quot;string&quot;</span>
  15280. ]
  15281. }
  15282. </code></pre>
  15283. <h3 id="get_user-responses">Responses</h3>
  15284. <table>
  15285. <thead>
  15286. <tr>
  15287. <th>Status</th>
  15288. <th>Meaning</th>
  15289. <th>Description</th>
  15290. <th>Schema</th>
  15291. </tr>
  15292. </thead>
  15293. <tbody>
  15294. <tr>
  15295. <td>200</td>
  15296. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15297. <td>200 response</td>
  15298. <td><a href="#schemausers">Users</a></td>
  15299. </tr>
  15300. </tbody>
  15301. </table>
  15302. <aside class="warning">
  15303. To perform this operation, you must be authenticated by means of one of the following methods:
  15304. UserSecurity
  15305. </aside>
  15306. <h2 id="edit_user">edit_user</h2>
  15307. <p><a id="opIdedit_user"></a></p>
  15308. <blockquote>
  15309. <p>Code samples</p>
  15310. </blockquote>
  15311. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15312. curl -X PUT /api/users/{user} \
  15313. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15314. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15315. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15316. </code></pre>
  15317. <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>
  15318. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15319. Accept: application/json
  15320. </span></code></pre>
  15321. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15322. &quot;action&quot;: &quot;string&quot;
  15323. }&#x27;</span>;
  15324. <span class="hljs-keyword">const</span> headers = {
  15325. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15326. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15327. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15328. };
  15329. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15330. {
  15331. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  15332. <span class="hljs-attr">body</span>: inputBody,
  15333. <span class="hljs-attr">headers</span>: headers
  15334. })
  15335. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15336. <span class="hljs-keyword">return</span> res.json();
  15337. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15338. <span class="hljs-built_in">console</span>.log(body);
  15339. });
  15340. </code></pre>
  15341. <pre class="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>);
  15342. <span class="hljs-keyword">const</span> inputBody = {
  15343. <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15344. };
  15345. <span class="hljs-keyword">const</span> headers = {
  15346. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15347. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15348. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15349. };
  15350. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15351. {
  15352. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;PUT&#x27;</span>,
  15353. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  15354. <span class="hljs-attr">headers</span>: headers
  15355. })
  15356. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15357. <span class="hljs-keyword">return</span> res.json();
  15358. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15359. <span class="hljs-built_in">console</span>.log(body);
  15360. });
  15361. </code></pre>
  15362. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15363. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15364. headers = {
  15365. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15366. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15367. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15368. }
  15369. result = RestClient.put <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15370. <span class="hljs-symbol">params:</span> {
  15371. }, <span class="hljs-symbol">headers:</span> headers
  15372. p JSON.parse(result)
  15373. </code></pre>
  15374. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15375. headers = {
  15376. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15377. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15378. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15379. }
  15380. r = requests.put(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15381. <span class="hljs-built_in">print</span>(r.json())
  15382. </code></pre>
  15383. <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>);
  15384. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15385. con.setRequestMethod(<span class="hljs-string">&quot;PUT&quot;</span>);
  15386. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15387. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15388. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15389. String inputLine;
  15390. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15391. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15392. response.append(inputLine);
  15393. }
  15394. in.close();
  15395. System.out.println(response.toString());
  15396. </code></pre>
  15397. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15398. <span class="hljs-keyword">import</span> (
  15399. <span class="hljs-string">&quot;bytes&quot;</span>
  15400. <span class="hljs-string">&quot;net/http&quot;</span>
  15401. )
  15402. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15403. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15404. <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>},
  15405. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15406. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15407. }
  15408. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15409. req, err := http.NewRequest(<span class="hljs-string">&quot;PUT&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15410. req.Header = headers
  15411. client := &amp;http.Client{}
  15412. resp, err := client.Do(req)
  15413. <span class="hljs-comment">// ...</span>
  15414. }
  15415. </code></pre>
  15416. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15417. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15418. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15419. );
  15420. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15421. <span class="hljs-comment">// Define array of request body.</span>
  15422. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15423. <span class="hljs-keyword">try</span> {
  15424. <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>(
  15425. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15426. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15427. )
  15428. );
  15429. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15430. }
  15431. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15432. <span class="hljs-comment">// handle exception or api errors.</span>
  15433. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15434. }
  15435. <span class="hljs-comment">// ...</span>
  15436. </code></pre>
  15437. <p><code>PUT /api/users/{user}</code></p>
  15438. <p><em>edit a given user</em></p>
  15439. <p>Only the admin user (the first user) can call the REST API.</p>
  15440. <p>Possible values for <em>action</em>:</p>
  15441. <ul>
  15442. <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>
  15443. <li><code>disableLogin</code>: Disable a user (the user is not allowed to login and his login tokens are purged)</li>
  15444. <li><code>enableLogin</code>: Enable a user</li>
  15445. </ul>
  15446. <blockquote>
  15447. <p>Body parameter</p>
  15448. </blockquote>
  15449. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">action:</span> <span class="hljs-string">string</span>
  15450. </code></pre>
  15451. <h3 id="edit_user-parameters">Parameters</h3>
  15452. <table>
  15453. <thead>
  15454. <tr>
  15455. <th>Name</th>
  15456. <th>In</th>
  15457. <th>Type</th>
  15458. <th>Required</th>
  15459. <th>Description</th>
  15460. </tr>
  15461. </thead>
  15462. <tbody>
  15463. <tr>
  15464. <td>user</td>
  15465. <td>path</td>
  15466. <td>string</td>
  15467. <td>true</td>
  15468. <td>the user ID</td>
  15469. </tr>
  15470. <tr>
  15471. <td>body</td>
  15472. <td>body</td>
  15473. <td>object</td>
  15474. <td>true</td>
  15475. <td>none</td>
  15476. </tr>
  15477. <tr>
  15478. <td>» action</td>
  15479. <td>body</td>
  15480. <td>string</td>
  15481. <td>true</td>
  15482. <td>the action</td>
  15483. </tr>
  15484. </tbody>
  15485. </table>
  15486. <h4 id="detailed-descriptions-46">Detailed descriptions</h4>
  15487. <p><strong>user</strong>: the user ID</p>
  15488. <blockquote>
  15489. <p>Example responses</p>
  15490. </blockquote>
  15491. <blockquote>
  15492. <p>200 Response</p>
  15493. </blockquote>
  15494. <pre class="highlight tab tab-json"><code>{
  15495. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15496. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15497. }
  15498. </code></pre>
  15499. <h3 id="edit_user-responses">Responses</h3>
  15500. <table>
  15501. <thead>
  15502. <tr>
  15503. <th>Status</th>
  15504. <th>Meaning</th>
  15505. <th>Description</th>
  15506. <th>Schema</th>
  15507. </tr>
  15508. </thead>
  15509. <tbody>
  15510. <tr>
  15511. <td>200</td>
  15512. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15513. <td>200 response</td>
  15514. <td>Inline</td>
  15515. </tr>
  15516. </tbody>
  15517. </table>
  15518. <h3 id="edit_user-responseschema">Response Schema</h3>
  15519. <p>Status Code <strong>200</strong></p>
  15520. <table>
  15521. <thead>
  15522. <tr>
  15523. <th>Name</th>
  15524. <th>Type</th>
  15525. <th>Required</th>
  15526. <th>Restrictions</th>
  15527. <th>Description</th>
  15528. </tr>
  15529. </thead>
  15530. <tbody>
  15531. <tr>
  15532. <td>» _id</td>
  15533. <td>string</td>
  15534. <td>false</td>
  15535. <td>none</td>
  15536. <td>none</td>
  15537. </tr>
  15538. <tr>
  15539. <td>» title</td>
  15540. <td>string</td>
  15541. <td>false</td>
  15542. <td>none</td>
  15543. <td>none</td>
  15544. </tr>
  15545. </tbody>
  15546. </table>
  15547. <aside class="warning">
  15548. To perform this operation, you must be authenticated by means of one of the following methods:
  15549. UserSecurity
  15550. </aside>
  15551. <h2 id="delete_user">delete_user</h2>
  15552. <p><a id="opIddelete_user"></a></p>
  15553. <blockquote>
  15554. <p>Code samples</p>
  15555. </blockquote>
  15556. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15557. curl -X DELETE /api/users/{user} \
  15558. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15559. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15560. </code></pre>
  15561. <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>
  15562. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15563. </span></code></pre>
  15564. <pre class="highlight tab tab-javascript"><code>
  15565. <span class="hljs-keyword">const</span> headers = {
  15566. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15567. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15568. };
  15569. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15570. {
  15571. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15572. <span class="hljs-attr">headers</span>: headers
  15573. })
  15574. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15575. <span class="hljs-keyword">return</span> res.json();
  15576. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15577. <span class="hljs-built_in">console</span>.log(body);
  15578. });
  15579. </code></pre>
  15580. <pre class="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>);
  15581. <span class="hljs-keyword">const</span> headers = {
  15582. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15583. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15584. };
  15585. fetch(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15586. {
  15587. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  15588. <span class="hljs-attr">headers</span>: headers
  15589. })
  15590. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15591. <span class="hljs-keyword">return</span> res.json();
  15592. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15593. <span class="hljs-built_in">console</span>.log(body);
  15594. });
  15595. </code></pre>
  15596. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15597. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15598. headers = {
  15599. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15600. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15601. }
  15602. result = RestClient.delete <span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>,
  15603. <span class="hljs-symbol">params:</span> {
  15604. }, <span class="hljs-symbol">headers:</span> headers
  15605. p JSON.parse(result)
  15606. </code></pre>
  15607. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15608. headers = {
  15609. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15610. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15611. }
  15612. r = requests.delete(<span class="hljs-string">&#x27;/api/users/{user}&#x27;</span>, headers = headers)
  15613. <span class="hljs-built_in">print</span>(r.json())
  15614. </code></pre>
  15615. <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>);
  15616. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15617. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  15618. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15619. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15620. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15621. String inputLine;
  15622. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15623. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15624. response.append(inputLine);
  15625. }
  15626. in.close();
  15627. System.out.println(response.toString());
  15628. </code></pre>
  15629. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15630. <span class="hljs-keyword">import</span> (
  15631. <span class="hljs-string">&quot;bytes&quot;</span>
  15632. <span class="hljs-string">&quot;net/http&quot;</span>
  15633. )
  15634. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15635. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15636. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15637. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15638. }
  15639. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15640. req, err := http.NewRequest(<span class="hljs-string">&quot;DELETE&quot;</span>, <span class="hljs-string">&quot;/api/users/{user}&quot;</span>, data)
  15641. req.Header = headers
  15642. client := &amp;http.Client{}
  15643. resp, err := client.Do(req)
  15644. <span class="hljs-comment">// ...</span>
  15645. }
  15646. </code></pre>
  15647. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15648. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15649. );
  15650. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15651. <span class="hljs-comment">// Define array of request body.</span>
  15652. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15653. <span class="hljs-keyword">try</span> {
  15654. <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>(
  15655. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15656. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15657. )
  15658. );
  15659. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15660. }
  15661. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15662. <span class="hljs-comment">// handle exception or api errors.</span>
  15663. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15664. }
  15665. <span class="hljs-comment">// ...</span>
  15666. </code></pre>
  15667. <p><code>DELETE /api/users/{user}</code></p>
  15668. <p><em>Delete a user</em></p>
  15669. <p>Only the admin user (the first user) can call the REST API.</p>
  15670. <h3 id="delete_user-parameters">Parameters</h3>
  15671. <table>
  15672. <thead>
  15673. <tr>
  15674. <th>Name</th>
  15675. <th>In</th>
  15676. <th>Type</th>
  15677. <th>Required</th>
  15678. <th>Description</th>
  15679. </tr>
  15680. </thead>
  15681. <tbody>
  15682. <tr>
  15683. <td>user</td>
  15684. <td>path</td>
  15685. <td>string</td>
  15686. <td>true</td>
  15687. <td>the ID of the user to delete</td>
  15688. </tr>
  15689. </tbody>
  15690. </table>
  15691. <h4 id="detailed-descriptions-47">Detailed descriptions</h4>
  15692. <p><strong>user</strong>: the ID of the user to delete</p>
  15693. <blockquote>
  15694. <p>Example responses</p>
  15695. </blockquote>
  15696. <blockquote>
  15697. <p>200 Response</p>
  15698. </blockquote>
  15699. <pre class="highlight tab tab-json"><code>{
  15700. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15701. }
  15702. </code></pre>
  15703. <h3 id="delete_user-responses">Responses</h3>
  15704. <table>
  15705. <thead>
  15706. <tr>
  15707. <th>Status</th>
  15708. <th>Meaning</th>
  15709. <th>Description</th>
  15710. <th>Schema</th>
  15711. </tr>
  15712. </thead>
  15713. <tbody>
  15714. <tr>
  15715. <td>200</td>
  15716. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15717. <td>200 response</td>
  15718. <td>Inline</td>
  15719. </tr>
  15720. </tbody>
  15721. </table>
  15722. <h3 id="delete_user-responseschema">Response Schema</h3>
  15723. <p>Status Code <strong>200</strong></p>
  15724. <table>
  15725. <thead>
  15726. <tr>
  15727. <th>Name</th>
  15728. <th>Type</th>
  15729. <th>Required</th>
  15730. <th>Restrictions</th>
  15731. <th>Description</th>
  15732. </tr>
  15733. </thead>
  15734. <tbody>
  15735. <tr>
  15736. <td>» _id</td>
  15737. <td>string</td>
  15738. <td>false</td>
  15739. <td>none</td>
  15740. <td>none</td>
  15741. </tr>
  15742. </tbody>
  15743. </table>
  15744. <aside class="warning">
  15745. To perform this operation, you must be authenticated by means of one of the following methods:
  15746. UserSecurity
  15747. </aside>
  15748. <h1 id="wekan-rest-api-swimlanes">Swimlanes</h1>
  15749. <h2 id="get_all_swimlanes">get_all_swimlanes</h2>
  15750. <p><a id="opIdget_all_swimlanes"></a></p>
  15751. <blockquote>
  15752. <p>Code samples</p>
  15753. </blockquote>
  15754. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15755. curl -X GET /api/boards/{board}/swimlanes \
  15756. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15757. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15758. </code></pre>
  15759. <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>
  15760. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  15761. </span></code></pre>
  15762. <pre class="highlight tab tab-javascript"><code>
  15763. <span class="hljs-keyword">const</span> headers = {
  15764. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15765. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15766. };
  15767. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15768. {
  15769. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15770. <span class="hljs-attr">headers</span>: headers
  15771. })
  15772. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15773. <span class="hljs-keyword">return</span> res.json();
  15774. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15775. <span class="hljs-built_in">console</span>.log(body);
  15776. });
  15777. </code></pre>
  15778. <pre class="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>);
  15779. <span class="hljs-keyword">const</span> headers = {
  15780. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15781. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15782. };
  15783. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15784. {
  15785. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  15786. <span class="hljs-attr">headers</span>: headers
  15787. })
  15788. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15789. <span class="hljs-keyword">return</span> res.json();
  15790. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15791. <span class="hljs-built_in">console</span>.log(body);
  15792. });
  15793. </code></pre>
  15794. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  15795. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  15796. headers = {
  15797. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15798. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15799. }
  15800. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15801. <span class="hljs-symbol">params:</span> {
  15802. }, <span class="hljs-symbol">headers:</span> headers
  15803. p JSON.parse(result)
  15804. </code></pre>
  15805. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  15806. headers = {
  15807. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15808. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15809. }
  15810. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  15811. <span class="hljs-built_in">print</span>(r.json())
  15812. </code></pre>
  15813. <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>);
  15814. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  15815. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  15816. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  15817. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  15818. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  15819. String inputLine;
  15820. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  15821. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  15822. response.append(inputLine);
  15823. }
  15824. in.close();
  15825. System.out.println(response.toString());
  15826. </code></pre>
  15827. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  15828. <span class="hljs-keyword">import</span> (
  15829. <span class="hljs-string">&quot;bytes&quot;</span>
  15830. <span class="hljs-string">&quot;net/http&quot;</span>
  15831. )
  15832. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  15833. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  15834. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  15835. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  15836. }
  15837. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  15838. req, err := http.NewRequest(<span class="hljs-string">&quot;GET&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  15839. req.Header = headers
  15840. client := &amp;http.Client{}
  15841. resp, err := client.Do(req)
  15842. <span class="hljs-comment">// ...</span>
  15843. }
  15844. </code></pre>
  15845. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  15846. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  15847. );
  15848. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  15849. <span class="hljs-comment">// Define array of request body.</span>
  15850. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  15851. <span class="hljs-keyword">try</span> {
  15852. <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>(
  15853. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  15854. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  15855. )
  15856. );
  15857. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  15858. }
  15859. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  15860. <span class="hljs-comment">// handle exception or api errors.</span>
  15861. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  15862. }
  15863. <span class="hljs-comment">// ...</span>
  15864. </code></pre>
  15865. <p><code>GET /api/boards/{board}/swimlanes</code></p>
  15866. <p><em>Get the list of swimlanes attached to a board</em></p>
  15867. <h3 id="get_all_swimlanes-parameters">Parameters</h3>
  15868. <table>
  15869. <thead>
  15870. <tr>
  15871. <th>Name</th>
  15872. <th>In</th>
  15873. <th>Type</th>
  15874. <th>Required</th>
  15875. <th>Description</th>
  15876. </tr>
  15877. </thead>
  15878. <tbody>
  15879. <tr>
  15880. <td>board</td>
  15881. <td>path</td>
  15882. <td>string</td>
  15883. <td>true</td>
  15884. <td>the ID of the board</td>
  15885. </tr>
  15886. </tbody>
  15887. </table>
  15888. <h4 id="detailed-descriptions-48">Detailed descriptions</h4>
  15889. <p><strong>board</strong>: the ID of the board</p>
  15890. <blockquote>
  15891. <p>Example responses</p>
  15892. </blockquote>
  15893. <blockquote>
  15894. <p>200 Response</p>
  15895. </blockquote>
  15896. <pre class="highlight tab tab-json"><code>[
  15897. {
  15898. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  15899. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15900. }
  15901. ]
  15902. </code></pre>
  15903. <h3 id="get_all_swimlanes-responses">Responses</h3>
  15904. <table>
  15905. <thead>
  15906. <tr>
  15907. <th>Status</th>
  15908. <th>Meaning</th>
  15909. <th>Description</th>
  15910. <th>Schema</th>
  15911. </tr>
  15912. </thead>
  15913. <tbody>
  15914. <tr>
  15915. <td>200</td>
  15916. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  15917. <td>200 response</td>
  15918. <td>Inline</td>
  15919. </tr>
  15920. </tbody>
  15921. </table>
  15922. <h3 id="get_all_swimlanes-responseschema">Response Schema</h3>
  15923. <p>Status Code <strong>200</strong></p>
  15924. <table>
  15925. <thead>
  15926. <tr>
  15927. <th>Name</th>
  15928. <th>Type</th>
  15929. <th>Required</th>
  15930. <th>Restrictions</th>
  15931. <th>Description</th>
  15932. </tr>
  15933. </thead>
  15934. <tbody>
  15935. <tr>
  15936. <td>» _id</td>
  15937. <td>string</td>
  15938. <td>false</td>
  15939. <td>none</td>
  15940. <td>none</td>
  15941. </tr>
  15942. <tr>
  15943. <td>» title</td>
  15944. <td>string</td>
  15945. <td>false</td>
  15946. <td>none</td>
  15947. <td>none</td>
  15948. </tr>
  15949. </tbody>
  15950. </table>
  15951. <aside class="warning">
  15952. To perform this operation, you must be authenticated by means of one of the following methods:
  15953. UserSecurity
  15954. </aside>
  15955. <h2 id="new_swimlane">new_swimlane</h2>
  15956. <p><a id="opIdnew_swimlane"></a></p>
  15957. <blockquote>
  15958. <p>Code samples</p>
  15959. </blockquote>
  15960. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  15961. curl -X POST /api/boards/{board}/swimlanes \
  15962. -H <span class="hljs-string">&#x27;Content-Type: multipart/form-data&#x27;</span> \
  15963. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  15964. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  15965. </code></pre>
  15966. <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>
  15967. <span class="fortran">Content-<span class="hljs-keyword">Type</span>: multipart/<span class="hljs-keyword">form</span>-<span class="hljs-keyword">data</span>
  15968. Accept: application/json
  15969. </span></code></pre>
  15970. <pre class="highlight tab tab-javascript"><code><span class="hljs-keyword">const</span> inputBody = <span class="hljs-string">&#x27;{
  15971. &quot;title&quot;: &quot;string&quot;
  15972. }&#x27;</span>;
  15973. <span class="hljs-keyword">const</span> headers = {
  15974. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15975. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15976. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15977. };
  15978. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  15979. {
  15980. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  15981. <span class="hljs-attr">body</span>: inputBody,
  15982. <span class="hljs-attr">headers</span>: headers
  15983. })
  15984. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  15985. <span class="hljs-keyword">return</span> res.json();
  15986. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  15987. <span class="hljs-built_in">console</span>.log(body);
  15988. });
  15989. </code></pre>
  15990. <pre class="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>);
  15991. <span class="hljs-keyword">const</span> inputBody = {
  15992. <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  15993. };
  15994. <span class="hljs-keyword">const</span> headers = {
  15995. <span class="hljs-string">&#x27;Content-Type&#x27;</span>:<span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  15996. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  15997. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  15998. };
  15999. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16000. {
  16001. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;POST&#x27;</span>,
  16002. <span class="hljs-attr">body</span>: <span class="hljs-built_in">JSON</span>.stringify(inputBody),
  16003. <span class="hljs-attr">headers</span>: headers
  16004. })
  16005. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16006. <span class="hljs-keyword">return</span> res.json();
  16007. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16008. <span class="hljs-built_in">console</span>.log(body);
  16009. });
  16010. </code></pre>
  16011. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16012. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16013. headers = {
  16014. <span class="hljs-string">&#x27;Content-Type&#x27;</span> =&gt; <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16015. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16016. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16017. }
  16018. result = RestClient.post <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>,
  16019. <span class="hljs-symbol">params:</span> {
  16020. }, <span class="hljs-symbol">headers:</span> headers
  16021. p JSON.parse(result)
  16022. </code></pre>
  16023. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16024. headers = {
  16025. <span class="hljs-string">&#x27;Content-Type&#x27;</span>: <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16026. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16027. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16028. }
  16029. r = requests.post(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes&#x27;</span>, headers = headers)
  16030. <span class="hljs-built_in">print</span>(r.json())
  16031. </code></pre>
  16032. <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>);
  16033. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16034. con.setRequestMethod(<span class="hljs-string">&quot;POST&quot;</span>);
  16035. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16036. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16037. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16038. String inputLine;
  16039. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16040. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16041. response.append(inputLine);
  16042. }
  16043. in.close();
  16044. System.out.println(response.toString());
  16045. </code></pre>
  16046. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16047. <span class="hljs-keyword">import</span> (
  16048. <span class="hljs-string">&quot;bytes&quot;</span>
  16049. <span class="hljs-string">&quot;net/http&quot;</span>
  16050. )
  16051. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16052. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16053. <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>},
  16054. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16055. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16056. }
  16057. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16058. req, err := http.NewRequest(<span class="hljs-string">&quot;POST&quot;</span>, <span class="hljs-string">&quot;/api/boards/{board}/swimlanes&quot;</span>, data)
  16059. req.Header = headers
  16060. client := &amp;http.Client{}
  16061. resp, err := client.Do(req)
  16062. <span class="hljs-comment">// ...</span>
  16063. }
  16064. </code></pre>
  16065. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;multipart/form-data&#x27;</span>,
  16066. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16067. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16068. );
  16069. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16070. <span class="hljs-comment">// Define array of request body.</span>
  16071. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16072. <span class="hljs-keyword">try</span> {
  16073. <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>(
  16074. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16075. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16076. )
  16077. );
  16078. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16079. }
  16080. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16081. <span class="hljs-comment">// handle exception or api errors.</span>
  16082. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16083. }
  16084. <span class="hljs-comment">// ...</span>
  16085. </code></pre>
  16086. <p><code>POST /api/boards/{board}/swimlanes</code></p>
  16087. <p><em>Add a swimlane to a board</em></p>
  16088. <blockquote>
  16089. <p>Body parameter</p>
  16090. </blockquote>
  16091. <pre class="highlight tab tab-yaml"><code><span class="hljs-attr">title:</span> <span class="hljs-string">string</span>
  16092. </code></pre>
  16093. <h3 id="new_swimlane-parameters">Parameters</h3>
  16094. <table>
  16095. <thead>
  16096. <tr>
  16097. <th>Name</th>
  16098. <th>In</th>
  16099. <th>Type</th>
  16100. <th>Required</th>
  16101. <th>Description</th>
  16102. </tr>
  16103. </thead>
  16104. <tbody>
  16105. <tr>
  16106. <td>board</td>
  16107. <td>path</td>
  16108. <td>string</td>
  16109. <td>true</td>
  16110. <td>the ID of the board</td>
  16111. </tr>
  16112. <tr>
  16113. <td>body</td>
  16114. <td>body</td>
  16115. <td>object</td>
  16116. <td>true</td>
  16117. <td>none</td>
  16118. </tr>
  16119. <tr>
  16120. <td>» title</td>
  16121. <td>body</td>
  16122. <td>string</td>
  16123. <td>true</td>
  16124. <td>the new title of the swimlane</td>
  16125. </tr>
  16126. </tbody>
  16127. </table>
  16128. <h4 id="detailed-descriptions-49">Detailed descriptions</h4>
  16129. <p><strong>board</strong>: the ID of the board</p>
  16130. <blockquote>
  16131. <p>Example responses</p>
  16132. </blockquote>
  16133. <blockquote>
  16134. <p>200 Response</p>
  16135. </blockquote>
  16136. <pre class="highlight tab tab-json"><code>{
  16137. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16138. }
  16139. </code></pre>
  16140. <h3 id="new_swimlane-responses">Responses</h3>
  16141. <table>
  16142. <thead>
  16143. <tr>
  16144. <th>Status</th>
  16145. <th>Meaning</th>
  16146. <th>Description</th>
  16147. <th>Schema</th>
  16148. </tr>
  16149. </thead>
  16150. <tbody>
  16151. <tr>
  16152. <td>200</td>
  16153. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16154. <td>200 response</td>
  16155. <td>Inline</td>
  16156. </tr>
  16157. </tbody>
  16158. </table>
  16159. <h3 id="new_swimlane-responseschema">Response Schema</h3>
  16160. <p>Status Code <strong>200</strong></p>
  16161. <table>
  16162. <thead>
  16163. <tr>
  16164. <th>Name</th>
  16165. <th>Type</th>
  16166. <th>Required</th>
  16167. <th>Restrictions</th>
  16168. <th>Description</th>
  16169. </tr>
  16170. </thead>
  16171. <tbody>
  16172. <tr>
  16173. <td>» _id</td>
  16174. <td>string</td>
  16175. <td>false</td>
  16176. <td>none</td>
  16177. <td>none</td>
  16178. </tr>
  16179. </tbody>
  16180. </table>
  16181. <aside class="warning">
  16182. To perform this operation, you must be authenticated by means of one of the following methods:
  16183. UserSecurity
  16184. </aside>
  16185. <h2 id="get_swimlane">get_swimlane</h2>
  16186. <p><a id="opIdget_swimlane"></a></p>
  16187. <blockquote>
  16188. <p>Code samples</p>
  16189. </blockquote>
  16190. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16191. curl -X GET /api/boards/{board}/swimlanes/{swimlane} \
  16192. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16193. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16194. </code></pre>
  16195. <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>
  16196. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  16197. </span></code></pre>
  16198. <pre class="highlight tab tab-javascript"><code>
  16199. <span class="hljs-keyword">const</span> headers = {
  16200. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16201. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16202. };
  16203. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16204. {
  16205. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16206. <span class="hljs-attr">headers</span>: headers
  16207. })
  16208. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16209. <span class="hljs-keyword">return</span> res.json();
  16210. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16211. <span class="hljs-built_in">console</span>.log(body);
  16212. });
  16213. </code></pre>
  16214. <pre class="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>);
  16215. <span class="hljs-keyword">const</span> headers = {
  16216. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16217. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16218. };
  16219. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16220. {
  16221. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;GET&#x27;</span>,
  16222. <span class="hljs-attr">headers</span>: headers
  16223. })
  16224. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16225. <span class="hljs-keyword">return</span> res.json();
  16226. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16227. <span class="hljs-built_in">console</span>.log(body);
  16228. });
  16229. </code></pre>
  16230. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16231. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16232. headers = {
  16233. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16234. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16235. }
  16236. result = RestClient.get <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16237. <span class="hljs-symbol">params:</span> {
  16238. }, <span class="hljs-symbol">headers:</span> headers
  16239. p JSON.parse(result)
  16240. </code></pre>
  16241. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16242. headers = {
  16243. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16244. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16245. }
  16246. r = requests.get(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  16247. <span class="hljs-built_in">print</span>(r.json())
  16248. </code></pre>
  16249. <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>);
  16250. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16251. con.setRequestMethod(<span class="hljs-string">&quot;GET&quot;</span>);
  16252. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16253. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16254. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16255. String inputLine;
  16256. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16257. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16258. response.append(inputLine);
  16259. }
  16260. in.close();
  16261. System.out.println(response.toString());
  16262. </code></pre>
  16263. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16264. <span class="hljs-keyword">import</span> (
  16265. <span class="hljs-string">&quot;bytes&quot;</span>
  16266. <span class="hljs-string">&quot;net/http&quot;</span>
  16267. )
  16268. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16269. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16270. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16271. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16272. }
  16273. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16274. 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)
  16275. req.Header = headers
  16276. client := &amp;http.Client{}
  16277. resp, err := client.Do(req)
  16278. <span class="hljs-comment">// ...</span>
  16279. }
  16280. </code></pre>
  16281. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16282. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16283. );
  16284. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16285. <span class="hljs-comment">// Define array of request body.</span>
  16286. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16287. <span class="hljs-keyword">try</span> {
  16288. <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>(
  16289. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16290. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16291. )
  16292. );
  16293. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16294. }
  16295. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16296. <span class="hljs-comment">// handle exception or api errors.</span>
  16297. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16298. }
  16299. <span class="hljs-comment">// ...</span>
  16300. </code></pre>
  16301. <p><code>GET /api/boards/{board}/swimlanes/{swimlane}</code></p>
  16302. <p><em>Get a swimlane</em></p>
  16303. <h3 id="get_swimlane-parameters">Parameters</h3>
  16304. <table>
  16305. <thead>
  16306. <tr>
  16307. <th>Name</th>
  16308. <th>In</th>
  16309. <th>Type</th>
  16310. <th>Required</th>
  16311. <th>Description</th>
  16312. </tr>
  16313. </thead>
  16314. <tbody>
  16315. <tr>
  16316. <td>board</td>
  16317. <td>path</td>
  16318. <td>string</td>
  16319. <td>true</td>
  16320. <td>the ID of the board</td>
  16321. </tr>
  16322. <tr>
  16323. <td>swimlane</td>
  16324. <td>path</td>
  16325. <td>string</td>
  16326. <td>true</td>
  16327. <td>the ID of the swimlane</td>
  16328. </tr>
  16329. </tbody>
  16330. </table>
  16331. <h4 id="detailed-descriptions-50">Detailed descriptions</h4>
  16332. <p><strong>board</strong>: the ID of the board</p>
  16333. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  16334. <blockquote>
  16335. <p>Example responses</p>
  16336. </blockquote>
  16337. <blockquote>
  16338. <p>200 Response</p>
  16339. </blockquote>
  16340. <pre class="highlight tab tab-json"><code>{
  16341. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16342. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16343. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16344. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16345. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16346. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  16347. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  16348. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16349. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16350. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16351. }
  16352. </code></pre>
  16353. <h3 id="get_swimlane-responses">Responses</h3>
  16354. <table>
  16355. <thead>
  16356. <tr>
  16357. <th>Status</th>
  16358. <th>Meaning</th>
  16359. <th>Description</th>
  16360. <th>Schema</th>
  16361. </tr>
  16362. </thead>
  16363. <tbody>
  16364. <tr>
  16365. <td>200</td>
  16366. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16367. <td>200 response</td>
  16368. <td><a href="#schemaswimlanes">Swimlanes</a></td>
  16369. </tr>
  16370. </tbody>
  16371. </table>
  16372. <aside class="warning">
  16373. To perform this operation, you must be authenticated by means of one of the following methods:
  16374. UserSecurity
  16375. </aside>
  16376. <h2 id="delete_swimlane">delete_swimlane</h2>
  16377. <p><a id="opIddelete_swimlane"></a></p>
  16378. <blockquote>
  16379. <p>Code samples</p>
  16380. </blockquote>
  16381. <pre class="highlight tab tab-shell"><code><span class="hljs-comment"># You can also use wget</span>
  16382. curl -X DELETE /api/boards/{board}/swimlanes/{swimlane} \
  16383. -H <span class="hljs-string">&#x27;Accept: application/json&#x27;</span> \
  16384. -H <span class="hljs-string">&#x27;Authorization: API_KEY&#x27;</span>
  16385. </code></pre>
  16386. <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>
  16387. <span class="ada"><span class="hljs-keyword">Accept</span>: application/json
  16388. </span></code></pre>
  16389. <pre class="highlight tab tab-javascript"><code>
  16390. <span class="hljs-keyword">const</span> headers = {
  16391. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16392. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16393. };
  16394. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16395. {
  16396. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  16397. <span class="hljs-attr">headers</span>: headers
  16398. })
  16399. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16400. <span class="hljs-keyword">return</span> res.json();
  16401. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16402. <span class="hljs-built_in">console</span>.log(body);
  16403. });
  16404. </code></pre>
  16405. <pre class="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>);
  16406. <span class="hljs-keyword">const</span> headers = {
  16407. <span class="hljs-string">&#x27;Accept&#x27;</span>:<span class="hljs-string">&#x27;application/json&#x27;</span>,
  16408. <span class="hljs-string">&#x27;Authorization&#x27;</span>:<span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16409. };
  16410. fetch(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16411. {
  16412. <span class="hljs-attr">method</span>: <span class="hljs-string">&#x27;DELETE&#x27;</span>,
  16413. <span class="hljs-attr">headers</span>: headers
  16414. })
  16415. .then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">res</span>) </span>{
  16416. <span class="hljs-keyword">return</span> res.json();
  16417. }).then(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">body</span>) </span>{
  16418. <span class="hljs-built_in">console</span>.log(body);
  16419. });
  16420. </code></pre>
  16421. <pre class="highlight tab tab-ruby"><code><span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;rest-client&#x27;</span>
  16422. <span class="hljs-keyword">require</span> <span class="hljs-string">&#x27;json&#x27;</span>
  16423. headers = {
  16424. <span class="hljs-string">&#x27;Accept&#x27;</span> =&gt; <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16425. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16426. }
  16427. result = RestClient.delete <span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>,
  16428. <span class="hljs-symbol">params:</span> {
  16429. }, <span class="hljs-symbol">headers:</span> headers
  16430. p JSON.parse(result)
  16431. </code></pre>
  16432. <pre class="highlight tab tab-python"><code><span class="hljs-keyword">import</span> requests
  16433. headers = {
  16434. <span class="hljs-string">&#x27;Accept&#x27;</span>: <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16435. <span class="hljs-string">&#x27;Authorization&#x27;</span>: <span class="hljs-string">&#x27;API_KEY&#x27;</span>
  16436. }
  16437. r = requests.delete(<span class="hljs-string">&#x27;/api/boards/{board}/swimlanes/{swimlane}&#x27;</span>, headers = headers)
  16438. <span class="hljs-built_in">print</span>(r.json())
  16439. </code></pre>
  16440. <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>);
  16441. HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  16442. con.setRequestMethod(<span class="hljs-string">&quot;DELETE&quot;</span>);
  16443. <span class="hljs-keyword">int</span> responseCode = con.getResponseCode();
  16444. BufferedReader in = <span class="hljs-keyword">new</span> BufferedReader(
  16445. <span class="hljs-keyword">new</span> InputStreamReader(con.getInputStream()));
  16446. String inputLine;
  16447. StringBuffer response = <span class="hljs-keyword">new</span> StringBuffer();
  16448. <span class="hljs-keyword">while</span> ((inputLine = in.readLine()) != <span class="hljs-keyword">null</span>) {
  16449. response.append(inputLine);
  16450. }
  16451. in.close();
  16452. System.out.println(response.toString());
  16453. </code></pre>
  16454. <pre class="highlight tab tab-go"><code><span class="hljs-keyword">package</span> main
  16455. <span class="hljs-keyword">import</span> (
  16456. <span class="hljs-string">&quot;bytes&quot;</span>
  16457. <span class="hljs-string">&quot;net/http&quot;</span>
  16458. )
  16459. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">main</span><span class="hljs-params">()</span></span> {
  16460. headers := <span class="hljs-keyword">map</span>[<span class="hljs-keyword">string</span>][]<span class="hljs-keyword">string</span>{
  16461. <span class="hljs-string">&quot;Accept&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;application/json&quot;</span>},
  16462. <span class="hljs-string">&quot;Authorization&quot;</span>: []<span class="hljs-keyword">string</span>{<span class="hljs-string">&quot;API_KEY&quot;</span>},
  16463. }
  16464. data := bytes.NewBuffer([]<span class="hljs-keyword">byte</span>{jsonReq})
  16465. 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)
  16466. req.Header = headers
  16467. client := &amp;http.Client{}
  16468. resp, err := client.Do(req)
  16469. <span class="hljs-comment">// ...</span>
  16470. }
  16471. </code></pre>
  16472. <pre class="highlight tab tab-php"><code> <span class="hljs-string">&#x27;application/json&#x27;</span>,
  16473. <span class="hljs-string">&#x27;Authorization&#x27;</span> =&gt; <span class="hljs-string">&#x27;API_KEY&#x27;</span>,
  16474. );
  16475. <span class="hljs-variable">$client</span> = <span class="hljs-keyword">new</span> \GuzzleHttp\Client();
  16476. <span class="hljs-comment">// Define array of request body.</span>
  16477. <span class="hljs-variable">$request_body</span> = <span class="hljs-keyword">array</span>();
  16478. <span class="hljs-keyword">try</span> {
  16479. <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>(
  16480. <span class="hljs-string">&#x27;headers&#x27;</span> =&gt; <span class="hljs-variable">$headers</span>,
  16481. <span class="hljs-string">&#x27;json&#x27;</span> =&gt; <span class="hljs-variable">$request_body</span>,
  16482. )
  16483. );
  16484. print_r(<span class="hljs-variable">$response</span>-&gt;getBody()-&gt;getContents());
  16485. }
  16486. <span class="hljs-keyword">catch</span> (\GuzzleHttp\<span class="hljs-built_in">Exception</span>\BadResponseException <span class="hljs-variable">$e</span>) {
  16487. <span class="hljs-comment">// handle exception or api errors.</span>
  16488. print_r(<span class="hljs-variable">$e</span>-&gt;getMessage());
  16489. }
  16490. <span class="hljs-comment">// ...</span>
  16491. </code></pre>
  16492. <p><code>DELETE /api/boards/{board}/swimlanes/{swimlane}</code></p>
  16493. <p><em>Delete a swimlane</em></p>
  16494. <p>The swimlane will be deleted, not moved to the recycle bin</p>
  16495. <h3 id="delete_swimlane-parameters">Parameters</h3>
  16496. <table>
  16497. <thead>
  16498. <tr>
  16499. <th>Name</th>
  16500. <th>In</th>
  16501. <th>Type</th>
  16502. <th>Required</th>
  16503. <th>Description</th>
  16504. </tr>
  16505. </thead>
  16506. <tbody>
  16507. <tr>
  16508. <td>board</td>
  16509. <td>path</td>
  16510. <td>string</td>
  16511. <td>true</td>
  16512. <td>the ID of the board</td>
  16513. </tr>
  16514. <tr>
  16515. <td>swimlane</td>
  16516. <td>path</td>
  16517. <td>string</td>
  16518. <td>true</td>
  16519. <td>the ID of the swimlane</td>
  16520. </tr>
  16521. </tbody>
  16522. </table>
  16523. <h4 id="detailed-descriptions-51">Detailed descriptions</h4>
  16524. <p><strong>board</strong>: the ID of the board</p>
  16525. <p><strong>swimlane</strong>: the ID of the swimlane</p>
  16526. <blockquote>
  16527. <p>Example responses</p>
  16528. </blockquote>
  16529. <blockquote>
  16530. <p>200 Response</p>
  16531. </blockquote>
  16532. <pre class="highlight tab tab-json"><code>{
  16533. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  16534. }
  16535. </code></pre>
  16536. <h3 id="delete_swimlane-responses">Responses</h3>
  16537. <table>
  16538. <thead>
  16539. <tr>
  16540. <th>Status</th>
  16541. <th>Meaning</th>
  16542. <th>Description</th>
  16543. <th>Schema</th>
  16544. </tr>
  16545. </thead>
  16546. <tbody>
  16547. <tr>
  16548. <td>200</td>
  16549. <td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td>
  16550. <td>200 response</td>
  16551. <td>Inline</td>
  16552. </tr>
  16553. </tbody>
  16554. </table>
  16555. <h3 id="delete_swimlane-responseschema">Response Schema</h3>
  16556. <p>Status Code <strong>200</strong></p>
  16557. <table>
  16558. <thead>
  16559. <tr>
  16560. <th>Name</th>
  16561. <th>Type</th>
  16562. <th>Required</th>
  16563. <th>Restrictions</th>
  16564. <th>Description</th>
  16565. </tr>
  16566. </thead>
  16567. <tbody>
  16568. <tr>
  16569. <td>» _id</td>
  16570. <td>string</td>
  16571. <td>false</td>
  16572. <td>none</td>
  16573. <td>none</td>
  16574. </tr>
  16575. </tbody>
  16576. </table>
  16577. <aside class="warning">
  16578. To perform this operation, you must be authenticated by means of one of the following methods:
  16579. UserSecurity
  16580. </aside>
  16581. <h1 id="schemas">Schemas</h1>
  16582. <h2 id="tocs_boards">Boards</h2>
  16583. <p><a id="schemaboards"></a>
  16584. <a id="schema_Boards"></a>
  16585. <a id="tocSboards"></a>
  16586. <a id="tocsboards"></a></p>
  16587. <pre class="highlight tab tab-json"><code>{
  16588. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16589. <span class="hljs-attr">&quot;slug&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16590. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  16591. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16592. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16593. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16594. <span class="hljs-attr">&quot;stars&quot;</span>: <span class="hljs-number">0</span>,
  16595. <span class="hljs-attr">&quot;labels&quot;</span>: [
  16596. {
  16597. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16598. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16599. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  16600. }
  16601. ],
  16602. <span class="hljs-attr">&quot;members&quot;</span>: [
  16603. {
  16604. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16605. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  16606. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  16607. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  16608. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  16609. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  16610. }
  16611. ],
  16612. <span class="hljs-attr">&quot;permission&quot;</span>: <span class="hljs-string">&quot;public&quot;</span>,
  16613. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  16614. {
  16615. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16616. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16617. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16618. }
  16619. ],
  16620. <span class="hljs-attr">&quot;teams&quot;</span>: [
  16621. {
  16622. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16623. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16624. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  16625. }
  16626. ],
  16627. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;belize&quot;</span>,
  16628. <span class="hljs-attr">&quot;allowsCardCounterList&quot;</span>: <span class="hljs-literal">true</span>,
  16629. <span class="hljs-attr">&quot;allowsBoardMemberList&quot;</span>: <span class="hljs-literal">true</span>,
  16630. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16631. <span class="hljs-attr">&quot;subtasksDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16632. <span class="hljs-attr">&quot;subtasksDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16633. <span class="hljs-attr">&quot;dateSettingsDefaultBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16634. <span class="hljs-attr">&quot;dateSettingsDefaultListId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16635. <span class="hljs-attr">&quot;allowsSubtasks&quot;</span>: <span class="hljs-literal">true</span>,
  16636. <span class="hljs-attr">&quot;allowsAttachments&quot;</span>: <span class="hljs-literal">true</span>,
  16637. <span class="hljs-attr">&quot;allowsChecklists&quot;</span>: <span class="hljs-literal">true</span>,
  16638. <span class="hljs-attr">&quot;allowsComments&quot;</span>: <span class="hljs-literal">true</span>,
  16639. <span class="hljs-attr">&quot;allowsDescriptionTitle&quot;</span>: <span class="hljs-literal">true</span>,
  16640. <span class="hljs-attr">&quot;allowsDescriptionText&quot;</span>: <span class="hljs-literal">true</span>,
  16641. <span class="hljs-attr">&quot;allowsDescriptionTextOnMinicard&quot;</span>: <span class="hljs-literal">true</span>,
  16642. <span class="hljs-attr">&quot;allowsCardNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16643. <span class="hljs-attr">&quot;allowsActivities&quot;</span>: <span class="hljs-literal">true</span>,
  16644. <span class="hljs-attr">&quot;allowsLabels&quot;</span>: <span class="hljs-literal">true</span>,
  16645. <span class="hljs-attr">&quot;allowsCreator&quot;</span>: <span class="hljs-literal">true</span>,
  16646. <span class="hljs-attr">&quot;allowsAssignee&quot;</span>: <span class="hljs-literal">true</span>,
  16647. <span class="hljs-attr">&quot;allowsMembers&quot;</span>: <span class="hljs-literal">true</span>,
  16648. <span class="hljs-attr">&quot;allowsRequestedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16649. <span class="hljs-attr">&quot;allowsCardSortingByNumber&quot;</span>: <span class="hljs-literal">true</span>,
  16650. <span class="hljs-attr">&quot;allowsShowLists&quot;</span>: <span class="hljs-literal">true</span>,
  16651. <span class="hljs-attr">&quot;allowsAssignedBy&quot;</span>: <span class="hljs-literal">true</span>,
  16652. <span class="hljs-attr">&quot;allowsReceivedDate&quot;</span>: <span class="hljs-literal">true</span>,
  16653. <span class="hljs-attr">&quot;allowsStartDate&quot;</span>: <span class="hljs-literal">true</span>,
  16654. <span class="hljs-attr">&quot;allowsEndDate&quot;</span>: <span class="hljs-literal">true</span>,
  16655. <span class="hljs-attr">&quot;allowsDueDate&quot;</span>: <span class="hljs-literal">true</span>,
  16656. <span class="hljs-attr">&quot;presentParentTask&quot;</span>: <span class="hljs-string">&quot;prefix-with-full-path&quot;</span>,
  16657. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16658. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16659. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16660. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  16661. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  16662. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  16663. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;board&quot;</span>,
  16664. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  16665. }
  16666. </code></pre>
  16667. <p>This is a Board.</p>
  16668. <h3 id="properties">Properties</h3>
  16669. <table>
  16670. <thead>
  16671. <tr>
  16672. <th>Name</th>
  16673. <th>Type</th>
  16674. <th>Required</th>
  16675. <th>Restrictions</th>
  16676. <th>Description</th>
  16677. </tr>
  16678. </thead>
  16679. <tbody>
  16680. <tr>
  16681. <td>title</td>
  16682. <td>string</td>
  16683. <td>true</td>
  16684. <td>none</td>
  16685. <td>The title of the board</td>
  16686. </tr>
  16687. <tr>
  16688. <td>slug</td>
  16689. <td>string</td>
  16690. <td>true</td>
  16691. <td>none</td>
  16692. <td>The title slugified.</td>
  16693. </tr>
  16694. <tr>
  16695. <td>archived</td>
  16696. <td>boolean</td>
  16697. <td>true</td>
  16698. <td>none</td>
  16699. <td>Is the board archived?</td>
  16700. </tr>
  16701. <tr>
  16702. <td>archivedAt</td>
  16703. <td>string¦null</td>
  16704. <td>false</td>
  16705. <td>none</td>
  16706. <td>Latest archiving time of the board</td>
  16707. </tr>
  16708. <tr>
  16709. <td>createdAt</td>
  16710. <td>string</td>
  16711. <td>true</td>
  16712. <td>none</td>
  16713. <td>Creation time of the board</td>
  16714. </tr>
  16715. <tr>
  16716. <td>modifiedAt</td>
  16717. <td>string¦null</td>
  16718. <td>false</td>
  16719. <td>none</td>
  16720. <td>Last modification time of the board</td>
  16721. </tr>
  16722. <tr>
  16723. <td>stars</td>
  16724. <td>number</td>
  16725. <td>true</td>
  16726. <td>none</td>
  16727. <td>How many stars the board has</td>
  16728. </tr>
  16729. <tr>
  16730. <td>labels</td>
  16731. <td>[<a href="#schemaboardslabels">BoardsLabels</a>]¦null</td>
  16732. <td>false</td>
  16733. <td>none</td>
  16734. <td>List of labels attached to a board</td>
  16735. </tr>
  16736. <tr>
  16737. <td>members</td>
  16738. <td>[<a href="#schemaboardsmembers">BoardsMembers</a>]</td>
  16739. <td>true</td>
  16740. <td>none</td>
  16741. <td>List of members of a board</td>
  16742. </tr>
  16743. <tr>
  16744. <td>permission</td>
  16745. <td>string</td>
  16746. <td>true</td>
  16747. <td>none</td>
  16748. <td>visibility of the board</td>
  16749. </tr>
  16750. <tr>
  16751. <td>orgs</td>
  16752. <td>[<a href="#schemaboardsorgs">BoardsOrgs</a>]¦null</td>
  16753. <td>false</td>
  16754. <td>none</td>
  16755. <td>the list of organizations that a board belongs to</td>
  16756. </tr>
  16757. <tr>
  16758. <td>teams</td>
  16759. <td>[<a href="#schemaboardsteams">BoardsTeams</a>]¦null</td>
  16760. <td>false</td>
  16761. <td>none</td>
  16762. <td>the list of teams that a board belongs to</td>
  16763. </tr>
  16764. <tr>
  16765. <td>color</td>
  16766. <td>string</td>
  16767. <td>true</td>
  16768. <td>none</td>
  16769. <td>The color of the board.</td>
  16770. </tr>
  16771. <tr>
  16772. <td>allowsCardCounterList</td>
  16773. <td>boolean</td>
  16774. <td>true</td>
  16775. <td>none</td>
  16776. <td>Show card counter per list</td>
  16777. </tr>
  16778. <tr>
  16779. <td>allowsBoardMemberList</td>
  16780. <td>boolean</td>
  16781. <td>true</td>
  16782. <td>none</td>
  16783. <td>Show board member list</td>
  16784. </tr>
  16785. <tr>
  16786. <td>description</td>
  16787. <td>string¦null</td>
  16788. <td>false</td>
  16789. <td>none</td>
  16790. <td>The description of the board</td>
  16791. </tr>
  16792. <tr>
  16793. <td>subtasksDefaultBoardId</td>
  16794. <td>string¦null</td>
  16795. <td>false</td>
  16796. <td>none</td>
  16797. <td>The default board ID assigned to subtasks.</td>
  16798. </tr>
  16799. <tr>
  16800. <td>subtasksDefaultListId</td>
  16801. <td>string¦null</td>
  16802. <td>false</td>
  16803. <td>none</td>
  16804. <td>The default List ID assigned to subtasks.</td>
  16805. </tr>
  16806. <tr>
  16807. <td>dateSettingsDefaultBoardId</td>
  16808. <td>string¦null</td>
  16809. <td>false</td>
  16810. <td>none</td>
  16811. <td>none</td>
  16812. </tr>
  16813. <tr>
  16814. <td>dateSettingsDefaultListId</td>
  16815. <td>string¦null</td>
  16816. <td>false</td>
  16817. <td>none</td>
  16818. <td>none</td>
  16819. </tr>
  16820. <tr>
  16821. <td>allowsSubtasks</td>
  16822. <td>boolean</td>
  16823. <td>true</td>
  16824. <td>none</td>
  16825. <td>Does the board allows subtasks?</td>
  16826. </tr>
  16827. <tr>
  16828. <td>allowsAttachments</td>
  16829. <td>boolean</td>
  16830. <td>true</td>
  16831. <td>none</td>
  16832. <td>Does the board allows attachments?</td>
  16833. </tr>
  16834. <tr>
  16835. <td>allowsChecklists</td>
  16836. <td>boolean</td>
  16837. <td>true</td>
  16838. <td>none</td>
  16839. <td>Does the board allows checklists?</td>
  16840. </tr>
  16841. <tr>
  16842. <td>allowsComments</td>
  16843. <td>boolean</td>
  16844. <td>true</td>
  16845. <td>none</td>
  16846. <td>Does the board allows comments?</td>
  16847. </tr>
  16848. <tr>
  16849. <td>allowsDescriptionTitle</td>
  16850. <td>boolean</td>
  16851. <td>true</td>
  16852. <td>none</td>
  16853. <td>Does the board allows description title?</td>
  16854. </tr>
  16855. <tr>
  16856. <td>allowsDescriptionText</td>
  16857. <td>boolean</td>
  16858. <td>true</td>
  16859. <td>none</td>
  16860. <td>Does the board allows description text?</td>
  16861. </tr>
  16862. <tr>
  16863. <td>allowsDescriptionTextOnMinicard</td>
  16864. <td>boolean</td>
  16865. <td>true</td>
  16866. <td>none</td>
  16867. <td>Does the board allows description text on minicard?</td>
  16868. </tr>
  16869. <tr>
  16870. <td>allowsCardNumber</td>
  16871. <td>boolean</td>
  16872. <td>true</td>
  16873. <td>none</td>
  16874. <td>Does the board allows card numbers?</td>
  16875. </tr>
  16876. <tr>
  16877. <td>allowsActivities</td>
  16878. <td>boolean</td>
  16879. <td>true</td>
  16880. <td>none</td>
  16881. <td>Does the board allows comments?</td>
  16882. </tr>
  16883. <tr>
  16884. <td>allowsLabels</td>
  16885. <td>boolean</td>
  16886. <td>true</td>
  16887. <td>none</td>
  16888. <td>Does the board allows labels?</td>
  16889. </tr>
  16890. <tr>
  16891. <td>allowsCreator</td>
  16892. <td>boolean</td>
  16893. <td>true</td>
  16894. <td>none</td>
  16895. <td>Does the board allow creator?</td>
  16896. </tr>
  16897. <tr>
  16898. <td>allowsAssignee</td>
  16899. <td>boolean</td>
  16900. <td>true</td>
  16901. <td>none</td>
  16902. <td>Does the board allows assignee?</td>
  16903. </tr>
  16904. <tr>
  16905. <td>allowsMembers</td>
  16906. <td>boolean</td>
  16907. <td>true</td>
  16908. <td>none</td>
  16909. <td>Does the board allows members?</td>
  16910. </tr>
  16911. <tr>
  16912. <td>allowsRequestedBy</td>
  16913. <td>boolean</td>
  16914. <td>true</td>
  16915. <td>none</td>
  16916. <td>Does the board allows requested by?</td>
  16917. </tr>
  16918. <tr>
  16919. <td>allowsCardSortingByNumber</td>
  16920. <td>boolean</td>
  16921. <td>true</td>
  16922. <td>none</td>
  16923. <td>Does the board allows card sorting by number?</td>
  16924. </tr>
  16925. <tr>
  16926. <td>allowsShowLists</td>
  16927. <td>boolean</td>
  16928. <td>true</td>
  16929. <td>none</td>
  16930. <td>Does the board allows show lists on the card?</td>
  16931. </tr>
  16932. <tr>
  16933. <td>allowsAssignedBy</td>
  16934. <td>boolean</td>
  16935. <td>true</td>
  16936. <td>none</td>
  16937. <td>Does the board allows requested by?</td>
  16938. </tr>
  16939. <tr>
  16940. <td>allowsReceivedDate</td>
  16941. <td>boolean</td>
  16942. <td>true</td>
  16943. <td>none</td>
  16944. <td>Does the board allows received date?</td>
  16945. </tr>
  16946. <tr>
  16947. <td>allowsStartDate</td>
  16948. <td>boolean</td>
  16949. <td>true</td>
  16950. <td>none</td>
  16951. <td>Does the board allows start date?</td>
  16952. </tr>
  16953. <tr>
  16954. <td>allowsEndDate</td>
  16955. <td>boolean</td>
  16956. <td>true</td>
  16957. <td>none</td>
  16958. <td>Does the board allows end date?</td>
  16959. </tr>
  16960. <tr>
  16961. <td>allowsDueDate</td>
  16962. <td>boolean</td>
  16963. <td>true</td>
  16964. <td>none</td>
  16965. <td>Does the board allows due date?</td>
  16966. </tr>
  16967. <tr>
  16968. <td>presentParentTask</td>
  16969. <td>string¦null</td>
  16970. <td>false</td>
  16971. <td>none</td>
  16972. <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>
  16973. </tr>
  16974. <tr>
  16975. <td>receivedAt</td>
  16976. <td>string¦null</td>
  16977. <td>false</td>
  16978. <td>none</td>
  16979. <td>Date the card was received</td>
  16980. </tr>
  16981. <tr>
  16982. <td>startAt</td>
  16983. <td>string¦null</td>
  16984. <td>false</td>
  16985. <td>none</td>
  16986. <td>Starting date of the board.</td>
  16987. </tr>
  16988. <tr>
  16989. <td>dueAt</td>
  16990. <td>string¦null</td>
  16991. <td>false</td>
  16992. <td>none</td>
  16993. <td>Due date of the board.</td>
  16994. </tr>
  16995. <tr>
  16996. <td>endAt</td>
  16997. <td>string¦null</td>
  16998. <td>false</td>
  16999. <td>none</td>
  17000. <td>End date of the board.</td>
  17001. </tr>
  17002. <tr>
  17003. <td>spentTime</td>
  17004. <td>number¦null</td>
  17005. <td>false</td>
  17006. <td>none</td>
  17007. <td>Time spent in the board.</td>
  17008. </tr>
  17009. <tr>
  17010. <td>isOvertime</td>
  17011. <td>boolean¦null</td>
  17012. <td>false</td>
  17013. <td>none</td>
  17014. <td>Is the board overtimed?</td>
  17015. </tr>
  17016. <tr>
  17017. <td>type</td>
  17018. <td>string</td>
  17019. <td>true</td>
  17020. <td>none</td>
  17021. <td>The type of board<br />possible values: board, template-board, template-container</td>
  17022. </tr>
  17023. <tr>
  17024. <td>sort</td>
  17025. <td>number</td>
  17026. <td>true</td>
  17027. <td>none</td>
  17028. <td>Sort value</td>
  17029. </tr>
  17030. </tbody>
  17031. </table>
  17032. <h4 id="enumerated-values">Enumerated Values</h4>
  17033. <table>
  17034. <thead>
  17035. <tr>
  17036. <th>Property</th>
  17037. <th>Value</th>
  17038. </tr>
  17039. </thead>
  17040. <tbody>
  17041. <tr>
  17042. <td>permission</td>
  17043. <td>public</td>
  17044. </tr>
  17045. <tr>
  17046. <td>permission</td>
  17047. <td>private</td>
  17048. </tr>
  17049. <tr>
  17050. <td>color</td>
  17051. <td>belize</td>
  17052. </tr>
  17053. <tr>
  17054. <td>color</td>
  17055. <td>nephritis</td>
  17056. </tr>
  17057. <tr>
  17058. <td>color</td>
  17059. <td>pomegranate</td>
  17060. </tr>
  17061. <tr>
  17062. <td>color</td>
  17063. <td>pumpkin</td>
  17064. </tr>
  17065. <tr>
  17066. <td>color</td>
  17067. <td>wisteria</td>
  17068. </tr>
  17069. <tr>
  17070. <td>color</td>
  17071. <td>moderatepink</td>
  17072. </tr>
  17073. <tr>
  17074. <td>color</td>
  17075. <td>strongcyan</td>
  17076. </tr>
  17077. <tr>
  17078. <td>color</td>
  17079. <td>limegreen</td>
  17080. </tr>
  17081. <tr>
  17082. <td>color</td>
  17083. <td>midnight</td>
  17084. </tr>
  17085. <tr>
  17086. <td>color</td>
  17087. <td>dark</td>
  17088. </tr>
  17089. <tr>
  17090. <td>color</td>
  17091. <td>relax</td>
  17092. </tr>
  17093. <tr>
  17094. <td>color</td>
  17095. <td>corteza</td>
  17096. </tr>
  17097. <tr>
  17098. <td>color</td>
  17099. <td>clearblue</td>
  17100. </tr>
  17101. <tr>
  17102. <td>color</td>
  17103. <td>natural</td>
  17104. </tr>
  17105. <tr>
  17106. <td>color</td>
  17107. <td>modern</td>
  17108. </tr>
  17109. <tr>
  17110. <td>color</td>
  17111. <td>moderndark</td>
  17112. </tr>
  17113. <tr>
  17114. <td>color</td>
  17115. <td>exodark</td>
  17116. </tr>
  17117. <tr>
  17118. <td>presentParentTask</td>
  17119. <td>prefix-with-full-path</td>
  17120. </tr>
  17121. <tr>
  17122. <td>presentParentTask</td>
  17123. <td>prefix-with-parent</td>
  17124. </tr>
  17125. <tr>
  17126. <td>presentParentTask</td>
  17127. <td>subtext-with-full-path</td>
  17128. </tr>
  17129. <tr>
  17130. <td>presentParentTask</td>
  17131. <td>subtext-with-parent</td>
  17132. </tr>
  17133. <tr>
  17134. <td>presentParentTask</td>
  17135. <td>no-parent</td>
  17136. </tr>
  17137. <tr>
  17138. <td>type</td>
  17139. <td>board</td>
  17140. </tr>
  17141. <tr>
  17142. <td>type</td>
  17143. <td>template-board</td>
  17144. </tr>
  17145. <tr>
  17146. <td>type</td>
  17147. <td>template-container</td>
  17148. </tr>
  17149. </tbody>
  17150. </table>
  17151. <h2 id="tocs_boardslabels">BoardsLabels</h2>
  17152. <p><a id="schemaboardslabels"></a>
  17153. <a id="schema_BoardsLabels"></a>
  17154. <a id="tocSboardslabels"></a>
  17155. <a id="tocsboardslabels"></a></p>
  17156. <pre class="highlight tab tab-json"><code>{
  17157. <span class="hljs-attr">&quot;_id&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17158. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17159. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>
  17160. }
  17161. </code></pre>
  17162. <h3 id="properties-2">Properties</h3>
  17163. <table>
  17164. <thead>
  17165. <tr>
  17166. <th>Name</th>
  17167. <th>Type</th>
  17168. <th>Required</th>
  17169. <th>Restrictions</th>
  17170. <th>Description</th>
  17171. </tr>
  17172. </thead>
  17173. <tbody>
  17174. <tr>
  17175. <td>_id</td>
  17176. <td>string</td>
  17177. <td>true</td>
  17178. <td>none</td>
  17179. <td>Unique id of a label</td>
  17180. </tr>
  17181. <tr>
  17182. <td>name</td>
  17183. <td>string</td>
  17184. <td>false</td>
  17185. <td>none</td>
  17186. <td>Name of a label</td>
  17187. </tr>
  17188. <tr>
  17189. <td>color</td>
  17190. <td>string</td>
  17191. <td>true</td>
  17192. <td>none</td>
  17193. <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>
  17194. </tr>
  17195. </tbody>
  17196. </table>
  17197. <h4 id="enumerated-values-2">Enumerated Values</h4>
  17198. <table>
  17199. <thead>
  17200. <tr>
  17201. <th>Property</th>
  17202. <th>Value</th>
  17203. </tr>
  17204. </thead>
  17205. <tbody>
  17206. <tr>
  17207. <td>color</td>
  17208. <td>white</td>
  17209. </tr>
  17210. <tr>
  17211. <td>color</td>
  17212. <td>green</td>
  17213. </tr>
  17214. <tr>
  17215. <td>color</td>
  17216. <td>yellow</td>
  17217. </tr>
  17218. <tr>
  17219. <td>color</td>
  17220. <td>orange</td>
  17221. </tr>
  17222. <tr>
  17223. <td>color</td>
  17224. <td>red</td>
  17225. </tr>
  17226. <tr>
  17227. <td>color</td>
  17228. <td>purple</td>
  17229. </tr>
  17230. <tr>
  17231. <td>color</td>
  17232. <td>blue</td>
  17233. </tr>
  17234. <tr>
  17235. <td>color</td>
  17236. <td>sky</td>
  17237. </tr>
  17238. <tr>
  17239. <td>color</td>
  17240. <td>lime</td>
  17241. </tr>
  17242. <tr>
  17243. <td>color</td>
  17244. <td>pink</td>
  17245. </tr>
  17246. <tr>
  17247. <td>color</td>
  17248. <td>black</td>
  17249. </tr>
  17250. <tr>
  17251. <td>color</td>
  17252. <td>silver</td>
  17253. </tr>
  17254. <tr>
  17255. <td>color</td>
  17256. <td>peachpuff</td>
  17257. </tr>
  17258. <tr>
  17259. <td>color</td>
  17260. <td>crimson</td>
  17261. </tr>
  17262. <tr>
  17263. <td>color</td>
  17264. <td>plum</td>
  17265. </tr>
  17266. <tr>
  17267. <td>color</td>
  17268. <td>darkgreen</td>
  17269. </tr>
  17270. <tr>
  17271. <td>color</td>
  17272. <td>slateblue</td>
  17273. </tr>
  17274. <tr>
  17275. <td>color</td>
  17276. <td>magenta</td>
  17277. </tr>
  17278. <tr>
  17279. <td>color</td>
  17280. <td>gold</td>
  17281. </tr>
  17282. <tr>
  17283. <td>color</td>
  17284. <td>navy</td>
  17285. </tr>
  17286. <tr>
  17287. <td>color</td>
  17288. <td>gray</td>
  17289. </tr>
  17290. <tr>
  17291. <td>color</td>
  17292. <td>saddlebrown</td>
  17293. </tr>
  17294. <tr>
  17295. <td>color</td>
  17296. <td>paleturquoise</td>
  17297. </tr>
  17298. <tr>
  17299. <td>color</td>
  17300. <td>mistyrose</td>
  17301. </tr>
  17302. <tr>
  17303. <td>color</td>
  17304. <td>indigo</td>
  17305. </tr>
  17306. </tbody>
  17307. </table>
  17308. <h2 id="tocs_boardsmembers">BoardsMembers</h2>
  17309. <p><a id="schemaboardsmembers"></a>
  17310. <a id="schema_BoardsMembers"></a>
  17311. <a id="tocSboardsmembers"></a>
  17312. <a id="tocsboardsmembers"></a></p>
  17313. <pre class="highlight tab tab-json"><code>{
  17314. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17315. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  17316. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>,
  17317. <span class="hljs-attr">&quot;isNoComments&quot;</span>: <span class="hljs-literal">true</span>,
  17318. <span class="hljs-attr">&quot;isCommentOnly&quot;</span>: <span class="hljs-literal">true</span>,
  17319. <span class="hljs-attr">&quot;isWorker&quot;</span>: <span class="hljs-literal">true</span>
  17320. }
  17321. </code></pre>
  17322. <h3 id="properties-3">Properties</h3>
  17323. <table>
  17324. <thead>
  17325. <tr>
  17326. <th>Name</th>
  17327. <th>Type</th>
  17328. <th>Required</th>
  17329. <th>Restrictions</th>
  17330. <th>Description</th>
  17331. </tr>
  17332. </thead>
  17333. <tbody>
  17334. <tr>
  17335. <td>userId</td>
  17336. <td>string</td>
  17337. <td>true</td>
  17338. <td>none</td>
  17339. <td>The uniq ID of the member</td>
  17340. </tr>
  17341. <tr>
  17342. <td>isAdmin</td>
  17343. <td>boolean</td>
  17344. <td>true</td>
  17345. <td>none</td>
  17346. <td>Is the member an admin of the board?</td>
  17347. </tr>
  17348. <tr>
  17349. <td>isActive</td>
  17350. <td>boolean</td>
  17351. <td>true</td>
  17352. <td>none</td>
  17353. <td>Is the member active?</td>
  17354. </tr>
  17355. <tr>
  17356. <td>isNoComments</td>
  17357. <td>boolean</td>
  17358. <td>false</td>
  17359. <td>none</td>
  17360. <td>Is the member not allowed to make comments</td>
  17361. </tr>
  17362. <tr>
  17363. <td>isCommentOnly</td>
  17364. <td>boolean</td>
  17365. <td>false</td>
  17366. <td>none</td>
  17367. <td>Is the member only allowed to comment on the board</td>
  17368. </tr>
  17369. <tr>
  17370. <td>isWorker</td>
  17371. <td>boolean</td>
  17372. <td>false</td>
  17373. <td>none</td>
  17374. <td>Is the member only allowed to move card, assign himself to card and comment</td>
  17375. </tr>
  17376. </tbody>
  17377. </table>
  17378. <h2 id="tocs_boardsorgs">BoardsOrgs</h2>
  17379. <p><a id="schemaboardsorgs"></a>
  17380. <a id="schema_BoardsOrgs"></a>
  17381. <a id="tocSboardsorgs"></a>
  17382. <a id="tocsboardsorgs"></a></p>
  17383. <pre class="highlight tab tab-json"><code>{
  17384. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17385. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17386. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  17387. }
  17388. </code></pre>
  17389. <h3 id="properties-4">Properties</h3>
  17390. <table>
  17391. <thead>
  17392. <tr>
  17393. <th>Name</th>
  17394. <th>Type</th>
  17395. <th>Required</th>
  17396. <th>Restrictions</th>
  17397. <th>Description</th>
  17398. </tr>
  17399. </thead>
  17400. <tbody>
  17401. <tr>
  17402. <td>orgId</td>
  17403. <td>string</td>
  17404. <td>true</td>
  17405. <td>none</td>
  17406. <td>The uniq ID of the organization</td>
  17407. </tr>
  17408. <tr>
  17409. <td>orgDisplayName</td>
  17410. <td>string</td>
  17411. <td>true</td>
  17412. <td>none</td>
  17413. <td>The display name of the organization</td>
  17414. </tr>
  17415. <tr>
  17416. <td>isActive</td>
  17417. <td>boolean</td>
  17418. <td>true</td>
  17419. <td>none</td>
  17420. <td>Is the organization active?</td>
  17421. </tr>
  17422. </tbody>
  17423. </table>
  17424. <h2 id="tocs_boardsteams">BoardsTeams</h2>
  17425. <p><a id="schemaboardsteams"></a>
  17426. <a id="schema_BoardsTeams"></a>
  17427. <a id="tocSboardsteams"></a>
  17428. <a id="tocsboardsteams"></a></p>
  17429. <pre class="highlight tab tab-json"><code>{
  17430. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17431. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17432. <span class="hljs-attr">&quot;isActive&quot;</span>: <span class="hljs-literal">true</span>
  17433. }
  17434. </code></pre>
  17435. <h3 id="properties-5">Properties</h3>
  17436. <table>
  17437. <thead>
  17438. <tr>
  17439. <th>Name</th>
  17440. <th>Type</th>
  17441. <th>Required</th>
  17442. <th>Restrictions</th>
  17443. <th>Description</th>
  17444. </tr>
  17445. </thead>
  17446. <tbody>
  17447. <tr>
  17448. <td>teamId</td>
  17449. <td>string</td>
  17450. <td>true</td>
  17451. <td>none</td>
  17452. <td>The uniq ID of the team</td>
  17453. </tr>
  17454. <tr>
  17455. <td>teamDisplayName</td>
  17456. <td>string</td>
  17457. <td>true</td>
  17458. <td>none</td>
  17459. <td>The display name of the team</td>
  17460. </tr>
  17461. <tr>
  17462. <td>isActive</td>
  17463. <td>boolean</td>
  17464. <td>true</td>
  17465. <td>none</td>
  17466. <td>Is the team active?</td>
  17467. </tr>
  17468. </tbody>
  17469. </table>
  17470. <h2 id="tocs_cardcomments">CardComments</h2>
  17471. <p><a id="schemacardcomments"></a>
  17472. <a id="schema_CardComments"></a>
  17473. <a id="tocScardcomments"></a>
  17474. <a id="tocscardcomments"></a></p>
  17475. <pre class="highlight tab tab-json"><code>{
  17476. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17477. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17478. <span class="hljs-attr">&quot;text&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17479. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17480. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17481. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  17482. }
  17483. </code></pre>
  17484. <p>A comment on a card</p>
  17485. <h3 id="properties-6">Properties</h3>
  17486. <table>
  17487. <thead>
  17488. <tr>
  17489. <th>Name</th>
  17490. <th>Type</th>
  17491. <th>Required</th>
  17492. <th>Restrictions</th>
  17493. <th>Description</th>
  17494. </tr>
  17495. </thead>
  17496. <tbody>
  17497. <tr>
  17498. <td>boardId</td>
  17499. <td>string</td>
  17500. <td>true</td>
  17501. <td>none</td>
  17502. <td>the board ID</td>
  17503. </tr>
  17504. <tr>
  17505. <td>cardId</td>
  17506. <td>string</td>
  17507. <td>true</td>
  17508. <td>none</td>
  17509. <td>the card ID</td>
  17510. </tr>
  17511. <tr>
  17512. <td>text</td>
  17513. <td>string</td>
  17514. <td>true</td>
  17515. <td>none</td>
  17516. <td>the text of the comment</td>
  17517. </tr>
  17518. <tr>
  17519. <td>createdAt</td>
  17520. <td>string</td>
  17521. <td>true</td>
  17522. <td>none</td>
  17523. <td>when was the comment created</td>
  17524. </tr>
  17525. <tr>
  17526. <td>modifiedAt</td>
  17527. <td>string</td>
  17528. <td>true</td>
  17529. <td>none</td>
  17530. <td>none</td>
  17531. </tr>
  17532. <tr>
  17533. <td>userId</td>
  17534. <td>string</td>
  17535. <td>true</td>
  17536. <td>none</td>
  17537. <td>the author ID of the comment</td>
  17538. </tr>
  17539. </tbody>
  17540. </table>
  17541. <h2 id="tocs_cards">Cards</h2>
  17542. <p><a id="schemacards"></a>
  17543. <a id="schema_Cards"></a>
  17544. <a id="tocScards"></a>
  17545. <a id="tocscards"></a></p>
  17546. <pre class="highlight tab tab-json"><code>{
  17547. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17548. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  17549. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17550. <span class="hljs-attr">&quot;parentId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17551. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17552. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17553. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17554. <span class="hljs-attr">&quot;coverId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17555. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  17556. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17557. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17558. <span class="hljs-attr">&quot;customFields&quot;</span>: [
  17559. {}
  17560. ],
  17561. <span class="hljs-attr">&quot;dateLastActivity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17562. <span class="hljs-attr">&quot;description&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17563. <span class="hljs-attr">&quot;requestedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17564. <span class="hljs-attr">&quot;assignedBy&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17565. <span class="hljs-attr">&quot;labelIds&quot;</span>: [
  17566. <span class="hljs-string">&quot;string&quot;</span>
  17567. ],
  17568. <span class="hljs-attr">&quot;members&quot;</span>: [
  17569. <span class="hljs-string">&quot;string&quot;</span>
  17570. ],
  17571. <span class="hljs-attr">&quot;assignees&quot;</span>: [
  17572. <span class="hljs-string">&quot;string&quot;</span>
  17573. ],
  17574. <span class="hljs-attr">&quot;receivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17575. <span class="hljs-attr">&quot;startAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17576. <span class="hljs-attr">&quot;dueAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17577. <span class="hljs-attr">&quot;endAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17578. <span class="hljs-attr">&quot;spentTime&quot;</span>: <span class="hljs-number">0</span>,
  17579. <span class="hljs-attr">&quot;isOvertime&quot;</span>: <span class="hljs-literal">true</span>,
  17580. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17581. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  17582. <span class="hljs-attr">&quot;subtaskSort&quot;</span>: <span class="hljs-number">0</span>,
  17583. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17584. <span class="hljs-attr">&quot;linkedId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17585. <span class="hljs-attr">&quot;vote&quot;</span>: {
  17586. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17587. <span class="hljs-attr">&quot;positive&quot;</span>: [
  17588. <span class="hljs-string">&quot;string&quot;</span>
  17589. ],
  17590. <span class="hljs-attr">&quot;negative&quot;</span>: [
  17591. <span class="hljs-string">&quot;string&quot;</span>
  17592. ],
  17593. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17594. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  17595. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  17596. },
  17597. <span class="hljs-attr">&quot;poker&quot;</span>: {
  17598. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  17599. <span class="hljs-attr">&quot;one&quot;</span>: [
  17600. <span class="hljs-string">&quot;string&quot;</span>
  17601. ],
  17602. <span class="hljs-attr">&quot;two&quot;</span>: [
  17603. <span class="hljs-string">&quot;string&quot;</span>
  17604. ],
  17605. <span class="hljs-attr">&quot;three&quot;</span>: [
  17606. <span class="hljs-string">&quot;string&quot;</span>
  17607. ],
  17608. <span class="hljs-attr">&quot;five&quot;</span>: [
  17609. <span class="hljs-string">&quot;string&quot;</span>
  17610. ],
  17611. <span class="hljs-attr">&quot;eight&quot;</span>: [
  17612. <span class="hljs-string">&quot;string&quot;</span>
  17613. ],
  17614. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  17615. <span class="hljs-string">&quot;string&quot;</span>
  17616. ],
  17617. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  17618. <span class="hljs-string">&quot;string&quot;</span>
  17619. ],
  17620. <span class="hljs-attr">&quot;forty&quot;</span>: [
  17621. <span class="hljs-string">&quot;string&quot;</span>
  17622. ],
  17623. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  17624. <span class="hljs-string">&quot;string&quot;</span>
  17625. ],
  17626. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  17627. <span class="hljs-string">&quot;string&quot;</span>
  17628. ],
  17629. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  17630. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  17631. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  17632. },
  17633. <span class="hljs-attr">&quot;targetId_gantt&quot;</span>: [
  17634. <span class="hljs-string">&quot;string&quot;</span>
  17635. ],
  17636. <span class="hljs-attr">&quot;linkType_gantt&quot;</span>: [
  17637. <span class="hljs-number">0</span>
  17638. ],
  17639. <span class="hljs-attr">&quot;linkId_gantt&quot;</span>: [
  17640. <span class="hljs-string">&quot;string&quot;</span>
  17641. ],
  17642. <span class="hljs-attr">&quot;cardNumber&quot;</span>: <span class="hljs-number">0</span>
  17643. }
  17644. </code></pre>
  17645. <h3 id="properties-7">Properties</h3>
  17646. <table>
  17647. <thead>
  17648. <tr>
  17649. <th>Name</th>
  17650. <th>Type</th>
  17651. <th>Required</th>
  17652. <th>Restrictions</th>
  17653. <th>Description</th>
  17654. </tr>
  17655. </thead>
  17656. <tbody>
  17657. <tr>
  17658. <td>title</td>
  17659. <td>string¦null</td>
  17660. <td>false</td>
  17661. <td>none</td>
  17662. <td>the title of the card</td>
  17663. </tr>
  17664. <tr>
  17665. <td>archived</td>
  17666. <td>boolean</td>
  17667. <td>true</td>
  17668. <td>none</td>
  17669. <td>is the card archived</td>
  17670. </tr>
  17671. <tr>
  17672. <td>archivedAt</td>
  17673. <td>string¦null</td>
  17674. <td>false</td>
  17675. <td>none</td>
  17676. <td>latest archiving date</td>
  17677. </tr>
  17678. <tr>
  17679. <td>parentId</td>
  17680. <td>string¦null</td>
  17681. <td>false</td>
  17682. <td>none</td>
  17683. <td>ID of the parent card</td>
  17684. </tr>
  17685. <tr>
  17686. <td>listId</td>
  17687. <td>string¦null</td>
  17688. <td>false</td>
  17689. <td>none</td>
  17690. <td>List ID where the card is</td>
  17691. </tr>
  17692. <tr>
  17693. <td>swimlaneId</td>
  17694. <td>string</td>
  17695. <td>true</td>
  17696. <td>none</td>
  17697. <td>Swimlane ID where the card is</td>
  17698. </tr>
  17699. <tr>
  17700. <td>boardId</td>
  17701. <td>string¦null</td>
  17702. <td>false</td>
  17703. <td>none</td>
  17704. <td>Board ID of the card</td>
  17705. </tr>
  17706. <tr>
  17707. <td>coverId</td>
  17708. <td>string¦null</td>
  17709. <td>false</td>
  17710. <td>none</td>
  17711. <td>Cover ID of the card</td>
  17712. </tr>
  17713. <tr>
  17714. <td>color</td>
  17715. <td>string¦null</td>
  17716. <td>false</td>
  17717. <td>none</td>
  17718. <td>none</td>
  17719. </tr>
  17720. <tr>
  17721. <td>createdAt</td>
  17722. <td>string</td>
  17723. <td>true</td>
  17724. <td>none</td>
  17725. <td>creation date</td>
  17726. </tr>
  17727. <tr>
  17728. <td>modifiedAt</td>
  17729. <td>string</td>
  17730. <td>true</td>
  17731. <td>none</td>
  17732. <td>none</td>
  17733. </tr>
  17734. <tr>
  17735. <td>customFields</td>
  17736. <td>[<a href="#schemacardscustomfields">CardsCustomfields</a>]¦null</td>
  17737. <td>false</td>
  17738. <td>none</td>
  17739. <td>list of custom fields</td>
  17740. </tr>
  17741. <tr>
  17742. <td>dateLastActivity</td>
  17743. <td>string</td>
  17744. <td>true</td>
  17745. <td>none</td>
  17746. <td>Date of last activity</td>
  17747. </tr>
  17748. <tr>
  17749. <td>description</td>
  17750. <td>string¦null</td>
  17751. <td>false</td>
  17752. <td>none</td>
  17753. <td>description of the card</td>
  17754. </tr>
  17755. <tr>
  17756. <td>requestedBy</td>
  17757. <td>string¦null</td>
  17758. <td>false</td>
  17759. <td>none</td>
  17760. <td>who requested the card (ID of the user)</td>
  17761. </tr>
  17762. <tr>
  17763. <td>assignedBy</td>
  17764. <td>string¦null</td>
  17765. <td>false</td>
  17766. <td>none</td>
  17767. <td>who assigned the card (ID of the user)</td>
  17768. </tr>
  17769. <tr>
  17770. <td>labelIds</td>
  17771. <td>[string]¦null</td>
  17772. <td>false</td>
  17773. <td>none</td>
  17774. <td>list of labels ID the card has</td>
  17775. </tr>
  17776. <tr>
  17777. <td>members</td>
  17778. <td>[string]¦null</td>
  17779. <td>false</td>
  17780. <td>none</td>
  17781. <td>list of members (user IDs)</td>
  17782. </tr>
  17783. <tr>
  17784. <td>assignees</td>
  17785. <td>[string]¦null</td>
  17786. <td>false</td>
  17787. <td>none</td>
  17788. <td>who is assignee of the card (user ID),<br />maximum one ID of assignee in array.</td>
  17789. </tr>
  17790. <tr>
  17791. <td>receivedAt</td>
  17792. <td>string¦null</td>
  17793. <td>false</td>
  17794. <td>none</td>
  17795. <td>Date the card was received</td>
  17796. </tr>
  17797. <tr>
  17798. <td>startAt</td>
  17799. <td>string¦null</td>
  17800. <td>false</td>
  17801. <td>none</td>
  17802. <td>Date the card was started to be worked on</td>
  17803. </tr>
  17804. <tr>
  17805. <td>dueAt</td>
  17806. <td>string¦null</td>
  17807. <td>false</td>
  17808. <td>none</td>
  17809. <td>Date the card is due</td>
  17810. </tr>
  17811. <tr>
  17812. <td>endAt</td>
  17813. <td>string¦null</td>
  17814. <td>false</td>
  17815. <td>none</td>
  17816. <td>Date the card ended</td>
  17817. </tr>
  17818. <tr>
  17819. <td>spentTime</td>
  17820. <td>number¦null</td>
  17821. <td>false</td>
  17822. <td>none</td>
  17823. <td>How much time has been spent on this</td>
  17824. </tr>
  17825. <tr>
  17826. <td>isOvertime</td>
  17827. <td>boolean¦null</td>
  17828. <td>false</td>
  17829. <td>none</td>
  17830. <td>is the card over time?</td>
  17831. </tr>
  17832. <tr>
  17833. <td>userId</td>
  17834. <td>string</td>
  17835. <td>true</td>
  17836. <td>none</td>
  17837. <td>user ID of the author of the card</td>
  17838. </tr>
  17839. <tr>
  17840. <td>sort</td>
  17841. <td>number¦null</td>
  17842. <td>false</td>
  17843. <td>none</td>
  17844. <td>Sort value</td>
  17845. </tr>
  17846. <tr>
  17847. <td>subtaskSort</td>
  17848. <td>number¦null</td>
  17849. <td>false</td>
  17850. <td>none</td>
  17851. <td>subtask sort value</td>
  17852. </tr>
  17853. <tr>
  17854. <td>type</td>
  17855. <td>string</td>
  17856. <td>true</td>
  17857. <td>none</td>
  17858. <td>type of the card</td>
  17859. </tr>
  17860. <tr>
  17861. <td>linkedId</td>
  17862. <td>string¦null</td>
  17863. <td>false</td>
  17864. <td>none</td>
  17865. <td>ID of the linked card</td>
  17866. </tr>
  17867. <tr>
  17868. <td>vote</td>
  17869. <td><a href="#schemacardsvote">CardsVote</a></td>
  17870. <td>false</td>
  17871. <td>none</td>
  17872. <td>none</td>
  17873. </tr>
  17874. <tr>
  17875. <td>poker</td>
  17876. <td><a href="#schemacardspoker">CardsPoker</a></td>
  17877. <td>false</td>
  17878. <td>none</td>
  17879. <td>none</td>
  17880. </tr>
  17881. <tr>
  17882. <td>targetId_gantt</td>
  17883. <td>[string]¦null</td>
  17884. <td>false</td>
  17885. <td>none</td>
  17886. <td>ID of card which is the child link in gantt view</td>
  17887. </tr>
  17888. <tr>
  17889. <td>linkType_gantt</td>
  17890. <td>[number]¦null</td>
  17891. <td>false</td>
  17892. <td>none</td>
  17893. <td>ID of card which is the parent link in gantt view</td>
  17894. </tr>
  17895. <tr>
  17896. <td>linkId_gantt</td>
  17897. <td>[string]¦null</td>
  17898. <td>false</td>
  17899. <td>none</td>
  17900. <td>ID of card which is the parent link in gantt view</td>
  17901. </tr>
  17902. <tr>
  17903. <td>cardNumber</td>
  17904. <td>number¦null</td>
  17905. <td>false</td>
  17906. <td>none</td>
  17907. <td>A boardwise sequentially increasing number that is assigned<br />to every newly created card</td>
  17908. </tr>
  17909. </tbody>
  17910. </table>
  17911. <h4 id="enumerated-values-3">Enumerated Values</h4>
  17912. <table>
  17913. <thead>
  17914. <tr>
  17915. <th>Property</th>
  17916. <th>Value</th>
  17917. </tr>
  17918. </thead>
  17919. <tbody>
  17920. <tr>
  17921. <td>color</td>
  17922. <td>white</td>
  17923. </tr>
  17924. <tr>
  17925. <td>color</td>
  17926. <td>green</td>
  17927. </tr>
  17928. <tr>
  17929. <td>color</td>
  17930. <td>yellow</td>
  17931. </tr>
  17932. <tr>
  17933. <td>color</td>
  17934. <td>orange</td>
  17935. </tr>
  17936. <tr>
  17937. <td>color</td>
  17938. <td>red</td>
  17939. </tr>
  17940. <tr>
  17941. <td>color</td>
  17942. <td>purple</td>
  17943. </tr>
  17944. <tr>
  17945. <td>color</td>
  17946. <td>blue</td>
  17947. </tr>
  17948. <tr>
  17949. <td>color</td>
  17950. <td>sky</td>
  17951. </tr>
  17952. <tr>
  17953. <td>color</td>
  17954. <td>lime</td>
  17955. </tr>
  17956. <tr>
  17957. <td>color</td>
  17958. <td>pink</td>
  17959. </tr>
  17960. <tr>
  17961. <td>color</td>
  17962. <td>black</td>
  17963. </tr>
  17964. <tr>
  17965. <td>color</td>
  17966. <td>silver</td>
  17967. </tr>
  17968. <tr>
  17969. <td>color</td>
  17970. <td>peachpuff</td>
  17971. </tr>
  17972. <tr>
  17973. <td>color</td>
  17974. <td>crimson</td>
  17975. </tr>
  17976. <tr>
  17977. <td>color</td>
  17978. <td>plum</td>
  17979. </tr>
  17980. <tr>
  17981. <td>color</td>
  17982. <td>darkgreen</td>
  17983. </tr>
  17984. <tr>
  17985. <td>color</td>
  17986. <td>slateblue</td>
  17987. </tr>
  17988. <tr>
  17989. <td>color</td>
  17990. <td>magenta</td>
  17991. </tr>
  17992. <tr>
  17993. <td>color</td>
  17994. <td>gold</td>
  17995. </tr>
  17996. <tr>
  17997. <td>color</td>
  17998. <td>navy</td>
  17999. </tr>
  18000. <tr>
  18001. <td>color</td>
  18002. <td>gray</td>
  18003. </tr>
  18004. <tr>
  18005. <td>color</td>
  18006. <td>saddlebrown</td>
  18007. </tr>
  18008. <tr>
  18009. <td>color</td>
  18010. <td>paleturquoise</td>
  18011. </tr>
  18012. <tr>
  18013. <td>color</td>
  18014. <td>mistyrose</td>
  18015. </tr>
  18016. <tr>
  18017. <td>color</td>
  18018. <td>indigo</td>
  18019. </tr>
  18020. </tbody>
  18021. </table>
  18022. <h2 id="tocs_cardsvote">CardsVote</h2>
  18023. <p><a id="schemacardsvote"></a>
  18024. <a id="schema_CardsVote"></a>
  18025. <a id="tocScardsvote"></a>
  18026. <a id="tocscardsvote"></a></p>
  18027. <pre class="highlight tab tab-json"><code>{
  18028. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18029. <span class="hljs-attr">&quot;positive&quot;</span>: [
  18030. <span class="hljs-string">&quot;string&quot;</span>
  18031. ],
  18032. <span class="hljs-attr">&quot;negative&quot;</span>: [
  18033. <span class="hljs-string">&quot;string&quot;</span>
  18034. ],
  18035. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18036. <span class="hljs-attr">&quot;public&quot;</span>: <span class="hljs-literal">true</span>,
  18037. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>
  18038. }
  18039. </code></pre>
  18040. <h3 id="properties-8">Properties</h3>
  18041. <table>
  18042. <thead>
  18043. <tr>
  18044. <th>Name</th>
  18045. <th>Type</th>
  18046. <th>Required</th>
  18047. <th>Restrictions</th>
  18048. <th>Description</th>
  18049. </tr>
  18050. </thead>
  18051. <tbody>
  18052. <tr>
  18053. <td>question</td>
  18054. <td>string</td>
  18055. <td>true</td>
  18056. <td>none</td>
  18057. <td>none</td>
  18058. </tr>
  18059. <tr>
  18060. <td>positive</td>
  18061. <td>[string]</td>
  18062. <td>false</td>
  18063. <td>none</td>
  18064. <td>list of members (user IDs)</td>
  18065. </tr>
  18066. <tr>
  18067. <td>negative</td>
  18068. <td>[string]</td>
  18069. <td>false</td>
  18070. <td>none</td>
  18071. <td>list of members (user IDs)</td>
  18072. </tr>
  18073. <tr>
  18074. <td>end</td>
  18075. <td>string</td>
  18076. <td>false</td>
  18077. <td>none</td>
  18078. <td>none</td>
  18079. </tr>
  18080. <tr>
  18081. <td>public</td>
  18082. <td>boolean</td>
  18083. <td>true</td>
  18084. <td>none</td>
  18085. <td>none</td>
  18086. </tr>
  18087. <tr>
  18088. <td>allowNonBoardMembers</td>
  18089. <td>boolean</td>
  18090. <td>true</td>
  18091. <td>none</td>
  18092. <td>none</td>
  18093. </tr>
  18094. </tbody>
  18095. </table>
  18096. <h2 id="tocs_cardspoker">CardsPoker</h2>
  18097. <p><a id="schemacardspoker"></a>
  18098. <a id="schema_CardsPoker"></a>
  18099. <a id="tocScardspoker"></a>
  18100. <a id="tocscardspoker"></a></p>
  18101. <pre class="highlight tab tab-json"><code>{
  18102. <span class="hljs-attr">&quot;question&quot;</span>: <span class="hljs-literal">true</span>,
  18103. <span class="hljs-attr">&quot;one&quot;</span>: [
  18104. <span class="hljs-string">&quot;string&quot;</span>
  18105. ],
  18106. <span class="hljs-attr">&quot;two&quot;</span>: [
  18107. <span class="hljs-string">&quot;string&quot;</span>
  18108. ],
  18109. <span class="hljs-attr">&quot;three&quot;</span>: [
  18110. <span class="hljs-string">&quot;string&quot;</span>
  18111. ],
  18112. <span class="hljs-attr">&quot;five&quot;</span>: [
  18113. <span class="hljs-string">&quot;string&quot;</span>
  18114. ],
  18115. <span class="hljs-attr">&quot;eight&quot;</span>: [
  18116. <span class="hljs-string">&quot;string&quot;</span>
  18117. ],
  18118. <span class="hljs-attr">&quot;thirteen&quot;</span>: [
  18119. <span class="hljs-string">&quot;string&quot;</span>
  18120. ],
  18121. <span class="hljs-attr">&quot;twenty&quot;</span>: [
  18122. <span class="hljs-string">&quot;string&quot;</span>
  18123. ],
  18124. <span class="hljs-attr">&quot;forty&quot;</span>: [
  18125. <span class="hljs-string">&quot;string&quot;</span>
  18126. ],
  18127. <span class="hljs-attr">&quot;oneHundred&quot;</span>: [
  18128. <span class="hljs-string">&quot;string&quot;</span>
  18129. ],
  18130. <span class="hljs-attr">&quot;unsure&quot;</span>: [
  18131. <span class="hljs-string">&quot;string&quot;</span>
  18132. ],
  18133. <span class="hljs-attr">&quot;end&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18134. <span class="hljs-attr">&quot;allowNonBoardMembers&quot;</span>: <span class="hljs-literal">true</span>,
  18135. <span class="hljs-attr">&quot;estimation&quot;</span>: <span class="hljs-number">0</span>
  18136. }
  18137. </code></pre>
  18138. <h3 id="properties-9">Properties</h3>
  18139. <table>
  18140. <thead>
  18141. <tr>
  18142. <th>Name</th>
  18143. <th>Type</th>
  18144. <th>Required</th>
  18145. <th>Restrictions</th>
  18146. <th>Description</th>
  18147. </tr>
  18148. </thead>
  18149. <tbody>
  18150. <tr>
  18151. <td>question</td>
  18152. <td>boolean</td>
  18153. <td>true</td>
  18154. <td>none</td>
  18155. <td>none</td>
  18156. </tr>
  18157. <tr>
  18158. <td>one</td>
  18159. <td>[string]</td>
  18160. <td>false</td>
  18161. <td>none</td>
  18162. <td>poker card one</td>
  18163. </tr>
  18164. <tr>
  18165. <td>two</td>
  18166. <td>[string]</td>
  18167. <td>false</td>
  18168. <td>none</td>
  18169. <td>poker card two</td>
  18170. </tr>
  18171. <tr>
  18172. <td>three</td>
  18173. <td>[string]</td>
  18174. <td>false</td>
  18175. <td>none</td>
  18176. <td>poker card three</td>
  18177. </tr>
  18178. <tr>
  18179. <td>five</td>
  18180. <td>[string]</td>
  18181. <td>false</td>
  18182. <td>none</td>
  18183. <td>poker card five</td>
  18184. </tr>
  18185. <tr>
  18186. <td>eight</td>
  18187. <td>[string]</td>
  18188. <td>false</td>
  18189. <td>none</td>
  18190. <td>poker card eight</td>
  18191. </tr>
  18192. <tr>
  18193. <td>thirteen</td>
  18194. <td>[string]</td>
  18195. <td>false</td>
  18196. <td>none</td>
  18197. <td>poker card thirteen</td>
  18198. </tr>
  18199. <tr>
  18200. <td>twenty</td>
  18201. <td>[string]</td>
  18202. <td>false</td>
  18203. <td>none</td>
  18204. <td>poker card twenty</td>
  18205. </tr>
  18206. <tr>
  18207. <td>forty</td>
  18208. <td>[string]</td>
  18209. <td>false</td>
  18210. <td>none</td>
  18211. <td>poker card forty</td>
  18212. </tr>
  18213. <tr>
  18214. <td>oneHundred</td>
  18215. <td>[string]</td>
  18216. <td>false</td>
  18217. <td>none</td>
  18218. <td>poker card oneHundred</td>
  18219. </tr>
  18220. <tr>
  18221. <td>unsure</td>
  18222. <td>[string]</td>
  18223. <td>false</td>
  18224. <td>none</td>
  18225. <td>poker card unsure</td>
  18226. </tr>
  18227. <tr>
  18228. <td>end</td>
  18229. <td>string</td>
  18230. <td>false</td>
  18231. <td>none</td>
  18232. <td>none</td>
  18233. </tr>
  18234. <tr>
  18235. <td>allowNonBoardMembers</td>
  18236. <td>boolean</td>
  18237. <td>true</td>
  18238. <td>none</td>
  18239. <td>none</td>
  18240. </tr>
  18241. <tr>
  18242. <td>estimation</td>
  18243. <td>number</td>
  18244. <td>false</td>
  18245. <td>none</td>
  18246. <td>poker estimation value</td>
  18247. </tr>
  18248. </tbody>
  18249. </table>
  18250. <h2 id="tocs_cardscustomfields">CardsCustomfields</h2>
  18251. <p><a id="schemacardscustomfields"></a>
  18252. <a id="schema_CardsCustomfields"></a>
  18253. <a id="tocScardscustomfields"></a>
  18254. <a id="tocscardscustomfields"></a></p>
  18255. <pre class="highlight tab tab-json"><code>{}
  18256. </code></pre>
  18257. <h3 id="properties-10">Properties</h3>
  18258. <p><em>None</em></p>
  18259. <h2 id="tocs_checklistitems">ChecklistItems</h2>
  18260. <p><a id="schemachecklistitems"></a>
  18261. <a id="schema_ChecklistItems"></a>
  18262. <a id="tocSchecklistitems"></a>
  18263. <a id="tocschecklistitems"></a></p>
  18264. <pre class="highlight tab tab-json"><code>{
  18265. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18266. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18267. <span class="hljs-attr">&quot;isFinished&quot;</span>: <span class="hljs-literal">true</span>,
  18268. <span class="hljs-attr">&quot;checklistId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18269. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18270. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18271. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18272. }
  18273. </code></pre>
  18274. <p>An item in a checklist</p>
  18275. <h3 id="properties-11">Properties</h3>
  18276. <table>
  18277. <thead>
  18278. <tr>
  18279. <th>Name</th>
  18280. <th>Type</th>
  18281. <th>Required</th>
  18282. <th>Restrictions</th>
  18283. <th>Description</th>
  18284. </tr>
  18285. </thead>
  18286. <tbody>
  18287. <tr>
  18288. <td>title</td>
  18289. <td>string</td>
  18290. <td>true</td>
  18291. <td>none</td>
  18292. <td>the text of the item</td>
  18293. </tr>
  18294. <tr>
  18295. <td>sort</td>
  18296. <td>number</td>
  18297. <td>true</td>
  18298. <td>none</td>
  18299. <td>the sorting field of the item</td>
  18300. </tr>
  18301. <tr>
  18302. <td>isFinished</td>
  18303. <td>boolean</td>
  18304. <td>true</td>
  18305. <td>none</td>
  18306. <td>Is the item checked?</td>
  18307. </tr>
  18308. <tr>
  18309. <td>checklistId</td>
  18310. <td>string</td>
  18311. <td>true</td>
  18312. <td>none</td>
  18313. <td>the checklist ID the item is attached to</td>
  18314. </tr>
  18315. <tr>
  18316. <td>cardId</td>
  18317. <td>string</td>
  18318. <td>true</td>
  18319. <td>none</td>
  18320. <td>the card ID the item is attached to</td>
  18321. </tr>
  18322. <tr>
  18323. <td>createdAt</td>
  18324. <td>string¦null</td>
  18325. <td>false</td>
  18326. <td>none</td>
  18327. <td>none</td>
  18328. </tr>
  18329. <tr>
  18330. <td>modifiedAt</td>
  18331. <td>string</td>
  18332. <td>true</td>
  18333. <td>none</td>
  18334. <td>none</td>
  18335. </tr>
  18336. </tbody>
  18337. </table>
  18338. <h2 id="tocs_checklists">Checklists</h2>
  18339. <p><a id="schemachecklists"></a>
  18340. <a id="schema_Checklists"></a>
  18341. <a id="tocSchecklists"></a>
  18342. <a id="tocschecklists"></a></p>
  18343. <pre class="highlight tab tab-json"><code>{
  18344. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18345. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18346. <span class="hljs-attr">&quot;finishedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18347. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18348. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18349. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>
  18350. }
  18351. </code></pre>
  18352. <p>A Checklist</p>
  18353. <h3 id="properties-12">Properties</h3>
  18354. <table>
  18355. <thead>
  18356. <tr>
  18357. <th>Name</th>
  18358. <th>Type</th>
  18359. <th>Required</th>
  18360. <th>Restrictions</th>
  18361. <th>Description</th>
  18362. </tr>
  18363. </thead>
  18364. <tbody>
  18365. <tr>
  18366. <td>cardId</td>
  18367. <td>string</td>
  18368. <td>true</td>
  18369. <td>none</td>
  18370. <td>The ID of the card the checklist is in</td>
  18371. </tr>
  18372. <tr>
  18373. <td>title</td>
  18374. <td>string</td>
  18375. <td>true</td>
  18376. <td>none</td>
  18377. <td>the title of the checklist</td>
  18378. </tr>
  18379. <tr>
  18380. <td>finishedAt</td>
  18381. <td>string¦null</td>
  18382. <td>false</td>
  18383. <td>none</td>
  18384. <td>When was the checklist finished</td>
  18385. </tr>
  18386. <tr>
  18387. <td>createdAt</td>
  18388. <td>string</td>
  18389. <td>true</td>
  18390. <td>none</td>
  18391. <td>Creation date of the checklist</td>
  18392. </tr>
  18393. <tr>
  18394. <td>modifiedAt</td>
  18395. <td>string</td>
  18396. <td>true</td>
  18397. <td>none</td>
  18398. <td>none</td>
  18399. </tr>
  18400. <tr>
  18401. <td>sort</td>
  18402. <td>number</td>
  18403. <td>true</td>
  18404. <td>none</td>
  18405. <td>sorting value of the checklist</td>
  18406. </tr>
  18407. </tbody>
  18408. </table>
  18409. <h2 id="tocs_customfields">CustomFields</h2>
  18410. <p><a id="schemacustomfields"></a>
  18411. <a id="schema_CustomFields"></a>
  18412. <a id="tocScustomfields"></a>
  18413. <a id="tocscustomfields"></a></p>
  18414. <pre class="highlight tab tab-json"><code>{
  18415. <span class="hljs-attr">&quot;boardIds&quot;</span>: [
  18416. <span class="hljs-string">&quot;string&quot;</span>
  18417. ],
  18418. <span class="hljs-attr">&quot;name&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18419. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;text&quot;</span>,
  18420. <span class="hljs-attr">&quot;settings&quot;</span>: {
  18421. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18422. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  18423. {}
  18424. ],
  18425. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18426. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18427. },
  18428. <span class="hljs-attr">&quot;showOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  18429. <span class="hljs-attr">&quot;automaticallyOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  18430. <span class="hljs-attr">&quot;alwaysOnCard&quot;</span>: <span class="hljs-literal">true</span>,
  18431. <span class="hljs-attr">&quot;showLabelOnMiniCard&quot;</span>: <span class="hljs-literal">true</span>,
  18432. <span class="hljs-attr">&quot;showSumAtTopOfList&quot;</span>: <span class="hljs-literal">true</span>,
  18433. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18434. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18435. }
  18436. </code></pre>
  18437. <p>A custom field on a card in the board</p>
  18438. <h3 id="properties-13">Properties</h3>
  18439. <table>
  18440. <thead>
  18441. <tr>
  18442. <th>Name</th>
  18443. <th>Type</th>
  18444. <th>Required</th>
  18445. <th>Restrictions</th>
  18446. <th>Description</th>
  18447. </tr>
  18448. </thead>
  18449. <tbody>
  18450. <tr>
  18451. <td>boardIds</td>
  18452. <td>[string]</td>
  18453. <td>true</td>
  18454. <td>none</td>
  18455. <td>the ID of the board</td>
  18456. </tr>
  18457. <tr>
  18458. <td>name</td>
  18459. <td>string</td>
  18460. <td>true</td>
  18461. <td>none</td>
  18462. <td>name of the custom field</td>
  18463. </tr>
  18464. <tr>
  18465. <td>type</td>
  18466. <td>string</td>
  18467. <td>true</td>
  18468. <td>none</td>
  18469. <td>type of the custom field</td>
  18470. </tr>
  18471. <tr>
  18472. <td>settings</td>
  18473. <td><a href="#schemacustomfieldssettings">CustomFieldsSettings</a></td>
  18474. <td>true</td>
  18475. <td>none</td>
  18476. <td>none</td>
  18477. </tr>
  18478. <tr>
  18479. <td>showOnCard</td>
  18480. <td>boolean</td>
  18481. <td>true</td>
  18482. <td>none</td>
  18483. <td>should we show on the cards this custom field</td>
  18484. </tr>
  18485. <tr>
  18486. <td>automaticallyOnCard</td>
  18487. <td>boolean</td>
  18488. <td>true</td>
  18489. <td>none</td>
  18490. <td>should the custom fields automatically be added on cards?</td>
  18491. </tr>
  18492. <tr>
  18493. <td>alwaysOnCard</td>
  18494. <td>boolean</td>
  18495. <td>true</td>
  18496. <td>none</td>
  18497. <td>should the custom field be automatically added to all cards?</td>
  18498. </tr>
  18499. <tr>
  18500. <td>showLabelOnMiniCard</td>
  18501. <td>boolean</td>
  18502. <td>true</td>
  18503. <td>none</td>
  18504. <td>should the label of the custom field be shown on minicards?</td>
  18505. </tr>
  18506. <tr>
  18507. <td>showSumAtTopOfList</td>
  18508. <td>boolean</td>
  18509. <td>true</td>
  18510. <td>none</td>
  18511. <td>should the sum of the custom fields be shown at top of list?</td>
  18512. </tr>
  18513. <tr>
  18514. <td>createdAt</td>
  18515. <td>string¦null</td>
  18516. <td>false</td>
  18517. <td>none</td>
  18518. <td>none</td>
  18519. </tr>
  18520. <tr>
  18521. <td>modifiedAt</td>
  18522. <td>string</td>
  18523. <td>true</td>
  18524. <td>none</td>
  18525. <td>none</td>
  18526. </tr>
  18527. </tbody>
  18528. </table>
  18529. <h4 id="enumerated-values-4">Enumerated Values</h4>
  18530. <table>
  18531. <thead>
  18532. <tr>
  18533. <th>Property</th>
  18534. <th>Value</th>
  18535. </tr>
  18536. </thead>
  18537. <tbody>
  18538. <tr>
  18539. <td>type</td>
  18540. <td>text</td>
  18541. </tr>
  18542. <tr>
  18543. <td>type</td>
  18544. <td>number</td>
  18545. </tr>
  18546. <tr>
  18547. <td>type</td>
  18548. <td>date</td>
  18549. </tr>
  18550. <tr>
  18551. <td>type</td>
  18552. <td>dropdown</td>
  18553. </tr>
  18554. <tr>
  18555. <td>type</td>
  18556. <td>checkbox</td>
  18557. </tr>
  18558. <tr>
  18559. <td>type</td>
  18560. <td>currency</td>
  18561. </tr>
  18562. <tr>
  18563. <td>type</td>
  18564. <td>stringtemplate</td>
  18565. </tr>
  18566. </tbody>
  18567. </table>
  18568. <h2 id="tocs_customfieldssettings">CustomFieldsSettings</h2>
  18569. <p><a id="schemacustomfieldssettings"></a>
  18570. <a id="schema_CustomFieldsSettings"></a>
  18571. <a id="tocScustomfieldssettings"></a>
  18572. <a id="tocscustomfieldssettings"></a></p>
  18573. <pre class="highlight tab tab-json"><code>{
  18574. <span class="hljs-attr">&quot;currencyCode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18575. <span class="hljs-attr">&quot;dropdownItems&quot;</span>: [
  18576. {}
  18577. ],
  18578. <span class="hljs-attr">&quot;stringtemplateFormat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18579. <span class="hljs-attr">&quot;stringtemplateSeparator&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18580. }
  18581. </code></pre>
  18582. <h3 id="properties-14">Properties</h3>
  18583. <table>
  18584. <thead>
  18585. <tr>
  18586. <th>Name</th>
  18587. <th>Type</th>
  18588. <th>Required</th>
  18589. <th>Restrictions</th>
  18590. <th>Description</th>
  18591. </tr>
  18592. </thead>
  18593. <tbody>
  18594. <tr>
  18595. <td>currencyCode</td>
  18596. <td>string</td>
  18597. <td>false</td>
  18598. <td>none</td>
  18599. <td>none</td>
  18600. </tr>
  18601. <tr>
  18602. <td>dropdownItems</td>
  18603. <td>[<a href="#schemacustomfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</a>]</td>
  18604. <td>false</td>
  18605. <td>none</td>
  18606. <td>list of drop down items objects</td>
  18607. </tr>
  18608. <tr>
  18609. <td>stringtemplateFormat</td>
  18610. <td>string</td>
  18611. <td>false</td>
  18612. <td>none</td>
  18613. <td>none</td>
  18614. </tr>
  18615. <tr>
  18616. <td>stringtemplateSeparator</td>
  18617. <td>string</td>
  18618. <td>false</td>
  18619. <td>none</td>
  18620. <td>none</td>
  18621. </tr>
  18622. </tbody>
  18623. </table>
  18624. <h2 id="tocs_customfieldssettingsdropdownitems">CustomFieldsSettingsDropdownitems</h2>
  18625. <p><a id="schemacustomfieldssettingsdropdownitems"></a>
  18626. <a id="schema_CustomFieldsSettingsDropdownitems"></a>
  18627. <a id="tocScustomfieldssettingsdropdownitems"></a>
  18628. <a id="tocscustomfieldssettingsdropdownitems"></a></p>
  18629. <pre class="highlight tab tab-json"><code>{}
  18630. </code></pre>
  18631. <h3 id="properties-15">Properties</h3>
  18632. <p><em>None</em></p>
  18633. <h2 id="tocs_integrations">Integrations</h2>
  18634. <p><a id="schemaintegrations"></a>
  18635. <a id="schema_Integrations"></a>
  18636. <a id="tocSintegrations"></a>
  18637. <a id="tocsintegrations"></a></p>
  18638. <pre class="highlight tab tab-json"><code>{
  18639. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18640. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18641. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18642. <span class="hljs-attr">&quot;activities&quot;</span>: [
  18643. <span class="hljs-string">&quot;string&quot;</span>
  18644. ],
  18645. <span class="hljs-attr">&quot;url&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18646. <span class="hljs-attr">&quot;token&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18647. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18648. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18649. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18650. <span class="hljs-attr">&quot;userId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18651. }
  18652. </code></pre>
  18653. <p>Integration with third-party applications</p>
  18654. <h3 id="properties-16">Properties</h3>
  18655. <table>
  18656. <thead>
  18657. <tr>
  18658. <th>Name</th>
  18659. <th>Type</th>
  18660. <th>Required</th>
  18661. <th>Restrictions</th>
  18662. <th>Description</th>
  18663. </tr>
  18664. </thead>
  18665. <tbody>
  18666. <tr>
  18667. <td>enabled</td>
  18668. <td>boolean</td>
  18669. <td>true</td>
  18670. <td>none</td>
  18671. <td>is the integration enabled?</td>
  18672. </tr>
  18673. <tr>
  18674. <td>title</td>
  18675. <td>string¦null</td>
  18676. <td>false</td>
  18677. <td>none</td>
  18678. <td>name of the integration</td>
  18679. </tr>
  18680. <tr>
  18681. <td>type</td>
  18682. <td>string</td>
  18683. <td>true</td>
  18684. <td>none</td>
  18685. <td>type of the integratation (Default to 'outgoing-webhooks')</td>
  18686. </tr>
  18687. <tr>
  18688. <td>activities</td>
  18689. <td>[string]</td>
  18690. <td>true</td>
  18691. <td>none</td>
  18692. <td>activities the integration gets triggered (list)</td>
  18693. </tr>
  18694. <tr>
  18695. <td>url</td>
  18696. <td>string</td>
  18697. <td>true</td>
  18698. <td>none</td>
  18699. <td>none</td>
  18700. </tr>
  18701. <tr>
  18702. <td>token</td>
  18703. <td>string¦null</td>
  18704. <td>false</td>
  18705. <td>none</td>
  18706. <td>token of the integration</td>
  18707. </tr>
  18708. <tr>
  18709. <td>boardId</td>
  18710. <td>string</td>
  18711. <td>true</td>
  18712. <td>none</td>
  18713. <td>Board ID of the integration</td>
  18714. </tr>
  18715. <tr>
  18716. <td>createdAt</td>
  18717. <td>string</td>
  18718. <td>true</td>
  18719. <td>none</td>
  18720. <td>Creation date of the integration</td>
  18721. </tr>
  18722. <tr>
  18723. <td>modifiedAt</td>
  18724. <td>string</td>
  18725. <td>true</td>
  18726. <td>none</td>
  18727. <td>none</td>
  18728. </tr>
  18729. <tr>
  18730. <td>userId</td>
  18731. <td>string</td>
  18732. <td>true</td>
  18733. <td>none</td>
  18734. <td>user ID who created the interation</td>
  18735. </tr>
  18736. </tbody>
  18737. </table>
  18738. <h2 id="tocs_lists">Lists</h2>
  18739. <p><a id="schemalists"></a>
  18740. <a id="schema_Lists"></a>
  18741. <a id="tocSlists"></a>
  18742. <a id="tocslists"></a></p>
  18743. <pre class="highlight tab tab-json"><code>{
  18744. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18745. <span class="hljs-attr">&quot;starred&quot;</span>: <span class="hljs-literal">true</span>,
  18746. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  18747. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18748. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18749. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18750. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18751. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  18752. <span class="hljs-attr">&quot;width&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18753. <span class="hljs-attr">&quot;height&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18754. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18755. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  18756. <span class="hljs-attr">&quot;wipLimit&quot;</span>: {
  18757. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  18758. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  18759. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  18760. },
  18761. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  18762. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  18763. }
  18764. </code></pre>
  18765. <p>A list (column) in the Wekan board.</p>
  18766. <h3 id="properties-17">Properties</h3>
  18767. <table>
  18768. <thead>
  18769. <tr>
  18770. <th>Name</th>
  18771. <th>Type</th>
  18772. <th>Required</th>
  18773. <th>Restrictions</th>
  18774. <th>Description</th>
  18775. </tr>
  18776. </thead>
  18777. <tbody>
  18778. <tr>
  18779. <td>title</td>
  18780. <td>string</td>
  18781. <td>true</td>
  18782. <td>none</td>
  18783. <td>the title of the list</td>
  18784. </tr>
  18785. <tr>
  18786. <td>starred</td>
  18787. <td>boolean¦null</td>
  18788. <td>false</td>
  18789. <td>none</td>
  18790. <td>if a list is stared<br />then we put it on the top</td>
  18791. </tr>
  18792. <tr>
  18793. <td>archived</td>
  18794. <td>boolean</td>
  18795. <td>true</td>
  18796. <td>none</td>
  18797. <td>is the list archived</td>
  18798. </tr>
  18799. <tr>
  18800. <td>archivedAt</td>
  18801. <td>string¦null</td>
  18802. <td>false</td>
  18803. <td>none</td>
  18804. <td>latest archiving date</td>
  18805. </tr>
  18806. <tr>
  18807. <td>boardId</td>
  18808. <td>string</td>
  18809. <td>true</td>
  18810. <td>none</td>
  18811. <td>the board associated to this list</td>
  18812. </tr>
  18813. <tr>
  18814. <td>swimlaneId</td>
  18815. <td>string</td>
  18816. <td>true</td>
  18817. <td>none</td>
  18818. <td>the swimlane associated to this list. Used for templates</td>
  18819. </tr>
  18820. <tr>
  18821. <td>createdAt</td>
  18822. <td>string</td>
  18823. <td>true</td>
  18824. <td>none</td>
  18825. <td>creation date</td>
  18826. </tr>
  18827. <tr>
  18828. <td>sort</td>
  18829. <td>number¦null</td>
  18830. <td>false</td>
  18831. <td>none</td>
  18832. <td>is the list sorted</td>
  18833. </tr>
  18834. <tr>
  18835. <td>width</td>
  18836. <td>string¦null</td>
  18837. <td>false</td>
  18838. <td>none</td>
  18839. <td>list width, default 270px</td>
  18840. </tr>
  18841. <tr>
  18842. <td>height</td>
  18843. <td>string¦null</td>
  18844. <td>false</td>
  18845. <td>none</td>
  18846. <td>list height</td>
  18847. </tr>
  18848. <tr>
  18849. <td>updatedAt</td>
  18850. <td>string¦null</td>
  18851. <td>false</td>
  18852. <td>none</td>
  18853. <td>last update of the list</td>
  18854. </tr>
  18855. <tr>
  18856. <td>modifiedAt</td>
  18857. <td>string</td>
  18858. <td>true</td>
  18859. <td>none</td>
  18860. <td>none</td>
  18861. </tr>
  18862. <tr>
  18863. <td>wipLimit</td>
  18864. <td><a href="#schemalistswiplimit">ListsWiplimit</a></td>
  18865. <td>false</td>
  18866. <td>none</td>
  18867. <td>none</td>
  18868. </tr>
  18869. <tr>
  18870. <td>color</td>
  18871. <td>string¦null</td>
  18872. <td>false</td>
  18873. <td>none</td>
  18874. <td>the color of the list</td>
  18875. </tr>
  18876. <tr>
  18877. <td>type</td>
  18878. <td>string</td>
  18879. <td>true</td>
  18880. <td>none</td>
  18881. <td>The type of list</td>
  18882. </tr>
  18883. </tbody>
  18884. </table>
  18885. <h4 id="enumerated-values-5">Enumerated Values</h4>
  18886. <table>
  18887. <thead>
  18888. <tr>
  18889. <th>Property</th>
  18890. <th>Value</th>
  18891. </tr>
  18892. </thead>
  18893. <tbody>
  18894. <tr>
  18895. <td>color</td>
  18896. <td>white</td>
  18897. </tr>
  18898. <tr>
  18899. <td>color</td>
  18900. <td>green</td>
  18901. </tr>
  18902. <tr>
  18903. <td>color</td>
  18904. <td>yellow</td>
  18905. </tr>
  18906. <tr>
  18907. <td>color</td>
  18908. <td>orange</td>
  18909. </tr>
  18910. <tr>
  18911. <td>color</td>
  18912. <td>red</td>
  18913. </tr>
  18914. <tr>
  18915. <td>color</td>
  18916. <td>purple</td>
  18917. </tr>
  18918. <tr>
  18919. <td>color</td>
  18920. <td>blue</td>
  18921. </tr>
  18922. <tr>
  18923. <td>color</td>
  18924. <td>sky</td>
  18925. </tr>
  18926. <tr>
  18927. <td>color</td>
  18928. <td>lime</td>
  18929. </tr>
  18930. <tr>
  18931. <td>color</td>
  18932. <td>pink</td>
  18933. </tr>
  18934. <tr>
  18935. <td>color</td>
  18936. <td>black</td>
  18937. </tr>
  18938. <tr>
  18939. <td>color</td>
  18940. <td>silver</td>
  18941. </tr>
  18942. <tr>
  18943. <td>color</td>
  18944. <td>peachpuff</td>
  18945. </tr>
  18946. <tr>
  18947. <td>color</td>
  18948. <td>crimson</td>
  18949. </tr>
  18950. <tr>
  18951. <td>color</td>
  18952. <td>plum</td>
  18953. </tr>
  18954. <tr>
  18955. <td>color</td>
  18956. <td>darkgreen</td>
  18957. </tr>
  18958. <tr>
  18959. <td>color</td>
  18960. <td>slateblue</td>
  18961. </tr>
  18962. <tr>
  18963. <td>color</td>
  18964. <td>magenta</td>
  18965. </tr>
  18966. <tr>
  18967. <td>color</td>
  18968. <td>gold</td>
  18969. </tr>
  18970. <tr>
  18971. <td>color</td>
  18972. <td>navy</td>
  18973. </tr>
  18974. <tr>
  18975. <td>color</td>
  18976. <td>gray</td>
  18977. </tr>
  18978. <tr>
  18979. <td>color</td>
  18980. <td>saddlebrown</td>
  18981. </tr>
  18982. <tr>
  18983. <td>color</td>
  18984. <td>paleturquoise</td>
  18985. </tr>
  18986. <tr>
  18987. <td>color</td>
  18988. <td>mistyrose</td>
  18989. </tr>
  18990. <tr>
  18991. <td>color</td>
  18992. <td>indigo</td>
  18993. </tr>
  18994. </tbody>
  18995. </table>
  18996. <h2 id="tocs_listswiplimit">ListsWiplimit</h2>
  18997. <p><a id="schemalistswiplimit"></a>
  18998. <a id="schema_ListsWiplimit"></a>
  18999. <a id="tocSlistswiplimit"></a>
  19000. <a id="tocslistswiplimit"></a></p>
  19001. <pre class="highlight tab tab-json"><code>{
  19002. <span class="hljs-attr">&quot;value&quot;</span>: <span class="hljs-number">0</span>,
  19003. <span class="hljs-attr">&quot;enabled&quot;</span>: <span class="hljs-literal">true</span>,
  19004. <span class="hljs-attr">&quot;soft&quot;</span>: <span class="hljs-literal">true</span>
  19005. }
  19006. </code></pre>
  19007. <h3 id="properties-18">Properties</h3>
  19008. <table>
  19009. <thead>
  19010. <tr>
  19011. <th>Name</th>
  19012. <th>Type</th>
  19013. <th>Required</th>
  19014. <th>Restrictions</th>
  19015. <th>Description</th>
  19016. </tr>
  19017. </thead>
  19018. <tbody>
  19019. <tr>
  19020. <td>value</td>
  19021. <td>number</td>
  19022. <td>true</td>
  19023. <td>none</td>
  19024. <td>value of the WIP</td>
  19025. </tr>
  19026. <tr>
  19027. <td>enabled</td>
  19028. <td>boolean</td>
  19029. <td>true</td>
  19030. <td>none</td>
  19031. <td>is the WIP enabled</td>
  19032. </tr>
  19033. <tr>
  19034. <td>soft</td>
  19035. <td>boolean</td>
  19036. <td>true</td>
  19037. <td>none</td>
  19038. <td>is the WIP a soft or hard requirement</td>
  19039. </tr>
  19040. </tbody>
  19041. </table>
  19042. <h2 id="tocs_swimlanes">Swimlanes</h2>
  19043. <p><a id="schemaswimlanes"></a>
  19044. <a id="schema_Swimlanes"></a>
  19045. <a id="tocSswimlanes"></a>
  19046. <a id="tocsswimlanes"></a></p>
  19047. <pre class="highlight tab tab-json"><code>{
  19048. <span class="hljs-attr">&quot;title&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19049. <span class="hljs-attr">&quot;archived&quot;</span>: <span class="hljs-literal">true</span>,
  19050. <span class="hljs-attr">&quot;archivedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19051. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19052. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19053. <span class="hljs-attr">&quot;sort&quot;</span>: <span class="hljs-number">0</span>,
  19054. <span class="hljs-attr">&quot;color&quot;</span>: <span class="hljs-string">&quot;white&quot;</span>,
  19055. <span class="hljs-attr">&quot;updatedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19056. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19057. <span class="hljs-attr">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19058. }
  19059. </code></pre>
  19060. <p>A swimlane is an line in the kaban board.</p>
  19061. <h3 id="properties-19">Properties</h3>
  19062. <table>
  19063. <thead>
  19064. <tr>
  19065. <th>Name</th>
  19066. <th>Type</th>
  19067. <th>Required</th>
  19068. <th>Restrictions</th>
  19069. <th>Description</th>
  19070. </tr>
  19071. </thead>
  19072. <tbody>
  19073. <tr>
  19074. <td>title</td>
  19075. <td>string</td>
  19076. <td>true</td>
  19077. <td>none</td>
  19078. <td>the title of the swimlane</td>
  19079. </tr>
  19080. <tr>
  19081. <td>archived</td>
  19082. <td>boolean</td>
  19083. <td>true</td>
  19084. <td>none</td>
  19085. <td>is the swimlane archived?</td>
  19086. </tr>
  19087. <tr>
  19088. <td>archivedAt</td>
  19089. <td>string¦null</td>
  19090. <td>false</td>
  19091. <td>none</td>
  19092. <td>latest archiving date of the swimlane</td>
  19093. </tr>
  19094. <tr>
  19095. <td>boardId</td>
  19096. <td>string</td>
  19097. <td>true</td>
  19098. <td>none</td>
  19099. <td>the ID of the board the swimlane is attached to</td>
  19100. </tr>
  19101. <tr>
  19102. <td>createdAt</td>
  19103. <td>string</td>
  19104. <td>true</td>
  19105. <td>none</td>
  19106. <td>creation date of the swimlane</td>
  19107. </tr>
  19108. <tr>
  19109. <td>sort</td>
  19110. <td>number¦null</td>
  19111. <td>false</td>
  19112. <td>none</td>
  19113. <td>the sort value of the swimlane</td>
  19114. </tr>
  19115. <tr>
  19116. <td>color</td>
  19117. <td>string¦null</td>
  19118. <td>false</td>
  19119. <td>none</td>
  19120. <td>the color of the swimlane</td>
  19121. </tr>
  19122. <tr>
  19123. <td>updatedAt</td>
  19124. <td>string¦null</td>
  19125. <td>false</td>
  19126. <td>none</td>
  19127. <td>when was the swimlane last edited</td>
  19128. </tr>
  19129. <tr>
  19130. <td>modifiedAt</td>
  19131. <td>string</td>
  19132. <td>true</td>
  19133. <td>none</td>
  19134. <td>none</td>
  19135. </tr>
  19136. <tr>
  19137. <td>type</td>
  19138. <td>string</td>
  19139. <td>true</td>
  19140. <td>none</td>
  19141. <td>The type of swimlane</td>
  19142. </tr>
  19143. </tbody>
  19144. </table>
  19145. <h4 id="enumerated-values-6">Enumerated Values</h4>
  19146. <table>
  19147. <thead>
  19148. <tr>
  19149. <th>Property</th>
  19150. <th>Value</th>
  19151. </tr>
  19152. </thead>
  19153. <tbody>
  19154. <tr>
  19155. <td>color</td>
  19156. <td>white</td>
  19157. </tr>
  19158. <tr>
  19159. <td>color</td>
  19160. <td>green</td>
  19161. </tr>
  19162. <tr>
  19163. <td>color</td>
  19164. <td>yellow</td>
  19165. </tr>
  19166. <tr>
  19167. <td>color</td>
  19168. <td>orange</td>
  19169. </tr>
  19170. <tr>
  19171. <td>color</td>
  19172. <td>red</td>
  19173. </tr>
  19174. <tr>
  19175. <td>color</td>
  19176. <td>purple</td>
  19177. </tr>
  19178. <tr>
  19179. <td>color</td>
  19180. <td>blue</td>
  19181. </tr>
  19182. <tr>
  19183. <td>color</td>
  19184. <td>sky</td>
  19185. </tr>
  19186. <tr>
  19187. <td>color</td>
  19188. <td>lime</td>
  19189. </tr>
  19190. <tr>
  19191. <td>color</td>
  19192. <td>pink</td>
  19193. </tr>
  19194. <tr>
  19195. <td>color</td>
  19196. <td>black</td>
  19197. </tr>
  19198. <tr>
  19199. <td>color</td>
  19200. <td>silver</td>
  19201. </tr>
  19202. <tr>
  19203. <td>color</td>
  19204. <td>peachpuff</td>
  19205. </tr>
  19206. <tr>
  19207. <td>color</td>
  19208. <td>crimson</td>
  19209. </tr>
  19210. <tr>
  19211. <td>color</td>
  19212. <td>plum</td>
  19213. </tr>
  19214. <tr>
  19215. <td>color</td>
  19216. <td>darkgreen</td>
  19217. </tr>
  19218. <tr>
  19219. <td>color</td>
  19220. <td>slateblue</td>
  19221. </tr>
  19222. <tr>
  19223. <td>color</td>
  19224. <td>magenta</td>
  19225. </tr>
  19226. <tr>
  19227. <td>color</td>
  19228. <td>gold</td>
  19229. </tr>
  19230. <tr>
  19231. <td>color</td>
  19232. <td>navy</td>
  19233. </tr>
  19234. <tr>
  19235. <td>color</td>
  19236. <td>gray</td>
  19237. </tr>
  19238. <tr>
  19239. <td>color</td>
  19240. <td>saddlebrown</td>
  19241. </tr>
  19242. <tr>
  19243. <td>color</td>
  19244. <td>paleturquoise</td>
  19245. </tr>
  19246. <tr>
  19247. <td>color</td>
  19248. <td>mistyrose</td>
  19249. </tr>
  19250. <tr>
  19251. <td>color</td>
  19252. <td>indigo</td>
  19253. </tr>
  19254. </tbody>
  19255. </table>
  19256. <h2 id="tocs_users">Users</h2>
  19257. <p><a id="schemausers"></a>
  19258. <a id="schema_Users"></a>
  19259. <a id="tocSusers"></a>
  19260. <a id="tocsusers"></a></p>
  19261. <pre class="highlight tab tab-json"><code>{
  19262. <span class="hljs-attr">&quot;username&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19263. <span class="hljs-attr">&quot;orgs&quot;</span>: [
  19264. {
  19265. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19266. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19267. }
  19268. ],
  19269. <span class="hljs-attr">&quot;teams&quot;</span>: [
  19270. {
  19271. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19272. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19273. }
  19274. ],
  19275. <span class="hljs-attr">&quot;emails&quot;</span>: [
  19276. {
  19277. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19278. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  19279. }
  19280. ],
  19281. <span class="hljs-attr">&quot;createdAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19282. <span class="hljs-attr">&quot;modifiedAt&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19283. <span class="hljs-attr">&quot;profile&quot;</span>: {
  19284. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19285. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  19286. <span class="hljs-string">&quot;string&quot;</span>
  19287. ],
  19288. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19289. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  19290. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  19291. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  19292. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  19293. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  19294. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  19295. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19296. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  19297. <span class="hljs-string">&quot;string&quot;</span>
  19298. ],
  19299. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19300. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  19301. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  19302. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  19303. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  19304. {
  19305. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19306. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19307. }
  19308. ],
  19309. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  19310. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  19311. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  19312. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  19313. <span class="hljs-string">&quot;string&quot;</span>
  19314. ],
  19315. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19316. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  19317. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  19318. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19319. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19320. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19321. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19322. },
  19323. <span class="hljs-attr">&quot;services&quot;</span>: {},
  19324. <span class="hljs-attr">&quot;heartbeat&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19325. <span class="hljs-attr">&quot;isAdmin&quot;</span>: <span class="hljs-literal">true</span>,
  19326. <span class="hljs-attr">&quot;createdThroughApi&quot;</span>: <span class="hljs-literal">true</span>,
  19327. <span class="hljs-attr">&quot;loginDisabled&quot;</span>: <span class="hljs-literal">true</span>,
  19328. <span class="hljs-attr">&quot;authenticationMethod&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19329. <span class="hljs-attr">&quot;sessionData&quot;</span>: {
  19330. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  19331. },
  19332. <span class="hljs-attr">&quot;importUsernames&quot;</span>: [
  19333. <span class="hljs-string">&quot;string&quot;</span>
  19334. ]
  19335. }
  19336. </code></pre>
  19337. <p>A User in wekan</p>
  19338. <h3 id="properties-20">Properties</h3>
  19339. <table>
  19340. <thead>
  19341. <tr>
  19342. <th>Name</th>
  19343. <th>Type</th>
  19344. <th>Required</th>
  19345. <th>Restrictions</th>
  19346. <th>Description</th>
  19347. </tr>
  19348. </thead>
  19349. <tbody>
  19350. <tr>
  19351. <td>username</td>
  19352. <td>string¦null</td>
  19353. <td>false</td>
  19354. <td>none</td>
  19355. <td>the username of the user</td>
  19356. </tr>
  19357. <tr>
  19358. <td>orgs</td>
  19359. <td>[<a href="#schemausersorgs">UsersOrgs</a>]¦null</td>
  19360. <td>false</td>
  19361. <td>none</td>
  19362. <td>the list of organizations that a user belongs to</td>
  19363. </tr>
  19364. <tr>
  19365. <td>teams</td>
  19366. <td>[<a href="#schemausersteams">UsersTeams</a>]¦null</td>
  19367. <td>false</td>
  19368. <td>none</td>
  19369. <td>the list of teams that a user belongs to</td>
  19370. </tr>
  19371. <tr>
  19372. <td>emails</td>
  19373. <td>[<a href="#schemausersemails">UsersEmails</a>]¦null</td>
  19374. <td>false</td>
  19375. <td>none</td>
  19376. <td>the list of emails attached to a user</td>
  19377. </tr>
  19378. <tr>
  19379. <td>createdAt</td>
  19380. <td>string</td>
  19381. <td>true</td>
  19382. <td>none</td>
  19383. <td>creation date of the user</td>
  19384. </tr>
  19385. <tr>
  19386. <td>modifiedAt</td>
  19387. <td>string</td>
  19388. <td>true</td>
  19389. <td>none</td>
  19390. <td>none</td>
  19391. </tr>
  19392. <tr>
  19393. <td>profile</td>
  19394. <td><a href="#schemausersprofile">UsersProfile</a></td>
  19395. <td>false</td>
  19396. <td>none</td>
  19397. <td>none</td>
  19398. </tr>
  19399. <tr>
  19400. <td>services</td>
  19401. <td>object¦null</td>
  19402. <td>false</td>
  19403. <td>none</td>
  19404. <td>services field of the user</td>
  19405. </tr>
  19406. <tr>
  19407. <td>heartbeat</td>
  19408. <td>string¦null</td>
  19409. <td>false</td>
  19410. <td>none</td>
  19411. <td>last time the user has been seen</td>
  19412. </tr>
  19413. <tr>
  19414. <td>isAdmin</td>
  19415. <td>boolean¦null</td>
  19416. <td>false</td>
  19417. <td>none</td>
  19418. <td>is the user an admin of the board?</td>
  19419. </tr>
  19420. <tr>
  19421. <td>createdThroughApi</td>
  19422. <td>boolean¦null</td>
  19423. <td>false</td>
  19424. <td>none</td>
  19425. <td>was the user created through the API?</td>
  19426. </tr>
  19427. <tr>
  19428. <td>loginDisabled</td>
  19429. <td>boolean¦null</td>
  19430. <td>false</td>
  19431. <td>none</td>
  19432. <td>loginDisabled field of the user</td>
  19433. </tr>
  19434. <tr>
  19435. <td>authenticationMethod</td>
  19436. <td>string</td>
  19437. <td>true</td>
  19438. <td>none</td>
  19439. <td>authentication method of the user</td>
  19440. </tr>
  19441. <tr>
  19442. <td>sessionData</td>
  19443. <td><a href="#schemauserssessiondata">UsersSessiondata</a></td>
  19444. <td>false</td>
  19445. <td>none</td>
  19446. <td>none</td>
  19447. </tr>
  19448. <tr>
  19449. <td>importUsernames</td>
  19450. <td>[string]¦null</td>
  19451. <td>false</td>
  19452. <td>none</td>
  19453. <td>username for imported</td>
  19454. </tr>
  19455. </tbody>
  19456. </table>
  19457. <h2 id="tocs_usersprofile">UsersProfile</h2>
  19458. <p><a id="schemausersprofile"></a>
  19459. <a id="schema_UsersProfile"></a>
  19460. <a id="tocSusersprofile"></a>
  19461. <a id="tocsusersprofile"></a></p>
  19462. <pre class="highlight tab tab-json"><code>{
  19463. <span class="hljs-attr">&quot;avatarUrl&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19464. <span class="hljs-attr">&quot;emailBuffer&quot;</span>: [
  19465. <span class="hljs-string">&quot;string&quot;</span>
  19466. ],
  19467. <span class="hljs-attr">&quot;fullname&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19468. <span class="hljs-attr">&quot;showDesktopDragHandles&quot;</span>: <span class="hljs-literal">true</span>,
  19469. <span class="hljs-attr">&quot;hideCheckedItems&quot;</span>: <span class="hljs-literal">true</span>,
  19470. <span class="hljs-attr">&quot;cardMaximized&quot;</span>: <span class="hljs-literal">true</span>,
  19471. <span class="hljs-attr">&quot;customFieldsGrid&quot;</span>: <span class="hljs-literal">true</span>,
  19472. <span class="hljs-attr">&quot;hiddenSystemMessages&quot;</span>: <span class="hljs-literal">true</span>,
  19473. <span class="hljs-attr">&quot;hiddenMinicardLabelText&quot;</span>: <span class="hljs-literal">true</span>,
  19474. <span class="hljs-attr">&quot;initials&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19475. <span class="hljs-attr">&quot;invitedBoards&quot;</span>: [
  19476. <span class="hljs-string">&quot;string&quot;</span>
  19477. ],
  19478. <span class="hljs-attr">&quot;language&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19479. <span class="hljs-attr">&quot;moveAndCopyDialog&quot;</span>: {},
  19480. <span class="hljs-attr">&quot;moveChecklistDialog&quot;</span>: {},
  19481. <span class="hljs-attr">&quot;copyChecklistDialog&quot;</span>: {},
  19482. <span class="hljs-attr">&quot;notifications&quot;</span>: [
  19483. {
  19484. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19485. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19486. }
  19487. ],
  19488. <span class="hljs-attr">&quot;rescueCardDescription&quot;</span>: <span class="hljs-literal">true</span>,
  19489. <span class="hljs-attr">&quot;showCardsCountAt&quot;</span>: <span class="hljs-number">0</span>,
  19490. <span class="hljs-attr">&quot;startDayOfWeek&quot;</span>: <span class="hljs-number">0</span>,
  19491. <span class="hljs-attr">&quot;starredBoards&quot;</span>: [
  19492. <span class="hljs-string">&quot;string&quot;</span>
  19493. ],
  19494. <span class="hljs-attr">&quot;icode&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19495. <span class="hljs-attr">&quot;boardView&quot;</span>: <span class="hljs-string">&quot;board-view-swimlanes&quot;</span>,
  19496. <span class="hljs-attr">&quot;listSortBy&quot;</span>: <span class="hljs-string">&quot;-modifiedat&quot;</span>,
  19497. <span class="hljs-attr">&quot;templatesBoardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19498. <span class="hljs-attr">&quot;cardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19499. <span class="hljs-attr">&quot;listTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19500. <span class="hljs-attr">&quot;boardTemplatesSwimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19501. }
  19502. </code></pre>
  19503. <h3 id="properties-21">Properties</h3>
  19504. <table>
  19505. <thead>
  19506. <tr>
  19507. <th>Name</th>
  19508. <th>Type</th>
  19509. <th>Required</th>
  19510. <th>Restrictions</th>
  19511. <th>Description</th>
  19512. </tr>
  19513. </thead>
  19514. <tbody>
  19515. <tr>
  19516. <td>avatarUrl</td>
  19517. <td>string</td>
  19518. <td>false</td>
  19519. <td>none</td>
  19520. <td>URL of the avatar of the user</td>
  19521. </tr>
  19522. <tr>
  19523. <td>emailBuffer</td>
  19524. <td>[string]</td>
  19525. <td>false</td>
  19526. <td>none</td>
  19527. <td>list of email buffers of the user</td>
  19528. </tr>
  19529. <tr>
  19530. <td>fullname</td>
  19531. <td>string</td>
  19532. <td>false</td>
  19533. <td>none</td>
  19534. <td>full name of the user</td>
  19535. </tr>
  19536. <tr>
  19537. <td>showDesktopDragHandles</td>
  19538. <td>boolean</td>
  19539. <td>false</td>
  19540. <td>none</td>
  19541. <td>does the user want to show desktop drag handles?</td>
  19542. </tr>
  19543. <tr>
  19544. <td>hideCheckedItems</td>
  19545. <td>boolean</td>
  19546. <td>false</td>
  19547. <td>none</td>
  19548. <td>does the user want to hide checked checklist items?</td>
  19549. </tr>
  19550. <tr>
  19551. <td>cardMaximized</td>
  19552. <td>boolean</td>
  19553. <td>false</td>
  19554. <td>none</td>
  19555. <td>has user clicked maximize card?</td>
  19556. </tr>
  19557. <tr>
  19558. <td>customFieldsGrid</td>
  19559. <td>boolean</td>
  19560. <td>false</td>
  19561. <td>none</td>
  19562. <td>has user at card Custom Fields have Grid (false) or one per row (true) layout?</td>
  19563. </tr>
  19564. <tr>
  19565. <td>hiddenSystemMessages</td>
  19566. <td>boolean</td>
  19567. <td>false</td>
  19568. <td>none</td>
  19569. <td>does the user want to hide system messages?</td>
  19570. </tr>
  19571. <tr>
  19572. <td>hiddenMinicardLabelText</td>
  19573. <td>boolean</td>
  19574. <td>false</td>
  19575. <td>none</td>
  19576. <td>does the user want to hide minicard label texts?</td>
  19577. </tr>
  19578. <tr>
  19579. <td>initials</td>
  19580. <td>string</td>
  19581. <td>false</td>
  19582. <td>none</td>
  19583. <td>initials of the user</td>
  19584. </tr>
  19585. <tr>
  19586. <td>invitedBoards</td>
  19587. <td>[string]</td>
  19588. <td>false</td>
  19589. <td>none</td>
  19590. <td>board IDs the user has been invited to</td>
  19591. </tr>
  19592. <tr>
  19593. <td>language</td>
  19594. <td>string</td>
  19595. <td>false</td>
  19596. <td>none</td>
  19597. <td>language of the user</td>
  19598. </tr>
  19599. <tr>
  19600. <td>moveAndCopyDialog</td>
  19601. <td>object</td>
  19602. <td>false</td>
  19603. <td>none</td>
  19604. <td>move and copy card dialog</td>
  19605. </tr>
  19606. <tr>
  19607. <td>moveChecklistDialog</td>
  19608. <td>object</td>
  19609. <td>false</td>
  19610. <td>none</td>
  19611. <td>move checklist dialog</td>
  19612. </tr>
  19613. <tr>
  19614. <td>copyChecklistDialog</td>
  19615. <td>object</td>
  19616. <td>false</td>
  19617. <td>none</td>
  19618. <td>copy checklist dialog</td>
  19619. </tr>
  19620. <tr>
  19621. <td>notifications</td>
  19622. <td>[<a href="#schemausersprofilenotifications">UsersProfileNotifications</a>]</td>
  19623. <td>false</td>
  19624. <td>none</td>
  19625. <td>enabled notifications for the user</td>
  19626. </tr>
  19627. <tr>
  19628. <td>rescueCardDescription</td>
  19629. <td>boolean</td>
  19630. <td>false</td>
  19631. <td>none</td>
  19632. <td>show dialog for saving card description on unintentional card closing</td>
  19633. </tr>
  19634. <tr>
  19635. <td>showCardsCountAt</td>
  19636. <td>number</td>
  19637. <td>false</td>
  19638. <td>none</td>
  19639. <td>showCardCountAt field of the user</td>
  19640. </tr>
  19641. <tr>
  19642. <td>startDayOfWeek</td>
  19643. <td>number</td>
  19644. <td>false</td>
  19645. <td>none</td>
  19646. <td>startDayOfWeek field of the user</td>
  19647. </tr>
  19648. <tr>
  19649. <td>starredBoards</td>
  19650. <td>[string]</td>
  19651. <td>false</td>
  19652. <td>none</td>
  19653. <td>list of starred board IDs</td>
  19654. </tr>
  19655. <tr>
  19656. <td>icode</td>
  19657. <td>string</td>
  19658. <td>false</td>
  19659. <td>none</td>
  19660. <td>icode</td>
  19661. </tr>
  19662. <tr>
  19663. <td>boardView</td>
  19664. <td>string</td>
  19665. <td>false</td>
  19666. <td>none</td>
  19667. <td>boardView field of the user</td>
  19668. </tr>
  19669. <tr>
  19670. <td>listSortBy</td>
  19671. <td>string</td>
  19672. <td>false</td>
  19673. <td>none</td>
  19674. <td>default sort list for user</td>
  19675. </tr>
  19676. <tr>
  19677. <td>templatesBoardId</td>
  19678. <td>string</td>
  19679. <td>true</td>
  19680. <td>none</td>
  19681. <td>Reference to the templates board</td>
  19682. </tr>
  19683. <tr>
  19684. <td>cardTemplatesSwimlaneId</td>
  19685. <td>string</td>
  19686. <td>true</td>
  19687. <td>none</td>
  19688. <td>Reference to the card templates swimlane Id</td>
  19689. </tr>
  19690. <tr>
  19691. <td>listTemplatesSwimlaneId</td>
  19692. <td>string</td>
  19693. <td>true</td>
  19694. <td>none</td>
  19695. <td>Reference to the list templates swimlane Id</td>
  19696. </tr>
  19697. <tr>
  19698. <td>boardTemplatesSwimlaneId</td>
  19699. <td>string</td>
  19700. <td>true</td>
  19701. <td>none</td>
  19702. <td>Reference to the board templates swimlane Id</td>
  19703. </tr>
  19704. </tbody>
  19705. </table>
  19706. <h4 id="enumerated-values-7">Enumerated Values</h4>
  19707. <table>
  19708. <thead>
  19709. <tr>
  19710. <th>Property</th>
  19711. <th>Value</th>
  19712. </tr>
  19713. </thead>
  19714. <tbody>
  19715. <tr>
  19716. <td>boardView</td>
  19717. <td>board-view-swimlanes</td>
  19718. </tr>
  19719. <tr>
  19720. <td>boardView</td>
  19721. <td>board-view-lists</td>
  19722. </tr>
  19723. <tr>
  19724. <td>boardView</td>
  19725. <td>board-view-cal</td>
  19726. </tr>
  19727. <tr>
  19728. <td>listSortBy</td>
  19729. <td>-modifiedat</td>
  19730. </tr>
  19731. <tr>
  19732. <td>listSortBy</td>
  19733. <td>modifiedat</td>
  19734. </tr>
  19735. <tr>
  19736. <td>listSortBy</td>
  19737. <td>-title</td>
  19738. </tr>
  19739. <tr>
  19740. <td>listSortBy</td>
  19741. <td>title</td>
  19742. </tr>
  19743. <tr>
  19744. <td>listSortBy</td>
  19745. <td>-sort</td>
  19746. </tr>
  19747. <tr>
  19748. <td>listSortBy</td>
  19749. <td>sort</td>
  19750. </tr>
  19751. </tbody>
  19752. </table>
  19753. <h2 id="tocs_userssessiondata">UsersSessiondata</h2>
  19754. <p><a id="schemauserssessiondata"></a>
  19755. <a id="schema_UsersSessiondata"></a>
  19756. <a id="tocSuserssessiondata"></a>
  19757. <a id="tocsuserssessiondata"></a></p>
  19758. <pre class="highlight tab tab-json"><code>{
  19759. <span class="hljs-attr">&quot;totalHits&quot;</span>: <span class="hljs-number">0</span>
  19760. }
  19761. </code></pre>
  19762. <h3 id="properties-22">Properties</h3>
  19763. <table>
  19764. <thead>
  19765. <tr>
  19766. <th>Name</th>
  19767. <th>Type</th>
  19768. <th>Required</th>
  19769. <th>Restrictions</th>
  19770. <th>Description</th>
  19771. </tr>
  19772. </thead>
  19773. <tbody>
  19774. <tr>
  19775. <td>totalHits</td>
  19776. <td>number</td>
  19777. <td>false</td>
  19778. <td>none</td>
  19779. <td>Total hits from last searchquery['members.userId'] = Meteor.userId();<br />last hit that was returned</td>
  19780. </tr>
  19781. </tbody>
  19782. </table>
  19783. <h2 id="tocs_usersorgs">UsersOrgs</h2>
  19784. <p><a id="schemausersorgs"></a>
  19785. <a id="schema_UsersOrgs"></a>
  19786. <a id="tocSusersorgs"></a>
  19787. <a id="tocsusersorgs"></a></p>
  19788. <pre class="highlight tab tab-json"><code>{
  19789. <span class="hljs-attr">&quot;orgId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19790. <span class="hljs-attr">&quot;orgDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19791. }
  19792. </code></pre>
  19793. <h3 id="properties-23">Properties</h3>
  19794. <table>
  19795. <thead>
  19796. <tr>
  19797. <th>Name</th>
  19798. <th>Type</th>
  19799. <th>Required</th>
  19800. <th>Restrictions</th>
  19801. <th>Description</th>
  19802. </tr>
  19803. </thead>
  19804. <tbody>
  19805. <tr>
  19806. <td>orgId</td>
  19807. <td>string</td>
  19808. <td>true</td>
  19809. <td>none</td>
  19810. <td>The uniq ID of the organization</td>
  19811. </tr>
  19812. <tr>
  19813. <td>orgDisplayName</td>
  19814. <td>string</td>
  19815. <td>true</td>
  19816. <td>none</td>
  19817. <td>The display name of the organization</td>
  19818. </tr>
  19819. </tbody>
  19820. </table>
  19821. <h2 id="tocs_usersteams">UsersTeams</h2>
  19822. <p><a id="schemausersteams"></a>
  19823. <a id="schema_UsersTeams"></a>
  19824. <a id="tocSusersteams"></a>
  19825. <a id="tocsusersteams"></a></p>
  19826. <pre class="highlight tab tab-json"><code>{
  19827. <span class="hljs-attr">&quot;teamId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19828. <span class="hljs-attr">&quot;teamDisplayName&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19829. }
  19830. </code></pre>
  19831. <h3 id="properties-24">Properties</h3>
  19832. <table>
  19833. <thead>
  19834. <tr>
  19835. <th>Name</th>
  19836. <th>Type</th>
  19837. <th>Required</th>
  19838. <th>Restrictions</th>
  19839. <th>Description</th>
  19840. </tr>
  19841. </thead>
  19842. <tbody>
  19843. <tr>
  19844. <td>teamId</td>
  19845. <td>string</td>
  19846. <td>true</td>
  19847. <td>none</td>
  19848. <td>The uniq ID of the team</td>
  19849. </tr>
  19850. <tr>
  19851. <td>teamDisplayName</td>
  19852. <td>string</td>
  19853. <td>true</td>
  19854. <td>none</td>
  19855. <td>The display name of the team</td>
  19856. </tr>
  19857. </tbody>
  19858. </table>
  19859. <h2 id="tocs_usersemails">UsersEmails</h2>
  19860. <p><a id="schemausersemails"></a>
  19861. <a id="schema_UsersEmails"></a>
  19862. <a id="tocSusersemails"></a>
  19863. <a id="tocsusersemails"></a></p>
  19864. <pre class="highlight tab tab-json"><code>{
  19865. <span class="hljs-attr">&quot;address&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19866. <span class="hljs-attr">&quot;verified&quot;</span>: <span class="hljs-literal">true</span>
  19867. }
  19868. </code></pre>
  19869. <h3 id="properties-25">Properties</h3>
  19870. <table>
  19871. <thead>
  19872. <tr>
  19873. <th>Name</th>
  19874. <th>Type</th>
  19875. <th>Required</th>
  19876. <th>Restrictions</th>
  19877. <th>Description</th>
  19878. </tr>
  19879. </thead>
  19880. <tbody>
  19881. <tr>
  19882. <td>address</td>
  19883. <td>string</td>
  19884. <td>true</td>
  19885. <td>none</td>
  19886. <td>The email address</td>
  19887. </tr>
  19888. <tr>
  19889. <td>verified</td>
  19890. <td>boolean</td>
  19891. <td>true</td>
  19892. <td>none</td>
  19893. <td>Has the email been verified</td>
  19894. </tr>
  19895. </tbody>
  19896. </table>
  19897. <h2 id="tocs_usersprofilemoveandcopydialog">UsersProfileMoveandcopydialog</h2>
  19898. <p><a id="schemausersprofilemoveandcopydialog"></a>
  19899. <a id="schema_UsersProfileMoveandcopydialog"></a>
  19900. <a id="tocSusersprofilemoveandcopydialog"></a>
  19901. <a id="tocsusersprofilemoveandcopydialog"></a></p>
  19902. <pre class="highlight tab tab-json"><code>{
  19903. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19904. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19905. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19906. }
  19907. </code></pre>
  19908. <h3 id="properties-26">Properties</h3>
  19909. <table>
  19910. <thead>
  19911. <tr>
  19912. <th>Name</th>
  19913. <th>Type</th>
  19914. <th>Required</th>
  19915. <th>Restrictions</th>
  19916. <th>Description</th>
  19917. </tr>
  19918. </thead>
  19919. <tbody>
  19920. <tr>
  19921. <td>boardId</td>
  19922. <td>string</td>
  19923. <td>true</td>
  19924. <td>none</td>
  19925. <td>last selected board id</td>
  19926. </tr>
  19927. <tr>
  19928. <td>swimlaneId</td>
  19929. <td>string</td>
  19930. <td>true</td>
  19931. <td>none</td>
  19932. <td>last selected swimlane id</td>
  19933. </tr>
  19934. <tr>
  19935. <td>listId</td>
  19936. <td>string</td>
  19937. <td>true</td>
  19938. <td>none</td>
  19939. <td>last selected list id</td>
  19940. </tr>
  19941. </tbody>
  19942. </table>
  19943. <h2 id="tocs_usersprofilemovechecklistdialog">UsersProfileMovechecklistdialog</h2>
  19944. <p><a id="schemausersprofilemovechecklistdialog"></a>
  19945. <a id="schema_UsersProfileMovechecklistdialog"></a>
  19946. <a id="tocSusersprofilemovechecklistdialog"></a>
  19947. <a id="tocsusersprofilemovechecklistdialog"></a></p>
  19948. <pre class="highlight tab tab-json"><code>{
  19949. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19950. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19951. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  19952. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  19953. }
  19954. </code></pre>
  19955. <h3 id="properties-27">Properties</h3>
  19956. <table>
  19957. <thead>
  19958. <tr>
  19959. <th>Name</th>
  19960. <th>Type</th>
  19961. <th>Required</th>
  19962. <th>Restrictions</th>
  19963. <th>Description</th>
  19964. </tr>
  19965. </thead>
  19966. <tbody>
  19967. <tr>
  19968. <td>boardId</td>
  19969. <td>string</td>
  19970. <td>true</td>
  19971. <td>none</td>
  19972. <td>last selected board id</td>
  19973. </tr>
  19974. <tr>
  19975. <td>swimlaneId</td>
  19976. <td>string</td>
  19977. <td>true</td>
  19978. <td>none</td>
  19979. <td>last selected swimlane id</td>
  19980. </tr>
  19981. <tr>
  19982. <td>listId</td>
  19983. <td>string</td>
  19984. <td>true</td>
  19985. <td>none</td>
  19986. <td>last selected list id</td>
  19987. </tr>
  19988. <tr>
  19989. <td>cardId</td>
  19990. <td>string</td>
  19991. <td>true</td>
  19992. <td>none</td>
  19993. <td>last selected card id</td>
  19994. </tr>
  19995. </tbody>
  19996. </table>
  19997. <h2 id="tocs_usersprofilecopychecklistdialog">UsersProfileCopychecklistdialog</h2>
  19998. <p><a id="schemausersprofilecopychecklistdialog"></a>
  19999. <a id="schema_UsersProfileCopychecklistdialog"></a>
  20000. <a id="tocSusersprofilecopychecklistdialog"></a>
  20001. <a id="tocsusersprofilecopychecklistdialog"></a></p>
  20002. <pre class="highlight tab tab-json"><code>{
  20003. <span class="hljs-attr">&quot;boardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20004. <span class="hljs-attr">&quot;swimlaneId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20005. <span class="hljs-attr">&quot;listId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20006. <span class="hljs-attr">&quot;cardId&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20007. }
  20008. </code></pre>
  20009. <h3 id="properties-28">Properties</h3>
  20010. <table>
  20011. <thead>
  20012. <tr>
  20013. <th>Name</th>
  20014. <th>Type</th>
  20015. <th>Required</th>
  20016. <th>Restrictions</th>
  20017. <th>Description</th>
  20018. </tr>
  20019. </thead>
  20020. <tbody>
  20021. <tr>
  20022. <td>boardId</td>
  20023. <td>string</td>
  20024. <td>true</td>
  20025. <td>none</td>
  20026. <td>last selected board id</td>
  20027. </tr>
  20028. <tr>
  20029. <td>swimlaneId</td>
  20030. <td>string</td>
  20031. <td>true</td>
  20032. <td>none</td>
  20033. <td>last selected swimlane id</td>
  20034. </tr>
  20035. <tr>
  20036. <td>listId</td>
  20037. <td>string</td>
  20038. <td>true</td>
  20039. <td>none</td>
  20040. <td>last selected list id</td>
  20041. </tr>
  20042. <tr>
  20043. <td>cardId</td>
  20044. <td>string</td>
  20045. <td>true</td>
  20046. <td>none</td>
  20047. <td>last selected card id</td>
  20048. </tr>
  20049. </tbody>
  20050. </table>
  20051. <h2 id="tocs_usersprofilenotifications">UsersProfileNotifications</h2>
  20052. <p><a id="schemausersprofilenotifications"></a>
  20053. <a id="schema_UsersProfileNotifications"></a>
  20054. <a id="tocSusersprofilenotifications"></a>
  20055. <a id="tocsusersprofilenotifications"></a></p>
  20056. <pre class="highlight tab tab-json"><code>{
  20057. <span class="hljs-attr">&quot;activity&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
  20058. <span class="hljs-attr">&quot;read&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>
  20059. }
  20060. </code></pre>
  20061. <h3 id="properties-29">Properties</h3>
  20062. <table>
  20063. <thead>
  20064. <tr>
  20065. <th>Name</th>
  20066. <th>Type</th>
  20067. <th>Required</th>
  20068. <th>Restrictions</th>
  20069. <th>Description</th>
  20070. </tr>
  20071. </thead>
  20072. <tbody>
  20073. <tr>
  20074. <td>activity</td>
  20075. <td>string</td>
  20076. <td>true</td>
  20077. <td>none</td>
  20078. <td>The id of the activity this notification references</td>
  20079. </tr>
  20080. <tr>
  20081. <td>read</td>
  20082. <td>string</td>
  20083. <td>false</td>
  20084. <td>none</td>
  20085. <td>the date on which this notification was read</td>
  20086. </tr>
  20087. </tbody>
  20088. </table>
  20089. <!-- Renderer: Shins v2.6.0 -->
  20090. <!-- Generator: Widdershins v4.0.1 -->
  20091. <!-- backwards compatibility -->
  20092. <!-- backwards compatibility -->
  20093. <!-- backwards compatibility -->
  20094. <!-- backwards compatibility -->
  20095. <!-- backwards compatibility -->
  20096. <!-- backwards compatibility -->
  20097. <!-- backwards compatibility -->
  20098. <!-- backwards compatibility -->
  20099. <!-- backwards compatibility -->
  20100. <!-- backwards compatibility -->
  20101. <!-- backwards compatibility -->
  20102. <!-- backwards compatibility -->
  20103. <!-- backwards compatibility -->
  20104. <!-- backwards compatibility -->
  20105. <!-- backwards compatibility -->
  20106. <!-- backwards compatibility -->
  20107. <!-- backwards compatibility -->
  20108. <!-- backwards compatibility -->
  20109. <!-- backwards compatibility -->
  20110. <!-- backwards compatibility -->
  20111. <!-- backwards compatibility -->
  20112. <!-- backwards compatibility -->
  20113. <!-- backwards compatibility -->
  20114. <!-- backwards compatibility -->
  20115. <!-- backwards compatibility -->
  20116. <!-- backwards compatibility -->
  20117. <!-- backwards compatibility -->
  20118. <!-- backwards compatibility -->
  20119. <!-- backwards compatibility -->
  20120. </div>
  20121. <div class="dark-box">
  20122. <div class="lang-selector">
  20123. <a href="#" data-language-name="shell">Shell</a>
  20124. <a href="#" data-language-name="http">HTTP</a>
  20125. <a href="#" data-language-name="javascript">JavaScript</a>
  20126. <a href="#" data-language-name="javascript--nodejs">Node.js</a>
  20127. <a href="#" data-language-name="ruby">Ruby</a>
  20128. <a href="#" data-language-name="python">Python</a>
  20129. <a href="#" data-language-name="java">Java</a>
  20130. <a href="#" data-language-name="go">Go</a>
  20131. <a href="#" data-language-name="php">PHP</a>
  20132. </div>
  20133. </div>
  20134. </div>
  20135. </body>
  20136. </html>